Supported VideoProduce.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-04-29 Version: 1.36.392
|
||||
- Supported VideoProduce.
|
||||
|
||||
2020-04-29 Version: 1.36.391
|
||||
- Add ListTemplateVersions API.
|
||||
- GenerateExecutionPolicy supports TemplateVersion.
|
||||
|
||||
@@ -51,6 +51,8 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexRequest.h
|
||||
@@ -198,6 +200,8 @@ set(imm_src
|
||||
src/model/CreateVideoAnalyseTaskResult.cc
|
||||
src/model/CreateVideoCompressTaskRequest.cc
|
||||
src/model/CreateVideoCompressTaskResult.cc
|
||||
src/model/CreateVideoProduceTaskRequest.cc
|
||||
src/model/CreateVideoProduceTaskResult.cc
|
||||
src/model/DecodeBlindWatermarkRequest.cc
|
||||
src/model/DecodeBlindWatermarkResult.cc
|
||||
src/model/DeleteDocIndexRequest.cc
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
#include "model/CreateVideoAnalyseTaskResult.h"
|
||||
#include "model/CreateVideoCompressTaskRequest.h"
|
||||
#include "model/CreateVideoCompressTaskResult.h"
|
||||
#include "model/CreateVideoProduceTaskRequest.h"
|
||||
#include "model/CreateVideoProduceTaskResult.h"
|
||||
#include "model/DecodeBlindWatermarkRequest.h"
|
||||
#include "model/DecodeBlindWatermarkResult.h"
|
||||
#include "model/DeleteDocIndexRequest.h"
|
||||
@@ -220,6 +222,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateVideoCompressTaskResult> CreateVideoCompressTaskOutcome;
|
||||
typedef std::future<CreateVideoCompressTaskOutcome> CreateVideoCompressTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoCompressTaskRequest&, const CreateVideoCompressTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoCompressTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVideoProduceTaskResult> CreateVideoProduceTaskOutcome;
|
||||
typedef std::future<CreateVideoProduceTaskOutcome> CreateVideoProduceTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoProduceTaskRequest&, const CreateVideoProduceTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoProduceTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DecodeBlindWatermarkResult> DecodeBlindWatermarkOutcome;
|
||||
typedef std::future<DecodeBlindWatermarkOutcome> DecodeBlindWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DecodeBlindWatermarkRequest&, const DecodeBlindWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DecodeBlindWatermarkAsyncHandler;
|
||||
@@ -441,6 +446,9 @@ namespace AlibabaCloud
|
||||
CreateVideoCompressTaskOutcome createVideoCompressTask(const Model::CreateVideoCompressTaskRequest &request)const;
|
||||
void createVideoCompressTaskAsync(const Model::CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoCompressTaskOutcomeCallable createVideoCompressTaskCallable(const Model::CreateVideoCompressTaskRequest& request) const;
|
||||
CreateVideoProduceTaskOutcome createVideoProduceTask(const Model::CreateVideoProduceTaskRequest &request)const;
|
||||
void createVideoProduceTaskAsync(const Model::CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoProduceTaskOutcomeCallable createVideoProduceTaskCallable(const Model::CreateVideoProduceTaskRequest& request) const;
|
||||
DecodeBlindWatermarkOutcome decodeBlindWatermark(const Model::DecodeBlindWatermarkRequest &request)const;
|
||||
void decodeBlindWatermarkAsync(const Model::DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DecodeBlindWatermarkOutcomeCallable decodeBlindWatermarkCallable(const Model::DecodeBlindWatermarkRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVideoProduceTaskRequest();
|
||||
~CreateVideoProduceTaskRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getMusic()const;
|
||||
void setMusic(const std::string& music);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getTemplateName()const;
|
||||
void setTemplateName(const std::string& templateName);
|
||||
int getHeight()const;
|
||||
void setHeight(int height);
|
||||
std::string getCustomMessage()const;
|
||||
void setCustomMessage(const std::string& customMessage);
|
||||
std::string getImages()const;
|
||||
void setImages(const std::string& images);
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
int getWidth()const;
|
||||
void setWidth(int width);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string music_;
|
||||
std::string notifyEndpoint_;
|
||||
std::string targetUri_;
|
||||
std::string templateName_;
|
||||
int height_;
|
||||
std::string customMessage_;
|
||||
std::string images_;
|
||||
std::string notifyTopicName_;
|
||||
int width_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVideoProduceTaskResult();
|
||||
explicit CreateVideoProduceTaskResult(const std::string &payload);
|
||||
~CreateVideoProduceTaskResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getTaskType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string taskType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<Frames::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<Frames::FacesItem> faces;
|
||||
std::vector<Frames::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
FindImagesRequest();
|
||||
~FindImagesRequest();
|
||||
|
||||
std::string getRemarksArrayBIn()const;
|
||||
void setRemarksArrayBIn(const std::string& remarksArrayBIn);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getExternalId()const;
|
||||
@@ -67,6 +69,8 @@ namespace AlibabaCloud
|
||||
void setAddressLineContentsMatch(const std::string& addressLineContentsMatch);
|
||||
std::string getGender()const;
|
||||
void setGender(const std::string& gender);
|
||||
std::string getRemarksArrayAIn()const;
|
||||
void setRemarksArrayAIn(const std::string& remarksArrayAIn);
|
||||
std::string getImageSizeRange()const;
|
||||
void setImageSizeRange(const std::string& imageSizeRange);
|
||||
std::string getRemarksBPrefix()const;
|
||||
@@ -93,6 +97,7 @@ namespace AlibabaCloud
|
||||
void setSetId(const std::string& setId);
|
||||
|
||||
private:
|
||||
std::string remarksArrayBIn_;
|
||||
std::string project_;
|
||||
std::string externalId_;
|
||||
std::string facesModifyTimeRange_;
|
||||
@@ -109,6 +114,7 @@ namespace AlibabaCloud
|
||||
std::string modifyTimeRange_;
|
||||
std::string addressLineContentsMatch_;
|
||||
std::string gender_;
|
||||
std::string remarksArrayAIn_;
|
||||
std::string imageSizeRange_;
|
||||
std::string remarksBPrefix_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<ImagesItem::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<ImagesItem::FacesItem> faces;
|
||||
std::vector<ImagesItem::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -143,6 +143,7 @@ namespace AlibabaCloud
|
||||
std::string getAddressModifyTime()const;
|
||||
std::string getImageFormat()const;
|
||||
std::string getTagsFailReason()const;
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getExif()const;
|
||||
std::string getFacesModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
@@ -150,6 +151,7 @@ namespace AlibabaCloud
|
||||
int getImageWidth()const;
|
||||
std::vector<CelebrityItem> getCelebrity()const;
|
||||
std::string getSourcePosition()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::vector<FacesItem> getFaces()const;
|
||||
std::vector<TagsItem> getTags()const;
|
||||
std::string getAddressStatus()const;
|
||||
@@ -187,6 +189,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime_;
|
||||
std::string imageFormat_;
|
||||
std::string tagsFailReason_;
|
||||
std::string remarksArrayB_;
|
||||
std::string exif_;
|
||||
std::string facesModifyTime_;
|
||||
std::string remarksC_;
|
||||
@@ -194,6 +197,7 @@ namespace AlibabaCloud
|
||||
int imageWidth_;
|
||||
std::vector<CelebrityItem> celebrity_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksArrayA_;
|
||||
std::vector<FacesItem> faces_;
|
||||
std::vector<TagsItem> tags_;
|
||||
std::string addressStatus_;
|
||||
|
||||
@@ -55,6 +55,10 @@ namespace AlibabaCloud
|
||||
void setRemarksA(const std::string& remarksA);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getRemarksArrayA()const;
|
||||
void setRemarksArrayA(const std::string& remarksArrayA);
|
||||
std::string getRemarksArrayB()const;
|
||||
void setRemarksArrayB(const std::string& remarksArrayB);
|
||||
std::string getSourceUri()const;
|
||||
void setSourceUri(const std::string& sourceUri);
|
||||
std::string getSourcePosition()const;
|
||||
@@ -77,6 +81,8 @@ namespace AlibabaCloud
|
||||
std::string remarksB_;
|
||||
std::string remarksA_;
|
||||
std::string imageUri_;
|
||||
std::string remarksArrayA_;
|
||||
std::string remarksArrayB_;
|
||||
std::string sourceUri_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksD_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
IndexImageResult();
|
||||
explicit IndexImageResult(const std::string &payload);
|
||||
~IndexImageResult();
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
std::string getRemarksD()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getExternalId()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::string getSetId()const;
|
||||
std::string getImageUri()const;
|
||||
std::string getRemarksA()const;
|
||||
@@ -50,11 +52,13 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string remarksArrayB_;
|
||||
std::string modifyTime_;
|
||||
std::string remarksC_;
|
||||
std::string remarksD_;
|
||||
std::string createTime_;
|
||||
std::string externalId_;
|
||||
std::string remarksArrayA_;
|
||||
std::string setId_;
|
||||
std::string imageUri_;
|
||||
std::string remarksA_;
|
||||
|
||||
@@ -140,6 +140,7 @@ namespace AlibabaCloud
|
||||
std::string addressModifyTime;
|
||||
std::string imageFormat;
|
||||
std::string tagsFailReason;
|
||||
std::string remarksArrayB;
|
||||
std::string facesModifyTime;
|
||||
std::string exif;
|
||||
std::string remarksC;
|
||||
@@ -147,6 +148,7 @@ namespace AlibabaCloud
|
||||
int imageWidth;
|
||||
std::vector<ImagesItem::CelebrityItem> celebrity;
|
||||
std::string sourcePosition;
|
||||
std::string remarksArrayA;
|
||||
std::vector<ImagesItem::FacesItem> faces;
|
||||
std::vector<ImagesItem::TagsItem> tags;
|
||||
std::string addressStatus;
|
||||
|
||||
@@ -49,6 +49,10 @@ namespace AlibabaCloud
|
||||
void setRemarksA(const std::string& remarksA);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getRemarksArrayA()const;
|
||||
void setRemarksArrayA(const std::string& remarksArrayA);
|
||||
std::string getRemarksArrayB()const;
|
||||
void setRemarksArrayB(const std::string& remarksArrayB);
|
||||
std::string getSourceUri()const;
|
||||
void setSourceUri(const std::string& sourceUri);
|
||||
std::string getSourcePosition()const;
|
||||
@@ -68,6 +72,8 @@ namespace AlibabaCloud
|
||||
std::string remarksB_;
|
||||
std::string remarksA_;
|
||||
std::string imageUri_;
|
||||
std::string remarksArrayA_;
|
||||
std::string remarksArrayB_;
|
||||
std::string sourceUri_;
|
||||
std::string sourcePosition_;
|
||||
std::string remarksD_;
|
||||
|
||||
@@ -37,11 +37,13 @@ namespace AlibabaCloud
|
||||
UpdateImageResult();
|
||||
explicit UpdateImageResult(const std::string &payload);
|
||||
~UpdateImageResult();
|
||||
std::string getRemarksArrayB()const;
|
||||
std::string getModifyTime()const;
|
||||
std::string getRemarksC()const;
|
||||
std::string getRemarksD()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getExternalId()const;
|
||||
std::string getRemarksArrayA()const;
|
||||
std::string getSetId()const;
|
||||
std::string getImageUri()const;
|
||||
std::string getRemarksA()const;
|
||||
@@ -50,11 +52,13 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string remarksArrayB_;
|
||||
std::string modifyTime_;
|
||||
std::string remarksC_;
|
||||
std::string remarksD_;
|
||||
std::string createTime_;
|
||||
std::string externalId_;
|
||||
std::string remarksArrayA_;
|
||||
std::string setId_;
|
||||
std::string imageUri_;
|
||||
std::string remarksA_;
|
||||
|
||||
@@ -591,6 +591,42 @@ ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompress
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoProduceTaskOutcome ImmClient::createVideoProduceTask(const CreateVideoProduceTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVideoProduceTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVideoProduceTaskOutcome(CreateVideoProduceTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateVideoProduceTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createVideoProduceTaskAsync(const CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVideoProduceTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoProduceTaskOutcomeCallable ImmClient::createVideoProduceTaskCallable(const CreateVideoProduceTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVideoProduceTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVideoProduceTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DecodeBlindWatermarkOutcome ImmClient::decodeBlindWatermark(const DecodeBlindWatermarkRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
150
imm/src/model/CreateVideoProduceTaskRequest.cc
Normal file
150
imm/src/model/CreateVideoProduceTaskRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateVideoProduceTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateVideoProduceTaskRequest;
|
||||
|
||||
CreateVideoProduceTaskRequest::CreateVideoProduceTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateVideoProduceTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVideoProduceTaskRequest::~CreateVideoProduceTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getMusic()const
|
||||
{
|
||||
return music_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setMusic(const std::string& music)
|
||||
{
|
||||
music_ = music;
|
||||
setParameter("Music", music);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
int CreateVideoProduceTaskRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setHeight(int height)
|
||||
{
|
||||
height_ = height;
|
||||
setParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getCustomMessage()const
|
||||
{
|
||||
return customMessage_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setCustomMessage(const std::string& customMessage)
|
||||
{
|
||||
customMessage_ = customMessage;
|
||||
setParameter("CustomMessage", customMessage);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setImages(const std::string& images)
|
||||
{
|
||||
images_ = images;
|
||||
setParameter("Images", images);
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
int CreateVideoProduceTaskRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void CreateVideoProduceTaskRequest::setWidth(int width)
|
||||
{
|
||||
width_ = width;
|
||||
setParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
58
imm/src/model/CreateVideoProduceTaskResult.cc
Normal file
58
imm/src/model/CreateVideoProduceTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateVideoProduceTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateVideoProduceTaskResult::CreateVideoProduceTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoProduceTaskResult::CreateVideoProduceTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoProduceTaskResult::~CreateVideoProduceTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoProduceTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateVideoProduceTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -111,6 +111,10 @@ void FindImagesByTagNamesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesFrames["AddressStatus"].asString();
|
||||
if(!valueImagesFrames["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesFrames["AddressFailReason"].asString();
|
||||
if(!valueImagesFrames["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesFrames["RemarksArrayA"].asString();
|
||||
if(!valueImagesFrames["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesFrames["RemarksArrayB"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -27,6 +27,17 @@ FindImagesRequest::FindImagesRequest() :
|
||||
FindImagesRequest::~FindImagesRequest()
|
||||
{}
|
||||
|
||||
std::string FindImagesRequest::getRemarksArrayBIn()const
|
||||
{
|
||||
return remarksArrayBIn_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setRemarksArrayBIn(const std::string& remarksArrayBIn)
|
||||
{
|
||||
remarksArrayBIn_ = remarksArrayBIn;
|
||||
setParameter("RemarksArrayBIn", remarksArrayBIn);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
@@ -203,6 +214,17 @@ void FindImagesRequest::setGender(const std::string& gender)
|
||||
setParameter("Gender", gender);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getRemarksArrayAIn()const
|
||||
{
|
||||
return remarksArrayAIn_;
|
||||
}
|
||||
|
||||
void FindImagesRequest::setRemarksArrayAIn(const std::string& remarksArrayAIn)
|
||||
{
|
||||
remarksArrayAIn_ = remarksArrayAIn;
|
||||
setParameter("RemarksArrayAIn", remarksArrayAIn);
|
||||
}
|
||||
|
||||
std::string FindImagesRequest::getImageSizeRange()const
|
||||
{
|
||||
return imageSizeRange_;
|
||||
|
||||
@@ -111,6 +111,10 @@ void FindImagesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString();
|
||||
if(!valueImagesImagesItem["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -252,6 +252,10 @@ void GetImageResult::parse(const std::string &payload)
|
||||
addressStatus_ = value["AddressStatus"].asString();
|
||||
if(!value["AddressFailReason"].isNull())
|
||||
addressFailReason_ = value["AddressFailReason"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -310,6 +314,11 @@ std::string GetImageResult::getTagsFailReason()const
|
||||
return tagsFailReason_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getExif()const
|
||||
{
|
||||
return exif_;
|
||||
@@ -345,6 +354,11 @@ std::string GetImageResult::getSourcePosition()const
|
||||
return sourcePosition_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::vector<GetImageResult::FacesItem> GetImageResult::getFaces()const
|
||||
{
|
||||
return faces_;
|
||||
|
||||
@@ -137,6 +137,28 @@ void IndexImageRequest::setImageUri(const std::string& imageUri)
|
||||
setParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
void IndexImageRequest::setRemarksArrayA(const std::string& remarksArrayA)
|
||||
{
|
||||
remarksArrayA_ = remarksArrayA;
|
||||
setParameter("RemarksArrayA", remarksArrayA);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
void IndexImageRequest::setRemarksArrayB(const std::string& remarksArrayB)
|
||||
{
|
||||
remarksArrayB_ = remarksArrayB;
|
||||
setParameter("RemarksArrayB", remarksArrayB);
|
||||
}
|
||||
|
||||
std::string IndexImageRequest::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
|
||||
@@ -57,9 +57,18 @@ void IndexImageResult::parse(const std::string &payload)
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getModifyTime()const
|
||||
{
|
||||
return modifyTime_;
|
||||
@@ -85,6 +94,11 @@ std::string IndexImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::string IndexImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
|
||||
@@ -111,6 +111,10 @@ void ListImagesResult::parse(const std::string &payload)
|
||||
imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString();
|
||||
if(!valueImagesImagesItem["AddressFailReason"].isNull())
|
||||
imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayA"].isNull())
|
||||
imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString();
|
||||
if(!valueImagesImagesItem["RemarksArrayB"].isNull())
|
||||
imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString();
|
||||
auto allFacesNode = allImagesNode["Faces"]["FacesItem"];
|
||||
for (auto allImagesNodeFacesFacesItem : allFacesNode)
|
||||
{
|
||||
|
||||
@@ -104,6 +104,28 @@ void UpdateImageRequest::setImageUri(const std::string& imageUri)
|
||||
setParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
void UpdateImageRequest::setRemarksArrayA(const std::string& remarksArrayA)
|
||||
{
|
||||
remarksArrayA_ = remarksArrayA;
|
||||
setParameter("RemarksArrayA", remarksArrayA);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
void UpdateImageRequest::setRemarksArrayB(const std::string& remarksArrayB)
|
||||
{
|
||||
remarksArrayB_ = remarksArrayB;
|
||||
setParameter("RemarksArrayB", remarksArrayB);
|
||||
}
|
||||
|
||||
std::string UpdateImageRequest::getSourceUri()const
|
||||
{
|
||||
return sourceUri_;
|
||||
|
||||
@@ -57,9 +57,18 @@ void UpdateImageResult::parse(const std::string &payload)
|
||||
remarksD_ = value["RemarksD"].asString();
|
||||
if(!value["ExternalId"].isNull())
|
||||
externalId_ = value["ExternalId"].asString();
|
||||
if(!value["RemarksArrayA"].isNull())
|
||||
remarksArrayA_ = value["RemarksArrayA"].asString();
|
||||
if(!value["RemarksArrayB"].isNull())
|
||||
remarksArrayB_ = value["RemarksArrayB"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getRemarksArrayB()const
|
||||
{
|
||||
return remarksArrayB_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getModifyTime()const
|
||||
{
|
||||
return modifyTime_;
|
||||
@@ -85,6 +94,11 @@ std::string UpdateImageResult::getExternalId()const
|
||||
return externalId_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getRemarksArrayA()const
|
||||
{
|
||||
return remarksArrayA_;
|
||||
}
|
||||
|
||||
std::string UpdateImageResult::getSetId()const
|
||||
{
|
||||
return setId_;
|
||||
|
||||
Reference in New Issue
Block a user