diff --git a/CHANGELOG b/CHANGELOG index 63448b802..fae29b91e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-21 Version: 1.36.1192 +- Add Body Detection and Image Splicing API. + 2022-07-20 Version: 1.36.1191 - Change getFileDetectResult. diff --git a/VERSION b/VERSION index 3981906e8..c8c14d169 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1191 \ No newline at end of file +1.36.1192 \ No newline at end of file diff --git a/imm/CMakeLists.txt b/imm/CMakeLists.txt index 8c622bd7c..ad4d4d8f6 100644 --- a/imm/CMakeLists.txt +++ b/imm/CMakeLists.txt @@ -33,6 +33,10 @@ set(imm_public_header_model include/alibabacloud/imm/model/BatchIndexFileMetaResult.h include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h include/alibabacloud/imm/model/BatchUpdateFileMetaResult.h + include/alibabacloud/imm/model/CompareImageFacesRequest.h + include/alibabacloud/imm/model/CompareImageFacesResult.h + include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h + include/alibabacloud/imm/model/ConvertOfficeFormatResult.h include/alibabacloud/imm/model/CreateBindingRequest.h include/alibabacloud/imm/model/CreateBindingResult.h include/alibabacloud/imm/model/CreateDatasetRequest.h @@ -43,30 +47,52 @@ set(imm_public_header_model include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.h include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.h + include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h + include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h + include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h + include/alibabacloud/imm/model/CreateGroupFacesJobResult.h include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h include/alibabacloud/imm/model/CreateImageModerationTaskResult.h include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h include/alibabacloud/imm/model/CreateImageSplicingTaskResult.h include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h include/alibabacloud/imm/model/CreateMediaConvertTaskResult.h + include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h + include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h include/alibabacloud/imm/model/CreateProjectRequest.h include/alibabacloud/imm/model/CreateProjectResult.h + include/alibabacloud/imm/model/CreateSetRequest.h + include/alibabacloud/imm/model/CreateSetResult.h include/alibabacloud/imm/model/CreateStoryRequest.h include/alibabacloud/imm/model/CreateStoryResult.h + include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h + include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h include/alibabacloud/imm/model/CreateVideoModerationTaskResult.h + include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h + include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h include/alibabacloud/imm/model/DeleteBindingRequest.h include/alibabacloud/imm/model/DeleteBindingResult.h include/alibabacloud/imm/model/DeleteDatasetRequest.h include/alibabacloud/imm/model/DeleteDatasetResult.h include/alibabacloud/imm/model/DeleteFileMetaRequest.h include/alibabacloud/imm/model/DeleteFileMetaResult.h + include/alibabacloud/imm/model/DeleteImageRequest.h + include/alibabacloud/imm/model/DeleteImageResult.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h include/alibabacloud/imm/model/DeleteProjectRequest.h include/alibabacloud/imm/model/DeleteProjectResult.h + include/alibabacloud/imm/model/DeleteSetRequest.h + include/alibabacloud/imm/model/DeleteSetResult.h include/alibabacloud/imm/model/DeleteStoryRequest.h include/alibabacloud/imm/model/DeleteStoryResult.h + include/alibabacloud/imm/model/DeleteVideoRequest.h + include/alibabacloud/imm/model/DeleteVideoResult.h + include/alibabacloud/imm/model/DeleteVideoTaskRequest.h + include/alibabacloud/imm/model/DeleteVideoTaskResult.h include/alibabacloud/imm/model/DetachOSSBucketRequest.h include/alibabacloud/imm/model/DetachOSSBucketResult.h include/alibabacloud/imm/model/DetectImageBodiesRequest.h @@ -79,10 +105,22 @@ set(imm_public_header_model include/alibabacloud/imm/model/DetectImageFacesResult.h include/alibabacloud/imm/model/DetectImageLabelsRequest.h include/alibabacloud/imm/model/DetectImageLabelsResult.h + include/alibabacloud/imm/model/DetectImageQRCodesRequest.h + include/alibabacloud/imm/model/DetectImageQRCodesResult.h include/alibabacloud/imm/model/DetectImageScoreRequest.h include/alibabacloud/imm/model/DetectImageScoreResult.h + include/alibabacloud/imm/model/DetectImageTagsRequest.h + include/alibabacloud/imm/model/DetectImageTagsResult.h + include/alibabacloud/imm/model/DetectQRCodesRequest.h + include/alibabacloud/imm/model/DetectQRCodesResult.h include/alibabacloud/imm/model/DetectTextAnomalyRequest.h include/alibabacloud/imm/model/DetectTextAnomalyResult.h + include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h + include/alibabacloud/imm/model/EncodeBlindWatermarkResult.h + include/alibabacloud/imm/model/FindImagesRequest.h + include/alibabacloud/imm/model/FindImagesResult.h + include/alibabacloud/imm/model/FindSimilarFacesRequest.h + include/alibabacloud/imm/model/FindSimilarFacesResult.h include/alibabacloud/imm/model/FuzzyQueryRequest.h include/alibabacloud/imm/model/FuzzyQueryResult.h include/alibabacloud/imm/model/GetBindingRequest.h @@ -95,36 +133,80 @@ set(imm_public_header_model include/alibabacloud/imm/model/GetFigureClusterResult.h include/alibabacloud/imm/model/GetFileMetaRequest.h include/alibabacloud/imm/model/GetFileMetaResult.h + include/alibabacloud/imm/model/GetImageRequest.h + include/alibabacloud/imm/model/GetImageResult.h + include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h + include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h + include/alibabacloud/imm/model/GetImageQualityRequest.h + include/alibabacloud/imm/model/GetImageQualityResult.h include/alibabacloud/imm/model/GetMediaMetaRequest.h include/alibabacloud/imm/model/GetMediaMetaResult.h include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.h include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.h + include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h + include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h + include/alibabacloud/imm/model/GetOfficePreviewURLResult.h include/alibabacloud/imm/model/GetProjectRequest.h include/alibabacloud/imm/model/GetProjectResult.h + include/alibabacloud/imm/model/GetSetRequest.h + include/alibabacloud/imm/model/GetSetResult.h include/alibabacloud/imm/model/GetStoryRequest.h include/alibabacloud/imm/model/GetStoryResult.h include/alibabacloud/imm/model/GetTaskRequest.h include/alibabacloud/imm/model/GetTaskResult.h + include/alibabacloud/imm/model/GetVideoRequest.h + include/alibabacloud/imm/model/GetVideoResult.h + include/alibabacloud/imm/model/GetVideoTaskRequest.h + include/alibabacloud/imm/model/GetVideoTaskResult.h include/alibabacloud/imm/model/GetWebofficeURLRequest.h include/alibabacloud/imm/model/GetWebofficeURLResult.h include/alibabacloud/imm/model/IndexFileMetaRequest.h include/alibabacloud/imm/model/IndexFileMetaResult.h + include/alibabacloud/imm/model/IndexImageRequest.h + include/alibabacloud/imm/model/IndexImageResult.h + include/alibabacloud/imm/model/IndexVideoRequest.h + include/alibabacloud/imm/model/IndexVideoResult.h include/alibabacloud/imm/model/ListBindingsRequest.h include/alibabacloud/imm/model/ListBindingsResult.h include/alibabacloud/imm/model/ListDatasetsRequest.h include/alibabacloud/imm/model/ListDatasetsResult.h + include/alibabacloud/imm/model/ListFaceGroupsRequest.h + include/alibabacloud/imm/model/ListFaceGroupsResult.h + include/alibabacloud/imm/model/ListImagesRequest.h + include/alibabacloud/imm/model/ListImagesResult.h + include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h include/alibabacloud/imm/model/ListProjectsRequest.h include/alibabacloud/imm/model/ListProjectsResult.h include/alibabacloud/imm/model/ListRegionsRequest.h include/alibabacloud/imm/model/ListRegionsResult.h + include/alibabacloud/imm/model/ListSetTagsRequest.h + include/alibabacloud/imm/model/ListSetTagsResult.h + include/alibabacloud/imm/model/ListSetsRequest.h + include/alibabacloud/imm/model/ListSetsResult.h include/alibabacloud/imm/model/ListTasksRequest.h include/alibabacloud/imm/model/ListTasksResult.h + include/alibabacloud/imm/model/ListVideoAudiosRequest.h + include/alibabacloud/imm/model/ListVideoAudiosResult.h + include/alibabacloud/imm/model/ListVideoFramesRequest.h + include/alibabacloud/imm/model/ListVideoFramesResult.h + include/alibabacloud/imm/model/ListVideoTasksRequest.h + include/alibabacloud/imm/model/ListVideoTasksResult.h + include/alibabacloud/imm/model/ListVideosRequest.h + include/alibabacloud/imm/model/ListVideosResult.h include/alibabacloud/imm/model/MergeFigureClustersRequest.h include/alibabacloud/imm/model/MergeFigureClustersResult.h + include/alibabacloud/imm/model/OpenImmServiceRequest.h + include/alibabacloud/imm/model/OpenImmServiceResult.h + include/alibabacloud/imm/model/PutProjectRequest.h + include/alibabacloud/imm/model/PutProjectResult.h include/alibabacloud/imm/model/QueryFigureClustersRequest.h include/alibabacloud/imm/model/QueryFigureClustersResult.h include/alibabacloud/imm/model/QueryStoriesRequest.h include/alibabacloud/imm/model/QueryStoriesResult.h + include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h + include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h include/alibabacloud/imm/model/RefreshWebofficeTokenResult.h include/alibabacloud/imm/model/RemoveStoryFilesRequest.h @@ -139,12 +221,18 @@ set(imm_public_header_model include/alibabacloud/imm/model/StopBindingResult.h include/alibabacloud/imm/model/UpdateDatasetRequest.h include/alibabacloud/imm/model/UpdateDatasetResult.h + include/alibabacloud/imm/model/UpdateFaceGroupRequest.h + include/alibabacloud/imm/model/UpdateFaceGroupResult.h include/alibabacloud/imm/model/UpdateFigureClusterRequest.h include/alibabacloud/imm/model/UpdateFigureClusterResult.h include/alibabacloud/imm/model/UpdateFileMetaRequest.h include/alibabacloud/imm/model/UpdateFileMetaResult.h + include/alibabacloud/imm/model/UpdateImageRequest.h + include/alibabacloud/imm/model/UpdateImageResult.h include/alibabacloud/imm/model/UpdateProjectRequest.h include/alibabacloud/imm/model/UpdateProjectResult.h + include/alibabacloud/imm/model/UpdateSetRequest.h + include/alibabacloud/imm/model/UpdateSetResult.h include/alibabacloud/imm/model/UpdateStoryRequest.h include/alibabacloud/imm/model/UpdateStoryResult.h ) @@ -162,6 +250,10 @@ set(imm_src src/model/BatchIndexFileMetaResult.cc src/model/BatchUpdateFileMetaRequest.cc src/model/BatchUpdateFileMetaResult.cc + src/model/CompareImageFacesRequest.cc + src/model/CompareImageFacesResult.cc + src/model/ConvertOfficeFormatRequest.cc + src/model/ConvertOfficeFormatResult.cc src/model/CreateBindingRequest.cc src/model/CreateBindingResult.cc src/model/CreateDatasetRequest.cc @@ -172,30 +264,52 @@ set(imm_src src/model/CreateFigureClusteringTaskResult.cc src/model/CreateFigureClustersMergingTaskRequest.cc src/model/CreateFigureClustersMergingTaskResult.cc + src/model/CreateGrabFrameTaskRequest.cc + src/model/CreateGrabFrameTaskResult.cc + src/model/CreateGroupFacesJobRequest.cc + src/model/CreateGroupFacesJobResult.cc src/model/CreateImageModerationTaskRequest.cc src/model/CreateImageModerationTaskResult.cc src/model/CreateImageSplicingTaskRequest.cc src/model/CreateImageSplicingTaskResult.cc src/model/CreateMediaConvertTaskRequest.cc src/model/CreateMediaConvertTaskResult.cc + src/model/CreateMergeFaceGroupsJobRequest.cc + src/model/CreateMergeFaceGroupsJobResult.cc src/model/CreateOfficeConversionTaskRequest.cc src/model/CreateOfficeConversionTaskResult.cc src/model/CreateProjectRequest.cc src/model/CreateProjectResult.cc + src/model/CreateSetRequest.cc + src/model/CreateSetResult.cc src/model/CreateStoryRequest.cc src/model/CreateStoryResult.cc + src/model/CreateVideoCompressTaskRequest.cc + src/model/CreateVideoCompressTaskResult.cc src/model/CreateVideoModerationTaskRequest.cc src/model/CreateVideoModerationTaskResult.cc + src/model/DecodeBlindWatermarkRequest.cc + src/model/DecodeBlindWatermarkResult.cc src/model/DeleteBindingRequest.cc src/model/DeleteBindingResult.cc src/model/DeleteDatasetRequest.cc src/model/DeleteDatasetResult.cc src/model/DeleteFileMetaRequest.cc src/model/DeleteFileMetaResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/DeleteOfficeConversionTaskRequest.cc + src/model/DeleteOfficeConversionTaskResult.cc src/model/DeleteProjectRequest.cc src/model/DeleteProjectResult.cc + src/model/DeleteSetRequest.cc + src/model/DeleteSetResult.cc src/model/DeleteStoryRequest.cc src/model/DeleteStoryResult.cc + src/model/DeleteVideoRequest.cc + src/model/DeleteVideoResult.cc + src/model/DeleteVideoTaskRequest.cc + src/model/DeleteVideoTaskResult.cc src/model/DetachOSSBucketRequest.cc src/model/DetachOSSBucketResult.cc src/model/DetectImageBodiesRequest.cc @@ -208,10 +322,22 @@ set(imm_src src/model/DetectImageFacesResult.cc src/model/DetectImageLabelsRequest.cc src/model/DetectImageLabelsResult.cc + src/model/DetectImageQRCodesRequest.cc + src/model/DetectImageQRCodesResult.cc src/model/DetectImageScoreRequest.cc src/model/DetectImageScoreResult.cc + src/model/DetectImageTagsRequest.cc + src/model/DetectImageTagsResult.cc + src/model/DetectQRCodesRequest.cc + src/model/DetectQRCodesResult.cc src/model/DetectTextAnomalyRequest.cc src/model/DetectTextAnomalyResult.cc + src/model/EncodeBlindWatermarkRequest.cc + src/model/EncodeBlindWatermarkResult.cc + src/model/FindImagesRequest.cc + src/model/FindImagesResult.cc + src/model/FindSimilarFacesRequest.cc + src/model/FindSimilarFacesResult.cc src/model/FuzzyQueryRequest.cc src/model/FuzzyQueryResult.cc src/model/GetBindingRequest.cc @@ -224,36 +350,80 @@ set(imm_src src/model/GetFigureClusterResult.cc src/model/GetFileMetaRequest.cc src/model/GetFileMetaResult.cc + src/model/GetImageRequest.cc + src/model/GetImageResult.cc + src/model/GetImageCroppingSuggestionsRequest.cc + src/model/GetImageCroppingSuggestionsResult.cc + src/model/GetImageQualityRequest.cc + src/model/GetImageQualityResult.cc src/model/GetMediaMetaRequest.cc src/model/GetMediaMetaResult.cc src/model/GetOSSBucketAttachmentRequest.cc src/model/GetOSSBucketAttachmentResult.cc + src/model/GetOfficeConversionTaskRequest.cc + src/model/GetOfficeConversionTaskResult.cc + src/model/GetOfficePreviewURLRequest.cc + src/model/GetOfficePreviewURLResult.cc src/model/GetProjectRequest.cc src/model/GetProjectResult.cc + src/model/GetSetRequest.cc + src/model/GetSetResult.cc src/model/GetStoryRequest.cc src/model/GetStoryResult.cc src/model/GetTaskRequest.cc src/model/GetTaskResult.cc + src/model/GetVideoRequest.cc + src/model/GetVideoResult.cc + src/model/GetVideoTaskRequest.cc + src/model/GetVideoTaskResult.cc src/model/GetWebofficeURLRequest.cc src/model/GetWebofficeURLResult.cc src/model/IndexFileMetaRequest.cc src/model/IndexFileMetaResult.cc + src/model/IndexImageRequest.cc + src/model/IndexImageResult.cc + src/model/IndexVideoRequest.cc + src/model/IndexVideoResult.cc src/model/ListBindingsRequest.cc src/model/ListBindingsResult.cc src/model/ListDatasetsRequest.cc src/model/ListDatasetsResult.cc + src/model/ListFaceGroupsRequest.cc + src/model/ListFaceGroupsResult.cc + src/model/ListImagesRequest.cc + src/model/ListImagesResult.cc + src/model/ListOfficeConversionTaskRequest.cc + src/model/ListOfficeConversionTaskResult.cc src/model/ListProjectsRequest.cc src/model/ListProjectsResult.cc src/model/ListRegionsRequest.cc src/model/ListRegionsResult.cc + src/model/ListSetTagsRequest.cc + src/model/ListSetTagsResult.cc + src/model/ListSetsRequest.cc + src/model/ListSetsResult.cc src/model/ListTasksRequest.cc src/model/ListTasksResult.cc + src/model/ListVideoAudiosRequest.cc + src/model/ListVideoAudiosResult.cc + src/model/ListVideoFramesRequest.cc + src/model/ListVideoFramesResult.cc + src/model/ListVideoTasksRequest.cc + src/model/ListVideoTasksResult.cc + src/model/ListVideosRequest.cc + src/model/ListVideosResult.cc src/model/MergeFigureClustersRequest.cc src/model/MergeFigureClustersResult.cc + src/model/OpenImmServiceRequest.cc + src/model/OpenImmServiceResult.cc + src/model/PutProjectRequest.cc + src/model/PutProjectResult.cc src/model/QueryFigureClustersRequest.cc src/model/QueryFigureClustersResult.cc src/model/QueryStoriesRequest.cc src/model/QueryStoriesResult.cc + src/model/RefreshOfficePreviewTokenRequest.cc + src/model/RefreshOfficePreviewTokenResult.cc src/model/RefreshWebofficeTokenRequest.cc src/model/RefreshWebofficeTokenResult.cc src/model/RemoveStoryFilesRequest.cc @@ -268,12 +438,18 @@ set(imm_src src/model/StopBindingResult.cc src/model/UpdateDatasetRequest.cc src/model/UpdateDatasetResult.cc + src/model/UpdateFaceGroupRequest.cc + src/model/UpdateFaceGroupResult.cc src/model/UpdateFigureClusterRequest.cc src/model/UpdateFigureClusterResult.cc src/model/UpdateFileMetaRequest.cc src/model/UpdateFileMetaResult.cc + src/model/UpdateImageRequest.cc + src/model/UpdateImageResult.cc src/model/UpdateProjectRequest.cc src/model/UpdateProjectResult.cc + src/model/UpdateSetRequest.cc + src/model/UpdateSetResult.cc src/model/UpdateStoryRequest.cc src/model/UpdateStoryResult.cc ) diff --git a/imm/include/alibabacloud/imm/ImmClient.h b/imm/include/alibabacloud/imm/ImmClient.h index 4e319bdb9..c5dd19dc7 100644 --- a/imm/include/alibabacloud/imm/ImmClient.h +++ b/imm/include/alibabacloud/imm/ImmClient.h @@ -34,6 +34,10 @@ #include "model/BatchIndexFileMetaResult.h" #include "model/BatchUpdateFileMetaRequest.h" #include "model/BatchUpdateFileMetaResult.h" +#include "model/CompareImageFacesRequest.h" +#include "model/CompareImageFacesResult.h" +#include "model/ConvertOfficeFormatRequest.h" +#include "model/ConvertOfficeFormatResult.h" #include "model/CreateBindingRequest.h" #include "model/CreateBindingResult.h" #include "model/CreateDatasetRequest.h" @@ -44,30 +48,52 @@ #include "model/CreateFigureClusteringTaskResult.h" #include "model/CreateFigureClustersMergingTaskRequest.h" #include "model/CreateFigureClustersMergingTaskResult.h" +#include "model/CreateGrabFrameTaskRequest.h" +#include "model/CreateGrabFrameTaskResult.h" +#include "model/CreateGroupFacesJobRequest.h" +#include "model/CreateGroupFacesJobResult.h" #include "model/CreateImageModerationTaskRequest.h" #include "model/CreateImageModerationTaskResult.h" #include "model/CreateImageSplicingTaskRequest.h" #include "model/CreateImageSplicingTaskResult.h" #include "model/CreateMediaConvertTaskRequest.h" #include "model/CreateMediaConvertTaskResult.h" +#include "model/CreateMergeFaceGroupsJobRequest.h" +#include "model/CreateMergeFaceGroupsJobResult.h" #include "model/CreateOfficeConversionTaskRequest.h" #include "model/CreateOfficeConversionTaskResult.h" #include "model/CreateProjectRequest.h" #include "model/CreateProjectResult.h" +#include "model/CreateSetRequest.h" +#include "model/CreateSetResult.h" #include "model/CreateStoryRequest.h" #include "model/CreateStoryResult.h" +#include "model/CreateVideoCompressTaskRequest.h" +#include "model/CreateVideoCompressTaskResult.h" #include "model/CreateVideoModerationTaskRequest.h" #include "model/CreateVideoModerationTaskResult.h" +#include "model/DecodeBlindWatermarkRequest.h" +#include "model/DecodeBlindWatermarkResult.h" #include "model/DeleteBindingRequest.h" #include "model/DeleteBindingResult.h" #include "model/DeleteDatasetRequest.h" #include "model/DeleteDatasetResult.h" #include "model/DeleteFileMetaRequest.h" #include "model/DeleteFileMetaResult.h" +#include "model/DeleteImageRequest.h" +#include "model/DeleteImageResult.h" +#include "model/DeleteOfficeConversionTaskRequest.h" +#include "model/DeleteOfficeConversionTaskResult.h" #include "model/DeleteProjectRequest.h" #include "model/DeleteProjectResult.h" +#include "model/DeleteSetRequest.h" +#include "model/DeleteSetResult.h" #include "model/DeleteStoryRequest.h" #include "model/DeleteStoryResult.h" +#include "model/DeleteVideoRequest.h" +#include "model/DeleteVideoResult.h" +#include "model/DeleteVideoTaskRequest.h" +#include "model/DeleteVideoTaskResult.h" #include "model/DetachOSSBucketRequest.h" #include "model/DetachOSSBucketResult.h" #include "model/DetectImageBodiesRequest.h" @@ -80,10 +106,22 @@ #include "model/DetectImageFacesResult.h" #include "model/DetectImageLabelsRequest.h" #include "model/DetectImageLabelsResult.h" +#include "model/DetectImageQRCodesRequest.h" +#include "model/DetectImageQRCodesResult.h" #include "model/DetectImageScoreRequest.h" #include "model/DetectImageScoreResult.h" +#include "model/DetectImageTagsRequest.h" +#include "model/DetectImageTagsResult.h" +#include "model/DetectQRCodesRequest.h" +#include "model/DetectQRCodesResult.h" #include "model/DetectTextAnomalyRequest.h" #include "model/DetectTextAnomalyResult.h" +#include "model/EncodeBlindWatermarkRequest.h" +#include "model/EncodeBlindWatermarkResult.h" +#include "model/FindImagesRequest.h" +#include "model/FindImagesResult.h" +#include "model/FindSimilarFacesRequest.h" +#include "model/FindSimilarFacesResult.h" #include "model/FuzzyQueryRequest.h" #include "model/FuzzyQueryResult.h" #include "model/GetBindingRequest.h" @@ -96,36 +134,80 @@ #include "model/GetFigureClusterResult.h" #include "model/GetFileMetaRequest.h" #include "model/GetFileMetaResult.h" +#include "model/GetImageRequest.h" +#include "model/GetImageResult.h" +#include "model/GetImageCroppingSuggestionsRequest.h" +#include "model/GetImageCroppingSuggestionsResult.h" +#include "model/GetImageQualityRequest.h" +#include "model/GetImageQualityResult.h" #include "model/GetMediaMetaRequest.h" #include "model/GetMediaMetaResult.h" #include "model/GetOSSBucketAttachmentRequest.h" #include "model/GetOSSBucketAttachmentResult.h" +#include "model/GetOfficeConversionTaskRequest.h" +#include "model/GetOfficeConversionTaskResult.h" +#include "model/GetOfficePreviewURLRequest.h" +#include "model/GetOfficePreviewURLResult.h" #include "model/GetProjectRequest.h" #include "model/GetProjectResult.h" +#include "model/GetSetRequest.h" +#include "model/GetSetResult.h" #include "model/GetStoryRequest.h" #include "model/GetStoryResult.h" #include "model/GetTaskRequest.h" #include "model/GetTaskResult.h" +#include "model/GetVideoRequest.h" +#include "model/GetVideoResult.h" +#include "model/GetVideoTaskRequest.h" +#include "model/GetVideoTaskResult.h" #include "model/GetWebofficeURLRequest.h" #include "model/GetWebofficeURLResult.h" #include "model/IndexFileMetaRequest.h" #include "model/IndexFileMetaResult.h" +#include "model/IndexImageRequest.h" +#include "model/IndexImageResult.h" +#include "model/IndexVideoRequest.h" +#include "model/IndexVideoResult.h" #include "model/ListBindingsRequest.h" #include "model/ListBindingsResult.h" #include "model/ListDatasetsRequest.h" #include "model/ListDatasetsResult.h" +#include "model/ListFaceGroupsRequest.h" +#include "model/ListFaceGroupsResult.h" +#include "model/ListImagesRequest.h" +#include "model/ListImagesResult.h" +#include "model/ListOfficeConversionTaskRequest.h" +#include "model/ListOfficeConversionTaskResult.h" #include "model/ListProjectsRequest.h" #include "model/ListProjectsResult.h" #include "model/ListRegionsRequest.h" #include "model/ListRegionsResult.h" +#include "model/ListSetTagsRequest.h" +#include "model/ListSetTagsResult.h" +#include "model/ListSetsRequest.h" +#include "model/ListSetsResult.h" #include "model/ListTasksRequest.h" #include "model/ListTasksResult.h" +#include "model/ListVideoAudiosRequest.h" +#include "model/ListVideoAudiosResult.h" +#include "model/ListVideoFramesRequest.h" +#include "model/ListVideoFramesResult.h" +#include "model/ListVideoTasksRequest.h" +#include "model/ListVideoTasksResult.h" +#include "model/ListVideosRequest.h" +#include "model/ListVideosResult.h" #include "model/MergeFigureClustersRequest.h" #include "model/MergeFigureClustersResult.h" +#include "model/OpenImmServiceRequest.h" +#include "model/OpenImmServiceResult.h" +#include "model/PutProjectRequest.h" +#include "model/PutProjectResult.h" #include "model/QueryFigureClustersRequest.h" #include "model/QueryFigureClustersResult.h" #include "model/QueryStoriesRequest.h" #include "model/QueryStoriesResult.h" +#include "model/RefreshOfficePreviewTokenRequest.h" +#include "model/RefreshOfficePreviewTokenResult.h" #include "model/RefreshWebofficeTokenRequest.h" #include "model/RefreshWebofficeTokenResult.h" #include "model/RemoveStoryFilesRequest.h" @@ -140,12 +222,18 @@ #include "model/StopBindingResult.h" #include "model/UpdateDatasetRequest.h" #include "model/UpdateDatasetResult.h" +#include "model/UpdateFaceGroupRequest.h" +#include "model/UpdateFaceGroupResult.h" #include "model/UpdateFigureClusterRequest.h" #include "model/UpdateFigureClusterResult.h" #include "model/UpdateFileMetaRequest.h" #include "model/UpdateFileMetaResult.h" +#include "model/UpdateImageRequest.h" +#include "model/UpdateImageResult.h" #include "model/UpdateProjectRequest.h" #include "model/UpdateProjectResult.h" +#include "model/UpdateSetRequest.h" +#include "model/UpdateSetResult.h" #include "model/UpdateStoryRequest.h" #include "model/UpdateStoryResult.h" @@ -175,6 +263,12 @@ namespace AlibabaCloud typedef Outcome BatchUpdateFileMetaOutcome; typedef std::future BatchUpdateFileMetaOutcomeCallable; typedef std::function&)> BatchUpdateFileMetaAsyncHandler; + typedef Outcome CompareImageFacesOutcome; + typedef std::future CompareImageFacesOutcomeCallable; + typedef std::function&)> CompareImageFacesAsyncHandler; + typedef Outcome ConvertOfficeFormatOutcome; + typedef std::future ConvertOfficeFormatOutcomeCallable; + typedef std::function&)> ConvertOfficeFormatAsyncHandler; typedef Outcome CreateBindingOutcome; typedef std::future CreateBindingOutcomeCallable; typedef std::function&)> CreateBindingAsyncHandler; @@ -190,6 +284,12 @@ namespace AlibabaCloud typedef Outcome CreateFigureClustersMergingTaskOutcome; typedef std::future CreateFigureClustersMergingTaskOutcomeCallable; typedef std::function&)> CreateFigureClustersMergingTaskAsyncHandler; + typedef Outcome CreateGrabFrameTaskOutcome; + typedef std::future CreateGrabFrameTaskOutcomeCallable; + typedef std::function&)> CreateGrabFrameTaskAsyncHandler; + typedef Outcome CreateGroupFacesJobOutcome; + typedef std::future CreateGroupFacesJobOutcomeCallable; + typedef std::function&)> CreateGroupFacesJobAsyncHandler; typedef Outcome CreateImageModerationTaskOutcome; typedef std::future CreateImageModerationTaskOutcomeCallable; typedef std::function&)> CreateImageModerationTaskAsyncHandler; @@ -199,18 +299,30 @@ namespace AlibabaCloud typedef Outcome CreateMediaConvertTaskOutcome; typedef std::future CreateMediaConvertTaskOutcomeCallable; typedef std::function&)> CreateMediaConvertTaskAsyncHandler; + typedef Outcome CreateMergeFaceGroupsJobOutcome; + typedef std::future CreateMergeFaceGroupsJobOutcomeCallable; + typedef std::function&)> CreateMergeFaceGroupsJobAsyncHandler; typedef Outcome CreateOfficeConversionTaskOutcome; typedef std::future CreateOfficeConversionTaskOutcomeCallable; typedef std::function&)> CreateOfficeConversionTaskAsyncHandler; typedef Outcome CreateProjectOutcome; typedef std::future CreateProjectOutcomeCallable; typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome CreateSetOutcome; + typedef std::future CreateSetOutcomeCallable; + typedef std::function&)> CreateSetAsyncHandler; typedef Outcome CreateStoryOutcome; typedef std::future CreateStoryOutcomeCallable; typedef std::function&)> CreateStoryAsyncHandler; + typedef Outcome CreateVideoCompressTaskOutcome; + typedef std::future CreateVideoCompressTaskOutcomeCallable; + typedef std::function&)> CreateVideoCompressTaskAsyncHandler; typedef Outcome CreateVideoModerationTaskOutcome; typedef std::future CreateVideoModerationTaskOutcomeCallable; typedef std::function&)> CreateVideoModerationTaskAsyncHandler; + typedef Outcome DecodeBlindWatermarkOutcome; + typedef std::future DecodeBlindWatermarkOutcomeCallable; + typedef std::function&)> DecodeBlindWatermarkAsyncHandler; typedef Outcome DeleteBindingOutcome; typedef std::future DeleteBindingOutcomeCallable; typedef std::function&)> DeleteBindingAsyncHandler; @@ -220,12 +332,27 @@ namespace AlibabaCloud typedef Outcome DeleteFileMetaOutcome; typedef std::future DeleteFileMetaOutcomeCallable; typedef std::function&)> DeleteFileMetaAsyncHandler; + typedef Outcome DeleteImageOutcome; + typedef std::future DeleteImageOutcomeCallable; + typedef std::function&)> DeleteImageAsyncHandler; + typedef Outcome DeleteOfficeConversionTaskOutcome; + typedef std::future DeleteOfficeConversionTaskOutcomeCallable; + typedef std::function&)> DeleteOfficeConversionTaskAsyncHandler; typedef Outcome DeleteProjectOutcome; typedef std::future DeleteProjectOutcomeCallable; typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome DeleteSetOutcome; + typedef std::future DeleteSetOutcomeCallable; + typedef std::function&)> DeleteSetAsyncHandler; typedef Outcome DeleteStoryOutcome; typedef std::future DeleteStoryOutcomeCallable; typedef std::function&)> DeleteStoryAsyncHandler; + typedef Outcome DeleteVideoOutcome; + typedef std::future DeleteVideoOutcomeCallable; + typedef std::function&)> DeleteVideoAsyncHandler; + typedef Outcome DeleteVideoTaskOutcome; + typedef std::future DeleteVideoTaskOutcomeCallable; + typedef std::function&)> DeleteVideoTaskAsyncHandler; typedef Outcome DetachOSSBucketOutcome; typedef std::future DetachOSSBucketOutcomeCallable; typedef std::function&)> DetachOSSBucketAsyncHandler; @@ -244,12 +371,30 @@ namespace AlibabaCloud typedef Outcome DetectImageLabelsOutcome; typedef std::future DetectImageLabelsOutcomeCallable; typedef std::function&)> DetectImageLabelsAsyncHandler; + typedef Outcome DetectImageQRCodesOutcome; + typedef std::future DetectImageQRCodesOutcomeCallable; + typedef std::function&)> DetectImageQRCodesAsyncHandler; typedef Outcome DetectImageScoreOutcome; typedef std::future DetectImageScoreOutcomeCallable; typedef std::function&)> DetectImageScoreAsyncHandler; + typedef Outcome DetectImageTagsOutcome; + typedef std::future DetectImageTagsOutcomeCallable; + typedef std::function&)> DetectImageTagsAsyncHandler; + typedef Outcome DetectQRCodesOutcome; + typedef std::future DetectQRCodesOutcomeCallable; + typedef std::function&)> DetectQRCodesAsyncHandler; typedef Outcome DetectTextAnomalyOutcome; typedef std::future DetectTextAnomalyOutcomeCallable; typedef std::function&)> DetectTextAnomalyAsyncHandler; + typedef Outcome EncodeBlindWatermarkOutcome; + typedef std::future EncodeBlindWatermarkOutcomeCallable; + typedef std::function&)> EncodeBlindWatermarkAsyncHandler; + typedef Outcome FindImagesOutcome; + typedef std::future FindImagesOutcomeCallable; + typedef std::function&)> FindImagesAsyncHandler; + typedef Outcome FindSimilarFacesOutcome; + typedef std::future FindSimilarFacesOutcomeCallable; + typedef std::function&)> FindSimilarFacesAsyncHandler; typedef Outcome FuzzyQueryOutcome; typedef std::future FuzzyQueryOutcomeCallable; typedef std::function&)> FuzzyQueryAsyncHandler; @@ -268,51 +413,117 @@ namespace AlibabaCloud typedef Outcome GetFileMetaOutcome; typedef std::future GetFileMetaOutcomeCallable; typedef std::function&)> GetFileMetaAsyncHandler; + typedef Outcome GetImageOutcome; + typedef std::future GetImageOutcomeCallable; + typedef std::function&)> GetImageAsyncHandler; + typedef Outcome GetImageCroppingSuggestionsOutcome; + typedef std::future GetImageCroppingSuggestionsOutcomeCallable; + typedef std::function&)> GetImageCroppingSuggestionsAsyncHandler; + typedef Outcome GetImageQualityOutcome; + typedef std::future GetImageQualityOutcomeCallable; + typedef std::function&)> GetImageQualityAsyncHandler; typedef Outcome GetMediaMetaOutcome; typedef std::future GetMediaMetaOutcomeCallable; typedef std::function&)> GetMediaMetaAsyncHandler; typedef Outcome GetOSSBucketAttachmentOutcome; typedef std::future GetOSSBucketAttachmentOutcomeCallable; typedef std::function&)> GetOSSBucketAttachmentAsyncHandler; + typedef Outcome GetOfficeConversionTaskOutcome; + typedef std::future GetOfficeConversionTaskOutcomeCallable; + typedef std::function&)> GetOfficeConversionTaskAsyncHandler; + typedef Outcome GetOfficePreviewURLOutcome; + typedef std::future GetOfficePreviewURLOutcomeCallable; + typedef std::function&)> GetOfficePreviewURLAsyncHandler; typedef Outcome GetProjectOutcome; typedef std::future GetProjectOutcomeCallable; typedef std::function&)> GetProjectAsyncHandler; + typedef Outcome GetSetOutcome; + typedef std::future GetSetOutcomeCallable; + typedef std::function&)> GetSetAsyncHandler; typedef Outcome GetStoryOutcome; typedef std::future GetStoryOutcomeCallable; typedef std::function&)> GetStoryAsyncHandler; typedef Outcome GetTaskOutcome; typedef std::future GetTaskOutcomeCallable; typedef std::function&)> GetTaskAsyncHandler; + typedef Outcome GetVideoOutcome; + typedef std::future GetVideoOutcomeCallable; + typedef std::function&)> GetVideoAsyncHandler; + typedef Outcome GetVideoTaskOutcome; + typedef std::future GetVideoTaskOutcomeCallable; + typedef std::function&)> GetVideoTaskAsyncHandler; typedef Outcome GetWebofficeURLOutcome; typedef std::future GetWebofficeURLOutcomeCallable; typedef std::function&)> GetWebofficeURLAsyncHandler; typedef Outcome IndexFileMetaOutcome; typedef std::future IndexFileMetaOutcomeCallable; typedef std::function&)> IndexFileMetaAsyncHandler; + typedef Outcome IndexImageOutcome; + typedef std::future IndexImageOutcomeCallable; + typedef std::function&)> IndexImageAsyncHandler; + typedef Outcome IndexVideoOutcome; + typedef std::future IndexVideoOutcomeCallable; + typedef std::function&)> IndexVideoAsyncHandler; typedef Outcome ListBindingsOutcome; typedef std::future ListBindingsOutcomeCallable; typedef std::function&)> ListBindingsAsyncHandler; typedef Outcome ListDatasetsOutcome; typedef std::future ListDatasetsOutcomeCallable; typedef std::function&)> ListDatasetsAsyncHandler; + typedef Outcome ListFaceGroupsOutcome; + typedef std::future ListFaceGroupsOutcomeCallable; + typedef std::function&)> ListFaceGroupsAsyncHandler; + typedef Outcome ListImagesOutcome; + typedef std::future ListImagesOutcomeCallable; + typedef std::function&)> ListImagesAsyncHandler; + typedef Outcome ListOfficeConversionTaskOutcome; + typedef std::future ListOfficeConversionTaskOutcomeCallable; + typedef std::function&)> ListOfficeConversionTaskAsyncHandler; typedef Outcome ListProjectsOutcome; typedef std::future ListProjectsOutcomeCallable; typedef std::function&)> ListProjectsAsyncHandler; typedef Outcome ListRegionsOutcome; typedef std::future ListRegionsOutcomeCallable; typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListSetTagsOutcome; + typedef std::future ListSetTagsOutcomeCallable; + typedef std::function&)> ListSetTagsAsyncHandler; + typedef Outcome ListSetsOutcome; + typedef std::future ListSetsOutcomeCallable; + typedef std::function&)> ListSetsAsyncHandler; typedef Outcome ListTasksOutcome; typedef std::future ListTasksOutcomeCallable; typedef std::function&)> ListTasksAsyncHandler; + typedef Outcome ListVideoAudiosOutcome; + typedef std::future ListVideoAudiosOutcomeCallable; + typedef std::function&)> ListVideoAudiosAsyncHandler; + typedef Outcome ListVideoFramesOutcome; + typedef std::future ListVideoFramesOutcomeCallable; + typedef std::function&)> ListVideoFramesAsyncHandler; + typedef Outcome ListVideoTasksOutcome; + typedef std::future ListVideoTasksOutcomeCallable; + typedef std::function&)> ListVideoTasksAsyncHandler; + typedef Outcome ListVideosOutcome; + typedef std::future ListVideosOutcomeCallable; + typedef std::function&)> ListVideosAsyncHandler; typedef Outcome MergeFigureClustersOutcome; typedef std::future MergeFigureClustersOutcomeCallable; typedef std::function&)> MergeFigureClustersAsyncHandler; + typedef Outcome OpenImmServiceOutcome; + typedef std::future OpenImmServiceOutcomeCallable; + typedef std::function&)> OpenImmServiceAsyncHandler; + typedef Outcome PutProjectOutcome; + typedef std::future PutProjectOutcomeCallable; + typedef std::function&)> PutProjectAsyncHandler; typedef Outcome QueryFigureClustersOutcome; typedef std::future QueryFigureClustersOutcomeCallable; typedef std::function&)> QueryFigureClustersAsyncHandler; typedef Outcome QueryStoriesOutcome; typedef std::future QueryStoriesOutcomeCallable; typedef std::function&)> QueryStoriesAsyncHandler; + typedef Outcome RefreshOfficePreviewTokenOutcome; + typedef std::future RefreshOfficePreviewTokenOutcomeCallable; + typedef std::function&)> RefreshOfficePreviewTokenAsyncHandler; typedef Outcome RefreshWebofficeTokenOutcome; typedef std::future RefreshWebofficeTokenOutcomeCallable; typedef std::function&)> RefreshWebofficeTokenAsyncHandler; @@ -334,15 +545,24 @@ namespace AlibabaCloud typedef Outcome UpdateDatasetOutcome; typedef std::future UpdateDatasetOutcomeCallable; typedef std::function&)> UpdateDatasetAsyncHandler; + typedef Outcome UpdateFaceGroupOutcome; + typedef std::future UpdateFaceGroupOutcomeCallable; + typedef std::function&)> UpdateFaceGroupAsyncHandler; typedef Outcome UpdateFigureClusterOutcome; typedef std::future UpdateFigureClusterOutcomeCallable; typedef std::function&)> UpdateFigureClusterAsyncHandler; typedef Outcome UpdateFileMetaOutcome; typedef std::future UpdateFileMetaOutcomeCallable; typedef std::function&)> UpdateFileMetaAsyncHandler; + typedef Outcome UpdateImageOutcome; + typedef std::future UpdateImageOutcomeCallable; + typedef std::function&)> UpdateImageAsyncHandler; typedef Outcome UpdateProjectOutcome; typedef std::future UpdateProjectOutcomeCallable; typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome UpdateSetOutcome; + typedef std::future UpdateSetOutcomeCallable; + typedef std::function&)> UpdateSetAsyncHandler; typedef Outcome UpdateStoryOutcome; typedef std::future UpdateStoryOutcomeCallable; typedef std::function&)> UpdateStoryAsyncHandler; @@ -369,6 +589,12 @@ namespace AlibabaCloud BatchUpdateFileMetaOutcome batchUpdateFileMeta(const Model::BatchUpdateFileMetaRequest &request)const; void batchUpdateFileMetaAsync(const Model::BatchUpdateFileMetaRequest& request, const BatchUpdateFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchUpdateFileMetaOutcomeCallable batchUpdateFileMetaCallable(const Model::BatchUpdateFileMetaRequest& request) const; + CompareImageFacesOutcome compareImageFaces(const Model::CompareImageFacesRequest &request)const; + void compareImageFacesAsync(const Model::CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareImageFacesOutcomeCallable compareImageFacesCallable(const Model::CompareImageFacesRequest& request) const; + ConvertOfficeFormatOutcome convertOfficeFormat(const Model::ConvertOfficeFormatRequest &request)const; + void convertOfficeFormatAsync(const Model::ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertOfficeFormatOutcomeCallable convertOfficeFormatCallable(const Model::ConvertOfficeFormatRequest& request) const; CreateBindingOutcome createBinding(const Model::CreateBindingRequest &request)const; void createBindingAsync(const Model::CreateBindingRequest& request, const CreateBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBindingOutcomeCallable createBindingCallable(const Model::CreateBindingRequest& request) const; @@ -384,6 +610,12 @@ namespace AlibabaCloud CreateFigureClustersMergingTaskOutcome createFigureClustersMergingTask(const Model::CreateFigureClustersMergingTaskRequest &request)const; void createFigureClustersMergingTaskAsync(const Model::CreateFigureClustersMergingTaskRequest& request, const CreateFigureClustersMergingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFigureClustersMergingTaskOutcomeCallable createFigureClustersMergingTaskCallable(const Model::CreateFigureClustersMergingTaskRequest& request) const; + CreateGrabFrameTaskOutcome createGrabFrameTask(const Model::CreateGrabFrameTaskRequest &request)const; + void createGrabFrameTaskAsync(const Model::CreateGrabFrameTaskRequest& request, const CreateGrabFrameTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGrabFrameTaskOutcomeCallable createGrabFrameTaskCallable(const Model::CreateGrabFrameTaskRequest& request) const; + CreateGroupFacesJobOutcome createGroupFacesJob(const Model::CreateGroupFacesJobRequest &request)const; + void createGroupFacesJobAsync(const Model::CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupFacesJobOutcomeCallable createGroupFacesJobCallable(const Model::CreateGroupFacesJobRequest& request) const; CreateImageModerationTaskOutcome createImageModerationTask(const Model::CreateImageModerationTaskRequest &request)const; void createImageModerationTaskAsync(const Model::CreateImageModerationTaskRequest& request, const CreateImageModerationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateImageModerationTaskOutcomeCallable createImageModerationTaskCallable(const Model::CreateImageModerationTaskRequest& request) const; @@ -393,18 +625,30 @@ namespace AlibabaCloud CreateMediaConvertTaskOutcome createMediaConvertTask(const Model::CreateMediaConvertTaskRequest &request)const; void createMediaConvertTaskAsync(const Model::CreateMediaConvertTaskRequest& request, const CreateMediaConvertTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMediaConvertTaskOutcomeCallable createMediaConvertTaskCallable(const Model::CreateMediaConvertTaskRequest& request) const; + CreateMergeFaceGroupsJobOutcome createMergeFaceGroupsJob(const Model::CreateMergeFaceGroupsJobRequest &request)const; + void createMergeFaceGroupsJobAsync(const Model::CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMergeFaceGroupsJobOutcomeCallable createMergeFaceGroupsJobCallable(const Model::CreateMergeFaceGroupsJobRequest& request) const; CreateOfficeConversionTaskOutcome createOfficeConversionTask(const Model::CreateOfficeConversionTaskRequest &request)const; void createOfficeConversionTaskAsync(const Model::CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOfficeConversionTaskOutcomeCallable createOfficeConversionTaskCallable(const Model::CreateOfficeConversionTaskRequest& request) const; CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const; void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const; + CreateSetOutcome createSet(const Model::CreateSetRequest &request)const; + void createSetAsync(const Model::CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSetOutcomeCallable createSetCallable(const Model::CreateSetRequest& request) const; CreateStoryOutcome createStory(const Model::CreateStoryRequest &request)const; void createStoryAsync(const Model::CreateStoryRequest& request, const CreateStoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStoryOutcomeCallable createStoryCallable(const Model::CreateStoryRequest& request) const; + CreateVideoCompressTaskOutcome createVideoCompressTask(const Model::CreateVideoCompressTaskRequest &request)const; + void createVideoCompressTaskAsync(const Model::CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVideoCompressTaskOutcomeCallable createVideoCompressTaskCallable(const Model::CreateVideoCompressTaskRequest& request) const; CreateVideoModerationTaskOutcome createVideoModerationTask(const Model::CreateVideoModerationTaskRequest &request)const; void createVideoModerationTaskAsync(const Model::CreateVideoModerationTaskRequest& request, const CreateVideoModerationTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateVideoModerationTaskOutcomeCallable createVideoModerationTaskCallable(const Model::CreateVideoModerationTaskRequest& request) const; + DecodeBlindWatermarkOutcome decodeBlindWatermark(const Model::DecodeBlindWatermarkRequest &request)const; + void decodeBlindWatermarkAsync(const Model::DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DecodeBlindWatermarkOutcomeCallable decodeBlindWatermarkCallable(const Model::DecodeBlindWatermarkRequest& request) const; DeleteBindingOutcome deleteBinding(const Model::DeleteBindingRequest &request)const; void deleteBindingAsync(const Model::DeleteBindingRequest& request, const DeleteBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBindingOutcomeCallable deleteBindingCallable(const Model::DeleteBindingRequest& request) const; @@ -414,12 +658,27 @@ namespace AlibabaCloud DeleteFileMetaOutcome deleteFileMeta(const Model::DeleteFileMetaRequest &request)const; void deleteFileMetaAsync(const Model::DeleteFileMetaRequest& request, const DeleteFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteFileMetaOutcomeCallable deleteFileMetaCallable(const Model::DeleteFileMetaRequest& request) const; + DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; + void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; + DeleteOfficeConversionTaskOutcome deleteOfficeConversionTask(const Model::DeleteOfficeConversionTaskRequest &request)const; + void deleteOfficeConversionTaskAsync(const Model::DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOfficeConversionTaskOutcomeCallable deleteOfficeConversionTaskCallable(const Model::DeleteOfficeConversionTaskRequest& request) const; DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + DeleteSetOutcome deleteSet(const Model::DeleteSetRequest &request)const; + void deleteSetAsync(const Model::DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSetOutcomeCallable deleteSetCallable(const Model::DeleteSetRequest& request) const; DeleteStoryOutcome deleteStory(const Model::DeleteStoryRequest &request)const; void deleteStoryAsync(const Model::DeleteStoryRequest& request, const DeleteStoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteStoryOutcomeCallable deleteStoryCallable(const Model::DeleteStoryRequest& request) const; + DeleteVideoOutcome deleteVideo(const Model::DeleteVideoRequest &request)const; + void deleteVideoAsync(const Model::DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoOutcomeCallable deleteVideoCallable(const Model::DeleteVideoRequest& request) const; + DeleteVideoTaskOutcome deleteVideoTask(const Model::DeleteVideoTaskRequest &request)const; + void deleteVideoTaskAsync(const Model::DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoTaskOutcomeCallable deleteVideoTaskCallable(const Model::DeleteVideoTaskRequest& request) const; DetachOSSBucketOutcome detachOSSBucket(const Model::DetachOSSBucketRequest &request)const; void detachOSSBucketAsync(const Model::DetachOSSBucketRequest& request, const DetachOSSBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetachOSSBucketOutcomeCallable detachOSSBucketCallable(const Model::DetachOSSBucketRequest& request) const; @@ -438,12 +697,30 @@ namespace AlibabaCloud DetectImageLabelsOutcome detectImageLabels(const Model::DetectImageLabelsRequest &request)const; void detectImageLabelsAsync(const Model::DetectImageLabelsRequest& request, const DetectImageLabelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageLabelsOutcomeCallable detectImageLabelsCallable(const Model::DetectImageLabelsRequest& request) const; + DetectImageQRCodesOutcome detectImageQRCodes(const Model::DetectImageQRCodesRequest &request)const; + void detectImageQRCodesAsync(const Model::DetectImageQRCodesRequest& request, const DetectImageQRCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageQRCodesOutcomeCallable detectImageQRCodesCallable(const Model::DetectImageQRCodesRequest& request) const; DetectImageScoreOutcome detectImageScore(const Model::DetectImageScoreRequest &request)const; void detectImageScoreAsync(const Model::DetectImageScoreRequest& request, const DetectImageScoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageScoreOutcomeCallable detectImageScoreCallable(const Model::DetectImageScoreRequest& request) const; + DetectImageTagsOutcome detectImageTags(const Model::DetectImageTagsRequest &request)const; + void detectImageTagsAsync(const Model::DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageTagsOutcomeCallable detectImageTagsCallable(const Model::DetectImageTagsRequest& request) const; + DetectQRCodesOutcome detectQRCodes(const Model::DetectQRCodesRequest &request)const; + void detectQRCodesAsync(const Model::DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectQRCodesOutcomeCallable detectQRCodesCallable(const Model::DetectQRCodesRequest& request) const; DetectTextAnomalyOutcome detectTextAnomaly(const Model::DetectTextAnomalyRequest &request)const; void detectTextAnomalyAsync(const Model::DetectTextAnomalyRequest& request, const DetectTextAnomalyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectTextAnomalyOutcomeCallable detectTextAnomalyCallable(const Model::DetectTextAnomalyRequest& request) const; + EncodeBlindWatermarkOutcome encodeBlindWatermark(const Model::EncodeBlindWatermarkRequest &request)const; + void encodeBlindWatermarkAsync(const Model::EncodeBlindWatermarkRequest& request, const EncodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EncodeBlindWatermarkOutcomeCallable encodeBlindWatermarkCallable(const Model::EncodeBlindWatermarkRequest& request) const; + FindImagesOutcome findImages(const Model::FindImagesRequest &request)const; + void findImagesAsync(const Model::FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindImagesOutcomeCallable findImagesCallable(const Model::FindImagesRequest& request) const; + FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const; + void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindSimilarFacesOutcomeCallable findSimilarFacesCallable(const Model::FindSimilarFacesRequest& request) const; FuzzyQueryOutcome fuzzyQuery(const Model::FuzzyQueryRequest &request)const; void fuzzyQueryAsync(const Model::FuzzyQueryRequest& request, const FuzzyQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FuzzyQueryOutcomeCallable fuzzyQueryCallable(const Model::FuzzyQueryRequest& request) const; @@ -462,51 +739,117 @@ namespace AlibabaCloud GetFileMetaOutcome getFileMeta(const Model::GetFileMetaRequest &request)const; void getFileMetaAsync(const Model::GetFileMetaRequest& request, const GetFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetFileMetaOutcomeCallable getFileMetaCallable(const Model::GetFileMetaRequest& request) const; + GetImageOutcome getImage(const Model::GetImageRequest &request)const; + void getImageAsync(const Model::GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageOutcomeCallable getImageCallable(const Model::GetImageRequest& request) const; + GetImageCroppingSuggestionsOutcome getImageCroppingSuggestions(const Model::GetImageCroppingSuggestionsRequest &request)const; + void getImageCroppingSuggestionsAsync(const Model::GetImageCroppingSuggestionsRequest& request, const GetImageCroppingSuggestionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageCroppingSuggestionsOutcomeCallable getImageCroppingSuggestionsCallable(const Model::GetImageCroppingSuggestionsRequest& request) const; + GetImageQualityOutcome getImageQuality(const Model::GetImageQualityRequest &request)const; + void getImageQualityAsync(const Model::GetImageQualityRequest& request, const GetImageQualityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageQualityOutcomeCallable getImageQualityCallable(const Model::GetImageQualityRequest& request) const; GetMediaMetaOutcome getMediaMeta(const Model::GetMediaMetaRequest &request)const; void getMediaMetaAsync(const Model::GetMediaMetaRequest& request, const GetMediaMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetMediaMetaOutcomeCallable getMediaMetaCallable(const Model::GetMediaMetaRequest& request) const; GetOSSBucketAttachmentOutcome getOSSBucketAttachment(const Model::GetOSSBucketAttachmentRequest &request)const; void getOSSBucketAttachmentAsync(const Model::GetOSSBucketAttachmentRequest& request, const GetOSSBucketAttachmentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetOSSBucketAttachmentOutcomeCallable getOSSBucketAttachmentCallable(const Model::GetOSSBucketAttachmentRequest& request) const; + GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const; + void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOfficeConversionTaskOutcomeCallable getOfficeConversionTaskCallable(const Model::GetOfficeConversionTaskRequest& request) const; + GetOfficePreviewURLOutcome getOfficePreviewURL(const Model::GetOfficePreviewURLRequest &request)const; + void getOfficePreviewURLAsync(const Model::GetOfficePreviewURLRequest& request, const GetOfficePreviewURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOfficePreviewURLOutcomeCallable getOfficePreviewURLCallable(const Model::GetOfficePreviewURLRequest& request) const; GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetProjectOutcomeCallable getProjectCallable(const Model::GetProjectRequest& request) const; + GetSetOutcome getSet(const Model::GetSetRequest &request)const; + void getSetAsync(const Model::GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSetOutcomeCallable getSetCallable(const Model::GetSetRequest& request) const; GetStoryOutcome getStory(const Model::GetStoryRequest &request)const; void getStoryAsync(const Model::GetStoryRequest& request, const GetStoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStoryOutcomeCallable getStoryCallable(const Model::GetStoryRequest& request) const; GetTaskOutcome getTask(const Model::GetTaskRequest &request)const; void getTaskAsync(const Model::GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetTaskOutcomeCallable getTaskCallable(const Model::GetTaskRequest& request) const; + GetVideoOutcome getVideo(const Model::GetVideoRequest &request)const; + void getVideoAsync(const Model::GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoOutcomeCallable getVideoCallable(const Model::GetVideoRequest& request) const; + GetVideoTaskOutcome getVideoTask(const Model::GetVideoTaskRequest &request)const; + void getVideoTaskAsync(const Model::GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoTaskOutcomeCallable getVideoTaskCallable(const Model::GetVideoTaskRequest& request) const; GetWebofficeURLOutcome getWebofficeURL(const Model::GetWebofficeURLRequest &request)const; void getWebofficeURLAsync(const Model::GetWebofficeURLRequest& request, const GetWebofficeURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetWebofficeURLOutcomeCallable getWebofficeURLCallable(const Model::GetWebofficeURLRequest& request) const; IndexFileMetaOutcome indexFileMeta(const Model::IndexFileMetaRequest &request)const; void indexFileMetaAsync(const Model::IndexFileMetaRequest& request, const IndexFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; IndexFileMetaOutcomeCallable indexFileMetaCallable(const Model::IndexFileMetaRequest& request) const; + IndexImageOutcome indexImage(const Model::IndexImageRequest &request)const; + void indexImageAsync(const Model::IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexImageOutcomeCallable indexImageCallable(const Model::IndexImageRequest& request) const; + IndexVideoOutcome indexVideo(const Model::IndexVideoRequest &request)const; + void indexVideoAsync(const Model::IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexVideoOutcomeCallable indexVideoCallable(const Model::IndexVideoRequest& request) const; ListBindingsOutcome listBindings(const Model::ListBindingsRequest &request)const; void listBindingsAsync(const Model::ListBindingsRequest& request, const ListBindingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListBindingsOutcomeCallable listBindingsCallable(const Model::ListBindingsRequest& request) const; ListDatasetsOutcome listDatasets(const Model::ListDatasetsRequest &request)const; void listDatasetsAsync(const Model::ListDatasetsRequest& request, const ListDatasetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDatasetsOutcomeCallable listDatasetsCallable(const Model::ListDatasetsRequest& request) const; + ListFaceGroupsOutcome listFaceGroups(const Model::ListFaceGroupsRequest &request)const; + void listFaceGroupsAsync(const Model::ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceGroupsOutcomeCallable listFaceGroupsCallable(const Model::ListFaceGroupsRequest& request) const; + ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; + void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; + ListOfficeConversionTaskOutcome listOfficeConversionTask(const Model::ListOfficeConversionTaskRequest &request)const; + void listOfficeConversionTaskAsync(const Model::ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOfficeConversionTaskOutcomeCallable listOfficeConversionTaskCallable(const Model::ListOfficeConversionTaskRequest& request) const; ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const; void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const; ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListSetTagsOutcome listSetTags(const Model::ListSetTagsRequest &request)const; + void listSetTagsAsync(const Model::ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetTagsOutcomeCallable listSetTagsCallable(const Model::ListSetTagsRequest& request) const; + ListSetsOutcome listSets(const Model::ListSetsRequest &request)const; + void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetsOutcomeCallable listSetsCallable(const Model::ListSetsRequest& request) const; ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const; void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const; + ListVideoAudiosOutcome listVideoAudios(const Model::ListVideoAudiosRequest &request)const; + void listVideoAudiosAsync(const Model::ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoAudiosOutcomeCallable listVideoAudiosCallable(const Model::ListVideoAudiosRequest& request) const; + ListVideoFramesOutcome listVideoFrames(const Model::ListVideoFramesRequest &request)const; + void listVideoFramesAsync(const Model::ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoFramesOutcomeCallable listVideoFramesCallable(const Model::ListVideoFramesRequest& request) const; + ListVideoTasksOutcome listVideoTasks(const Model::ListVideoTasksRequest &request)const; + void listVideoTasksAsync(const Model::ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoTasksOutcomeCallable listVideoTasksCallable(const Model::ListVideoTasksRequest& request) const; + ListVideosOutcome listVideos(const Model::ListVideosRequest &request)const; + void listVideosAsync(const Model::ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideosOutcomeCallable listVideosCallable(const Model::ListVideosRequest& request) const; MergeFigureClustersOutcome mergeFigureClusters(const Model::MergeFigureClustersRequest &request)const; void mergeFigureClustersAsync(const Model::MergeFigureClustersRequest& request, const MergeFigureClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; MergeFigureClustersOutcomeCallable mergeFigureClustersCallable(const Model::MergeFigureClustersRequest& request) const; + OpenImmServiceOutcome openImmService(const Model::OpenImmServiceRequest &request)const; + void openImmServiceAsync(const Model::OpenImmServiceRequest& request, const OpenImmServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + OpenImmServiceOutcomeCallable openImmServiceCallable(const Model::OpenImmServiceRequest& request) const; + PutProjectOutcome putProject(const Model::PutProjectRequest &request)const; + void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const; QueryFigureClustersOutcome queryFigureClusters(const Model::QueryFigureClustersRequest &request)const; void queryFigureClustersAsync(const Model::QueryFigureClustersRequest& request, const QueryFigureClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFigureClustersOutcomeCallable queryFigureClustersCallable(const Model::QueryFigureClustersRequest& request) const; QueryStoriesOutcome queryStories(const Model::QueryStoriesRequest &request)const; void queryStoriesAsync(const Model::QueryStoriesRequest& request, const QueryStoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryStoriesOutcomeCallable queryStoriesCallable(const Model::QueryStoriesRequest& request) const; + RefreshOfficePreviewTokenOutcome refreshOfficePreviewToken(const Model::RefreshOfficePreviewTokenRequest &request)const; + void refreshOfficePreviewTokenAsync(const Model::RefreshOfficePreviewTokenRequest& request, const RefreshOfficePreviewTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RefreshOfficePreviewTokenOutcomeCallable refreshOfficePreviewTokenCallable(const Model::RefreshOfficePreviewTokenRequest& request) const; RefreshWebofficeTokenOutcome refreshWebofficeToken(const Model::RefreshWebofficeTokenRequest &request)const; void refreshWebofficeTokenAsync(const Model::RefreshWebofficeTokenRequest& request, const RefreshWebofficeTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshWebofficeTokenOutcomeCallable refreshWebofficeTokenCallable(const Model::RefreshWebofficeTokenRequest& request) const; @@ -528,15 +871,24 @@ namespace AlibabaCloud UpdateDatasetOutcome updateDataset(const Model::UpdateDatasetRequest &request)const; void updateDatasetAsync(const Model::UpdateDatasetRequest& request, const UpdateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDatasetOutcomeCallable updateDatasetCallable(const Model::UpdateDatasetRequest& request) const; + UpdateFaceGroupOutcome updateFaceGroup(const Model::UpdateFaceGroupRequest &request)const; + void updateFaceGroupAsync(const Model::UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateFaceGroupOutcomeCallable updateFaceGroupCallable(const Model::UpdateFaceGroupRequest& request) const; UpdateFigureClusterOutcome updateFigureCluster(const Model::UpdateFigureClusterRequest &request)const; void updateFigureClusterAsync(const Model::UpdateFigureClusterRequest& request, const UpdateFigureClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateFigureClusterOutcomeCallable updateFigureClusterCallable(const Model::UpdateFigureClusterRequest& request) const; UpdateFileMetaOutcome updateFileMeta(const Model::UpdateFileMetaRequest &request)const; void updateFileMetaAsync(const Model::UpdateFileMetaRequest& request, const UpdateFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateFileMetaOutcomeCallable updateFileMetaCallable(const Model::UpdateFileMetaRequest& request) const; + UpdateImageOutcome updateImage(const Model::UpdateImageRequest &request)const; + void updateImageAsync(const Model::UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateImageOutcomeCallable updateImageCallable(const Model::UpdateImageRequest& request) const; UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; + UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const; + void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const; UpdateStoryOutcome updateStory(const Model::UpdateStoryRequest &request)const; void updateStoryAsync(const Model::UpdateStoryRequest& request, const UpdateStoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateStoryOutcomeCallable updateStoryCallable(const Model::UpdateStoryRequest& request) const; diff --git a/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h b/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h index c0f032904..037d528a5 100644 --- a/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h +++ b/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h @@ -33,18 +33,18 @@ public: }; AddStoryFilesRequest(); ~AddStoryFilesRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::vector getFiles() const; void setFiles(const std::vector &files); std::string getObjectId() const; void setObjectId(const std::string &objectId); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::vector files_; std::string objectId_; }; diff --git a/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h index 0a32aa49a..1829a926e 100644 --- a/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT BatchDeleteFileMetaRequest : public RpcServiceRequ public: BatchDeleteFileMetaRequest(); ~BatchDeleteFileMetaRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); std::vector getURIs() const; void setURIs(const std::vector &uRIs); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string datasetName_; - std::string projectName_; std::vector uRIs_; + std::string projectName_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h index 58be65736..8f394b9ad 100644 --- a/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT BatchGetFileMetaRequest : public RpcServiceRequest public: BatchGetFileMetaRequest(); ~BatchGetFileMetaRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); std::vector getURIs() const; void setURIs(const std::vector &uRIs); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string datasetName_; - std::string projectName_; std::vector uRIs_; + std::string projectName_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h index 42875dc01..db68a1ace 100644 --- a/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h @@ -46,22 +46,22 @@ public: }; BatchIndexFileMetaRequest(); ~BatchIndexFileMetaRequest(); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::vector getFiles() const; void setFiles(const std::vector &files); private: - std::string notifyEndpoint_; - std::string datasetName_; std::string projectName_; std::string notifyTopicName_; + std::string notifyEndpoint_; + std::string datasetName_; std::vector files_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h index 5f8216516..f0732302c 100644 --- a/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h @@ -46,16 +46,16 @@ public: }; BatchUpdateFileMetaRequest(); ~BatchUpdateFileMetaRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::vector getFiles() const; void setFiles(const std::vector &files); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::vector files_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h new file mode 100644 index 000000000..1f4a019c6 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h @@ -0,0 +1,60 @@ +/* + * 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_COMPAREIMAGEFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CompareImageFacesRequest : public RpcServiceRequest { +public: + CompareImageFacesRequest(); + ~CompareImageFacesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getFaceIdA() const; + void setFaceIdA(const std::string &faceIdA); + std::string getFaceIdB() const; + void setFaceIdB(const std::string &faceIdB); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUriB() const; + void setImageUriB(const std::string &imageUriB); + std::string getImageUriA() const; + void setImageUriA(const std::string &imageUriA); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string faceIdA_; + std::string faceIdB_; + std::string accessKeyId_; + std::string imageUriB_; + std::string imageUriA_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h new file mode 100644 index 000000000..e22f72f91 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h @@ -0,0 +1,89 @@ +/* + * 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_COMPAREIMAGEFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareImageFacesResult : public ServiceResult + { + public: + struct FaceA + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + FaceBoundary faceBoundary; + }; + std::string faceId; + FaceAttributes faceAttributes; + }; + struct FaceB + { + struct FaceAttributes1 + { + struct FaceBoundary2 + { + int left; + int top; + int height; + int width; + }; + FaceBoundary2 faceBoundary2; + }; + std::string faceId; + FaceAttributes1 faceAttributes1; + }; + + + CompareImageFacesResult(); + explicit CompareImageFacesResult(const std::string &payload); + ~CompareImageFacesResult(); + float getSimilarity()const; + FaceA getFaceA()const; + std::string getSetId()const; + FaceB getFaceB()const; + + protected: + void parse(const std::string &payload); + private: + float similarity_; + FaceA faceA_; + std::string setId_; + FaceB faceB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h new file mode 100644 index 000000000..dee2cfcd3 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h @@ -0,0 +1,102 @@ +/* + * 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_CONVERTOFFICEFORMATREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatRequest : public RpcServiceRequest { +public: + ConvertOfficeFormatRequest(); + ~ConvertOfficeFormatRequest(); + std::string getSrcType() const; + void setSrcType(const std::string &srcType); + std::string getProject() const; + void setProject(const std::string &project); + bool getPdfVector() const; + void setPdfVector(bool pdfVector); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPassword() const; + void setPassword(const std::string &password); + long getStartPage() const; + void setStartPage(long startPage); + bool getFitToPagesWide() const; + void setFitToPagesWide(bool fitToPagesWide); + std::string getTgtFilePrefix() const; + void setTgtFilePrefix(const std::string &tgtFilePrefix); + std::string getModelId() const; + void setModelId(const std::string &modelId); + long getMaxSheetRow() const; + void setMaxSheetRow(long maxSheetRow); + long getMaxSheetCount() const; + void setMaxSheetCount(long maxSheetCount); + long getEndPage() const; + void setEndPage(long endPage); + std::string getTgtFileSuffix() const; + void setTgtFileSuffix(const std::string &tgtFileSuffix); + bool getSheetOnePage() const; + void setSheetOnePage(bool sheetOnePage); + long getMaxSheetCol() const; + void setMaxSheetCol(long maxSheetCol); + std::string getTgtType() const; + void setTgtType(const std::string &tgtType); + bool getHidecomments() const; + void setHidecomments(bool hidecomments); + bool getFitToPagesTall() const; + void setFitToPagesTall(bool fitToPagesTall); + std::string getSrcUri() const; + void setSrcUri(const std::string &srcUri); + std::string getTgtFilePages() const; + void setTgtFilePages(const std::string &tgtFilePages); + std::string getTgtUri() const; + void setTgtUri(const std::string &tgtUri); + +private: + std::string srcType_; + std::string project_; + bool pdfVector_; + std::string accessKeyId_; + std::string password_; + long startPage_; + bool fitToPagesWide_; + std::string tgtFilePrefix_; + std::string modelId_; + long maxSheetRow_; + long maxSheetCount_; + long endPage_; + std::string tgtFileSuffix_; + bool sheetOnePage_; + long maxSheetCol_; + std::string tgtType_; + bool hidecomments_; + bool fitToPagesTall_; + std::string srcUri_; + std::string tgtFilePages_; + std::string tgtUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h new file mode 100644 index 000000000..aac5d2587 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h @@ -0,0 +1,51 @@ +/* + * 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_CONVERTOFFICEFORMATRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatResult : public ServiceResult + { + public: + + + ConvertOfficeFormatResult(); + explicit ConvertOfficeFormatResult(const std::string &payload); + ~ConvertOfficeFormatResult(); + int getPageCount()const; + + protected: + void parse(const std::string &payload); + private: + int pageCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateBindingRequest.h b/imm/include/alibabacloud/imm/model/CreateBindingRequest.h index f521544b0..1e69c748f 100644 --- a/imm/include/alibabacloud/imm/model/CreateBindingRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateBindingRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_IMM_EXPORT CreateBindingRequest : public RpcServiceRequest { public: CreateBindingRequest(); ~CreateBindingRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); std::string getBucketOwnerId() const; void setBucketOwnerId(const std::string &bucketOwnerId); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); std::string getURI() const; void setURI(const std::string &uRI); private: + std::string projectName_; std::string bucketOwnerId_; std::string datasetName_; - std::string projectName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h b/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h index 4f3a09b7a..5888834b0 100644 --- a/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h @@ -30,35 +30,35 @@ class ALIBABACLOUD_IMM_EXPORT CreateDatasetRequest : public RpcServiceRequest { public: CreateDatasetRequest(); ~CreateDatasetRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); long getDatasetMaxBindCount() const; void setDatasetMaxBindCount(long datasetMaxBindCount); - std::string getDescription() const; - void setDescription(const std::string &description); + long getDatasetMaxTotalFileSize() const; + void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); long getDatasetMaxRelationCount() const; void setDatasetMaxRelationCount(long datasetMaxRelationCount); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - long getDatasetMaxFileCount() const; - void setDatasetMaxFileCount(long datasetMaxFileCount); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); + std::string getDescription() const; + void setDescription(const std::string &description); long getDatasetMaxEntityCount() const; void setDatasetMaxEntityCount(long datasetMaxEntityCount); + long getDatasetMaxFileCount() const; + void setDatasetMaxFileCount(long datasetMaxFileCount); std::string getTemplateId() const; void setTemplateId(const std::string &templateId); - long getDatasetMaxTotalFileSize() const; - void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); private: + std::string projectName_; long datasetMaxBindCount_; - std::string description_; + long datasetMaxTotalFileSize_; long datasetMaxRelationCount_; std::string datasetName_; - long datasetMaxFileCount_; - std::string projectName_; + std::string description_; long datasetMaxEntityCount_; + long datasetMaxFileCount_; std::string templateId_; - long datasetMaxTotalFileSize_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h index 21cbcc337..9e2ac24ab 100644 --- a/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h @@ -43,27 +43,27 @@ public: ~CreateDetectVideoLabelsTaskRequest(); std::string getUserData() const; void setUserData(const std::string &userData); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getSourceURI() const; + void setSourceURI(const std::string &sourceURI); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); CredentialConfig getCredentialConfig() const; void setCredentialConfig(const CredentialConfig &credentialConfig); std::map getTags() const; void setTags(const std::map &tags); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); private: std::string userData_; - std::string notifyEndpoint_; std::string projectName_; std::string notifyTopicName_; + std::string sourceURI_; + std::string notifyEndpoint_; CredentialConfig credentialConfig_; std::map tags_; - std::string sourceURI_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h index 9dad6fb61..a11d77035 100644 --- a/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h @@ -32,23 +32,23 @@ public: ~CreateFigureClusteringTaskRequest(); std::string getUserData() const; void setUserData(const std::string &userData); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::map getTags() const; void setTags(const std::map &tags); private: std::string userData_; - std::string notifyEndpoint_; - std::string datasetName_; std::string projectName_; std::string notifyTopicName_; + std::string notifyEndpoint_; + std::string datasetName_; std::map tags_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h index 08984047a..874ee2d11 100644 --- a/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h @@ -32,30 +32,30 @@ public: ~CreateFigureClustersMergingTaskRequest(); std::string getUserData() const; void setUserData(const std::string &userData); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); std::string getNotifyEndpoint() const; void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); std::string getFrom() const; void setFrom(const std::string &from); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - std::map getTags() const; - void setTags(const std::map &tags); std::string getTo() const; void setTo(const std::string &to); + std::map getTags() const; + void setTags(const std::map &tags); private: std::string userData_; + std::string projectName_; + std::string notifyTopicName_; std::string notifyEndpoint_; std::string datasetName_; std::string from_; - std::string projectName_; - std::string notifyTopicName_; - std::map tags_; std::string to_; + std::map tags_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h new file mode 100644 index 000000000..dfea6186a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h @@ -0,0 +1,60 @@ +/* + * 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_CREATEGRABFRAMETASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateGrabFrameTaskRequest : public RpcServiceRequest { +public: + CreateGrabFrameTaskRequest(); + ~CreateGrabFrameTaskRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getCustomMessage() const; + void setCustomMessage(const std::string &customMessage); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getTargetList() const; + void setTargetList(const std::string &targetList); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + +private: + std::string project_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string customMessage_; + std::string notifyTopicName_; + std::string targetList_; + std::string videoUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h b/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h new file mode 100644 index 000000000..e9f3b9b90 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.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_CREATEGRABFRAMETASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGrabFrameTaskResult : public ServiceResult + { + public: + + + CreateGrabFrameTaskResult(); + explicit CreateGrabFrameTaskResult(const std::string &payload); + ~CreateGrabFrameTaskResult(); + 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_CREATEGRABFRAMETASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h new file mode 100644 index 000000000..64108bb59 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h @@ -0,0 +1,54 @@ +/* + * 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_CREATEGROUPFACESJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobRequest : public RpcServiceRequest { +public: + CreateGroupFacesJobRequest(); + ~CreateGroupFacesJobRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string notifyTopicName_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h new file mode 100644 index 000000000..5afeac895 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h @@ -0,0 +1,55 @@ +/* + * 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_CREATEGROUPFACESJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobResult : public ServiceResult + { + public: + + + CreateGroupFacesJobResult(); + explicit CreateGroupFacesJobResult(const std::string &payload); + ~CreateGroupFacesJobResult(); + std::string getJobType()const; + std::string getSetId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobType_; + std::string setId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h index 46f51b77d..4e20def86 100644 --- a/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h @@ -43,39 +43,39 @@ public: ~CreateImageModerationTaskRequest(); std::string getUserData() const; void setUserData(const std::string &userData); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getSourceURI() const; + void setSourceURI(const std::string &sourceURI); + std::vector getScenes() const; + void setScenes(const std::vector &scenes); long getMaxFrames() const; void setMaxFrames(long maxFrames); + long getInterval() const; + void setInterval(long interval); CredentialConfig getCredentialConfig() const; void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getReviewer() const; void setReviewer(const std::string &reviewer); std::map getTags() const; void setTags(const std::map &tags); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); - std::vector getScenes() const; - void setScenes(const std::vector &scenes); - long getInterval() const; - void setInterval(long interval); private: std::string userData_; - std::string notifyEndpoint_; std::string projectName_; std::string notifyTopicName_; + std::string notifyEndpoint_; + std::string sourceURI_; + std::vector scenes_; long maxFrames_; + long interval_; CredentialConfig credentialConfig_; std::string reviewer_; std::map tags_; - std::string sourceURI_; - std::vector scenes_; - long interval_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h index 7ef074e38..6a5667d83 100644 --- a/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h @@ -45,56 +45,56 @@ public: }; CreateImageSplicingTaskRequest(); ~CreateImageSplicingTaskRequest(); - long getAlign() const; - void setAlign(long align); - std::string getBackgroundColor() const; - void setBackgroundColor(const std::string &backgroundColor); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getScaleType() const; - void setScaleType(const std::string &scaleType); + long getPadding() const; + void setPadding(long padding); std::string getProjectName() const; void setProjectName(const std::string &projectName); long getMargin() const; void setMargin(long margin); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); - long getQuality() const; - void setQuality(long quality); - std::map getTags() const; - void setTags(const std::map &tags); std::vector getSources() const; void setSources(const std::vector &sources); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); + long getAlign() const; + void setAlign(long align); + long getQuality() const; + void setQuality(long quality); + std::string getBackgroundColor() const; + void setBackgroundColor(const std::string &backgroundColor); + std::map getTags() const; + void setTags(const std::map &tags); std::string getUserData() const; void setUserData(const std::string &userData); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getTargetURI() const; void setTargetURI(const std::string &targetURI); + std::string getScaleType() const; + void setScaleType(const std::string &scaleType); std::string getImageFormat() const; void setImageFormat(const std::string &imageFormat); std::string getDirection() const; void setDirection(const std::string &direction); - long getPadding() const; - void setPadding(long padding); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); private: - long align_; - std::string backgroundColor_; - std::string notifyEndpoint_; - std::string scaleType_; + long padding_; std::string projectName_; long margin_; std::string notifyTopicName_; - long quality_; - std::map tags_; std::vector sources_; + CredentialConfig credentialConfig_; + long align_; + long quality_; + std::string backgroundColor_; + std::map tags_; std::string userData_; + std::string notifyEndpoint_; std::string targetURI_; + std::string scaleType_; std::string imageFormat_; std::string direction_; - long padding_; - CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h index fbfa79eb7..ab89cafa7 100644 --- a/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h @@ -40,6 +40,17 @@ public: double startTime; std::string uRI; }; + struct CredentialConfig { + struct ChainItem { + std::string role; + std::string roleType; + std::string assumeRoleFor; + }; + ChainItem chainItem; + std::vector chain; + std::string serviceRole; + std::string policy; + }; struct Targets { std::string container; struct Image { @@ -176,44 +187,33 @@ public: std::string uRI; float speed; }; - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; CreateMediaConvertTaskRequest(); ~CreateMediaConvertTaskRequest(); - std::vector getSources() const; - void setSources(const std::vector &sources); - std::vector getTargets() const; - void setTargets(const std::vector &targets); std::string getUserData() const; void setUserData(const std::string &userData); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::vector getSources() const; + void setSources(const std::vector &sources); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); CredentialConfig getCredentialConfig() const; void setCredentialConfig(const CredentialConfig &credentialConfig); + std::vector getTargets() const; + void setTargets(const std::vector &targets); std::map getTags() const; void setTags(const std::map &tags); private: - std::vector sources_; - std::vector targets_; std::string userData_; - std::string notifyEndpoint_; std::string projectName_; std::string notifyTopicName_; + std::vector sources_; + std::string notifyEndpoint_; CredentialConfig credentialConfig_; + std::vector targets_; std::map tags_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h new file mode 100644 index 000000000..a45ce77de --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h @@ -0,0 +1,63 @@ +/* + * 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_CREATEMERGEFACEGROUPSJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobRequest : public RpcServiceRequest { +public: + CreateMergeFaceGroupsJobRequest(); + ~CreateMergeFaceGroupsJobRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getCustomMessage() const; + void setCustomMessage(const std::string &customMessage); + std::string getGroupIdFrom() const; + void setGroupIdFrom(const std::string &groupIdFrom); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getGroupIdTo() const; + void setGroupIdTo(const std::string &groupIdTo); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string customMessage_; + std::string groupIdFrom_; + std::string notifyTopicName_; + std::string groupIdTo_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h new file mode 100644 index 000000000..1a8a57a2b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h @@ -0,0 +1,59 @@ +/* + * 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_CREATEMERGEFACEGROUPSJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobResult : public ServiceResult + { + public: + + + CreateMergeFaceGroupsJobResult(); + explicit CreateMergeFaceGroupsJobResult(const std::string &payload); + ~CreateMergeFaceGroupsJobResult(); + std::string getGroupIdFrom()const; + std::string getJobType()const; + std::string getSetId()const; + std::string getGroupIdTo()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupIdFrom_; + std::string jobType_; + std::string setId_; + std::string groupIdTo_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h index f8a239897..41ee495ef 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h @@ -28,123 +28,88 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskRequest : public RpcServiceRequest { public: - struct TrimPolicy { - bool disableDeleteUnusedPicture; - bool disableDeleteRepeatedStyle; - bool disableDeleteUnusedShape; - bool disableDeleteEmptyCell; - }; - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; CreateOfficeConversionTaskRequest(); ~CreateOfficeConversionTaskRequest(); - long getSheetCount() const; - void setSheetCount(long sheetCount); - bool getShowComments() const; - void setShowComments(bool showComments); - std::string getPassword() const; - void setPassword(const std::string &password); - std::string getPages() const; - void setPages(const std::string &pages); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getSourceType() const; - void setSourceType(const std::string &sourceType); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - bool getFitToHeight() const; - void setFitToHeight(bool fitToHeight); - long getEndPage() const; - void setEndPage(long endPage); - bool getFitToWidth() const; - void setFitToWidth(bool fitToWidth); - long getQuality() const; - void setQuality(long quality); - std::map getTags() const; - void setTags(const std::map &tags); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); - long getSheetIndex() const; - void setSheetIndex(long sheetIndex); - bool getHoldLineFeed() const; - void setHoldLineFeed(bool holdLineFeed); - bool getLongText() const; - void setLongText(bool longText); - std::string getTargetType() const; - void setTargetType(const std::string &targetType); - TrimPolicy getTrimPolicy() const; - void setTrimPolicy(const TrimPolicy &trimPolicy); - long getMaxSheetColumn() const; - void setMaxSheetColumn(long maxSheetColumn); - bool getFirstPage() const; - void setFirstPage(bool firstPage); - bool getPaperHorizontal() const; - void setPaperHorizontal(bool paperHorizontal); + std::string getSrcType() const; + void setSrcType(const std::string &srcType); + std::string getProject() const; + void setProject(const std::string &project); + std::string getIdempotentToken() const; + void setIdempotentToken(const std::string &idempotentToken); + bool getPdfVector() const; + void setPdfVector(bool pdfVector); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); std::string getUserData() const; void setUserData(const std::string &userData); - long getScalePercentage() const; - void setScalePercentage(long scalePercentage); + std::string getPassword() const; + void setPassword(const std::string &password); long getStartPage() const; void setStartPage(long startPage); - std::string getTargetURIPrefix() const; - void setTargetURIPrefix(const std::string &targetURIPrefix); - std::string getTargetURI() const; - void setTargetURI(const std::string &targetURI); - std::string getPaperSize() const; - void setPaperSize(const std::string &paperSize); - long getImageDPI() const; - void setImageDPI(long imageDPI); - bool getLongPicture() const; - void setLongPicture(bool longPicture); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + bool getFitToPagesWide() const; + void setFitToPagesWide(bool fitToPagesWide); + std::string getTgtFilePrefix() const; + void setTgtFilePrefix(const std::string &tgtFilePrefix); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getModelId() const; + void setModelId(const std::string &modelId); + int getDisplayDpi() const; + void setDisplayDpi(int displayDpi); long getMaxSheetRow() const; void setMaxSheetRow(long maxSheetRow); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); + long getMaxSheetCount() const; + void setMaxSheetCount(long maxSheetCount); + long getEndPage() const; + void setEndPage(long endPage); + std::string getTgtFileSuffix() const; + void setTgtFileSuffix(const std::string &tgtFileSuffix); + bool getSheetOnePage() const; + void setSheetOnePage(bool sheetOnePage); + long getMaxSheetCol() const; + void setMaxSheetCol(long maxSheetCol); + std::string getTgtType() const; + void setTgtType(const std::string &tgtType); + bool getHidecomments() const; + void setHidecomments(bool hidecomments); + bool getFitToPagesTall() const; + void setFitToPagesTall(bool fitToPagesTall); + std::string getSrcUri() const; + void setSrcUri(const std::string &srcUri); + std::string getTgtFilePages() const; + void setTgtFilePages(const std::string &tgtFilePages); + std::string getTgtUri() const; + void setTgtUri(const std::string &tgtUri); private: - long sheetCount_; - bool showComments_; - std::string password_; - std::string pages_; - std::string notifyEndpoint_; - std::string sourceType_; - std::string projectName_; - std::string notifyTopicName_; - bool fitToHeight_; - long endPage_; - bool fitToWidth_; - long quality_; - std::map tags_; - std::string sourceURI_; - long sheetIndex_; - bool holdLineFeed_; - bool longText_; - std::string targetType_; - TrimPolicy trimPolicy_; - long maxSheetColumn_; - bool firstPage_; - bool paperHorizontal_; + std::string srcType_; + std::string project_; + std::string idempotentToken_; + bool pdfVector_; + std::string accessKeyId_; std::string userData_; - long scalePercentage_; + std::string password_; long startPage_; - std::string targetURIPrefix_; - std::string targetURI_; - std::string paperSize_; - long imageDPI_; - bool longPicture_; + std::string notifyEndpoint_; + bool fitToPagesWide_; + std::string tgtFilePrefix_; + std::string notifyTopicName_; + std::string modelId_; + int displayDpi_; long maxSheetRow_; - CredentialConfig credentialConfig_; + long maxSheetCount_; + long endPage_; + std::string tgtFileSuffix_; + bool sheetOnePage_; + long maxSheetCol_; + std::string tgtType_; + bool hidecomments_; + bool fitToPagesTall_; + std::string srcUri_; + std::string tgtFilePages_; + std::string tgtUri_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h index 74636e4d5..03febe08c 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h @@ -37,14 +37,20 @@ namespace AlibabaCloud CreateOfficeConversionTaskResult(); explicit CreateOfficeConversionTaskResult(const std::string &payload); ~CreateOfficeConversionTaskResult(); + std::string getStatus()const; std::string getTaskId()const; - std::string getEventId()const; + int getPercent()const; + std::string getCreateTime()const; + std::string getTgtLoc()const; protected: void parse(const std::string &payload); private: + std::string status_; std::string taskId_; - std::string eventId_; + int percent_; + std::string createTime_; + std::string tgtLoc_; }; } diff --git a/imm/include/alibabacloud/imm/model/CreateProjectRequest.h b/imm/include/alibabacloud/imm/model/CreateProjectRequest.h index 65aaef353..c77aafab0 100644 --- a/imm/include/alibabacloud/imm/model/CreateProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateProjectRequest.h @@ -32,42 +32,42 @@ public: ~CreateProjectRequest(); long getEngineConcurrency() const; void setEngineConcurrency(long engineConcurrency); - long getDatasetMaxBindCount() const; - void setDatasetMaxBindCount(long datasetMaxBindCount); - std::string getDescription() const; - void setDescription(const std::string &description); - long getProjectQueriesPerSecond() const; - void setProjectQueriesPerSecond(long projectQueriesPerSecond); - long getDatasetMaxRelationCount() const; - void setDatasetMaxRelationCount(long datasetMaxRelationCount); - long getDatasetMaxFileCount() const; - void setDatasetMaxFileCount(long datasetMaxFileCount); std::string getProjectName() const; void setProjectName(const std::string &projectName); + long getDatasetMaxBindCount() const; + void setDatasetMaxBindCount(long datasetMaxBindCount); long getProjectMaxDatasetCount() const; void setProjectMaxDatasetCount(long projectMaxDatasetCount); - long getDatasetMaxEntityCount() const; - void setDatasetMaxEntityCount(long datasetMaxEntityCount); - std::string getTemplateId() const; - void setTemplateId(const std::string &templateId); long getDatasetMaxTotalFileSize() const; void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); std::string getServiceRole() const; void setServiceRole(const std::string &serviceRole); + long getProjectQueriesPerSecond() const; + void setProjectQueriesPerSecond(long projectQueriesPerSecond); + long getDatasetMaxRelationCount() const; + void setDatasetMaxRelationCount(long datasetMaxRelationCount); + std::string getDescription() const; + void setDescription(const std::string &description); + long getDatasetMaxEntityCount() const; + void setDatasetMaxEntityCount(long datasetMaxEntityCount); + long getDatasetMaxFileCount() const; + void setDatasetMaxFileCount(long datasetMaxFileCount); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); private: long engineConcurrency_; - long datasetMaxBindCount_; - std::string description_; - long projectQueriesPerSecond_; - long datasetMaxRelationCount_; - long datasetMaxFileCount_; std::string projectName_; + long datasetMaxBindCount_; long projectMaxDatasetCount_; - long datasetMaxEntityCount_; - std::string templateId_; long datasetMaxTotalFileSize_; std::string serviceRole_; + long projectQueriesPerSecond_; + long datasetMaxRelationCount_; + std::string description_; + long datasetMaxEntityCount_; + long datasetMaxFileCount_; + std::string templateId_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateSetRequest.h b/imm/include/alibabacloud/imm/model/CreateSetRequest.h new file mode 100644 index 000000000..60e6d7cd9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateSetRequest.h @@ -0,0 +1,51 @@ +/* + * 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_CREATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateSetRequest : public RpcServiceRequest { +public: + CreateSetRequest(); + ~CreateSetRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSetName() const; + void setSetName(const std::string &setName); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string setName_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateSetResult.h b/imm/include/alibabacloud/imm/model/CreateSetResult.h new file mode 100644 index 000000000..04d328056 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateSetResult.h @@ -0,0 +1,65 @@ +/* + * 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_CREATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateSetResult : public ServiceResult + { + public: + + + CreateSetResult(); + explicit CreateSetResult(const std::string &payload); + ~CreateSetResult(); + std::string getModifyTime()const; + int getVideoCount()const; + int getImageCount()const; + std::string getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + int getVideoLength()const; + int getFaceCount()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + int videoCount_; + int imageCount_; + std::string createTime_; + std::string setName_; + std::string setId_; + int videoLength_; + int faceCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateStoryRequest.h b/imm/include/alibabacloud/imm/model/CreateStoryRequest.h index 44329a137..ab471de90 100644 --- a/imm/include/alibabacloud/imm/model/CreateStoryRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateStoryRequest.h @@ -30,32 +30,32 @@ class ALIBABACLOUD_IMM_EXPORT CreateStoryRequest : public RpcServiceRequest { public: CreateStoryRequest(); ~CreateStoryRequest(); - std::string getCustomLabels() const; - void setCustomLabels(const std::string &customLabels); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); + long getMinFileCount() const; + void setMinFileCount(long minFileCount); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getCustomLabels() const; + void setCustomLabels(const std::string &customLabels); + std::string getStoryStartTime() const; + void setStoryStartTime(const std::string &storyStartTime); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); std::string getStoryType() const; void setStoryType(const std::string &storyType); - std::map getTags() const; - void setTags(const std::map &tags); - std::string getStorySubType() const; - void setStorySubType(const std::string &storySubType); - long getMinFileCount() const; - void setMinFileCount(long minFileCount); - std::string getUserData() const; - void setUserData(const std::string &userData); - long getMaxFileCount() const; - void setMaxFileCount(long maxFileCount); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getStoryStartTime() const; - void setStoryStartTime(const std::string &storyStartTime); std::string getCustomId() const; void setCustomId(const std::string &customId); + std::map getTags() const; + void setTags(const std::map &tags); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + long getMaxFileCount() const; + void setMaxFileCount(long maxFileCount); + std::string getStorySubType() const; + void setStorySubType(const std::string &storySubType); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getStoryEndTime() const; void setStoryEndTime(const std::string &storyEndTime); std::string getObjectId() const; @@ -64,19 +64,19 @@ public: void setStoryName(const std::string &storyName); private: - std::string customLabels_; - std::string notifyEndpoint_; + long minFileCount_; std::string projectName_; + std::string customLabels_; + std::string storyStartTime_; std::string notifyTopicName_; std::string storyType_; - std::map tags_; - std::string storySubType_; - long minFileCount_; - std::string userData_; - long maxFileCount_; - std::string datasetName_; - std::string storyStartTime_; std::string customId_; + std::map tags_; + std::string userData_; + std::string notifyEndpoint_; + long maxFileCount_; + std::string storySubType_; + std::string datasetName_; std::string storyEndTime_; std::string objectId_; std::string storyName_; diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h new file mode 100644 index 000000000..94947187f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h @@ -0,0 +1,69 @@ +/* + * 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_CREATEVIDEOCOMPRESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskRequest : public RpcServiceRequest { +public: + CreateVideoCompressTaskRequest(); + ~CreateVideoCompressTaskRequest(); + std::string getTargetSubtitle() const; + void setTargetSubtitle(const std::string &targetSubtitle); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getTargetContainer() const; + void setTargetContainer(const std::string &targetContainer); + std::string getCustomMessage() const; + void setCustomMessage(const std::string &customMessage); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getTargetList() const; + void setTargetList(const std::string &targetList); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + std::string getTargetSegment() const; + void setTargetSegment(const std::string &targetSegment); + +private: + std::string targetSubtitle_; + std::string project_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string targetContainer_; + std::string customMessage_; + std::string notifyTopicName_; + std::string targetList_; + std::string videoUri_; + std::string targetSegment_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h new file mode 100644 index 000000000..19a63d16d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.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_CREATEVIDEOCOMPRESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskResult : public ServiceResult + { + public: + + + CreateVideoCompressTaskResult(); + explicit CreateVideoCompressTaskResult(const std::string &payload); + ~CreateVideoCompressTaskResult(); + 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_CREATEVIDEOCOMPRESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h index bf10bb1a5..71f316c46 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h @@ -43,39 +43,39 @@ public: ~CreateVideoModerationTaskRequest(); std::string getUserData() const; void setUserData(const std::string &userData); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getProjectName() const; void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getSourceURI() const; + void setSourceURI(const std::string &sourceURI); + std::vector getScenes() const; + void setScenes(const std::vector &scenes); long getMaxFrames() const; void setMaxFrames(long maxFrames); + long getInterval() const; + void setInterval(long interval); CredentialConfig getCredentialConfig() const; void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getReviewer() const; void setReviewer(const std::string &reviewer); std::map getTags() const; void setTags(const std::map &tags); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); - std::vector getScenes() const; - void setScenes(const std::vector &scenes); - long getInterval() const; - void setInterval(long interval); private: std::string userData_; - std::string notifyEndpoint_; std::string projectName_; std::string notifyTopicName_; + std::string notifyEndpoint_; + std::string sourceURI_; + std::vector scenes_; long maxFrames_; + long interval_; CredentialConfig credentialConfig_; std::string reviewer_; std::map tags_; - std::string sourceURI_; - std::vector scenes_; - long interval_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h b/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h new file mode 100644 index 000000000..a5e5a6431 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h @@ -0,0 +1,63 @@ +/* + * 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_DECODEBLINDWATERMARKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DECODEBLINDWATERMARKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DecodeBlindWatermarkRequest : public RpcServiceRequest { +public: + DecodeBlindWatermarkRequest(); + ~DecodeBlindWatermarkRequest(); + int getImageQuality() const; + void setImageQuality(int imageQuality); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getWatermarkType() const; + void setWatermarkType(const std::string &watermarkType); + std::string getTargetUri() const; + void setTargetUri(const std::string &targetUri); + std::string getModel() const; + void setModel(const std::string &model); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + std::string getOriginalImageUri() const; + void setOriginalImageUri(const std::string &originalImageUri); + +private: + int imageQuality_; + std::string project_; + std::string accessKeyId_; + std::string watermarkType_; + std::string targetUri_; + std::string model_; + std::string imageUri_; + std::string originalImageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DECODEBLINDWATERMARKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h b/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h new file mode 100644 index 000000000..b92e3ee11 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h @@ -0,0 +1,51 @@ +/* + * 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_DECODEBLINDWATERMARKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DECODEBLINDWATERMARKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DecodeBlindWatermarkResult : public ServiceResult + { + public: + + + DecodeBlindWatermarkResult(); + explicit DecodeBlindWatermarkResult(const std::string &payload); + ~DecodeBlindWatermarkResult(); + std::string getTargetUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string targetUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DECODEBLINDWATERMARKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h b/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h index cf8e289aa..d2faadb96 100644 --- a/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_IMM_EXPORT DeleteBindingRequest : public RpcServiceRequest { public: DeleteBindingRequest(); ~DeleteBindingRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); - std::string getURI() const; - void setURI(const std::string &uRI); bool getCleanup() const; void setCleanup(bool cleanup); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getURI() const; + void setURI(const std::string &uRI); private: - std::string datasetName_; std::string projectName_; - std::string uRI_; bool cleanup_; + std::string datasetName_; + std::string uRI_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h b/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h index 3dbafa575..46149f70d 100644 --- a/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_IMM_EXPORT DeleteDatasetRequest : public RpcServiceRequest { public: DeleteDatasetRequest(); ~DeleteDatasetRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h b/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h index 124756929..c2d90ec47 100644 --- a/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT DeleteFileMetaRequest : public RpcServiceRequest { public: DeleteFileMetaRequest(); ~DeleteFileMetaRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getURI() const; void setURI(const std::string &uRI); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h new file mode 100644 index 000000000..5ba5c5ff0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DeleteImageRequest : public RpcServiceRequest { +public: + DeleteImageRequest(); + ~DeleteImageRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string imageUri_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteImageResult.h b/imm/include/alibabacloud/imm/model/DeleteImageResult.h new file mode 100644 index 000000000..9052196c2 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageResult.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_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); + std::string getSetId()const; + std::string getImageUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::string imageUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h new file mode 100644 index 000000000..6c7c16750 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DELETEOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskRequest : public RpcServiceRequest { +public: + DeleteOfficeConversionTaskRequest(); + ~DeleteOfficeConversionTaskRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string project_; + std::string accessKeyId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h new file mode 100644 index 000000000..f3aba9cde --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h @@ -0,0 +1,49 @@ +/* + * 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_DELETEOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskResult : public ServiceResult + { + public: + + + DeleteOfficeConversionTaskResult(); + explicit DeleteOfficeConversionTaskResult(const std::string &payload); + ~DeleteOfficeConversionTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h index 0cee85582..0d2ca39ee 100644 --- a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h @@ -30,11 +30,14 @@ class ALIBABACLOUD_IMM_EXPORT DeleteProjectRequest : public RpcServiceRequest { public: DeleteProjectRequest(); ~DeleteProjectRequest(); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - std::string projectName_; + std::string project_; + std::string accessKeyId_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h new file mode 100644 index 000000000..3bd144313 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DELETESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DeleteSetRequest : public RpcServiceRequest { +public: + DeleteSetRequest(); + ~DeleteSetRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteSetResult.h b/imm/include/alibabacloud/imm/model/DeleteSetResult.h new file mode 100644 index 000000000..9273b1661 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteSetResult.h @@ -0,0 +1,51 @@ +/* + * 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_DELETESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteSetResult : public ServiceResult + { + public: + + + DeleteSetResult(); + explicit DeleteSetResult(const std::string &payload); + ~DeleteSetResult(); + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h b/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h index 6fccf4b49..5e3ec61db 100644 --- a/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT DeleteStoryRequest : public RpcServiceRequest { public: DeleteStoryRequest(); ~DeleteStoryRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getObjectId() const; void setObjectId(const std::string &objectId); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string objectId_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h new file mode 100644 index 000000000..0a29e914c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h @@ -0,0 +1,54 @@ +/* + * 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_DELETEVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DeleteVideoRequest : public RpcServiceRequest { +public: + DeleteVideoRequest(); + ~DeleteVideoRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getResources() const; + void setResources(bool resources); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + bool resources_; + std::string videoUri_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoResult.h new file mode 100644 index 000000000..f1df303de --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoResult.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_DELETEVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoResult : public ServiceResult + { + public: + + + DeleteVideoResult(); + explicit DeleteVideoResult(const std::string &payload); + ~DeleteVideoResult(); + std::string getVideoUri()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string videoUri_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h new file mode 100644 index 000000000..ea424f21e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DELETEVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskRequest : public RpcServiceRequest { +public: + DeleteVideoTaskRequest(); + ~DeleteVideoTaskRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + +private: + std::string project_; + std::string accessKeyId_; + std::string taskId_; + std::string taskType_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h new file mode 100644 index 000000000..535bc5d91 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h @@ -0,0 +1,49 @@ +/* + * 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_DELETEVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskResult : public ServiceResult + { + public: + + + DeleteVideoTaskResult(); + explicit DeleteVideoTaskResult(const std::string &payload); + ~DeleteVideoTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h index f51cfab0c..ece8519fd 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h @@ -28,33 +28,19 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT DetectImageBodiesRequest : public RpcServiceRequest { public: - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; DetectImageBodiesRequest(); ~DetectImageBodiesRequest(); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); - float getSensitivity() const; - void setSensitivity(float sensitivity); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); private: - std::string projectName_; - CredentialConfig credentialConfig_; - std::string sourceURI_; - float sensitivity_; + std::string project_; + std::string accessKeyId_; + std::string imageUri_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h b/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h index 4bb851ced..a8b1e99ff 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h @@ -34,15 +34,15 @@ namespace AlibabaCloud public: struct BodiesItem { - struct Boundary + struct BodyBoundary { - long left; - long top; - long height; - long width; + int left; + int top; + int height; + int width; }; - float confidence; - Boundary boundary; + float bodyConfidence; + BodyBoundary bodyBoundary; }; @@ -50,11 +50,13 @@ namespace AlibabaCloud explicit DetectImageBodiesResult(const std::string &payload); ~DetectImageBodiesResult(); std::vector getBodies()const; + std::string getImageUri()const; protected: void parse(const std::string &payload); private: std::vector bodies_; + std::string imageUri_; }; } diff --git a/imm/include/alibabacloud/imm/model/DetectImageCodesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageCodesRequest.h index dcc2acbaf..dea0176c7 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageCodesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCodesRequest.h @@ -43,15 +43,15 @@ public: ~DetectImageCodesRequest(); std::string getProjectName() const; void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getSourceURI() const; void setSourceURI(const std::string &sourceURI); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); private: std::string projectName_; - CredentialConfig credentialConfig_; std::string sourceURI_; + CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h b/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h index d9de0bd42..eecc45b13 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h @@ -41,20 +41,20 @@ public: }; DetectImageCroppingRequest(); ~DetectImageCroppingRequest(); - std::string getAspectRatios() const; - void setAspectRatios(const std::string &aspectRatios); std::string getProjectName() const; void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getSourceURI() const; void setSourceURI(const std::string &sourceURI); + std::string getAspectRatios() const; + void setAspectRatios(const std::string &aspectRatios); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); private: - std::string aspectRatios_; std::string projectName_; - CredentialConfig credentialConfig_; std::string sourceURI_; + std::string aspectRatios_; + CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h index f85f2aa95..4bf708ef3 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h @@ -28,30 +28,22 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT DetectImageFacesRequest : public RpcServiceRequest { public: - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; DetectImageFacesRequest(); ~DetectImageFacesRequest(); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRealUid() const; + void setRealUid(const std::string &realUid); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); private: - std::string projectName_; - CredentialConfig credentialConfig_; - std::string sourceURI_; + std::string project_; + std::string accessKeyId_; + std::string realUid_; + std::string imageUri_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h index 3cc013000..d222e6006 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h @@ -34,56 +34,66 @@ namespace AlibabaCloud public: struct FacesItem { - struct Boundary + struct FaceAttributes { - long left; - long top; - long height; - long width; + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; }; - struct HeadPose + struct EmotionDetails { - float pitch; - float roll; - float yaw; + float cALM; + float sCARED; + float hAPPY; + float sURPRISED; + float sAD; + float dISGUSTED; + float aNGRY; }; - std::string beard; - float maskConfidence; - std::string gender; - float figureClusterConfidence; - Boundary boundary; - float beardConfidence; - std::string figureId; - std::string mouth; - std::string emotion; - long age; - float mouthConfidence; - HeadPose headPose; - std::string figureType; + std::string faceId; + float attractiveConfidence; + FaceAttributes faceAttributes; float genderConfidence; - std::string mask; float emotionConfidence; - float hatConfidence; - float glassesConfidence; - float sharpness; - std::string figureClusterId; + std::string gender; + EmotionDetails emotionDetails; + float faceConfidence; float faceQuality; float attractive; - float ageSD; - std::string glasses; - float figureConfidence; - std::string hat; + std::string emotion; + int age; + float ageConfidence; }; DetectImageFacesResult(); explicit DetectImageFacesResult(const std::string &payload); ~DetectImageFacesResult(); + std::string getImageUri()const; std::vector getFaces()const; protected: void parse(const std::string &payload); private: + std::string imageUri_; std::vector faces_; }; diff --git a/imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h index c62bca028..5a9024c57 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h @@ -41,20 +41,20 @@ public: }; DetectImageLabelsRequest(); ~DetectImageLabelsRequest(); - float getThreshold() const; - void setThreshold(float threshold); std::string getProjectName() const; void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getSourceURI() const; void setSourceURI(const std::string &sourceURI); + float getThreshold() const; + void setThreshold(float threshold); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); private: - float threshold_; std::string projectName_; - CredentialConfig credentialConfig_; std::string sourceURI_; + float threshold_; + CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h new file mode 100644 index 000000000..c61e44d16 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DETECTIMAGEQRCODESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectImageQRCodesRequest : public RpcServiceRequest { +public: + DetectImageQRCodesRequest(); + ~DetectImageQRCodesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + +private: + std::string project_; + std::string accessKeyId_; + std::string imageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h new file mode 100644 index 000000000..1fa0a54e0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h @@ -0,0 +1,65 @@ +/* + * 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_DETECTIMAGEQRCODESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageQRCodesResult : public ServiceResult + { + public: + struct QRCodesItem + { + struct QRCodeBoundary + { + int left; + int top; + int height; + int width; + }; + std::string content; + QRCodeBoundary qRCodeBoundary; + }; + + + DetectImageQRCodesResult(); + explicit DetectImageQRCodesResult(const std::string &payload); + ~DetectImageQRCodesResult(); + std::string getImageUri()const; + std::vector getQRCodes()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector qRCodes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageScoreRequest.h b/imm/include/alibabacloud/imm/model/DetectImageScoreRequest.h index 351d6588a..d25c955c2 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageScoreRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageScoreRequest.h @@ -43,15 +43,15 @@ public: ~DetectImageScoreRequest(); std::string getProjectName() const; void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); std::string getSourceURI() const; void setSourceURI(const std::string &sourceURI); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); private: std::string projectName_; - CredentialConfig credentialConfig_; std::string sourceURI_; + CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h new file mode 100644 index 000000000..ee9b76c5f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_DETECTIMAGETAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectImageTagsRequest : public RpcServiceRequest { +public: + DetectImageTagsRequest(); + ~DetectImageTagsRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRealUid() const; + void setRealUid(const std::string &realUid); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + +private: + std::string project_; + std::string accessKeyId_; + std::string realUid_; + std::string imageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h new file mode 100644 index 000000000..d8b36af0e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h @@ -0,0 +1,63 @@ +/* + * 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_DETECTIMAGETAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTagsResult : public ServiceResult + { + public: + struct TagsItem + { + float centricScore; + std::string tagName; + float tagConfidence; + std::string tagEnName; + std::string parentTagEnName; + int tagLevel; + std::string parentTagName; + }; + + + DetectImageTagsResult(); + explicit DetectImageTagsResult(const std::string &payload); + ~DetectImageTagsResult(); + std::string getImageUri()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h new file mode 100644 index 000000000..30c515b6b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h @@ -0,0 +1,48 @@ +/* + * 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_DETECTQRCODESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectQRCodesRequest : public RpcServiceRequest { +public: + DetectQRCodesRequest(); + ~DetectQRCodesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSrcUris() const; + void setSrcUris(const std::string &srcUris); + +private: + std::string project_; + std::string accessKeyId_; + std::string srcUris_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h new file mode 100644 index 000000000..77f0d6a29 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h @@ -0,0 +1,76 @@ +/* + * 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_DETECTQRCODESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectQRCodesResult : public ServiceResult + { + public: + struct SuccessDetailsItem + { + struct QRCodesItem + { + struct QRCodesRectangle + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + QRCodesRectangle qRCodesRectangle; + std::string content; + }; + std::vector qRCodes; + std::string srcUri; + }; + struct FailDetailsItem + { + std::string errorCode; + std::string errorMessage; + std::string srcUri; + }; + + + DetectQRCodesResult(); + explicit DetectQRCodesResult(const std::string &payload); + ~DetectQRCodesResult(); + std::vector getSuccessDetails()const; + std::vector getFailDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::vector failDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h b/imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h index d5423f23c..b7aee11e3 100644 --- a/imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_IMM_EXPORT DetectTextAnomalyRequest : public RpcServiceReques public: DetectTextAnomalyRequest(); ~DetectTextAnomalyRequest(); - std::string getContent() const; - void setContent(const std::string &content); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getContent() const; + void setContent(const std::string &content); private: - std::string content_; std::string projectName_; + std::string content_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h b/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h new file mode 100644 index 000000000..19748eedd --- /dev/null +++ b/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h @@ -0,0 +1,69 @@ +/* + * 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_ENCODEBLINDWATERMARKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_ENCODEBLINDWATERMARKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT EncodeBlindWatermarkRequest : public RpcServiceRequest { +public: + EncodeBlindWatermarkRequest(); + ~EncodeBlindWatermarkRequest(); + std::string getImageQuality() const; + void setImageQuality(const std::string &imageQuality); + std::string getWatermarkUri() const; + void setWatermarkUri(const std::string &watermarkUri); + std::string getProject() const; + void setProject(const std::string &project); + std::string getContent() const; + void setContent(const std::string &content); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getWatermarkType() const; + void setWatermarkType(const std::string &watermarkType); + std::string getTargetUri() const; + void setTargetUri(const std::string &targetUri); + std::string getModel() const; + void setModel(const std::string &model); + std::string getTargetImageType() const; + void setTargetImageType(const std::string &targetImageType); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + +private: + std::string imageQuality_; + std::string watermarkUri_; + std::string project_; + std::string content_; + std::string accessKeyId_; + std::string watermarkType_; + std::string targetUri_; + std::string model_; + std::string targetImageType_; + std::string imageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_ENCODEBLINDWATERMARKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkResult.h b/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkResult.h new file mode 100644 index 000000000..8a081373c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkResult.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_ENCODEBLINDWATERMARKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_ENCODEBLINDWATERMARKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT EncodeBlindWatermarkResult : public ServiceResult + { + public: + + + EncodeBlindWatermarkResult(); + explicit EncodeBlindWatermarkResult(const std::string &payload); + ~EncodeBlindWatermarkResult(); + std::string getContent()const; + std::string getTargetUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string content_; + std::string targetUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_ENCODEBLINDWATERMARKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesRequest.h b/imm/include/alibabacloud/imm/model/FindImagesRequest.h new file mode 100644 index 000000000..b95b6339c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesRequest.h @@ -0,0 +1,129 @@ +/* + * 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_FINDIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT FindImagesRequest : public RpcServiceRequest { +public: + 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; + void setExternalId(const std::string &externalId); + std::string getFacesModifyTimeRange() const; + void setFacesModifyTimeRange(const std::string &facesModifyTimeRange); + std::string getOCRContentsMatch() const; + void setOCRContentsMatch(const std::string &oCRContentsMatch); + int getLimit() const; + void setLimit(int limit); + std::string getRemarksDPrefix() const; + void setRemarksDPrefix(const std::string &remarksDPrefix); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getTagNames() const; + void setTagNames(const std::string &tagNames); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getRemarksCPrefix() const; + void setRemarksCPrefix(const std::string &remarksCPrefix); + std::string getModifyTimeRange() const; + void setModifyTimeRange(const std::string &modifyTimeRange); + std::string getAddressLineContentsMatch() const; + 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; + void setRemarksBPrefix(const std::string &remarksBPrefix); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getLocationBoundary() const; + void setLocationBoundary(const std::string &locationBoundary); + std::string getImageTimeRange() const; + void setImageTimeRange(const std::string &imageTimeRange); + std::string getTagsModifyTimeRange() const; + void setTagsModifyTimeRange(const std::string &tagsModifyTimeRange); + std::string getAgeRange() const; + void setAgeRange(const std::string &ageRange); + std::string getRemarksAPrefix() const; + void setRemarksAPrefix(const std::string &remarksAPrefix); + std::string getSourceUriPrefix() const; + void setSourceUriPrefix(const std::string &sourceUriPrefix); + std::string getEmotion() const; + void setEmotion(const std::string &emotion); + std::string getCreateTimeRange() const; + void setCreateTimeRange(const std::string &createTimeRange); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string remarksArrayBIn_; + std::string project_; + std::string externalId_; + std::string facesModifyTimeRange_; + std::string oCRContentsMatch_; + int limit_; + std::string remarksDPrefix_; + std::string sourceType_; + std::string order_; + std::string groupId_; + std::string orderBy_; + std::string tagNames_; + std::string marker_; + std::string remarksCPrefix_; + std::string modifyTimeRange_; + std::string addressLineContentsMatch_; + std::string gender_; + std::string remarksArrayAIn_; + std::string imageSizeRange_; + std::string remarksBPrefix_; + std::string accessKeyId_; + std::string locationBoundary_; + std::string imageTimeRange_; + std::string tagsModifyTimeRange_; + std::string ageRange_; + std::string remarksAPrefix_; + std::string sourceUriPrefix_; + std::string emotion_; + std::string createTimeRange_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/FindImagesResult.h b/imm/include/alibabacloud/imm/model/FindImagesResult.h new file mode 100644 index 000000000..801366925 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesResult.h @@ -0,0 +1,208 @@ +/* + * 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_FINDIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + struct Address + { + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct ImageQuality + { + float clarityScore; + float compositionScore; + float color; + float contrastScore; + float exposure; + float overallScore; + float contrast; + float clarity; + float colorScore; + float exposureScore; + }; + struct TagsItem + { + float centricScore; + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sURPRISED; + float sAD; + float dISGUSTED; + float aNGRY; + }; + EmotionDetails emotionDetails; + std::string faceId; + float faceConfidence; + float faceQuality; + float attractive; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct CroppingSuggestionItem + { + struct CroppingBoundary + { + int left; + int top; + int height; + int width; + }; + std::string aspectRatio; + float score; + CroppingBoundary croppingBoundary; + }; + ImageQuality imageQuality; + std::string modifyTime; + Address address; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string croppingSuggestionStatus; + std::string croppingSuggestionFailReason; + std::string addressFailReason; + std::string remarksA; + std::string addressModifyTime; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string remarksArrayB; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::string remarksArrayA; + std::string sourcePosition; + std::vector tags; + std::vector faces; + std::string addressStatus; + std::string facesStatus; + std::string imageQualityModifyTime; + std::vector croppingSuggestion; + std::string createTime; + std::string externalId; + std::string tagsModifyTime; + std::string imageQualityFailReason; + std::string orientation; + std::string imageUri; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string croppingSuggestionModifyTime; + int imageHeight; + std::string imageQualityStatus; + std::string tagsStatus; + std::string oCRFailReason; + std::vector oCR; + int fileSize; + std::string location; + }; + + + FindImagesResult(); + explicit FindImagesResult(const std::string &payload); + ~FindImagesResult(); + std::vector getImages()const; + std::string getNextMarker()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::string nextMarker_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h new file mode 100644 index 000000000..8c75a28a8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h @@ -0,0 +1,63 @@ +/* + * 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_FINDSIMILARFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesRequest : public RpcServiceRequest { +public: + FindSimilarFacesRequest(); + ~FindSimilarFacesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + float getMinSimilarity() const; + void setMinSimilarity(float minSimilarity); + std::string getResponseFormat() const; + void setResponseFormat(const std::string &responseFormat); + int getLimit() const; + void setLimit(int limit); + std::string getFaceId() const; + void setFaceId(const std::string &faceId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + float minSimilarity_; + std::string responseFormat_; + int limit_; + std::string faceId_; + std::string imageUri_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h new file mode 100644 index 000000000..2462abee7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h @@ -0,0 +1,90 @@ +/* + * 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_FINDSIMILARFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesResult : public ServiceResult + { + public: + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary2 + { + int left; + int top; + int height; + int width; + }; + FaceBoundary2 faceBoundary2; + }; + struct SimilarFacesItem + { + struct FaceAttributes1 + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + FaceBoundary faceBoundary; + }; + std::string faceId; + float similarity; + FaceAttributes1 faceAttributes1; + std::string externalId; + std::string imageUri; + }; + std::string faceId; + FaceAttributes faceAttributes; + std::vector similarFaces; + float similarity; + std::string externalId; + std::string imageUri; + }; + + + FindSimilarFacesResult(); + explicit FindSimilarFacesResult(const std::string &payload); + ~FindSimilarFacesResult(); + std::vector getFaces()const; + + protected: + void parse(const std::string &payload); + private: + std::vector faces_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h b/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h index e3d8c9db6..2e0290b22 100644 --- a/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h +++ b/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_IMM_EXPORT FuzzyQueryRequest : public RpcServiceRequest { public: FuzzyQueryRequest(); ~FuzzyQueryRequest(); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); std::string getQuery() const; void setQuery(const std::string &query); long getMaxResults() const; void setMaxResults(long maxResults); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string nextToken_; - std::string datasetName_; std::string projectName_; + std::string nextToken_; std::string query_; long maxResults_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetBindingRequest.h b/imm/include/alibabacloud/imm/model/GetBindingRequest.h index 677a07a34..9594504d9 100644 --- a/imm/include/alibabacloud/imm/model/GetBindingRequest.h +++ b/imm/include/alibabacloud/imm/model/GetBindingRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_IMM_EXPORT GetBindingRequest : public RpcServiceRequest { public: GetBindingRequest(); ~GetBindingRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getOwner() const; void setOwner(const std::string &owner); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getURI() const; void setURI(const std::string &uRI); private: - std::string datasetName_; std::string owner_; std::string projectName_; + std::string datasetName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/GetDatasetRequest.h b/imm/include/alibabacloud/imm/model/GetDatasetRequest.h index 4d37813a7..978a45f08 100644 --- a/imm/include/alibabacloud/imm/model/GetDatasetRequest.h +++ b/imm/include/alibabacloud/imm/model/GetDatasetRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT GetDatasetRequest : public RpcServiceRequest { public: GetDatasetRequest(); ~GetDatasetRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); bool getWithStatistics() const; void setWithStatistics(bool withStatistics); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string datasetName_; std::string projectName_; bool withStatistics_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h b/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h index 30680af66..e2d2a53c9 100644 --- a/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT GetFigureClusterRequest : public RpcServiceRequest public: GetFigureClusterRequest(); ~GetFigureClusterRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getObjectId() const; void setObjectId(const std::string &objectId); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string objectId_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h b/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h index a2595895b..d7ed521cb 100644 --- a/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT GetFileMetaRequest : public RpcServiceRequest { public: GetFileMetaRequest(); ~GetFileMetaRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getURI() const; void setURI(const std::string &uRI); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h b/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h new file mode 100644 index 000000000..a4711cf5d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h @@ -0,0 +1,51 @@ +/* + * 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_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetImageCroppingSuggestionsRequest : public RpcServiceRequest { +public: + GetImageCroppingSuggestionsRequest(); + ~GetImageCroppingSuggestionsRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAspectRatios() const; + void setAspectRatios(const std::string &aspectRatios); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + +private: + std::string project_; + std::string aspectRatios_; + std::string accessKeyId_; + std::string imageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h b/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h new file mode 100644 index 000000000..ed3f0783f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h @@ -0,0 +1,66 @@ +/* + * 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_GETIMAGECROPPINGSUGGESTIONSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageCroppingSuggestionsResult : public ServiceResult + { + public: + struct CroppingSuggestionsItem + { + struct CroppingBoundary + { + int left; + int top; + int height; + int width; + }; + std::string aspectRatio; + float score; + CroppingBoundary croppingBoundary; + }; + + + GetImageCroppingSuggestionsResult(); + explicit GetImageCroppingSuggestionsResult(const std::string &payload); + ~GetImageCroppingSuggestionsResult(); + std::string getImageUri()const; + std::vector getCroppingSuggestions()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector croppingSuggestions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageQualityRequest.h b/imm/include/alibabacloud/imm/model/GetImageQualityRequest.h new file mode 100644 index 000000000..717446448 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageQualityRequest.h @@ -0,0 +1,48 @@ +/* + * 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_GETIMAGEQUALITYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetImageQualityRequest : public RpcServiceRequest { +public: + GetImageQualityRequest(); + ~GetImageQualityRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + +private: + std::string project_; + std::string accessKeyId_; + std::string imageUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetImageQualityResult.h b/imm/include/alibabacloud/imm/model/GetImageQualityResult.h new file mode 100644 index 000000000..587ca507d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageQualityResult.h @@ -0,0 +1,66 @@ +/* + * 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_GETIMAGEQUALITYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageQualityResult : public ServiceResult + { + public: + struct ImageQuality + { + float clarityScore; + float compositionScore; + float color; + float contrastScore; + float exposure; + float overallScore; + float contrast; + float clarity; + float colorScore; + float exposureScore; + }; + + + GetImageQualityResult(); + explicit GetImageQualityResult(const std::string &payload); + ~GetImageQualityResult(); + ImageQuality getImageQuality()const; + std::string getImageUri()const; + + protected: + void parse(const std::string &payload); + private: + ImageQuality imageQuality_; + std::string imageUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEQUALITYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageRequest.h b/imm/include/alibabacloud/imm/model/GetImageRequest.h new file mode 100644 index 000000000..92829faa8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageRequest.h @@ -0,0 +1,51 @@ +/* + * 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_GETIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetImageRequest : public RpcServiceRequest { +public: + GetImageRequest(); + ~GetImageRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageUri() const; + void setImageUri(const std::string &imageUri); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string imageUri_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetImageResult.h b/imm/include/alibabacloud/imm/model/GetImageResult.h new file mode 100644 index 000000000..f41433ee8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageResult.h @@ -0,0 +1,246 @@ +/* + * 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_GETIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageResult : public ServiceResult + { + public: + struct ImageQuality + { + float clarityScore; + float compositionScore; + float color; + float contrastScore; + float exposure; + float overallScore; + float contrast; + float clarity; + float colorScore; + float exposureScore; + }; + struct Address + { + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct TagsItem + { + float centricScore; + std::string tagName; + float tagConfidence; + int tagLevel; + std::string parentTagName; + }; + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sURPRISED; + float sAD; + float dISGUSTED; + float aNGRY; + }; + EmotionDetails emotionDetails; + std::string faceId; + float faceConfidence; + float faceQuality; + float attractive; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + std::string age; + std::string groupId; + }; + struct CroppingSuggestionItem + { + struct CroppingBoundary + { + int left; + int top; + int height; + int width; + }; + std::string aspectRatio; + float score; + CroppingBoundary croppingBoundary; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + + + GetImageResult(); + explicit GetImageResult(const std::string &payload); + ~GetImageResult(); + ImageQuality getImageQuality()const; + std::string getModifyTime()const; + Address getAddress()const; + std::string getSourceType()const; + std::string getSourceUri()const; + std::string getFacesFailReason()const; + std::string getCroppingSuggestionStatus()const; + std::string getCroppingSuggestionFailReason()const; + std::string getAddressFailReason()const; + std::string getRemarksA()const; + std::string getAddressModifyTime()const; + std::string getRemarksB()const; + std::string getImageFormat()const; + std::string getTagsFailReason()const; + std::string getRemarksArrayB()const; + std::string getFacesModifyTime()const; + std::string getExif()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + int getImageWidth()const; + std::string getRemarksArrayA()const; + std::string getSourcePosition()const; + std::vector getTags()const; + std::vector getFaces()const; + std::string getAddressStatus()const; + std::string getFacesStatus()const; + std::string getImageQualityModifyTime()const; + std::vector getCroppingSuggestion()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getTagsModifyTime()const; + std::string getImageQualityFailReason()const; + std::string getOrientation()const; + std::string getImageUri()const; + std::string getOCRStatus()const; + std::string getOCRModifyTime()const; + std::string getImageTime()const; + std::string getCroppingSuggestionModifyTime()const; + int getImageHeight()const; + std::string getImageQualityStatus()const; + std::string getTagsStatus()const; + std::string getOCRFailReason()const; + std::string getSetId()const; + std::vector getOCR()const; + int getFileSize()const; + std::string getLocation()const; + + protected: + void parse(const std::string &payload); + private: + ImageQuality imageQuality_; + std::string modifyTime_; + Address address_; + std::string sourceType_; + std::string sourceUri_; + std::string facesFailReason_; + std::string croppingSuggestionStatus_; + std::string croppingSuggestionFailReason_; + std::string addressFailReason_; + std::string remarksA_; + std::string addressModifyTime_; + std::string remarksB_; + std::string imageFormat_; + std::string tagsFailReason_; + std::string remarksArrayB_; + std::string facesModifyTime_; + std::string exif_; + std::string remarksC_; + std::string remarksD_; + int imageWidth_; + std::string remarksArrayA_; + std::string sourcePosition_; + std::vector tags_; + std::vector faces_; + std::string addressStatus_; + std::string facesStatus_; + std::string imageQualityModifyTime_; + std::vector croppingSuggestion_; + std::string createTime_; + std::string externalId_; + std::string tagsModifyTime_; + std::string imageQualityFailReason_; + std::string orientation_; + std::string imageUri_; + std::string oCRStatus_; + std::string oCRModifyTime_; + std::string imageTime_; + std::string croppingSuggestionModifyTime_; + int imageHeight_; + std::string imageQualityStatus_; + std::string tagsStatus_; + std::string oCRFailReason_; + std::string setId_; + std::vector oCR_; + int fileSize_; + std::string location_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h b/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h index ded62af00..0edda1655 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h @@ -28,30 +28,19 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT GetMediaMetaRequest : public RpcServiceRequest { public: - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; GetMediaMetaRequest(); ~GetMediaMetaRequest(); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); + std::string getMediaUri() const; + void setMediaUri(const std::string &mediaUri); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - std::string projectName_; - CredentialConfig credentialConfig_; - std::string sourceURI_; + std::string mediaUri_; + std::string project_; + std::string accessKeyId_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h index 9bc27b157..207923b67 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h @@ -32,137 +32,115 @@ namespace AlibabaCloud class ALIBABACLOUD_IMM_EXPORT GetMediaMetaResult : public ServiceResult { public: - struct VideoStreamsItem + struct MediaMeta { - std::string codecTimeBase; - std::string rotate; - std::string sampleAspectRatio; - std::string colorSpace; - long index; - std::string colorRange; - std::string codecName; - long bitDepth; - std::string profile; - std::string colorPrimaries; - std::string language; - long height; - std::string pixelFormat; - long width; - std::string timeBase; - std::string colorTransfer; - std::string codecTag; - std::string frameRate; - long frameCount; - double startTime; - double duration; - long bitrate; - std::string displayAspectRatio; - std::string codecTagString; - long hasBFrames; - std::string averageFrameRate; - std::string codecLongName; - long level; - }; - struct AudioStreamsItem - { - std::string codecTag; - std::string codecTimeBase; - std::string channelLayout; - long frameCount; - double startTime; - long index; - double duration; - std::string codecName; - long bitrate; - std::string sampleFormat; - long channels; - std::string codecTagString; - long sampleRate; - std::string language; - std::string codecLongName; - std::string lyric; - std::string timeBase; - }; - struct SubtitlesItem - { - std::string codecTag; - std::string codecTagString; - std::string language; - std::string content; - std::string codecLongName; - double startTime; - long index; - double duration; - long height; - std::string codecName; - long bitrate; - long width; - }; - struct AddressesItem - { - std::string language; - std::string township; - std::string addressLine; - std::string country; - std::string city; - std::string district; - std::string province; + struct MediaFormat + { + struct Tag + { + std::string artist; + std::string performer; + std::string composer; + std::string language; + std::string creationTime; + std::string album; + std::string title; + std::string albumArtist; + }; + struct Address + { + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + Address address; + int numberStreams; + std::string size; + std::string formatLongName; + std::string creationTime; + std::string startTime; + std::string formatName; + std::string duration; + Tag tag; + std::string bitrate; + int numberPrograms; + std::string location; + }; + struct MediaStreams + { + struct VideoStream + { + std::string codecTag; + std::string frames; + std::string codecTimeBase; + std::string rotate; + std::string sampleAspectRatio; + std::string startTime; + int index; + std::string duration; + std::string bitrate; + std::string codecName; + std::string profile; + std::string displayAspectRatio; + std::string codecTagString; + int hasBFrames; + std::string averageFrameRate; + std::string language; + std::string codecLongName; + int height; + int level; + std::string pixelFormat; + std::string frameRrate; + int width; + std::string timeBase; + }; + struct AudioStream + { + std::string codecTag; + std::string frames; + std::string codecTimeBase; + std::string channelLayout; + std::string startTime; + int index; + std::string duration; + std::string bitrate; + std::string codecName; + int channels; + std::string sampleFormat; + std::string codecTagString; + std::string sampleRate; + std::string language; + std::string codecLongName; + std::string timeBase; + }; + struct SubtitleStream + { + std::string language; + int index; + }; + std::vector videoStreams; + std::vector subtitleStreams; + std::vector audioStreams; + }; + MediaFormat mediaFormat; + MediaStreams mediaStreams; }; GetMediaMetaResult(); explicit GetMediaMetaResult(const std::string &payload); ~GetMediaMetaResult(); - std::string getArtist()const; - std::string getProduceTime()const; - std::string getComposer()const; - std::vector getVideoStreams()const; - long getSize()const; - long getVideoWidth()const; - std::string getFormatLongName()const; - long getProgramCount()const; - double getStartTime()const; - std::string getTitle()const; - std::string getAlbum()const; - double getDuration()const; - long getBitrate()const; - std::string getAlbumArtist()const; - std::vector getAudioStreams()const; - std::vector getAddresses()const; - long getStreamCount()const; - std::string getPerformer()const; - std::string getLanguage()const; - long getVideoHeight()const; - std::vector getSubtitles()const; - std::string getFormatName()const; - std::string getLatLong()const; + std::string getMediaUri()const; + MediaMeta getMediaMeta()const; protected: void parse(const std::string &payload); private: - std::string artist_; - std::string produceTime_; - std::string composer_; - std::vector videoStreams_; - long size_; - long videoWidth_; - std::string formatLongName_; - long programCount_; - double startTime_; - std::string title_; - std::string album_; - double duration_; - long bitrate_; - std::string albumArtist_; - std::vector audioStreams_; - std::vector addresses_; - long streamCount_; - std::string performer_; - std::string language_; - long videoHeight_; - std::vector subtitles_; - std::string formatName_; - std::string latLong_; + std::string mediaUri_; + MediaMeta mediaMeta_; }; } diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h new file mode 100644 index 000000000..070ed53c7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h @@ -0,0 +1,48 @@ +/* + * 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_GETOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskRequest : public RpcServiceRequest { +public: + GetOfficeConversionTaskRequest(); + ~GetOfficeConversionTaskRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string project_; + std::string accessKeyId_; + std::string taskId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h new file mode 100644 index 000000000..d602f6b4e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h @@ -0,0 +1,81 @@ +/* + * 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_GETOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskResult : public ServiceResult + { + public: + struct FailDetail + { + std::string code; + }; + + + GetOfficeConversionTaskResult(); + explicit GetOfficeConversionTaskResult(const std::string &payload); + ~GetOfficeConversionTaskResult(); + std::string getStatus()const; + FailDetail getFailDetail()const; + std::string getTgtType()const; + std::string getTaskId()const; + int getPercent()const; + std::string getCreateTime()const; + std::string getExternalID()const; + std::string getImageSpec()const; + std::string getNotifyEndpoint()const; + std::string getTgtUri()const; + std::string getFinishTime()const; + int getPageCount()const; + std::string getNotifyTopicName()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + FailDetail failDetail_; + std::string tgtType_; + std::string taskId_; + int percent_; + std::string createTime_; + std::string externalID_; + std::string imageSpec_; + std::string notifyEndpoint_; + std::string tgtUri_; + std::string finishTime_; + int pageCount_; + std::string notifyTopicName_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h b/imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h new file mode 100644 index 000000000..91b0ab366 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h @@ -0,0 +1,72 @@ +/* + * 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_GETOFFICEPREVIEWURLREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICEPREVIEWURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetOfficePreviewURLRequest : public RpcServiceRequest { +public: + GetOfficePreviewURLRequest(); + ~GetOfficePreviewURLRequest(); + std::string getSrcType() const; + void setSrcType(const std::string &srcType); + std::string getProject() const; + void setProject(const std::string &project); + int getWatermarkVertical() const; + void setWatermarkVertical(int watermarkVertical); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getWatermarkType() const; + void setWatermarkType(int watermarkType); + float getWatermarkRotate() const; + void setWatermarkRotate(float watermarkRotate); + std::string getWatermarkValue() const; + void setWatermarkValue(const std::string &watermarkValue); + std::string getWatermarkFont() const; + void setWatermarkFont(const std::string &watermarkFont); + int getWatermarkHorizontal() const; + void setWatermarkHorizontal(int watermarkHorizontal); + std::string getSrcUri() const; + void setSrcUri(const std::string &srcUri); + std::string getWatermarkFillStyle() const; + void setWatermarkFillStyle(const std::string &watermarkFillStyle); + +private: + std::string srcType_; + std::string project_; + int watermarkVertical_; + std::string accessKeyId_; + int watermarkType_; + float watermarkRotate_; + std::string watermarkValue_; + std::string watermarkFont_; + int watermarkHorizontal_; + std::string srcUri_; + std::string watermarkFillStyle_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEPREVIEWURLREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetOfficePreviewURLResult.h b/imm/include/alibabacloud/imm/model/GetOfficePreviewURLResult.h new file mode 100644 index 000000000..2f5b54907 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficePreviewURLResult.h @@ -0,0 +1,59 @@ +/* + * 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_GETOFFICEPREVIEWURLRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICEPREVIEWURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficePreviewURLResult : public ServiceResult + { + public: + + + GetOfficePreviewURLResult(); + explicit GetOfficePreviewURLResult(const std::string &payload); + ~GetOfficePreviewURLResult(); + std::string getPreviewURL()const; + std::string getRefreshToken()const; + std::string getAccessToken()const; + std::string getRefreshTokenExpiredTime()const; + std::string getAccessTokenExpiredTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string previewURL_; + std::string refreshToken_; + std::string accessToken_; + std::string refreshTokenExpiredTime_; + std::string accessTokenExpiredTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEPREVIEWURLRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetProjectRequest.h b/imm/include/alibabacloud/imm/model/GetProjectRequest.h index 1e06a84cc..7d7a05d78 100644 --- a/imm/include/alibabacloud/imm/model/GetProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/GetProjectRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_IMM_EXPORT GetProjectRequest : public RpcServiceRequest { public: GetProjectRequest(); ~GetProjectRequest(); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - bool getWithStatistics() const; - void setWithStatistics(bool withStatistics); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); private: - std::string projectName_; - bool withStatistics_; + std::string project_; + std::string accessKeyId_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetProjectResult.h b/imm/include/alibabacloud/imm/model/GetProjectResult.h index 7c8a2ccfc..197dd5ef1 100644 --- a/imm/include/alibabacloud/imm/model/GetProjectResult.h +++ b/imm/include/alibabacloud/imm/model/GetProjectResult.h @@ -32,37 +32,33 @@ namespace AlibabaCloud class ALIBABACLOUD_IMM_EXPORT GetProjectResult : public ServiceResult { public: - struct Project - { - std::string description; - long fileCount; - std::string projectName; - std::string createTime; - long projectMaxDatasetCount; - long datasetMaxTotalFileSize; - long datasetMaxRelationCount; - long datasetMaxFileCount; - long engineConcurrency; - std::string serviceRole; - long datasetMaxBindCount; - long datasetCount; - std::string updateTime; - long datasetMaxEntityCount; - long totalFileSize; - std::string templateId; - long projectQueriesPerSecond; - }; GetProjectResult(); explicit GetProjectResult(const std::string &payload); ~GetProjectResult(); - Project getProject()const; + std::string getProject()const; + std::string getModifyTime()const; + std::string getType()const; + int getCU()const; + std::string getServiceRole()const; + std::string getEndpoint()const; + std::string getCreateTime()const; + std::string getRegionId()const; + std::string getBillingType()const; protected: void parse(const std::string &payload); private: - Project project_; + std::string project_; + std::string modifyTime_; + std::string type_; + int cU_; + std::string serviceRole_; + std::string endpoint_; + std::string createTime_; + std::string regionId_; + std::string billingType_; }; } diff --git a/imm/include/alibabacloud/imm/model/GetSetRequest.h b/imm/include/alibabacloud/imm/model/GetSetRequest.h new file mode 100644 index 000000000..f0b0d60eb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetSetRequest.h @@ -0,0 +1,48 @@ +/* + * 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_GETSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetSetRequest : public RpcServiceRequest { +public: + GetSetRequest(); + ~GetSetRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetSetResult.h b/imm/include/alibabacloud/imm/model/GetSetResult.h new file mode 100644 index 000000000..2736930e3 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetSetResult.h @@ -0,0 +1,65 @@ +/* + * 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_GETSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetSetResult : public ServiceResult + { + public: + + + GetSetResult(); + explicit GetSetResult(const std::string &payload); + ~GetSetResult(); + std::string getModifyTime()const; + int getVideoCount()const; + int getImageCount()const; + std::string getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + int getVideoLength()const; + int getFaceCount()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + int videoCount_; + int imageCount_; + std::string createTime_; + std::string setName_; + std::string setId_; + int videoLength_; + int faceCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetStoryRequest.h b/imm/include/alibabacloud/imm/model/GetStoryRequest.h index 79d186d10..bf5cfb80e 100644 --- a/imm/include/alibabacloud/imm/model/GetStoryRequest.h +++ b/imm/include/alibabacloud/imm/model/GetStoryRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT GetStoryRequest : public RpcServiceRequest { public: GetStoryRequest(); ~GetStoryRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getObjectId() const; void setObjectId(const std::string &objectId); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string objectId_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/GetVideoRequest.h b/imm/include/alibabacloud/imm/model/GetVideoRequest.h new file mode 100644 index 000000000..d016c3663 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoRequest.h @@ -0,0 +1,51 @@ +/* + * 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_GETVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetVideoRequest : public RpcServiceRequest { +public: + GetVideoRequest(); + ~GetVideoRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string videoUri_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetVideoResult.h b/imm/include/alibabacloud/imm/model/GetVideoResult.h new file mode 100644 index 000000000..e447872a6 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoResult.h @@ -0,0 +1,156 @@ +/* + * 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_GETVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoResult : public ServiceResult + { + public: + struct PersonsItem + { + std::string personId; + float genderConfidence; + std::string gender; + float ageConfidence; + int age; + }; + struct CelebrityItem + { + std::string celebrityName; + int celebrityNum; + std::string celebrityLibraryName; + }; + struct VideoTagsItem + { + std::string tagName; + float tagConfidence; + int tagLevel; + std::string parentTagName; + }; + + + GetVideoResult(); + explicit GetVideoResult(const std::string &payload); + ~GetVideoResult(); + std::string getModifyTime()const; + std::string getProcessStatus()const; + int getVideoWidth()const; + std::string getSourceType()const; + std::string getSourceUri()const; + std::string getVideoInfo()const; + std::string getVideoFrameTagsModifyTime()const; + std::string getRemarksA()const; + std::string getVideoFacesFailReason()const; + std::string getRemarksB()const; + std::string getVideoFacesStatus()const; + std::string getRemarksC()const; + std::string getVideoOCRModifyTime()const; + std::string getRemarksD()const; + int getVideoHeight()const; + std::vector getPersons()const; + std::vector getCelebrity()const; + std::string getSourcePosition()const; + std::string getVideoOCRFailReason()const; + std::string getVideoFrameTagsStatus()const; + std::string getVideoTagsFailReason()const; + std::string getVideoTagsModifyTime()const; + std::string getVideoOCRStatus()const; + int getVideoFrames()const; + std::string getProcessModifyTime()const; + std::string getVideoSTTModifyTime()const; + std::string getProcessFailReason()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getVideoSTTFailReason()const; + std::string getVideoUri()const; + std::string getVideoFrameTagsFailReason()const; + std::string getVideoFormat()const; + std::string getVideoSTTStatus()const; + std::string getVideoFacesModifyTime()const; + std::vector getVideoTags()const; + std::string getCelebrityModifyTime()const; + float getVideoDuration()const; + std::string getCelebrityFailReason()const; + std::string getSetId()const; + std::string getCelebrityStatus()const; + std::string getVideoTagsStatus()const; + int getFileSize()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string processStatus_; + int videoWidth_; + std::string sourceType_; + std::string sourceUri_; + std::string videoInfo_; + std::string videoFrameTagsModifyTime_; + std::string remarksA_; + std::string videoFacesFailReason_; + std::string remarksB_; + std::string videoFacesStatus_; + std::string remarksC_; + std::string videoOCRModifyTime_; + std::string remarksD_; + int videoHeight_; + std::vector persons_; + std::vector celebrity_; + std::string sourcePosition_; + std::string videoOCRFailReason_; + std::string videoFrameTagsStatus_; + std::string videoTagsFailReason_; + std::string videoTagsModifyTime_; + std::string videoOCRStatus_; + int videoFrames_; + std::string processModifyTime_; + std::string videoSTTModifyTime_; + std::string processFailReason_; + std::string createTime_; + std::string externalId_; + std::string videoSTTFailReason_; + std::string videoUri_; + std::string videoFrameTagsFailReason_; + std::string videoFormat_; + std::string videoSTTStatus_; + std::string videoFacesModifyTime_; + std::vector videoTags_; + std::string celebrityModifyTime_; + float videoDuration_; + std::string celebrityFailReason_; + std::string setId_; + std::string celebrityStatus_; + std::string videoTagsStatus_; + int fileSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h new file mode 100644 index 000000000..b0b958277 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h @@ -0,0 +1,51 @@ +/* + * 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_GETVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetVideoTaskRequest : public RpcServiceRequest { +public: + GetVideoTaskRequest(); + ~GetVideoTaskRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + +private: + std::string project_; + std::string accessKeyId_; + std::string taskId_; + std::string taskType_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h new file mode 100644 index 000000000..5b62fa969 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h @@ -0,0 +1,71 @@ +/* + * 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_GETVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoTaskResult : public ServiceResult + { + public: + + + GetVideoTaskResult(); + explicit GetVideoTaskResult(const std::string &payload); + ~GetVideoTaskResult(); + std::string getStatus()const; + int getProgress()const; + std::string getNotifyEndpoint()const; + std::string getParameters()const; + std::string getTaskId()const; + std::string getEndTime()const; + std::string getTaskType()const; + std::string getStartTime()const; + std::string getNotifyTopicName()const; + std::string getErrorMessage()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int progress_; + std::string notifyEndpoint_; + std::string parameters_; + std::string taskId_; + std::string endTime_; + std::string taskType_; + std::string startTime_; + std::string notifyTopicName_; + std::string errorMessage_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h b/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h index 3fdce04ef..b9b119995 100644 --- a/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h +++ b/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h @@ -28,91 +28,43 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT GetWebofficeURLRequest : public RpcServiceRequest { public: - struct Watermark { - float rotate; - long horizontal; - std::string fillStyle; - long vertical; - long type; - std::string value; - std::string font; - }; - struct Permission { - bool print; - bool readonly; - bool rename; - bool history; - bool copy; - bool export; - }; - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; - struct User { - std::string name; - std::string id; - std::string avatar; - }; GetWebofficeURLRequest(); ~GetWebofficeURLRequest(); - std::string getReferer() const; - void setReferer(const std::string &referer); - std::string getPassword() const; - void setPassword(const std::string &password); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - Watermark getWatermark() const; - void setWatermark(const Watermark &watermark); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - std::string getFilename() const; - void setFilename(const std::string &filename); - std::string getSourceURI() const; - void setSourceURI(const std::string &sourceURI); - bool getExternalUploaded() const; - void setExternalUploaded(bool externalUploaded); - std::string getUserData() const; - void setUserData(const std::string &userData); - long getPreviewPages() const; - void setPreviewPages(long previewPages); + std::string getSrcType() const; + void setSrcType(const std::string &srcType); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getFile() const; + void setFile(const std::string &file); bool getHidecmb() const; void setHidecmb(bool hidecmb); - bool getCachePreview() const; - void setCachePreview(bool cachePreview); - Permission getPermission() const; - void setPermission(const Permission &permission); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); - User getUser() const; - void setUser(const User &user); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getFileID() const; + void setFileID(const std::string &fileID); + std::string getWatermark() const; + void setWatermark(const std::string &watermark); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getPermission() const; + void setPermission(const std::string &permission); + std::string getUser() const; + void setUser(const std::string &user); private: - std::string referer_; - std::string password_; - std::string notifyEndpoint_; - std::string projectName_; - Watermark watermark_; - std::string notifyTopicName_; - std::string filename_; - std::string sourceURI_; - bool externalUploaded_; - std::string userData_; - long previewPages_; + std::string srcType_; + std::string project_; + std::string accessKeyId_; + std::string file_; bool hidecmb_; - bool cachePreview_; - Permission permission_; - CredentialConfig credentialConfig_; - User user_; + std::string notifyEndpoint_; + std::string fileID_; + std::string watermark_; + std::string notifyTopicName_; + std::string permission_; + std::string user_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h b/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h index a119c91a9..76c0dd3ac 100644 --- a/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h @@ -46,23 +46,23 @@ public: }; IndexFileMetaRequest(); ~IndexFileMetaRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); File getFile() const; void setFile(const File &file); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); std::string getNotifyEndpoint() const; void setNotifyEndpoint(const std::string ¬ifyEndpoint); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); private: + std::string projectName_; File file_; + std::string notifyTopicName_; std::string notifyEndpoint_; std::string datasetName_; - std::string projectName_; - std::string notifyTopicName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/IndexImageRequest.h b/imm/include/alibabacloud/imm/model/IndexImageRequest.h new file mode 100644 index 000000000..d2682d4e4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexImageRequest.h @@ -0,0 +1,90 @@ +/* + * 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_INDEXIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT IndexImageRequest : public RpcServiceRequest { +public: + IndexImageRequest(); + ~IndexImageRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRealUid() const; + void setRealUid(const std::string &realUid); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getRemarksB() const; + void setRemarksB(const std::string &remarksB); + std::string getRemarksA() const; + 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; + void setSourcePosition(const std::string &sourcePosition); + std::string getRemarksD() const; + void setRemarksD(const std::string &remarksD); + std::string getRemarksC() const; + void setRemarksC(const std::string &remarksC); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string externalId_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string sourceType_; + std::string realUid_; + std::string notifyTopicName_; + std::string remarksB_; + std::string remarksA_; + std::string imageUri_; + std::string remarksArrayA_; + std::string remarksArrayB_; + std::string sourceUri_; + std::string sourcePosition_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/IndexImageResult.h b/imm/include/alibabacloud/imm/model/IndexImageResult.h new file mode 100644 index 000000000..c5ab7175e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexImageResult.h @@ -0,0 +1,71 @@ +/* + * 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_INDEXIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexImageResult : public ServiceResult + { + public: + + + 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 getRemarksA()const; + std::string getImageUri()const; + std::string getSetId()const; + std::string getRemarksB()const; + + 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 remarksA_; + std::string imageUri_; + std::string setId_; + std::string remarksB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexVideoRequest.h b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h new file mode 100644 index 000000000..b2324a3f7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h @@ -0,0 +1,90 @@ +/* + * 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_INDEXVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT IndexVideoRequest : public RpcServiceRequest { +public: + IndexVideoRequest(); + ~IndexVideoRequest(); + std::string getGrabType() const; + void setGrabType(const std::string &grabType); + std::string getProject() const; + void setProject(const std::string &project); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNotifyEndpoint() const; + void setNotifyEndpoint(const std::string ¬ifyEndpoint); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getRemarksB() const; + void setRemarksB(const std::string &remarksB); + std::string getRemarksA() const; + void setRemarksA(const std::string &remarksA); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + bool getSaveType() const; + void setSaveType(bool saveType); + std::string getRemarksD() const; + void setRemarksD(const std::string &remarksD); + std::string getRemarksC() const; + void setRemarksC(const std::string &remarksC); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::string getInterval() const; + void setInterval(const std::string &interval); + std::string getTgtUri() const; + void setTgtUri(const std::string &tgtUri); + +private: + std::string grabType_; + std::string project_; + std::string externalId_; + std::string startTime_; + std::string accessKeyId_; + std::string notifyEndpoint_; + std::string notifyTopicName_; + std::string remarksB_; + std::string remarksA_; + std::string endTime_; + std::string videoUri_; + bool saveType_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::string interval_; + std::string tgtUri_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/IndexVideoResult.h b/imm/include/alibabacloud/imm/model/IndexVideoResult.h new file mode 100644 index 000000000..f88d349ea --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexVideoResult.h @@ -0,0 +1,79 @@ +/* + * 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_INDEXVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexVideoResult : public ServiceResult + { + public: + + + IndexVideoResult(); + explicit IndexVideoResult(const std::string &payload); + ~IndexVideoResult(); + std::string getModifyTime()const; + std::string getEndTime()const; + bool getSaveType()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getStartTime()const; + std::string getGrabType()const; + std::string getVideoUri()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + std::string getTgtUri()const; + std::string getSetId()const; + float getInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string endTime_; + bool saveType_; + std::string createTime_; + std::string externalId_; + std::string startTime_; + std::string grabType_; + std::string videoUri_; + std::string remarksA_; + std::string remarksB_; + std::string remarksC_; + std::string remarksD_; + std::string tgtUri_; + std::string setId_; + float interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListBindingsRequest.h b/imm/include/alibabacloud/imm/model/ListBindingsRequest.h index 6465d32bb..0b5dffb54 100644 --- a/imm/include/alibabacloud/imm/model/ListBindingsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListBindingsRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_IMM_EXPORT ListBindingsRequest : public RpcServiceRequest { public: ListBindingsRequest(); ~ListBindingsRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); long getMaxResults() const; void setMaxResults(long maxResults); private: + std::string projectName_; std::string nextToken_; std::string datasetName_; - std::string projectName_; long maxResults_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h b/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h index c9c59c326..b48c7ebbd 100644 --- a/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h @@ -30,19 +30,19 @@ class ALIBABACLOUD_IMM_EXPORT ListDatasetsRequest : public RpcServiceRequest { public: ListDatasetsRequest(); ~ListDatasetsRequest(); - std::string getPrefix() const; - void setPrefix(const std::string &prefix); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getPrefix() const; + void setPrefix(const std::string &prefix); long getMaxResults() const; void setMaxResults(long maxResults); private: - std::string prefix_; - std::string nextToken_; std::string projectName_; + std::string nextToken_; + std::string prefix_; long maxResults_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h b/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h new file mode 100644 index 000000000..18b3946a4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h @@ -0,0 +1,81 @@ +/* + * 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_LISTFACEGROUPSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsRequest : public RpcServiceRequest { +public: + ListFaceGroupsRequest(); + ~ListFaceGroupsRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getRemarksBQuery() const; + void setRemarksBQuery(const std::string &remarksBQuery); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getLimit() const; + void setLimit(int limit); + std::string getRemarksArrayBQuery() const; + void setRemarksArrayBQuery(const std::string &remarksArrayBQuery); + std::string getOrder() const; + void setOrder(const std::string &order); + std::string getRemarksAQuery() const; + void setRemarksAQuery(const std::string &remarksAQuery); + std::string getOrderBy() const; + void setOrderBy(const std::string &orderBy); + std::string getRemarksDQuery() const; + void setRemarksDQuery(const std::string &remarksDQuery); + std::string getRemarksArrayAQuery() const; + void setRemarksArrayAQuery(const std::string &remarksArrayAQuery); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::string getRemarksCQuery() const; + void setRemarksCQuery(const std::string &remarksCQuery); + +private: + std::string project_; + std::string remarksBQuery_; + std::string externalId_; + std::string accessKeyId_; + int limit_; + std::string remarksArrayBQuery_; + std::string order_; + std::string remarksAQuery_; + std::string orderBy_; + std::string remarksDQuery_; + std::string remarksArrayAQuery_; + std::string marker_; + std::string setId_; + std::string remarksCQuery_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h b/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h new file mode 100644 index 000000000..029765b41 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h @@ -0,0 +1,90 @@ +/* + * 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_LISTFACEGROUPSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceGroupsResult : public ServiceResult + { + public: + struct FaceGroupsItem + { + struct GroupCoverFace + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + std::string faceId; + FaceBoundary faceBoundary; + long imageHeight; + long imageWidth; + std::string externalId; + std::string imageUri; + }; + GroupCoverFace groupCoverFace; + std::string groupName; + std::string modifyTime; + std::string createTime; + std::string externalId; + float maxAge; + std::string gender; + std::string remarksA; + float averageAge; + std::string remarksB; + std::string groupId; + std::string remarksArrayB; + std::string remarksC; + float minAge; + int imageCount; + std::string remarksD; + std::string remarksArrayA; + int faceCount; + }; + + + ListFaceGroupsResult(); + explicit ListFaceGroupsResult(const std::string &payload); + ~ListFaceGroupsResult(); + std::string getNextMarker()const; + std::vector getFaceGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextMarker_; + std::vector faceGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACEGROUPSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImagesRequest.h b/imm/include/alibabacloud/imm/model/ListImagesRequest.h new file mode 100644 index 000000000..8d298945e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImagesRequest.h @@ -0,0 +1,57 @@ +/* + * 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_LISTIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListImagesRequest : public RpcServiceRequest { +public: + ListImagesRequest(); + ~ListImagesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getLimit() const; + void setLimit(int limit); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + +private: + std::string project_; + std::string accessKeyId_; + int limit_; + std::string marker_; + std::string setId_; + std::string createTimeStart_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListImagesResult.h b/imm/include/alibabacloud/imm/model/ListImagesResult.h new file mode 100644 index 000000000..c4231152f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImagesResult.h @@ -0,0 +1,208 @@ +/* + * 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_LISTIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + struct Address + { + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct ImageQuality + { + float clarityScore; + float compositionScore; + float color; + float contrastScore; + float exposure; + float overallScore; + float contrast; + float clarity; + float colorScore; + float exposureScore; + }; + struct TagsItem + { + float centricScore; + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sURPRISED; + float sAD; + float dISGUSTED; + float aNGRY; + }; + EmotionDetails emotionDetails; + std::string faceId; + float faceConfidence; + float faceQuality; + float attractive; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct CroppingSuggestionItem + { + struct CroppingBoundary + { + int left; + int top; + int height; + int width; + }; + std::string aspectRatio; + float score; + CroppingBoundary croppingBoundary; + }; + ImageQuality imageQuality; + std::string modifyTime; + Address address; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string croppingSuggestionStatus; + std::string croppingSuggestionFailReason; + std::string addressFailReason; + std::string remarksA; + std::string addressModifyTime; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string remarksArrayB; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::string remarksArrayA; + std::string sourcePosition; + std::vector tags; + std::vector faces; + std::string addressStatus; + std::string facesStatus; + std::string imageQualityModifyTime; + std::vector croppingSuggestion; + std::string createTime; + std::string externalId; + std::string tagsModifyTime; + std::string imageQualityFailReason; + std::string orientation; + std::string imageUri; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string croppingSuggestionModifyTime; + int imageHeight; + std::string imageQualityStatus; + std::string tagsStatus; + std::string oCRFailReason; + std::vector oCR; + int fileSize; + std::string location; + }; + + + ListImagesResult(); + explicit ListImagesResult(const std::string &payload); + ~ListImagesResult(); + std::vector getImages()const; + std::string getNextMarker()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::string nextMarker_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h new file mode 100644 index 000000000..7b1f83c32 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h @@ -0,0 +1,51 @@ +/* + * 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_LISTOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskRequest : public RpcServiceRequest { +public: + ListOfficeConversionTaskRequest(); + ~ListOfficeConversionTaskRequest(); + int getMaxKeys() const; + void setMaxKeys(int maxKeys); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMarker() const; + void setMarker(const std::string &marker); + +private: + int maxKeys_; + std::string project_; + std::string accessKeyId_; + std::string marker_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h new file mode 100644 index 000000000..ef7d4a37a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h @@ -0,0 +1,69 @@ +/* + * 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_LISTOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskResult : public ServiceResult + { + public: + struct TasksItem + { + std::string status; + std::string tgtType; + std::string taskId; + int percent; + std::string createTime; + std::string externalID; + std::string imageSpec; + std::string notifyEndpoint; + std::string tgtUri; + std::string finishTime; + int pageCount; + std::string notifyTopicName; + std::string srcUri; + }; + + + ListOfficeConversionTaskResult(); + explicit ListOfficeConversionTaskResult(const std::string &payload); + ~ListOfficeConversionTaskResult(); + std::vector getTasks()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectsRequest.h b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h index 749ec8cd9..72f5a8e19 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectsRequest.h +++ b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT ListProjectsRequest : public RpcServiceRequest { public: ListProjectsRequest(); ~ListProjectsRequest(); - std::string getPrefix() const; - void setPrefix(const std::string &prefix); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - long getMaxResults() const; - void setMaxResults(long maxResults); + int getMaxKeys() const; + void setMaxKeys(int maxKeys); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMarker() const; + void setMarker(const std::string &marker); private: - std::string prefix_; - std::string nextToken_; - long maxResults_; + int maxKeys_; + std::string accessKeyId_; + std::string marker_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/ListProjectsResult.h b/imm/include/alibabacloud/imm/model/ListProjectsResult.h index 2caf54c6e..f87df0fad 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectsResult.h +++ b/imm/include/alibabacloud/imm/model/ListProjectsResult.h @@ -34,37 +34,29 @@ namespace AlibabaCloud public: struct ProjectsItem { - std::string description; - long fileCount; - std::string projectName; - std::string createTime; - long projectMaxDatasetCount; - long datasetMaxTotalFileSize; - long datasetMaxRelationCount; - long datasetMaxFileCount; - long engineConcurrency; + std::string project; + std::string modifyTime; + std::string type; + int cU; std::string serviceRole; - long datasetMaxBindCount; - long datasetCount; - std::string updateTime; - long datasetMaxEntityCount; - long totalFileSize; - std::string templateId; - long projectQueriesPerSecond; + std::string endpoint; + std::string createTime; + std::string regionId; + std::string billingType; }; ListProjectsResult(); explicit ListProjectsResult(const std::string &payload); ~ListProjectsResult(); - std::string getNextToken()const; std::vector getProjects()const; + std::string getNextMarker()const; protected: void parse(const std::string &payload); private: - std::string nextToken_; std::vector projects_; + std::string nextMarker_; }; } diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h new file mode 100644 index 000000000..23917821c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_LISTSETTAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListSetTagsRequest : public RpcServiceRequest { +public: + ListSetTagsRequest(); + ~ListSetTagsRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h new file mode 100644 index 000000000..120c3aaf7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h @@ -0,0 +1,59 @@ +/* + * 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_LISTSETTAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetTagsResult : public ServiceResult + { + public: + struct TagsItem + { + int tagCount; + std::string tagName; + int tagLevel; + }; + + + ListSetTagsResult(); + explicit ListSetTagsResult(const std::string &payload); + ~ListSetTagsResult(); + std::string getSetId()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetsRequest.h b/imm/include/alibabacloud/imm/model/ListSetsRequest.h new file mode 100644 index 000000000..7af8e5257 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_LISTSETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListSetsRequest : public RpcServiceRequest { +public: + ListSetsRequest(); + ~ListSetsRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMarker() const; + void setMarker(const std::string &marker); + +private: + std::string project_; + std::string accessKeyId_; + std::string marker_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListSetsResult.h b/imm/include/alibabacloud/imm/model/ListSetsResult.h new file mode 100644 index 000000000..8f3a408b4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetsResult.h @@ -0,0 +1,64 @@ +/* + * 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_LISTSETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetsResult : public ServiceResult + { + public: + struct SetsItem + { + std::string modifyTime; + int videoCount; + int imageCount; + std::string createTime; + std::string setName; + std::string setId; + int videoLength; + int faceCount; + }; + + + ListSetsResult(); + explicit ListSetsResult(const std::string &payload); + ~ListSetsResult(); + std::vector getSets()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sets_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTasksRequest.h b/imm/include/alibabacloud/imm/model/ListTasksRequest.h index 1f1e385a0..404e78aad 100644 --- a/imm/include/alibabacloud/imm/model/ListTasksRequest.h +++ b/imm/include/alibabacloud/imm/model/ListTasksRequest.h @@ -28,48 +28,48 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT ListTasksRequest : public RpcServiceRequest { public: - struct StartTimeRange { + struct EndTimeRange { std::string start; std::string end; }; - struct EndTimeRange { + struct StartTimeRange { std::string start; std::string end; }; ListTasksRequest(); ~ListTasksRequest(); - StartTimeRange getStartTimeRange() const; - void setStartTimeRange(const StartTimeRange &startTimeRange); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getOrder() const; - void setOrder(const std::string &order); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); std::vector getTaskTypes() const; void setTaskTypes(const std::vector &taskTypes); EndTimeRange getEndTimeRange() const; void setEndTimeRange(const EndTimeRange &endTimeRange); - std::string getSort() const; - void setSort(const std::string &sort); long getMaxResults() const; void setMaxResults(long maxResults); std::string getTagSelector() const; void setTagSelector(const std::string &tagSelector); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrder() const; + void setOrder(const std::string &order); std::string getStatus() const; void setStatus(const std::string &status); + StartTimeRange getStartTimeRange() const; + void setStartTimeRange(const StartTimeRange &startTimeRange); private: - StartTimeRange startTimeRange_; - std::string nextToken_; - std::string order_; std::string projectName_; + std::string nextToken_; std::vector taskTypes_; EndTimeRange endTimeRange_; - std::string sort_; long maxResults_; std::string tagSelector_; + std::string sort_; + std::string order_; std::string status_; + StartTimeRange startTimeRange_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h new file mode 100644 index 000000000..23f8b9b4a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h @@ -0,0 +1,54 @@ +/* + * 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_LISTVIDEOAUDIOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosRequest : public RpcServiceRequest { +public: + ListVideoAudiosRequest(); + ~ListVideoAudiosRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string videoUri_; + std::string marker_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h new file mode 100644 index 000000000..3dec578a9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h @@ -0,0 +1,95 @@ +/* + * 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_LISTVIDEOAUDIOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosResult : public ServiceResult + { + public: + struct AudiosItem + { + struct AudioTextsItem + { + float endTime; + float confidence; + float silenceDuration; + float beginTime; + std::string text; + std::string library; + int channelId; + std::string person; + int speechRate; + float emotionValue; + }; + std::string modifyTime; + std::string processModifyTime; + std::string processStatus; + std::string processFailReason; + std::string createTime; + std::string sourceType; + std::string externalId; + std::string sourceUri; + std::string remarksA; + std::string remarksB; + std::string remarksC; + std::string remarksD; + std::string audioUri; + std::string sourcePosition; + std::vector audioTexts; + std::string audioTextsStatus; + std::string audioFormat; + int audioRate; + std::string audioTextsModifyTime; + float audioDuration; + std::string audioTextsFailReason; + int fileSize; + }; + + + ListVideoAudiosResult(); + explicit ListVideoAudiosResult(const std::string &payload); + ~ListVideoAudiosResult(); + std::vector getAudios()const; + std::string getVideoUri()const; + std::string getNextMarker()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector audios_; + std::string videoUri_; + std::string nextMarker_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h new file mode 100644 index 000000000..d6eeec307 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h @@ -0,0 +1,54 @@ +/* + * 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_LISTVIDEOFRAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListVideoFramesRequest : public RpcServiceRequest { +public: + ListVideoFramesRequest(); + ~ListVideoFramesRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVideoUri() const; + void setVideoUri(const std::string &videoUri); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string videoUri_; + std::string marker_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h new file mode 100644 index 000000000..d3a46f9a9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h @@ -0,0 +1,160 @@ +/* + * 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_LISTVIDEOFRAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoFramesResult : public ServiceResult + { + public: + struct FramesItem + { + struct TagsItem + { + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sURPRISED; + float sAD; + float dISGUSTED; + float aNGRY; + }; + EmotionDetails emotionDetails; + std::string faceId; + float faceConfidence; + float faceQuality; + float attractive; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + std::string modifyTime; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string remarksA; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::string sourcePosition; + std::vector tags; + std::vector faces; + std::string facesStatus; + std::string createTime; + std::string externalId; + std::string tagsModifyTime; + std::string orientation; + std::string imageUri; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + int imageHeight; + std::string tagsStatus; + std::string oCRFailReason; + std::vector oCR; + int fileSize; + std::string location; + }; + + + ListVideoFramesResult(); + explicit ListVideoFramesResult(const std::string &payload); + ~ListVideoFramesResult(); + std::vector getFrames()const; + std::string getVideoUri()const; + std::string getNextMarker()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector frames_; + std::string videoUri_; + std::string nextMarker_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h new file mode 100644 index 000000000..548dbce5a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h @@ -0,0 +1,54 @@ +/* + * 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_LISTVIDEOTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListVideoTasksRequest : public RpcServiceRequest { +public: + ListVideoTasksRequest(); + ~ListVideoTasksRequest(); + int getMaxKeys() const; + void setMaxKeys(int maxKeys); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + std::string getMarker() const; + void setMarker(const std::string &marker); + +private: + int maxKeys_; + std::string project_; + std::string accessKeyId_; + std::string taskType_; + std::string marker_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h new file mode 100644 index 000000000..0a0e0a9e0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h @@ -0,0 +1,67 @@ +/* + * 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_LISTVIDEOTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoTasksResult : public ServiceResult + { + public: + struct TasksItem + { + std::string status; + int progress; + std::string notifyEndpoint; + std::string parameters; + std::string taskId; + std::string endTime; + std::string taskType; + std::string startTime; + std::string notifyTopicName; + std::string errorMessage; + std::string result; + }; + + + ListVideoTasksResult(); + explicit ListVideoTasksResult(const std::string &payload); + ~ListVideoTasksResult(); + std::vector getTasks()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideosRequest.h b/imm/include/alibabacloud/imm/model/ListVideosRequest.h new file mode 100644 index 000000000..cd8641574 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideosRequest.h @@ -0,0 +1,54 @@ +/* + * 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_LISTVIDEOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListVideosRequest : public RpcServiceRequest { +public: + ListVideosRequest(); + ~ListVideosRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMarker() const; + void setMarker(const std::string &marker); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + +private: + std::string project_; + std::string accessKeyId_; + std::string marker_; + std::string setId_; + std::string createTimeStart_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListVideosResult.h b/imm/include/alibabacloud/imm/model/ListVideosResult.h new file mode 100644 index 000000000..239b99ecc --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideosResult.h @@ -0,0 +1,108 @@ +/* + * 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_LISTVIDEOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideosResult : public ServiceResult + { + public: + struct VideosItem + { + struct VideoTagsItem + { + std::string tagName; + float tagConfidence; + int tagLevel; + std::string parentTagName; + }; + struct CelebrityItem + { + std::string celebrityName; + int celebrityNum; + std::string celebrityLibraryName; + }; + struct PersonsItem + { + std::string personId; + float genderConfidence; + std::string gender; + float ageConfidence; + int age; + }; + std::string modifyTime; + std::string processStatus; + int videoWidth; + std::string sourceType; + std::string sourceUri; + std::string remarksA; + std::string remarksB; + std::string remarksC; + std::string remarksD; + int videoHeight; + std::vector persons; + std::vector celebrity; + std::string sourcePosition; + std::string videoTagsFailReason; + std::string videoTagsModifyTime; + int videoFrames; + std::string processModifyTime; + std::string processFailReason; + std::string createTime; + std::string externalId; + std::string videoUri; + std::string videoFormat; + std::vector videoTags; + std::string celebrityModifyTime; + float videoDuration; + std::string celebrityFailReason; + std::string celebrityStatus; + std::string videoTagsStatus; + int fileSize; + }; + + + ListVideosResult(); + explicit ListVideosResult(const std::string &payload); + ~ListVideosResult(); + std::string getNextMarker()const; + std::string getSetId()const; + std::vector getVideos()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextMarker_; + std::string setId_; + std::vector videos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.h b/imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.h index 49ad5cd25..45ea123cd 100644 --- a/imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.h +++ b/imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.h @@ -30,10 +30,6 @@ class ALIBABACLOUD_IMM_EXPORT MergeFigureClustersRequest : public RpcServiceRequ public: MergeFigureClustersRequest(); ~MergeFigureClustersRequest(); - std::string getNotifyTopicEndpoint() const; - void setNotifyTopicEndpoint(const std::string ¬ifyTopicEndpoint); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getCustomMessage() const; void setCustomMessage(const std::string &customMessage); std::string getClusterIdFrom() const; @@ -42,20 +38,24 @@ public: void setProjectName(const std::string &projectName); std::string getNotifyTopicName() const; void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getFigureType() const; void setFigureType(const std::string &figureType); std::string getClusterIdTo() const; void setClusterIdTo(const std::string &clusterIdTo); + std::string getNotifyTopicEndpoint() const; + void setNotifyTopicEndpoint(const std::string ¬ifyTopicEndpoint); private: - std::string notifyTopicEndpoint_; - std::string datasetName_; std::string customMessage_; std::string clusterIdFrom_; std::string projectName_; std::string notifyTopicName_; + std::string datasetName_; std::string figureType_; std::string clusterIdTo_; + std::string notifyTopicEndpoint_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/OpenImmServiceRequest.h b/imm/include/alibabacloud/imm/model/OpenImmServiceRequest.h new file mode 100644 index 000000000..fb33900da --- /dev/null +++ b/imm/include/alibabacloud/imm/model/OpenImmServiceRequest.h @@ -0,0 +1,42 @@ +/* + * 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_OPENIMMSERVICEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT OpenImmServiceRequest : public RpcServiceRequest { +public: + OpenImmServiceRequest(); + ~OpenImmServiceRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long ownerId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/OpenImmServiceResult.h b/imm/include/alibabacloud/imm/model/OpenImmServiceResult.h new file mode 100644 index 000000000..316fa7365 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/OpenImmServiceResult.h @@ -0,0 +1,51 @@ +/* + * 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_OPENIMMSERVICERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT OpenImmServiceResult : public ServiceResult + { + public: + + + OpenImmServiceResult(); + explicit OpenImmServiceResult(const std::string &payload); + ~OpenImmServiceResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectRequest.h b/imm/include/alibabacloud/imm/model/PutProjectRequest.h new file mode 100644 index 000000000..4619a5180 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PutProjectRequest.h @@ -0,0 +1,51 @@ +/* + * 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_PUTPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT PutProjectRequest : public RpcServiceRequest { +public: + PutProjectRequest(); + ~PutProjectRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getBCTaskVersion() const; + void setBCTaskVersion(const std::string &bCTaskVersion); + std::string getServiceRole() const; + void setServiceRole(const std::string &serviceRole); + +private: + std::string project_; + std::string accessKeyId_; + std::string bCTaskVersion_; + std::string serviceRole_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/PutProjectResult.h b/imm/include/alibabacloud/imm/model/PutProjectResult.h new file mode 100644 index 000000000..936bbdf30 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PutProjectResult.h @@ -0,0 +1,67 @@ +/* + * 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_PUTPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PutProjectResult : public ServiceResult + { + public: + + + PutProjectResult(); + explicit PutProjectResult(const std::string &payload); + ~PutProjectResult(); + std::string getProject()const; + std::string getModifyTime()const; + std::string getType()const; + int getCU()const; + std::string getServiceRole()const; + std::string getEndpoint()const; + std::string getCreateTime()const; + std::string getRegionId()const; + std::string getBillingType()const; + + protected: + void parse(const std::string &payload); + private: + std::string project_; + std::string modifyTime_; + std::string type_; + int cU_; + std::string serviceRole_; + std::string endpoint_; + std::string createTime_; + std::string regionId_; + std::string billingType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.h b/imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.h index 6f8d14bce..87999b4c1 100644 --- a/imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.h +++ b/imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.h @@ -30,29 +30,29 @@ class ALIBABACLOUD_IMM_EXPORT QueryFigureClustersRequest : public RpcServiceRequ public: QueryFigureClustersRequest(); ~QueryFigureClustersRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); std::string getCustomLabels() const; void setCustomLabels(const std::string &customLabels); std::string getNextToken() const; void setNextToken(const std::string &nextToken); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - std::string getOrder() const; - void setOrder(const std::string &order); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getSort() const; - void setSort(const std::string &sort); long getMaxResults() const; void setMaxResults(long maxResults); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getOrder() const; + void setOrder(const std::string &order); private: + std::string projectName_; std::string customLabels_; std::string nextToken_; std::string datasetName_; - std::string order_; - std::string projectName_; - std::string sort_; long maxResults_; + std::string sort_; + std::string order_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h b/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h index 93f0474e2..1dc4013e8 100644 --- a/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h +++ b/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h @@ -28,11 +28,11 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT QueryStoriesRequest : public RpcServiceRequest { public: - struct StoryStartTimeRange { + struct StoryEndTimeRange { std::string start; std::string end; }; - struct StoryEndTimeRange { + struct StoryStartTimeRange { std::string start; std::string end; }; @@ -44,54 +44,54 @@ public: ~QueryStoriesRequest(); std::vector getFigureClusterIds() const; void setFigureClusterIds(const std::vector &figureClusterIds); - std::string getCustomLabels() const; - void setCustomLabels(const std::string &customLabels); - bool getWithEmptyStories() const; - void setWithEmptyStories(bool withEmptyStories); - std::string getOrder() const; - void setOrder(const std::string &order); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getCustomLabels() const; + void setCustomLabels(const std::string &customLabels); std::string getSort() const; void setSort(const std::string &sort); std::string getStoryType() const; void setStoryType(const std::string &storyType); - StoryStartTimeRange getStoryStartTimeRange() const; - void setStoryStartTimeRange(const StoryStartTimeRange &storyStartTimeRange); - std::string getStorySubType() const; - void setStorySubType(const std::string &storySubType); - long getMaxResults() const; - void setMaxResults(long maxResults); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); StoryEndTimeRange getStoryEndTimeRange() const; void setStoryEndTimeRange(const StoryEndTimeRange &storyEndTimeRange); + bool getWithEmptyStories() const; + void setWithEmptyStories(bool withEmptyStories); + StoryStartTimeRange getStoryStartTimeRange() const; + void setStoryStartTimeRange(const StoryStartTimeRange &storyStartTimeRange); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getStorySubType() const; + void setStorySubType(const std::string &storySubType); CreateTimeRange getCreateTimeRange() const; void setCreateTimeRange(const CreateTimeRange &createTimeRange); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + long getMaxResults() const; + void setMaxResults(long maxResults); std::string getObjectId() const; void setObjectId(const std::string &objectId); std::string getStoryName() const; void setStoryName(const std::string &storyName); + std::string getOrder() const; + void setOrder(const std::string &order); private: std::vector figureClusterIds_; - std::string customLabels_; - bool withEmptyStories_; - std::string order_; std::string projectName_; + std::string customLabels_; std::string sort_; std::string storyType_; - StoryStartTimeRange storyStartTimeRange_; - std::string storySubType_; - long maxResults_; - std::string nextToken_; - std::string datasetName_; StoryEndTimeRange storyEndTimeRange_; + bool withEmptyStories_; + StoryStartTimeRange storyStartTimeRange_; + std::string nextToken_; + std::string storySubType_; CreateTimeRange createTimeRange_; + std::string datasetName_; + long maxResults_; std::string objectId_; std::string storyName_; + std::string order_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h b/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h new file mode 100644 index 000000000..0fce216d6 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h @@ -0,0 +1,51 @@ +/* + * 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_REFRESHOFFICEPREVIEWTOKENREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT RefreshOfficePreviewTokenRequest : public RpcServiceRequest { +public: + RefreshOfficePreviewTokenRequest(); + ~RefreshOfficePreviewTokenRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessToken() const; + void setAccessToken(const std::string &accessToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRefreshToken() const; + void setRefreshToken(const std::string &refreshToken); + +private: + std::string project_; + std::string accessToken_; + std::string accessKeyId_; + std::string refreshToken_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h b/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h new file mode 100644 index 000000000..9be49b69e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h @@ -0,0 +1,57 @@ +/* + * 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_REFRESHOFFICEPREVIEWTOKENRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RefreshOfficePreviewTokenResult : public ServiceResult + { + public: + + + RefreshOfficePreviewTokenResult(); + explicit RefreshOfficePreviewTokenResult(const std::string &payload); + ~RefreshOfficePreviewTokenResult(); + std::string getRefreshToken()const; + std::string getAccessToken()const; + std::string getRefreshTokenExpiredTime()const; + std::string getAccessTokenExpiredTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string refreshToken_; + std::string accessToken_; + std::string refreshTokenExpiredTime_; + std::string accessTokenExpiredTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEPREVIEWTOKENRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h b/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h index edcbd1ef0..2e7dc251f 100644 --- a/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h +++ b/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h @@ -28,33 +28,22 @@ namespace Imm { namespace Model { class ALIBABACLOUD_IMM_EXPORT RefreshWebofficeTokenRequest : public RpcServiceRequest { public: - struct CredentialConfig { - struct ChainItem { - std::string role; - std::string roleType; - std::string assumeRoleFor; - }; - ChainItem chainItem; - std::vector chain; - std::string serviceRole; - std::string policy; - }; RefreshWebofficeTokenRequest(); ~RefreshWebofficeTokenRequest(); + std::string getProject() const; + void setProject(const std::string &project); std::string getAccessToken() const; void setAccessToken(const std::string &accessToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); std::string getRefreshToken() const; void setRefreshToken(const std::string &refreshToken); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - CredentialConfig getCredentialConfig() const; - void setCredentialConfig(const CredentialConfig &credentialConfig); private: + std::string project_; std::string accessToken_; + std::string accessKeyId_; std::string refreshToken_; - std::string projectName_; - CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.h b/imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.h index 84f4077e0..9ba942f67 100644 --- a/imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.h +++ b/imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.h @@ -33,18 +33,18 @@ public: }; RemoveStoryFilesRequest(); ~RemoveStoryFilesRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::vector getFiles() const; void setFiles(const std::vector &files); std::string getObjectId() const; void setObjectId(const std::string &objectId); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::vector files_; std::string objectId_; }; diff --git a/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h b/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h index cd6cc2939..8c990a029 100644 --- a/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h +++ b/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_IMM_EXPORT ResumeBindingRequest : public RpcServiceRequest { public: ResumeBindingRequest(); ~ResumeBindingRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getURI() const; void setURI(const std::string &uRI); private: - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h b/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h index 7fb07db64..a5272f2ad 100644 --- a/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h +++ b/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_IMM_EXPORT SemanticQueryRequest : public RpcServiceRequest { public: SemanticQueryRequest(); ~SemanticQueryRequest(); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); std::string getQuery() const; void setQuery(const std::string &query); int getMaxResults() const; void setMaxResults(int maxResults); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string nextToken_; - std::string datasetName_; std::string projectName_; + std::string nextToken_; std::string query_; int maxResults_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h b/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h index a3b2bfa6d..fc1a16f34 100644 --- a/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h +++ b/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h @@ -41,35 +41,35 @@ public: }; SimpleQueryRequest(); ~SimpleQueryRequest(); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getOrder() const; - void setOrder(const std::string &order); std::string getProjectName() const; void setProjectName(const std::string &projectName); - Query getQuery() const; - void setQuery(const Query &query); - std::string getSort() const; - void setSort(const std::string &sort); std::vector getWithFields() const; void setWithFields(const std::vector &withFields); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + Query getQuery() const; + void setQuery(const Query &query); int getMaxResults() const; void setMaxResults(int maxResults); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getSort() const; + void setSort(const std::string &sort); std::vector getAggregations() const; void setAggregations(const std::vector &aggregations); + std::string getOrder() const; + void setOrder(const std::string &order); private: - std::string nextToken_; - std::string datasetName_; - std::string order_; std::string projectName_; - Query query_; - std::string sort_; std::vector withFields_; + std::string nextToken_; + Query query_; int maxResults_; + std::string datasetName_; + std::string sort_; std::vector aggregations_; + std::string order_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/StopBindingRequest.h b/imm/include/alibabacloud/imm/model/StopBindingRequest.h index 7407e2fc5..03e31f64a 100644 --- a/imm/include/alibabacloud/imm/model/StopBindingRequest.h +++ b/imm/include/alibabacloud/imm/model/StopBindingRequest.h @@ -32,17 +32,17 @@ public: ~StopBindingRequest(); std::string getReason() const; void setReason(const std::string &reason); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getURI() const; void setURI(const std::string &uRI); private: std::string reason_; - std::string datasetName_; std::string projectName_; + std::string datasetName_; std::string uRI_; }; } // namespace Model diff --git a/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h b/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h index d95b85226..84de0f244 100644 --- a/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h @@ -30,35 +30,35 @@ class ALIBABACLOUD_IMM_EXPORT UpdateDatasetRequest : public RpcServiceRequest { public: UpdateDatasetRequest(); ~UpdateDatasetRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); long getDatasetMaxBindCount() const; void setDatasetMaxBindCount(long datasetMaxBindCount); - std::string getDescription() const; - void setDescription(const std::string &description); + long getDatasetMaxTotalFileSize() const; + void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); long getDatasetMaxRelationCount() const; void setDatasetMaxRelationCount(long datasetMaxRelationCount); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - long getDatasetMaxFileCount() const; - void setDatasetMaxFileCount(long datasetMaxFileCount); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); + std::string getDescription() const; + void setDescription(const std::string &description); long getDatasetMaxEntityCount() const; void setDatasetMaxEntityCount(long datasetMaxEntityCount); + long getDatasetMaxFileCount() const; + void setDatasetMaxFileCount(long datasetMaxFileCount); std::string getTemplateId() const; void setTemplateId(const std::string &templateId); - long getDatasetMaxTotalFileSize() const; - void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); private: + std::string projectName_; long datasetMaxBindCount_; - std::string description_; + long datasetMaxTotalFileSize_; long datasetMaxRelationCount_; std::string datasetName_; - long datasetMaxFileCount_; - std::string projectName_; + std::string description_; long datasetMaxEntityCount_; + long datasetMaxFileCount_; std::string templateId_; - long datasetMaxTotalFileSize_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h b/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h new file mode 100644 index 000000000..bd89feb15 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h @@ -0,0 +1,81 @@ +/* + * 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_UPDATEFACEGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupRequest : public RpcServiceRequest { +public: + UpdateFaceGroupRequest(); + ~UpdateFaceGroupRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getGroupId() const; + void setGroupId(const std::string &groupId); + std::string getRemarksB() const; + void setRemarksB(const std::string &remarksB); + std::string getRemarksA() const; + void setRemarksA(const std::string &remarksA); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + std::string getResetItems() const; + void setResetItems(const std::string &resetItems); + std::string getRemarksArrayA() const; + void setRemarksArrayA(const std::string &remarksArrayA); + std::string getRemarksArrayB() const; + void setRemarksArrayB(const std::string &remarksArrayB); + std::string getRemarksD() const; + void setRemarksD(const std::string &remarksD); + std::string getRemarksC() const; + void setRemarksC(const std::string &remarksC); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::string getGroupCoverFaceId() const; + void setGroupCoverFaceId(const std::string &groupCoverFaceId); + +private: + std::string project_; + std::string externalId_; + std::string accessKeyId_; + std::string groupId_; + std::string remarksB_; + std::string remarksA_; + std::string groupName_; + std::string resetItems_; + std::string remarksArrayA_; + std::string remarksArrayB_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::string groupCoverFaceId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h b/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h new file mode 100644 index 000000000..0af957832 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.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_UPDATEFACEGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateFaceGroupResult : public ServiceResult + { + public: + + + UpdateFaceGroupResult(); + explicit UpdateFaceGroupResult(const std::string &payload); + ~UpdateFaceGroupResult(); + std::string getSetId()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFACEGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h b/imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h index 601b92817..5210f58b6 100644 --- a/imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h @@ -44,17 +44,17 @@ public: }; UpdateFigureClusterRequest(); ~UpdateFigureClusterRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); FigureCluster getFigureCluster() const; void setFigureCluster(const FigureCluster &figureCluster); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); private: - std::string datasetName_; std::string projectName_; FigureCluster figureCluster_; + std::string datasetName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h b/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h index a03cec2e3..ec51b9b32 100644 --- a/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h @@ -46,17 +46,17 @@ public: }; UpdateFileMetaRequest(); ~UpdateFileMetaRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); File getFile() const; void setFile(const File &file); std::string getDatasetName() const; void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); private: + std::string projectName_; File file_; std::string datasetName_; - std::string projectName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h new file mode 100644 index 000000000..445a264c1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h @@ -0,0 +1,88 @@ +/* + * 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_UPDATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateImageRequest : public RpcServiceRequest { +public: + struct Faces { + std::string groupId; + std::string faceId; + }; + UpdateImageRequest(); + ~UpdateImageRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getExternalId() const; + void setExternalId(const std::string &externalId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getRemarksB() const; + void setRemarksB(const std::string &remarksB); + std::string getRemarksA() const; + 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; + void setSourcePosition(const std::string &sourcePosition); + std::string getRemarksD() const; + void setRemarksD(const std::string &remarksD); + std::string getRemarksC() const; + void setRemarksC(const std::string &remarksC); + std::string getSetId() const; + void setSetId(const std::string &setId); + std::vector getFaces() const; + void setFaces(const std::vector &faces); + +private: + std::string project_; + std::string externalId_; + std::string accessKeyId_; + std::string sourceType_; + std::string remarksB_; + std::string remarksA_; + std::string imageUri_; + std::string remarksArrayA_; + std::string remarksArrayB_; + std::string sourceUri_; + std::string sourcePosition_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::vector faces_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateImageResult.h b/imm/include/alibabacloud/imm/model/UpdateImageResult.h new file mode 100644 index 000000000..23de72d7a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateImageResult.h @@ -0,0 +1,71 @@ +/* + * 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_UPDATEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateImageResult : public ServiceResult + { + public: + + + 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 getRemarksA()const; + std::string getImageUri()const; + std::string getSetId()const; + std::string getRemarksB()const; + + 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 remarksA_; + std::string imageUri_; + std::string setId_; + std::string remarksB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h index 89dbfb057..e4749279a 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h @@ -30,44 +30,23 @@ class ALIBABACLOUD_IMM_EXPORT UpdateProjectRequest : public RpcServiceRequest { public: UpdateProjectRequest(); ~UpdateProjectRequest(); - long getEngineConcurrency() const; - void setEngineConcurrency(long engineConcurrency); - long getDatasetMaxBindCount() const; - void setDatasetMaxBindCount(long datasetMaxBindCount); - std::string getDescription() const; - void setDescription(const std::string &description); - long getProjectQueriesPerSecond() const; - void setProjectQueriesPerSecond(long projectQueriesPerSecond); - long getDatasetMaxRelationCount() const; - void setDatasetMaxRelationCount(long datasetMaxRelationCount); - long getDatasetMaxFileCount() const; - void setDatasetMaxFileCount(long datasetMaxFileCount); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - long getProjectMaxDatasetCount() const; - void setProjectMaxDatasetCount(long projectMaxDatasetCount); - long getDatasetMaxEntityCount() const; - void setDatasetMaxEntityCount(long datasetMaxEntityCount); - std::string getTemplateId() const; - void setTemplateId(const std::string &templateId); - long getDatasetMaxTotalFileSize() const; - void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); - std::string getServiceRole() const; - void setServiceRole(const std::string &serviceRole); + std::string getProject() const; + void setProject(const std::string &project); + std::string getNewBCTaskVersion() const; + void setNewBCTaskVersion(const std::string &newBCTaskVersion); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNewServiceRole() const; + void setNewServiceRole(const std::string &newServiceRole); + int getNewCU() const; + void setNewCU(int newCU); private: - long engineConcurrency_; - long datasetMaxBindCount_; - std::string description_; - long projectQueriesPerSecond_; - long datasetMaxRelationCount_; - long datasetMaxFileCount_; - std::string projectName_; - long projectMaxDatasetCount_; - long datasetMaxEntityCount_; - std::string templateId_; - long datasetMaxTotalFileSize_; - std::string serviceRole_; + std::string project_; + std::string newBCTaskVersion_; + std::string accessKeyId_; + std::string newServiceRole_; + int newCU_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h index 782afa251..d32647a7c 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h @@ -32,37 +32,29 @@ namespace AlibabaCloud class ALIBABACLOUD_IMM_EXPORT UpdateProjectResult : public ServiceResult { public: - struct Project - { - std::string description; - long fileCount; - std::string projectName; - std::string createTime; - long projectMaxDatasetCount; - long datasetMaxTotalFileSize; - long datasetMaxRelationCount; - long datasetMaxFileCount; - long engineConcurrency; - std::string serviceRole; - long datasetMaxBindCount; - long datasetCount; - std::string updateTime; - long datasetMaxEntityCount; - long totalFileSize; - std::string templateId; - long projectQueriesPerSecond; - }; UpdateProjectResult(); explicit UpdateProjectResult(const std::string &payload); ~UpdateProjectResult(); - Project getProject()const; + std::string getProject()const; + std::string getModifyTime()const; + std::string getType()const; + int getCU()const; + std::string getServiceRole()const; + std::string getCreateTime()const; + std::string getRegionId()const; protected: void parse(const std::string &payload); private: - Project project_; + std::string project_; + std::string modifyTime_; + std::string type_; + int cU_; + std::string serviceRole_; + std::string createTime_; + std::string regionId_; }; } diff --git a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h new file mode 100644 index 000000000..b058199e9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h @@ -0,0 +1,51 @@ +/* + * 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_UPDATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateSetRequest : public RpcServiceRequest { +public: + UpdateSetRequest(); + ~UpdateSetRequest(); + std::string getProject() const; + void setProject(const std::string &project); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSetName() const; + void setSetName(const std::string &setName); + std::string getSetId() const; + void setSetId(const std::string &setId); + +private: + std::string project_; + std::string accessKeyId_; + std::string setName_; + std::string setId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateSetResult.h b/imm/include/alibabacloud/imm/model/UpdateSetResult.h new file mode 100644 index 000000000..ca4cd5646 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateSetResult.h @@ -0,0 +1,57 @@ +/* + * 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_UPDATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateSetResult : public ServiceResult + { + public: + + + UpdateSetResult(); + explicit UpdateSetResult(const std::string &payload); + ~UpdateSetResult(); + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string createTime_; + std::string setName_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateStoryRequest.h b/imm/include/alibabacloud/imm/model/UpdateStoryRequest.h index 347547486..836aae676 100644 --- a/imm/include/alibabacloud/imm/model/UpdateStoryRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateStoryRequest.h @@ -33,14 +33,14 @@ public: }; UpdateStoryRequest(); ~UpdateStoryRequest(); - std::string getCustomLabels() const; - void setCustomLabels(const std::string &customLabels); Cover getCover() const; void setCover(const Cover &cover); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); std::string getProjectName() const; void setProjectName(const std::string &projectName); + std::string getCustomLabels() const; + void setCustomLabels(const std::string &customLabels); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); std::string getCustomId() const; void setCustomId(const std::string &customId); std::string getObjectId() const; @@ -49,10 +49,10 @@ public: void setStoryName(const std::string &storyName); private: - std::string customLabels_; Cover cover_; - std::string datasetName_; std::string projectName_; + std::string customLabels_; + std::string datasetName_; std::string customId_; std::string objectId_; std::string storyName_; diff --git a/imm/src/ImmClient.cc b/imm/src/ImmClient.cc index 674e88f9e..496fdb8c6 100644 --- a/imm/src/ImmClient.cc +++ b/imm/src/ImmClient.cc @@ -267,6 +267,78 @@ ImmClient::BatchUpdateFileMetaOutcomeCallable ImmClient::batchUpdateFileMetaCall return task->get_future(); } +ImmClient::CompareImageFacesOutcome ImmClient::compareImageFaces(const CompareImageFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareImageFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareImageFacesOutcome(CompareImageFacesResult(outcome.result())); + else + return CompareImageFacesOutcome(outcome.error()); +} + +void ImmClient::compareImageFacesAsync(const CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareImageFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CompareImageFacesOutcomeCallable ImmClient::compareImageFacesCallable(const CompareImageFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareImageFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ConvertOfficeFormatOutcome ImmClient::convertOfficeFormat(const ConvertOfficeFormatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertOfficeFormatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertOfficeFormatOutcome(ConvertOfficeFormatResult(outcome.result())); + else + return ConvertOfficeFormatOutcome(outcome.error()); +} + +void ImmClient::convertOfficeFormatAsync(const ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertOfficeFormat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCallable(const ConvertOfficeFormatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertOfficeFormat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::CreateBindingOutcome ImmClient::createBinding(const CreateBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +519,78 @@ ImmClient::CreateFigureClustersMergingTaskOutcomeCallable ImmClient::createFigur return task->get_future(); } +ImmClient::CreateGrabFrameTaskOutcome ImmClient::createGrabFrameTask(const CreateGrabFrameTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGrabFrameTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGrabFrameTaskOutcome(CreateGrabFrameTaskResult(outcome.result())); + else + return CreateGrabFrameTaskOutcome(outcome.error()); +} + +void ImmClient::createGrabFrameTaskAsync(const CreateGrabFrameTaskRequest& request, const CreateGrabFrameTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGrabFrameTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateGrabFrameTaskOutcomeCallable ImmClient::createGrabFrameTaskCallable(const CreateGrabFrameTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGrabFrameTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateGroupFacesJobOutcome ImmClient::createGroupFacesJob(const CreateGroupFacesJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGroupFacesJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGroupFacesJobOutcome(CreateGroupFacesJobResult(outcome.result())); + else + return CreateGroupFacesJobOutcome(outcome.error()); +} + +void ImmClient::createGroupFacesJobAsync(const CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGroupFacesJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateGroupFacesJobOutcomeCallable ImmClient::createGroupFacesJobCallable(const CreateGroupFacesJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGroupFacesJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::CreateImageModerationTaskOutcome ImmClient::createImageModerationTask(const CreateImageModerationTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +699,42 @@ ImmClient::CreateMediaConvertTaskOutcomeCallable ImmClient::createMediaConvertTa return task->get_future(); } +ImmClient::CreateMergeFaceGroupsJobOutcome ImmClient::createMergeFaceGroupsJob(const CreateMergeFaceGroupsJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMergeFaceGroupsJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMergeFaceGroupsJobOutcome(CreateMergeFaceGroupsJobResult(outcome.result())); + else + return CreateMergeFaceGroupsJobOutcome(outcome.error()); +} + +void ImmClient::createMergeFaceGroupsJobAsync(const CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMergeFaceGroupsJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateMergeFaceGroupsJobOutcomeCallable ImmClient::createMergeFaceGroupsJobCallable(const CreateMergeFaceGroupsJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMergeFaceGroupsJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::CreateOfficeConversionTaskOutcome ImmClient::createOfficeConversionTask(const CreateOfficeConversionTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +807,42 @@ ImmClient::CreateProjectOutcomeCallable ImmClient::createProjectCallable(const C return task->get_future(); } +ImmClient::CreateSetOutcome ImmClient::createSet(const CreateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSetOutcome(CreateSetResult(outcome.result())); + else + return CreateSetOutcome(outcome.error()); +} + +void ImmClient::createSetAsync(const CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::CreateStoryOutcome ImmClient::createStory(const CreateStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +879,42 @@ ImmClient::CreateStoryOutcomeCallable ImmClient::createStoryCallable(const Creat return task->get_future(); } +ImmClient::CreateVideoCompressTaskOutcome ImmClient::createVideoCompressTask(const CreateVideoCompressTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVideoCompressTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVideoCompressTaskOutcome(CreateVideoCompressTaskResult(outcome.result())); + else + return CreateVideoCompressTaskOutcome(outcome.error()); +} + +void ImmClient::createVideoCompressTaskAsync(const CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVideoCompressTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompressTaskCallable(const CreateVideoCompressTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVideoCompressTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::CreateVideoModerationTaskOutcome ImmClient::createVideoModerationTask(const CreateVideoModerationTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +951,42 @@ ImmClient::CreateVideoModerationTaskOutcomeCallable ImmClient::createVideoModera return task->get_future(); } +ImmClient::DecodeBlindWatermarkOutcome ImmClient::decodeBlindWatermark(const DecodeBlindWatermarkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DecodeBlindWatermarkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DecodeBlindWatermarkOutcome(DecodeBlindWatermarkResult(outcome.result())); + else + return DecodeBlindWatermarkOutcome(outcome.error()); +} + +void ImmClient::decodeBlindWatermarkAsync(const DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, decodeBlindWatermark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DecodeBlindWatermarkOutcomeCallable ImmClient::decodeBlindWatermarkCallable(const DecodeBlindWatermarkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->decodeBlindWatermark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DeleteBindingOutcome ImmClient::deleteBinding(const DeleteBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1095,78 @@ ImmClient::DeleteFileMetaOutcomeCallable ImmClient::deleteFileMetaCallable(const return task->get_future(); } +ImmClient::DeleteImageOutcome ImmClient::deleteImage(const DeleteImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageOutcome(DeleteImageResult(outcome.result())); + else + return DeleteImageOutcome(outcome.error()); +} + +void ImmClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteImageOutcomeCallable ImmClient::deleteImageCallable(const DeleteImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteOfficeConversionTaskOutcome ImmClient::deleteOfficeConversionTask(const DeleteOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(DeleteOfficeConversionTaskResult(outcome.result())); + else + return DeleteOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::deleteOfficeConversionTaskAsync(const DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteOfficeConversionTaskOutcomeCallable ImmClient::deleteOfficeConversionTaskCallable(const DeleteOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DeleteProjectOutcome ImmClient::deleteProject(const DeleteProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +1203,42 @@ ImmClient::DeleteProjectOutcomeCallable ImmClient::deleteProjectCallable(const D return task->get_future(); } +ImmClient::DeleteSetOutcome ImmClient::deleteSet(const DeleteSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSetOutcome(DeleteSetResult(outcome.result())); + else + return DeleteSetOutcome(outcome.error()); +} + +void ImmClient::deleteSetAsync(const DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteSetOutcomeCallable ImmClient::deleteSetCallable(const DeleteSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DeleteStoryOutcome ImmClient::deleteStory(const DeleteStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +1275,78 @@ ImmClient::DeleteStoryOutcomeCallable ImmClient::deleteStoryCallable(const Delet return task->get_future(); } +ImmClient::DeleteVideoOutcome ImmClient::deleteVideo(const DeleteVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoOutcome(DeleteVideoResult(outcome.result())); + else + return DeleteVideoOutcome(outcome.error()); +} + +void ImmClient::deleteVideoAsync(const DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoOutcomeCallable ImmClient::deleteVideoCallable(const DeleteVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteVideoTaskOutcome ImmClient::deleteVideoTask(const DeleteVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoTaskOutcome(DeleteVideoTaskResult(outcome.result())); + else + return DeleteVideoTaskOutcome(outcome.error()); +} + +void ImmClient::deleteVideoTaskAsync(const DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoTaskOutcomeCallable ImmClient::deleteVideoTaskCallable(const DeleteVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DetachOSSBucketOutcome ImmClient::detachOSSBucket(const DetachOSSBucketRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1563,42 @@ ImmClient::DetectImageLabelsOutcomeCallable ImmClient::detectImageLabelsCallable return task->get_future(); } +ImmClient::DetectImageQRCodesOutcome ImmClient::detectImageQRCodes(const DetectImageQRCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageQRCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageQRCodesOutcome(DetectImageQRCodesResult(outcome.result())); + else + return DetectImageQRCodesOutcome(outcome.error()); +} + +void ImmClient::detectImageQRCodesAsync(const DetectImageQRCodesRequest& request, const DetectImageQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageQRCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageQRCodesOutcomeCallable ImmClient::detectImageQRCodesCallable(const DetectImageQRCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageQRCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DetectImageScoreOutcome ImmClient::detectImageScore(const DetectImageScoreRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,6 +1635,78 @@ ImmClient::DetectImageScoreOutcomeCallable ImmClient::detectImageScoreCallable(c return task->get_future(); } +ImmClient::DetectImageTagsOutcome ImmClient::detectImageTags(const DetectImageTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageTagsOutcome(DetectImageTagsResult(outcome.result())); + else + return DetectImageTagsOutcome(outcome.error()); +} + +void ImmClient::detectImageTagsAsync(const DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(const DetectImageTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectQRCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectQRCodesOutcome(DetectQRCodesResult(outcome.result())); + else + return DetectQRCodesOutcome(outcome.error()); +} + +void ImmClient::detectQRCodesAsync(const DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectQRCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectQRCodesOutcomeCallable ImmClient::detectQRCodesCallable(const DetectQRCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectQRCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DetectTextAnomalyOutcome ImmClient::detectTextAnomaly(const DetectTextAnomalyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +1743,114 @@ ImmClient::DetectTextAnomalyOutcomeCallable ImmClient::detectTextAnomalyCallable return task->get_future(); } +ImmClient::EncodeBlindWatermarkOutcome ImmClient::encodeBlindWatermark(const EncodeBlindWatermarkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EncodeBlindWatermarkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EncodeBlindWatermarkOutcome(EncodeBlindWatermarkResult(outcome.result())); + else + return EncodeBlindWatermarkOutcome(outcome.error()); +} + +void ImmClient::encodeBlindWatermarkAsync(const EncodeBlindWatermarkRequest& request, const EncodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, encodeBlindWatermark(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::EncodeBlindWatermarkOutcomeCallable ImmClient::encodeBlindWatermarkCallable(const EncodeBlindWatermarkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->encodeBlindWatermark(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindImagesOutcome(FindImagesResult(outcome.result())); + else + return FindImagesOutcome(outcome.error()); +} + +void ImmClient::findImagesAsync(const FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindImagesOutcomeCallable ImmClient::findImagesCallable(const FindImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindSimilarFacesOutcome ImmClient::findSimilarFaces(const FindSimilarFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindSimilarFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindSimilarFacesOutcome(FindSimilarFacesResult(outcome.result())); + else + return FindSimilarFacesOutcome(outcome.error()); +} + +void ImmClient::findSimilarFacesAsync(const FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findSimilarFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(const FindSimilarFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findSimilarFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::FuzzyQueryOutcome ImmClient::fuzzyQuery(const FuzzyQueryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1383,6 +2067,114 @@ ImmClient::GetFileMetaOutcomeCallable ImmClient::getFileMetaCallable(const GetFi return task->get_future(); } +ImmClient::GetImageOutcome ImmClient::getImage(const GetImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageOutcome(GetImageResult(outcome.result())); + else + return GetImageOutcome(outcome.error()); +} + +void ImmClient::getImageAsync(const GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageOutcomeCallable ImmClient::getImageCallable(const GetImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageCroppingSuggestionsOutcome ImmClient::getImageCroppingSuggestions(const GetImageCroppingSuggestionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageCroppingSuggestionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageCroppingSuggestionsOutcome(GetImageCroppingSuggestionsResult(outcome.result())); + else + return GetImageCroppingSuggestionsOutcome(outcome.error()); +} + +void ImmClient::getImageCroppingSuggestionsAsync(const GetImageCroppingSuggestionsRequest& request, const GetImageCroppingSuggestionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImageCroppingSuggestions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageCroppingSuggestionsOutcomeCallable ImmClient::getImageCroppingSuggestionsCallable(const GetImageCroppingSuggestionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImageCroppingSuggestions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageQualityOutcome ImmClient::getImageQuality(const GetImageQualityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageQualityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageQualityOutcome(GetImageQualityResult(outcome.result())); + else + return GetImageQualityOutcome(outcome.error()); +} + +void ImmClient::getImageQualityAsync(const GetImageQualityRequest& request, const GetImageQualityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImageQuality(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageQualityOutcomeCallable ImmClient::getImageQualityCallable(const GetImageQualityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImageQuality(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::GetMediaMetaOutcome ImmClient::getMediaMeta(const GetMediaMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +2247,78 @@ ImmClient::GetOSSBucketAttachmentOutcomeCallable ImmClient::getOSSBucketAttachme return task->get_future(); } +ImmClient::GetOfficeConversionTaskOutcome ImmClient::getOfficeConversionTask(const GetOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOfficeConversionTaskOutcome(GetOfficeConversionTaskResult(outcome.result())); + else + return GetOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::getOfficeConversionTaskAsync(const GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversionTaskCallable(const GetOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetOfficePreviewURLOutcome ImmClient::getOfficePreviewURL(const GetOfficePreviewURLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOfficePreviewURLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOfficePreviewURLOutcome(GetOfficePreviewURLResult(outcome.result())); + else + return GetOfficePreviewURLOutcome(outcome.error()); +} + +void ImmClient::getOfficePreviewURLAsync(const GetOfficePreviewURLRequest& request, const GetOfficePreviewURLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOfficePreviewURL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetOfficePreviewURLOutcomeCallable ImmClient::getOfficePreviewURLCallable(const GetOfficePreviewURLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOfficePreviewURL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::GetProjectOutcome ImmClient::getProject(const GetProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +2355,42 @@ ImmClient::GetProjectOutcomeCallable ImmClient::getProjectCallable(const GetProj return task->get_future(); } +ImmClient::GetSetOutcome ImmClient::getSet(const GetSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSetOutcome(GetSetResult(outcome.result())); + else + return GetSetOutcome(outcome.error()); +} + +void ImmClient::getSetAsync(const GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetSetOutcomeCallable ImmClient::getSetCallable(const GetSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::GetStoryOutcome ImmClient::getStory(const GetStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +2463,78 @@ ImmClient::GetTaskOutcomeCallable ImmClient::getTaskCallable(const GetTaskReques return task->get_future(); } +ImmClient::GetVideoOutcome ImmClient::getVideo(const GetVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoOutcome(GetVideoResult(outcome.result())); + else + return GetVideoOutcome(outcome.error()); +} + +void ImmClient::getVideoAsync(const GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoOutcomeCallable ImmClient::getVideoCallable(const GetVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetVideoTaskOutcome ImmClient::getVideoTask(const GetVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoTaskOutcome(GetVideoTaskResult(outcome.result())); + else + return GetVideoTaskOutcome(outcome.error()); +} + +void ImmClient::getVideoTaskAsync(const GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoTaskOutcomeCallable ImmClient::getVideoTaskCallable(const GetVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::GetWebofficeURLOutcome ImmClient::getWebofficeURL(const GetWebofficeURLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +2607,78 @@ ImmClient::IndexFileMetaOutcomeCallable ImmClient::indexFileMetaCallable(const I return task->get_future(); } +ImmClient::IndexImageOutcome ImmClient::indexImage(const IndexImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexImageOutcome(IndexImageResult(outcome.result())); + else + return IndexImageOutcome(outcome.error()); +} + +void ImmClient::indexImageAsync(const IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexImageOutcomeCallable ImmClient::indexImageCallable(const IndexImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexVideoOutcome ImmClient::indexVideo(const IndexVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexVideoOutcome(IndexVideoResult(outcome.result())); + else + return IndexVideoOutcome(outcome.error()); +} + +void ImmClient::indexVideoAsync(const IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexVideoOutcomeCallable ImmClient::indexVideoCallable(const IndexVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::ListBindingsOutcome ImmClient::listBindings(const ListBindingsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +2751,114 @@ ImmClient::ListDatasetsOutcomeCallable ImmClient::listDatasetsCallable(const Lis return task->get_future(); } +ImmClient::ListFaceGroupsOutcome ImmClient::listFaceGroups(const ListFaceGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceGroupsOutcome(ListFaceGroupsResult(outcome.result())); + else + return ListFaceGroupsOutcome(outcome.error()); +} + +void ImmClient::listFaceGroupsAsync(const ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceGroupsOutcomeCallable ImmClient::listFaceGroupsCallable(const ListFaceGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListImagesOutcome ImmClient::listImages(const ListImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImagesOutcome(ListImagesResult(outcome.result())); + else + return ListImagesOutcome(outcome.error()); +} + +void ImmClient::listImagesAsync(const ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListImagesOutcomeCallable ImmClient::listImagesCallable(const ListImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListOfficeConversionTaskOutcome ImmClient::listOfficeConversionTask(const ListOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOfficeConversionTaskOutcome(ListOfficeConversionTaskResult(outcome.result())); + else + return ListOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::listOfficeConversionTaskAsync(const ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListOfficeConversionTaskOutcomeCallable ImmClient::listOfficeConversionTaskCallable(const ListOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::ListProjectsOutcome ImmClient::listProjects(const ListProjectsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +2931,78 @@ ImmClient::ListRegionsOutcomeCallable ImmClient::listRegionsCallable(const ListR return task->get_future(); } +ImmClient::ListSetTagsOutcome ImmClient::listSetTags(const ListSetTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetTagsOutcome(ListSetTagsResult(outcome.result())); + else + return ListSetTagsOutcome(outcome.error()); +} + +void ImmClient::listSetTagsAsync(const ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSetTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetTagsOutcomeCallable ImmClient::listSetTagsCallable(const ListSetTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSetTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetsOutcome(ListSetsResult(outcome.result())); + else + return ListSetsOutcome(outcome.error()); +} + +void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::ListTasksOutcome ImmClient::listTasks(const ListTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,6 +3039,150 @@ ImmClient::ListTasksOutcomeCallable ImmClient::listTasksCallable(const ListTasks return task->get_future(); } +ImmClient::ListVideoAudiosOutcome ImmClient::listVideoAudios(const ListVideoAudiosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoAudiosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoAudiosOutcome(ListVideoAudiosResult(outcome.result())); + else + return ListVideoAudiosOutcome(outcome.error()); +} + +void ImmClient::listVideoAudiosAsync(const ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoAudios(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoAudiosOutcomeCallable ImmClient::listVideoAudiosCallable(const ListVideoAudiosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoAudios(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoFramesOutcome ImmClient::listVideoFrames(const ListVideoFramesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoFramesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoFramesOutcome(ListVideoFramesResult(outcome.result())); + else + return ListVideoFramesOutcome(outcome.error()); +} + +void ImmClient::listVideoFramesAsync(const ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoFrames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoFramesOutcomeCallable ImmClient::listVideoFramesCallable(const ListVideoFramesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoFrames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoTasksOutcome ImmClient::listVideoTasks(const ListVideoTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoTasksOutcome(ListVideoTasksResult(outcome.result())); + else + return ListVideoTasksOutcome(outcome.error()); +} + +void ImmClient::listVideoTasksAsync(const ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoTasksOutcomeCallable ImmClient::listVideoTasksCallable(const ListVideoTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideosOutcome ImmClient::listVideos(const ListVideosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideosOutcome(ListVideosResult(outcome.result())); + else + return ListVideosOutcome(outcome.error()); +} + +void ImmClient::listVideosAsync(const ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideosOutcomeCallable ImmClient::listVideosCallable(const ListVideosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::MergeFigureClustersOutcome ImmClient::mergeFigureClusters(const MergeFigureClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1851,6 +3219,78 @@ ImmClient::MergeFigureClustersOutcomeCallable ImmClient::mergeFigureClustersCall return task->get_future(); } +ImmClient::OpenImmServiceOutcome ImmClient::openImmService(const OpenImmServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return OpenImmServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return OpenImmServiceOutcome(OpenImmServiceResult(outcome.result())); + else + return OpenImmServiceOutcome(outcome.error()); +} + +void ImmClient::openImmServiceAsync(const OpenImmServiceRequest& request, const OpenImmServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, openImmService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::OpenImmServiceOutcomeCallable ImmClient::openImmServiceCallable(const OpenImmServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->openImmService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::PutProjectOutcome ImmClient::putProject(const PutProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutProjectOutcome(PutProjectResult(outcome.result())); + else + return PutProjectOutcome(outcome.error()); +} + +void ImmClient::putProjectAsync(const PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::QueryFigureClustersOutcome ImmClient::queryFigureClusters(const QueryFigureClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +3363,42 @@ ImmClient::QueryStoriesOutcomeCallable ImmClient::queryStoriesCallable(const Que return task->get_future(); } +ImmClient::RefreshOfficePreviewTokenOutcome ImmClient::refreshOfficePreviewToken(const RefreshOfficePreviewTokenRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RefreshOfficePreviewTokenOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RefreshOfficePreviewTokenOutcome(RefreshOfficePreviewTokenResult(outcome.result())); + else + return RefreshOfficePreviewTokenOutcome(outcome.error()); +} + +void ImmClient::refreshOfficePreviewTokenAsync(const RefreshOfficePreviewTokenRequest& request, const RefreshOfficePreviewTokenAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, refreshOfficePreviewToken(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::RefreshOfficePreviewTokenOutcomeCallable ImmClient::refreshOfficePreviewTokenCallable(const RefreshOfficePreviewTokenRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->refreshOfficePreviewToken(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::RefreshWebofficeTokenOutcome ImmClient::refreshWebofficeToken(const RefreshWebofficeTokenRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2175,6 +3651,42 @@ ImmClient::UpdateDatasetOutcomeCallable ImmClient::updateDatasetCallable(const U return task->get_future(); } +ImmClient::UpdateFaceGroupOutcome ImmClient::updateFaceGroup(const UpdateFaceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFaceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFaceGroupOutcome(UpdateFaceGroupResult(outcome.result())); + else + return UpdateFaceGroupOutcome(outcome.error()); +} + +void ImmClient::updateFaceGroupAsync(const UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFaceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateFaceGroupOutcomeCallable ImmClient::updateFaceGroupCallable(const UpdateFaceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFaceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::UpdateFigureClusterOutcome ImmClient::updateFigureCluster(const UpdateFigureClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,6 +3759,42 @@ ImmClient::UpdateFileMetaOutcomeCallable ImmClient::updateFileMetaCallable(const return task->get_future(); } +ImmClient::UpdateImageOutcome ImmClient::updateImage(const UpdateImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateImageOutcome(UpdateImageResult(outcome.result())); + else + return UpdateImageOutcome(outcome.error()); +} + +void ImmClient::updateImageAsync(const UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateImageOutcomeCallable ImmClient::updateImageCallable(const UpdateImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::UpdateProjectOutcome ImmClient::updateProject(const UpdateProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +3831,42 @@ ImmClient::UpdateProjectOutcomeCallable ImmClient::updateProjectCallable(const U return task->get_future(); } +ImmClient::UpdateSetOutcome ImmClient::updateSet(const UpdateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSetOutcome(UpdateSetResult(outcome.result())); + else + return UpdateSetOutcome(outcome.error()); +} + +void ImmClient::updateSetAsync(const UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::UpdateStoryOutcome ImmClient::updateStory(const UpdateStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/imm/src/model/AddStoryFilesRequest.cc b/imm/src/model/AddStoryFilesRequest.cc index 00b5d6e4e..a7f5da4a8 100644 --- a/imm/src/model/AddStoryFilesRequest.cc +++ b/imm/src/model/AddStoryFilesRequest.cc @@ -25,15 +25,6 @@ AddStoryFilesRequest::AddStoryFilesRequest() AddStoryFilesRequest::~AddStoryFilesRequest() {} -std::string AddStoryFilesRequest::getDatasetName() const { - return datasetName_; -} - -void AddStoryFilesRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setBodyParameter(std::string("DatasetName"), datasetName); -} - std::string AddStoryFilesRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void AddStoryFilesRequest::setProjectName(const std::string &projectName) { setBodyParameter(std::string("ProjectName"), projectName); } +std::string AddStoryFilesRequest::getDatasetName() const { + return datasetName_; +} + +void AddStoryFilesRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setBodyParameter(std::string("DatasetName"), datasetName); +} + std::vector AddStoryFilesRequest::getFiles() const { return files_; } diff --git a/imm/src/model/BatchDeleteFileMetaRequest.cc b/imm/src/model/BatchDeleteFileMetaRequest.cc index d237a1a71..aa7b4ce54 100644 --- a/imm/src/model/BatchDeleteFileMetaRequest.cc +++ b/imm/src/model/BatchDeleteFileMetaRequest.cc @@ -25,24 +25,6 @@ BatchDeleteFileMetaRequest::BatchDeleteFileMetaRequest() BatchDeleteFileMetaRequest::~BatchDeleteFileMetaRequest() {} -std::string BatchDeleteFileMetaRequest::getDatasetName() const { - return datasetName_; -} - -void BatchDeleteFileMetaRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - -std::string BatchDeleteFileMetaRequest::getProjectName() const { - return projectName_; -} - -void BatchDeleteFileMetaRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - std::vector BatchDeleteFileMetaRequest::getURIs() const { return uRIs_; } @@ -54,3 +36,21 @@ void BatchDeleteFileMetaRequest::setURIs(const std::vector BatchGetFileMetaRequest::getURIs() const { return uRIs_; } @@ -54,3 +36,21 @@ void BatchGetFileMetaRequest::setURIs(const std::vector BatchIndexFileMetaRequest::getFiles() const { return files_; } diff --git a/imm/src/model/BatchUpdateFileMetaRequest.cc b/imm/src/model/BatchUpdateFileMetaRequest.cc index 5a1299745..979b6e60e 100644 --- a/imm/src/model/BatchUpdateFileMetaRequest.cc +++ b/imm/src/model/BatchUpdateFileMetaRequest.cc @@ -25,15 +25,6 @@ BatchUpdateFileMetaRequest::BatchUpdateFileMetaRequest() BatchUpdateFileMetaRequest::~BatchUpdateFileMetaRequest() {} -std::string BatchUpdateFileMetaRequest::getDatasetName() const { - return datasetName_; -} - -void BatchUpdateFileMetaRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string BatchUpdateFileMetaRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void BatchUpdateFileMetaRequest::setProjectName(const std::string &projectName) setParameter(std::string("ProjectName"), projectName); } +std::string BatchUpdateFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void BatchUpdateFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::vector BatchUpdateFileMetaRequest::getFiles() const { return files_; } diff --git a/imm/src/model/CompareImageFacesRequest.cc b/imm/src/model/CompareImageFacesRequest.cc new file mode 100644 index 000000000..7555b89e1 --- /dev/null +++ b/imm/src/model/CompareImageFacesRequest.cc @@ -0,0 +1,90 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::CompareImageFacesRequest; + +CompareImageFacesRequest::CompareImageFacesRequest() + : RpcServiceRequest("imm", "2017-09-06", "CompareImageFaces") { + setMethod(HttpRequest::Method::Post); +} + +CompareImageFacesRequest::~CompareImageFacesRequest() {} + +std::string CompareImageFacesRequest::getProject() const { + return project_; +} + +void CompareImageFacesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CompareImageFacesRequest::getFaceIdA() const { + return faceIdA_; +} + +void CompareImageFacesRequest::setFaceIdA(const std::string &faceIdA) { + faceIdA_ = faceIdA; + setParameter(std::string("FaceIdA"), faceIdA); +} + +std::string CompareImageFacesRequest::getFaceIdB() const { + return faceIdB_; +} + +void CompareImageFacesRequest::setFaceIdB(const std::string &faceIdB) { + faceIdB_ = faceIdB; + setParameter(std::string("FaceIdB"), faceIdB); +} + +std::string CompareImageFacesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CompareImageFacesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CompareImageFacesRequest::getImageUriB() const { + return imageUriB_; +} + +void CompareImageFacesRequest::setImageUriB(const std::string &imageUriB) { + imageUriB_ = imageUriB; + setParameter(std::string("ImageUriB"), imageUriB); +} + +std::string CompareImageFacesRequest::getImageUriA() const { + return imageUriA_; +} + +void CompareImageFacesRequest::setImageUriA(const std::string &imageUriA) { + imageUriA_ = imageUriA; + setParameter(std::string("ImageUriA"), imageUriA); +} + +std::string CompareImageFacesRequest::getSetId() const { + return setId_; +} + +void CompareImageFacesRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/CompareImageFacesResult.cc b/imm/src/model/CompareImageFacesResult.cc new file mode 100644 index 000000000..405882d9c --- /dev/null +++ b/imm/src/model/CompareImageFacesResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CompareImageFacesResult::CompareImageFacesResult() : + ServiceResult() +{} + +CompareImageFacesResult::CompareImageFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CompareImageFacesResult::~CompareImageFacesResult() +{} + +void CompareImageFacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto faceANode = value["FaceA"]; + if(!faceANode["FaceId"].isNull()) + faceA_.faceId = faceANode["FaceId"].asString(); + auto faceAttributesNode = faceANode["FaceAttributes"]; + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + faceA_.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + faceA_.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + faceA_.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + faceA_.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto faceBNode = value["FaceB"]; + if(!faceBNode["FaceId"].isNull()) + faceB_.faceId = faceBNode["FaceId"].asString(); + auto faceAttributes1Node = faceBNode["FaceAttributes"]; + auto faceBoundary2Node = faceAttributes1Node["FaceBoundary"]; + if(!faceBoundary2Node["Top"].isNull()) + faceB_.faceAttributes1.faceBoundary2.top = std::stoi(faceBoundary2Node["Top"].asString()); + if(!faceBoundary2Node["Width"].isNull()) + faceB_.faceAttributes1.faceBoundary2.width = std::stoi(faceBoundary2Node["Width"].asString()); + if(!faceBoundary2Node["Height"].isNull()) + faceB_.faceAttributes1.faceBoundary2.height = std::stoi(faceBoundary2Node["Height"].asString()); + if(!faceBoundary2Node["Left"].isNull()) + faceB_.faceAttributes1.faceBoundary2.left = std::stoi(faceBoundary2Node["Left"].asString()); + if(!value["Similarity"].isNull()) + similarity_ = std::stof(value["Similarity"].asString()); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +float CompareImageFacesResult::getSimilarity()const +{ + return similarity_; +} + +CompareImageFacesResult::FaceA CompareImageFacesResult::getFaceA()const +{ + return faceA_; +} + +std::string CompareImageFacesResult::getSetId()const +{ + return setId_; +} + +CompareImageFacesResult::FaceB CompareImageFacesResult::getFaceB()const +{ + return faceB_; +} + diff --git a/imm/src/model/ConvertOfficeFormatRequest.cc b/imm/src/model/ConvertOfficeFormatRequest.cc new file mode 100644 index 000000000..25b4eefb7 --- /dev/null +++ b/imm/src/model/ConvertOfficeFormatRequest.cc @@ -0,0 +1,216 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ConvertOfficeFormatRequest; + +ConvertOfficeFormatRequest::ConvertOfficeFormatRequest() + : RpcServiceRequest("imm", "2017-09-06", "ConvertOfficeFormat") { + setMethod(HttpRequest::Method::Post); +} + +ConvertOfficeFormatRequest::~ConvertOfficeFormatRequest() {} + +std::string ConvertOfficeFormatRequest::getSrcType() const { + return srcType_; +} + +void ConvertOfficeFormatRequest::setSrcType(const std::string &srcType) { + srcType_ = srcType; + setParameter(std::string("SrcType"), srcType); +} + +std::string ConvertOfficeFormatRequest::getProject() const { + return project_; +} + +void ConvertOfficeFormatRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +bool ConvertOfficeFormatRequest::getPdfVector() const { + return pdfVector_; +} + +void ConvertOfficeFormatRequest::setPdfVector(bool pdfVector) { + pdfVector_ = pdfVector; + setParameter(std::string("PdfVector"), pdfVector ? "true" : "false"); +} + +std::string ConvertOfficeFormatRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ConvertOfficeFormatRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ConvertOfficeFormatRequest::getPassword() const { + return password_; +} + +void ConvertOfficeFormatRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +long ConvertOfficeFormatRequest::getStartPage() const { + return startPage_; +} + +void ConvertOfficeFormatRequest::setStartPage(long startPage) { + startPage_ = startPage; + setParameter(std::string("StartPage"), std::to_string(startPage)); +} + +bool ConvertOfficeFormatRequest::getFitToPagesWide() const { + return fitToPagesWide_; +} + +void ConvertOfficeFormatRequest::setFitToPagesWide(bool fitToPagesWide) { + fitToPagesWide_ = fitToPagesWide; + setParameter(std::string("FitToPagesWide"), fitToPagesWide ? "true" : "false"); +} + +std::string ConvertOfficeFormatRequest::getTgtFilePrefix() const { + return tgtFilePrefix_; +} + +void ConvertOfficeFormatRequest::setTgtFilePrefix(const std::string &tgtFilePrefix) { + tgtFilePrefix_ = tgtFilePrefix; + setParameter(std::string("TgtFilePrefix"), tgtFilePrefix); +} + +std::string ConvertOfficeFormatRequest::getModelId() const { + return modelId_; +} + +void ConvertOfficeFormatRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("ModelId"), modelId); +} + +long ConvertOfficeFormatRequest::getMaxSheetRow() const { + return maxSheetRow_; +} + +void ConvertOfficeFormatRequest::setMaxSheetRow(long maxSheetRow) { + maxSheetRow_ = maxSheetRow; + setParameter(std::string("MaxSheetRow"), std::to_string(maxSheetRow)); +} + +long ConvertOfficeFormatRequest::getMaxSheetCount() const { + return maxSheetCount_; +} + +void ConvertOfficeFormatRequest::setMaxSheetCount(long maxSheetCount) { + maxSheetCount_ = maxSheetCount; + setParameter(std::string("MaxSheetCount"), std::to_string(maxSheetCount)); +} + +long ConvertOfficeFormatRequest::getEndPage() const { + return endPage_; +} + +void ConvertOfficeFormatRequest::setEndPage(long endPage) { + endPage_ = endPage; + setParameter(std::string("EndPage"), std::to_string(endPage)); +} + +std::string ConvertOfficeFormatRequest::getTgtFileSuffix() const { + return tgtFileSuffix_; +} + +void ConvertOfficeFormatRequest::setTgtFileSuffix(const std::string &tgtFileSuffix) { + tgtFileSuffix_ = tgtFileSuffix; + setParameter(std::string("TgtFileSuffix"), tgtFileSuffix); +} + +bool ConvertOfficeFormatRequest::getSheetOnePage() const { + return sheetOnePage_; +} + +void ConvertOfficeFormatRequest::setSheetOnePage(bool sheetOnePage) { + sheetOnePage_ = sheetOnePage; + setParameter(std::string("SheetOnePage"), sheetOnePage ? "true" : "false"); +} + +long ConvertOfficeFormatRequest::getMaxSheetCol() const { + return maxSheetCol_; +} + +void ConvertOfficeFormatRequest::setMaxSheetCol(long maxSheetCol) { + maxSheetCol_ = maxSheetCol; + setParameter(std::string("MaxSheetCol"), std::to_string(maxSheetCol)); +} + +std::string ConvertOfficeFormatRequest::getTgtType() const { + return tgtType_; +} + +void ConvertOfficeFormatRequest::setTgtType(const std::string &tgtType) { + tgtType_ = tgtType; + setParameter(std::string("TgtType"), tgtType); +} + +bool ConvertOfficeFormatRequest::getHidecomments() const { + return hidecomments_; +} + +void ConvertOfficeFormatRequest::setHidecomments(bool hidecomments) { + hidecomments_ = hidecomments; + setParameter(std::string("Hidecomments"), hidecomments ? "true" : "false"); +} + +bool ConvertOfficeFormatRequest::getFitToPagesTall() const { + return fitToPagesTall_; +} + +void ConvertOfficeFormatRequest::setFitToPagesTall(bool fitToPagesTall) { + fitToPagesTall_ = fitToPagesTall; + setParameter(std::string("FitToPagesTall"), fitToPagesTall ? "true" : "false"); +} + +std::string ConvertOfficeFormatRequest::getSrcUri() const { + return srcUri_; +} + +void ConvertOfficeFormatRequest::setSrcUri(const std::string &srcUri) { + srcUri_ = srcUri; + setParameter(std::string("SrcUri"), srcUri); +} + +std::string ConvertOfficeFormatRequest::getTgtFilePages() const { + return tgtFilePages_; +} + +void ConvertOfficeFormatRequest::setTgtFilePages(const std::string &tgtFilePages) { + tgtFilePages_ = tgtFilePages; + setParameter(std::string("TgtFilePages"), tgtFilePages); +} + +std::string ConvertOfficeFormatRequest::getTgtUri() const { + return tgtUri_; +} + +void ConvertOfficeFormatRequest::setTgtUri(const std::string &tgtUri) { + tgtUri_ = tgtUri; + setParameter(std::string("TgtUri"), tgtUri); +} + diff --git a/imm/src/model/ConvertOfficeFormatResult.cc b/imm/src/model/ConvertOfficeFormatResult.cc new file mode 100644 index 000000000..4e759120b --- /dev/null +++ b/imm/src/model/ConvertOfficeFormatResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ConvertOfficeFormatResult::ConvertOfficeFormatResult() : + ServiceResult() +{} + +ConvertOfficeFormatResult::ConvertOfficeFormatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ConvertOfficeFormatResult::~ConvertOfficeFormatResult() +{} + +void ConvertOfficeFormatResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + +} + +int ConvertOfficeFormatResult::getPageCount()const +{ + return pageCount_; +} + diff --git a/imm/src/model/CreateBindingRequest.cc b/imm/src/model/CreateBindingRequest.cc index 45584f392..9dbed625d 100644 --- a/imm/src/model/CreateBindingRequest.cc +++ b/imm/src/model/CreateBindingRequest.cc @@ -25,6 +25,15 @@ CreateBindingRequest::CreateBindingRequest() CreateBindingRequest::~CreateBindingRequest() {} +std::string CreateBindingRequest::getProjectName() const { + return projectName_; +} + +void CreateBindingRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + std::string CreateBindingRequest::getBucketOwnerId() const { return bucketOwnerId_; } @@ -43,15 +52,6 @@ void CreateBindingRequest::setDatasetName(const std::string &datasetName) { setParameter(std::string("DatasetName"), datasetName); } -std::string CreateBindingRequest::getProjectName() const { - return projectName_; -} - -void CreateBindingRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - std::string CreateBindingRequest::getURI() const { return uRI_; } diff --git a/imm/src/model/CreateDatasetRequest.cc b/imm/src/model/CreateDatasetRequest.cc index 38cdae1d9..65819f638 100644 --- a/imm/src/model/CreateDatasetRequest.cc +++ b/imm/src/model/CreateDatasetRequest.cc @@ -25,6 +25,15 @@ CreateDatasetRequest::CreateDatasetRequest() CreateDatasetRequest::~CreateDatasetRequest() {} +std::string CreateDatasetRequest::getProjectName() const { + return projectName_; +} + +void CreateDatasetRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + long CreateDatasetRequest::getDatasetMaxBindCount() const { return datasetMaxBindCount_; } @@ -34,13 +43,13 @@ void CreateDatasetRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); } -std::string CreateDatasetRequest::getDescription() const { - return description_; +long CreateDatasetRequest::getDatasetMaxTotalFileSize() const { + return datasetMaxTotalFileSize_; } -void CreateDatasetRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); +void CreateDatasetRequest::setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize) { + datasetMaxTotalFileSize_ = datasetMaxTotalFileSize; + setParameter(std::string("DatasetMaxTotalFileSize"), std::to_string(datasetMaxTotalFileSize)); } long CreateDatasetRequest::getDatasetMaxRelationCount() const { @@ -61,22 +70,13 @@ void CreateDatasetRequest::setDatasetName(const std::string &datasetName) { setParameter(std::string("DatasetName"), datasetName); } -long CreateDatasetRequest::getDatasetMaxFileCount() const { - return datasetMaxFileCount_; +std::string CreateDatasetRequest::getDescription() const { + return description_; } -void CreateDatasetRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { - datasetMaxFileCount_ = datasetMaxFileCount; - setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); -} - -std::string CreateDatasetRequest::getProjectName() const { - return projectName_; -} - -void CreateDatasetRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void CreateDatasetRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } long CreateDatasetRequest::getDatasetMaxEntityCount() const { @@ -88,6 +88,15 @@ void CreateDatasetRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); } +long CreateDatasetRequest::getDatasetMaxFileCount() const { + return datasetMaxFileCount_; +} + +void CreateDatasetRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { + datasetMaxFileCount_ = datasetMaxFileCount; + setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); +} + std::string CreateDatasetRequest::getTemplateId() const { return templateId_; } @@ -97,12 +106,3 @@ void CreateDatasetRequest::setTemplateId(const std::string &templateId) { setParameter(std::string("TemplateId"), templateId); } -long CreateDatasetRequest::getDatasetMaxTotalFileSize() const { - return datasetMaxTotalFileSize_; -} - -void CreateDatasetRequest::setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize) { - datasetMaxTotalFileSize_ = datasetMaxTotalFileSize; - setParameter(std::string("DatasetMaxTotalFileSize"), std::to_string(datasetMaxTotalFileSize)); -} - diff --git a/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc b/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc index b754e29de..4600805e5 100644 --- a/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc +++ b/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc @@ -34,15 +34,6 @@ void CreateDetectVideoLabelsTaskRequest::setUserData(const std::string &userData setParameter(std::string("UserData"), userData); } -std::string CreateDetectVideoLabelsTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateDetectVideoLabelsTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - std::string CreateDetectVideoLabelsTaskRequest::getProjectName() const { return projectName_; } @@ -61,6 +52,24 @@ void CreateDetectVideoLabelsTaskRequest::setNotifyTopicName(const std::string &n setParameter(std::string("NotifyTopicName"), notifyTopicName); } +std::string CreateDetectVideoLabelsTaskRequest::getSourceURI() const { + return sourceURI_; +} + +void CreateDetectVideoLabelsTaskRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + +std::string CreateDetectVideoLabelsTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateDetectVideoLabelsTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + CreateDetectVideoLabelsTaskRequest::CredentialConfig CreateDetectVideoLabelsTaskRequest::getCredentialConfig() const { return credentialConfig_; } @@ -87,12 +96,3 @@ void CreateDetectVideoLabelsTaskRequest::setTags(const std::map CreateFigureClusteringTaskRequest::getTags() const { return tags_; } diff --git a/imm/src/model/CreateFigureClustersMergingTaskRequest.cc b/imm/src/model/CreateFigureClustersMergingTaskRequest.cc index 443b01e53..021b2ba91 100644 --- a/imm/src/model/CreateFigureClustersMergingTaskRequest.cc +++ b/imm/src/model/CreateFigureClustersMergingTaskRequest.cc @@ -34,6 +34,24 @@ void CreateFigureClustersMergingTaskRequest::setUserData(const std::string &user setParameter(std::string("UserData"), userData); } +std::string CreateFigureClustersMergingTaskRequest::getProjectName() const { + return projectName_; +} + +void CreateFigureClustersMergingTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateFigureClustersMergingTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateFigureClustersMergingTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + std::string CreateFigureClustersMergingTaskRequest::getNotifyEndpoint() const { return notifyEndpoint_; } @@ -61,22 +79,13 @@ void CreateFigureClustersMergingTaskRequest::setFrom(const std::string &from) { setParameter(std::string("From"), from); } -std::string CreateFigureClustersMergingTaskRequest::getProjectName() const { - return projectName_; +std::string CreateFigureClustersMergingTaskRequest::getTo() const { + return to_; } -void CreateFigureClustersMergingTaskRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string CreateFigureClustersMergingTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateFigureClustersMergingTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); +void CreateFigureClustersMergingTaskRequest::setTo(const std::string &to) { + to_ = to; + setParameter(std::string("To"), to); } std::map CreateFigureClustersMergingTaskRequest::getTags() const { @@ -90,12 +99,3 @@ void CreateFigureClustersMergingTaskRequest::setTags(const std::map + +using AlibabaCloud::Imm::Model::CreateGrabFrameTaskRequest; + +CreateGrabFrameTaskRequest::CreateGrabFrameTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "CreateGrabFrameTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateGrabFrameTaskRequest::~CreateGrabFrameTaskRequest() {} + +std::string CreateGrabFrameTaskRequest::getProject() const { + return project_; +} + +void CreateGrabFrameTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CreateGrabFrameTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateGrabFrameTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateGrabFrameTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateGrabFrameTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateGrabFrameTaskRequest::getCustomMessage() const { + return customMessage_; +} + +void CreateGrabFrameTaskRequest::setCustomMessage(const std::string &customMessage) { + customMessage_ = customMessage; + setParameter(std::string("CustomMessage"), customMessage); +} + +std::string CreateGrabFrameTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateGrabFrameTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string CreateGrabFrameTaskRequest::getTargetList() const { + return targetList_; +} + +void CreateGrabFrameTaskRequest::setTargetList(const std::string &targetList) { + targetList_ = targetList; + setParameter(std::string("TargetList"), targetList); +} + +std::string CreateGrabFrameTaskRequest::getVideoUri() const { + return videoUri_; +} + +void CreateGrabFrameTaskRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + diff --git a/imm/src/model/CreateGrabFrameTaskResult.cc b/imm/src/model/CreateGrabFrameTaskResult.cc new file mode 100644 index 000000000..227d5b31d --- /dev/null +++ b/imm/src/model/CreateGrabFrameTaskResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateGrabFrameTaskResult::CreateGrabFrameTaskResult() : + ServiceResult() +{} + +CreateGrabFrameTaskResult::CreateGrabFrameTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGrabFrameTaskResult::~CreateGrabFrameTaskResult() +{} + +void CreateGrabFrameTaskResult::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 CreateGrabFrameTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateGrabFrameTaskResult::getTaskType()const +{ + return taskType_; +} + diff --git a/imm/src/model/CreateGroupFacesJobRequest.cc b/imm/src/model/CreateGroupFacesJobRequest.cc new file mode 100644 index 000000000..fc71c5647 --- /dev/null +++ b/imm/src/model/CreateGroupFacesJobRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::CreateGroupFacesJobRequest; + +CreateGroupFacesJobRequest::CreateGroupFacesJobRequest() + : RpcServiceRequest("imm", "2017-09-06", "CreateGroupFacesJob") { + setMethod(HttpRequest::Method::Post); +} + +CreateGroupFacesJobRequest::~CreateGroupFacesJobRequest() {} + +std::string CreateGroupFacesJobRequest::getProject() const { + return project_; +} + +void CreateGroupFacesJobRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CreateGroupFacesJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateGroupFacesJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateGroupFacesJobRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateGroupFacesJobRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateGroupFacesJobRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateGroupFacesJobRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string CreateGroupFacesJobRequest::getSetId() const { + return setId_; +} + +void CreateGroupFacesJobRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/CreateGroupFacesJobResult.cc b/imm/src/model/CreateGroupFacesJobResult.cc new file mode 100644 index 000000000..72579b7dd --- /dev/null +++ b/imm/src/model/CreateGroupFacesJobResult.cc @@ -0,0 +1,65 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateGroupFacesJobResult::CreateGroupFacesJobResult() : + ServiceResult() +{} + +CreateGroupFacesJobResult::CreateGroupFacesJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGroupFacesJobResult::~CreateGroupFacesJobResult() +{} + +void CreateGroupFacesJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobType"].isNull()) + jobType_ = value["JobType"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateGroupFacesJobResult::getJobType()const +{ + return jobType_; +} + +std::string CreateGroupFacesJobResult::getSetId()const +{ + return setId_; +} + +std::string CreateGroupFacesJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/imm/src/model/CreateImageModerationTaskRequest.cc b/imm/src/model/CreateImageModerationTaskRequest.cc index b5b7765e5..4bba44477 100644 --- a/imm/src/model/CreateImageModerationTaskRequest.cc +++ b/imm/src/model/CreateImageModerationTaskRequest.cc @@ -34,15 +34,6 @@ void CreateImageModerationTaskRequest::setUserData(const std::string &userData) setParameter(std::string("UserData"), userData); } -std::string CreateImageModerationTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateImageModerationTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - std::string CreateImageModerationTaskRequest::getProjectName() const { return projectName_; } @@ -61,6 +52,35 @@ void CreateImageModerationTaskRequest::setNotifyTopicName(const std::string ¬ setParameter(std::string("NotifyTopicName"), notifyTopicName); } +std::string CreateImageModerationTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateImageModerationTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateImageModerationTaskRequest::getSourceURI() const { + return sourceURI_; +} + +void CreateImageModerationTaskRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + +std::vector CreateImageModerationTaskRequest::getScenes() const { + return scenes_; +} + +void CreateImageModerationTaskRequest::setScenes(const std::vector &scenes) { + scenes_ = scenes; + for(int dep1 = 0; dep1 != scenes.size(); dep1++) { + setParameter(std::string("Scenes") + "." + std::to_string(dep1 + 1), scenes[dep1]); + } +} + long CreateImageModerationTaskRequest::getMaxFrames() const { return maxFrames_; } @@ -70,6 +90,15 @@ void CreateImageModerationTaskRequest::setMaxFrames(long maxFrames) { setParameter(std::string("MaxFrames"), std::to_string(maxFrames)); } +long CreateImageModerationTaskRequest::getInterval() const { + return interval_; +} + +void CreateImageModerationTaskRequest::setInterval(long interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); +} + CreateImageModerationTaskRequest::CredentialConfig CreateImageModerationTaskRequest::getCredentialConfig() const { return credentialConfig_; } @@ -105,32 +134,3 @@ void CreateImageModerationTaskRequest::setTags(const std::map CreateImageModerationTaskRequest::getScenes() const { - return scenes_; -} - -void CreateImageModerationTaskRequest::setScenes(const std::vector &scenes) { - scenes_ = scenes; - for(int dep1 = 0; dep1 != scenes.size(); dep1++) { - setParameter(std::string("Scenes") + "." + std::to_string(dep1 + 1), scenes[dep1]); - } -} - -long CreateImageModerationTaskRequest::getInterval() const { - return interval_; -} - -void CreateImageModerationTaskRequest::setInterval(long interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); -} - diff --git a/imm/src/model/CreateImageSplicingTaskRequest.cc b/imm/src/model/CreateImageSplicingTaskRequest.cc index f165a6d59..f73c3bbd7 100644 --- a/imm/src/model/CreateImageSplicingTaskRequest.cc +++ b/imm/src/model/CreateImageSplicingTaskRequest.cc @@ -25,40 +25,13 @@ CreateImageSplicingTaskRequest::CreateImageSplicingTaskRequest() CreateImageSplicingTaskRequest::~CreateImageSplicingTaskRequest() {} -long CreateImageSplicingTaskRequest::getAlign() const { - return align_; +long CreateImageSplicingTaskRequest::getPadding() const { + return padding_; } -void CreateImageSplicingTaskRequest::setAlign(long align) { - align_ = align; - setParameter(std::string("Align"), std::to_string(align)); -} - -std::string CreateImageSplicingTaskRequest::getBackgroundColor() const { - return backgroundColor_; -} - -void CreateImageSplicingTaskRequest::setBackgroundColor(const std::string &backgroundColor) { - backgroundColor_ = backgroundColor; - setParameter(std::string("BackgroundColor"), backgroundColor); -} - -std::string CreateImageSplicingTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateImageSplicingTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateImageSplicingTaskRequest::getScaleType() const { - return scaleType_; -} - -void CreateImageSplicingTaskRequest::setScaleType(const std::string &scaleType) { - scaleType_ = scaleType; - setParameter(std::string("ScaleType"), scaleType); +void CreateImageSplicingTaskRequest::setPadding(long padding) { + padding_ = padding; + setParameter(std::string("Padding"), std::to_string(padding)); } std::string CreateImageSplicingTaskRequest::getProjectName() const { @@ -88,6 +61,42 @@ void CreateImageSplicingTaskRequest::setNotifyTopicName(const std::string ¬if setParameter(std::string("NotifyTopicName"), notifyTopicName); } +std::vector CreateImageSplicingTaskRequest::getSources() const { + return sources_; +} + +void CreateImageSplicingTaskRequest::setSources(const std::vector &sources) { + sources_ = sources; + for(int dep1 = 0; dep1 != sources.size(); dep1++) { + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Rotate", std::to_string(sources[dep1].rotate)); + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".URI", sources[dep1].uRI); + } +} + +CreateImageSplicingTaskRequest::CredentialConfig CreateImageSplicingTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void CreateImageSplicingTaskRequest::setCredentialConfig(const CreateImageSplicingTaskRequest::CredentialConfig &credentialConfig) { + credentialConfig_ = credentialConfig; + for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { + setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); + setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); + setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); + } + setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); + setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); +} + +long CreateImageSplicingTaskRequest::getAlign() const { + return align_; +} + +void CreateImageSplicingTaskRequest::setAlign(long align) { + align_ = align; + setParameter(std::string("Align"), std::to_string(align)); +} + long CreateImageSplicingTaskRequest::getQuality() const { return quality_; } @@ -97,6 +106,15 @@ void CreateImageSplicingTaskRequest::setQuality(long quality) { setParameter(std::string("Quality"), std::to_string(quality)); } +std::string CreateImageSplicingTaskRequest::getBackgroundColor() const { + return backgroundColor_; +} + +void CreateImageSplicingTaskRequest::setBackgroundColor(const std::string &backgroundColor) { + backgroundColor_ = backgroundColor; + setParameter(std::string("BackgroundColor"), backgroundColor); +} + std::map CreateImageSplicingTaskRequest::getTags() const { return tags_; } @@ -108,18 +126,6 @@ void CreateImageSplicingTaskRequest::setTags(const std::map CreateImageSplicingTaskRequest::getSources() const { - return sources_; -} - -void CreateImageSplicingTaskRequest::setSources(const std::vector &sources) { - sources_ = sources; - for(int dep1 = 0; dep1 != sources.size(); dep1++) { - setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Rotate", std::to_string(sources[dep1].rotate)); - setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".URI", sources[dep1].uRI); - } -} - std::string CreateImageSplicingTaskRequest::getUserData() const { return userData_; } @@ -129,6 +135,15 @@ void CreateImageSplicingTaskRequest::setUserData(const std::string &userData) { setParameter(std::string("UserData"), userData); } +std::string CreateImageSplicingTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateImageSplicingTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + std::string CreateImageSplicingTaskRequest::getTargetURI() const { return targetURI_; } @@ -138,6 +153,15 @@ void CreateImageSplicingTaskRequest::setTargetURI(const std::string &targetURI) setParameter(std::string("TargetURI"), targetURI); } +std::string CreateImageSplicingTaskRequest::getScaleType() const { + return scaleType_; +} + +void CreateImageSplicingTaskRequest::setScaleType(const std::string &scaleType) { + scaleType_ = scaleType; + setParameter(std::string("ScaleType"), scaleType); +} + std::string CreateImageSplicingTaskRequest::getImageFormat() const { return imageFormat_; } @@ -156,27 +180,3 @@ void CreateImageSplicingTaskRequest::setDirection(const std::string &direction) setParameter(std::string("Direction"), direction); } -long CreateImageSplicingTaskRequest::getPadding() const { - return padding_; -} - -void CreateImageSplicingTaskRequest::setPadding(long padding) { - padding_ = padding; - setParameter(std::string("Padding"), std::to_string(padding)); -} - -CreateImageSplicingTaskRequest::CredentialConfig CreateImageSplicingTaskRequest::getCredentialConfig() const { - return credentialConfig_; -} - -void CreateImageSplicingTaskRequest::setCredentialConfig(const CreateImageSplicingTaskRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); -} - diff --git a/imm/src/model/CreateMediaConvertTaskRequest.cc b/imm/src/model/CreateMediaConvertTaskRequest.cc index b3be44e01..24328c99b 100644 --- a/imm/src/model/CreateMediaConvertTaskRequest.cc +++ b/imm/src/model/CreateMediaConvertTaskRequest.cc @@ -25,6 +25,33 @@ CreateMediaConvertTaskRequest::CreateMediaConvertTaskRequest() CreateMediaConvertTaskRequest::~CreateMediaConvertTaskRequest() {} +std::string CreateMediaConvertTaskRequest::getUserData() const { + return userData_; +} + +void CreateMediaConvertTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateMediaConvertTaskRequest::getProjectName() const { + return projectName_; +} + +void CreateMediaConvertTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateMediaConvertTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateMediaConvertTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + std::vector CreateMediaConvertTaskRequest::getSources() const { return sources_; } @@ -43,6 +70,30 @@ void CreateMediaConvertTaskRequest::setSources(const std::vector CreateMediaConvertTaskRequest::getTargets() const { return targets_; } @@ -143,57 +194,6 @@ void CreateMediaConvertTaskRequest::setTargets(const std::vector CreateMediaConvertTaskRequest::getTags() const { return tags_; } diff --git a/imm/src/model/CreateMergeFaceGroupsJobRequest.cc b/imm/src/model/CreateMergeFaceGroupsJobRequest.cc new file mode 100644 index 000000000..aa279c019 --- /dev/null +++ b/imm/src/model/CreateMergeFaceGroupsJobRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::CreateMergeFaceGroupsJobRequest; + +CreateMergeFaceGroupsJobRequest::CreateMergeFaceGroupsJobRequest() + : RpcServiceRequest("imm", "2017-09-06", "CreateMergeFaceGroupsJob") { + setMethod(HttpRequest::Method::Post); +} + +CreateMergeFaceGroupsJobRequest::~CreateMergeFaceGroupsJobRequest() {} + +std::string CreateMergeFaceGroupsJobRequest::getProject() const { + return project_; +} + +void CreateMergeFaceGroupsJobRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CreateMergeFaceGroupsJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateMergeFaceGroupsJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateMergeFaceGroupsJobRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateMergeFaceGroupsJobRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateMergeFaceGroupsJobRequest::getCustomMessage() const { + return customMessage_; +} + +void CreateMergeFaceGroupsJobRequest::setCustomMessage(const std::string &customMessage) { + customMessage_ = customMessage; + setParameter(std::string("CustomMessage"), customMessage); +} + +std::string CreateMergeFaceGroupsJobRequest::getGroupIdFrom() const { + return groupIdFrom_; +} + +void CreateMergeFaceGroupsJobRequest::setGroupIdFrom(const std::string &groupIdFrom) { + groupIdFrom_ = groupIdFrom; + setParameter(std::string("GroupIdFrom"), groupIdFrom); +} + +std::string CreateMergeFaceGroupsJobRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateMergeFaceGroupsJobRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string CreateMergeFaceGroupsJobRequest::getGroupIdTo() const { + return groupIdTo_; +} + +void CreateMergeFaceGroupsJobRequest::setGroupIdTo(const std::string &groupIdTo) { + groupIdTo_ = groupIdTo; + setParameter(std::string("GroupIdTo"), groupIdTo); +} + +std::string CreateMergeFaceGroupsJobRequest::getSetId() const { + return setId_; +} + +void CreateMergeFaceGroupsJobRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/CreateMergeFaceGroupsJobResult.cc b/imm/src/model/CreateMergeFaceGroupsJobResult.cc new file mode 100644 index 000000000..31a4e85d3 --- /dev/null +++ b/imm/src/model/CreateMergeFaceGroupsJobResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult() : + ServiceResult() +{} + +CreateMergeFaceGroupsJobResult::CreateMergeFaceGroupsJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMergeFaceGroupsJobResult::~CreateMergeFaceGroupsJobResult() +{} + +void CreateMergeFaceGroupsJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["GroupIdFrom"].isNull()) + groupIdFrom_ = value["GroupIdFrom"].asString(); + if(!value["JobType"].isNull()) + jobType_ = value["JobType"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["GroupIdTo"].isNull()) + groupIdTo_ = value["GroupIdTo"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string CreateMergeFaceGroupsJobResult::getGroupIdFrom()const +{ + return groupIdFrom_; +} + +std::string CreateMergeFaceGroupsJobResult::getJobType()const +{ + return jobType_; +} + +std::string CreateMergeFaceGroupsJobResult::getSetId()const +{ + return setId_; +} + +std::string CreateMergeFaceGroupsJobResult::getGroupIdTo()const +{ + return groupIdTo_; +} + +std::string CreateMergeFaceGroupsJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/imm/src/model/CreateOfficeConversionTaskRequest.cc b/imm/src/model/CreateOfficeConversionTaskRequest.cc index 6037c4542..f596ddf92 100644 --- a/imm/src/model/CreateOfficeConversionTaskRequest.cc +++ b/imm/src/model/CreateOfficeConversionTaskRequest.cc @@ -19,213 +19,55 @@ using AlibabaCloud::Imm::Model::CreateOfficeConversionTaskRequest; CreateOfficeConversionTaskRequest::CreateOfficeConversionTaskRequest() - : RpcServiceRequest("imm", "2020-09-30", "CreateOfficeConversionTask") { + : RpcServiceRequest("imm", "2017-09-06", "CreateOfficeConversionTask") { setMethod(HttpRequest::Method::Post); } CreateOfficeConversionTaskRequest::~CreateOfficeConversionTaskRequest() {} -long CreateOfficeConversionTaskRequest::getSheetCount() const { - return sheetCount_; +std::string CreateOfficeConversionTaskRequest::getSrcType() const { + return srcType_; } -void CreateOfficeConversionTaskRequest::setSheetCount(long sheetCount) { - sheetCount_ = sheetCount; - setParameter(std::string("SheetCount"), std::to_string(sheetCount)); +void CreateOfficeConversionTaskRequest::setSrcType(const std::string &srcType) { + srcType_ = srcType; + setParameter(std::string("SrcType"), srcType); } -bool CreateOfficeConversionTaskRequest::getShowComments() const { - return showComments_; +std::string CreateOfficeConversionTaskRequest::getProject() const { + return project_; } -void CreateOfficeConversionTaskRequest::setShowComments(bool showComments) { - showComments_ = showComments; - setParameter(std::string("ShowComments"), showComments ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -std::string CreateOfficeConversionTaskRequest::getPassword() const { - return password_; +std::string CreateOfficeConversionTaskRequest::getIdempotentToken() const { + return idempotentToken_; } -void CreateOfficeConversionTaskRequest::setPassword(const std::string &password) { - password_ = password; - setParameter(std::string("Password"), password); +void CreateOfficeConversionTaskRequest::setIdempotentToken(const std::string &idempotentToken) { + idempotentToken_ = idempotentToken; + setParameter(std::string("IdempotentToken"), idempotentToken); } -std::string CreateOfficeConversionTaskRequest::getPages() const { - return pages_; +bool CreateOfficeConversionTaskRequest::getPdfVector() const { + return pdfVector_; } -void CreateOfficeConversionTaskRequest::setPages(const std::string &pages) { - pages_ = pages; - setParameter(std::string("Pages"), pages); +void CreateOfficeConversionTaskRequest::setPdfVector(bool pdfVector) { + pdfVector_ = pdfVector; + setParameter(std::string("PdfVector"), pdfVector ? "true" : "false"); } -std::string CreateOfficeConversionTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; +std::string CreateOfficeConversionTaskRequest::getAccessKeyId() const { + return accessKeyId_; } -void CreateOfficeConversionTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateOfficeConversionTaskRequest::getSourceType() const { - return sourceType_; -} - -void CreateOfficeConversionTaskRequest::setSourceType(const std::string &sourceType) { - sourceType_ = sourceType; - setParameter(std::string("SourceType"), sourceType); -} - -std::string CreateOfficeConversionTaskRequest::getProjectName() const { - return projectName_; -} - -void CreateOfficeConversionTaskRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string CreateOfficeConversionTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateOfficeConversionTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -bool CreateOfficeConversionTaskRequest::getFitToHeight() const { - return fitToHeight_; -} - -void CreateOfficeConversionTaskRequest::setFitToHeight(bool fitToHeight) { - fitToHeight_ = fitToHeight; - setParameter(std::string("FitToHeight"), fitToHeight ? "true" : "false"); -} - -long CreateOfficeConversionTaskRequest::getEndPage() const { - return endPage_; -} - -void CreateOfficeConversionTaskRequest::setEndPage(long endPage) { - endPage_ = endPage; - setParameter(std::string("EndPage"), std::to_string(endPage)); -} - -bool CreateOfficeConversionTaskRequest::getFitToWidth() const { - return fitToWidth_; -} - -void CreateOfficeConversionTaskRequest::setFitToWidth(bool fitToWidth) { - fitToWidth_ = fitToWidth; - setParameter(std::string("FitToWidth"), fitToWidth ? "true" : "false"); -} - -long CreateOfficeConversionTaskRequest::getQuality() const { - return quality_; -} - -void CreateOfficeConversionTaskRequest::setQuality(long quality) { - quality_ = quality; - setParameter(std::string("Quality"), std::to_string(quality)); -} - -std::map CreateOfficeConversionTaskRequest::getTags() const { - return tags_; -} - -void CreateOfficeConversionTaskRequest::setTags(const std::map &tags) { - tags_ = tags; - for(auto const &iter1 : tags) { - setParameter(std::string("Tags") + "." + iter1.first, iter1.second); - } -} - -std::string CreateOfficeConversionTaskRequest::getSourceURI() const { - return sourceURI_; -} - -void CreateOfficeConversionTaskRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - -long CreateOfficeConversionTaskRequest::getSheetIndex() const { - return sheetIndex_; -} - -void CreateOfficeConversionTaskRequest::setSheetIndex(long sheetIndex) { - sheetIndex_ = sheetIndex; - setParameter(std::string("SheetIndex"), std::to_string(sheetIndex)); -} - -bool CreateOfficeConversionTaskRequest::getHoldLineFeed() const { - return holdLineFeed_; -} - -void CreateOfficeConversionTaskRequest::setHoldLineFeed(bool holdLineFeed) { - holdLineFeed_ = holdLineFeed; - setParameter(std::string("HoldLineFeed"), holdLineFeed ? "true" : "false"); -} - -bool CreateOfficeConversionTaskRequest::getLongText() const { - return longText_; -} - -void CreateOfficeConversionTaskRequest::setLongText(bool longText) { - longText_ = longText; - setParameter(std::string("LongText"), longText ? "true" : "false"); -} - -std::string CreateOfficeConversionTaskRequest::getTargetType() const { - return targetType_; -} - -void CreateOfficeConversionTaskRequest::setTargetType(const std::string &targetType) { - targetType_ = targetType; - setParameter(std::string("TargetType"), targetType); -} - -CreateOfficeConversionTaskRequest::TrimPolicy CreateOfficeConversionTaskRequest::getTrimPolicy() const { - return trimPolicy_; -} - -void CreateOfficeConversionTaskRequest::setTrimPolicy(const CreateOfficeConversionTaskRequest::TrimPolicy &trimPolicy) { - trimPolicy_ = trimPolicy; - setParameter(std::string("TrimPolicy") + ".DisableDeleteUnusedPicture", trimPolicy.disableDeleteUnusedPicture ? "true" : "false"); - setParameter(std::string("TrimPolicy") + ".DisableDeleteRepeatedStyle", trimPolicy.disableDeleteRepeatedStyle ? "true" : "false"); - setParameter(std::string("TrimPolicy") + ".DisableDeleteUnusedShape", trimPolicy.disableDeleteUnusedShape ? "true" : "false"); - setParameter(std::string("TrimPolicy") + ".DisableDeleteEmptyCell", trimPolicy.disableDeleteEmptyCell ? "true" : "false"); -} - -long CreateOfficeConversionTaskRequest::getMaxSheetColumn() const { - return maxSheetColumn_; -} - -void CreateOfficeConversionTaskRequest::setMaxSheetColumn(long maxSheetColumn) { - maxSheetColumn_ = maxSheetColumn; - setParameter(std::string("MaxSheetColumn"), std::to_string(maxSheetColumn)); -} - -bool CreateOfficeConversionTaskRequest::getFirstPage() const { - return firstPage_; -} - -void CreateOfficeConversionTaskRequest::setFirstPage(bool firstPage) { - firstPage_ = firstPage; - setParameter(std::string("FirstPage"), firstPage ? "true" : "false"); -} - -bool CreateOfficeConversionTaskRequest::getPaperHorizontal() const { - return paperHorizontal_; -} - -void CreateOfficeConversionTaskRequest::setPaperHorizontal(bool paperHorizontal) { - paperHorizontal_ = paperHorizontal; - setParameter(std::string("PaperHorizontal"), paperHorizontal ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } std::string CreateOfficeConversionTaskRequest::getUserData() const { @@ -237,13 +79,13 @@ void CreateOfficeConversionTaskRequest::setUserData(const std::string &userData) setParameter(std::string("UserData"), userData); } -long CreateOfficeConversionTaskRequest::getScalePercentage() const { - return scalePercentage_; +std::string CreateOfficeConversionTaskRequest::getPassword() const { + return password_; } -void CreateOfficeConversionTaskRequest::setScalePercentage(long scalePercentage) { - scalePercentage_ = scalePercentage; - setParameter(std::string("ScalePercentage"), std::to_string(scalePercentage)); +void CreateOfficeConversionTaskRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } long CreateOfficeConversionTaskRequest::getStartPage() const { @@ -255,49 +97,58 @@ void CreateOfficeConversionTaskRequest::setStartPage(long startPage) { setParameter(std::string("StartPage"), std::to_string(startPage)); } -std::string CreateOfficeConversionTaskRequest::getTargetURIPrefix() const { - return targetURIPrefix_; +std::string CreateOfficeConversionTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; } -void CreateOfficeConversionTaskRequest::setTargetURIPrefix(const std::string &targetURIPrefix) { - targetURIPrefix_ = targetURIPrefix; - setParameter(std::string("TargetURIPrefix"), targetURIPrefix); +void CreateOfficeConversionTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); } -std::string CreateOfficeConversionTaskRequest::getTargetURI() const { - return targetURI_; +bool CreateOfficeConversionTaskRequest::getFitToPagesWide() const { + return fitToPagesWide_; } -void CreateOfficeConversionTaskRequest::setTargetURI(const std::string &targetURI) { - targetURI_ = targetURI; - setParameter(std::string("TargetURI"), targetURI); +void CreateOfficeConversionTaskRequest::setFitToPagesWide(bool fitToPagesWide) { + fitToPagesWide_ = fitToPagesWide; + setParameter(std::string("FitToPagesWide"), fitToPagesWide ? "true" : "false"); } -std::string CreateOfficeConversionTaskRequest::getPaperSize() const { - return paperSize_; +std::string CreateOfficeConversionTaskRequest::getTgtFilePrefix() const { + return tgtFilePrefix_; } -void CreateOfficeConversionTaskRequest::setPaperSize(const std::string &paperSize) { - paperSize_ = paperSize; - setParameter(std::string("PaperSize"), paperSize); +void CreateOfficeConversionTaskRequest::setTgtFilePrefix(const std::string &tgtFilePrefix) { + tgtFilePrefix_ = tgtFilePrefix; + setParameter(std::string("TgtFilePrefix"), tgtFilePrefix); } -long CreateOfficeConversionTaskRequest::getImageDPI() const { - return imageDPI_; +std::string CreateOfficeConversionTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; } -void CreateOfficeConversionTaskRequest::setImageDPI(long imageDPI) { - imageDPI_ = imageDPI; - setParameter(std::string("ImageDPI"), std::to_string(imageDPI)); +void CreateOfficeConversionTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); } -bool CreateOfficeConversionTaskRequest::getLongPicture() const { - return longPicture_; +std::string CreateOfficeConversionTaskRequest::getModelId() const { + return modelId_; } -void CreateOfficeConversionTaskRequest::setLongPicture(bool longPicture) { - longPicture_ = longPicture; - setParameter(std::string("LongPicture"), longPicture ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("ModelId"), modelId); +} + +int CreateOfficeConversionTaskRequest::getDisplayDpi() const { + return displayDpi_; +} + +void CreateOfficeConversionTaskRequest::setDisplayDpi(int displayDpi) { + displayDpi_ = displayDpi; + setParameter(std::string("DisplayDpi"), std::to_string(displayDpi)); } long CreateOfficeConversionTaskRequest::getMaxSheetRow() const { @@ -309,18 +160,102 @@ void CreateOfficeConversionTaskRequest::setMaxSheetRow(long maxSheetRow) { setParameter(std::string("MaxSheetRow"), std::to_string(maxSheetRow)); } -CreateOfficeConversionTaskRequest::CredentialConfig CreateOfficeConversionTaskRequest::getCredentialConfig() const { - return credentialConfig_; +long CreateOfficeConversionTaskRequest::getMaxSheetCount() const { + return maxSheetCount_; } -void CreateOfficeConversionTaskRequest::setCredentialConfig(const CreateOfficeConversionTaskRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); +void CreateOfficeConversionTaskRequest::setMaxSheetCount(long maxSheetCount) { + maxSheetCount_ = maxSheetCount; + setParameter(std::string("MaxSheetCount"), std::to_string(maxSheetCount)); +} + +long CreateOfficeConversionTaskRequest::getEndPage() const { + return endPage_; +} + +void CreateOfficeConversionTaskRequest::setEndPage(long endPage) { + endPage_ = endPage; + setParameter(std::string("EndPage"), std::to_string(endPage)); +} + +std::string CreateOfficeConversionTaskRequest::getTgtFileSuffix() const { + return tgtFileSuffix_; +} + +void CreateOfficeConversionTaskRequest::setTgtFileSuffix(const std::string &tgtFileSuffix) { + tgtFileSuffix_ = tgtFileSuffix; + setParameter(std::string("TgtFileSuffix"), tgtFileSuffix); +} + +bool CreateOfficeConversionTaskRequest::getSheetOnePage() const { + return sheetOnePage_; +} + +void CreateOfficeConversionTaskRequest::setSheetOnePage(bool sheetOnePage) { + sheetOnePage_ = sheetOnePage; + setParameter(std::string("SheetOnePage"), sheetOnePage ? "true" : "false"); +} + +long CreateOfficeConversionTaskRequest::getMaxSheetCol() const { + return maxSheetCol_; +} + +void CreateOfficeConversionTaskRequest::setMaxSheetCol(long maxSheetCol) { + maxSheetCol_ = maxSheetCol; + setParameter(std::string("MaxSheetCol"), std::to_string(maxSheetCol)); +} + +std::string CreateOfficeConversionTaskRequest::getTgtType() const { + return tgtType_; +} + +void CreateOfficeConversionTaskRequest::setTgtType(const std::string &tgtType) { + tgtType_ = tgtType; + setParameter(std::string("TgtType"), tgtType); +} + +bool CreateOfficeConversionTaskRequest::getHidecomments() const { + return hidecomments_; +} + +void CreateOfficeConversionTaskRequest::setHidecomments(bool hidecomments) { + hidecomments_ = hidecomments; + setParameter(std::string("Hidecomments"), hidecomments ? "true" : "false"); +} + +bool CreateOfficeConversionTaskRequest::getFitToPagesTall() const { + return fitToPagesTall_; +} + +void CreateOfficeConversionTaskRequest::setFitToPagesTall(bool fitToPagesTall) { + fitToPagesTall_ = fitToPagesTall; + setParameter(std::string("FitToPagesTall"), fitToPagesTall ? "true" : "false"); +} + +std::string CreateOfficeConversionTaskRequest::getSrcUri() const { + return srcUri_; +} + +void CreateOfficeConversionTaskRequest::setSrcUri(const std::string &srcUri) { + srcUri_ = srcUri; + setParameter(std::string("SrcUri"), srcUri); +} + +std::string CreateOfficeConversionTaskRequest::getTgtFilePages() const { + return tgtFilePages_; +} + +void CreateOfficeConversionTaskRequest::setTgtFilePages(const std::string &tgtFilePages) { + tgtFilePages_ = tgtFilePages; + setParameter(std::string("TgtFilePages"), tgtFilePages); +} + +std::string CreateOfficeConversionTaskRequest::getTgtUri() const { + return tgtUri_; +} + +void CreateOfficeConversionTaskRequest::setTgtUri(const std::string &tgtUri) { + tgtUri_ = tgtUri; + setParameter(std::string("TgtUri"), tgtUri); } diff --git a/imm/src/model/CreateOfficeConversionTaskResult.cc b/imm/src/model/CreateOfficeConversionTaskResult.cc index 1b18b10ba..010d68b3a 100644 --- a/imm/src/model/CreateOfficeConversionTaskResult.cc +++ b/imm/src/model/CreateOfficeConversionTaskResult.cc @@ -39,20 +39,41 @@ void CreateOfficeConversionTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["EventId"].isNull()) - eventId_ = value["EventId"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["TgtLoc"].isNull()) + tgtLoc_ = value["TgtLoc"].asString(); } +std::string CreateOfficeConversionTaskResult::getStatus()const +{ + return status_; +} + std::string CreateOfficeConversionTaskResult::getTaskId()const { return taskId_; } -std::string CreateOfficeConversionTaskResult::getEventId()const +int CreateOfficeConversionTaskResult::getPercent()const { - return eventId_; + return percent_; +} + +std::string CreateOfficeConversionTaskResult::getCreateTime()const +{ + return createTime_; +} + +std::string CreateOfficeConversionTaskResult::getTgtLoc()const +{ + return tgtLoc_; } diff --git a/imm/src/model/CreateProjectRequest.cc b/imm/src/model/CreateProjectRequest.cc index 6a92368ef..1796959ad 100644 --- a/imm/src/model/CreateProjectRequest.cc +++ b/imm/src/model/CreateProjectRequest.cc @@ -34,51 +34,6 @@ void CreateProjectRequest::setEngineConcurrency(long engineConcurrency) { setParameter(std::string("EngineConcurrency"), std::to_string(engineConcurrency)); } -long CreateProjectRequest::getDatasetMaxBindCount() const { - return datasetMaxBindCount_; -} - -void CreateProjectRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { - datasetMaxBindCount_ = datasetMaxBindCount; - setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); -} - -std::string CreateProjectRequest::getDescription() const { - return description_; -} - -void CreateProjectRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); -} - -long CreateProjectRequest::getProjectQueriesPerSecond() const { - return projectQueriesPerSecond_; -} - -void CreateProjectRequest::setProjectQueriesPerSecond(long projectQueriesPerSecond) { - projectQueriesPerSecond_ = projectQueriesPerSecond; - setParameter(std::string("ProjectQueriesPerSecond"), std::to_string(projectQueriesPerSecond)); -} - -long CreateProjectRequest::getDatasetMaxRelationCount() const { - return datasetMaxRelationCount_; -} - -void CreateProjectRequest::setDatasetMaxRelationCount(long datasetMaxRelationCount) { - datasetMaxRelationCount_ = datasetMaxRelationCount; - setParameter(std::string("DatasetMaxRelationCount"), std::to_string(datasetMaxRelationCount)); -} - -long CreateProjectRequest::getDatasetMaxFileCount() const { - return datasetMaxFileCount_; -} - -void CreateProjectRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { - datasetMaxFileCount_ = datasetMaxFileCount; - setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); -} - std::string CreateProjectRequest::getProjectName() const { return projectName_; } @@ -88,6 +43,15 @@ void CreateProjectRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +long CreateProjectRequest::getDatasetMaxBindCount() const { + return datasetMaxBindCount_; +} + +void CreateProjectRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { + datasetMaxBindCount_ = datasetMaxBindCount; + setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); +} + long CreateProjectRequest::getProjectMaxDatasetCount() const { return projectMaxDatasetCount_; } @@ -97,24 +61,6 @@ void CreateProjectRequest::setProjectMaxDatasetCount(long projectMaxDatasetCount setParameter(std::string("ProjectMaxDatasetCount"), std::to_string(projectMaxDatasetCount)); } -long CreateProjectRequest::getDatasetMaxEntityCount() const { - return datasetMaxEntityCount_; -} - -void CreateProjectRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) { - datasetMaxEntityCount_ = datasetMaxEntityCount; - setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); -} - -std::string CreateProjectRequest::getTemplateId() const { - return templateId_; -} - -void CreateProjectRequest::setTemplateId(const std::string &templateId) { - templateId_ = templateId; - setParameter(std::string("TemplateId"), templateId); -} - long CreateProjectRequest::getDatasetMaxTotalFileSize() const { return datasetMaxTotalFileSize_; } @@ -133,3 +79,57 @@ void CreateProjectRequest::setServiceRole(const std::string &serviceRole) { setParameter(std::string("ServiceRole"), serviceRole); } +long CreateProjectRequest::getProjectQueriesPerSecond() const { + return projectQueriesPerSecond_; +} + +void CreateProjectRequest::setProjectQueriesPerSecond(long projectQueriesPerSecond) { + projectQueriesPerSecond_ = projectQueriesPerSecond; + setParameter(std::string("ProjectQueriesPerSecond"), std::to_string(projectQueriesPerSecond)); +} + +long CreateProjectRequest::getDatasetMaxRelationCount() const { + return datasetMaxRelationCount_; +} + +void CreateProjectRequest::setDatasetMaxRelationCount(long datasetMaxRelationCount) { + datasetMaxRelationCount_ = datasetMaxRelationCount; + setParameter(std::string("DatasetMaxRelationCount"), std::to_string(datasetMaxRelationCount)); +} + +std::string CreateProjectRequest::getDescription() const { + return description_; +} + +void CreateProjectRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +long CreateProjectRequest::getDatasetMaxEntityCount() const { + return datasetMaxEntityCount_; +} + +void CreateProjectRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) { + datasetMaxEntityCount_ = datasetMaxEntityCount; + setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); +} + +long CreateProjectRequest::getDatasetMaxFileCount() const { + return datasetMaxFileCount_; +} + +void CreateProjectRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { + datasetMaxFileCount_ = datasetMaxFileCount; + setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); +} + +std::string CreateProjectRequest::getTemplateId() const { + return templateId_; +} + +void CreateProjectRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + diff --git a/imm/src/model/CreateSetRequest.cc b/imm/src/model/CreateSetRequest.cc new file mode 100644 index 000000000..3d462a8c7 --- /dev/null +++ b/imm/src/model/CreateSetRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::CreateSetRequest; + +CreateSetRequest::CreateSetRequest() + : RpcServiceRequest("imm", "2017-09-06", "CreateSet") { + setMethod(HttpRequest::Method::Post); +} + +CreateSetRequest::~CreateSetRequest() {} + +std::string CreateSetRequest::getProject() const { + return project_; +} + +void CreateSetRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CreateSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateSetRequest::getSetName() const { + return setName_; +} + +void CreateSetRequest::setSetName(const std::string &setName) { + setName_ = setName; + setParameter(std::string("SetName"), setName); +} + +std::string CreateSetRequest::getSetId() const { + return setId_; +} + +void CreateSetRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/CreateSetResult.cc b/imm/src/model/CreateSetResult.cc new file mode 100644 index 000000000..8f484fefe --- /dev/null +++ b/imm/src/model/CreateSetResult.cc @@ -0,0 +1,100 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateSetResult::CreateSetResult() : + ServiceResult() +{} + +CreateSetResult::CreateSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSetResult::~CreateSetResult() +{} + +void CreateSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["VideoCount"].isNull()) + videoCount_ = std::stoi(value["VideoCount"].asString()); + if(!value["ImageCount"].isNull()) + imageCount_ = std::stoi(value["ImageCount"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["SetName"].isNull()) + setName_ = value["SetName"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["VideoLength"].isNull()) + videoLength_ = std::stoi(value["VideoLength"].asString()); + if(!value["FaceCount"].isNull()) + faceCount_ = std::stoi(value["FaceCount"].asString()); + +} + +std::string CreateSetResult::getModifyTime()const +{ + return modifyTime_; +} + +int CreateSetResult::getVideoCount()const +{ + return videoCount_; +} + +int CreateSetResult::getImageCount()const +{ + return imageCount_; +} + +std::string CreateSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string CreateSetResult::getSetName()const +{ + return setName_; +} + +std::string CreateSetResult::getSetId()const +{ + return setId_; +} + +int CreateSetResult::getVideoLength()const +{ + return videoLength_; +} + +int CreateSetResult::getFaceCount()const +{ + return faceCount_; +} + diff --git a/imm/src/model/CreateStoryRequest.cc b/imm/src/model/CreateStoryRequest.cc index 0fa8145df..a6d544bcf 100644 --- a/imm/src/model/CreateStoryRequest.cc +++ b/imm/src/model/CreateStoryRequest.cc @@ -25,22 +25,13 @@ CreateStoryRequest::CreateStoryRequest() CreateStoryRequest::~CreateStoryRequest() {} -std::string CreateStoryRequest::getCustomLabels() const { - return customLabels_; +long CreateStoryRequest::getMinFileCount() const { + return minFileCount_; } -void CreateStoryRequest::setCustomLabels(const std::string &customLabels) { - customLabels_ = customLabels; - setBodyParameter(std::string("CustomLabels"), customLabels); -} - -std::string CreateStoryRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateStoryRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setBodyParameter(std::string("NotifyEndpoint"), notifyEndpoint); +void CreateStoryRequest::setMinFileCount(long minFileCount) { + minFileCount_ = minFileCount; + setBodyParameter(std::string("MinFileCount"), std::to_string(minFileCount)); } std::string CreateStoryRequest::getProjectName() const { @@ -52,6 +43,24 @@ void CreateStoryRequest::setProjectName(const std::string &projectName) { setBodyParameter(std::string("ProjectName"), projectName); } +std::string CreateStoryRequest::getCustomLabels() const { + return customLabels_; +} + +void CreateStoryRequest::setCustomLabels(const std::string &customLabels) { + customLabels_ = customLabels; + setBodyParameter(std::string("CustomLabels"), customLabels); +} + +std::string CreateStoryRequest::getStoryStartTime() const { + return storyStartTime_; +} + +void CreateStoryRequest::setStoryStartTime(const std::string &storyStartTime) { + storyStartTime_ = storyStartTime; + setBodyParameter(std::string("StoryStartTime"), storyStartTime); +} + std::string CreateStoryRequest::getNotifyTopicName() const { return notifyTopicName_; } @@ -70,6 +79,15 @@ void CreateStoryRequest::setStoryType(const std::string &storyType) { setBodyParameter(std::string("StoryType"), storyType); } +std::string CreateStoryRequest::getCustomId() const { + return customId_; +} + +void CreateStoryRequest::setCustomId(const std::string &customId) { + customId_ = customId; + setBodyParameter(std::string("CustomId"), customId); +} + std::map CreateStoryRequest::getTags() const { return tags_; } @@ -81,24 +99,6 @@ void CreateStoryRequest::setTags(const std::map &tags) } } -std::string CreateStoryRequest::getStorySubType() const { - return storySubType_; -} - -void CreateStoryRequest::setStorySubType(const std::string &storySubType) { - storySubType_ = storySubType; - setBodyParameter(std::string("StorySubType"), storySubType); -} - -long CreateStoryRequest::getMinFileCount() const { - return minFileCount_; -} - -void CreateStoryRequest::setMinFileCount(long minFileCount) { - minFileCount_ = minFileCount; - setBodyParameter(std::string("MinFileCount"), std::to_string(minFileCount)); -} - std::string CreateStoryRequest::getUserData() const { return userData_; } @@ -108,6 +108,15 @@ void CreateStoryRequest::setUserData(const std::string &userData) { setParameter(std::string("UserData"), userData); } +std::string CreateStoryRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateStoryRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setBodyParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + long CreateStoryRequest::getMaxFileCount() const { return maxFileCount_; } @@ -117,6 +126,15 @@ void CreateStoryRequest::setMaxFileCount(long maxFileCount) { setBodyParameter(std::string("MaxFileCount"), std::to_string(maxFileCount)); } +std::string CreateStoryRequest::getStorySubType() const { + return storySubType_; +} + +void CreateStoryRequest::setStorySubType(const std::string &storySubType) { + storySubType_ = storySubType; + setBodyParameter(std::string("StorySubType"), storySubType); +} + std::string CreateStoryRequest::getDatasetName() const { return datasetName_; } @@ -126,24 +144,6 @@ void CreateStoryRequest::setDatasetName(const std::string &datasetName) { setBodyParameter(std::string("DatasetName"), datasetName); } -std::string CreateStoryRequest::getStoryStartTime() const { - return storyStartTime_; -} - -void CreateStoryRequest::setStoryStartTime(const std::string &storyStartTime) { - storyStartTime_ = storyStartTime; - setBodyParameter(std::string("StoryStartTime"), storyStartTime); -} - -std::string CreateStoryRequest::getCustomId() const { - return customId_; -} - -void CreateStoryRequest::setCustomId(const std::string &customId) { - customId_ = customId; - setBodyParameter(std::string("CustomId"), customId); -} - std::string CreateStoryRequest::getStoryEndTime() const { return storyEndTime_; } diff --git a/imm/src/model/CreateVideoCompressTaskRequest.cc b/imm/src/model/CreateVideoCompressTaskRequest.cc new file mode 100644 index 000000000..7ce50daae --- /dev/null +++ b/imm/src/model/CreateVideoCompressTaskRequest.cc @@ -0,0 +1,117 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::CreateVideoCompressTaskRequest; + +CreateVideoCompressTaskRequest::CreateVideoCompressTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "CreateVideoCompressTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateVideoCompressTaskRequest::~CreateVideoCompressTaskRequest() {} + +std::string CreateVideoCompressTaskRequest::getTargetSubtitle() const { + return targetSubtitle_; +} + +void CreateVideoCompressTaskRequest::setTargetSubtitle(const std::string &targetSubtitle) { + targetSubtitle_ = targetSubtitle; + setParameter(std::string("TargetSubtitle"), targetSubtitle); +} + +std::string CreateVideoCompressTaskRequest::getProject() const { + return project_; +} + +void CreateVideoCompressTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string CreateVideoCompressTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateVideoCompressTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateVideoCompressTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateVideoCompressTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateVideoCompressTaskRequest::getTargetContainer() const { + return targetContainer_; +} + +void CreateVideoCompressTaskRequest::setTargetContainer(const std::string &targetContainer) { + targetContainer_ = targetContainer; + setParameter(std::string("TargetContainer"), targetContainer); +} + +std::string CreateVideoCompressTaskRequest::getCustomMessage() const { + return customMessage_; +} + +void CreateVideoCompressTaskRequest::setCustomMessage(const std::string &customMessage) { + customMessage_ = customMessage; + setParameter(std::string("CustomMessage"), customMessage); +} + +std::string CreateVideoCompressTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateVideoCompressTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string CreateVideoCompressTaskRequest::getTargetList() const { + return targetList_; +} + +void CreateVideoCompressTaskRequest::setTargetList(const std::string &targetList) { + targetList_ = targetList; + setParameter(std::string("TargetList"), targetList); +} + +std::string CreateVideoCompressTaskRequest::getVideoUri() const { + return videoUri_; +} + +void CreateVideoCompressTaskRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +std::string CreateVideoCompressTaskRequest::getTargetSegment() const { + return targetSegment_; +} + +void CreateVideoCompressTaskRequest::setTargetSegment(const std::string &targetSegment) { + targetSegment_ = targetSegment; + setParameter(std::string("TargetSegment"), targetSegment); +} + diff --git a/imm/src/model/CreateVideoCompressTaskResult.cc b/imm/src/model/CreateVideoCompressTaskResult.cc new file mode 100644 index 000000000..928954e67 --- /dev/null +++ b/imm/src/model/CreateVideoCompressTaskResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateVideoCompressTaskResult::CreateVideoCompressTaskResult() : + ServiceResult() +{} + +CreateVideoCompressTaskResult::CreateVideoCompressTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVideoCompressTaskResult::~CreateVideoCompressTaskResult() +{} + +void CreateVideoCompressTaskResult::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 CreateVideoCompressTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateVideoCompressTaskResult::getTaskType()const +{ + return taskType_; +} + diff --git a/imm/src/model/CreateVideoModerationTaskRequest.cc b/imm/src/model/CreateVideoModerationTaskRequest.cc index eafe54d9d..0b0294ade 100644 --- a/imm/src/model/CreateVideoModerationTaskRequest.cc +++ b/imm/src/model/CreateVideoModerationTaskRequest.cc @@ -34,15 +34,6 @@ void CreateVideoModerationTaskRequest::setUserData(const std::string &userData) setParameter(std::string("UserData"), userData); } -std::string CreateVideoModerationTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateVideoModerationTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - std::string CreateVideoModerationTaskRequest::getProjectName() const { return projectName_; } @@ -61,6 +52,35 @@ void CreateVideoModerationTaskRequest::setNotifyTopicName(const std::string ¬ setParameter(std::string("NotifyTopicName"), notifyTopicName); } +std::string CreateVideoModerationTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateVideoModerationTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateVideoModerationTaskRequest::getSourceURI() const { + return sourceURI_; +} + +void CreateVideoModerationTaskRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + +std::vector CreateVideoModerationTaskRequest::getScenes() const { + return scenes_; +} + +void CreateVideoModerationTaskRequest::setScenes(const std::vector &scenes) { + scenes_ = scenes; + for(int dep1 = 0; dep1 != scenes.size(); dep1++) { + setParameter(std::string("Scenes") + "." + std::to_string(dep1 + 1), scenes[dep1]); + } +} + long CreateVideoModerationTaskRequest::getMaxFrames() const { return maxFrames_; } @@ -70,6 +90,15 @@ void CreateVideoModerationTaskRequest::setMaxFrames(long maxFrames) { setParameter(std::string("MaxFrames"), std::to_string(maxFrames)); } +long CreateVideoModerationTaskRequest::getInterval() const { + return interval_; +} + +void CreateVideoModerationTaskRequest::setInterval(long interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); +} + CreateVideoModerationTaskRequest::CredentialConfig CreateVideoModerationTaskRequest::getCredentialConfig() const { return credentialConfig_; } @@ -105,32 +134,3 @@ void CreateVideoModerationTaskRequest::setTags(const std::map CreateVideoModerationTaskRequest::getScenes() const { - return scenes_; -} - -void CreateVideoModerationTaskRequest::setScenes(const std::vector &scenes) { - scenes_ = scenes; - for(int dep1 = 0; dep1 != scenes.size(); dep1++) { - setParameter(std::string("Scenes") + "." + std::to_string(dep1 + 1), scenes[dep1]); - } -} - -long CreateVideoModerationTaskRequest::getInterval() const { - return interval_; -} - -void CreateVideoModerationTaskRequest::setInterval(long interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); -} - diff --git a/imm/src/model/DecodeBlindWatermarkRequest.cc b/imm/src/model/DecodeBlindWatermarkRequest.cc new file mode 100644 index 000000000..24adce9e2 --- /dev/null +++ b/imm/src/model/DecodeBlindWatermarkRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DecodeBlindWatermarkRequest; + +DecodeBlindWatermarkRequest::DecodeBlindWatermarkRequest() + : RpcServiceRequest("imm", "2017-09-06", "DecodeBlindWatermark") { + setMethod(HttpRequest::Method::Post); +} + +DecodeBlindWatermarkRequest::~DecodeBlindWatermarkRequest() {} + +int DecodeBlindWatermarkRequest::getImageQuality() const { + return imageQuality_; +} + +void DecodeBlindWatermarkRequest::setImageQuality(int imageQuality) { + imageQuality_ = imageQuality; + setParameter(std::string("ImageQuality"), std::to_string(imageQuality)); +} + +std::string DecodeBlindWatermarkRequest::getProject() const { + return project_; +} + +void DecodeBlindWatermarkRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DecodeBlindWatermarkRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DecodeBlindWatermarkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DecodeBlindWatermarkRequest::getWatermarkType() const { + return watermarkType_; +} + +void DecodeBlindWatermarkRequest::setWatermarkType(const std::string &watermarkType) { + watermarkType_ = watermarkType; + setParameter(std::string("WatermarkType"), watermarkType); +} + +std::string DecodeBlindWatermarkRequest::getTargetUri() const { + return targetUri_; +} + +void DecodeBlindWatermarkRequest::setTargetUri(const std::string &targetUri) { + targetUri_ = targetUri; + setParameter(std::string("TargetUri"), targetUri); +} + +std::string DecodeBlindWatermarkRequest::getModel() const { + return model_; +} + +void DecodeBlindWatermarkRequest::setModel(const std::string &model) { + model_ = model; + setParameter(std::string("Model"), model); +} + +std::string DecodeBlindWatermarkRequest::getImageUri() const { + return imageUri_; +} + +void DecodeBlindWatermarkRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string DecodeBlindWatermarkRequest::getOriginalImageUri() const { + return originalImageUri_; +} + +void DecodeBlindWatermarkRequest::setOriginalImageUri(const std::string &originalImageUri) { + originalImageUri_ = originalImageUri; + setParameter(std::string("OriginalImageUri"), originalImageUri); +} + diff --git a/imm/src/model/DecodeBlindWatermarkResult.cc b/imm/src/model/DecodeBlindWatermarkResult.cc new file mode 100644 index 000000000..01a3b310c --- /dev/null +++ b/imm/src/model/DecodeBlindWatermarkResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DecodeBlindWatermarkResult::DecodeBlindWatermarkResult() : + ServiceResult() +{} + +DecodeBlindWatermarkResult::DecodeBlindWatermarkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DecodeBlindWatermarkResult::~DecodeBlindWatermarkResult() +{} + +void DecodeBlindWatermarkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TargetUri"].isNull()) + targetUri_ = value["TargetUri"].asString(); + +} + +std::string DecodeBlindWatermarkResult::getTargetUri()const +{ + return targetUri_; +} + diff --git a/imm/src/model/DeleteBindingRequest.cc b/imm/src/model/DeleteBindingRequest.cc index 6c82a211f..c7da38695 100644 --- a/imm/src/model/DeleteBindingRequest.cc +++ b/imm/src/model/DeleteBindingRequest.cc @@ -25,15 +25,6 @@ DeleteBindingRequest::DeleteBindingRequest() DeleteBindingRequest::~DeleteBindingRequest() {} -std::string DeleteBindingRequest::getDatasetName() const { - return datasetName_; -} - -void DeleteBindingRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string DeleteBindingRequest::getProjectName() const { return projectName_; } @@ -43,15 +34,6 @@ void DeleteBindingRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } -std::string DeleteBindingRequest::getURI() const { - return uRI_; -} - -void DeleteBindingRequest::setURI(const std::string &uRI) { - uRI_ = uRI; - setParameter(std::string("URI"), uRI); -} - bool DeleteBindingRequest::getCleanup() const { return cleanup_; } @@ -61,3 +43,21 @@ void DeleteBindingRequest::setCleanup(bool cleanup) { setParameter(std::string("Cleanup"), cleanup ? "true" : "false"); } +std::string DeleteBindingRequest::getDatasetName() const { + return datasetName_; +} + +void DeleteBindingRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string DeleteBindingRequest::getURI() const { + return uRI_; +} + +void DeleteBindingRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/DeleteDatasetRequest.cc b/imm/src/model/DeleteDatasetRequest.cc index 642ccd907..a32a9c10a 100644 --- a/imm/src/model/DeleteDatasetRequest.cc +++ b/imm/src/model/DeleteDatasetRequest.cc @@ -25,15 +25,6 @@ DeleteDatasetRequest::DeleteDatasetRequest() DeleteDatasetRequest::~DeleteDatasetRequest() {} -std::string DeleteDatasetRequest::getDatasetName() const { - return datasetName_; -} - -void DeleteDatasetRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string DeleteDatasetRequest::getProjectName() const { return projectName_; } @@ -43,3 +34,12 @@ void DeleteDatasetRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DeleteDatasetRequest::getDatasetName() const { + return datasetName_; +} + +void DeleteDatasetRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + diff --git a/imm/src/model/DeleteFileMetaRequest.cc b/imm/src/model/DeleteFileMetaRequest.cc index 326ee4303..b15c5f253 100644 --- a/imm/src/model/DeleteFileMetaRequest.cc +++ b/imm/src/model/DeleteFileMetaRequest.cc @@ -25,15 +25,6 @@ DeleteFileMetaRequest::DeleteFileMetaRequest() DeleteFileMetaRequest::~DeleteFileMetaRequest() {} -std::string DeleteFileMetaRequest::getDatasetName() const { - return datasetName_; -} - -void DeleteFileMetaRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string DeleteFileMetaRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void DeleteFileMetaRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DeleteFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void DeleteFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string DeleteFileMetaRequest::getURI() const { return uRI_; } diff --git a/imm/src/model/DeleteImageRequest.cc b/imm/src/model/DeleteImageRequest.cc new file mode 100644 index 000000000..a37cc28a7 --- /dev/null +++ b/imm/src/model/DeleteImageRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DeleteImageRequest; + +DeleteImageRequest::DeleteImageRequest() + : RpcServiceRequest("imm", "2017-09-06", "DeleteImage") { + setMethod(HttpRequest::Method::Post); +} + +DeleteImageRequest::~DeleteImageRequest() {} + +std::string DeleteImageRequest::getProject() const { + return project_; +} + +void DeleteImageRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteImageRequest::getImageUri() const { + return imageUri_; +} + +void DeleteImageRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string DeleteImageRequest::getSetId() const { + return setId_; +} + +void DeleteImageRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/DeleteImageResult.cc b/imm/src/model/DeleteImageResult.cc new file mode 100644 index 000000000..5231f1d6e --- /dev/null +++ b/imm/src/model/DeleteImageResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteImageResult::DeleteImageResult() : + ServiceResult() +{} + +DeleteImageResult::DeleteImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageResult::~DeleteImageResult() +{} + +void DeleteImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + +} + +std::string DeleteImageResult::getSetId()const +{ + return setId_; +} + +std::string DeleteImageResult::getImageUri()const +{ + return imageUri_; +} + diff --git a/imm/src/model/DeleteOfficeConversionTaskRequest.cc b/imm/src/model/DeleteOfficeConversionTaskRequest.cc new file mode 100644 index 000000000..2cc1c7d41 --- /dev/null +++ b/imm/src/model/DeleteOfficeConversionTaskRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DeleteOfficeConversionTaskRequest; + +DeleteOfficeConversionTaskRequest::DeleteOfficeConversionTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "DeleteOfficeConversionTask") { + setMethod(HttpRequest::Method::Post); +} + +DeleteOfficeConversionTaskRequest::~DeleteOfficeConversionTaskRequest() {} + +std::string DeleteOfficeConversionTaskRequest::getProject() const { + return project_; +} + +void DeleteOfficeConversionTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteOfficeConversionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteOfficeConversionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteOfficeConversionTaskRequest::getTaskId() const { + return taskId_; +} + +void DeleteOfficeConversionTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/imm/src/model/DeleteOfficeConversionTaskResult.cc b/imm/src/model/DeleteOfficeConversionTaskResult.cc new file mode 100644 index 000000000..3ba5a0500 --- /dev/null +++ b/imm/src/model/DeleteOfficeConversionTaskResult.cc @@ -0,0 +1,44 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult() : + ServiceResult() +{} + +DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteOfficeConversionTaskResult::~DeleteOfficeConversionTaskResult() +{} + +void DeleteOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DeleteProjectRequest.cc b/imm/src/model/DeleteProjectRequest.cc index 82e393e4f..12a79612a 100644 --- a/imm/src/model/DeleteProjectRequest.cc +++ b/imm/src/model/DeleteProjectRequest.cc @@ -19,18 +19,27 @@ using AlibabaCloud::Imm::Model::DeleteProjectRequest; DeleteProjectRequest::DeleteProjectRequest() - : RpcServiceRequest("imm", "2020-09-30", "DeleteProject") { + : RpcServiceRequest("imm", "2017-09-06", "DeleteProject") { setMethod(HttpRequest::Method::Post); } DeleteProjectRequest::~DeleteProjectRequest() {} -std::string DeleteProjectRequest::getProjectName() const { - return projectName_; +std::string DeleteProjectRequest::getProject() const { + return project_; } -void DeleteProjectRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void DeleteProjectRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteProjectRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteProjectRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/imm/src/model/DeleteSetRequest.cc b/imm/src/model/DeleteSetRequest.cc new file mode 100644 index 000000000..7c1005578 --- /dev/null +++ b/imm/src/model/DeleteSetRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DeleteSetRequest; + +DeleteSetRequest::DeleteSetRequest() + : RpcServiceRequest("imm", "2017-09-06", "DeleteSet") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSetRequest::~DeleteSetRequest() {} + +std::string DeleteSetRequest::getProject() const { + return project_; +} + +void DeleteSetRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteSetRequest::getSetId() const { + return setId_; +} + +void DeleteSetRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/DeleteSetResult.cc b/imm/src/model/DeleteSetResult.cc new file mode 100644 index 000000000..70683228a --- /dev/null +++ b/imm/src/model/DeleteSetResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteSetResult::DeleteSetResult() : + ServiceResult() +{} + +DeleteSetResult::DeleteSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSetResult::~DeleteSetResult() +{} + +void DeleteSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string DeleteSetResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/DeleteStoryRequest.cc b/imm/src/model/DeleteStoryRequest.cc index c0e2a0c70..c8093b3e3 100644 --- a/imm/src/model/DeleteStoryRequest.cc +++ b/imm/src/model/DeleteStoryRequest.cc @@ -25,15 +25,6 @@ DeleteStoryRequest::DeleteStoryRequest() DeleteStoryRequest::~DeleteStoryRequest() {} -std::string DeleteStoryRequest::getDatasetName() const { - return datasetName_; -} - -void DeleteStoryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string DeleteStoryRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void DeleteStoryRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DeleteStoryRequest::getDatasetName() const { + return datasetName_; +} + +void DeleteStoryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string DeleteStoryRequest::getObjectId() const { return objectId_; } diff --git a/imm/src/model/DeleteVideoRequest.cc b/imm/src/model/DeleteVideoRequest.cc new file mode 100644 index 000000000..1fbb1a8bb --- /dev/null +++ b/imm/src/model/DeleteVideoRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DeleteVideoRequest; + +DeleteVideoRequest::DeleteVideoRequest() + : RpcServiceRequest("imm", "2017-09-06", "DeleteVideo") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVideoRequest::~DeleteVideoRequest() {} + +std::string DeleteVideoRequest::getProject() const { + return project_; +} + +void DeleteVideoRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteVideoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteVideoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool DeleteVideoRequest::getResources() const { + return resources_; +} + +void DeleteVideoRequest::setResources(bool resources) { + resources_ = resources; + setParameter(std::string("Resources"), resources ? "true" : "false"); +} + +std::string DeleteVideoRequest::getVideoUri() const { + return videoUri_; +} + +void DeleteVideoRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +std::string DeleteVideoRequest::getSetId() const { + return setId_; +} + +void DeleteVideoRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/DeleteVideoResult.cc b/imm/src/model/DeleteVideoResult.cc new file mode 100644 index 000000000..8df9989df --- /dev/null +++ b/imm/src/model/DeleteVideoResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteVideoResult::DeleteVideoResult() : + ServiceResult() +{} + +DeleteVideoResult::DeleteVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVideoResult::~DeleteVideoResult() +{} + +void DeleteVideoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string DeleteVideoResult::getVideoUri()const +{ + return videoUri_; +} + +std::string DeleteVideoResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/DeleteVideoTaskRequest.cc b/imm/src/model/DeleteVideoTaskRequest.cc new file mode 100644 index 000000000..da1ec180a --- /dev/null +++ b/imm/src/model/DeleteVideoTaskRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DeleteVideoTaskRequest; + +DeleteVideoTaskRequest::DeleteVideoTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "DeleteVideoTask") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVideoTaskRequest::~DeleteVideoTaskRequest() {} + +std::string DeleteVideoTaskRequest::getProject() const { + return project_; +} + +void DeleteVideoTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DeleteVideoTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteVideoTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteVideoTaskRequest::getTaskId() const { + return taskId_; +} + +void DeleteVideoTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string DeleteVideoTaskRequest::getTaskType() const { + return taskType_; +} + +void DeleteVideoTaskRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + diff --git a/imm/src/model/DeleteVideoTaskResult.cc b/imm/src/model/DeleteVideoTaskResult.cc new file mode 100644 index 000000000..ba2622e4c --- /dev/null +++ b/imm/src/model/DeleteVideoTaskResult.cc @@ -0,0 +1,44 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DeleteVideoTaskResult::DeleteVideoTaskResult() : + ServiceResult() +{} + +DeleteVideoTaskResult::DeleteVideoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVideoTaskResult::~DeleteVideoTaskResult() +{} + +void DeleteVideoTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/imm/src/model/DetectImageBodiesRequest.cc b/imm/src/model/DetectImageBodiesRequest.cc index 57db5ab47..db001abec 100644 --- a/imm/src/model/DetectImageBodiesRequest.cc +++ b/imm/src/model/DetectImageBodiesRequest.cc @@ -19,51 +19,36 @@ using AlibabaCloud::Imm::Model::DetectImageBodiesRequest; DetectImageBodiesRequest::DetectImageBodiesRequest() - : RpcServiceRequest("imm", "2020-09-30", "DetectImageBodies") { + : RpcServiceRequest("imm", "2017-09-06", "DetectImageBodies") { setMethod(HttpRequest::Method::Post); } DetectImageBodiesRequest::~DetectImageBodiesRequest() {} -std::string DetectImageBodiesRequest::getProjectName() const { - return projectName_; +std::string DetectImageBodiesRequest::getProject() const { + return project_; } -void DetectImageBodiesRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void DetectImageBodiesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -DetectImageBodiesRequest::CredentialConfig DetectImageBodiesRequest::getCredentialConfig() const { - return credentialConfig_; +std::string DetectImageBodiesRequest::getAccessKeyId() const { + return accessKeyId_; } -void DetectImageBodiesRequest::setCredentialConfig(const DetectImageBodiesRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); +void DetectImageBodiesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DetectImageBodiesRequest::getSourceURI() const { - return sourceURI_; +std::string DetectImageBodiesRequest::getImageUri() const { + return imageUri_; } -void DetectImageBodiesRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - -float DetectImageBodiesRequest::getSensitivity() const { - return sensitivity_; -} - -void DetectImageBodiesRequest::setSensitivity(float sensitivity) { - sensitivity_ = sensitivity; - setParameter(std::string("Sensitivity"), std::to_string(sensitivity)); +void DetectImageBodiesRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); } diff --git a/imm/src/model/DetectImageBodiesResult.cc b/imm/src/model/DetectImageBodiesResult.cc index 5a7a5895e..d38534314 100644 --- a/imm/src/model/DetectImageBodiesResult.cc +++ b/imm/src/model/DetectImageBodiesResult.cc @@ -43,19 +43,21 @@ void DetectImageBodiesResult::parse(const std::string &payload) for (auto valueBodiesBodiesItem : allBodiesNode) { BodiesItem bodiesObject; - if(!valueBodiesBodiesItem["Confidence"].isNull()) - bodiesObject.confidence = std::stof(valueBodiesBodiesItem["Confidence"].asString()); - auto boundaryNode = value["Boundary"]; - if(!boundaryNode["Width"].isNull()) - bodiesObject.boundary.width = std::stol(boundaryNode["Width"].asString()); - if(!boundaryNode["Height"].isNull()) - bodiesObject.boundary.height = std::stol(boundaryNode["Height"].asString()); - if(!boundaryNode["Left"].isNull()) - bodiesObject.boundary.left = std::stol(boundaryNode["Left"].asString()); - if(!boundaryNode["Top"].isNull()) - bodiesObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + if(!valueBodiesBodiesItem["BodyConfidence"].isNull()) + bodiesObject.bodyConfidence = std::stof(valueBodiesBodiesItem["BodyConfidence"].asString()); + auto bodyBoundaryNode = value["BodyBoundary"]; + if(!bodyBoundaryNode["Top"].isNull()) + bodiesObject.bodyBoundary.top = std::stoi(bodyBoundaryNode["Top"].asString()); + if(!bodyBoundaryNode["Width"].isNull()) + bodiesObject.bodyBoundary.width = std::stoi(bodyBoundaryNode["Width"].asString()); + if(!bodyBoundaryNode["Height"].isNull()) + bodiesObject.bodyBoundary.height = std::stoi(bodyBoundaryNode["Height"].asString()); + if(!bodyBoundaryNode["Left"].isNull()) + bodiesObject.bodyBoundary.left = std::stoi(bodyBoundaryNode["Left"].asString()); bodies_.push_back(bodiesObject); } + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); } @@ -64,3 +66,8 @@ std::vector DetectImageBodiesResult::getBod return bodies_; } +std::string DetectImageBodiesResult::getImageUri()const +{ + return imageUri_; +} + diff --git a/imm/src/model/DetectImageCodesRequest.cc b/imm/src/model/DetectImageCodesRequest.cc index 3575cde2e..95f24c2bb 100644 --- a/imm/src/model/DetectImageCodesRequest.cc +++ b/imm/src/model/DetectImageCodesRequest.cc @@ -34,6 +34,15 @@ void DetectImageCodesRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DetectImageCodesRequest::getSourceURI() const { + return sourceURI_; +} + +void DetectImageCodesRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + DetectImageCodesRequest::CredentialConfig DetectImageCodesRequest::getCredentialConfig() const { return credentialConfig_; } @@ -49,12 +58,3 @@ void DetectImageCodesRequest::setCredentialConfig(const DetectImageCodesRequest: setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); } -std::string DetectImageCodesRequest::getSourceURI() const { - return sourceURI_; -} - -void DetectImageCodesRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - diff --git a/imm/src/model/DetectImageCroppingRequest.cc b/imm/src/model/DetectImageCroppingRequest.cc index c11ec22d0..52098d161 100644 --- a/imm/src/model/DetectImageCroppingRequest.cc +++ b/imm/src/model/DetectImageCroppingRequest.cc @@ -25,15 +25,6 @@ DetectImageCroppingRequest::DetectImageCroppingRequest() DetectImageCroppingRequest::~DetectImageCroppingRequest() {} -std::string DetectImageCroppingRequest::getAspectRatios() const { - return aspectRatios_; -} - -void DetectImageCroppingRequest::setAspectRatios(const std::string &aspectRatios) { - aspectRatios_ = aspectRatios; - setParameter(std::string("AspectRatios"), aspectRatios); -} - std::string DetectImageCroppingRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,24 @@ void DetectImageCroppingRequest::setProjectName(const std::string &projectName) setParameter(std::string("ProjectName"), projectName); } +std::string DetectImageCroppingRequest::getSourceURI() const { + return sourceURI_; +} + +void DetectImageCroppingRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + +std::string DetectImageCroppingRequest::getAspectRatios() const { + return aspectRatios_; +} + +void DetectImageCroppingRequest::setAspectRatios(const std::string &aspectRatios) { + aspectRatios_ = aspectRatios; + setParameter(std::string("AspectRatios"), aspectRatios); +} + DetectImageCroppingRequest::CredentialConfig DetectImageCroppingRequest::getCredentialConfig() const { return credentialConfig_; } @@ -58,12 +67,3 @@ void DetectImageCroppingRequest::setCredentialConfig(const DetectImageCroppingRe setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); } -std::string DetectImageCroppingRequest::getSourceURI() const { - return sourceURI_; -} - -void DetectImageCroppingRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - diff --git a/imm/src/model/DetectImageFacesRequest.cc b/imm/src/model/DetectImageFacesRequest.cc index b91ad23f2..01cf925c8 100644 --- a/imm/src/model/DetectImageFacesRequest.cc +++ b/imm/src/model/DetectImageFacesRequest.cc @@ -19,42 +19,45 @@ using AlibabaCloud::Imm::Model::DetectImageFacesRequest; DetectImageFacesRequest::DetectImageFacesRequest() - : RpcServiceRequest("imm", "2020-09-30", "DetectImageFaces") { + : RpcServiceRequest("imm", "2017-09-06", "DetectImageFaces") { setMethod(HttpRequest::Method::Post); } DetectImageFacesRequest::~DetectImageFacesRequest() {} -std::string DetectImageFacesRequest::getProjectName() const { - return projectName_; +std::string DetectImageFacesRequest::getProject() const { + return project_; } -void DetectImageFacesRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void DetectImageFacesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -DetectImageFacesRequest::CredentialConfig DetectImageFacesRequest::getCredentialConfig() const { - return credentialConfig_; +std::string DetectImageFacesRequest::getAccessKeyId() const { + return accessKeyId_; } -void DetectImageFacesRequest::setCredentialConfig(const DetectImageFacesRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); +void DetectImageFacesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DetectImageFacesRequest::getSourceURI() const { - return sourceURI_; +std::string DetectImageFacesRequest::getRealUid() const { + return realUid_; } -void DetectImageFacesRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); +void DetectImageFacesRequest::setRealUid(const std::string &realUid) { + realUid_ = realUid; + setParameter(std::string("RealUid"), realUid); +} + +std::string DetectImageFacesRequest::getImageUri() const { + return imageUri_; +} + +void DetectImageFacesRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); } diff --git a/imm/src/model/DetectImageFacesResult.cc b/imm/src/model/DetectImageFacesResult.cc index 47473c680..4a4609a44 100644 --- a/imm/src/model/DetectImageFacesResult.cc +++ b/imm/src/model/DetectImageFacesResult.cc @@ -43,75 +43,84 @@ void DetectImageFacesResult::parse(const std::string &payload) for (auto valueFacesFacesItem : allFacesNode) { FacesItem facesObject; - if(!valueFacesFacesItem["FigureId"].isNull()) - facesObject.figureId = valueFacesFacesItem["FigureId"].asString(); - if(!valueFacesFacesItem["FigureConfidence"].isNull()) - facesObject.figureConfidence = std::stof(valueFacesFacesItem["FigureConfidence"].asString()); - if(!valueFacesFacesItem["FigureClusterId"].isNull()) - facesObject.figureClusterId = valueFacesFacesItem["FigureClusterId"].asString(); - if(!valueFacesFacesItem["FigureClusterConfidence"].isNull()) - facesObject.figureClusterConfidence = std::stof(valueFacesFacesItem["FigureClusterConfidence"].asString()); - if(!valueFacesFacesItem["FigureType"].isNull()) - facesObject.figureType = valueFacesFacesItem["FigureType"].asString(); - if(!valueFacesFacesItem["Age"].isNull()) - facesObject.age = std::stol(valueFacesFacesItem["Age"].asString()); - if(!valueFacesFacesItem["AgeSD"].isNull()) - facesObject.ageSD = std::stof(valueFacesFacesItem["AgeSD"].asString()); + if(!valueFacesFacesItem["AttractiveConfidence"].isNull()) + facesObject.attractiveConfidence = std::stof(valueFacesFacesItem["AttractiveConfidence"].asString()); if(!valueFacesFacesItem["Gender"].isNull()) facesObject.gender = valueFacesFacesItem["Gender"].asString(); if(!valueFacesFacesItem["GenderConfidence"].isNull()) facesObject.genderConfidence = std::stof(valueFacesFacesItem["GenderConfidence"].asString()); - if(!valueFacesFacesItem["Emotion"].isNull()) - facesObject.emotion = valueFacesFacesItem["Emotion"].asString(); - if(!valueFacesFacesItem["EmotionConfidence"].isNull()) - facesObject.emotionConfidence = std::stof(valueFacesFacesItem["EmotionConfidence"].asString()); + if(!valueFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueFacesFacesItem["FaceId"].asString(); if(!valueFacesFacesItem["FaceQuality"].isNull()) facesObject.faceQuality = std::stof(valueFacesFacesItem["FaceQuality"].asString()); - if(!valueFacesFacesItem["Mouth"].isNull()) - facesObject.mouth = valueFacesFacesItem["Mouth"].asString(); - if(!valueFacesFacesItem["MouthConfidence"].isNull()) - facesObject.mouthConfidence = std::stof(valueFacesFacesItem["MouthConfidence"].asString()); - if(!valueFacesFacesItem["Beard"].isNull()) - facesObject.beard = valueFacesFacesItem["Beard"].asString(); - if(!valueFacesFacesItem["BeardConfidence"].isNull()) - facesObject.beardConfidence = std::stof(valueFacesFacesItem["BeardConfidence"].asString()); - if(!valueFacesFacesItem["Hat"].isNull()) - facesObject.hat = valueFacesFacesItem["Hat"].asString(); - if(!valueFacesFacesItem["HatConfidence"].isNull()) - facesObject.hatConfidence = std::stof(valueFacesFacesItem["HatConfidence"].asString()); - if(!valueFacesFacesItem["Mask"].isNull()) - facesObject.mask = valueFacesFacesItem["Mask"].asString(); - if(!valueFacesFacesItem["MaskConfidence"].isNull()) - facesObject.maskConfidence = std::stof(valueFacesFacesItem["MaskConfidence"].asString()); - if(!valueFacesFacesItem["Glasses"].isNull()) - facesObject.glasses = valueFacesFacesItem["Glasses"].asString(); - if(!valueFacesFacesItem["GlassesConfidence"].isNull()) - facesObject.glassesConfidence = std::stof(valueFacesFacesItem["GlassesConfidence"].asString()); - if(!valueFacesFacesItem["Sharpness"].isNull()) - facesObject.sharpness = std::stof(valueFacesFacesItem["Sharpness"].asString()); + if(!valueFacesFacesItem["Emotion"].isNull()) + facesObject.emotion = valueFacesFacesItem["Emotion"].asString(); + if(!valueFacesFacesItem["Age"].isNull()) + facesObject.age = std::stoi(valueFacesFacesItem["Age"].asString()); + if(!valueFacesFacesItem["FaceConfidence"].isNull()) + facesObject.faceConfidence = std::stof(valueFacesFacesItem["FaceConfidence"].asString()); + if(!valueFacesFacesItem["EmotionConfidence"].isNull()) + facesObject.emotionConfidence = std::stof(valueFacesFacesItem["EmotionConfidence"].asString()); if(!valueFacesFacesItem["Attractive"].isNull()) facesObject.attractive = std::stof(valueFacesFacesItem["Attractive"].asString()); - auto boundaryNode = value["Boundary"]; - if(!boundaryNode["Width"].isNull()) - facesObject.boundary.width = std::stol(boundaryNode["Width"].asString()); - if(!boundaryNode["Height"].isNull()) - facesObject.boundary.height = std::stol(boundaryNode["Height"].asString()); - if(!boundaryNode["Left"].isNull()) - facesObject.boundary.left = std::stol(boundaryNode["Left"].asString()); - if(!boundaryNode["Top"].isNull()) - facesObject.boundary.top = std::stol(boundaryNode["Top"].asString()); - auto headPoseNode = value["HeadPose"]; + if(!valueFacesFacesItem["AgeConfidence"].isNull()) + facesObject.ageConfidence = std::stof(valueFacesFacesItem["AgeConfidence"].asString()); + auto faceAttributesNode = value["FaceAttributes"]; + if(!faceAttributesNode["GlassesConfidence"].isNull()) + facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString()); + if(!faceAttributesNode["Glasses"].isNull()) + facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString(); + if(!faceAttributesNode["Mask"].isNull()) + facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString(); + if(!faceAttributesNode["BeardConfidence"].isNull()) + facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString()); + if(!faceAttributesNode["MaskConfidence"].isNull()) + facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString()); + if(!faceAttributesNode["Beard"].isNull()) + facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString(); + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto headPoseNode = faceAttributesNode["HeadPose"]; if(!headPoseNode["Pitch"].isNull()) - facesObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); if(!headPoseNode["Roll"].isNull()) - facesObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); if(!headPoseNode["Yaw"].isNull()) - facesObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + auto emotionDetailsNode = value["EmotionDetails"]; + if(!emotionDetailsNode["HAPPY"].isNull()) + facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString()); + if(!emotionDetailsNode["CALM"].isNull()) + facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString()); + if(!emotionDetailsNode["SURPRISED"].isNull()) + facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString()); + if(!emotionDetailsNode["DISGUSTED"].isNull()) + facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString()); + if(!emotionDetailsNode["ANGRY"].isNull()) + facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString()); + if(!emotionDetailsNode["SAD"].isNull()) + facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString()); + if(!emotionDetailsNode["SCARED"].isNull()) + facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString()); faces_.push_back(facesObject); } + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); } +std::string DetectImageFacesResult::getImageUri()const +{ + return imageUri_; +} + std::vector DetectImageFacesResult::getFaces()const { return faces_; diff --git a/imm/src/model/DetectImageLabelsRequest.cc b/imm/src/model/DetectImageLabelsRequest.cc index c332e09c6..e02af0544 100644 --- a/imm/src/model/DetectImageLabelsRequest.cc +++ b/imm/src/model/DetectImageLabelsRequest.cc @@ -25,15 +25,6 @@ DetectImageLabelsRequest::DetectImageLabelsRequest() DetectImageLabelsRequest::~DetectImageLabelsRequest() {} -float DetectImageLabelsRequest::getThreshold() const { - return threshold_; -} - -void DetectImageLabelsRequest::setThreshold(float threshold) { - threshold_ = threshold; - setParameter(std::string("Threshold"), std::to_string(threshold)); -} - std::string DetectImageLabelsRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,24 @@ void DetectImageLabelsRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DetectImageLabelsRequest::getSourceURI() const { + return sourceURI_; +} + +void DetectImageLabelsRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + +float DetectImageLabelsRequest::getThreshold() const { + return threshold_; +} + +void DetectImageLabelsRequest::setThreshold(float threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); +} + DetectImageLabelsRequest::CredentialConfig DetectImageLabelsRequest::getCredentialConfig() const { return credentialConfig_; } @@ -58,12 +67,3 @@ void DetectImageLabelsRequest::setCredentialConfig(const DetectImageLabelsReques setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); } -std::string DetectImageLabelsRequest::getSourceURI() const { - return sourceURI_; -} - -void DetectImageLabelsRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - diff --git a/imm/src/model/DetectImageQRCodesRequest.cc b/imm/src/model/DetectImageQRCodesRequest.cc new file mode 100644 index 000000000..5dca3e76c --- /dev/null +++ b/imm/src/model/DetectImageQRCodesRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DetectImageQRCodesRequest; + +DetectImageQRCodesRequest::DetectImageQRCodesRequest() + : RpcServiceRequest("imm", "2017-09-06", "DetectImageQRCodes") { + setMethod(HttpRequest::Method::Post); +} + +DetectImageQRCodesRequest::~DetectImageQRCodesRequest() {} + +std::string DetectImageQRCodesRequest::getProject() const { + return project_; +} + +void DetectImageQRCodesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DetectImageQRCodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DetectImageQRCodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DetectImageQRCodesRequest::getImageUri() const { + return imageUri_; +} + +void DetectImageQRCodesRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + diff --git a/imm/src/model/DetectImageQRCodesResult.cc b/imm/src/model/DetectImageQRCodesResult.cc new file mode 100644 index 000000000..efa7d4815 --- /dev/null +++ b/imm/src/model/DetectImageQRCodesResult.cc @@ -0,0 +1,73 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageQRCodesResult::DetectImageQRCodesResult() : + ServiceResult() +{} + +DetectImageQRCodesResult::DetectImageQRCodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageQRCodesResult::~DetectImageQRCodesResult() +{} + +void DetectImageQRCodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQRCodesNode = value["QRCodes"]["QRCodesItem"]; + for (auto valueQRCodesQRCodesItem : allQRCodesNode) + { + QRCodesItem qRCodesObject; + if(!valueQRCodesQRCodesItem["Content"].isNull()) + qRCodesObject.content = valueQRCodesQRCodesItem["Content"].asString(); + auto qRCodeBoundaryNode = value["QRCodeBoundary"]; + if(!qRCodeBoundaryNode["Top"].isNull()) + qRCodesObject.qRCodeBoundary.top = std::stoi(qRCodeBoundaryNode["Top"].asString()); + if(!qRCodeBoundaryNode["Width"].isNull()) + qRCodesObject.qRCodeBoundary.width = std::stoi(qRCodeBoundaryNode["Width"].asString()); + if(!qRCodeBoundaryNode["Height"].isNull()) + qRCodesObject.qRCodeBoundary.height = std::stoi(qRCodeBoundaryNode["Height"].asString()); + if(!qRCodeBoundaryNode["Left"].isNull()) + qRCodesObject.qRCodeBoundary.left = std::stoi(qRCodeBoundaryNode["Left"].asString()); + qRCodes_.push_back(qRCodesObject); + } + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + +} + +std::string DetectImageQRCodesResult::getImageUri()const +{ + return imageUri_; +} + +std::vector DetectImageQRCodesResult::getQRCodes()const +{ + return qRCodes_; +} + diff --git a/imm/src/model/DetectImageScoreRequest.cc b/imm/src/model/DetectImageScoreRequest.cc index fdc496cd3..91bb4f402 100644 --- a/imm/src/model/DetectImageScoreRequest.cc +++ b/imm/src/model/DetectImageScoreRequest.cc @@ -34,6 +34,15 @@ void DetectImageScoreRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DetectImageScoreRequest::getSourceURI() const { + return sourceURI_; +} + +void DetectImageScoreRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + DetectImageScoreRequest::CredentialConfig DetectImageScoreRequest::getCredentialConfig() const { return credentialConfig_; } @@ -49,12 +58,3 @@ void DetectImageScoreRequest::setCredentialConfig(const DetectImageScoreRequest: setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); } -std::string DetectImageScoreRequest::getSourceURI() const { - return sourceURI_; -} - -void DetectImageScoreRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - diff --git a/imm/src/model/DetectImageTagsRequest.cc b/imm/src/model/DetectImageTagsRequest.cc new file mode 100644 index 000000000..5b2977876 --- /dev/null +++ b/imm/src/model/DetectImageTagsRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DetectImageTagsRequest; + +DetectImageTagsRequest::DetectImageTagsRequest() + : RpcServiceRequest("imm", "2017-09-06", "DetectImageTags") { + setMethod(HttpRequest::Method::Post); +} + +DetectImageTagsRequest::~DetectImageTagsRequest() {} + +std::string DetectImageTagsRequest::getProject() const { + return project_; +} + +void DetectImageTagsRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DetectImageTagsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DetectImageTagsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DetectImageTagsRequest::getRealUid() const { + return realUid_; +} + +void DetectImageTagsRequest::setRealUid(const std::string &realUid) { + realUid_ = realUid; + setParameter(std::string("RealUid"), realUid); +} + +std::string DetectImageTagsRequest::getImageUri() const { + return imageUri_; +} + +void DetectImageTagsRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + diff --git a/imm/src/model/DetectImageTagsResult.cc b/imm/src/model/DetectImageTagsResult.cc new file mode 100644 index 000000000..746b9828e --- /dev/null +++ b/imm/src/model/DetectImageTagsResult.cc @@ -0,0 +1,76 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageTagsResult::DetectImageTagsResult() : + ServiceResult() +{} + +DetectImageTagsResult::DetectImageTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageTagsResult::~DetectImageTagsResult() +{} + +void DetectImageTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["ParentTagEnName"].isNull()) + tagsObject.parentTagEnName = valueTagsTagsItem["ParentTagEnName"].asString(); + if(!valueTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueTagsTagsItem["TagName"].asString(); + if(!valueTagsTagsItem["TagConfidence"].isNull()) + tagsObject.tagConfidence = std::stof(valueTagsTagsItem["TagConfidence"].asString()); + if(!valueTagsTagsItem["CentricScore"].isNull()) + tagsObject.centricScore = std::stof(valueTagsTagsItem["CentricScore"].asString()); + if(!valueTagsTagsItem["TagEnName"].isNull()) + tagsObject.tagEnName = valueTagsTagsItem["TagEnName"].asString(); + if(!valueTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueTagsTagsItem["TagLevel"].asString()); + if(!valueTagsTagsItem["ParentTagName"].isNull()) + tagsObject.parentTagName = valueTagsTagsItem["ParentTagName"].asString(); + tags_.push_back(tagsObject); + } + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + +} + +std::string DetectImageTagsResult::getImageUri()const +{ + return imageUri_; +} + +std::vector DetectImageTagsResult::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/DetectQRCodesRequest.cc b/imm/src/model/DetectQRCodesRequest.cc new file mode 100644 index 000000000..d4068d14f --- /dev/null +++ b/imm/src/model/DetectQRCodesRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::DetectQRCodesRequest; + +DetectQRCodesRequest::DetectQRCodesRequest() + : RpcServiceRequest("imm", "2017-09-06", "DetectQRCodes") { + setMethod(HttpRequest::Method::Post); +} + +DetectQRCodesRequest::~DetectQRCodesRequest() {} + +std::string DetectQRCodesRequest::getProject() const { + return project_; +} + +void DetectQRCodesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string DetectQRCodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DetectQRCodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DetectQRCodesRequest::getSrcUris() const { + return srcUris_; +} + +void DetectQRCodesRequest::setSrcUris(const std::string &srcUris) { + srcUris_ = srcUris; + setParameter(std::string("SrcUris"), srcUris); +} + diff --git a/imm/src/model/DetectQRCodesResult.cc b/imm/src/model/DetectQRCodesResult.cc new file mode 100644 index 000000000..f72d69c2d --- /dev/null +++ b/imm/src/model/DetectQRCodesResult.cc @@ -0,0 +1,91 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectQRCodesResult::DetectQRCodesResult() : + ServiceResult() +{} + +DetectQRCodesResult::DetectQRCodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectQRCodesResult::~DetectQRCodesResult() +{} + +void DetectQRCodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSuccessDetailsNode = value["SuccessDetails"]["SuccessDetailsItem"]; + for (auto valueSuccessDetailsSuccessDetailsItem : allSuccessDetailsNode) + { + SuccessDetailsItem successDetailsObject; + if(!valueSuccessDetailsSuccessDetailsItem["SrcUri"].isNull()) + successDetailsObject.srcUri = valueSuccessDetailsSuccessDetailsItem["SrcUri"].asString(); + auto allQRCodesNode = valueSuccessDetailsSuccessDetailsItem["QRCodes"]["QRCodesItem"]; + for (auto valueSuccessDetailsSuccessDetailsItemQRCodesQRCodesItem : allQRCodesNode) + { + SuccessDetailsItem::QRCodesItem qRCodesObject; + if(!valueSuccessDetailsSuccessDetailsItemQRCodesQRCodesItem["Content"].isNull()) + qRCodesObject.content = valueSuccessDetailsSuccessDetailsItemQRCodesQRCodesItem["Content"].asString(); + auto qRCodesRectangleNode = value["QRCodesRectangle"]; + if(!qRCodesRectangleNode["Top"].isNull()) + qRCodesObject.qRCodesRectangle.top = qRCodesRectangleNode["Top"].asString(); + if(!qRCodesRectangleNode["Width"].isNull()) + qRCodesObject.qRCodesRectangle.width = qRCodesRectangleNode["Width"].asString(); + if(!qRCodesRectangleNode["Height"].isNull()) + qRCodesObject.qRCodesRectangle.height = qRCodesRectangleNode["Height"].asString(); + if(!qRCodesRectangleNode["Left"].isNull()) + qRCodesObject.qRCodesRectangle.left = qRCodesRectangleNode["Left"].asString(); + successDetailsObject.qRCodes.push_back(qRCodesObject); + } + successDetails_.push_back(successDetailsObject); + } + auto allFailDetailsNode = value["FailDetails"]["FailDetailsItem"]; + for (auto valueFailDetailsFailDetailsItem : allFailDetailsNode) + { + FailDetailsItem failDetailsObject; + if(!valueFailDetailsFailDetailsItem["ErrorMessage"].isNull()) + failDetailsObject.errorMessage = valueFailDetailsFailDetailsItem["ErrorMessage"].asString(); + if(!valueFailDetailsFailDetailsItem["SrcUri"].isNull()) + failDetailsObject.srcUri = valueFailDetailsFailDetailsItem["SrcUri"].asString(); + if(!valueFailDetailsFailDetailsItem["ErrorCode"].isNull()) + failDetailsObject.errorCode = valueFailDetailsFailDetailsItem["ErrorCode"].asString(); + failDetails_.push_back(failDetailsObject); + } + +} + +std::vector DetectQRCodesResult::getSuccessDetails()const +{ + return successDetails_; +} + +std::vector DetectQRCodesResult::getFailDetails()const +{ + return failDetails_; +} + diff --git a/imm/src/model/DetectTextAnomalyRequest.cc b/imm/src/model/DetectTextAnomalyRequest.cc index e46b9ee73..a908708d0 100644 --- a/imm/src/model/DetectTextAnomalyRequest.cc +++ b/imm/src/model/DetectTextAnomalyRequest.cc @@ -25,15 +25,6 @@ DetectTextAnomalyRequest::DetectTextAnomalyRequest() DetectTextAnomalyRequest::~DetectTextAnomalyRequest() {} -std::string DetectTextAnomalyRequest::getContent() const { - return content_; -} - -void DetectTextAnomalyRequest::setContent(const std::string &content) { - content_ = content; - setParameter(std::string("Content"), content); -} - std::string DetectTextAnomalyRequest::getProjectName() const { return projectName_; } @@ -43,3 +34,12 @@ void DetectTextAnomalyRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string DetectTextAnomalyRequest::getContent() const { + return content_; +} + +void DetectTextAnomalyRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + diff --git a/imm/src/model/EncodeBlindWatermarkRequest.cc b/imm/src/model/EncodeBlindWatermarkRequest.cc new file mode 100644 index 000000000..e0123dad5 --- /dev/null +++ b/imm/src/model/EncodeBlindWatermarkRequest.cc @@ -0,0 +1,117 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::EncodeBlindWatermarkRequest; + +EncodeBlindWatermarkRequest::EncodeBlindWatermarkRequest() + : RpcServiceRequest("imm", "2017-09-06", "EncodeBlindWatermark") { + setMethod(HttpRequest::Method::Post); +} + +EncodeBlindWatermarkRequest::~EncodeBlindWatermarkRequest() {} + +std::string EncodeBlindWatermarkRequest::getImageQuality() const { + return imageQuality_; +} + +void EncodeBlindWatermarkRequest::setImageQuality(const std::string &imageQuality) { + imageQuality_ = imageQuality; + setParameter(std::string("ImageQuality"), imageQuality); +} + +std::string EncodeBlindWatermarkRequest::getWatermarkUri() const { + return watermarkUri_; +} + +void EncodeBlindWatermarkRequest::setWatermarkUri(const std::string &watermarkUri) { + watermarkUri_ = watermarkUri; + setParameter(std::string("WatermarkUri"), watermarkUri); +} + +std::string EncodeBlindWatermarkRequest::getProject() const { + return project_; +} + +void EncodeBlindWatermarkRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string EncodeBlindWatermarkRequest::getContent() const { + return content_; +} + +void EncodeBlindWatermarkRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::string EncodeBlindWatermarkRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void EncodeBlindWatermarkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string EncodeBlindWatermarkRequest::getWatermarkType() const { + return watermarkType_; +} + +void EncodeBlindWatermarkRequest::setWatermarkType(const std::string &watermarkType) { + watermarkType_ = watermarkType; + setParameter(std::string("WatermarkType"), watermarkType); +} + +std::string EncodeBlindWatermarkRequest::getTargetUri() const { + return targetUri_; +} + +void EncodeBlindWatermarkRequest::setTargetUri(const std::string &targetUri) { + targetUri_ = targetUri; + setParameter(std::string("TargetUri"), targetUri); +} + +std::string EncodeBlindWatermarkRequest::getModel() const { + return model_; +} + +void EncodeBlindWatermarkRequest::setModel(const std::string &model) { + model_ = model; + setParameter(std::string("Model"), model); +} + +std::string EncodeBlindWatermarkRequest::getTargetImageType() const { + return targetImageType_; +} + +void EncodeBlindWatermarkRequest::setTargetImageType(const std::string &targetImageType) { + targetImageType_ = targetImageType; + setParameter(std::string("TargetImageType"), targetImageType); +} + +std::string EncodeBlindWatermarkRequest::getImageUri() const { + return imageUri_; +} + +void EncodeBlindWatermarkRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + diff --git a/imm/src/model/EncodeBlindWatermarkResult.cc b/imm/src/model/EncodeBlindWatermarkResult.cc new file mode 100644 index 000000000..09886220b --- /dev/null +++ b/imm/src/model/EncodeBlindWatermarkResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +EncodeBlindWatermarkResult::EncodeBlindWatermarkResult() : + ServiceResult() +{} + +EncodeBlindWatermarkResult::EncodeBlindWatermarkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EncodeBlindWatermarkResult::~EncodeBlindWatermarkResult() +{} + +void EncodeBlindWatermarkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Content"].isNull()) + content_ = value["Content"].asString(); + if(!value["TargetUri"].isNull()) + targetUri_ = value["TargetUri"].asString(); + +} + +std::string EncodeBlindWatermarkResult::getContent()const +{ + return content_; +} + +std::string EncodeBlindWatermarkResult::getTargetUri()const +{ + return targetUri_; +} + diff --git a/imm/src/model/FindImagesRequest.cc b/imm/src/model/FindImagesRequest.cc new file mode 100644 index 000000000..f879f1457 --- /dev/null +++ b/imm/src/model/FindImagesRequest.cc @@ -0,0 +1,297 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::FindImagesRequest; + +FindImagesRequest::FindImagesRequest() + : RpcServiceRequest("imm", "2017-09-06", "FindImages") { + setMethod(HttpRequest::Method::Post); +} + +FindImagesRequest::~FindImagesRequest() {} + +std::string FindImagesRequest::getRemarksArrayBIn() const { + return remarksArrayBIn_; +} + +void FindImagesRequest::setRemarksArrayBIn(const std::string &remarksArrayBIn) { + remarksArrayBIn_ = remarksArrayBIn; + setParameter(std::string("RemarksArrayBIn"), remarksArrayBIn); +} + +std::string FindImagesRequest::getProject() const { + return project_; +} + +void FindImagesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string FindImagesRequest::getExternalId() const { + return externalId_; +} + +void FindImagesRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string FindImagesRequest::getFacesModifyTimeRange() const { + return facesModifyTimeRange_; +} + +void FindImagesRequest::setFacesModifyTimeRange(const std::string &facesModifyTimeRange) { + facesModifyTimeRange_ = facesModifyTimeRange; + setParameter(std::string("FacesModifyTimeRange"), facesModifyTimeRange); +} + +std::string FindImagesRequest::getOCRContentsMatch() const { + return oCRContentsMatch_; +} + +void FindImagesRequest::setOCRContentsMatch(const std::string &oCRContentsMatch) { + oCRContentsMatch_ = oCRContentsMatch; + setParameter(std::string("OCRContentsMatch"), oCRContentsMatch); +} + +int FindImagesRequest::getLimit() const { + return limit_; +} + +void FindImagesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string FindImagesRequest::getRemarksDPrefix() const { + return remarksDPrefix_; +} + +void FindImagesRequest::setRemarksDPrefix(const std::string &remarksDPrefix) { + remarksDPrefix_ = remarksDPrefix; + setParameter(std::string("RemarksDPrefix"), remarksDPrefix); +} + +std::string FindImagesRequest::getSourceType() const { + return sourceType_; +} + +void FindImagesRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string FindImagesRequest::getOrder() const { + return order_; +} + +void FindImagesRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string FindImagesRequest::getGroupId() const { + return groupId_; +} + +void FindImagesRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string FindImagesRequest::getOrderBy() const { + return orderBy_; +} + +void FindImagesRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string FindImagesRequest::getTagNames() const { + return tagNames_; +} + +void FindImagesRequest::setTagNames(const std::string &tagNames) { + tagNames_ = tagNames; + setParameter(std::string("TagNames"), tagNames); +} + +std::string FindImagesRequest::getMarker() const { + return marker_; +} + +void FindImagesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string FindImagesRequest::getRemarksCPrefix() const { + return remarksCPrefix_; +} + +void FindImagesRequest::setRemarksCPrefix(const std::string &remarksCPrefix) { + remarksCPrefix_ = remarksCPrefix; + setParameter(std::string("RemarksCPrefix"), remarksCPrefix); +} + +std::string FindImagesRequest::getModifyTimeRange() const { + return modifyTimeRange_; +} + +void FindImagesRequest::setModifyTimeRange(const std::string &modifyTimeRange) { + modifyTimeRange_ = modifyTimeRange; + setParameter(std::string("ModifyTimeRange"), modifyTimeRange); +} + +std::string FindImagesRequest::getAddressLineContentsMatch() const { + return addressLineContentsMatch_; +} + +void FindImagesRequest::setAddressLineContentsMatch(const std::string &addressLineContentsMatch) { + addressLineContentsMatch_ = addressLineContentsMatch; + setParameter(std::string("AddressLineContentsMatch"), addressLineContentsMatch); +} + +std::string FindImagesRequest::getGender() const { + return gender_; +} + +void FindImagesRequest::setGender(const std::string &gender) { + gender_ = gender; + setParameter(std::string("Gender"), gender); +} + +std::string FindImagesRequest::getRemarksArrayAIn() const { + return remarksArrayAIn_; +} + +void FindImagesRequest::setRemarksArrayAIn(const std::string &remarksArrayAIn) { + remarksArrayAIn_ = remarksArrayAIn; + setParameter(std::string("RemarksArrayAIn"), remarksArrayAIn); +} + +std::string FindImagesRequest::getImageSizeRange() const { + return imageSizeRange_; +} + +void FindImagesRequest::setImageSizeRange(const std::string &imageSizeRange) { + imageSizeRange_ = imageSizeRange; + setParameter(std::string("ImageSizeRange"), imageSizeRange); +} + +std::string FindImagesRequest::getRemarksBPrefix() const { + return remarksBPrefix_; +} + +void FindImagesRequest::setRemarksBPrefix(const std::string &remarksBPrefix) { + remarksBPrefix_ = remarksBPrefix; + setParameter(std::string("RemarksBPrefix"), remarksBPrefix); +} + +std::string FindImagesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void FindImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string FindImagesRequest::getLocationBoundary() const { + return locationBoundary_; +} + +void FindImagesRequest::setLocationBoundary(const std::string &locationBoundary) { + locationBoundary_ = locationBoundary; + setParameter(std::string("LocationBoundary"), locationBoundary); +} + +std::string FindImagesRequest::getImageTimeRange() const { + return imageTimeRange_; +} + +void FindImagesRequest::setImageTimeRange(const std::string &imageTimeRange) { + imageTimeRange_ = imageTimeRange; + setParameter(std::string("ImageTimeRange"), imageTimeRange); +} + +std::string FindImagesRequest::getTagsModifyTimeRange() const { + return tagsModifyTimeRange_; +} + +void FindImagesRequest::setTagsModifyTimeRange(const std::string &tagsModifyTimeRange) { + tagsModifyTimeRange_ = tagsModifyTimeRange; + setParameter(std::string("TagsModifyTimeRange"), tagsModifyTimeRange); +} + +std::string FindImagesRequest::getAgeRange() const { + return ageRange_; +} + +void FindImagesRequest::setAgeRange(const std::string &ageRange) { + ageRange_ = ageRange; + setParameter(std::string("AgeRange"), ageRange); +} + +std::string FindImagesRequest::getRemarksAPrefix() const { + return remarksAPrefix_; +} + +void FindImagesRequest::setRemarksAPrefix(const std::string &remarksAPrefix) { + remarksAPrefix_ = remarksAPrefix; + setParameter(std::string("RemarksAPrefix"), remarksAPrefix); +} + +std::string FindImagesRequest::getSourceUriPrefix() const { + return sourceUriPrefix_; +} + +void FindImagesRequest::setSourceUriPrefix(const std::string &sourceUriPrefix) { + sourceUriPrefix_ = sourceUriPrefix; + setParameter(std::string("SourceUriPrefix"), sourceUriPrefix); +} + +std::string FindImagesRequest::getEmotion() const { + return emotion_; +} + +void FindImagesRequest::setEmotion(const std::string &emotion) { + emotion_ = emotion; + setParameter(std::string("Emotion"), emotion); +} + +std::string FindImagesRequest::getCreateTimeRange() const { + return createTimeRange_; +} + +void FindImagesRequest::setCreateTimeRange(const std::string &createTimeRange) { + createTimeRange_ = createTimeRange; + setParameter(std::string("CreateTimeRange"), createTimeRange); +} + +std::string FindImagesRequest::getSetId() const { + return setId_; +} + +void FindImagesRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/FindImagesResult.cc b/imm/src/model/FindImagesResult.cc new file mode 100644 index 000000000..e99c4a9be --- /dev/null +++ b/imm/src/model/FindImagesResult.cc @@ -0,0 +1,305 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +FindImagesResult::FindImagesResult() : + ServiceResult() +{} + +FindImagesResult::FindImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindImagesResult::~FindImagesResult() +{} + +void FindImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["ImagesItem"]; + for (auto valueImagesImagesItem : allImagesNode) + { + ImagesItem imagesObject; + if(!valueImagesImagesItem["CroppingSuggestionStatus"].isNull()) + imagesObject.croppingSuggestionStatus = valueImagesImagesItem["CroppingSuggestionStatus"].asString(); + if(!valueImagesImagesItem["ImageQualityModifyTime"].isNull()) + imagesObject.imageQualityModifyTime = valueImagesImagesItem["ImageQualityModifyTime"].asString(); + if(!valueImagesImagesItem["TagsFailReason"].isNull()) + imagesObject.tagsFailReason = valueImagesImagesItem["TagsFailReason"].asString(); + if(!valueImagesImagesItem["RemarksC"].isNull()) + imagesObject.remarksC = valueImagesImagesItem["RemarksC"].asString(); + if(!valueImagesImagesItem["CreateTime"].isNull()) + imagesObject.createTime = valueImagesImagesItem["CreateTime"].asString(); + if(!valueImagesImagesItem["SourceType"].isNull()) + imagesObject.sourceType = valueImagesImagesItem["SourceType"].asString(); + if(!valueImagesImagesItem["FacesFailReason"].isNull()) + imagesObject.facesFailReason = valueImagesImagesItem["FacesFailReason"].asString(); + if(!valueImagesImagesItem["FacesModifyTime"].isNull()) + imagesObject.facesModifyTime = valueImagesImagesItem["FacesModifyTime"].asString(); + if(!valueImagesImagesItem["ImageTime"].isNull()) + imagesObject.imageTime = valueImagesImagesItem["ImageTime"].asString(); + if(!valueImagesImagesItem["OCRModifyTime"].isNull()) + imagesObject.oCRModifyTime = valueImagesImagesItem["OCRModifyTime"].asString(); + if(!valueImagesImagesItem["AddressModifyTime"].isNull()) + imagesObject.addressModifyTime = valueImagesImagesItem["AddressModifyTime"].asString(); + if(!valueImagesImagesItem["ImageQualityFailReason"].isNull()) + imagesObject.imageQualityFailReason = valueImagesImagesItem["ImageQualityFailReason"].asString(); + if(!valueImagesImagesItem["FacesStatus"].isNull()) + imagesObject.facesStatus = valueImagesImagesItem["FacesStatus"].asString(); + if(!valueImagesImagesItem["ImageHeight"].isNull()) + imagesObject.imageHeight = std::stoi(valueImagesImagesItem["ImageHeight"].asString()); + if(!valueImagesImagesItem["RemarksArrayA"].isNull()) + imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString(); + if(!valueImagesImagesItem["ExternalId"].isNull()) + imagesObject.externalId = valueImagesImagesItem["ExternalId"].asString(); + if(!valueImagesImagesItem["SourceUri"].isNull()) + imagesObject.sourceUri = valueImagesImagesItem["SourceUri"].asString(); + if(!valueImagesImagesItem["ModifyTime"].isNull()) + imagesObject.modifyTime = valueImagesImagesItem["ModifyTime"].asString(); + if(!valueImagesImagesItem["FileSize"].isNull()) + imagesObject.fileSize = std::stoi(valueImagesImagesItem["FileSize"].asString()); + if(!valueImagesImagesItem["SourcePosition"].isNull()) + imagesObject.sourcePosition = valueImagesImagesItem["SourcePosition"].asString(); + if(!valueImagesImagesItem["ImageQualityStatus"].isNull()) + imagesObject.imageQualityStatus = valueImagesImagesItem["ImageQualityStatus"].asString(); + if(!valueImagesImagesItem["OCRFailReason"].isNull()) + imagesObject.oCRFailReason = valueImagesImagesItem["OCRFailReason"].asString(); + if(!valueImagesImagesItem["AddressFailReason"].isNull()) + imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString(); + if(!valueImagesImagesItem["CroppingSuggestionModifyTime"].isNull()) + imagesObject.croppingSuggestionModifyTime = valueImagesImagesItem["CroppingSuggestionModifyTime"].asString(); + if(!valueImagesImagesItem["ImageFormat"].isNull()) + imagesObject.imageFormat = valueImagesImagesItem["ImageFormat"].asString(); + if(!valueImagesImagesItem["ImageWidth"].isNull()) + imagesObject.imageWidth = std::stoi(valueImagesImagesItem["ImageWidth"].asString()); + if(!valueImagesImagesItem["RemarksArrayB"].isNull()) + imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString(); + if(!valueImagesImagesItem["Orientation"].isNull()) + imagesObject.orientation = valueImagesImagesItem["Orientation"].asString(); + if(!valueImagesImagesItem["RemarksD"].isNull()) + imagesObject.remarksD = valueImagesImagesItem["RemarksD"].asString(); + if(!valueImagesImagesItem["TagsStatus"].isNull()) + imagesObject.tagsStatus = valueImagesImagesItem["TagsStatus"].asString(); + if(!valueImagesImagesItem["CroppingSuggestionFailReason"].isNull()) + imagesObject.croppingSuggestionFailReason = valueImagesImagesItem["CroppingSuggestionFailReason"].asString(); + if(!valueImagesImagesItem["RemarksA"].isNull()) + imagesObject.remarksA = valueImagesImagesItem["RemarksA"].asString(); + if(!valueImagesImagesItem["ImageUri"].isNull()) + imagesObject.imageUri = valueImagesImagesItem["ImageUri"].asString(); + if(!valueImagesImagesItem["TagsModifyTime"].isNull()) + imagesObject.tagsModifyTime = valueImagesImagesItem["TagsModifyTime"].asString(); + if(!valueImagesImagesItem["OCRStatus"].isNull()) + imagesObject.oCRStatus = valueImagesImagesItem["OCRStatus"].asString(); + if(!valueImagesImagesItem["AddressStatus"].isNull()) + imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString(); + if(!valueImagesImagesItem["Exif"].isNull()) + imagesObject.exif = valueImagesImagesItem["Exif"].asString(); + if(!valueImagesImagesItem["Location"].isNull()) + imagesObject.location = valueImagesImagesItem["Location"].asString(); + if(!valueImagesImagesItem["RemarksB"].isNull()) + imagesObject.remarksB = valueImagesImagesItem["RemarksB"].asString(); + auto allTagsNode = valueImagesImagesItem["Tags"]["TagsItem"]; + for (auto valueImagesImagesItemTagsTagsItem : allTagsNode) + { + ImagesItem::TagsItem tagsObject; + if(!valueImagesImagesItemTagsTagsItem["TagConfidence"].isNull()) + tagsObject.tagConfidence = std::stof(valueImagesImagesItemTagsTagsItem["TagConfidence"].asString()); + if(!valueImagesImagesItemTagsTagsItem["CentricScore"].isNull()) + tagsObject.centricScore = std::stof(valueImagesImagesItemTagsTagsItem["CentricScore"].asString()); + if(!valueImagesImagesItemTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueImagesImagesItemTagsTagsItem["TagName"].asString(); + if(!valueImagesImagesItemTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueImagesImagesItemTagsTagsItem["TagLevel"].asString()); + if(!valueImagesImagesItemTagsTagsItem["ParentTagName"].isNull()) + tagsObject.parentTagName = valueImagesImagesItemTagsTagsItem["ParentTagName"].asString(); + imagesObject.tags.push_back(tagsObject); + } + auto allOCRNode = valueImagesImagesItem["OCR"]["OCRItem"]; + for (auto valueImagesImagesItemOCROCRItem : allOCRNode) + { + ImagesItem::OCRItem oCRObject; + if(!valueImagesImagesItemOCROCRItem["OCRConfidence"].isNull()) + oCRObject.oCRConfidence = std::stof(valueImagesImagesItemOCROCRItem["OCRConfidence"].asString()); + if(!valueImagesImagesItemOCROCRItem["OCRContents"].isNull()) + oCRObject.oCRContents = valueImagesImagesItemOCROCRItem["OCRContents"].asString(); + auto oCRBoundaryNode = value["OCRBoundary"]; + if(!oCRBoundaryNode["Top"].isNull()) + oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString()); + if(!oCRBoundaryNode["Width"].isNull()) + oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString()); + if(!oCRBoundaryNode["Height"].isNull()) + oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString()); + if(!oCRBoundaryNode["Left"].isNull()) + oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString()); + imagesObject.oCR.push_back(oCRObject); + } + auto allFacesNode = valueImagesImagesItem["Faces"]["FacesItem"]; + for (auto valueImagesImagesItemFacesFacesItem : allFacesNode) + { + ImagesItem::FacesItem facesObject; + if(!valueImagesImagesItemFacesFacesItem["Gender"].isNull()) + facesObject.gender = valueImagesImagesItemFacesFacesItem["Gender"].asString(); + if(!valueImagesImagesItemFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueImagesImagesItemFacesFacesItem["FaceId"].asString(); + if(!valueImagesImagesItemFacesFacesItem["GenderConfidence"].isNull()) + facesObject.genderConfidence = std::stof(valueImagesImagesItemFacesFacesItem["GenderConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["FaceQuality"].isNull()) + facesObject.faceQuality = std::stof(valueImagesImagesItemFacesFacesItem["FaceQuality"].asString()); + if(!valueImagesImagesItemFacesFacesItem["Emotion"].isNull()) + facesObject.emotion = valueImagesImagesItemFacesFacesItem["Emotion"].asString(); + if(!valueImagesImagesItemFacesFacesItem["Age"].isNull()) + facesObject.age = std::stoi(valueImagesImagesItemFacesFacesItem["Age"].asString()); + if(!valueImagesImagesItemFacesFacesItem["FaceConfidence"].isNull()) + facesObject.faceConfidence = std::stof(valueImagesImagesItemFacesFacesItem["FaceConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["EmotionConfidence"].isNull()) + facesObject.emotionConfidence = std::stof(valueImagesImagesItemFacesFacesItem["EmotionConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["Attractive"].isNull()) + facesObject.attractive = std::stof(valueImagesImagesItemFacesFacesItem["Attractive"].asString()); + if(!valueImagesImagesItemFacesFacesItem["GroupId"].isNull()) + facesObject.groupId = valueImagesImagesItemFacesFacesItem["GroupId"].asString(); + auto faceAttributesNode = value["FaceAttributes"]; + if(!faceAttributesNode["GlassesConfidence"].isNull()) + facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString()); + if(!faceAttributesNode["Glasses"].isNull()) + facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString(); + if(!faceAttributesNode["Mask"].isNull()) + facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString(); + if(!faceAttributesNode["BeardConfidence"].isNull()) + facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString()); + if(!faceAttributesNode["MaskConfidence"].isNull()) + facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString()); + if(!faceAttributesNode["Beard"].isNull()) + facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString(); + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto headPoseNode = faceAttributesNode["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + auto emotionDetailsNode = value["EmotionDetails"]; + if(!emotionDetailsNode["HAPPY"].isNull()) + facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString()); + if(!emotionDetailsNode["SURPRISED"].isNull()) + facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString()); + if(!emotionDetailsNode["CALM"].isNull()) + facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString()); + if(!emotionDetailsNode["DISGUSTED"].isNull()) + facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString()); + if(!emotionDetailsNode["ANGRY"].isNull()) + facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString()); + if(!emotionDetailsNode["SAD"].isNull()) + facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString()); + if(!emotionDetailsNode["SCARED"].isNull()) + facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString()); + imagesObject.faces.push_back(facesObject); + } + auto allCroppingSuggestionNode = valueImagesImagesItem["CroppingSuggestion"]["CroppingSuggestionItem"]; + for (auto valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem : allCroppingSuggestionNode) + { + ImagesItem::CroppingSuggestionItem croppingSuggestionObject; + if(!valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["Score"].isNull()) + croppingSuggestionObject.score = std::stof(valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["Score"].asString()); + if(!valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["AspectRatio"].isNull()) + croppingSuggestionObject.aspectRatio = valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["AspectRatio"].asString(); + auto croppingBoundaryNode = value["CroppingBoundary"]; + if(!croppingBoundaryNode["Top"].isNull()) + croppingSuggestionObject.croppingBoundary.top = std::stoi(croppingBoundaryNode["Top"].asString()); + if(!croppingBoundaryNode["Width"].isNull()) + croppingSuggestionObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString()); + if(!croppingBoundaryNode["Height"].isNull()) + croppingSuggestionObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString()); + if(!croppingBoundaryNode["Left"].isNull()) + croppingSuggestionObject.croppingBoundary.left = std::stoi(croppingBoundaryNode["Left"].asString()); + imagesObject.croppingSuggestion.push_back(croppingSuggestionObject); + } + auto addressNode = value["Address"]; + if(!addressNode["Township"].isNull()) + imagesObject.address.township = addressNode["Township"].asString(); + if(!addressNode["District"].isNull()) + imagesObject.address.district = addressNode["District"].asString(); + if(!addressNode["AddressLine"].isNull()) + imagesObject.address.addressLine = addressNode["AddressLine"].asString(); + if(!addressNode["Country"].isNull()) + imagesObject.address.country = addressNode["Country"].asString(); + if(!addressNode["City"].isNull()) + imagesObject.address.city = addressNode["City"].asString(); + if(!addressNode["Province"].isNull()) + imagesObject.address.province = addressNode["Province"].asString(); + auto imageQualityNode = value["ImageQuality"]; + if(!imageQualityNode["OverallScore"].isNull()) + imagesObject.imageQuality.overallScore = std::stof(imageQualityNode["OverallScore"].asString()); + if(!imageQualityNode["Color"].isNull()) + imagesObject.imageQuality.color = std::stof(imageQualityNode["Color"].asString()); + if(!imageQualityNode["ColorScore"].isNull()) + imagesObject.imageQuality.colorScore = std::stof(imageQualityNode["ColorScore"].asString()); + if(!imageQualityNode["ContrastScore"].isNull()) + imagesObject.imageQuality.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString()); + if(!imageQualityNode["Contrast"].isNull()) + imagesObject.imageQuality.contrast = std::stof(imageQualityNode["Contrast"].asString()); + if(!imageQualityNode["ExposureScore"].isNull()) + imagesObject.imageQuality.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString()); + if(!imageQualityNode["ClarityScore"].isNull()) + imagesObject.imageQuality.clarityScore = std::stof(imageQualityNode["ClarityScore"].asString()); + if(!imageQualityNode["Clarity"].isNull()) + imagesObject.imageQuality.clarity = std::stof(imageQualityNode["Clarity"].asString()); + if(!imageQualityNode["Exposure"].isNull()) + imagesObject.imageQuality.exposure = std::stof(imageQualityNode["Exposure"].asString()); + if(!imageQualityNode["CompositionScore"].isNull()) + imagesObject.imageQuality.compositionScore = std::stof(imageQualityNode["CompositionScore"].asString()); + images_.push_back(imagesObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::vector FindImagesResult::getImages()const +{ + return images_; +} + +std::string FindImagesResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string FindImagesResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/FindSimilarFacesRequest.cc b/imm/src/model/FindSimilarFacesRequest.cc new file mode 100644 index 000000000..248a92b1d --- /dev/null +++ b/imm/src/model/FindSimilarFacesRequest.cc @@ -0,0 +1,99 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::FindSimilarFacesRequest; + +FindSimilarFacesRequest::FindSimilarFacesRequest() + : RpcServiceRequest("imm", "2017-09-06", "FindSimilarFaces") { + setMethod(HttpRequest::Method::Post); +} + +FindSimilarFacesRequest::~FindSimilarFacesRequest() {} + +std::string FindSimilarFacesRequest::getProject() const { + return project_; +} + +void FindSimilarFacesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string FindSimilarFacesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void FindSimilarFacesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +float FindSimilarFacesRequest::getMinSimilarity() const { + return minSimilarity_; +} + +void FindSimilarFacesRequest::setMinSimilarity(float minSimilarity) { + minSimilarity_ = minSimilarity; + setParameter(std::string("MinSimilarity"), std::to_string(minSimilarity)); +} + +std::string FindSimilarFacesRequest::getResponseFormat() const { + return responseFormat_; +} + +void FindSimilarFacesRequest::setResponseFormat(const std::string &responseFormat) { + responseFormat_ = responseFormat; + setParameter(std::string("ResponseFormat"), responseFormat); +} + +int FindSimilarFacesRequest::getLimit() const { + return limit_; +} + +void FindSimilarFacesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string FindSimilarFacesRequest::getFaceId() const { + return faceId_; +} + +void FindSimilarFacesRequest::setFaceId(const std::string &faceId) { + faceId_ = faceId; + setParameter(std::string("FaceId"), faceId); +} + +std::string FindSimilarFacesRequest::getImageUri() const { + return imageUri_; +} + +void FindSimilarFacesRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string FindSimilarFacesRequest::getSetId() const { + return setId_; +} + +void FindSimilarFacesRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/FindSimilarFacesResult.cc b/imm/src/model/FindSimilarFacesResult.cc new file mode 100644 index 000000000..0d381cfb7 --- /dev/null +++ b/imm/src/model/FindSimilarFacesResult.cc @@ -0,0 +1,97 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +FindSimilarFacesResult::FindSimilarFacesResult() : + ServiceResult() +{} + +FindSimilarFacesResult::FindSimilarFacesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FindSimilarFacesResult::~FindSimilarFacesResult() +{} + +void FindSimilarFacesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFacesNode = value["Faces"]["FacesItem"]; + for (auto valueFacesFacesItem : allFacesNode) + { + FacesItem facesObject; + if(!valueFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueFacesFacesItem["FaceId"].asString(); + if(!valueFacesFacesItem["ImageUri"].isNull()) + facesObject.imageUri = valueFacesFacesItem["ImageUri"].asString(); + if(!valueFacesFacesItem["ExternalId"].isNull()) + facesObject.externalId = valueFacesFacesItem["ExternalId"].asString(); + if(!valueFacesFacesItem["Similarity"].isNull()) + facesObject.similarity = std::stof(valueFacesFacesItem["Similarity"].asString()); + auto allSimilarFacesNode = valueFacesFacesItem["SimilarFaces"]["SimilarFacesItem"]; + for (auto valueFacesFacesItemSimilarFacesSimilarFacesItem : allSimilarFacesNode) + { + FacesItem::SimilarFacesItem similarFacesObject; + if(!valueFacesFacesItemSimilarFacesSimilarFacesItem["FaceId"].isNull()) + similarFacesObject.faceId = valueFacesFacesItemSimilarFacesSimilarFacesItem["FaceId"].asString(); + if(!valueFacesFacesItemSimilarFacesSimilarFacesItem["ImageUri"].isNull()) + similarFacesObject.imageUri = valueFacesFacesItemSimilarFacesSimilarFacesItem["ImageUri"].asString(); + if(!valueFacesFacesItemSimilarFacesSimilarFacesItem["ExternalId"].isNull()) + similarFacesObject.externalId = valueFacesFacesItemSimilarFacesSimilarFacesItem["ExternalId"].asString(); + if(!valueFacesFacesItemSimilarFacesSimilarFacesItem["Similarity"].isNull()) + similarFacesObject.similarity = std::stof(valueFacesFacesItemSimilarFacesSimilarFacesItem["Similarity"].asString()); + auto faceAttributes1Node = value["FaceAttributes"]; + auto faceBoundaryNode = faceAttributes1Node["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + similarFacesObject.faceAttributes1.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + facesObject.similarFaces.push_back(similarFacesObject); + } + auto faceAttributesNode = value["FaceAttributes"]; + auto faceBoundary2Node = faceAttributesNode["FaceBoundary"]; + if(!faceBoundary2Node["Top"].isNull()) + facesObject.faceAttributes.faceBoundary2.top = std::stoi(faceBoundary2Node["Top"].asString()); + if(!faceBoundary2Node["Width"].isNull()) + facesObject.faceAttributes.faceBoundary2.width = std::stoi(faceBoundary2Node["Width"].asString()); + if(!faceBoundary2Node["Height"].isNull()) + facesObject.faceAttributes.faceBoundary2.height = std::stoi(faceBoundary2Node["Height"].asString()); + if(!faceBoundary2Node["Left"].isNull()) + facesObject.faceAttributes.faceBoundary2.left = std::stoi(faceBoundary2Node["Left"].asString()); + faces_.push_back(facesObject); + } + +} + +std::vector FindSimilarFacesResult::getFaces()const +{ + return faces_; +} + diff --git a/imm/src/model/FuzzyQueryRequest.cc b/imm/src/model/FuzzyQueryRequest.cc index dd98734fc..85eb9f28d 100644 --- a/imm/src/model/FuzzyQueryRequest.cc +++ b/imm/src/model/FuzzyQueryRequest.cc @@ -25,24 +25,6 @@ FuzzyQueryRequest::FuzzyQueryRequest() FuzzyQueryRequest::~FuzzyQueryRequest() {} -std::string FuzzyQueryRequest::getNextToken() const { - return nextToken_; -} - -void FuzzyQueryRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::string FuzzyQueryRequest::getDatasetName() const { - return datasetName_; -} - -void FuzzyQueryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string FuzzyQueryRequest::getProjectName() const { return projectName_; } @@ -52,6 +34,15 @@ void FuzzyQueryRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string FuzzyQueryRequest::getNextToken() const { + return nextToken_; +} + +void FuzzyQueryRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + std::string FuzzyQueryRequest::getQuery() const { return query_; } @@ -70,3 +61,12 @@ void FuzzyQueryRequest::setMaxResults(long maxResults) { setParameter(std::string("MaxResults"), std::to_string(maxResults)); } +std::string FuzzyQueryRequest::getDatasetName() const { + return datasetName_; +} + +void FuzzyQueryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + diff --git a/imm/src/model/GetBindingRequest.cc b/imm/src/model/GetBindingRequest.cc index b80eedf00..2a3d4ffb2 100644 --- a/imm/src/model/GetBindingRequest.cc +++ b/imm/src/model/GetBindingRequest.cc @@ -25,15 +25,6 @@ GetBindingRequest::GetBindingRequest() GetBindingRequest::~GetBindingRequest() {} -std::string GetBindingRequest::getDatasetName() const { - return datasetName_; -} - -void GetBindingRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string GetBindingRequest::getOwner() const { return owner_; } @@ -52,6 +43,15 @@ void GetBindingRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string GetBindingRequest::getDatasetName() const { + return datasetName_; +} + +void GetBindingRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string GetBindingRequest::getURI() const { return uRI_; } diff --git a/imm/src/model/GetDatasetRequest.cc b/imm/src/model/GetDatasetRequest.cc index f39a629cf..d830befd4 100644 --- a/imm/src/model/GetDatasetRequest.cc +++ b/imm/src/model/GetDatasetRequest.cc @@ -25,15 +25,6 @@ GetDatasetRequest::GetDatasetRequest() GetDatasetRequest::~GetDatasetRequest() {} -std::string GetDatasetRequest::getDatasetName() const { - return datasetName_; -} - -void GetDatasetRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string GetDatasetRequest::getProjectName() const { return projectName_; } @@ -52,3 +43,12 @@ void GetDatasetRequest::setWithStatistics(bool withStatistics) { setParameter(std::string("WithStatistics"), withStatistics ? "true" : "false"); } +std::string GetDatasetRequest::getDatasetName() const { + return datasetName_; +} + +void GetDatasetRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + diff --git a/imm/src/model/GetFigureClusterRequest.cc b/imm/src/model/GetFigureClusterRequest.cc index 68eca07e2..97ad0c4ce 100644 --- a/imm/src/model/GetFigureClusterRequest.cc +++ b/imm/src/model/GetFigureClusterRequest.cc @@ -25,15 +25,6 @@ GetFigureClusterRequest::GetFigureClusterRequest() GetFigureClusterRequest::~GetFigureClusterRequest() {} -std::string GetFigureClusterRequest::getDatasetName() const { - return datasetName_; -} - -void GetFigureClusterRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string GetFigureClusterRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void GetFigureClusterRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string GetFigureClusterRequest::getDatasetName() const { + return datasetName_; +} + +void GetFigureClusterRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string GetFigureClusterRequest::getObjectId() const { return objectId_; } diff --git a/imm/src/model/GetFileMetaRequest.cc b/imm/src/model/GetFileMetaRequest.cc index 634a5363d..9e459de8e 100644 --- a/imm/src/model/GetFileMetaRequest.cc +++ b/imm/src/model/GetFileMetaRequest.cc @@ -25,15 +25,6 @@ GetFileMetaRequest::GetFileMetaRequest() GetFileMetaRequest::~GetFileMetaRequest() {} -std::string GetFileMetaRequest::getDatasetName() const { - return datasetName_; -} - -void GetFileMetaRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string GetFileMetaRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void GetFileMetaRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string GetFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void GetFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string GetFileMetaRequest::getURI() const { return uRI_; } diff --git a/imm/src/model/GetImageCroppingSuggestionsRequest.cc b/imm/src/model/GetImageCroppingSuggestionsRequest.cc new file mode 100644 index 000000000..11ac05bff --- /dev/null +++ b/imm/src/model/GetImageCroppingSuggestionsRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetImageCroppingSuggestionsRequest; + +GetImageCroppingSuggestionsRequest::GetImageCroppingSuggestionsRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetImageCroppingSuggestions") { + setMethod(HttpRequest::Method::Post); +} + +GetImageCroppingSuggestionsRequest::~GetImageCroppingSuggestionsRequest() {} + +std::string GetImageCroppingSuggestionsRequest::getProject() const { + return project_; +} + +void GetImageCroppingSuggestionsRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetImageCroppingSuggestionsRequest::getAspectRatios() const { + return aspectRatios_; +} + +void GetImageCroppingSuggestionsRequest::setAspectRatios(const std::string &aspectRatios) { + aspectRatios_ = aspectRatios; + setParameter(std::string("AspectRatios"), aspectRatios); +} + +std::string GetImageCroppingSuggestionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetImageCroppingSuggestionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetImageCroppingSuggestionsRequest::getImageUri() const { + return imageUri_; +} + +void GetImageCroppingSuggestionsRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + diff --git a/imm/src/model/GetImageCroppingSuggestionsResult.cc b/imm/src/model/GetImageCroppingSuggestionsResult.cc new file mode 100644 index 000000000..96622c4be --- /dev/null +++ b/imm/src/model/GetImageCroppingSuggestionsResult.cc @@ -0,0 +1,75 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageCroppingSuggestionsResult::GetImageCroppingSuggestionsResult() : + ServiceResult() +{} + +GetImageCroppingSuggestionsResult::GetImageCroppingSuggestionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageCroppingSuggestionsResult::~GetImageCroppingSuggestionsResult() +{} + +void GetImageCroppingSuggestionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCroppingSuggestionsNode = value["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueCroppingSuggestionsCroppingSuggestionsItem["Score"].isNull()) + croppingSuggestionsObject.score = std::stof(valueCroppingSuggestionsCroppingSuggestionsItem["Score"].asString()); + if(!valueCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + auto croppingBoundaryNode = value["CroppingBoundary"]; + if(!croppingBoundaryNode["Top"].isNull()) + croppingSuggestionsObject.croppingBoundary.top = std::stoi(croppingBoundaryNode["Top"].asString()); + if(!croppingBoundaryNode["Width"].isNull()) + croppingSuggestionsObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString()); + if(!croppingBoundaryNode["Height"].isNull()) + croppingSuggestionsObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString()); + if(!croppingBoundaryNode["Left"].isNull()) + croppingSuggestionsObject.croppingBoundary.left = std::stoi(croppingBoundaryNode["Left"].asString()); + croppingSuggestions_.push_back(croppingSuggestionsObject); + } + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + +} + +std::string GetImageCroppingSuggestionsResult::getImageUri()const +{ + return imageUri_; +} + +std::vector GetImageCroppingSuggestionsResult::getCroppingSuggestions()const +{ + return croppingSuggestions_; +} + diff --git a/imm/src/model/GetImageQualityRequest.cc b/imm/src/model/GetImageQualityRequest.cc new file mode 100644 index 000000000..f31ec345c --- /dev/null +++ b/imm/src/model/GetImageQualityRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetImageQualityRequest; + +GetImageQualityRequest::GetImageQualityRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetImageQuality") { + setMethod(HttpRequest::Method::Post); +} + +GetImageQualityRequest::~GetImageQualityRequest() {} + +std::string GetImageQualityRequest::getProject() const { + return project_; +} + +void GetImageQualityRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetImageQualityRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetImageQualityRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetImageQualityRequest::getImageUri() const { + return imageUri_; +} + +void GetImageQualityRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + diff --git a/imm/src/model/GetImageQualityResult.cc b/imm/src/model/GetImageQualityResult.cc new file mode 100644 index 000000000..238a6d657 --- /dev/null +++ b/imm/src/model/GetImageQualityResult.cc @@ -0,0 +1,77 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageQualityResult::GetImageQualityResult() : + ServiceResult() +{} + +GetImageQualityResult::GetImageQualityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageQualityResult::~GetImageQualityResult() +{} + +void GetImageQualityResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto imageQualityNode = value["ImageQuality"]; + if(!imageQualityNode["OverallScore"].isNull()) + imageQuality_.overallScore = std::stof(imageQualityNode["OverallScore"].asString()); + if(!imageQualityNode["Color"].isNull()) + imageQuality_.color = std::stof(imageQualityNode["Color"].asString()); + if(!imageQualityNode["ColorScore"].isNull()) + imageQuality_.colorScore = std::stof(imageQualityNode["ColorScore"].asString()); + if(!imageQualityNode["ContrastScore"].isNull()) + imageQuality_.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString()); + if(!imageQualityNode["Contrast"].isNull()) + imageQuality_.contrast = std::stof(imageQualityNode["Contrast"].asString()); + if(!imageQualityNode["ExposureScore"].isNull()) + imageQuality_.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString()); + if(!imageQualityNode["ClarityScore"].isNull()) + imageQuality_.clarityScore = std::stof(imageQualityNode["ClarityScore"].asString()); + if(!imageQualityNode["Clarity"].isNull()) + imageQuality_.clarity = std::stof(imageQualityNode["Clarity"].asString()); + if(!imageQualityNode["Exposure"].isNull()) + imageQuality_.exposure = std::stof(imageQualityNode["Exposure"].asString()); + if(!imageQualityNode["CompositionScore"].isNull()) + imageQuality_.compositionScore = std::stof(imageQualityNode["CompositionScore"].asString()); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + +} + +GetImageQualityResult::ImageQuality GetImageQualityResult::getImageQuality()const +{ + return imageQuality_; +} + +std::string GetImageQualityResult::getImageUri()const +{ + return imageUri_; +} + diff --git a/imm/src/model/GetImageRequest.cc b/imm/src/model/GetImageRequest.cc new file mode 100644 index 000000000..8c90abf3b --- /dev/null +++ b/imm/src/model/GetImageRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetImageRequest; + +GetImageRequest::GetImageRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetImage") { + setMethod(HttpRequest::Method::Post); +} + +GetImageRequest::~GetImageRequest() {} + +std::string GetImageRequest::getProject() const { + return project_; +} + +void GetImageRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetImageRequest::getImageUri() const { + return imageUri_; +} + +void GetImageRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string GetImageRequest::getSetId() const { + return setId_; +} + +void GetImageRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/GetImageResult.cc b/imm/src/model/GetImageResult.cc new file mode 100644 index 000000000..c63f0a9e0 --- /dev/null +++ b/imm/src/model/GetImageResult.cc @@ -0,0 +1,512 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageResult::GetImageResult() : + ServiceResult() +{} + +GetImageResult::GetImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageResult::~GetImageResult() +{} + +void GetImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueTagsTagsItem["TagName"].asString(); + if(!valueTagsTagsItem["TagConfidence"].isNull()) + tagsObject.tagConfidence = std::stof(valueTagsTagsItem["TagConfidence"].asString()); + if(!valueTagsTagsItem["CentricScore"].isNull()) + tagsObject.centricScore = std::stof(valueTagsTagsItem["CentricScore"].asString()); + if(!valueTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueTagsTagsItem["TagLevel"].asString()); + if(!valueTagsTagsItem["ParentTagName"].isNull()) + tagsObject.parentTagName = valueTagsTagsItem["ParentTagName"].asString(); + tags_.push_back(tagsObject); + } + auto allFacesNode = value["Faces"]["FacesItem"]; + for (auto valueFacesFacesItem : allFacesNode) + { + FacesItem facesObject; + if(!valueFacesFacesItem["Gender"].isNull()) + facesObject.gender = valueFacesFacesItem["Gender"].asString(); + if(!valueFacesFacesItem["GenderConfidence"].isNull()) + facesObject.genderConfidence = std::stof(valueFacesFacesItem["GenderConfidence"].asString()); + if(!valueFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueFacesFacesItem["FaceId"].asString(); + if(!valueFacesFacesItem["FaceQuality"].isNull()) + facesObject.faceQuality = std::stof(valueFacesFacesItem["FaceQuality"].asString()); + if(!valueFacesFacesItem["Emotion"].isNull()) + facesObject.emotion = valueFacesFacesItem["Emotion"].asString(); + if(!valueFacesFacesItem["Age"].isNull()) + facesObject.age = valueFacesFacesItem["Age"].asString(); + if(!valueFacesFacesItem["FaceConfidence"].isNull()) + facesObject.faceConfidence = std::stof(valueFacesFacesItem["FaceConfidence"].asString()); + if(!valueFacesFacesItem["EmotionConfidence"].isNull()) + facesObject.emotionConfidence = std::stof(valueFacesFacesItem["EmotionConfidence"].asString()); + if(!valueFacesFacesItem["Attractive"].isNull()) + facesObject.attractive = std::stof(valueFacesFacesItem["Attractive"].asString()); + if(!valueFacesFacesItem["GroupId"].isNull()) + facesObject.groupId = valueFacesFacesItem["GroupId"].asString(); + auto faceAttributesNode = value["FaceAttributes"]; + if(!faceAttributesNode["GlassesConfidence"].isNull()) + facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString()); + if(!faceAttributesNode["Glasses"].isNull()) + facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString(); + if(!faceAttributesNode["Mask"].isNull()) + facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString(); + if(!faceAttributesNode["BeardConfidence"].isNull()) + facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString()); + if(!faceAttributesNode["MaskConfidence"].isNull()) + facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString()); + if(!faceAttributesNode["Beard"].isNull()) + facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString(); + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto headPoseNode = faceAttributesNode["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + auto emotionDetailsNode = value["EmotionDetails"]; + if(!emotionDetailsNode["HAPPY"].isNull()) + facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString()); + if(!emotionDetailsNode["CALM"].isNull()) + facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString()); + if(!emotionDetailsNode["SURPRISED"].isNull()) + facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString()); + if(!emotionDetailsNode["DISGUSTED"].isNull()) + facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString()); + if(!emotionDetailsNode["ANGRY"].isNull()) + facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString()); + if(!emotionDetailsNode["SAD"].isNull()) + facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString()); + if(!emotionDetailsNode["SCARED"].isNull()) + facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString()); + faces_.push_back(facesObject); + } + auto allCroppingSuggestionNode = value["CroppingSuggestion"]["CroppingSuggestionItem"]; + for (auto valueCroppingSuggestionCroppingSuggestionItem : allCroppingSuggestionNode) + { + CroppingSuggestionItem croppingSuggestionObject; + if(!valueCroppingSuggestionCroppingSuggestionItem["Score"].isNull()) + croppingSuggestionObject.score = std::stof(valueCroppingSuggestionCroppingSuggestionItem["Score"].asString()); + if(!valueCroppingSuggestionCroppingSuggestionItem["AspectRatio"].isNull()) + croppingSuggestionObject.aspectRatio = valueCroppingSuggestionCroppingSuggestionItem["AspectRatio"].asString(); + auto croppingBoundaryNode = value["CroppingBoundary"]; + if(!croppingBoundaryNode["Top"].isNull()) + croppingSuggestionObject.croppingBoundary.top = std::stoi(croppingBoundaryNode["Top"].asString()); + if(!croppingBoundaryNode["Width"].isNull()) + croppingSuggestionObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString()); + if(!croppingBoundaryNode["Height"].isNull()) + croppingSuggestionObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString()); + if(!croppingBoundaryNode["Left"].isNull()) + croppingSuggestionObject.croppingBoundary.left = std::stoi(croppingBoundaryNode["Left"].asString()); + croppingSuggestion_.push_back(croppingSuggestionObject); + } + auto allOCRNode = value["OCR"]["OCRItem"]; + for (auto valueOCROCRItem : allOCRNode) + { + OCRItem oCRObject; + if(!valueOCROCRItem["OCRConfidence"].isNull()) + oCRObject.oCRConfidence = std::stof(valueOCROCRItem["OCRConfidence"].asString()); + if(!valueOCROCRItem["OCRContents"].isNull()) + oCRObject.oCRContents = valueOCROCRItem["OCRContents"].asString(); + auto oCRBoundaryNode = value["OCRBoundary"]; + if(!oCRBoundaryNode["Top"].isNull()) + oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString()); + if(!oCRBoundaryNode["Width"].isNull()) + oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString()); + if(!oCRBoundaryNode["Height"].isNull()) + oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString()); + if(!oCRBoundaryNode["Left"].isNull()) + oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString()); + oCR_.push_back(oCRObject); + } + auto imageQualityNode = value["ImageQuality"]; + if(!imageQualityNode["OverallScore"].isNull()) + imageQuality_.overallScore = std::stof(imageQualityNode["OverallScore"].asString()); + if(!imageQualityNode["Color"].isNull()) + imageQuality_.color = std::stof(imageQualityNode["Color"].asString()); + if(!imageQualityNode["ColorScore"].isNull()) + imageQuality_.colorScore = std::stof(imageQualityNode["ColorScore"].asString()); + if(!imageQualityNode["ContrastScore"].isNull()) + imageQuality_.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString()); + if(!imageQualityNode["Contrast"].isNull()) + imageQuality_.contrast = std::stof(imageQualityNode["Contrast"].asString()); + if(!imageQualityNode["ExposureScore"].isNull()) + imageQuality_.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString()); + if(!imageQualityNode["ClarityScore"].isNull()) + imageQuality_.clarityScore = std::stof(imageQualityNode["ClarityScore"].asString()); + if(!imageQualityNode["Clarity"].isNull()) + imageQuality_.clarity = std::stof(imageQualityNode["Clarity"].asString()); + if(!imageQualityNode["Exposure"].isNull()) + imageQuality_.exposure = std::stof(imageQualityNode["Exposure"].asString()); + if(!imageQualityNode["CompositionScore"].isNull()) + imageQuality_.compositionScore = std::stof(imageQualityNode["CompositionScore"].asString()); + auto addressNode = value["Address"]; + if(!addressNode["Township"].isNull()) + address_.township = addressNode["Township"].asString(); + if(!addressNode["District"].isNull()) + address_.district = addressNode["District"].asString(); + if(!addressNode["AddressLine"].isNull()) + address_.addressLine = addressNode["AddressLine"].asString(); + if(!addressNode["Country"].isNull()) + address_.country = addressNode["Country"].asString(); + if(!addressNode["City"].isNull()) + address_.city = addressNode["City"].asString(); + if(!addressNode["Province"].isNull()) + address_.province = addressNode["Province"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["SourceType"].isNull()) + sourceType_ = value["SourceType"].asString(); + if(!value["SourceUri"].isNull()) + sourceUri_ = value["SourceUri"].asString(); + if(!value["FacesFailReason"].isNull()) + facesFailReason_ = value["FacesFailReason"].asString(); + if(!value["CroppingSuggestionStatus"].isNull()) + croppingSuggestionStatus_ = value["CroppingSuggestionStatus"].asString(); + if(!value["CroppingSuggestionFailReason"].isNull()) + croppingSuggestionFailReason_ = value["CroppingSuggestionFailReason"].asString(); + if(!value["AddressFailReason"].isNull()) + addressFailReason_ = value["AddressFailReason"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["AddressModifyTime"].isNull()) + addressModifyTime_ = value["AddressModifyTime"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["ImageFormat"].isNull()) + imageFormat_ = value["ImageFormat"].asString(); + if(!value["TagsFailReason"].isNull()) + tagsFailReason_ = value["TagsFailReason"].asString(); + if(!value["RemarksArrayB"].isNull()) + remarksArrayB_ = value["RemarksArrayB"].asString(); + if(!value["FacesModifyTime"].isNull()) + facesModifyTime_ = value["FacesModifyTime"].asString(); + if(!value["Exif"].isNull()) + exif_ = value["Exif"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ImageWidth"].isNull()) + imageWidth_ = std::stoi(value["ImageWidth"].asString()); + if(!value["RemarksArrayA"].isNull()) + remarksArrayA_ = value["RemarksArrayA"].asString(); + if(!value["SourcePosition"].isNull()) + sourcePosition_ = value["SourcePosition"].asString(); + if(!value["AddressStatus"].isNull()) + addressStatus_ = value["AddressStatus"].asString(); + if(!value["FacesStatus"].isNull()) + facesStatus_ = value["FacesStatus"].asString(); + if(!value["ImageQualityModifyTime"].isNull()) + imageQualityModifyTime_ = value["ImageQualityModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + if(!value["TagsModifyTime"].isNull()) + tagsModifyTime_ = value["TagsModifyTime"].asString(); + if(!value["ImageQualityFailReason"].isNull()) + imageQualityFailReason_ = value["ImageQualityFailReason"].asString(); + if(!value["Orientation"].isNull()) + orientation_ = value["Orientation"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["OCRStatus"].isNull()) + oCRStatus_ = value["OCRStatus"].asString(); + if(!value["OCRModifyTime"].isNull()) + oCRModifyTime_ = value["OCRModifyTime"].asString(); + if(!value["ImageTime"].isNull()) + imageTime_ = value["ImageTime"].asString(); + if(!value["CroppingSuggestionModifyTime"].isNull()) + croppingSuggestionModifyTime_ = value["CroppingSuggestionModifyTime"].asString(); + if(!value["ImageHeight"].isNull()) + imageHeight_ = std::stoi(value["ImageHeight"].asString()); + if(!value["ImageQualityStatus"].isNull()) + imageQualityStatus_ = value["ImageQualityStatus"].asString(); + if(!value["TagsStatus"].isNull()) + tagsStatus_ = value["TagsStatus"].asString(); + if(!value["OCRFailReason"].isNull()) + oCRFailReason_ = value["OCRFailReason"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["FileSize"].isNull()) + fileSize_ = std::stoi(value["FileSize"].asString()); + if(!value["Location"].isNull()) + location_ = value["Location"].asString(); + +} + +GetImageResult::ImageQuality GetImageResult::getImageQuality()const +{ + return imageQuality_; +} + +std::string GetImageResult::getModifyTime()const +{ + return modifyTime_; +} + +GetImageResult::Address GetImageResult::getAddress()const +{ + return address_; +} + +std::string GetImageResult::getSourceType()const +{ + return sourceType_; +} + +std::string GetImageResult::getSourceUri()const +{ + return sourceUri_; +} + +std::string GetImageResult::getFacesFailReason()const +{ + return facesFailReason_; +} + +std::string GetImageResult::getCroppingSuggestionStatus()const +{ + return croppingSuggestionStatus_; +} + +std::string GetImageResult::getCroppingSuggestionFailReason()const +{ + return croppingSuggestionFailReason_; +} + +std::string GetImageResult::getAddressFailReason()const +{ + return addressFailReason_; +} + +std::string GetImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string GetImageResult::getAddressModifyTime()const +{ + return addressModifyTime_; +} + +std::string GetImageResult::getRemarksB()const +{ + return remarksB_; +} + +std::string GetImageResult::getImageFormat()const +{ + return imageFormat_; +} + +std::string GetImageResult::getTagsFailReason()const +{ + return tagsFailReason_; +} + +std::string GetImageResult::getRemarksArrayB()const +{ + return remarksArrayB_; +} + +std::string GetImageResult::getFacesModifyTime()const +{ + return facesModifyTime_; +} + +std::string GetImageResult::getExif()const +{ + return exif_; +} + +std::string GetImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string GetImageResult::getRemarksD()const +{ + return remarksD_; +} + +int GetImageResult::getImageWidth()const +{ + return imageWidth_; +} + +std::string GetImageResult::getRemarksArrayA()const +{ + return remarksArrayA_; +} + +std::string GetImageResult::getSourcePosition()const +{ + return sourcePosition_; +} + +std::vector GetImageResult::getTags()const +{ + return tags_; +} + +std::vector GetImageResult::getFaces()const +{ + return faces_; +} + +std::string GetImageResult::getAddressStatus()const +{ + return addressStatus_; +} + +std::string GetImageResult::getFacesStatus()const +{ + return facesStatus_; +} + +std::string GetImageResult::getImageQualityModifyTime()const +{ + return imageQualityModifyTime_; +} + +std::vector GetImageResult::getCroppingSuggestion()const +{ + return croppingSuggestion_; +} + +std::string GetImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetImageResult::getExternalId()const +{ + return externalId_; +} + +std::string GetImageResult::getTagsModifyTime()const +{ + return tagsModifyTime_; +} + +std::string GetImageResult::getImageQualityFailReason()const +{ + return imageQualityFailReason_; +} + +std::string GetImageResult::getOrientation()const +{ + return orientation_; +} + +std::string GetImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string GetImageResult::getOCRStatus()const +{ + return oCRStatus_; +} + +std::string GetImageResult::getOCRModifyTime()const +{ + return oCRModifyTime_; +} + +std::string GetImageResult::getImageTime()const +{ + return imageTime_; +} + +std::string GetImageResult::getCroppingSuggestionModifyTime()const +{ + return croppingSuggestionModifyTime_; +} + +int GetImageResult::getImageHeight()const +{ + return imageHeight_; +} + +std::string GetImageResult::getImageQualityStatus()const +{ + return imageQualityStatus_; +} + +std::string GetImageResult::getTagsStatus()const +{ + return tagsStatus_; +} + +std::string GetImageResult::getOCRFailReason()const +{ + return oCRFailReason_; +} + +std::string GetImageResult::getSetId()const +{ + return setId_; +} + +std::vector GetImageResult::getOCR()const +{ + return oCR_; +} + +int GetImageResult::getFileSize()const +{ + return fileSize_; +} + +std::string GetImageResult::getLocation()const +{ + return location_; +} + diff --git a/imm/src/model/GetMediaMetaRequest.cc b/imm/src/model/GetMediaMetaRequest.cc index febb20d3d..18d8e8857 100644 --- a/imm/src/model/GetMediaMetaRequest.cc +++ b/imm/src/model/GetMediaMetaRequest.cc @@ -19,42 +19,36 @@ using AlibabaCloud::Imm::Model::GetMediaMetaRequest; GetMediaMetaRequest::GetMediaMetaRequest() - : RpcServiceRequest("imm", "2020-09-30", "GetMediaMeta") { + : RpcServiceRequest("imm", "2017-09-06", "GetMediaMeta") { setMethod(HttpRequest::Method::Post); } GetMediaMetaRequest::~GetMediaMetaRequest() {} -std::string GetMediaMetaRequest::getProjectName() const { - return projectName_; +std::string GetMediaMetaRequest::getMediaUri() const { + return mediaUri_; } -void GetMediaMetaRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void GetMediaMetaRequest::setMediaUri(const std::string &mediaUri) { + mediaUri_ = mediaUri; + setParameter(std::string("MediaUri"), mediaUri); } -GetMediaMetaRequest::CredentialConfig GetMediaMetaRequest::getCredentialConfig() const { - return credentialConfig_; +std::string GetMediaMetaRequest::getProject() const { + return project_; } -void GetMediaMetaRequest::setCredentialConfig(const GetMediaMetaRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); +void GetMediaMetaRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -std::string GetMediaMetaRequest::getSourceURI() const { - return sourceURI_; +std::string GetMediaMetaRequest::getAccessKeyId() const { + return accessKeyId_; } -void GetMediaMetaRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); +void GetMediaMetaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/imm/src/model/GetMediaMetaResult.cc b/imm/src/model/GetMediaMetaResult.cc index 31b0e8b7a..a6e330f4a 100644 --- a/imm/src/model/GetMediaMetaResult.cc +++ b/imm/src/model/GetMediaMetaResult.cc @@ -39,311 +39,171 @@ void GetMediaMetaResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allVideoStreamsNode = value["VideoStreams"]["VideoStreamsItem"]; - for (auto valueVideoStreamsVideoStreamsItem : allVideoStreamsNode) + auto mediaMetaNode = value["MediaMeta"]; + auto mediaFormatNode = mediaMetaNode["MediaFormat"]; + if(!mediaFormatNode["CreationTime"].isNull()) + mediaMeta_.mediaFormat.creationTime = mediaFormatNode["CreationTime"].asString(); + if(!mediaFormatNode["NumberPrograms"].isNull()) + mediaMeta_.mediaFormat.numberPrograms = std::stoi(mediaFormatNode["NumberPrograms"].asString()); + if(!mediaFormatNode["NumberStreams"].isNull()) + mediaMeta_.mediaFormat.numberStreams = std::stoi(mediaFormatNode["NumberStreams"].asString()); + if(!mediaFormatNode["Bitrate"].isNull()) + mediaMeta_.mediaFormat.bitrate = mediaFormatNode["Bitrate"].asString(); + if(!mediaFormatNode["StartTime"].isNull()) + mediaMeta_.mediaFormat.startTime = mediaFormatNode["StartTime"].asString(); + if(!mediaFormatNode["Size"].isNull()) + mediaMeta_.mediaFormat.size = mediaFormatNode["Size"].asString(); + if(!mediaFormatNode["FormatLongName"].isNull()) + mediaMeta_.mediaFormat.formatLongName = mediaFormatNode["FormatLongName"].asString(); + if(!mediaFormatNode["Duration"].isNull()) + mediaMeta_.mediaFormat.duration = mediaFormatNode["Duration"].asString(); + if(!mediaFormatNode["FormatName"].isNull()) + mediaMeta_.mediaFormat.formatName = mediaFormatNode["FormatName"].asString(); + if(!mediaFormatNode["Location"].isNull()) + mediaMeta_.mediaFormat.location = mediaFormatNode["Location"].asString(); + auto tagNode = mediaFormatNode["Tag"]; + if(!tagNode["CreationTime"].isNull()) + mediaMeta_.mediaFormat.tag.creationTime = tagNode["CreationTime"].asString(); + if(!tagNode["Album"].isNull()) + mediaMeta_.mediaFormat.tag.album = tagNode["Album"].asString(); + if(!tagNode["AlbumArtist"].isNull()) + mediaMeta_.mediaFormat.tag.albumArtist = tagNode["AlbumArtist"].asString(); + if(!tagNode["Performer"].isNull()) + mediaMeta_.mediaFormat.tag.performer = tagNode["Performer"].asString(); + if(!tagNode["Composer"].isNull()) + mediaMeta_.mediaFormat.tag.composer = tagNode["Composer"].asString(); + if(!tagNode["Artist"].isNull()) + mediaMeta_.mediaFormat.tag.artist = tagNode["Artist"].asString(); + if(!tagNode["Title"].isNull()) + mediaMeta_.mediaFormat.tag.title = tagNode["Title"].asString(); + if(!tagNode["Language"].isNull()) + mediaMeta_.mediaFormat.tag.language = tagNode["Language"].asString(); + auto addressNode = mediaFormatNode["Address"]; + if(!addressNode["Township"].isNull()) + mediaMeta_.mediaFormat.address.township = addressNode["Township"].asString(); + if(!addressNode["District"].isNull()) + mediaMeta_.mediaFormat.address.district = addressNode["District"].asString(); + if(!addressNode["AddressLine"].isNull()) + mediaMeta_.mediaFormat.address.addressLine = addressNode["AddressLine"].asString(); + if(!addressNode["Country"].isNull()) + mediaMeta_.mediaFormat.address.country = addressNode["Country"].asString(); + if(!addressNode["City"].isNull()) + mediaMeta_.mediaFormat.address.city = addressNode["City"].asString(); + if(!addressNode["Province"].isNull()) + mediaMeta_.mediaFormat.address.province = addressNode["Province"].asString(); + auto mediaStreamsNode = mediaMetaNode["MediaStreams"]; + auto allVideoStreamsNode = mediaStreamsNode["VideoStreams"]["VideoStream"]; + for (auto mediaStreamsNodeVideoStreamsVideoStream : allVideoStreamsNode) { - VideoStreamsItem videoStreamsObject; - if(!valueVideoStreamsVideoStreamsItem["Index"].isNull()) - videoStreamsObject.index = std::stol(valueVideoStreamsVideoStreamsItem["Index"].asString()); - if(!valueVideoStreamsVideoStreamsItem["Language"].isNull()) - videoStreamsObject.language = valueVideoStreamsVideoStreamsItem["Language"].asString(); - if(!valueVideoStreamsVideoStreamsItem["CodecName"].isNull()) - videoStreamsObject.codecName = valueVideoStreamsVideoStreamsItem["CodecName"].asString(); - if(!valueVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) - videoStreamsObject.codecLongName = valueVideoStreamsVideoStreamsItem["CodecLongName"].asString(); - if(!valueVideoStreamsVideoStreamsItem["Profile"].isNull()) - videoStreamsObject.profile = valueVideoStreamsVideoStreamsItem["Profile"].asString(); - if(!valueVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) - videoStreamsObject.codecTimeBase = valueVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); - if(!valueVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) - videoStreamsObject.codecTagString = valueVideoStreamsVideoStreamsItem["CodecTagString"].asString(); - if(!valueVideoStreamsVideoStreamsItem["CodecTag"].isNull()) - videoStreamsObject.codecTag = valueVideoStreamsVideoStreamsItem["CodecTag"].asString(); - if(!valueVideoStreamsVideoStreamsItem["Width"].isNull()) - videoStreamsObject.width = std::stol(valueVideoStreamsVideoStreamsItem["Width"].asString()); - if(!valueVideoStreamsVideoStreamsItem["Height"].isNull()) - videoStreamsObject.height = std::stol(valueVideoStreamsVideoStreamsItem["Height"].asString()); - if(!valueVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) - videoStreamsObject.hasBFrames = std::stol(valueVideoStreamsVideoStreamsItem["HasBFrames"].asString()); - if(!valueVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) - videoStreamsObject.sampleAspectRatio = valueVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); - if(!valueVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) - videoStreamsObject.displayAspectRatio = valueVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); - if(!valueVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) - videoStreamsObject.pixelFormat = valueVideoStreamsVideoStreamsItem["PixelFormat"].asString(); - if(!valueVideoStreamsVideoStreamsItem["Level"].isNull()) - videoStreamsObject.level = std::stol(valueVideoStreamsVideoStreamsItem["Level"].asString()); - if(!valueVideoStreamsVideoStreamsItem["FrameRate"].isNull()) - videoStreamsObject.frameRate = valueVideoStreamsVideoStreamsItem["FrameRate"].asString(); - if(!valueVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) - videoStreamsObject.averageFrameRate = valueVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); - if(!valueVideoStreamsVideoStreamsItem["TimeBase"].isNull()) - videoStreamsObject.timeBase = valueVideoStreamsVideoStreamsItem["TimeBase"].asString(); - if(!valueVideoStreamsVideoStreamsItem["StartTime"].isNull()) - videoStreamsObject.startTime = valueVideoStreamsVideoStreamsItem["StartTime"].asString(); - if(!valueVideoStreamsVideoStreamsItem["Duration"].isNull()) - videoStreamsObject.duration = valueVideoStreamsVideoStreamsItem["Duration"].asString(); - if(!valueVideoStreamsVideoStreamsItem["Bitrate"].isNull()) - videoStreamsObject.bitrate = std::stol(valueVideoStreamsVideoStreamsItem["Bitrate"].asString()); - if(!valueVideoStreamsVideoStreamsItem["FrameCount"].isNull()) - videoStreamsObject.frameCount = std::stol(valueVideoStreamsVideoStreamsItem["FrameCount"].asString()); - if(!valueVideoStreamsVideoStreamsItem["Rotate"].isNull()) - videoStreamsObject.rotate = valueVideoStreamsVideoStreamsItem["Rotate"].asString(); - if(!valueVideoStreamsVideoStreamsItem["BitDepth"].isNull()) - videoStreamsObject.bitDepth = std::stol(valueVideoStreamsVideoStreamsItem["BitDepth"].asString()); - if(!valueVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) - videoStreamsObject.colorSpace = valueVideoStreamsVideoStreamsItem["ColorSpace"].asString(); - if(!valueVideoStreamsVideoStreamsItem["ColorRange"].isNull()) - videoStreamsObject.colorRange = valueVideoStreamsVideoStreamsItem["ColorRange"].asString(); - if(!valueVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) - videoStreamsObject.colorTransfer = valueVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); - if(!valueVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) - videoStreamsObject.colorPrimaries = valueVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); - videoStreams_.push_back(videoStreamsObject); + MediaMeta::MediaStreams::VideoStream videoStreamObject; + if(!mediaStreamsNodeVideoStreamsVideoStream["Index"].isNull()) + videoStreamObject.index = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Index"].asString()); + if(!mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = mediaStreamsNodeVideoStreamsVideoStream["CodecLongName"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Height"].isNull()) + videoStreamObject.height = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Height"].asString()); + if(!mediaStreamsNodeVideoStreamsVideoStream["SampleAspectRatio"].isNull()) + videoStreamObject.sampleAspectRatio = mediaStreamsNodeVideoStreamsVideoStream["SampleAspectRatio"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].isNull()) + videoStreamObject.averageFrameRate = mediaStreamsNodeVideoStreamsVideoStream["AverageFrameRate"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = mediaStreamsNodeVideoStreamsVideoStream["Bitrate"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Rotate"].isNull()) + videoStreamObject.rotate = mediaStreamsNodeVideoStreamsVideoStream["Rotate"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = mediaStreamsNodeVideoStreamsVideoStream["CodecTagString"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Language"].isNull()) + videoStreamObject.language = mediaStreamsNodeVideoStreamsVideoStream["Language"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["HasBFrames"].asString()); + if(!mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].isNull()) + videoStreamObject.frameRrate = mediaStreamsNodeVideoStreamsVideoStream["FrameRrate"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Profile"].isNull()) + videoStreamObject.profile = mediaStreamsNodeVideoStreamsVideoStream["Profile"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = mediaStreamsNodeVideoStreamsVideoStream["StartTime"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Frames"].isNull()) + videoStreamObject.frames = mediaStreamsNodeVideoStreamsVideoStream["Frames"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = mediaStreamsNodeVideoStreamsVideoStream["CodecName"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Width"].isNull()) + videoStreamObject.width = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Width"].asString()); + if(!mediaStreamsNodeVideoStreamsVideoStream["Duration"].isNull()) + videoStreamObject.duration = mediaStreamsNodeVideoStreamsVideoStream["Duration"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].isNull()) + videoStreamObject.displayAspectRatio = mediaStreamsNodeVideoStreamsVideoStream["DisplayAspectRatio"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = mediaStreamsNodeVideoStreamsVideoStream["CodecTag"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = mediaStreamsNodeVideoStreamsVideoStream["CodecTimeBase"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].isNull()) + videoStreamObject.timeBase = mediaStreamsNodeVideoStreamsVideoStream["TimeBase"].asString(); + if(!mediaStreamsNodeVideoStreamsVideoStream["Level"].isNull()) + videoStreamObject.level = std::stoi(mediaStreamsNodeVideoStreamsVideoStream["Level"].asString()); + if(!mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].isNull()) + videoStreamObject.pixelFormat = mediaStreamsNodeVideoStreamsVideoStream["PixelFormat"].asString(); + mediaMeta_.mediaStreams.videoStreams.push_back(videoStreamObject); } - auto allAudioStreamsNode = value["AudioStreams"]["AudioStreamsItem"]; - for (auto valueAudioStreamsAudioStreamsItem : allAudioStreamsNode) + auto allAudioStreamsNode = mediaStreamsNode["AudioStreams"]["AudioStream"]; + for (auto mediaStreamsNodeAudioStreamsAudioStream : allAudioStreamsNode) { - AudioStreamsItem audioStreamsObject; - if(!valueAudioStreamsAudioStreamsItem["Index"].isNull()) - audioStreamsObject.index = std::stol(valueAudioStreamsAudioStreamsItem["Index"].asString()); - if(!valueAudioStreamsAudioStreamsItem["Language"].isNull()) - audioStreamsObject.language = valueAudioStreamsAudioStreamsItem["Language"].asString(); - if(!valueAudioStreamsAudioStreamsItem["CodecName"].isNull()) - audioStreamsObject.codecName = valueAudioStreamsAudioStreamsItem["CodecName"].asString(); - if(!valueAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) - audioStreamsObject.codecLongName = valueAudioStreamsAudioStreamsItem["CodecLongName"].asString(); - if(!valueAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) - audioStreamsObject.codecTimeBase = valueAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); - if(!valueAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) - audioStreamsObject.codecTagString = valueAudioStreamsAudioStreamsItem["CodecTagString"].asString(); - if(!valueAudioStreamsAudioStreamsItem["CodecTag"].isNull()) - audioStreamsObject.codecTag = valueAudioStreamsAudioStreamsItem["CodecTag"].asString(); - if(!valueAudioStreamsAudioStreamsItem["TimeBase"].isNull()) - audioStreamsObject.timeBase = valueAudioStreamsAudioStreamsItem["TimeBase"].asString(); - if(!valueAudioStreamsAudioStreamsItem["StartTime"].isNull()) - audioStreamsObject.startTime = valueAudioStreamsAudioStreamsItem["StartTime"].asString(); - if(!valueAudioStreamsAudioStreamsItem["Duration"].isNull()) - audioStreamsObject.duration = valueAudioStreamsAudioStreamsItem["Duration"].asString(); - if(!valueAudioStreamsAudioStreamsItem["Bitrate"].isNull()) - audioStreamsObject.bitrate = std::stol(valueAudioStreamsAudioStreamsItem["Bitrate"].asString()); - if(!valueAudioStreamsAudioStreamsItem["FrameCount"].isNull()) - audioStreamsObject.frameCount = std::stol(valueAudioStreamsAudioStreamsItem["FrameCount"].asString()); - if(!valueAudioStreamsAudioStreamsItem["Lyric"].isNull()) - audioStreamsObject.lyric = valueAudioStreamsAudioStreamsItem["Lyric"].asString(); - if(!valueAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) - audioStreamsObject.sampleFormat = valueAudioStreamsAudioStreamsItem["SampleFormat"].asString(); - if(!valueAudioStreamsAudioStreamsItem["SampleRate"].isNull()) - audioStreamsObject.sampleRate = std::stol(valueAudioStreamsAudioStreamsItem["SampleRate"].asString()); - if(!valueAudioStreamsAudioStreamsItem["Channels"].isNull()) - audioStreamsObject.channels = std::stol(valueAudioStreamsAudioStreamsItem["Channels"].asString()); - if(!valueAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) - audioStreamsObject.channelLayout = valueAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); - audioStreams_.push_back(audioStreamsObject); + MediaMeta::MediaStreams::AudioStream audioStreamObject; + if(!mediaStreamsNodeAudioStreamsAudioStream["Index"].isNull()) + audioStreamObject.index = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Index"].asString()); + if(!mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].isNull()) + audioStreamObject.sampleRate = mediaStreamsNodeAudioStreamsAudioStream["SampleRate"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = mediaStreamsNodeAudioStreamsAudioStream["ChannelLayout"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = mediaStreamsNodeAudioStreamsAudioStream["CodecLongName"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["Channels"].isNull()) + audioStreamObject.channels = std::stoi(mediaStreamsNodeAudioStreamsAudioStream["Channels"].asString()); + if(!mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = mediaStreamsNodeAudioStreamsAudioStream["Bitrate"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = mediaStreamsNodeAudioStreamsAudioStream["CodecTagString"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["Language"].isNull()) + audioStreamObject.language = mediaStreamsNodeAudioStreamsAudioStream["Language"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = mediaStreamsNodeAudioStreamsAudioStream["StartTime"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].isNull()) + audioStreamObject.sampleFormat = mediaStreamsNodeAudioStreamsAudioStream["SampleFormat"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["Frames"].isNull()) + audioStreamObject.frames = mediaStreamsNodeAudioStreamsAudioStream["Frames"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = mediaStreamsNodeAudioStreamsAudioStream["CodecName"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["Duration"].isNull()) + audioStreamObject.duration = mediaStreamsNodeAudioStreamsAudioStream["Duration"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = mediaStreamsNodeAudioStreamsAudioStream["CodecTag"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = mediaStreamsNodeAudioStreamsAudioStream["CodecTimeBase"].asString(); + if(!mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].isNull()) + audioStreamObject.timeBase = mediaStreamsNodeAudioStreamsAudioStream["TimeBase"].asString(); + mediaMeta_.mediaStreams.audioStreams.push_back(audioStreamObject); } - auto allSubtitlesNode = value["Subtitles"]["SubtitlesItem"]; - for (auto valueSubtitlesSubtitlesItem : allSubtitlesNode) + auto allSubtitleStreamsNode = mediaStreamsNode["SubtitleStreams"]["SubtitleStream"]; + for (auto mediaStreamsNodeSubtitleStreamsSubtitleStream : allSubtitleStreamsNode) { - SubtitlesItem subtitlesObject; - if(!valueSubtitlesSubtitlesItem["Index"].isNull()) - subtitlesObject.index = std::stol(valueSubtitlesSubtitlesItem["Index"].asString()); - if(!valueSubtitlesSubtitlesItem["Language"].isNull()) - subtitlesObject.language = valueSubtitlesSubtitlesItem["Language"].asString(); - if(!valueSubtitlesSubtitlesItem["CodecName"].isNull()) - subtitlesObject.codecName = valueSubtitlesSubtitlesItem["CodecName"].asString(); - if(!valueSubtitlesSubtitlesItem["CodecLongName"].isNull()) - subtitlesObject.codecLongName = valueSubtitlesSubtitlesItem["CodecLongName"].asString(); - if(!valueSubtitlesSubtitlesItem["CodecTagString"].isNull()) - subtitlesObject.codecTagString = valueSubtitlesSubtitlesItem["CodecTagString"].asString(); - if(!valueSubtitlesSubtitlesItem["CodecTag"].isNull()) - subtitlesObject.codecTag = valueSubtitlesSubtitlesItem["CodecTag"].asString(); - if(!valueSubtitlesSubtitlesItem["StartTime"].isNull()) - subtitlesObject.startTime = valueSubtitlesSubtitlesItem["StartTime"].asString(); - if(!valueSubtitlesSubtitlesItem["Duration"].isNull()) - subtitlesObject.duration = valueSubtitlesSubtitlesItem["Duration"].asString(); - if(!valueSubtitlesSubtitlesItem["Bitrate"].isNull()) - subtitlesObject.bitrate = std::stol(valueSubtitlesSubtitlesItem["Bitrate"].asString()); - if(!valueSubtitlesSubtitlesItem["Content"].isNull()) - subtitlesObject.content = valueSubtitlesSubtitlesItem["Content"].asString(); - if(!valueSubtitlesSubtitlesItem["Width"].isNull()) - subtitlesObject.width = std::stol(valueSubtitlesSubtitlesItem["Width"].asString()); - if(!valueSubtitlesSubtitlesItem["Height"].isNull()) - subtitlesObject.height = std::stol(valueSubtitlesSubtitlesItem["Height"].asString()); - subtitles_.push_back(subtitlesObject); + MediaMeta::MediaStreams::SubtitleStream subtitleStreamObject; + if(!mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].isNull()) + subtitleStreamObject.index = std::stoi(mediaStreamsNodeSubtitleStreamsSubtitleStream["Index"].asString()); + if(!mediaStreamsNodeSubtitleStreamsSubtitleStream["Language"].isNull()) + subtitleStreamObject.language = mediaStreamsNodeSubtitleStreamsSubtitleStream["Language"].asString(); + mediaMeta_.mediaStreams.subtitleStreams.push_back(subtitleStreamObject); } - auto allAddressesNode = value["Addresses"]["AddressesItem"]; - for (auto valueAddressesAddressesItem : allAddressesNode) - { - AddressesItem addressesObject; - if(!valueAddressesAddressesItem["Language"].isNull()) - addressesObject.language = valueAddressesAddressesItem["Language"].asString(); - if(!valueAddressesAddressesItem["AddressLine"].isNull()) - addressesObject.addressLine = valueAddressesAddressesItem["AddressLine"].asString(); - if(!valueAddressesAddressesItem["Country"].isNull()) - addressesObject.country = valueAddressesAddressesItem["Country"].asString(); - if(!valueAddressesAddressesItem["Province"].isNull()) - addressesObject.province = valueAddressesAddressesItem["Province"].asString(); - if(!valueAddressesAddressesItem["City"].isNull()) - addressesObject.city = valueAddressesAddressesItem["City"].asString(); - if(!valueAddressesAddressesItem["District"].isNull()) - addressesObject.district = valueAddressesAddressesItem["District"].asString(); - if(!valueAddressesAddressesItem["Township"].isNull()) - addressesObject.township = valueAddressesAddressesItem["Township"].asString(); - addresses_.push_back(addressesObject); - } - if(!value["Language"].isNull()) - language_ = value["Language"].asString(); - if(!value["Title"].isNull()) - title_ = value["Title"].asString(); - if(!value["StreamCount"].isNull()) - streamCount_ = std::stol(value["StreamCount"].asString()); - if(!value["ProgramCount"].isNull()) - programCount_ = std::stol(value["ProgramCount"].asString()); - if(!value["FormatName"].isNull()) - formatName_ = value["FormatName"].asString(); - if(!value["FormatLongName"].isNull()) - formatLongName_ = value["FormatLongName"].asString(); - if(!value["Size"].isNull()) - size_ = std::stol(value["Size"].asString()); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["Bitrate"].isNull()) - bitrate_ = std::stol(value["Bitrate"].asString()); - if(!value["Artist"].isNull()) - artist_ = value["Artist"].asString(); - if(!value["AlbumArtist"].isNull()) - albumArtist_ = value["AlbumArtist"].asString(); - if(!value["Composer"].isNull()) - composer_ = value["Composer"].asString(); - if(!value["Performer"].isNull()) - performer_ = value["Performer"].asString(); - if(!value["Album"].isNull()) - album_ = value["Album"].asString(); - if(!value["Duration"].isNull()) - duration_ = value["Duration"].asString(); - if(!value["ProduceTime"].isNull()) - produceTime_ = value["ProduceTime"].asString(); - if(!value["LatLong"].isNull()) - latLong_ = value["LatLong"].asString(); - if(!value["VideoWidth"].isNull()) - videoWidth_ = std::stol(value["VideoWidth"].asString()); - if(!value["VideoHeight"].isNull()) - videoHeight_ = std::stol(value["VideoHeight"].asString()); + if(!value["MediaUri"].isNull()) + mediaUri_ = value["MediaUri"].asString(); } -std::string GetMediaMetaResult::getArtist()const +std::string GetMediaMetaResult::getMediaUri()const { - return artist_; + return mediaUri_; } -std::string GetMediaMetaResult::getProduceTime()const +GetMediaMetaResult::MediaMeta GetMediaMetaResult::getMediaMeta()const { - return produceTime_; -} - -std::string GetMediaMetaResult::getComposer()const -{ - return composer_; -} - -std::vector GetMediaMetaResult::getVideoStreams()const -{ - return videoStreams_; -} - -long GetMediaMetaResult::getSize()const -{ - return size_; -} - -long GetMediaMetaResult::getVideoWidth()const -{ - return videoWidth_; -} - -std::string GetMediaMetaResult::getFormatLongName()const -{ - return formatLongName_; -} - -long GetMediaMetaResult::getProgramCount()const -{ - return programCount_; -} - -double GetMediaMetaResult::getStartTime()const -{ - return startTime_; -} - -std::string GetMediaMetaResult::getTitle()const -{ - return title_; -} - -std::string GetMediaMetaResult::getAlbum()const -{ - return album_; -} - -double GetMediaMetaResult::getDuration()const -{ - return duration_; -} - -long GetMediaMetaResult::getBitrate()const -{ - return bitrate_; -} - -std::string GetMediaMetaResult::getAlbumArtist()const -{ - return albumArtist_; -} - -std::vector GetMediaMetaResult::getAudioStreams()const -{ - return audioStreams_; -} - -std::vector GetMediaMetaResult::getAddresses()const -{ - return addresses_; -} - -long GetMediaMetaResult::getStreamCount()const -{ - return streamCount_; -} - -std::string GetMediaMetaResult::getPerformer()const -{ - return performer_; -} - -std::string GetMediaMetaResult::getLanguage()const -{ - return language_; -} - -long GetMediaMetaResult::getVideoHeight()const -{ - return videoHeight_; -} - -std::vector GetMediaMetaResult::getSubtitles()const -{ - return subtitles_; -} - -std::string GetMediaMetaResult::getFormatName()const -{ - return formatName_; -} - -std::string GetMediaMetaResult::getLatLong()const -{ - return latLong_; + return mediaMeta_; } diff --git a/imm/src/model/GetOfficeConversionTaskRequest.cc b/imm/src/model/GetOfficeConversionTaskRequest.cc new file mode 100644 index 000000000..e1b297913 --- /dev/null +++ b/imm/src/model/GetOfficeConversionTaskRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetOfficeConversionTaskRequest; + +GetOfficeConversionTaskRequest::GetOfficeConversionTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetOfficeConversionTask") { + setMethod(HttpRequest::Method::Post); +} + +GetOfficeConversionTaskRequest::~GetOfficeConversionTaskRequest() {} + +std::string GetOfficeConversionTaskRequest::getProject() const { + return project_; +} + +void GetOfficeConversionTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetOfficeConversionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetOfficeConversionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetOfficeConversionTaskRequest::getTaskId() const { + return taskId_; +} + +void GetOfficeConversionTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/imm/src/model/GetOfficeConversionTaskResult.cc b/imm/src/model/GetOfficeConversionTaskResult.cc new file mode 100644 index 000000000..09cb099b3 --- /dev/null +++ b/imm/src/model/GetOfficeConversionTaskResult.cc @@ -0,0 +1,143 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult() : + ServiceResult() +{} + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOfficeConversionTaskResult::~GetOfficeConversionTaskResult() +{} + +void GetOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto failDetailNode = value["FailDetail"]; + if(!failDetailNode["Code"].isNull()) + failDetail_.code = failDetailNode["Code"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["TgtType"].isNull()) + tgtType_ = value["TgtType"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalID"].isNull()) + externalID_ = value["ExternalID"].asString(); + if(!value["ImageSpec"].isNull()) + imageSpec_ = value["ImageSpec"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["SrcUri"].isNull()) + srcUri_ = value["SrcUri"].asString(); + +} + +std::string GetOfficeConversionTaskResult::getStatus()const +{ + return status_; +} + +GetOfficeConversionTaskResult::FailDetail GetOfficeConversionTaskResult::getFailDetail()const +{ + return failDetail_; +} + +std::string GetOfficeConversionTaskResult::getTgtType()const +{ + return tgtType_; +} + +std::string GetOfficeConversionTaskResult::getTaskId()const +{ + return taskId_; +} + +int GetOfficeConversionTaskResult::getPercent()const +{ + return percent_; +} + +std::string GetOfficeConversionTaskResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetOfficeConversionTaskResult::getExternalID()const +{ + return externalID_; +} + +std::string GetOfficeConversionTaskResult::getImageSpec()const +{ + return imageSpec_; +} + +std::string GetOfficeConversionTaskResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +std::string GetOfficeConversionTaskResult::getTgtUri()const +{ + return tgtUri_; +} + +std::string GetOfficeConversionTaskResult::getFinishTime()const +{ + return finishTime_; +} + +int GetOfficeConversionTaskResult::getPageCount()const +{ + return pageCount_; +} + +std::string GetOfficeConversionTaskResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetOfficeConversionTaskResult::getSrcUri()const +{ + return srcUri_; +} + diff --git a/imm/src/model/GetOfficePreviewURLRequest.cc b/imm/src/model/GetOfficePreviewURLRequest.cc new file mode 100644 index 000000000..1f1b156bd --- /dev/null +++ b/imm/src/model/GetOfficePreviewURLRequest.cc @@ -0,0 +1,126 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetOfficePreviewURLRequest; + +GetOfficePreviewURLRequest::GetOfficePreviewURLRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetOfficePreviewURL") { + setMethod(HttpRequest::Method::Post); +} + +GetOfficePreviewURLRequest::~GetOfficePreviewURLRequest() {} + +std::string GetOfficePreviewURLRequest::getSrcType() const { + return srcType_; +} + +void GetOfficePreviewURLRequest::setSrcType(const std::string &srcType) { + srcType_ = srcType; + setParameter(std::string("SrcType"), srcType); +} + +std::string GetOfficePreviewURLRequest::getProject() const { + return project_; +} + +void GetOfficePreviewURLRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +int GetOfficePreviewURLRequest::getWatermarkVertical() const { + return watermarkVertical_; +} + +void GetOfficePreviewURLRequest::setWatermarkVertical(int watermarkVertical) { + watermarkVertical_ = watermarkVertical; + setParameter(std::string("WatermarkVertical"), std::to_string(watermarkVertical)); +} + +std::string GetOfficePreviewURLRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetOfficePreviewURLRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int GetOfficePreviewURLRequest::getWatermarkType() const { + return watermarkType_; +} + +void GetOfficePreviewURLRequest::setWatermarkType(int watermarkType) { + watermarkType_ = watermarkType; + setParameter(std::string("WatermarkType"), std::to_string(watermarkType)); +} + +float GetOfficePreviewURLRequest::getWatermarkRotate() const { + return watermarkRotate_; +} + +void GetOfficePreviewURLRequest::setWatermarkRotate(float watermarkRotate) { + watermarkRotate_ = watermarkRotate; + setParameter(std::string("WatermarkRotate"), std::to_string(watermarkRotate)); +} + +std::string GetOfficePreviewURLRequest::getWatermarkValue() const { + return watermarkValue_; +} + +void GetOfficePreviewURLRequest::setWatermarkValue(const std::string &watermarkValue) { + watermarkValue_ = watermarkValue; + setParameter(std::string("WatermarkValue"), watermarkValue); +} + +std::string GetOfficePreviewURLRequest::getWatermarkFont() const { + return watermarkFont_; +} + +void GetOfficePreviewURLRequest::setWatermarkFont(const std::string &watermarkFont) { + watermarkFont_ = watermarkFont; + setParameter(std::string("WatermarkFont"), watermarkFont); +} + +int GetOfficePreviewURLRequest::getWatermarkHorizontal() const { + return watermarkHorizontal_; +} + +void GetOfficePreviewURLRequest::setWatermarkHorizontal(int watermarkHorizontal) { + watermarkHorizontal_ = watermarkHorizontal; + setParameter(std::string("WatermarkHorizontal"), std::to_string(watermarkHorizontal)); +} + +std::string GetOfficePreviewURLRequest::getSrcUri() const { + return srcUri_; +} + +void GetOfficePreviewURLRequest::setSrcUri(const std::string &srcUri) { + srcUri_ = srcUri; + setParameter(std::string("SrcUri"), srcUri); +} + +std::string GetOfficePreviewURLRequest::getWatermarkFillStyle() const { + return watermarkFillStyle_; +} + +void GetOfficePreviewURLRequest::setWatermarkFillStyle(const std::string &watermarkFillStyle) { + watermarkFillStyle_ = watermarkFillStyle; + setParameter(std::string("WatermarkFillStyle"), watermarkFillStyle); +} + diff --git a/imm/src/model/GetOfficePreviewURLResult.cc b/imm/src/model/GetOfficePreviewURLResult.cc new file mode 100644 index 000000000..4b2769bc3 --- /dev/null +++ b/imm/src/model/GetOfficePreviewURLResult.cc @@ -0,0 +1,79 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetOfficePreviewURLResult::GetOfficePreviewURLResult() : + ServiceResult() +{} + +GetOfficePreviewURLResult::GetOfficePreviewURLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOfficePreviewURLResult::~GetOfficePreviewURLResult() +{} + +void GetOfficePreviewURLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["PreviewURL"].isNull()) + previewURL_ = value["PreviewURL"].asString(); + if(!value["RefreshToken"].isNull()) + refreshToken_ = value["RefreshToken"].asString(); + if(!value["AccessToken"].isNull()) + accessToken_ = value["AccessToken"].asString(); + if(!value["RefreshTokenExpiredTime"].isNull()) + refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString(); + if(!value["AccessTokenExpiredTime"].isNull()) + accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString(); + +} + +std::string GetOfficePreviewURLResult::getPreviewURL()const +{ + return previewURL_; +} + +std::string GetOfficePreviewURLResult::getRefreshToken()const +{ + return refreshToken_; +} + +std::string GetOfficePreviewURLResult::getAccessToken()const +{ + return accessToken_; +} + +std::string GetOfficePreviewURLResult::getRefreshTokenExpiredTime()const +{ + return refreshTokenExpiredTime_; +} + +std::string GetOfficePreviewURLResult::getAccessTokenExpiredTime()const +{ + return accessTokenExpiredTime_; +} + diff --git a/imm/src/model/GetProjectRequest.cc b/imm/src/model/GetProjectRequest.cc index a9c62220b..166720b7c 100644 --- a/imm/src/model/GetProjectRequest.cc +++ b/imm/src/model/GetProjectRequest.cc @@ -19,27 +19,27 @@ using AlibabaCloud::Imm::Model::GetProjectRequest; GetProjectRequest::GetProjectRequest() - : RpcServiceRequest("imm", "2020-09-30", "GetProject") { + : RpcServiceRequest("imm", "2017-09-06", "GetProject") { setMethod(HttpRequest::Method::Post); } GetProjectRequest::~GetProjectRequest() {} -std::string GetProjectRequest::getProjectName() const { - return projectName_; +std::string GetProjectRequest::getProject() const { + return project_; } -void GetProjectRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void GetProjectRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -bool GetProjectRequest::getWithStatistics() const { - return withStatistics_; +std::string GetProjectRequest::getAccessKeyId() const { + return accessKeyId_; } -void GetProjectRequest::setWithStatistics(bool withStatistics) { - withStatistics_ = withStatistics; - setParameter(std::string("WithStatistics"), withStatistics ? "true" : "false"); +void GetProjectRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/imm/src/model/GetProjectResult.cc b/imm/src/model/GetProjectResult.cc index 33cff9012..48b50d6db 100644 --- a/imm/src/model/GetProjectResult.cc +++ b/imm/src/model/GetProjectResult.cc @@ -39,46 +39,69 @@ void GetProjectResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto projectNode = value["Project"]; - if(!projectNode["ProjectName"].isNull()) - project_.projectName = projectNode["ProjectName"].asString(); - if(!projectNode["ServiceRole"].isNull()) - project_.serviceRole = projectNode["ServiceRole"].asString(); - if(!projectNode["TemplateId"].isNull()) - project_.templateId = projectNode["TemplateId"].asString(); - if(!projectNode["CreateTime"].isNull()) - project_.createTime = projectNode["CreateTime"].asString(); - if(!projectNode["UpdateTime"].isNull()) - project_.updateTime = projectNode["UpdateTime"].asString(); - if(!projectNode["Description"].isNull()) - project_.description = projectNode["Description"].asString(); - if(!projectNode["ProjectQueriesPerSecond"].isNull()) - project_.projectQueriesPerSecond = std::stol(projectNode["ProjectQueriesPerSecond"].asString()); - if(!projectNode["EngineConcurrency"].isNull()) - project_.engineConcurrency = std::stol(projectNode["EngineConcurrency"].asString()); - if(!projectNode["ProjectMaxDatasetCount"].isNull()) - project_.projectMaxDatasetCount = std::stol(projectNode["ProjectMaxDatasetCount"].asString()); - if(!projectNode["DatasetMaxBindCount"].isNull()) - project_.datasetMaxBindCount = std::stol(projectNode["DatasetMaxBindCount"].asString()); - if(!projectNode["DatasetMaxFileCount"].isNull()) - project_.datasetMaxFileCount = std::stol(projectNode["DatasetMaxFileCount"].asString()); - if(!projectNode["DatasetMaxEntityCount"].isNull()) - project_.datasetMaxEntityCount = std::stol(projectNode["DatasetMaxEntityCount"].asString()); - if(!projectNode["DatasetMaxRelationCount"].isNull()) - project_.datasetMaxRelationCount = std::stol(projectNode["DatasetMaxRelationCount"].asString()); - if(!projectNode["DatasetMaxTotalFileSize"].isNull()) - project_.datasetMaxTotalFileSize = std::stol(projectNode["DatasetMaxTotalFileSize"].asString()); - if(!projectNode["DatasetCount"].isNull()) - project_.datasetCount = std::stol(projectNode["DatasetCount"].asString()); - if(!projectNode["FileCount"].isNull()) - project_.fileCount = std::stol(projectNode["FileCount"].asString()); - if(!projectNode["TotalFileSize"].isNull()) - project_.totalFileSize = std::stol(projectNode["TotalFileSize"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["BillingType"].isNull()) + billingType_ = value["BillingType"].asString(); } -GetProjectResult::Project GetProjectResult::getProject()const +std::string GetProjectResult::getProject()const { return project_; } +std::string GetProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetProjectResult::getType()const +{ + return type_; +} + +int GetProjectResult::getCU()const +{ + return cU_; +} + +std::string GetProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string GetProjectResult::getEndpoint()const +{ + return endpoint_; +} + +std::string GetProjectResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetProjectResult::getRegionId()const +{ + return regionId_; +} + +std::string GetProjectResult::getBillingType()const +{ + return billingType_; +} + diff --git a/imm/src/model/GetSetRequest.cc b/imm/src/model/GetSetRequest.cc new file mode 100644 index 000000000..acfa22514 --- /dev/null +++ b/imm/src/model/GetSetRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetSetRequest; + +GetSetRequest::GetSetRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetSet") { + setMethod(HttpRequest::Method::Post); +} + +GetSetRequest::~GetSetRequest() {} + +std::string GetSetRequest::getProject() const { + return project_; +} + +void GetSetRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetSetRequest::getSetId() const { + return setId_; +} + +void GetSetRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/GetSetResult.cc b/imm/src/model/GetSetResult.cc new file mode 100644 index 000000000..3d657abcb --- /dev/null +++ b/imm/src/model/GetSetResult.cc @@ -0,0 +1,100 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetSetResult::GetSetResult() : + ServiceResult() +{} + +GetSetResult::GetSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSetResult::~GetSetResult() +{} + +void GetSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["VideoCount"].isNull()) + videoCount_ = std::stoi(value["VideoCount"].asString()); + if(!value["ImageCount"].isNull()) + imageCount_ = std::stoi(value["ImageCount"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["SetName"].isNull()) + setName_ = value["SetName"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["VideoLength"].isNull()) + videoLength_ = std::stoi(value["VideoLength"].asString()); + if(!value["FaceCount"].isNull()) + faceCount_ = std::stoi(value["FaceCount"].asString()); + +} + +std::string GetSetResult::getModifyTime()const +{ + return modifyTime_; +} + +int GetSetResult::getVideoCount()const +{ + return videoCount_; +} + +int GetSetResult::getImageCount()const +{ + return imageCount_; +} + +std::string GetSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetSetResult::getSetName()const +{ + return setName_; +} + +std::string GetSetResult::getSetId()const +{ + return setId_; +} + +int GetSetResult::getVideoLength()const +{ + return videoLength_; +} + +int GetSetResult::getFaceCount()const +{ + return faceCount_; +} + diff --git a/imm/src/model/GetStoryRequest.cc b/imm/src/model/GetStoryRequest.cc index c897b0fca..18c630a41 100644 --- a/imm/src/model/GetStoryRequest.cc +++ b/imm/src/model/GetStoryRequest.cc @@ -25,15 +25,6 @@ GetStoryRequest::GetStoryRequest() GetStoryRequest::~GetStoryRequest() {} -std::string GetStoryRequest::getDatasetName() const { - return datasetName_; -} - -void GetStoryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string GetStoryRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void GetStoryRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string GetStoryRequest::getDatasetName() const { + return datasetName_; +} + +void GetStoryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string GetStoryRequest::getObjectId() const { return objectId_; } diff --git a/imm/src/model/GetVideoRequest.cc b/imm/src/model/GetVideoRequest.cc new file mode 100644 index 000000000..585d1aab3 --- /dev/null +++ b/imm/src/model/GetVideoRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetVideoRequest; + +GetVideoRequest::GetVideoRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetVideo") { + setMethod(HttpRequest::Method::Post); +} + +GetVideoRequest::~GetVideoRequest() {} + +std::string GetVideoRequest::getProject() const { + return project_; +} + +void GetVideoRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetVideoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetVideoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetVideoRequest::getVideoUri() const { + return videoUri_; +} + +void GetVideoRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +std::string GetVideoRequest::getSetId() const { + return setId_; +} + +void GetVideoRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/GetVideoResult.cc b/imm/src/model/GetVideoResult.cc new file mode 100644 index 000000000..40afb48ea --- /dev/null +++ b/imm/src/model/GetVideoResult.cc @@ -0,0 +1,381 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoResult::GetVideoResult() : + ServiceResult() +{} + +GetVideoResult::GetVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoResult::~GetVideoResult() +{} + +void GetVideoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPersonsNode = value["Persons"]["PersonsItem"]; + for (auto valuePersonsPersonsItem : allPersonsNode) + { + PersonsItem personsObject; + if(!valuePersonsPersonsItem["Gender"].isNull()) + personsObject.gender = valuePersonsPersonsItem["Gender"].asString(); + if(!valuePersonsPersonsItem["AgeConfidence"].isNull()) + personsObject.ageConfidence = std::stof(valuePersonsPersonsItem["AgeConfidence"].asString()); + if(!valuePersonsPersonsItem["GenderConfidence"].isNull()) + personsObject.genderConfidence = std::stof(valuePersonsPersonsItem["GenderConfidence"].asString()); + if(!valuePersonsPersonsItem["Age"].isNull()) + personsObject.age = std::stoi(valuePersonsPersonsItem["Age"].asString()); + if(!valuePersonsPersonsItem["PersonId"].isNull()) + personsObject.personId = valuePersonsPersonsItem["PersonId"].asString(); + persons_.push_back(personsObject); + } + auto allCelebrityNode = value["Celebrity"]["CelebrityItem"]; + for (auto valueCelebrityCelebrityItem : allCelebrityNode) + { + CelebrityItem celebrityObject; + if(!valueCelebrityCelebrityItem["CelebrityNum"].isNull()) + celebrityObject.celebrityNum = std::stoi(valueCelebrityCelebrityItem["CelebrityNum"].asString()); + if(!valueCelebrityCelebrityItem["CelebrityName"].isNull()) + celebrityObject.celebrityName = valueCelebrityCelebrityItem["CelebrityName"].asString(); + if(!valueCelebrityCelebrityItem["CelebrityLibraryName"].isNull()) + celebrityObject.celebrityLibraryName = valueCelebrityCelebrityItem["CelebrityLibraryName"].asString(); + celebrity_.push_back(celebrityObject); + } + auto allVideoTagsNode = value["VideoTags"]["VideoTagsItem"]; + for (auto valueVideoTagsVideoTagsItem : allVideoTagsNode) + { + VideoTagsItem videoTagsObject; + if(!valueVideoTagsVideoTagsItem["TagName"].isNull()) + videoTagsObject.tagName = valueVideoTagsVideoTagsItem["TagName"].asString(); + if(!valueVideoTagsVideoTagsItem["TagConfidence"].isNull()) + videoTagsObject.tagConfidence = std::stof(valueVideoTagsVideoTagsItem["TagConfidence"].asString()); + if(!valueVideoTagsVideoTagsItem["TagLevel"].isNull()) + videoTagsObject.tagLevel = std::stoi(valueVideoTagsVideoTagsItem["TagLevel"].asString()); + if(!valueVideoTagsVideoTagsItem["ParentTagName"].isNull()) + videoTagsObject.parentTagName = valueVideoTagsVideoTagsItem["ParentTagName"].asString(); + videoTags_.push_back(videoTagsObject); + } + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["ProcessStatus"].isNull()) + processStatus_ = value["ProcessStatus"].asString(); + if(!value["VideoWidth"].isNull()) + videoWidth_ = std::stoi(value["VideoWidth"].asString()); + if(!value["SourceType"].isNull()) + sourceType_ = value["SourceType"].asString(); + if(!value["SourceUri"].isNull()) + sourceUri_ = value["SourceUri"].asString(); + if(!value["VideoInfo"].isNull()) + videoInfo_ = value["VideoInfo"].asString(); + if(!value["VideoFrameTagsModifyTime"].isNull()) + videoFrameTagsModifyTime_ = value["VideoFrameTagsModifyTime"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["VideoFacesFailReason"].isNull()) + videoFacesFailReason_ = value["VideoFacesFailReason"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["VideoFacesStatus"].isNull()) + videoFacesStatus_ = value["VideoFacesStatus"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["VideoOCRModifyTime"].isNull()) + videoOCRModifyTime_ = value["VideoOCRModifyTime"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["VideoHeight"].isNull()) + videoHeight_ = std::stoi(value["VideoHeight"].asString()); + if(!value["SourcePosition"].isNull()) + sourcePosition_ = value["SourcePosition"].asString(); + if(!value["VideoOCRFailReason"].isNull()) + videoOCRFailReason_ = value["VideoOCRFailReason"].asString(); + if(!value["VideoFrameTagsStatus"].isNull()) + videoFrameTagsStatus_ = value["VideoFrameTagsStatus"].asString(); + if(!value["VideoTagsFailReason"].isNull()) + videoTagsFailReason_ = value["VideoTagsFailReason"].asString(); + if(!value["VideoTagsModifyTime"].isNull()) + videoTagsModifyTime_ = value["VideoTagsModifyTime"].asString(); + if(!value["VideoOCRStatus"].isNull()) + videoOCRStatus_ = value["VideoOCRStatus"].asString(); + if(!value["VideoFrames"].isNull()) + videoFrames_ = std::stoi(value["VideoFrames"].asString()); + if(!value["ProcessModifyTime"].isNull()) + processModifyTime_ = value["ProcessModifyTime"].asString(); + if(!value["VideoSTTModifyTime"].isNull()) + videoSTTModifyTime_ = value["VideoSTTModifyTime"].asString(); + if(!value["ProcessFailReason"].isNull()) + processFailReason_ = value["ProcessFailReason"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + if(!value["VideoSTTFailReason"].isNull()) + videoSTTFailReason_ = value["VideoSTTFailReason"].asString(); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["VideoFrameTagsFailReason"].isNull()) + videoFrameTagsFailReason_ = value["VideoFrameTagsFailReason"].asString(); + if(!value["VideoFormat"].isNull()) + videoFormat_ = value["VideoFormat"].asString(); + if(!value["VideoSTTStatus"].isNull()) + videoSTTStatus_ = value["VideoSTTStatus"].asString(); + if(!value["VideoFacesModifyTime"].isNull()) + videoFacesModifyTime_ = value["VideoFacesModifyTime"].asString(); + if(!value["CelebrityModifyTime"].isNull()) + celebrityModifyTime_ = value["CelebrityModifyTime"].asString(); + if(!value["VideoDuration"].isNull()) + videoDuration_ = std::stof(value["VideoDuration"].asString()); + if(!value["CelebrityFailReason"].isNull()) + celebrityFailReason_ = value["CelebrityFailReason"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["CelebrityStatus"].isNull()) + celebrityStatus_ = value["CelebrityStatus"].asString(); + if(!value["VideoTagsStatus"].isNull()) + videoTagsStatus_ = value["VideoTagsStatus"].asString(); + if(!value["FileSize"].isNull()) + fileSize_ = std::stoi(value["FileSize"].asString()); + +} + +std::string GetVideoResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetVideoResult::getProcessStatus()const +{ + return processStatus_; +} + +int GetVideoResult::getVideoWidth()const +{ + return videoWidth_; +} + +std::string GetVideoResult::getSourceType()const +{ + return sourceType_; +} + +std::string GetVideoResult::getSourceUri()const +{ + return sourceUri_; +} + +std::string GetVideoResult::getVideoInfo()const +{ + return videoInfo_; +} + +std::string GetVideoResult::getVideoFrameTagsModifyTime()const +{ + return videoFrameTagsModifyTime_; +} + +std::string GetVideoResult::getRemarksA()const +{ + return remarksA_; +} + +std::string GetVideoResult::getVideoFacesFailReason()const +{ + return videoFacesFailReason_; +} + +std::string GetVideoResult::getRemarksB()const +{ + return remarksB_; +} + +std::string GetVideoResult::getVideoFacesStatus()const +{ + return videoFacesStatus_; +} + +std::string GetVideoResult::getRemarksC()const +{ + return remarksC_; +} + +std::string GetVideoResult::getVideoOCRModifyTime()const +{ + return videoOCRModifyTime_; +} + +std::string GetVideoResult::getRemarksD()const +{ + return remarksD_; +} + +int GetVideoResult::getVideoHeight()const +{ + return videoHeight_; +} + +std::vector GetVideoResult::getPersons()const +{ + return persons_; +} + +std::vector GetVideoResult::getCelebrity()const +{ + return celebrity_; +} + +std::string GetVideoResult::getSourcePosition()const +{ + return sourcePosition_; +} + +std::string GetVideoResult::getVideoOCRFailReason()const +{ + return videoOCRFailReason_; +} + +std::string GetVideoResult::getVideoFrameTagsStatus()const +{ + return videoFrameTagsStatus_; +} + +std::string GetVideoResult::getVideoTagsFailReason()const +{ + return videoTagsFailReason_; +} + +std::string GetVideoResult::getVideoTagsModifyTime()const +{ + return videoTagsModifyTime_; +} + +std::string GetVideoResult::getVideoOCRStatus()const +{ + return videoOCRStatus_; +} + +int GetVideoResult::getVideoFrames()const +{ + return videoFrames_; +} + +std::string GetVideoResult::getProcessModifyTime()const +{ + return processModifyTime_; +} + +std::string GetVideoResult::getVideoSTTModifyTime()const +{ + return videoSTTModifyTime_; +} + +std::string GetVideoResult::getProcessFailReason()const +{ + return processFailReason_; +} + +std::string GetVideoResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetVideoResult::getExternalId()const +{ + return externalId_; +} + +std::string GetVideoResult::getVideoSTTFailReason()const +{ + return videoSTTFailReason_; +} + +std::string GetVideoResult::getVideoUri()const +{ + return videoUri_; +} + +std::string GetVideoResult::getVideoFrameTagsFailReason()const +{ + return videoFrameTagsFailReason_; +} + +std::string GetVideoResult::getVideoFormat()const +{ + return videoFormat_; +} + +std::string GetVideoResult::getVideoSTTStatus()const +{ + return videoSTTStatus_; +} + +std::string GetVideoResult::getVideoFacesModifyTime()const +{ + return videoFacesModifyTime_; +} + +std::vector GetVideoResult::getVideoTags()const +{ + return videoTags_; +} + +std::string GetVideoResult::getCelebrityModifyTime()const +{ + return celebrityModifyTime_; +} + +float GetVideoResult::getVideoDuration()const +{ + return videoDuration_; +} + +std::string GetVideoResult::getCelebrityFailReason()const +{ + return celebrityFailReason_; +} + +std::string GetVideoResult::getSetId()const +{ + return setId_; +} + +std::string GetVideoResult::getCelebrityStatus()const +{ + return celebrityStatus_; +} + +std::string GetVideoResult::getVideoTagsStatus()const +{ + return videoTagsStatus_; +} + +int GetVideoResult::getFileSize()const +{ + return fileSize_; +} + diff --git a/imm/src/model/GetVideoTaskRequest.cc b/imm/src/model/GetVideoTaskRequest.cc new file mode 100644 index 000000000..a2cc856d3 --- /dev/null +++ b/imm/src/model/GetVideoTaskRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::GetVideoTaskRequest; + +GetVideoTaskRequest::GetVideoTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "GetVideoTask") { + setMethod(HttpRequest::Method::Post); +} + +GetVideoTaskRequest::~GetVideoTaskRequest() {} + +std::string GetVideoTaskRequest::getProject() const { + return project_; +} + +void GetVideoTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string GetVideoTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetVideoTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetVideoTaskRequest::getTaskId() const { + return taskId_; +} + +void GetVideoTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string GetVideoTaskRequest::getTaskType() const { + return taskType_; +} + +void GetVideoTaskRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + diff --git a/imm/src/model/GetVideoTaskResult.cc b/imm/src/model/GetVideoTaskResult.cc new file mode 100644 index 000000000..f7a93be48 --- /dev/null +++ b/imm/src/model/GetVideoTaskResult.cc @@ -0,0 +1,121 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoTaskResult::GetVideoTaskResult() : + ServiceResult() +{} + +GetVideoTaskResult::GetVideoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoTaskResult::~GetVideoTaskResult() +{} + +void GetVideoTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Progress"].isNull()) + progress_ = std::stoi(value["Progress"].asString()); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["Parameters"].isNull()) + parameters_ = value["Parameters"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string GetVideoTaskResult::getStatus()const +{ + return status_; +} + +int GetVideoTaskResult::getProgress()const +{ + return progress_; +} + +std::string GetVideoTaskResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +std::string GetVideoTaskResult::getParameters()const +{ + return parameters_; +} + +std::string GetVideoTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string GetVideoTaskResult::getEndTime()const +{ + return endTime_; +} + +std::string GetVideoTaskResult::getTaskType()const +{ + return taskType_; +} + +std::string GetVideoTaskResult::getStartTime()const +{ + return startTime_; +} + +std::string GetVideoTaskResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetVideoTaskResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetVideoTaskResult::getResult()const +{ + return result_; +} + diff --git a/imm/src/model/GetWebofficeURLRequest.cc b/imm/src/model/GetWebofficeURLRequest.cc index b5d0a7028..e4ef2624c 100644 --- a/imm/src/model/GetWebofficeURLRequest.cc +++ b/imm/src/model/GetWebofficeURLRequest.cc @@ -19,115 +19,46 @@ using AlibabaCloud::Imm::Model::GetWebofficeURLRequest; GetWebofficeURLRequest::GetWebofficeURLRequest() - : RpcServiceRequest("imm", "2020-09-30", "GetWebofficeURL") { + : RpcServiceRequest("imm", "2017-09-06", "GetWebofficeURL") { setMethod(HttpRequest::Method::Post); } GetWebofficeURLRequest::~GetWebofficeURLRequest() {} -std::string GetWebofficeURLRequest::getReferer() const { - return referer_; +std::string GetWebofficeURLRequest::getSrcType() const { + return srcType_; } -void GetWebofficeURLRequest::setReferer(const std::string &referer) { - referer_ = referer; - setParameter(std::string("Referer"), referer); +void GetWebofficeURLRequest::setSrcType(const std::string &srcType) { + srcType_ = srcType; + setParameter(std::string("SrcType"), srcType); } -std::string GetWebofficeURLRequest::getPassword() const { - return password_; +std::string GetWebofficeURLRequest::getProject() const { + return project_; } -void GetWebofficeURLRequest::setPassword(const std::string &password) { - password_ = password; - setParameter(std::string("Password"), password); +void GetWebofficeURLRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -std::string GetWebofficeURLRequest::getNotifyEndpoint() const { - return notifyEndpoint_; +std::string GetWebofficeURLRequest::getAccessKeyId() const { + return accessKeyId_; } -void GetWebofficeURLRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +void GetWebofficeURLRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string GetWebofficeURLRequest::getProjectName() const { - return projectName_; +std::string GetWebofficeURLRequest::getFile() const { + return file_; } -void GetWebofficeURLRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -GetWebofficeURLRequest::Watermark GetWebofficeURLRequest::getWatermark() const { - return watermark_; -} - -void GetWebofficeURLRequest::setWatermark(const GetWebofficeURLRequest::Watermark &watermark) { - watermark_ = watermark; - setParameter(std::string("Watermark") + ".Rotate", std::to_string(watermark.rotate)); - setParameter(std::string("Watermark") + ".Horizontal", std::to_string(watermark.horizontal)); - setParameter(std::string("Watermark") + ".FillStyle", watermark.fillStyle); - setParameter(std::string("Watermark") + ".Vertical", std::to_string(watermark.vertical)); - setParameter(std::string("Watermark") + ".Type", std::to_string(watermark.type)); - setParameter(std::string("Watermark") + ".Value", watermark.value); - setParameter(std::string("Watermark") + ".Font", watermark.font); -} - -std::string GetWebofficeURLRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void GetWebofficeURLRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string GetWebofficeURLRequest::getFilename() const { - return filename_; -} - -void GetWebofficeURLRequest::setFilename(const std::string &filename) { - filename_ = filename; - setParameter(std::string("Filename"), filename); -} - -std::string GetWebofficeURLRequest::getSourceURI() const { - return sourceURI_; -} - -void GetWebofficeURLRequest::setSourceURI(const std::string &sourceURI) { - sourceURI_ = sourceURI; - setParameter(std::string("SourceURI"), sourceURI); -} - -bool GetWebofficeURLRequest::getExternalUploaded() const { - return externalUploaded_; -} - -void GetWebofficeURLRequest::setExternalUploaded(bool externalUploaded) { - externalUploaded_ = externalUploaded; - setParameter(std::string("ExternalUploaded"), externalUploaded ? "true" : "false"); -} - -std::string GetWebofficeURLRequest::getUserData() const { - return userData_; -} - -void GetWebofficeURLRequest::setUserData(const std::string &userData) { - userData_ = userData; - setParameter(std::string("UserData"), userData); -} - -long GetWebofficeURLRequest::getPreviewPages() const { - return previewPages_; -} - -void GetWebofficeURLRequest::setPreviewPages(long previewPages) { - previewPages_ = previewPages; - setParameter(std::string("PreviewPages"), std::to_string(previewPages)); +void GetWebofficeURLRequest::setFile(const std::string &file) { + file_ = file; + setParameter(std::string("File"), file); } bool GetWebofficeURLRequest::getHidecmb() const { @@ -139,52 +70,57 @@ void GetWebofficeURLRequest::setHidecmb(bool hidecmb) { setParameter(std::string("Hidecmb"), hidecmb ? "true" : "false"); } -bool GetWebofficeURLRequest::getCachePreview() const { - return cachePreview_; +std::string GetWebofficeURLRequest::getNotifyEndpoint() const { + return notifyEndpoint_; } -void GetWebofficeURLRequest::setCachePreview(bool cachePreview) { - cachePreview_ = cachePreview; - setParameter(std::string("CachePreview"), cachePreview ? "true" : "false"); +void GetWebofficeURLRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); } -GetWebofficeURLRequest::Permission GetWebofficeURLRequest::getPermission() const { +std::string GetWebofficeURLRequest::getFileID() const { + return fileID_; +} + +void GetWebofficeURLRequest::setFileID(const std::string &fileID) { + fileID_ = fileID; + setParameter(std::string("FileID"), fileID); +} + +std::string GetWebofficeURLRequest::getWatermark() const { + return watermark_; +} + +void GetWebofficeURLRequest::setWatermark(const std::string &watermark) { + watermark_ = watermark; + setParameter(std::string("Watermark"), watermark); +} + +std::string GetWebofficeURLRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void GetWebofficeURLRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string GetWebofficeURLRequest::getPermission() const { return permission_; } -void GetWebofficeURLRequest::setPermission(const GetWebofficeURLRequest::Permission &permission) { +void GetWebofficeURLRequest::setPermission(const std::string &permission) { permission_ = permission; - setParameter(std::string("Permission") + ".Print", permission.print ? "true" : "false"); - setParameter(std::string("Permission") + ".Readonly", permission.readonly ? "true" : "false"); - setParameter(std::string("Permission") + ".Rename", permission.rename ? "true" : "false"); - setParameter(std::string("Permission") + ".History", permission.history ? "true" : "false"); - setParameter(std::string("Permission") + ".Copy", permission.copy ? "true" : "false"); - setParameter(std::string("Permission") + ".Export", permission.export ? "true" : "false"); + setParameter(std::string("Permission"), permission); } -GetWebofficeURLRequest::CredentialConfig GetWebofficeURLRequest::getCredentialConfig() const { - return credentialConfig_; -} - -void GetWebofficeURLRequest::setCredentialConfig(const GetWebofficeURLRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); -} - -GetWebofficeURLRequest::User GetWebofficeURLRequest::getUser() const { +std::string GetWebofficeURLRequest::getUser() const { return user_; } -void GetWebofficeURLRequest::setUser(const GetWebofficeURLRequest::User &user) { +void GetWebofficeURLRequest::setUser(const std::string &user) { user_ = user; - setParameter(std::string("User") + ".Name", user.name); - setParameter(std::string("User") + ".Id", user.id); - setParameter(std::string("User") + ".Avatar", user.avatar); + setParameter(std::string("User"), user); } diff --git a/imm/src/model/GetWebofficeURLResult.cc b/imm/src/model/GetWebofficeURLResult.cc index cf6ea6444..94e1ca95f 100644 --- a/imm/src/model/GetWebofficeURLResult.cc +++ b/imm/src/model/GetWebofficeURLResult.cc @@ -39,16 +39,16 @@ void GetWebofficeURLResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["WebofficeURL"].isNull()) - webofficeURL_ = value["WebofficeURL"].asString(); - if(!value["AccessToken"].isNull()) - accessToken_ = value["AccessToken"].asString(); if(!value["RefreshToken"].isNull()) refreshToken_ = value["RefreshToken"].asString(); - if(!value["AccessTokenExpiredTime"].isNull()) - accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString(); + if(!value["AccessToken"].isNull()) + accessToken_ = value["AccessToken"].asString(); if(!value["RefreshTokenExpiredTime"].isNull()) refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString(); + if(!value["WebofficeURL"].isNull()) + webofficeURL_ = value["WebofficeURL"].asString(); + if(!value["AccessTokenExpiredTime"].isNull()) + accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString(); } diff --git a/imm/src/model/IndexFileMetaRequest.cc b/imm/src/model/IndexFileMetaRequest.cc index 89a1339dd..fc1feb5d6 100644 --- a/imm/src/model/IndexFileMetaRequest.cc +++ b/imm/src/model/IndexFileMetaRequest.cc @@ -25,6 +25,15 @@ IndexFileMetaRequest::IndexFileMetaRequest() IndexFileMetaRequest::~IndexFileMetaRequest() {} +std::string IndexFileMetaRequest::getProjectName() const { + return projectName_; +} + +void IndexFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + IndexFileMetaRequest::File IndexFileMetaRequest::getFile() const { return file_; } @@ -47,6 +56,15 @@ void IndexFileMetaRequest::setFile(const IndexFileMetaRequest::File &file) { setParameter(std::string("File") + ".ContentType", file.contentType); } +std::string IndexFileMetaRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void IndexFileMetaRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + std::string IndexFileMetaRequest::getNotifyEndpoint() const { return notifyEndpoint_; } @@ -65,21 +83,3 @@ void IndexFileMetaRequest::setDatasetName(const std::string &datasetName) { setParameter(std::string("DatasetName"), datasetName); } -std::string IndexFileMetaRequest::getProjectName() const { - return projectName_; -} - -void IndexFileMetaRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string IndexFileMetaRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void IndexFileMetaRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - diff --git a/imm/src/model/IndexImageRequest.cc b/imm/src/model/IndexImageRequest.cc new file mode 100644 index 000000000..dd10fa518 --- /dev/null +++ b/imm/src/model/IndexImageRequest.cc @@ -0,0 +1,180 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::IndexImageRequest; + +IndexImageRequest::IndexImageRequest() + : RpcServiceRequest("imm", "2017-09-06", "IndexImage") { + setMethod(HttpRequest::Method::Post); +} + +IndexImageRequest::~IndexImageRequest() {} + +std::string IndexImageRequest::getProject() const { + return project_; +} + +void IndexImageRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string IndexImageRequest::getExternalId() const { + return externalId_; +} + +void IndexImageRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string IndexImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void IndexImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string IndexImageRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void IndexImageRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string IndexImageRequest::getSourceType() const { + return sourceType_; +} + +void IndexImageRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string IndexImageRequest::getRealUid() const { + return realUid_; +} + +void IndexImageRequest::setRealUid(const std::string &realUid) { + realUid_ = realUid; + setParameter(std::string("RealUid"), realUid); +} + +std::string IndexImageRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void IndexImageRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string IndexImageRequest::getRemarksB() const { + return remarksB_; +} + +void IndexImageRequest::setRemarksB(const std::string &remarksB) { + remarksB_ = remarksB; + setParameter(std::string("RemarksB"), remarksB); +} + +std::string IndexImageRequest::getRemarksA() const { + return remarksA_; +} + +void IndexImageRequest::setRemarksA(const std::string &remarksA) { + remarksA_ = remarksA; + setParameter(std::string("RemarksA"), remarksA); +} + +std::string IndexImageRequest::getImageUri() const { + return imageUri_; +} + +void IndexImageRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string IndexImageRequest::getRemarksArrayA() const { + return remarksArrayA_; +} + +void IndexImageRequest::setRemarksArrayA(const std::string &remarksArrayA) { + remarksArrayA_ = remarksArrayA; + setParameter(std::string("RemarksArrayA"), remarksArrayA); +} + +std::string IndexImageRequest::getRemarksArrayB() const { + return remarksArrayB_; +} + +void IndexImageRequest::setRemarksArrayB(const std::string &remarksArrayB) { + remarksArrayB_ = remarksArrayB; + setParameter(std::string("RemarksArrayB"), remarksArrayB); +} + +std::string IndexImageRequest::getSourceUri() const { + return sourceUri_; +} + +void IndexImageRequest::setSourceUri(const std::string &sourceUri) { + sourceUri_ = sourceUri; + setParameter(std::string("SourceUri"), sourceUri); +} + +std::string IndexImageRequest::getSourcePosition() const { + return sourcePosition_; +} + +void IndexImageRequest::setSourcePosition(const std::string &sourcePosition) { + sourcePosition_ = sourcePosition; + setParameter(std::string("SourcePosition"), sourcePosition); +} + +std::string IndexImageRequest::getRemarksD() const { + return remarksD_; +} + +void IndexImageRequest::setRemarksD(const std::string &remarksD) { + remarksD_ = remarksD; + setParameter(std::string("RemarksD"), remarksD); +} + +std::string IndexImageRequest::getRemarksC() const { + return remarksC_; +} + +void IndexImageRequest::setRemarksC(const std::string &remarksC) { + remarksC_ = remarksC; + setParameter(std::string("RemarksC"), remarksC); +} + +std::string IndexImageRequest::getSetId() const { + return setId_; +} + +void IndexImageRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/IndexImageResult.cc b/imm/src/model/IndexImageResult.cc new file mode 100644 index 000000000..da48be5d8 --- /dev/null +++ b/imm/src/model/IndexImageResult.cc @@ -0,0 +1,121 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexImageResult::IndexImageResult() : + ServiceResult() +{} + +IndexImageResult::IndexImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexImageResult::~IndexImageResult() +{} + +void IndexImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemarksArrayB"].isNull()) + remarksArrayB_ = value["RemarksArrayB"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + if(!value["RemarksArrayA"].isNull()) + remarksArrayA_ = value["RemarksArrayA"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + +} + +std::string IndexImageResult::getRemarksArrayB()const +{ + return remarksArrayB_; +} + +std::string IndexImageResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string IndexImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string IndexImageResult::getRemarksD()const +{ + return remarksD_; +} + +std::string IndexImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string IndexImageResult::getExternalId()const +{ + return externalId_; +} + +std::string IndexImageResult::getRemarksArrayA()const +{ + return remarksArrayA_; +} + +std::string IndexImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string IndexImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string IndexImageResult::getSetId()const +{ + return setId_; +} + +std::string IndexImageResult::getRemarksB()const +{ + return remarksB_; +} + diff --git a/imm/src/model/IndexVideoRequest.cc b/imm/src/model/IndexVideoRequest.cc new file mode 100644 index 000000000..98e92ea80 --- /dev/null +++ b/imm/src/model/IndexVideoRequest.cc @@ -0,0 +1,180 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::IndexVideoRequest; + +IndexVideoRequest::IndexVideoRequest() + : RpcServiceRequest("imm", "2017-09-06", "IndexVideo") { + setMethod(HttpRequest::Method::Post); +} + +IndexVideoRequest::~IndexVideoRequest() {} + +std::string IndexVideoRequest::getGrabType() const { + return grabType_; +} + +void IndexVideoRequest::setGrabType(const std::string &grabType) { + grabType_ = grabType; + setParameter(std::string("GrabType"), grabType); +} + +std::string IndexVideoRequest::getProject() const { + return project_; +} + +void IndexVideoRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string IndexVideoRequest::getExternalId() const { + return externalId_; +} + +void IndexVideoRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string IndexVideoRequest::getStartTime() const { + return startTime_; +} + +void IndexVideoRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string IndexVideoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void IndexVideoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string IndexVideoRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void IndexVideoRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string IndexVideoRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void IndexVideoRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string IndexVideoRequest::getRemarksB() const { + return remarksB_; +} + +void IndexVideoRequest::setRemarksB(const std::string &remarksB) { + remarksB_ = remarksB; + setParameter(std::string("RemarksB"), remarksB); +} + +std::string IndexVideoRequest::getRemarksA() const { + return remarksA_; +} + +void IndexVideoRequest::setRemarksA(const std::string &remarksA) { + remarksA_ = remarksA; + setParameter(std::string("RemarksA"), remarksA); +} + +std::string IndexVideoRequest::getEndTime() const { + return endTime_; +} + +void IndexVideoRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string IndexVideoRequest::getVideoUri() const { + return videoUri_; +} + +void IndexVideoRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +bool IndexVideoRequest::getSaveType() const { + return saveType_; +} + +void IndexVideoRequest::setSaveType(bool saveType) { + saveType_ = saveType; + setParameter(std::string("SaveType"), saveType ? "true" : "false"); +} + +std::string IndexVideoRequest::getRemarksD() const { + return remarksD_; +} + +void IndexVideoRequest::setRemarksD(const std::string &remarksD) { + remarksD_ = remarksD; + setParameter(std::string("RemarksD"), remarksD); +} + +std::string IndexVideoRequest::getRemarksC() const { + return remarksC_; +} + +void IndexVideoRequest::setRemarksC(const std::string &remarksC) { + remarksC_ = remarksC; + setParameter(std::string("RemarksC"), remarksC); +} + +std::string IndexVideoRequest::getSetId() const { + return setId_; +} + +void IndexVideoRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::string IndexVideoRequest::getInterval() const { + return interval_; +} + +void IndexVideoRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); +} + +std::string IndexVideoRequest::getTgtUri() const { + return tgtUri_; +} + +void IndexVideoRequest::setTgtUri(const std::string &tgtUri) { + tgtUri_ = tgtUri; + setParameter(std::string("TgtUri"), tgtUri); +} + diff --git a/imm/src/model/IndexVideoResult.cc b/imm/src/model/IndexVideoResult.cc new file mode 100644 index 000000000..7bd75f80c --- /dev/null +++ b/imm/src/model/IndexVideoResult.cc @@ -0,0 +1,149 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexVideoResult::IndexVideoResult() : + ServiceResult() +{} + +IndexVideoResult::IndexVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexVideoResult::~IndexVideoResult() +{} + +void IndexVideoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["SaveType"].isNull()) + saveType_ = value["SaveType"].asString() == "true"; + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["GrabType"].isNull()) + grabType_ = value["GrabType"].asString(); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["Interval"].isNull()) + interval_ = std::stof(value["Interval"].asString()); + +} + +std::string IndexVideoResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string IndexVideoResult::getEndTime()const +{ + return endTime_; +} + +bool IndexVideoResult::getSaveType()const +{ + return saveType_; +} + +std::string IndexVideoResult::getCreateTime()const +{ + return createTime_; +} + +std::string IndexVideoResult::getExternalId()const +{ + return externalId_; +} + +std::string IndexVideoResult::getStartTime()const +{ + return startTime_; +} + +std::string IndexVideoResult::getGrabType()const +{ + return grabType_; +} + +std::string IndexVideoResult::getVideoUri()const +{ + return videoUri_; +} + +std::string IndexVideoResult::getRemarksA()const +{ + return remarksA_; +} + +std::string IndexVideoResult::getRemarksB()const +{ + return remarksB_; +} + +std::string IndexVideoResult::getRemarksC()const +{ + return remarksC_; +} + +std::string IndexVideoResult::getRemarksD()const +{ + return remarksD_; +} + +std::string IndexVideoResult::getTgtUri()const +{ + return tgtUri_; +} + +std::string IndexVideoResult::getSetId()const +{ + return setId_; +} + +float IndexVideoResult::getInterval()const +{ + return interval_; +} + diff --git a/imm/src/model/ListBindingsRequest.cc b/imm/src/model/ListBindingsRequest.cc index ec9c7d3c6..21553a312 100644 --- a/imm/src/model/ListBindingsRequest.cc +++ b/imm/src/model/ListBindingsRequest.cc @@ -25,6 +25,15 @@ ListBindingsRequest::ListBindingsRequest() ListBindingsRequest::~ListBindingsRequest() {} +std::string ListBindingsRequest::getProjectName() const { + return projectName_; +} + +void ListBindingsRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + std::string ListBindingsRequest::getNextToken() const { return nextToken_; } @@ -43,15 +52,6 @@ void ListBindingsRequest::setDatasetName(const std::string &datasetName) { setParameter(std::string("DatasetName"), datasetName); } -std::string ListBindingsRequest::getProjectName() const { - return projectName_; -} - -void ListBindingsRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - long ListBindingsRequest::getMaxResults() const { return maxResults_; } diff --git a/imm/src/model/ListDatasetsRequest.cc b/imm/src/model/ListDatasetsRequest.cc index 394b393c1..768a07007 100644 --- a/imm/src/model/ListDatasetsRequest.cc +++ b/imm/src/model/ListDatasetsRequest.cc @@ -25,13 +25,13 @@ ListDatasetsRequest::ListDatasetsRequest() ListDatasetsRequest::~ListDatasetsRequest() {} -std::string ListDatasetsRequest::getPrefix() const { - return prefix_; +std::string ListDatasetsRequest::getProjectName() const { + return projectName_; } -void ListDatasetsRequest::setPrefix(const std::string &prefix) { - prefix_ = prefix; - setParameter(std::string("Prefix"), prefix); +void ListDatasetsRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } std::string ListDatasetsRequest::getNextToken() const { @@ -43,13 +43,13 @@ void ListDatasetsRequest::setNextToken(const std::string &nextToken) { setParameter(std::string("NextToken"), nextToken); } -std::string ListDatasetsRequest::getProjectName() const { - return projectName_; +std::string ListDatasetsRequest::getPrefix() const { + return prefix_; } -void ListDatasetsRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void ListDatasetsRequest::setPrefix(const std::string &prefix) { + prefix_ = prefix; + setParameter(std::string("Prefix"), prefix); } long ListDatasetsRequest::getMaxResults() const { diff --git a/imm/src/model/ListFaceGroupsRequest.cc b/imm/src/model/ListFaceGroupsRequest.cc new file mode 100644 index 000000000..17398d429 --- /dev/null +++ b/imm/src/model/ListFaceGroupsRequest.cc @@ -0,0 +1,153 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListFaceGroupsRequest; + +ListFaceGroupsRequest::ListFaceGroupsRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListFaceGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListFaceGroupsRequest::~ListFaceGroupsRequest() {} + +std::string ListFaceGroupsRequest::getProject() const { + return project_; +} + +void ListFaceGroupsRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListFaceGroupsRequest::getRemarksBQuery() const { + return remarksBQuery_; +} + +void ListFaceGroupsRequest::setRemarksBQuery(const std::string &remarksBQuery) { + remarksBQuery_ = remarksBQuery; + setParameter(std::string("RemarksBQuery"), remarksBQuery); +} + +std::string ListFaceGroupsRequest::getExternalId() const { + return externalId_; +} + +void ListFaceGroupsRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string ListFaceGroupsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListFaceGroupsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListFaceGroupsRequest::getLimit() const { + return limit_; +} + +void ListFaceGroupsRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListFaceGroupsRequest::getRemarksArrayBQuery() const { + return remarksArrayBQuery_; +} + +void ListFaceGroupsRequest::setRemarksArrayBQuery(const std::string &remarksArrayBQuery) { + remarksArrayBQuery_ = remarksArrayBQuery; + setParameter(std::string("RemarksArrayBQuery"), remarksArrayBQuery); +} + +std::string ListFaceGroupsRequest::getOrder() const { + return order_; +} + +void ListFaceGroupsRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string ListFaceGroupsRequest::getRemarksAQuery() const { + return remarksAQuery_; +} + +void ListFaceGroupsRequest::setRemarksAQuery(const std::string &remarksAQuery) { + remarksAQuery_ = remarksAQuery; + setParameter(std::string("RemarksAQuery"), remarksAQuery); +} + +std::string ListFaceGroupsRequest::getOrderBy() const { + return orderBy_; +} + +void ListFaceGroupsRequest::setOrderBy(const std::string &orderBy) { + orderBy_ = orderBy; + setParameter(std::string("OrderBy"), orderBy); +} + +std::string ListFaceGroupsRequest::getRemarksDQuery() const { + return remarksDQuery_; +} + +void ListFaceGroupsRequest::setRemarksDQuery(const std::string &remarksDQuery) { + remarksDQuery_ = remarksDQuery; + setParameter(std::string("RemarksDQuery"), remarksDQuery); +} + +std::string ListFaceGroupsRequest::getRemarksArrayAQuery() const { + return remarksArrayAQuery_; +} + +void ListFaceGroupsRequest::setRemarksArrayAQuery(const std::string &remarksArrayAQuery) { + remarksArrayAQuery_ = remarksArrayAQuery; + setParameter(std::string("RemarksArrayAQuery"), remarksArrayAQuery); +} + +std::string ListFaceGroupsRequest::getMarker() const { + return marker_; +} + +void ListFaceGroupsRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string ListFaceGroupsRequest::getSetId() const { + return setId_; +} + +void ListFaceGroupsRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::string ListFaceGroupsRequest::getRemarksCQuery() const { + return remarksCQuery_; +} + +void ListFaceGroupsRequest::setRemarksCQuery(const std::string &remarksCQuery) { + remarksCQuery_ = remarksCQuery; + setParameter(std::string("RemarksCQuery"), remarksCQuery); +} + diff --git a/imm/src/model/ListFaceGroupsResult.cc b/imm/src/model/ListFaceGroupsResult.cc new file mode 100644 index 000000000..587337407 --- /dev/null +++ b/imm/src/model/ListFaceGroupsResult.cc @@ -0,0 +1,116 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceGroupsResult::ListFaceGroupsResult() : + ServiceResult() +{} + +ListFaceGroupsResult::ListFaceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceGroupsResult::~ListFaceGroupsResult() +{} + +void ListFaceGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFaceGroupsNode = value["FaceGroups"]["FaceGroupsItem"]; + for (auto valueFaceGroupsFaceGroupsItem : allFaceGroupsNode) + { + FaceGroupsItem faceGroupsObject; + if(!valueFaceGroupsFaceGroupsItem["Gender"].isNull()) + faceGroupsObject.gender = valueFaceGroupsFaceGroupsItem["Gender"].asString(); + if(!valueFaceGroupsFaceGroupsItem["CreateTime"].isNull()) + faceGroupsObject.createTime = valueFaceGroupsFaceGroupsItem["CreateTime"].asString(); + if(!valueFaceGroupsFaceGroupsItem["RemarksC"].isNull()) + faceGroupsObject.remarksC = valueFaceGroupsFaceGroupsItem["RemarksC"].asString(); + if(!valueFaceGroupsFaceGroupsItem["FaceCount"].isNull()) + faceGroupsObject.faceCount = std::stoi(valueFaceGroupsFaceGroupsItem["FaceCount"].asString()); + if(!valueFaceGroupsFaceGroupsItem["RemarksArrayB"].isNull()) + faceGroupsObject.remarksArrayB = valueFaceGroupsFaceGroupsItem["RemarksArrayB"].asString(); + if(!valueFaceGroupsFaceGroupsItem["RemarksD"].isNull()) + faceGroupsObject.remarksD = valueFaceGroupsFaceGroupsItem["RemarksD"].asString(); + if(!valueFaceGroupsFaceGroupsItem["MaxAge"].isNull()) + faceGroupsObject.maxAge = std::stof(valueFaceGroupsFaceGroupsItem["MaxAge"].asString()); + if(!valueFaceGroupsFaceGroupsItem["GroupId"].isNull()) + faceGroupsObject.groupId = valueFaceGroupsFaceGroupsItem["GroupId"].asString(); + if(!valueFaceGroupsFaceGroupsItem["GroupName"].isNull()) + faceGroupsObject.groupName = valueFaceGroupsFaceGroupsItem["GroupName"].asString(); + if(!valueFaceGroupsFaceGroupsItem["RemarksA"].isNull()) + faceGroupsObject.remarksA = valueFaceGroupsFaceGroupsItem["RemarksA"].asString(); + if(!valueFaceGroupsFaceGroupsItem["AverageAge"].isNull()) + faceGroupsObject.averageAge = std::stof(valueFaceGroupsFaceGroupsItem["AverageAge"].asString()); + if(!valueFaceGroupsFaceGroupsItem["RemarksArrayA"].isNull()) + faceGroupsObject.remarksArrayA = valueFaceGroupsFaceGroupsItem["RemarksArrayA"].asString(); + if(!valueFaceGroupsFaceGroupsItem["MinAge"].isNull()) + faceGroupsObject.minAge = std::stof(valueFaceGroupsFaceGroupsItem["MinAge"].asString()); + if(!valueFaceGroupsFaceGroupsItem["ImageCount"].isNull()) + faceGroupsObject.imageCount = std::stoi(valueFaceGroupsFaceGroupsItem["ImageCount"].asString()); + if(!valueFaceGroupsFaceGroupsItem["ExternalId"].isNull()) + faceGroupsObject.externalId = valueFaceGroupsFaceGroupsItem["ExternalId"].asString(); + if(!valueFaceGroupsFaceGroupsItem["RemarksB"].isNull()) + faceGroupsObject.remarksB = valueFaceGroupsFaceGroupsItem["RemarksB"].asString(); + if(!valueFaceGroupsFaceGroupsItem["ModifyTime"].isNull()) + faceGroupsObject.modifyTime = valueFaceGroupsFaceGroupsItem["ModifyTime"].asString(); + auto groupCoverFaceNode = value["GroupCoverFace"]; + if(!groupCoverFaceNode["FaceId"].isNull()) + faceGroupsObject.groupCoverFace.faceId = groupCoverFaceNode["FaceId"].asString(); + if(!groupCoverFaceNode["ImageUri"].isNull()) + faceGroupsObject.groupCoverFace.imageUri = groupCoverFaceNode["ImageUri"].asString(); + if(!groupCoverFaceNode["ExternalId"].isNull()) + faceGroupsObject.groupCoverFace.externalId = groupCoverFaceNode["ExternalId"].asString(); + if(!groupCoverFaceNode["ImageHeight"].isNull()) + faceGroupsObject.groupCoverFace.imageHeight = std::stol(groupCoverFaceNode["ImageHeight"].asString()); + if(!groupCoverFaceNode["ImageWidth"].isNull()) + faceGroupsObject.groupCoverFace.imageWidth = std::stol(groupCoverFaceNode["ImageWidth"].asString()); + auto faceBoundaryNode = groupCoverFaceNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + faceGroupsObject.groupCoverFace.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + faceGroupsObject.groupCoverFace.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + faceGroupsObject.groupCoverFace.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + faceGroupsObject.groupCoverFace.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + faceGroups_.push_back(faceGroupsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::string ListFaceGroupsResult::getNextMarker()const +{ + return nextMarker_; +} + +std::vector ListFaceGroupsResult::getFaceGroups()const +{ + return faceGroups_; +} + diff --git a/imm/src/model/ListImagesRequest.cc b/imm/src/model/ListImagesRequest.cc new file mode 100644 index 000000000..566422d53 --- /dev/null +++ b/imm/src/model/ListImagesRequest.cc @@ -0,0 +1,81 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListImagesRequest; + +ListImagesRequest::ListImagesRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListImages") { + setMethod(HttpRequest::Method::Post); +} + +ListImagesRequest::~ListImagesRequest() {} + +std::string ListImagesRequest::getProject() const { + return project_; +} + +void ListImagesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListImagesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListImagesRequest::getLimit() const { + return limit_; +} + +void ListImagesRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListImagesRequest::getMarker() const { + return marker_; +} + +void ListImagesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string ListImagesRequest::getSetId() const { + return setId_; +} + +void ListImagesRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::string ListImagesRequest::getCreateTimeStart() const { + return createTimeStart_; +} + +void ListImagesRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); +} + diff --git a/imm/src/model/ListImagesResult.cc b/imm/src/model/ListImagesResult.cc new file mode 100644 index 000000000..01cadbbea --- /dev/null +++ b/imm/src/model/ListImagesResult.cc @@ -0,0 +1,305 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListImagesResult::ListImagesResult() : + ServiceResult() +{} + +ListImagesResult::ListImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImagesResult::~ListImagesResult() +{} + +void ListImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["ImagesItem"]; + for (auto valueImagesImagesItem : allImagesNode) + { + ImagesItem imagesObject; + if(!valueImagesImagesItem["CroppingSuggestionStatus"].isNull()) + imagesObject.croppingSuggestionStatus = valueImagesImagesItem["CroppingSuggestionStatus"].asString(); + if(!valueImagesImagesItem["ImageQualityModifyTime"].isNull()) + imagesObject.imageQualityModifyTime = valueImagesImagesItem["ImageQualityModifyTime"].asString(); + if(!valueImagesImagesItem["TagsFailReason"].isNull()) + imagesObject.tagsFailReason = valueImagesImagesItem["TagsFailReason"].asString(); + if(!valueImagesImagesItem["RemarksC"].isNull()) + imagesObject.remarksC = valueImagesImagesItem["RemarksC"].asString(); + if(!valueImagesImagesItem["CreateTime"].isNull()) + imagesObject.createTime = valueImagesImagesItem["CreateTime"].asString(); + if(!valueImagesImagesItem["SourceType"].isNull()) + imagesObject.sourceType = valueImagesImagesItem["SourceType"].asString(); + if(!valueImagesImagesItem["FacesFailReason"].isNull()) + imagesObject.facesFailReason = valueImagesImagesItem["FacesFailReason"].asString(); + if(!valueImagesImagesItem["FacesModifyTime"].isNull()) + imagesObject.facesModifyTime = valueImagesImagesItem["FacesModifyTime"].asString(); + if(!valueImagesImagesItem["ImageTime"].isNull()) + imagesObject.imageTime = valueImagesImagesItem["ImageTime"].asString(); + if(!valueImagesImagesItem["OCRModifyTime"].isNull()) + imagesObject.oCRModifyTime = valueImagesImagesItem["OCRModifyTime"].asString(); + if(!valueImagesImagesItem["AddressModifyTime"].isNull()) + imagesObject.addressModifyTime = valueImagesImagesItem["AddressModifyTime"].asString(); + if(!valueImagesImagesItem["ImageQualityFailReason"].isNull()) + imagesObject.imageQualityFailReason = valueImagesImagesItem["ImageQualityFailReason"].asString(); + if(!valueImagesImagesItem["FacesStatus"].isNull()) + imagesObject.facesStatus = valueImagesImagesItem["FacesStatus"].asString(); + if(!valueImagesImagesItem["ImageHeight"].isNull()) + imagesObject.imageHeight = std::stoi(valueImagesImagesItem["ImageHeight"].asString()); + if(!valueImagesImagesItem["RemarksArrayA"].isNull()) + imagesObject.remarksArrayA = valueImagesImagesItem["RemarksArrayA"].asString(); + if(!valueImagesImagesItem["ExternalId"].isNull()) + imagesObject.externalId = valueImagesImagesItem["ExternalId"].asString(); + if(!valueImagesImagesItem["SourceUri"].isNull()) + imagesObject.sourceUri = valueImagesImagesItem["SourceUri"].asString(); + if(!valueImagesImagesItem["ModifyTime"].isNull()) + imagesObject.modifyTime = valueImagesImagesItem["ModifyTime"].asString(); + if(!valueImagesImagesItem["FileSize"].isNull()) + imagesObject.fileSize = std::stoi(valueImagesImagesItem["FileSize"].asString()); + if(!valueImagesImagesItem["SourcePosition"].isNull()) + imagesObject.sourcePosition = valueImagesImagesItem["SourcePosition"].asString(); + if(!valueImagesImagesItem["ImageQualityStatus"].isNull()) + imagesObject.imageQualityStatus = valueImagesImagesItem["ImageQualityStatus"].asString(); + if(!valueImagesImagesItem["OCRFailReason"].isNull()) + imagesObject.oCRFailReason = valueImagesImagesItem["OCRFailReason"].asString(); + if(!valueImagesImagesItem["AddressFailReason"].isNull()) + imagesObject.addressFailReason = valueImagesImagesItem["AddressFailReason"].asString(); + if(!valueImagesImagesItem["CroppingSuggestionModifyTime"].isNull()) + imagesObject.croppingSuggestionModifyTime = valueImagesImagesItem["CroppingSuggestionModifyTime"].asString(); + if(!valueImagesImagesItem["ImageFormat"].isNull()) + imagesObject.imageFormat = valueImagesImagesItem["ImageFormat"].asString(); + if(!valueImagesImagesItem["ImageWidth"].isNull()) + imagesObject.imageWidth = std::stoi(valueImagesImagesItem["ImageWidth"].asString()); + if(!valueImagesImagesItem["RemarksArrayB"].isNull()) + imagesObject.remarksArrayB = valueImagesImagesItem["RemarksArrayB"].asString(); + if(!valueImagesImagesItem["Orientation"].isNull()) + imagesObject.orientation = valueImagesImagesItem["Orientation"].asString(); + if(!valueImagesImagesItem["RemarksD"].isNull()) + imagesObject.remarksD = valueImagesImagesItem["RemarksD"].asString(); + if(!valueImagesImagesItem["TagsStatus"].isNull()) + imagesObject.tagsStatus = valueImagesImagesItem["TagsStatus"].asString(); + if(!valueImagesImagesItem["CroppingSuggestionFailReason"].isNull()) + imagesObject.croppingSuggestionFailReason = valueImagesImagesItem["CroppingSuggestionFailReason"].asString(); + if(!valueImagesImagesItem["RemarksA"].isNull()) + imagesObject.remarksA = valueImagesImagesItem["RemarksA"].asString(); + if(!valueImagesImagesItem["ImageUri"].isNull()) + imagesObject.imageUri = valueImagesImagesItem["ImageUri"].asString(); + if(!valueImagesImagesItem["TagsModifyTime"].isNull()) + imagesObject.tagsModifyTime = valueImagesImagesItem["TagsModifyTime"].asString(); + if(!valueImagesImagesItem["OCRStatus"].isNull()) + imagesObject.oCRStatus = valueImagesImagesItem["OCRStatus"].asString(); + if(!valueImagesImagesItem["AddressStatus"].isNull()) + imagesObject.addressStatus = valueImagesImagesItem["AddressStatus"].asString(); + if(!valueImagesImagesItem["Exif"].isNull()) + imagesObject.exif = valueImagesImagesItem["Exif"].asString(); + if(!valueImagesImagesItem["Location"].isNull()) + imagesObject.location = valueImagesImagesItem["Location"].asString(); + if(!valueImagesImagesItem["RemarksB"].isNull()) + imagesObject.remarksB = valueImagesImagesItem["RemarksB"].asString(); + auto allTagsNode = valueImagesImagesItem["Tags"]["TagsItem"]; + for (auto valueImagesImagesItemTagsTagsItem : allTagsNode) + { + ImagesItem::TagsItem tagsObject; + if(!valueImagesImagesItemTagsTagsItem["TagConfidence"].isNull()) + tagsObject.tagConfidence = std::stof(valueImagesImagesItemTagsTagsItem["TagConfidence"].asString()); + if(!valueImagesImagesItemTagsTagsItem["CentricScore"].isNull()) + tagsObject.centricScore = std::stof(valueImagesImagesItemTagsTagsItem["CentricScore"].asString()); + if(!valueImagesImagesItemTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueImagesImagesItemTagsTagsItem["TagName"].asString(); + if(!valueImagesImagesItemTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueImagesImagesItemTagsTagsItem["TagLevel"].asString()); + if(!valueImagesImagesItemTagsTagsItem["ParentTagName"].isNull()) + tagsObject.parentTagName = valueImagesImagesItemTagsTagsItem["ParentTagName"].asString(); + imagesObject.tags.push_back(tagsObject); + } + auto allOCRNode = valueImagesImagesItem["OCR"]["OCRItem"]; + for (auto valueImagesImagesItemOCROCRItem : allOCRNode) + { + ImagesItem::OCRItem oCRObject; + if(!valueImagesImagesItemOCROCRItem["OCRConfidence"].isNull()) + oCRObject.oCRConfidence = std::stof(valueImagesImagesItemOCROCRItem["OCRConfidence"].asString()); + if(!valueImagesImagesItemOCROCRItem["OCRContents"].isNull()) + oCRObject.oCRContents = valueImagesImagesItemOCROCRItem["OCRContents"].asString(); + auto oCRBoundaryNode = value["OCRBoundary"]; + if(!oCRBoundaryNode["Top"].isNull()) + oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString()); + if(!oCRBoundaryNode["Width"].isNull()) + oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString()); + if(!oCRBoundaryNode["Height"].isNull()) + oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString()); + if(!oCRBoundaryNode["Left"].isNull()) + oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString()); + imagesObject.oCR.push_back(oCRObject); + } + auto allFacesNode = valueImagesImagesItem["Faces"]["FacesItem"]; + for (auto valueImagesImagesItemFacesFacesItem : allFacesNode) + { + ImagesItem::FacesItem facesObject; + if(!valueImagesImagesItemFacesFacesItem["Gender"].isNull()) + facesObject.gender = valueImagesImagesItemFacesFacesItem["Gender"].asString(); + if(!valueImagesImagesItemFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueImagesImagesItemFacesFacesItem["FaceId"].asString(); + if(!valueImagesImagesItemFacesFacesItem["GenderConfidence"].isNull()) + facesObject.genderConfidence = std::stof(valueImagesImagesItemFacesFacesItem["GenderConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["FaceQuality"].isNull()) + facesObject.faceQuality = std::stof(valueImagesImagesItemFacesFacesItem["FaceQuality"].asString()); + if(!valueImagesImagesItemFacesFacesItem["Emotion"].isNull()) + facesObject.emotion = valueImagesImagesItemFacesFacesItem["Emotion"].asString(); + if(!valueImagesImagesItemFacesFacesItem["Age"].isNull()) + facesObject.age = std::stoi(valueImagesImagesItemFacesFacesItem["Age"].asString()); + if(!valueImagesImagesItemFacesFacesItem["FaceConfidence"].isNull()) + facesObject.faceConfidence = std::stof(valueImagesImagesItemFacesFacesItem["FaceConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["EmotionConfidence"].isNull()) + facesObject.emotionConfidence = std::stof(valueImagesImagesItemFacesFacesItem["EmotionConfidence"].asString()); + if(!valueImagesImagesItemFacesFacesItem["Attractive"].isNull()) + facesObject.attractive = std::stof(valueImagesImagesItemFacesFacesItem["Attractive"].asString()); + if(!valueImagesImagesItemFacesFacesItem["GroupId"].isNull()) + facesObject.groupId = valueImagesImagesItemFacesFacesItem["GroupId"].asString(); + auto faceAttributesNode = value["FaceAttributes"]; + if(!faceAttributesNode["GlassesConfidence"].isNull()) + facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString()); + if(!faceAttributesNode["Glasses"].isNull()) + facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString(); + if(!faceAttributesNode["Mask"].isNull()) + facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString(); + if(!faceAttributesNode["BeardConfidence"].isNull()) + facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString()); + if(!faceAttributesNode["MaskConfidence"].isNull()) + facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString()); + if(!faceAttributesNode["Beard"].isNull()) + facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString(); + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto headPoseNode = faceAttributesNode["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + auto emotionDetailsNode = value["EmotionDetails"]; + if(!emotionDetailsNode["HAPPY"].isNull()) + facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString()); + if(!emotionDetailsNode["SURPRISED"].isNull()) + facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString()); + if(!emotionDetailsNode["CALM"].isNull()) + facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString()); + if(!emotionDetailsNode["DISGUSTED"].isNull()) + facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString()); + if(!emotionDetailsNode["ANGRY"].isNull()) + facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString()); + if(!emotionDetailsNode["SAD"].isNull()) + facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString()); + if(!emotionDetailsNode["SCARED"].isNull()) + facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString()); + imagesObject.faces.push_back(facesObject); + } + auto allCroppingSuggestionNode = valueImagesImagesItem["CroppingSuggestion"]["CroppingSuggestionItem"]; + for (auto valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem : allCroppingSuggestionNode) + { + ImagesItem::CroppingSuggestionItem croppingSuggestionObject; + if(!valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["Score"].isNull()) + croppingSuggestionObject.score = std::stof(valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["Score"].asString()); + if(!valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["AspectRatio"].isNull()) + croppingSuggestionObject.aspectRatio = valueImagesImagesItemCroppingSuggestionCroppingSuggestionItem["AspectRatio"].asString(); + auto croppingBoundaryNode = value["CroppingBoundary"]; + if(!croppingBoundaryNode["Top"].isNull()) + croppingSuggestionObject.croppingBoundary.top = std::stoi(croppingBoundaryNode["Top"].asString()); + if(!croppingBoundaryNode["Width"].isNull()) + croppingSuggestionObject.croppingBoundary.width = std::stoi(croppingBoundaryNode["Width"].asString()); + if(!croppingBoundaryNode["Height"].isNull()) + croppingSuggestionObject.croppingBoundary.height = std::stoi(croppingBoundaryNode["Height"].asString()); + if(!croppingBoundaryNode["Left"].isNull()) + croppingSuggestionObject.croppingBoundary.left = std::stoi(croppingBoundaryNode["Left"].asString()); + imagesObject.croppingSuggestion.push_back(croppingSuggestionObject); + } + auto addressNode = value["Address"]; + if(!addressNode["Township"].isNull()) + imagesObject.address.township = addressNode["Township"].asString(); + if(!addressNode["District"].isNull()) + imagesObject.address.district = addressNode["District"].asString(); + if(!addressNode["AddressLine"].isNull()) + imagesObject.address.addressLine = addressNode["AddressLine"].asString(); + if(!addressNode["Country"].isNull()) + imagesObject.address.country = addressNode["Country"].asString(); + if(!addressNode["City"].isNull()) + imagesObject.address.city = addressNode["City"].asString(); + if(!addressNode["Province"].isNull()) + imagesObject.address.province = addressNode["Province"].asString(); + auto imageQualityNode = value["ImageQuality"]; + if(!imageQualityNode["OverallScore"].isNull()) + imagesObject.imageQuality.overallScore = std::stof(imageQualityNode["OverallScore"].asString()); + if(!imageQualityNode["Color"].isNull()) + imagesObject.imageQuality.color = std::stof(imageQualityNode["Color"].asString()); + if(!imageQualityNode["ColorScore"].isNull()) + imagesObject.imageQuality.colorScore = std::stof(imageQualityNode["ColorScore"].asString()); + if(!imageQualityNode["ContrastScore"].isNull()) + imagesObject.imageQuality.contrastScore = std::stof(imageQualityNode["ContrastScore"].asString()); + if(!imageQualityNode["Contrast"].isNull()) + imagesObject.imageQuality.contrast = std::stof(imageQualityNode["Contrast"].asString()); + if(!imageQualityNode["ExposureScore"].isNull()) + imagesObject.imageQuality.exposureScore = std::stof(imageQualityNode["ExposureScore"].asString()); + if(!imageQualityNode["ClarityScore"].isNull()) + imagesObject.imageQuality.clarityScore = std::stof(imageQualityNode["ClarityScore"].asString()); + if(!imageQualityNode["Clarity"].isNull()) + imagesObject.imageQuality.clarity = std::stof(imageQualityNode["Clarity"].asString()); + if(!imageQualityNode["Exposure"].isNull()) + imagesObject.imageQuality.exposure = std::stof(imageQualityNode["Exposure"].asString()); + if(!imageQualityNode["CompositionScore"].isNull()) + imagesObject.imageQuality.compositionScore = std::stof(imageQualityNode["CompositionScore"].asString()); + images_.push_back(imagesObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::vector ListImagesResult::getImages()const +{ + return images_; +} + +std::string ListImagesResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListImagesResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/ListOfficeConversionTaskRequest.cc b/imm/src/model/ListOfficeConversionTaskRequest.cc new file mode 100644 index 000000000..e62314298 --- /dev/null +++ b/imm/src/model/ListOfficeConversionTaskRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListOfficeConversionTaskRequest; + +ListOfficeConversionTaskRequest::ListOfficeConversionTaskRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListOfficeConversionTask") { + setMethod(HttpRequest::Method::Post); +} + +ListOfficeConversionTaskRequest::~ListOfficeConversionTaskRequest() {} + +int ListOfficeConversionTaskRequest::getMaxKeys() const { + return maxKeys_; +} + +void ListOfficeConversionTaskRequest::setMaxKeys(int maxKeys) { + maxKeys_ = maxKeys; + setParameter(std::string("MaxKeys"), std::to_string(maxKeys)); +} + +std::string ListOfficeConversionTaskRequest::getProject() const { + return project_; +} + +void ListOfficeConversionTaskRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListOfficeConversionTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListOfficeConversionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListOfficeConversionTaskRequest::getMarker() const { + return marker_; +} + +void ListOfficeConversionTaskRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + diff --git a/imm/src/model/ListOfficeConversionTaskResult.cc b/imm/src/model/ListOfficeConversionTaskResult.cc new file mode 100644 index 000000000..24c9cfc1b --- /dev/null +++ b/imm/src/model/ListOfficeConversionTaskResult.cc @@ -0,0 +1,88 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult() : + ServiceResult() +{} + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOfficeConversionTaskResult::~ListOfficeConversionTaskResult() +{} + +void ListOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTasksNode = value["Tasks"]["TasksItem"]; + for (auto valueTasksTasksItem : allTasksNode) + { + TasksItem tasksObject; + if(!valueTasksTasksItem["Status"].isNull()) + tasksObject.status = valueTasksTasksItem["Status"].asString(); + if(!valueTasksTasksItem["Percent"].isNull()) + tasksObject.percent = std::stoi(valueTasksTasksItem["Percent"].asString()); + if(!valueTasksTasksItem["FinishTime"].isNull()) + tasksObject.finishTime = valueTasksTasksItem["FinishTime"].asString(); + if(!valueTasksTasksItem["CreateTime"].isNull()) + tasksObject.createTime = valueTasksTasksItem["CreateTime"].asString(); + if(!valueTasksTasksItem["PageCount"].isNull()) + tasksObject.pageCount = std::stoi(valueTasksTasksItem["PageCount"].asString()); + if(!valueTasksTasksItem["NotifyTopicName"].isNull()) + tasksObject.notifyTopicName = valueTasksTasksItem["NotifyTopicName"].asString(); + if(!valueTasksTasksItem["NotifyEndpoint"].isNull()) + tasksObject.notifyEndpoint = valueTasksTasksItem["NotifyEndpoint"].asString(); + if(!valueTasksTasksItem["TgtUri"].isNull()) + tasksObject.tgtUri = valueTasksTasksItem["TgtUri"].asString(); + if(!valueTasksTasksItem["TgtType"].isNull()) + tasksObject.tgtType = valueTasksTasksItem["TgtType"].asString(); + if(!valueTasksTasksItem["SrcUri"].isNull()) + tasksObject.srcUri = valueTasksTasksItem["SrcUri"].asString(); + if(!valueTasksTasksItem["ImageSpec"].isNull()) + tasksObject.imageSpec = valueTasksTasksItem["ImageSpec"].asString(); + if(!valueTasksTasksItem["ExternalID"].isNull()) + tasksObject.externalID = valueTasksTasksItem["ExternalID"].asString(); + if(!valueTasksTasksItem["TaskId"].isNull()) + tasksObject.taskId = valueTasksTasksItem["TaskId"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListOfficeConversionTaskResult::getTasks()const +{ + return tasks_; +} + +std::string ListOfficeConversionTaskResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListProjectsRequest.cc b/imm/src/model/ListProjectsRequest.cc index 4448e0a99..ab67729d5 100644 --- a/imm/src/model/ListProjectsRequest.cc +++ b/imm/src/model/ListProjectsRequest.cc @@ -19,36 +19,36 @@ using AlibabaCloud::Imm::Model::ListProjectsRequest; ListProjectsRequest::ListProjectsRequest() - : RpcServiceRequest("imm", "2020-09-30", "ListProjects") { + : RpcServiceRequest("imm", "2017-09-06", "ListProjects") { setMethod(HttpRequest::Method::Post); } ListProjectsRequest::~ListProjectsRequest() {} -std::string ListProjectsRequest::getPrefix() const { - return prefix_; +int ListProjectsRequest::getMaxKeys() const { + return maxKeys_; } -void ListProjectsRequest::setPrefix(const std::string &prefix) { - prefix_ = prefix; - setParameter(std::string("Prefix"), prefix); +void ListProjectsRequest::setMaxKeys(int maxKeys) { + maxKeys_ = maxKeys; + setParameter(std::string("MaxKeys"), std::to_string(maxKeys)); } -std::string ListProjectsRequest::getNextToken() const { - return nextToken_; +std::string ListProjectsRequest::getAccessKeyId() const { + return accessKeyId_; } -void ListProjectsRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); +void ListProjectsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -long ListProjectsRequest::getMaxResults() const { - return maxResults_; +std::string ListProjectsRequest::getMarker() const { + return marker_; } -void ListProjectsRequest::setMaxResults(long maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); +void ListProjectsRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); } diff --git a/imm/src/model/ListProjectsResult.cc b/imm/src/model/ListProjectsResult.cc index 4984f1c2d..9bfbd3da6 100644 --- a/imm/src/model/ListProjectsResult.cc +++ b/imm/src/model/ListProjectsResult.cc @@ -43,54 +43,38 @@ void ListProjectsResult::parse(const std::string &payload) for (auto valueProjectsProjectsItem : allProjectsNode) { ProjectsItem projectsObject; - if(!valueProjectsProjectsItem["ProjectName"].isNull()) - projectsObject.projectName = valueProjectsProjectsItem["ProjectName"].asString(); - if(!valueProjectsProjectsItem["ServiceRole"].isNull()) - projectsObject.serviceRole = valueProjectsProjectsItem["ServiceRole"].asString(); - if(!valueProjectsProjectsItem["TemplateId"].isNull()) - projectsObject.templateId = valueProjectsProjectsItem["TemplateId"].asString(); + if(!valueProjectsProjectsItem["Type"].isNull()) + projectsObject.type = valueProjectsProjectsItem["Type"].asString(); + if(!valueProjectsProjectsItem["CU"].isNull()) + projectsObject.cU = std::stoi(valueProjectsProjectsItem["CU"].asString()); if(!valueProjectsProjectsItem["CreateTime"].isNull()) projectsObject.createTime = valueProjectsProjectsItem["CreateTime"].asString(); - if(!valueProjectsProjectsItem["UpdateTime"].isNull()) - projectsObject.updateTime = valueProjectsProjectsItem["UpdateTime"].asString(); - if(!valueProjectsProjectsItem["Description"].isNull()) - projectsObject.description = valueProjectsProjectsItem["Description"].asString(); - if(!valueProjectsProjectsItem["ProjectQueriesPerSecond"].isNull()) - projectsObject.projectQueriesPerSecond = std::stol(valueProjectsProjectsItem["ProjectQueriesPerSecond"].asString()); - if(!valueProjectsProjectsItem["EngineConcurrency"].isNull()) - projectsObject.engineConcurrency = std::stol(valueProjectsProjectsItem["EngineConcurrency"].asString()); - if(!valueProjectsProjectsItem["ProjectMaxDatasetCount"].isNull()) - projectsObject.projectMaxDatasetCount = std::stol(valueProjectsProjectsItem["ProjectMaxDatasetCount"].asString()); - if(!valueProjectsProjectsItem["DatasetMaxBindCount"].isNull()) - projectsObject.datasetMaxBindCount = std::stol(valueProjectsProjectsItem["DatasetMaxBindCount"].asString()); - if(!valueProjectsProjectsItem["DatasetMaxFileCount"].isNull()) - projectsObject.datasetMaxFileCount = std::stol(valueProjectsProjectsItem["DatasetMaxFileCount"].asString()); - if(!valueProjectsProjectsItem["DatasetMaxEntityCount"].isNull()) - projectsObject.datasetMaxEntityCount = std::stol(valueProjectsProjectsItem["DatasetMaxEntityCount"].asString()); - if(!valueProjectsProjectsItem["DatasetMaxRelationCount"].isNull()) - projectsObject.datasetMaxRelationCount = std::stol(valueProjectsProjectsItem["DatasetMaxRelationCount"].asString()); - if(!valueProjectsProjectsItem["DatasetMaxTotalFileSize"].isNull()) - projectsObject.datasetMaxTotalFileSize = std::stol(valueProjectsProjectsItem["DatasetMaxTotalFileSize"].asString()); - if(!valueProjectsProjectsItem["DatasetCount"].isNull()) - projectsObject.datasetCount = std::stol(valueProjectsProjectsItem["DatasetCount"].asString()); - if(!valueProjectsProjectsItem["FileCount"].isNull()) - projectsObject.fileCount = std::stol(valueProjectsProjectsItem["FileCount"].asString()); - if(!valueProjectsProjectsItem["TotalFileSize"].isNull()) - projectsObject.totalFileSize = std::stol(valueProjectsProjectsItem["TotalFileSize"].asString()); + if(!valueProjectsProjectsItem["ServiceRole"].isNull()) + projectsObject.serviceRole = valueProjectsProjectsItem["ServiceRole"].asString(); + if(!valueProjectsProjectsItem["Endpoint"].isNull()) + projectsObject.endpoint = valueProjectsProjectsItem["Endpoint"].asString(); + if(!valueProjectsProjectsItem["Project"].isNull()) + projectsObject.project = valueProjectsProjectsItem["Project"].asString(); + if(!valueProjectsProjectsItem["RegionId"].isNull()) + projectsObject.regionId = valueProjectsProjectsItem["RegionId"].asString(); + if(!valueProjectsProjectsItem["BillingType"].isNull()) + projectsObject.billingType = valueProjectsProjectsItem["BillingType"].asString(); + if(!valueProjectsProjectsItem["ModifyTime"].isNull()) + projectsObject.modifyTime = valueProjectsProjectsItem["ModifyTime"].asString(); projects_.push_back(projectsObject); } - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); } -std::string ListProjectsResult::getNextToken()const -{ - return nextToken_; -} - std::vector ListProjectsResult::getProjects()const { return projects_; } +std::string ListProjectsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListSetTagsRequest.cc b/imm/src/model/ListSetTagsRequest.cc new file mode 100644 index 000000000..1fc4d4f4e --- /dev/null +++ b/imm/src/model/ListSetTagsRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListSetTagsRequest; + +ListSetTagsRequest::ListSetTagsRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListSetTags") { + setMethod(HttpRequest::Method::Post); +} + +ListSetTagsRequest::~ListSetTagsRequest() {} + +std::string ListSetTagsRequest::getProject() const { + return project_; +} + +void ListSetTagsRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListSetTagsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListSetTagsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListSetTagsRequest::getSetId() const { + return setId_; +} + +void ListSetTagsRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/ListSetTagsResult.cc b/imm/src/model/ListSetTagsResult.cc new file mode 100644 index 000000000..0ea1bf369 --- /dev/null +++ b/imm/src/model/ListSetTagsResult.cc @@ -0,0 +1,68 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetTagsResult::ListSetTagsResult() : + ServiceResult() +{} + +ListSetTagsResult::ListSetTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetTagsResult::~ListSetTagsResult() +{} + +void ListSetTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["TagsItem"]; + for (auto valueTagsTagsItem : allTagsNode) + { + TagsItem tagsObject; + if(!valueTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueTagsTagsItem["TagName"].asString(); + if(!valueTagsTagsItem["TagCount"].isNull()) + tagsObject.tagCount = std::stoi(valueTagsTagsItem["TagCount"].asString()); + if(!valueTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueTagsTagsItem["TagLevel"].asString()); + tags_.push_back(tagsObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string ListSetTagsResult::getSetId()const +{ + return setId_; +} + +std::vector ListSetTagsResult::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/ListSetsRequest.cc b/imm/src/model/ListSetsRequest.cc new file mode 100644 index 000000000..f8ac3c251 --- /dev/null +++ b/imm/src/model/ListSetsRequest.cc @@ -0,0 +1,54 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListSetsRequest; + +ListSetsRequest::ListSetsRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListSets") { + setMethod(HttpRequest::Method::Post); +} + +ListSetsRequest::~ListSetsRequest() {} + +std::string ListSetsRequest::getProject() const { + return project_; +} + +void ListSetsRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListSetsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListSetsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListSetsRequest::getMarker() const { + return marker_; +} + +void ListSetsRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + diff --git a/imm/src/model/ListSetsResult.cc b/imm/src/model/ListSetsResult.cc new file mode 100644 index 000000000..80a65605b --- /dev/null +++ b/imm/src/model/ListSetsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetsResult::ListSetsResult() : + ServiceResult() +{} + +ListSetsResult::ListSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetsResult::~ListSetsResult() +{} + +void ListSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSetsNode = value["Sets"]["SetsItem"]; + for (auto valueSetsSetsItem : allSetsNode) + { + SetsItem setsObject; + if(!valueSetsSetsItem["VideoCount"].isNull()) + setsObject.videoCount = std::stoi(valueSetsSetsItem["VideoCount"].asString()); + if(!valueSetsSetsItem["CreateTime"].isNull()) + setsObject.createTime = valueSetsSetsItem["CreateTime"].asString(); + if(!valueSetsSetsItem["VideoLength"].isNull()) + setsObject.videoLength = std::stoi(valueSetsSetsItem["VideoLength"].asString()); + if(!valueSetsSetsItem["SetId"].isNull()) + setsObject.setId = valueSetsSetsItem["SetId"].asString(); + if(!valueSetsSetsItem["ImageCount"].isNull()) + setsObject.imageCount = std::stoi(valueSetsSetsItem["ImageCount"].asString()); + if(!valueSetsSetsItem["FaceCount"].isNull()) + setsObject.faceCount = std::stoi(valueSetsSetsItem["FaceCount"].asString()); + if(!valueSetsSetsItem["SetName"].isNull()) + setsObject.setName = valueSetsSetsItem["SetName"].asString(); + if(!valueSetsSetsItem["ModifyTime"].isNull()) + setsObject.modifyTime = valueSetsSetsItem["ModifyTime"].asString(); + sets_.push_back(setsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListSetsResult::getSets()const +{ + return sets_; +} + +std::string ListSetsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListTasksRequest.cc b/imm/src/model/ListTasksRequest.cc index 87ff87fdf..66b8a1104 100644 --- a/imm/src/model/ListTasksRequest.cc +++ b/imm/src/model/ListTasksRequest.cc @@ -25,14 +25,13 @@ ListTasksRequest::ListTasksRequest() ListTasksRequest::~ListTasksRequest() {} -ListTasksRequest::StartTimeRange ListTasksRequest::getStartTimeRange() const { - return startTimeRange_; +std::string ListTasksRequest::getProjectName() const { + return projectName_; } -void ListTasksRequest::setStartTimeRange(const ListTasksRequest::StartTimeRange &startTimeRange) { - startTimeRange_ = startTimeRange; - setParameter(std::string("StartTimeRange") + ".Start", startTimeRange.start); - setParameter(std::string("StartTimeRange") + ".End", startTimeRange.end); +void ListTasksRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } std::string ListTasksRequest::getNextToken() const { @@ -44,24 +43,6 @@ void ListTasksRequest::setNextToken(const std::string &nextToken) { setParameter(std::string("NextToken"), nextToken); } -std::string ListTasksRequest::getOrder() const { - return order_; -} - -void ListTasksRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string ListTasksRequest::getProjectName() const { - return projectName_; -} - -void ListTasksRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - std::vector ListTasksRequest::getTaskTypes() const { return taskTypes_; } @@ -83,15 +64,6 @@ void ListTasksRequest::setEndTimeRange(const ListTasksRequest::EndTimeRange &end setParameter(std::string("EndTimeRange") + ".End", endTimeRange.end); } -std::string ListTasksRequest::getSort() const { - return sort_; -} - -void ListTasksRequest::setSort(const std::string &sort) { - sort_ = sort; - setParameter(std::string("Sort"), sort); -} - long ListTasksRequest::getMaxResults() const { return maxResults_; } @@ -110,6 +82,24 @@ void ListTasksRequest::setTagSelector(const std::string &tagSelector) { setParameter(std::string("TagSelector"), tagSelector); } +std::string ListTasksRequest::getSort() const { + return sort_; +} + +void ListTasksRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("Sort"), sort); +} + +std::string ListTasksRequest::getOrder() const { + return order_; +} + +void ListTasksRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + std::string ListTasksRequest::getStatus() const { return status_; } @@ -119,3 +109,13 @@ void ListTasksRequest::setStatus(const std::string &status) { setParameter(std::string("Status"), status); } +ListTasksRequest::StartTimeRange ListTasksRequest::getStartTimeRange() const { + return startTimeRange_; +} + +void ListTasksRequest::setStartTimeRange(const ListTasksRequest::StartTimeRange &startTimeRange) { + startTimeRange_ = startTimeRange; + setParameter(std::string("StartTimeRange") + ".Start", startTimeRange.start); + setParameter(std::string("StartTimeRange") + ".End", startTimeRange.end); +} + diff --git a/imm/src/model/ListVideoAudiosRequest.cc b/imm/src/model/ListVideoAudiosRequest.cc new file mode 100644 index 000000000..00aa0da5b --- /dev/null +++ b/imm/src/model/ListVideoAudiosRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListVideoAudiosRequest; + +ListVideoAudiosRequest::ListVideoAudiosRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListVideoAudios") { + setMethod(HttpRequest::Method::Post); +} + +ListVideoAudiosRequest::~ListVideoAudiosRequest() {} + +std::string ListVideoAudiosRequest::getProject() const { + return project_; +} + +void ListVideoAudiosRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListVideoAudiosRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListVideoAudiosRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListVideoAudiosRequest::getVideoUri() const { + return videoUri_; +} + +void ListVideoAudiosRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +std::string ListVideoAudiosRequest::getMarker() const { + return marker_; +} + +void ListVideoAudiosRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string ListVideoAudiosRequest::getSetId() const { + return setId_; +} + +void ListVideoAudiosRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/ListVideoAudiosResult.cc b/imm/src/model/ListVideoAudiosResult.cc new file mode 100644 index 000000000..3c1d993ee --- /dev/null +++ b/imm/src/model/ListVideoAudiosResult.cc @@ -0,0 +1,144 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoAudiosResult::ListVideoAudiosResult() : + ServiceResult() +{} + +ListVideoAudiosResult::ListVideoAudiosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoAudiosResult::~ListVideoAudiosResult() +{} + +void ListVideoAudiosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAudiosNode = value["Audios"]["AudiosItem"]; + for (auto valueAudiosAudiosItem : allAudiosNode) + { + AudiosItem audiosObject; + if(!valueAudiosAudiosItem["SourcePosition"].isNull()) + audiosObject.sourcePosition = valueAudiosAudiosItem["SourcePosition"].asString(); + if(!valueAudiosAudiosItem["CreateTime"].isNull()) + audiosObject.createTime = valueAudiosAudiosItem["CreateTime"].asString(); + if(!valueAudiosAudiosItem["RemarksC"].isNull()) + audiosObject.remarksC = valueAudiosAudiosItem["RemarksC"].asString(); + if(!valueAudiosAudiosItem["AudioDuration"].isNull()) + audiosObject.audioDuration = std::stof(valueAudiosAudiosItem["AudioDuration"].asString()); + if(!valueAudiosAudiosItem["SourceType"].isNull()) + audiosObject.sourceType = valueAudiosAudiosItem["SourceType"].asString(); + if(!valueAudiosAudiosItem["AudioTextsStatus"].isNull()) + audiosObject.audioTextsStatus = valueAudiosAudiosItem["AudioTextsStatus"].asString(); + if(!valueAudiosAudiosItem["AudioFormat"].isNull()) + audiosObject.audioFormat = valueAudiosAudiosItem["AudioFormat"].asString(); + if(!valueAudiosAudiosItem["RemarksD"].isNull()) + audiosObject.remarksD = valueAudiosAudiosItem["RemarksD"].asString(); + if(!valueAudiosAudiosItem["ProcessModifyTime"].isNull()) + audiosObject.processModifyTime = valueAudiosAudiosItem["ProcessModifyTime"].asString(); + if(!valueAudiosAudiosItem["ProcessFailReason"].isNull()) + audiosObject.processFailReason = valueAudiosAudiosItem["ProcessFailReason"].asString(); + if(!valueAudiosAudiosItem["AudioUri"].isNull()) + audiosObject.audioUri = valueAudiosAudiosItem["AudioUri"].asString(); + if(!valueAudiosAudiosItem["AudioRate"].isNull()) + audiosObject.audioRate = std::stoi(valueAudiosAudiosItem["AudioRate"].asString()); + if(!valueAudiosAudiosItem["AudioTextsModifyTime"].isNull()) + audiosObject.audioTextsModifyTime = valueAudiosAudiosItem["AudioTextsModifyTime"].asString(); + if(!valueAudiosAudiosItem["RemarksA"].isNull()) + audiosObject.remarksA = valueAudiosAudiosItem["RemarksA"].asString(); + if(!valueAudiosAudiosItem["ExternalId"].isNull()) + audiosObject.externalId = valueAudiosAudiosItem["ExternalId"].asString(); + if(!valueAudiosAudiosItem["SourceUri"].isNull()) + audiosObject.sourceUri = valueAudiosAudiosItem["SourceUri"].asString(); + if(!valueAudiosAudiosItem["ProcessStatus"].isNull()) + audiosObject.processStatus = valueAudiosAudiosItem["ProcessStatus"].asString(); + if(!valueAudiosAudiosItem["AudioTextsFailReason"].isNull()) + audiosObject.audioTextsFailReason = valueAudiosAudiosItem["AudioTextsFailReason"].asString(); + if(!valueAudiosAudiosItem["RemarksB"].isNull()) + audiosObject.remarksB = valueAudiosAudiosItem["RemarksB"].asString(); + if(!valueAudiosAudiosItem["FileSize"].isNull()) + audiosObject.fileSize = std::stoi(valueAudiosAudiosItem["FileSize"].asString()); + if(!valueAudiosAudiosItem["ModifyTime"].isNull()) + audiosObject.modifyTime = valueAudiosAudiosItem["ModifyTime"].asString(); + auto allAudioTextsNode = valueAudiosAudiosItem["AudioTexts"]["AudioTextsItem"]; + for (auto valueAudiosAudiosItemAudioTextsAudioTextsItem : allAudioTextsNode) + { + AudiosItem::AudioTextsItem audioTextsObject; + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["EndTime"].isNull()) + audioTextsObject.endTime = std::stof(valueAudiosAudiosItemAudioTextsAudioTextsItem["EndTime"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["Library"].isNull()) + audioTextsObject.library = valueAudiosAudiosItemAudioTextsAudioTextsItem["Library"].asString(); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["Confidence"].isNull()) + audioTextsObject.confidence = std::stof(valueAudiosAudiosItemAudioTextsAudioTextsItem["Confidence"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["BeginTime"].isNull()) + audioTextsObject.beginTime = std::stof(valueAudiosAudiosItemAudioTextsAudioTextsItem["BeginTime"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["ChannelId"].isNull()) + audioTextsObject.channelId = std::stoi(valueAudiosAudiosItemAudioTextsAudioTextsItem["ChannelId"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["EmotionValue"].isNull()) + audioTextsObject.emotionValue = std::stof(valueAudiosAudiosItemAudioTextsAudioTextsItem["EmotionValue"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["SpeechRate"].isNull()) + audioTextsObject.speechRate = std::stoi(valueAudiosAudiosItemAudioTextsAudioTextsItem["SpeechRate"].asString()); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["Text"].isNull()) + audioTextsObject.text = valueAudiosAudiosItemAudioTextsAudioTextsItem["Text"].asString(); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["Person"].isNull()) + audioTextsObject.person = valueAudiosAudiosItemAudioTextsAudioTextsItem["Person"].asString(); + if(!valueAudiosAudiosItemAudioTextsAudioTextsItem["SilenceDuration"].isNull()) + audioTextsObject.silenceDuration = std::stof(valueAudiosAudiosItemAudioTextsAudioTextsItem["SilenceDuration"].asString()); + audiosObject.audioTexts.push_back(audioTextsObject); + } + audios_.push_back(audiosObject); + } + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::vector ListVideoAudiosResult::getAudios()const +{ + return audios_; +} + +std::string ListVideoAudiosResult::getVideoUri()const +{ + return videoUri_; +} + +std::string ListVideoAudiosResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListVideoAudiosResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/ListVideoFramesRequest.cc b/imm/src/model/ListVideoFramesRequest.cc new file mode 100644 index 000000000..75ae9b444 --- /dev/null +++ b/imm/src/model/ListVideoFramesRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListVideoFramesRequest; + +ListVideoFramesRequest::ListVideoFramesRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListVideoFrames") { + setMethod(HttpRequest::Method::Post); +} + +ListVideoFramesRequest::~ListVideoFramesRequest() {} + +std::string ListVideoFramesRequest::getProject() const { + return project_; +} + +void ListVideoFramesRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListVideoFramesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListVideoFramesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListVideoFramesRequest::getVideoUri() const { + return videoUri_; +} + +void ListVideoFramesRequest::setVideoUri(const std::string &videoUri) { + videoUri_ = videoUri; + setParameter(std::string("VideoUri"), videoUri); +} + +std::string ListVideoFramesRequest::getMarker() const { + return marker_; +} + +void ListVideoFramesRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string ListVideoFramesRequest::getSetId() const { + return setId_; +} + +void ListVideoFramesRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/ListVideoFramesResult.cc b/imm/src/model/ListVideoFramesResult.cc new file mode 100644 index 000000000..62a65a8f0 --- /dev/null +++ b/imm/src/model/ListVideoFramesResult.cc @@ -0,0 +1,235 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoFramesResult::ListVideoFramesResult() : + ServiceResult() +{} + +ListVideoFramesResult::ListVideoFramesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoFramesResult::~ListVideoFramesResult() +{} + +void ListVideoFramesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFramesNode = value["Frames"]["FramesItem"]; + for (auto valueFramesFramesItem : allFramesNode) + { + FramesItem framesObject; + if(!valueFramesFramesItem["TagsFailReason"].isNull()) + framesObject.tagsFailReason = valueFramesFramesItem["TagsFailReason"].asString(); + if(!valueFramesFramesItem["RemarksC"].isNull()) + framesObject.remarksC = valueFramesFramesItem["RemarksC"].asString(); + if(!valueFramesFramesItem["CreateTime"].isNull()) + framesObject.createTime = valueFramesFramesItem["CreateTime"].asString(); + if(!valueFramesFramesItem["SourceType"].isNull()) + framesObject.sourceType = valueFramesFramesItem["SourceType"].asString(); + if(!valueFramesFramesItem["FacesFailReason"].isNull()) + framesObject.facesFailReason = valueFramesFramesItem["FacesFailReason"].asString(); + if(!valueFramesFramesItem["FacesModifyTime"].isNull()) + framesObject.facesModifyTime = valueFramesFramesItem["FacesModifyTime"].asString(); + if(!valueFramesFramesItem["ImageTime"].isNull()) + framesObject.imageTime = valueFramesFramesItem["ImageTime"].asString(); + if(!valueFramesFramesItem["OCRModifyTime"].isNull()) + framesObject.oCRModifyTime = valueFramesFramesItem["OCRModifyTime"].asString(); + if(!valueFramesFramesItem["FacesStatus"].isNull()) + framesObject.facesStatus = valueFramesFramesItem["FacesStatus"].asString(); + if(!valueFramesFramesItem["ImageHeight"].isNull()) + framesObject.imageHeight = std::stoi(valueFramesFramesItem["ImageHeight"].asString()); + if(!valueFramesFramesItem["ExternalId"].isNull()) + framesObject.externalId = valueFramesFramesItem["ExternalId"].asString(); + if(!valueFramesFramesItem["SourceUri"].isNull()) + framesObject.sourceUri = valueFramesFramesItem["SourceUri"].asString(); + if(!valueFramesFramesItem["FileSize"].isNull()) + framesObject.fileSize = std::stoi(valueFramesFramesItem["FileSize"].asString()); + if(!valueFramesFramesItem["ModifyTime"].isNull()) + framesObject.modifyTime = valueFramesFramesItem["ModifyTime"].asString(); + if(!valueFramesFramesItem["SourcePosition"].isNull()) + framesObject.sourcePosition = valueFramesFramesItem["SourcePosition"].asString(); + if(!valueFramesFramesItem["OCRFailReason"].isNull()) + framesObject.oCRFailReason = valueFramesFramesItem["OCRFailReason"].asString(); + if(!valueFramesFramesItem["ImageFormat"].isNull()) + framesObject.imageFormat = valueFramesFramesItem["ImageFormat"].asString(); + if(!valueFramesFramesItem["ImageWidth"].isNull()) + framesObject.imageWidth = std::stoi(valueFramesFramesItem["ImageWidth"].asString()); + if(!valueFramesFramesItem["Orientation"].isNull()) + framesObject.orientation = valueFramesFramesItem["Orientation"].asString(); + if(!valueFramesFramesItem["RemarksD"].isNull()) + framesObject.remarksD = valueFramesFramesItem["RemarksD"].asString(); + if(!valueFramesFramesItem["TagsStatus"].isNull()) + framesObject.tagsStatus = valueFramesFramesItem["TagsStatus"].asString(); + if(!valueFramesFramesItem["RemarksA"].isNull()) + framesObject.remarksA = valueFramesFramesItem["RemarksA"].asString(); + if(!valueFramesFramesItem["ImageUri"].isNull()) + framesObject.imageUri = valueFramesFramesItem["ImageUri"].asString(); + if(!valueFramesFramesItem["TagsModifyTime"].isNull()) + framesObject.tagsModifyTime = valueFramesFramesItem["TagsModifyTime"].asString(); + if(!valueFramesFramesItem["OCRStatus"].isNull()) + framesObject.oCRStatus = valueFramesFramesItem["OCRStatus"].asString(); + if(!valueFramesFramesItem["Exif"].isNull()) + framesObject.exif = valueFramesFramesItem["Exif"].asString(); + if(!valueFramesFramesItem["Location"].isNull()) + framesObject.location = valueFramesFramesItem["Location"].asString(); + if(!valueFramesFramesItem["RemarksB"].isNull()) + framesObject.remarksB = valueFramesFramesItem["RemarksB"].asString(); + auto allTagsNode = valueFramesFramesItem["Tags"]["TagsItem"]; + for (auto valueFramesFramesItemTagsTagsItem : allTagsNode) + { + FramesItem::TagsItem tagsObject; + if(!valueFramesFramesItemTagsTagsItem["TagConfidence"].isNull()) + tagsObject.tagConfidence = std::stof(valueFramesFramesItemTagsTagsItem["TagConfidence"].asString()); + if(!valueFramesFramesItemTagsTagsItem["TagName"].isNull()) + tagsObject.tagName = valueFramesFramesItemTagsTagsItem["TagName"].asString(); + if(!valueFramesFramesItemTagsTagsItem["TagLevel"].isNull()) + tagsObject.tagLevel = std::stoi(valueFramesFramesItemTagsTagsItem["TagLevel"].asString()); + if(!valueFramesFramesItemTagsTagsItem["ParentTagName"].isNull()) + tagsObject.parentTagName = valueFramesFramesItemTagsTagsItem["ParentTagName"].asString(); + framesObject.tags.push_back(tagsObject); + } + auto allOCRNode = valueFramesFramesItem["OCR"]["OCRItem"]; + for (auto valueFramesFramesItemOCROCRItem : allOCRNode) + { + FramesItem::OCRItem oCRObject; + if(!valueFramesFramesItemOCROCRItem["OCRConfidence"].isNull()) + oCRObject.oCRConfidence = std::stof(valueFramesFramesItemOCROCRItem["OCRConfidence"].asString()); + if(!valueFramesFramesItemOCROCRItem["OCRContents"].isNull()) + oCRObject.oCRContents = valueFramesFramesItemOCROCRItem["OCRContents"].asString(); + auto oCRBoundaryNode = value["OCRBoundary"]; + if(!oCRBoundaryNode["Top"].isNull()) + oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString()); + if(!oCRBoundaryNode["Width"].isNull()) + oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString()); + if(!oCRBoundaryNode["Height"].isNull()) + oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString()); + if(!oCRBoundaryNode["Left"].isNull()) + oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString()); + framesObject.oCR.push_back(oCRObject); + } + auto allFacesNode = valueFramesFramesItem["Faces"]["FacesItem"]; + for (auto valueFramesFramesItemFacesFacesItem : allFacesNode) + { + FramesItem::FacesItem facesObject; + if(!valueFramesFramesItemFacesFacesItem["Gender"].isNull()) + facesObject.gender = valueFramesFramesItemFacesFacesItem["Gender"].asString(); + if(!valueFramesFramesItemFacesFacesItem["FaceId"].isNull()) + facesObject.faceId = valueFramesFramesItemFacesFacesItem["FaceId"].asString(); + if(!valueFramesFramesItemFacesFacesItem["GenderConfidence"].isNull()) + facesObject.genderConfidence = std::stof(valueFramesFramesItemFacesFacesItem["GenderConfidence"].asString()); + if(!valueFramesFramesItemFacesFacesItem["FaceQuality"].isNull()) + facesObject.faceQuality = std::stof(valueFramesFramesItemFacesFacesItem["FaceQuality"].asString()); + if(!valueFramesFramesItemFacesFacesItem["Emotion"].isNull()) + facesObject.emotion = valueFramesFramesItemFacesFacesItem["Emotion"].asString(); + if(!valueFramesFramesItemFacesFacesItem["Age"].isNull()) + facesObject.age = std::stoi(valueFramesFramesItemFacesFacesItem["Age"].asString()); + if(!valueFramesFramesItemFacesFacesItem["FaceConfidence"].isNull()) + facesObject.faceConfidence = std::stof(valueFramesFramesItemFacesFacesItem["FaceConfidence"].asString()); + if(!valueFramesFramesItemFacesFacesItem["EmotionConfidence"].isNull()) + facesObject.emotionConfidence = std::stof(valueFramesFramesItemFacesFacesItem["EmotionConfidence"].asString()); + if(!valueFramesFramesItemFacesFacesItem["Attractive"].isNull()) + facesObject.attractive = std::stof(valueFramesFramesItemFacesFacesItem["Attractive"].asString()); + if(!valueFramesFramesItemFacesFacesItem["GroupId"].isNull()) + facesObject.groupId = valueFramesFramesItemFacesFacesItem["GroupId"].asString(); + auto faceAttributesNode = value["FaceAttributes"]; + if(!faceAttributesNode["GlassesConfidence"].isNull()) + facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString()); + if(!faceAttributesNode["Glasses"].isNull()) + facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString(); + if(!faceAttributesNode["Mask"].isNull()) + facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString(); + if(!faceAttributesNode["BeardConfidence"].isNull()) + facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString()); + if(!faceAttributesNode["MaskConfidence"].isNull()) + facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString()); + if(!faceAttributesNode["Beard"].isNull()) + facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString(); + auto faceBoundaryNode = faceAttributesNode["FaceBoundary"]; + if(!faceBoundaryNode["Top"].isNull()) + facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString()); + if(!faceBoundaryNode["Width"].isNull()) + facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString()); + if(!faceBoundaryNode["Height"].isNull()) + facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString()); + if(!faceBoundaryNode["Left"].isNull()) + facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString()); + auto headPoseNode = faceAttributesNode["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + auto emotionDetailsNode = value["EmotionDetails"]; + if(!emotionDetailsNode["HAPPY"].isNull()) + facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString()); + if(!emotionDetailsNode["SURPRISED"].isNull()) + facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString()); + if(!emotionDetailsNode["CALM"].isNull()) + facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString()); + if(!emotionDetailsNode["DISGUSTED"].isNull()) + facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString()); + if(!emotionDetailsNode["ANGRY"].isNull()) + facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString()); + if(!emotionDetailsNode["SAD"].isNull()) + facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString()); + if(!emotionDetailsNode["SCARED"].isNull()) + facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString()); + framesObject.faces.push_back(facesObject); + } + frames_.push_back(framesObject); + } + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::vector ListVideoFramesResult::getFrames()const +{ + return frames_; +} + +std::string ListVideoFramesResult::getVideoUri()const +{ + return videoUri_; +} + +std::string ListVideoFramesResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListVideoFramesResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/ListVideoTasksRequest.cc b/imm/src/model/ListVideoTasksRequest.cc new file mode 100644 index 000000000..3e7df1891 --- /dev/null +++ b/imm/src/model/ListVideoTasksRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListVideoTasksRequest; + +ListVideoTasksRequest::ListVideoTasksRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListVideoTasks") { + setMethod(HttpRequest::Method::Post); +} + +ListVideoTasksRequest::~ListVideoTasksRequest() {} + +int ListVideoTasksRequest::getMaxKeys() const { + return maxKeys_; +} + +void ListVideoTasksRequest::setMaxKeys(int maxKeys) { + maxKeys_ = maxKeys; + setParameter(std::string("MaxKeys"), std::to_string(maxKeys)); +} + +std::string ListVideoTasksRequest::getProject() const { + return project_; +} + +void ListVideoTasksRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListVideoTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListVideoTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListVideoTasksRequest::getTaskType() const { + return taskType_; +} + +void ListVideoTasksRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +std::string ListVideoTasksRequest::getMarker() const { + return marker_; +} + +void ListVideoTasksRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + diff --git a/imm/src/model/ListVideoTasksResult.cc b/imm/src/model/ListVideoTasksResult.cc new file mode 100644 index 000000000..8a5bdcf7b --- /dev/null +++ b/imm/src/model/ListVideoTasksResult.cc @@ -0,0 +1,84 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoTasksResult::ListVideoTasksResult() : + ServiceResult() +{} + +ListVideoTasksResult::ListVideoTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoTasksResult::~ListVideoTasksResult() +{} + +void ListVideoTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTasksNode = value["Tasks"]["TasksItem"]; + for (auto valueTasksTasksItem : allTasksNode) + { + TasksItem tasksObject; + if(!valueTasksTasksItem["EndTime"].isNull()) + tasksObject.endTime = valueTasksTasksItem["EndTime"].asString(); + if(!valueTasksTasksItem["Status"].isNull()) + tasksObject.status = valueTasksTasksItem["Status"].asString(); + if(!valueTasksTasksItem["StartTime"].isNull()) + tasksObject.startTime = valueTasksTasksItem["StartTime"].asString(); + if(!valueTasksTasksItem["TaskType"].isNull()) + tasksObject.taskType = valueTasksTasksItem["TaskType"].asString(); + if(!valueTasksTasksItem["Progress"].isNull()) + tasksObject.progress = std::stoi(valueTasksTasksItem["Progress"].asString()); + if(!valueTasksTasksItem["NotifyEndpoint"].isNull()) + tasksObject.notifyEndpoint = valueTasksTasksItem["NotifyEndpoint"].asString(); + if(!valueTasksTasksItem["ErrorMessage"].isNull()) + tasksObject.errorMessage = valueTasksTasksItem["ErrorMessage"].asString(); + if(!valueTasksTasksItem["Parameters"].isNull()) + tasksObject.parameters = valueTasksTasksItem["Parameters"].asString(); + if(!valueTasksTasksItem["Result"].isNull()) + tasksObject.result = valueTasksTasksItem["Result"].asString(); + if(!valueTasksTasksItem["TaskId"].isNull()) + tasksObject.taskId = valueTasksTasksItem["TaskId"].asString(); + if(!valueTasksTasksItem["NotifyTopicName"].isNull()) + tasksObject.notifyTopicName = valueTasksTasksItem["NotifyTopicName"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListVideoTasksResult::getTasks()const +{ + return tasks_; +} + +std::string ListVideoTasksResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListVideosRequest.cc b/imm/src/model/ListVideosRequest.cc new file mode 100644 index 000000000..ca4c52b7d --- /dev/null +++ b/imm/src/model/ListVideosRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::ListVideosRequest; + +ListVideosRequest::ListVideosRequest() + : RpcServiceRequest("imm", "2017-09-06", "ListVideos") { + setMethod(HttpRequest::Method::Post); +} + +ListVideosRequest::~ListVideosRequest() {} + +std::string ListVideosRequest::getProject() const { + return project_; +} + +void ListVideosRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string ListVideosRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListVideosRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListVideosRequest::getMarker() const { + return marker_; +} + +void ListVideosRequest::setMarker(const std::string &marker) { + marker_ = marker; + setParameter(std::string("Marker"), marker); +} + +std::string ListVideosRequest::getSetId() const { + return setId_; +} + +void ListVideosRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::string ListVideosRequest::getCreateTimeStart() const { + return createTimeStart_; +} + +void ListVideosRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); +} + diff --git a/imm/src/model/ListVideosResult.cc b/imm/src/model/ListVideosResult.cc new file mode 100644 index 000000000..765ba27f4 --- /dev/null +++ b/imm/src/model/ListVideosResult.cc @@ -0,0 +1,163 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideosResult::ListVideosResult() : + ServiceResult() +{} + +ListVideosResult::ListVideosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideosResult::~ListVideosResult() +{} + +void ListVideosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVideosNode = value["Videos"]["VideosItem"]; + for (auto valueVideosVideosItem : allVideosNode) + { + VideosItem videosObject; + if(!valueVideosVideosItem["CreateTime"].isNull()) + videosObject.createTime = valueVideosVideosItem["CreateTime"].asString(); + if(!valueVideosVideosItem["RemarksC"].isNull()) + videosObject.remarksC = valueVideosVideosItem["RemarksC"].asString(); + if(!valueVideosVideosItem["VideoTagsFailReason"].isNull()) + videosObject.videoTagsFailReason = valueVideosVideosItem["VideoTagsFailReason"].asString(); + if(!valueVideosVideosItem["SourceType"].isNull()) + videosObject.sourceType = valueVideosVideosItem["SourceType"].asString(); + if(!valueVideosVideosItem["CelebrityModifyTime"].isNull()) + videosObject.celebrityModifyTime = valueVideosVideosItem["CelebrityModifyTime"].asString(); + if(!valueVideosVideosItem["VideoDuration"].isNull()) + videosObject.videoDuration = std::stof(valueVideosVideosItem["VideoDuration"].asString()); + if(!valueVideosVideosItem["ProcessModifyTime"].isNull()) + videosObject.processModifyTime = valueVideosVideosItem["ProcessModifyTime"].asString(); + if(!valueVideosVideosItem["VideoFrames"].isNull()) + videosObject.videoFrames = std::stoi(valueVideosVideosItem["VideoFrames"].asString()); + if(!valueVideosVideosItem["VideoTagsStatus"].isNull()) + videosObject.videoTagsStatus = valueVideosVideosItem["VideoTagsStatus"].asString(); + if(!valueVideosVideosItem["ExternalId"].isNull()) + videosObject.externalId = valueVideosVideosItem["ExternalId"].asString(); + if(!valueVideosVideosItem["SourceUri"].isNull()) + videosObject.sourceUri = valueVideosVideosItem["SourceUri"].asString(); + if(!valueVideosVideosItem["FileSize"].isNull()) + videosObject.fileSize = std::stoi(valueVideosVideosItem["FileSize"].asString()); + if(!valueVideosVideosItem["ModifyTime"].isNull()) + videosObject.modifyTime = valueVideosVideosItem["ModifyTime"].asString(); + if(!valueVideosVideosItem["CelebrityFailReason"].isNull()) + videosObject.celebrityFailReason = valueVideosVideosItem["CelebrityFailReason"].asString(); + if(!valueVideosVideosItem["SourcePosition"].isNull()) + videosObject.sourcePosition = valueVideosVideosItem["SourcePosition"].asString(); + if(!valueVideosVideosItem["VideoWidth"].isNull()) + videosObject.videoWidth = std::stoi(valueVideosVideosItem["VideoWidth"].asString()); + if(!valueVideosVideosItem["VideoFormat"].isNull()) + videosObject.videoFormat = valueVideosVideosItem["VideoFormat"].asString(); + if(!valueVideosVideosItem["VideoHeight"].isNull()) + videosObject.videoHeight = std::stoi(valueVideosVideosItem["VideoHeight"].asString()); + if(!valueVideosVideosItem["RemarksD"].isNull()) + videosObject.remarksD = valueVideosVideosItem["RemarksD"].asString(); + if(!valueVideosVideosItem["VideoUri"].isNull()) + videosObject.videoUri = valueVideosVideosItem["VideoUri"].asString(); + if(!valueVideosVideosItem["ProcessFailReason"].isNull()) + videosObject.processFailReason = valueVideosVideosItem["ProcessFailReason"].asString(); + if(!valueVideosVideosItem["VideoTagsModifyTime"].isNull()) + videosObject.videoTagsModifyTime = valueVideosVideosItem["VideoTagsModifyTime"].asString(); + if(!valueVideosVideosItem["RemarksA"].isNull()) + videosObject.remarksA = valueVideosVideosItem["RemarksA"].asString(); + if(!valueVideosVideosItem["CelebrityStatus"].isNull()) + videosObject.celebrityStatus = valueVideosVideosItem["CelebrityStatus"].asString(); + if(!valueVideosVideosItem["ProcessStatus"].isNull()) + videosObject.processStatus = valueVideosVideosItem["ProcessStatus"].asString(); + if(!valueVideosVideosItem["RemarksB"].isNull()) + videosObject.remarksB = valueVideosVideosItem["RemarksB"].asString(); + auto allVideoTagsNode = valueVideosVideosItem["VideoTags"]["VideoTagsItem"]; + for (auto valueVideosVideosItemVideoTagsVideoTagsItem : allVideoTagsNode) + { + VideosItem::VideoTagsItem videoTagsObject; + if(!valueVideosVideosItemVideoTagsVideoTagsItem["TagName"].isNull()) + videoTagsObject.tagName = valueVideosVideosItemVideoTagsVideoTagsItem["TagName"].asString(); + if(!valueVideosVideosItemVideoTagsVideoTagsItem["TagConfidence"].isNull()) + videoTagsObject.tagConfidence = std::stof(valueVideosVideosItemVideoTagsVideoTagsItem["TagConfidence"].asString()); + if(!valueVideosVideosItemVideoTagsVideoTagsItem["TagLevel"].isNull()) + videoTagsObject.tagLevel = std::stoi(valueVideosVideosItemVideoTagsVideoTagsItem["TagLevel"].asString()); + if(!valueVideosVideosItemVideoTagsVideoTagsItem["ParentTagName"].isNull()) + videoTagsObject.parentTagName = valueVideosVideosItemVideoTagsVideoTagsItem["ParentTagName"].asString(); + videosObject.videoTags.push_back(videoTagsObject); + } + auto allCelebrityNode = valueVideosVideosItem["Celebrity"]["CelebrityItem"]; + for (auto valueVideosVideosItemCelebrityCelebrityItem : allCelebrityNode) + { + VideosItem::CelebrityItem celebrityObject; + if(!valueVideosVideosItemCelebrityCelebrityItem["CelebrityNum"].isNull()) + celebrityObject.celebrityNum = std::stoi(valueVideosVideosItemCelebrityCelebrityItem["CelebrityNum"].asString()); + if(!valueVideosVideosItemCelebrityCelebrityItem["CelebrityName"].isNull()) + celebrityObject.celebrityName = valueVideosVideosItemCelebrityCelebrityItem["CelebrityName"].asString(); + if(!valueVideosVideosItemCelebrityCelebrityItem["CelebrityLibraryName"].isNull()) + celebrityObject.celebrityLibraryName = valueVideosVideosItemCelebrityCelebrityItem["CelebrityLibraryName"].asString(); + videosObject.celebrity.push_back(celebrityObject); + } + auto allPersonsNode = valueVideosVideosItem["Persons"]["PersonsItem"]; + for (auto valueVideosVideosItemPersonsPersonsItem : allPersonsNode) + { + VideosItem::PersonsItem personsObject; + if(!valueVideosVideosItemPersonsPersonsItem["Gender"].isNull()) + personsObject.gender = valueVideosVideosItemPersonsPersonsItem["Gender"].asString(); + if(!valueVideosVideosItemPersonsPersonsItem["AgeConfidence"].isNull()) + personsObject.ageConfidence = std::stof(valueVideosVideosItemPersonsPersonsItem["AgeConfidence"].asString()); + if(!valueVideosVideosItemPersonsPersonsItem["GenderConfidence"].isNull()) + personsObject.genderConfidence = std::stof(valueVideosVideosItemPersonsPersonsItem["GenderConfidence"].asString()); + if(!valueVideosVideosItemPersonsPersonsItem["Age"].isNull()) + personsObject.age = std::stoi(valueVideosVideosItemPersonsPersonsItem["Age"].asString()); + if(!valueVideosVideosItemPersonsPersonsItem["PersonId"].isNull()) + personsObject.personId = valueVideosVideosItemPersonsPersonsItem["PersonId"].asString(); + videosObject.persons.push_back(personsObject); + } + videos_.push_back(videosObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string ListVideosResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListVideosResult::getSetId()const +{ + return setId_; +} + +std::vector ListVideosResult::getVideos()const +{ + return videos_; +} + diff --git a/imm/src/model/MergeFigureClustersRequest.cc b/imm/src/model/MergeFigureClustersRequest.cc index 14462e137..2937fb7f4 100644 --- a/imm/src/model/MergeFigureClustersRequest.cc +++ b/imm/src/model/MergeFigureClustersRequest.cc @@ -25,24 +25,6 @@ MergeFigureClustersRequest::MergeFigureClustersRequest() MergeFigureClustersRequest::~MergeFigureClustersRequest() {} -std::string MergeFigureClustersRequest::getNotifyTopicEndpoint() const { - return notifyTopicEndpoint_; -} - -void MergeFigureClustersRequest::setNotifyTopicEndpoint(const std::string ¬ifyTopicEndpoint) { - notifyTopicEndpoint_ = notifyTopicEndpoint; - setParameter(std::string("NotifyTopicEndpoint"), notifyTopicEndpoint); -} - -std::string MergeFigureClustersRequest::getDatasetName() const { - return datasetName_; -} - -void MergeFigureClustersRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string MergeFigureClustersRequest::getCustomMessage() const { return customMessage_; } @@ -79,6 +61,15 @@ void MergeFigureClustersRequest::setNotifyTopicName(const std::string ¬ifyTop setParameter(std::string("NotifyTopicName"), notifyTopicName); } +std::string MergeFigureClustersRequest::getDatasetName() const { + return datasetName_; +} + +void MergeFigureClustersRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string MergeFigureClustersRequest::getFigureType() const { return figureType_; } @@ -97,3 +88,12 @@ void MergeFigureClustersRequest::setClusterIdTo(const std::string &clusterIdTo) setParameter(std::string("ClusterIdTo"), clusterIdTo); } +std::string MergeFigureClustersRequest::getNotifyTopicEndpoint() const { + return notifyTopicEndpoint_; +} + +void MergeFigureClustersRequest::setNotifyTopicEndpoint(const std::string ¬ifyTopicEndpoint) { + notifyTopicEndpoint_ = notifyTopicEndpoint; + setParameter(std::string("NotifyTopicEndpoint"), notifyTopicEndpoint); +} + diff --git a/imm/src/model/OpenImmServiceRequest.cc b/imm/src/model/OpenImmServiceRequest.cc new file mode 100644 index 000000000..98e390df6 --- /dev/null +++ b/imm/src/model/OpenImmServiceRequest.cc @@ -0,0 +1,36 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::OpenImmServiceRequest; + +OpenImmServiceRequest::OpenImmServiceRequest() + : RpcServiceRequest("imm", "2017-09-06", "OpenImmService") { + setMethod(HttpRequest::Method::Post); +} + +OpenImmServiceRequest::~OpenImmServiceRequest() {} + +long OpenImmServiceRequest::getOwnerId() const { + return ownerId_; +} + +void OpenImmServiceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/imm/src/model/OpenImmServiceResult.cc b/imm/src/model/OpenImmServiceResult.cc new file mode 100644 index 000000000..6610042b2 --- /dev/null +++ b/imm/src/model/OpenImmServiceResult.cc @@ -0,0 +1,51 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +OpenImmServiceResult::OpenImmServiceResult() : + ServiceResult() +{} + +OpenImmServiceResult::OpenImmServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenImmServiceResult::~OpenImmServiceResult() +{} + +void OpenImmServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string OpenImmServiceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/imm/src/model/PutProjectRequest.cc b/imm/src/model/PutProjectRequest.cc new file mode 100644 index 000000000..0f3203d22 --- /dev/null +++ b/imm/src/model/PutProjectRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::PutProjectRequest; + +PutProjectRequest::PutProjectRequest() + : RpcServiceRequest("imm", "2017-09-06", "PutProject") { + setMethod(HttpRequest::Method::Post); +} + +PutProjectRequest::~PutProjectRequest() {} + +std::string PutProjectRequest::getProject() const { + return project_; +} + +void PutProjectRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string PutProjectRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PutProjectRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PutProjectRequest::getBCTaskVersion() const { + return bCTaskVersion_; +} + +void PutProjectRequest::setBCTaskVersion(const std::string &bCTaskVersion) { + bCTaskVersion_ = bCTaskVersion; + setParameter(std::string("BCTaskVersion"), bCTaskVersion); +} + +std::string PutProjectRequest::getServiceRole() const { + return serviceRole_; +} + +void PutProjectRequest::setServiceRole(const std::string &serviceRole) { + serviceRole_ = serviceRole; + setParameter(std::string("ServiceRole"), serviceRole); +} + diff --git a/imm/src/model/PutProjectResult.cc b/imm/src/model/PutProjectResult.cc new file mode 100644 index 000000000..a2971d091 --- /dev/null +++ b/imm/src/model/PutProjectResult.cc @@ -0,0 +1,107 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +PutProjectResult::PutProjectResult() : + ServiceResult() +{} + +PutProjectResult::PutProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutProjectResult::~PutProjectResult() +{} + +void PutProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["BillingType"].isNull()) + billingType_ = value["BillingType"].asString(); + +} + +std::string PutProjectResult::getProject()const +{ + return project_; +} + +std::string PutProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string PutProjectResult::getType()const +{ + return type_; +} + +int PutProjectResult::getCU()const +{ + return cU_; +} + +std::string PutProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string PutProjectResult::getEndpoint()const +{ + return endpoint_; +} + +std::string PutProjectResult::getCreateTime()const +{ + return createTime_; +} + +std::string PutProjectResult::getRegionId()const +{ + return regionId_; +} + +std::string PutProjectResult::getBillingType()const +{ + return billingType_; +} + diff --git a/imm/src/model/QueryFigureClustersRequest.cc b/imm/src/model/QueryFigureClustersRequest.cc index 881a47d1e..0940048bf 100644 --- a/imm/src/model/QueryFigureClustersRequest.cc +++ b/imm/src/model/QueryFigureClustersRequest.cc @@ -25,6 +25,15 @@ QueryFigureClustersRequest::QueryFigureClustersRequest() QueryFigureClustersRequest::~QueryFigureClustersRequest() {} +std::string QueryFigureClustersRequest::getProjectName() const { + return projectName_; +} + +void QueryFigureClustersRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + std::string QueryFigureClustersRequest::getCustomLabels() const { return customLabels_; } @@ -52,22 +61,13 @@ void QueryFigureClustersRequest::setDatasetName(const std::string &datasetName) setParameter(std::string("DatasetName"), datasetName); } -std::string QueryFigureClustersRequest::getOrder() const { - return order_; +long QueryFigureClustersRequest::getMaxResults() const { + return maxResults_; } -void QueryFigureClustersRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - -std::string QueryFigureClustersRequest::getProjectName() const { - return projectName_; -} - -void QueryFigureClustersRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); +void QueryFigureClustersRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } std::string QueryFigureClustersRequest::getSort() const { @@ -79,12 +79,12 @@ void QueryFigureClustersRequest::setSort(const std::string &sort) { setParameter(std::string("Sort"), sort); } -long QueryFigureClustersRequest::getMaxResults() const { - return maxResults_; +std::string QueryFigureClustersRequest::getOrder() const { + return order_; } -void QueryFigureClustersRequest::setMaxResults(long maxResults) { - maxResults_ = maxResults; - setParameter(std::string("MaxResults"), std::to_string(maxResults)); +void QueryFigureClustersRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); } diff --git a/imm/src/model/QueryStoriesRequest.cc b/imm/src/model/QueryStoriesRequest.cc index fdaf7d8e9..a99f4f379 100644 --- a/imm/src/model/QueryStoriesRequest.cc +++ b/imm/src/model/QueryStoriesRequest.cc @@ -36,33 +36,6 @@ void QueryStoriesRequest::setFigureClusterIds(const std::vector + +using AlibabaCloud::Imm::Model::RefreshOfficePreviewTokenRequest; + +RefreshOfficePreviewTokenRequest::RefreshOfficePreviewTokenRequest() + : RpcServiceRequest("imm", "2017-09-06", "RefreshOfficePreviewToken") { + setMethod(HttpRequest::Method::Post); +} + +RefreshOfficePreviewTokenRequest::~RefreshOfficePreviewTokenRequest() {} + +std::string RefreshOfficePreviewTokenRequest::getProject() const { + return project_; +} + +void RefreshOfficePreviewTokenRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string RefreshOfficePreviewTokenRequest::getAccessToken() const { + return accessToken_; +} + +void RefreshOfficePreviewTokenRequest::setAccessToken(const std::string &accessToken) { + accessToken_ = accessToken; + setParameter(std::string("AccessToken"), accessToken); +} + +std::string RefreshOfficePreviewTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RefreshOfficePreviewTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RefreshOfficePreviewTokenRequest::getRefreshToken() const { + return refreshToken_; +} + +void RefreshOfficePreviewTokenRequest::setRefreshToken(const std::string &refreshToken) { + refreshToken_ = refreshToken; + setParameter(std::string("RefreshToken"), refreshToken); +} + diff --git a/imm/src/model/RefreshOfficePreviewTokenResult.cc b/imm/src/model/RefreshOfficePreviewTokenResult.cc new file mode 100644 index 000000000..470f4fa99 --- /dev/null +++ b/imm/src/model/RefreshOfficePreviewTokenResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +RefreshOfficePreviewTokenResult::RefreshOfficePreviewTokenResult() : + ServiceResult() +{} + +RefreshOfficePreviewTokenResult::RefreshOfficePreviewTokenResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RefreshOfficePreviewTokenResult::~RefreshOfficePreviewTokenResult() +{} + +void RefreshOfficePreviewTokenResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RefreshToken"].isNull()) + refreshToken_ = value["RefreshToken"].asString(); + if(!value["AccessToken"].isNull()) + accessToken_ = value["AccessToken"].asString(); + if(!value["RefreshTokenExpiredTime"].isNull()) + refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString(); + if(!value["AccessTokenExpiredTime"].isNull()) + accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString(); + +} + +std::string RefreshOfficePreviewTokenResult::getRefreshToken()const +{ + return refreshToken_; +} + +std::string RefreshOfficePreviewTokenResult::getAccessToken()const +{ + return accessToken_; +} + +std::string RefreshOfficePreviewTokenResult::getRefreshTokenExpiredTime()const +{ + return refreshTokenExpiredTime_; +} + +std::string RefreshOfficePreviewTokenResult::getAccessTokenExpiredTime()const +{ + return accessTokenExpiredTime_; +} + diff --git a/imm/src/model/RefreshWebofficeTokenRequest.cc b/imm/src/model/RefreshWebofficeTokenRequest.cc index bc3a4ca1e..2929a91b3 100644 --- a/imm/src/model/RefreshWebofficeTokenRequest.cc +++ b/imm/src/model/RefreshWebofficeTokenRequest.cc @@ -19,12 +19,21 @@ using AlibabaCloud::Imm::Model::RefreshWebofficeTokenRequest; RefreshWebofficeTokenRequest::RefreshWebofficeTokenRequest() - : RpcServiceRequest("imm", "2020-09-30", "RefreshWebofficeToken") { + : RpcServiceRequest("imm", "2017-09-06", "RefreshWebofficeToken") { setMethod(HttpRequest::Method::Post); } RefreshWebofficeTokenRequest::~RefreshWebofficeTokenRequest() {} +std::string RefreshWebofficeTokenRequest::getProject() const { + return project_; +} + +void RefreshWebofficeTokenRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + std::string RefreshWebofficeTokenRequest::getAccessToken() const { return accessToken_; } @@ -34,6 +43,15 @@ void RefreshWebofficeTokenRequest::setAccessToken(const std::string &accessToken setParameter(std::string("AccessToken"), accessToken); } +std::string RefreshWebofficeTokenRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RefreshWebofficeTokenRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + std::string RefreshWebofficeTokenRequest::getRefreshToken() const { return refreshToken_; } @@ -43,27 +61,3 @@ void RefreshWebofficeTokenRequest::setRefreshToken(const std::string &refreshTok setParameter(std::string("RefreshToken"), refreshToken); } -std::string RefreshWebofficeTokenRequest::getProjectName() const { - return projectName_; -} - -void RefreshWebofficeTokenRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -RefreshWebofficeTokenRequest::CredentialConfig RefreshWebofficeTokenRequest::getCredentialConfig() const { - return credentialConfig_; -} - -void RefreshWebofficeTokenRequest::setCredentialConfig(const RefreshWebofficeTokenRequest::CredentialConfig &credentialConfig) { - credentialConfig_ = credentialConfig; - for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) { - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType); - setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor); - } - setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole); - setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy); -} - diff --git a/imm/src/model/RemoveStoryFilesRequest.cc b/imm/src/model/RemoveStoryFilesRequest.cc index 9ecbcaad2..3135aaade 100644 --- a/imm/src/model/RemoveStoryFilesRequest.cc +++ b/imm/src/model/RemoveStoryFilesRequest.cc @@ -25,15 +25,6 @@ RemoveStoryFilesRequest::RemoveStoryFilesRequest() RemoveStoryFilesRequest::~RemoveStoryFilesRequest() {} -std::string RemoveStoryFilesRequest::getDatasetName() const { - return datasetName_; -} - -void RemoveStoryFilesRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setBodyParameter(std::string("DatasetName"), datasetName); -} - std::string RemoveStoryFilesRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void RemoveStoryFilesRequest::setProjectName(const std::string &projectName) { setBodyParameter(std::string("ProjectName"), projectName); } +std::string RemoveStoryFilesRequest::getDatasetName() const { + return datasetName_; +} + +void RemoveStoryFilesRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setBodyParameter(std::string("DatasetName"), datasetName); +} + std::vector RemoveStoryFilesRequest::getFiles() const { return files_; } diff --git a/imm/src/model/ResumeBindingRequest.cc b/imm/src/model/ResumeBindingRequest.cc index 2eb86c054..d84ec368d 100644 --- a/imm/src/model/ResumeBindingRequest.cc +++ b/imm/src/model/ResumeBindingRequest.cc @@ -25,15 +25,6 @@ ResumeBindingRequest::ResumeBindingRequest() ResumeBindingRequest::~ResumeBindingRequest() {} -std::string ResumeBindingRequest::getDatasetName() const { - return datasetName_; -} - -void ResumeBindingRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string ResumeBindingRequest::getProjectName() const { return projectName_; } @@ -43,6 +34,15 @@ void ResumeBindingRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string ResumeBindingRequest::getDatasetName() const { + return datasetName_; +} + +void ResumeBindingRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + std::string ResumeBindingRequest::getURI() const { return uRI_; } diff --git a/imm/src/model/SemanticQueryRequest.cc b/imm/src/model/SemanticQueryRequest.cc index 427371046..01a081c20 100644 --- a/imm/src/model/SemanticQueryRequest.cc +++ b/imm/src/model/SemanticQueryRequest.cc @@ -25,24 +25,6 @@ SemanticQueryRequest::SemanticQueryRequest() SemanticQueryRequest::~SemanticQueryRequest() {} -std::string SemanticQueryRequest::getNextToken() const { - return nextToken_; -} - -void SemanticQueryRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::string SemanticQueryRequest::getDatasetName() const { - return datasetName_; -} - -void SemanticQueryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string SemanticQueryRequest::getProjectName() const { return projectName_; } @@ -52,6 +34,15 @@ void SemanticQueryRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::string SemanticQueryRequest::getNextToken() const { + return nextToken_; +} + +void SemanticQueryRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + std::string SemanticQueryRequest::getQuery() const { return query_; } @@ -70,3 +61,12 @@ void SemanticQueryRequest::setMaxResults(int maxResults) { setParameter(std::string("MaxResults"), std::to_string(maxResults)); } +std::string SemanticQueryRequest::getDatasetName() const { + return datasetName_; +} + +void SemanticQueryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + diff --git a/imm/src/model/SimpleQueryRequest.cc b/imm/src/model/SimpleQueryRequest.cc index bedd1adbb..fe3a09654 100644 --- a/imm/src/model/SimpleQueryRequest.cc +++ b/imm/src/model/SimpleQueryRequest.cc @@ -25,33 +25,6 @@ SimpleQueryRequest::SimpleQueryRequest() SimpleQueryRequest::~SimpleQueryRequest() {} -std::string SimpleQueryRequest::getNextToken() const { - return nextToken_; -} - -void SimpleQueryRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::string SimpleQueryRequest::getDatasetName() const { - return datasetName_; -} - -void SimpleQueryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - -std::string SimpleQueryRequest::getOrder() const { - return order_; -} - -void SimpleQueryRequest::setOrder(const std::string &order) { - order_ = order; - setParameter(std::string("Order"), order); -} - std::string SimpleQueryRequest::getProjectName() const { return projectName_; } @@ -61,6 +34,26 @@ void SimpleQueryRequest::setProjectName(const std::string &projectName) { setParameter(std::string("ProjectName"), projectName); } +std::vector SimpleQueryRequest::getWithFields() const { + return withFields_; +} + +void SimpleQueryRequest::setWithFields(const std::vector &withFields) { + withFields_ = withFields; + for(int dep1 = 0; dep1 != withFields.size(); dep1++) { + setParameter(std::string("WithFields") + "." + std::to_string(dep1 + 1), withFields[dep1]); + } +} + +std::string SimpleQueryRequest::getNextToken() const { + return nextToken_; +} + +void SimpleQueryRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + SimpleQueryRequest::Query SimpleQueryRequest::getQuery() const { return query_; } @@ -75,26 +68,6 @@ void SimpleQueryRequest::setQuery(const SimpleQueryRequest::Query &query) { setParameter(std::string("Query") + ".Operation", query.operation); } -std::string SimpleQueryRequest::getSort() const { - return sort_; -} - -void SimpleQueryRequest::setSort(const std::string &sort) { - sort_ = sort; - setParameter(std::string("Sort"), sort); -} - -std::vector SimpleQueryRequest::getWithFields() const { - return withFields_; -} - -void SimpleQueryRequest::setWithFields(const std::vector &withFields) { - withFields_ = withFields; - for(int dep1 = 0; dep1 != withFields.size(); dep1++) { - setParameter(std::string("WithFields") + "." + std::to_string(dep1 + 1), withFields[dep1]); - } -} - int SimpleQueryRequest::getMaxResults() const { return maxResults_; } @@ -104,6 +77,24 @@ void SimpleQueryRequest::setMaxResults(int maxResults) { setParameter(std::string("MaxResults"), std::to_string(maxResults)); } +std::string SimpleQueryRequest::getDatasetName() const { + return datasetName_; +} + +void SimpleQueryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string SimpleQueryRequest::getSort() const { + return sort_; +} + +void SimpleQueryRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("Sort"), sort); +} + std::vector SimpleQueryRequest::getAggregations() const { return aggregations_; } @@ -116,3 +107,12 @@ void SimpleQueryRequest::setAggregations(const std::vector + +using AlibabaCloud::Imm::Model::UpdateFaceGroupRequest; + +UpdateFaceGroupRequest::UpdateFaceGroupRequest() + : RpcServiceRequest("imm", "2017-09-06", "UpdateFaceGroup") { + setMethod(HttpRequest::Method::Post); +} + +UpdateFaceGroupRequest::~UpdateFaceGroupRequest() {} + +std::string UpdateFaceGroupRequest::getProject() const { + return project_; +} + +void UpdateFaceGroupRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string UpdateFaceGroupRequest::getExternalId() const { + return externalId_; +} + +void UpdateFaceGroupRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string UpdateFaceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateFaceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateFaceGroupRequest::getGroupId() const { + return groupId_; +} + +void UpdateFaceGroupRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); +} + +std::string UpdateFaceGroupRequest::getRemarksB() const { + return remarksB_; +} + +void UpdateFaceGroupRequest::setRemarksB(const std::string &remarksB) { + remarksB_ = remarksB; + setParameter(std::string("RemarksB"), remarksB); +} + +std::string UpdateFaceGroupRequest::getRemarksA() const { + return remarksA_; +} + +void UpdateFaceGroupRequest::setRemarksA(const std::string &remarksA) { + remarksA_ = remarksA; + setParameter(std::string("RemarksA"), remarksA); +} + +std::string UpdateFaceGroupRequest::getGroupName() const { + return groupName_; +} + +void UpdateFaceGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +std::string UpdateFaceGroupRequest::getResetItems() const { + return resetItems_; +} + +void UpdateFaceGroupRequest::setResetItems(const std::string &resetItems) { + resetItems_ = resetItems; + setParameter(std::string("ResetItems"), resetItems); +} + +std::string UpdateFaceGroupRequest::getRemarksArrayA() const { + return remarksArrayA_; +} + +void UpdateFaceGroupRequest::setRemarksArrayA(const std::string &remarksArrayA) { + remarksArrayA_ = remarksArrayA; + setParameter(std::string("RemarksArrayA"), remarksArrayA); +} + +std::string UpdateFaceGroupRequest::getRemarksArrayB() const { + return remarksArrayB_; +} + +void UpdateFaceGroupRequest::setRemarksArrayB(const std::string &remarksArrayB) { + remarksArrayB_ = remarksArrayB; + setParameter(std::string("RemarksArrayB"), remarksArrayB); +} + +std::string UpdateFaceGroupRequest::getRemarksD() const { + return remarksD_; +} + +void UpdateFaceGroupRequest::setRemarksD(const std::string &remarksD) { + remarksD_ = remarksD; + setParameter(std::string("RemarksD"), remarksD); +} + +std::string UpdateFaceGroupRequest::getRemarksC() const { + return remarksC_; +} + +void UpdateFaceGroupRequest::setRemarksC(const std::string &remarksC) { + remarksC_ = remarksC; + setParameter(std::string("RemarksC"), remarksC); +} + +std::string UpdateFaceGroupRequest::getSetId() const { + return setId_; +} + +void UpdateFaceGroupRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::string UpdateFaceGroupRequest::getGroupCoverFaceId() const { + return groupCoverFaceId_; +} + +void UpdateFaceGroupRequest::setGroupCoverFaceId(const std::string &groupCoverFaceId) { + groupCoverFaceId_ = groupCoverFaceId; + setParameter(std::string("GroupCoverFaceId"), groupCoverFaceId); +} + diff --git a/imm/src/model/UpdateFaceGroupResult.cc b/imm/src/model/UpdateFaceGroupResult.cc new file mode 100644 index 000000000..dffaa8a73 --- /dev/null +++ b/imm/src/model/UpdateFaceGroupResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateFaceGroupResult::UpdateFaceGroupResult() : + ServiceResult() +{} + +UpdateFaceGroupResult::UpdateFaceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFaceGroupResult::~UpdateFaceGroupResult() +{} + +void UpdateFaceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string UpdateFaceGroupResult::getSetId()const +{ + return setId_; +} + +std::string UpdateFaceGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/imm/src/model/UpdateFigureClusterRequest.cc b/imm/src/model/UpdateFigureClusterRequest.cc index 5550c61e8..d6dba032f 100644 --- a/imm/src/model/UpdateFigureClusterRequest.cc +++ b/imm/src/model/UpdateFigureClusterRequest.cc @@ -25,15 +25,6 @@ UpdateFigureClusterRequest::UpdateFigureClusterRequest() UpdateFigureClusterRequest::~UpdateFigureClusterRequest() {} -std::string UpdateFigureClusterRequest::getDatasetName() const { - return datasetName_; -} - -void UpdateFigureClusterRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - std::string UpdateFigureClusterRequest::getProjectName() const { return projectName_; } @@ -60,3 +51,12 @@ void UpdateFigureClusterRequest::setFigureCluster(const UpdateFigureClusterReque setParameter(std::string("FigureCluster") + ".ObjectId", figureCluster.objectId); } +std::string UpdateFigureClusterRequest::getDatasetName() const { + return datasetName_; +} + +void UpdateFigureClusterRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + diff --git a/imm/src/model/UpdateFileMetaRequest.cc b/imm/src/model/UpdateFileMetaRequest.cc index f59a67ae4..68eaac748 100644 --- a/imm/src/model/UpdateFileMetaRequest.cc +++ b/imm/src/model/UpdateFileMetaRequest.cc @@ -25,6 +25,15 @@ UpdateFileMetaRequest::UpdateFileMetaRequest() UpdateFileMetaRequest::~UpdateFileMetaRequest() {} +std::string UpdateFileMetaRequest::getProjectName() const { + return projectName_; +} + +void UpdateFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + UpdateFileMetaRequest::File UpdateFileMetaRequest::getFile() const { return file_; } @@ -56,12 +65,3 @@ void UpdateFileMetaRequest::setDatasetName(const std::string &datasetName) { setParameter(std::string("DatasetName"), datasetName); } -std::string UpdateFileMetaRequest::getProjectName() const { - return projectName_; -} - -void UpdateFileMetaRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - diff --git a/imm/src/model/UpdateImageRequest.cc b/imm/src/model/UpdateImageRequest.cc new file mode 100644 index 000000000..3dd91eac1 --- /dev/null +++ b/imm/src/model/UpdateImageRequest.cc @@ -0,0 +1,165 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::UpdateImageRequest; + +UpdateImageRequest::UpdateImageRequest() + : RpcServiceRequest("imm", "2017-09-06", "UpdateImage") { + setMethod(HttpRequest::Method::Post); +} + +UpdateImageRequest::~UpdateImageRequest() {} + +std::string UpdateImageRequest::getProject() const { + return project_; +} + +void UpdateImageRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string UpdateImageRequest::getExternalId() const { + return externalId_; +} + +void UpdateImageRequest::setExternalId(const std::string &externalId) { + externalId_ = externalId; + setParameter(std::string("ExternalId"), externalId); +} + +std::string UpdateImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateImageRequest::getSourceType() const { + return sourceType_; +} + +void UpdateImageRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string UpdateImageRequest::getRemarksB() const { + return remarksB_; +} + +void UpdateImageRequest::setRemarksB(const std::string &remarksB) { + remarksB_ = remarksB; + setParameter(std::string("RemarksB"), remarksB); +} + +std::string UpdateImageRequest::getRemarksA() const { + return remarksA_; +} + +void UpdateImageRequest::setRemarksA(const std::string &remarksA) { + remarksA_ = remarksA; + setParameter(std::string("RemarksA"), remarksA); +} + +std::string UpdateImageRequest::getImageUri() const { + return imageUri_; +} + +void UpdateImageRequest::setImageUri(const std::string &imageUri) { + imageUri_ = imageUri; + setParameter(std::string("ImageUri"), imageUri); +} + +std::string UpdateImageRequest::getRemarksArrayA() const { + return remarksArrayA_; +} + +void UpdateImageRequest::setRemarksArrayA(const std::string &remarksArrayA) { + remarksArrayA_ = remarksArrayA; + setParameter(std::string("RemarksArrayA"), remarksArrayA); +} + +std::string UpdateImageRequest::getRemarksArrayB() const { + return remarksArrayB_; +} + +void UpdateImageRequest::setRemarksArrayB(const std::string &remarksArrayB) { + remarksArrayB_ = remarksArrayB; + setParameter(std::string("RemarksArrayB"), remarksArrayB); +} + +std::string UpdateImageRequest::getSourceUri() const { + return sourceUri_; +} + +void UpdateImageRequest::setSourceUri(const std::string &sourceUri) { + sourceUri_ = sourceUri; + setParameter(std::string("SourceUri"), sourceUri); +} + +std::string UpdateImageRequest::getSourcePosition() const { + return sourcePosition_; +} + +void UpdateImageRequest::setSourcePosition(const std::string &sourcePosition) { + sourcePosition_ = sourcePosition; + setParameter(std::string("SourcePosition"), sourcePosition); +} + +std::string UpdateImageRequest::getRemarksD() const { + return remarksD_; +} + +void UpdateImageRequest::setRemarksD(const std::string &remarksD) { + remarksD_ = remarksD; + setParameter(std::string("RemarksD"), remarksD); +} + +std::string UpdateImageRequest::getRemarksC() const { + return remarksC_; +} + +void UpdateImageRequest::setRemarksC(const std::string &remarksC) { + remarksC_ = remarksC; + setParameter(std::string("RemarksC"), remarksC); +} + +std::string UpdateImageRequest::getSetId() const { + return setId_; +} + +void UpdateImageRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + +std::vector UpdateImageRequest::getFaces() const { + return faces_; +} + +void UpdateImageRequest::setFaces(const std::vector &faces) { + faces_ = faces; + for(int dep1 = 0; dep1 != faces.size(); dep1++) { + setParameter(std::string("Faces") + "." + std::to_string(dep1 + 1) + ".GroupId", faces[dep1].groupId); + setParameter(std::string("Faces") + "." + std::to_string(dep1 + 1) + ".FaceId", faces[dep1].faceId); + } +} + diff --git a/imm/src/model/UpdateImageResult.cc b/imm/src/model/UpdateImageResult.cc new file mode 100644 index 000000000..d8f161c4f --- /dev/null +++ b/imm/src/model/UpdateImageResult.cc @@ -0,0 +1,121 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateImageResult::UpdateImageResult() : + ServiceResult() +{} + +UpdateImageResult::UpdateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateImageResult::~UpdateImageResult() +{} + +void UpdateImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RemarksArrayB"].isNull()) + remarksArrayB_ = value["RemarksArrayB"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + if(!value["RemarksArrayA"].isNull()) + remarksArrayA_ = value["RemarksArrayA"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + +} + +std::string UpdateImageResult::getRemarksArrayB()const +{ + return remarksArrayB_; +} + +std::string UpdateImageResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string UpdateImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string UpdateImageResult::getRemarksD()const +{ + return remarksD_; +} + +std::string UpdateImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string UpdateImageResult::getExternalId()const +{ + return externalId_; +} + +std::string UpdateImageResult::getRemarksArrayA()const +{ + return remarksArrayA_; +} + +std::string UpdateImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string UpdateImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string UpdateImageResult::getSetId()const +{ + return setId_; +} + +std::string UpdateImageResult::getRemarksB()const +{ + return remarksB_; +} + diff --git a/imm/src/model/UpdateProjectRequest.cc b/imm/src/model/UpdateProjectRequest.cc index 780cd5fab..7d2c85501 100644 --- a/imm/src/model/UpdateProjectRequest.cc +++ b/imm/src/model/UpdateProjectRequest.cc @@ -19,117 +19,54 @@ using AlibabaCloud::Imm::Model::UpdateProjectRequest; UpdateProjectRequest::UpdateProjectRequest() - : RpcServiceRequest("imm", "2020-09-30", "UpdateProject") { + : RpcServiceRequest("imm", "2017-09-06", "UpdateProject") { setMethod(HttpRequest::Method::Post); } UpdateProjectRequest::~UpdateProjectRequest() {} -long UpdateProjectRequest::getEngineConcurrency() const { - return engineConcurrency_; +std::string UpdateProjectRequest::getProject() const { + return project_; } -void UpdateProjectRequest::setEngineConcurrency(long engineConcurrency) { - engineConcurrency_ = engineConcurrency; - setParameter(std::string("EngineConcurrency"), std::to_string(engineConcurrency)); +void UpdateProjectRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); } -long UpdateProjectRequest::getDatasetMaxBindCount() const { - return datasetMaxBindCount_; +std::string UpdateProjectRequest::getNewBCTaskVersion() const { + return newBCTaskVersion_; } -void UpdateProjectRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { - datasetMaxBindCount_ = datasetMaxBindCount; - setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); +void UpdateProjectRequest::setNewBCTaskVersion(const std::string &newBCTaskVersion) { + newBCTaskVersion_ = newBCTaskVersion; + setParameter(std::string("NewBCTaskVersion"), newBCTaskVersion); } -std::string UpdateProjectRequest::getDescription() const { - return description_; +std::string UpdateProjectRequest::getAccessKeyId() const { + return accessKeyId_; } -void UpdateProjectRequest::setDescription(const std::string &description) { - description_ = description; - setParameter(std::string("Description"), description); +void UpdateProjectRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -long UpdateProjectRequest::getProjectQueriesPerSecond() const { - return projectQueriesPerSecond_; +std::string UpdateProjectRequest::getNewServiceRole() const { + return newServiceRole_; } -void UpdateProjectRequest::setProjectQueriesPerSecond(long projectQueriesPerSecond) { - projectQueriesPerSecond_ = projectQueriesPerSecond; - setParameter(std::string("ProjectQueriesPerSecond"), std::to_string(projectQueriesPerSecond)); +void UpdateProjectRequest::setNewServiceRole(const std::string &newServiceRole) { + newServiceRole_ = newServiceRole; + setParameter(std::string("NewServiceRole"), newServiceRole); } -long UpdateProjectRequest::getDatasetMaxRelationCount() const { - return datasetMaxRelationCount_; +int UpdateProjectRequest::getNewCU() const { + return newCU_; } -void UpdateProjectRequest::setDatasetMaxRelationCount(long datasetMaxRelationCount) { - datasetMaxRelationCount_ = datasetMaxRelationCount; - setParameter(std::string("DatasetMaxRelationCount"), std::to_string(datasetMaxRelationCount)); -} - -long UpdateProjectRequest::getDatasetMaxFileCount() const { - return datasetMaxFileCount_; -} - -void UpdateProjectRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { - datasetMaxFileCount_ = datasetMaxFileCount; - setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); -} - -std::string UpdateProjectRequest::getProjectName() const { - return projectName_; -} - -void UpdateProjectRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -long UpdateProjectRequest::getProjectMaxDatasetCount() const { - return projectMaxDatasetCount_; -} - -void UpdateProjectRequest::setProjectMaxDatasetCount(long projectMaxDatasetCount) { - projectMaxDatasetCount_ = projectMaxDatasetCount; - setParameter(std::string("ProjectMaxDatasetCount"), std::to_string(projectMaxDatasetCount)); -} - -long UpdateProjectRequest::getDatasetMaxEntityCount() const { - return datasetMaxEntityCount_; -} - -void UpdateProjectRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) { - datasetMaxEntityCount_ = datasetMaxEntityCount; - setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); -} - -std::string UpdateProjectRequest::getTemplateId() const { - return templateId_; -} - -void UpdateProjectRequest::setTemplateId(const std::string &templateId) { - templateId_ = templateId; - setParameter(std::string("TemplateId"), templateId); -} - -long UpdateProjectRequest::getDatasetMaxTotalFileSize() const { - return datasetMaxTotalFileSize_; -} - -void UpdateProjectRequest::setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize) { - datasetMaxTotalFileSize_ = datasetMaxTotalFileSize; - setParameter(std::string("DatasetMaxTotalFileSize"), std::to_string(datasetMaxTotalFileSize)); -} - -std::string UpdateProjectRequest::getServiceRole() const { - return serviceRole_; -} - -void UpdateProjectRequest::setServiceRole(const std::string &serviceRole) { - serviceRole_ = serviceRole; - setParameter(std::string("ServiceRole"), serviceRole); +void UpdateProjectRequest::setNewCU(int newCU) { + newCU_ = newCU; + setParameter(std::string("NewCU"), std::to_string(newCU)); } diff --git a/imm/src/model/UpdateProjectResult.cc b/imm/src/model/UpdateProjectResult.cc index 48164f516..42aa78457 100644 --- a/imm/src/model/UpdateProjectResult.cc +++ b/imm/src/model/UpdateProjectResult.cc @@ -39,46 +39,55 @@ void UpdateProjectResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto projectNode = value["Project"]; - if(!projectNode["ProjectName"].isNull()) - project_.projectName = projectNode["ProjectName"].asString(); - if(!projectNode["ServiceRole"].isNull()) - project_.serviceRole = projectNode["ServiceRole"].asString(); - if(!projectNode["TemplateId"].isNull()) - project_.templateId = projectNode["TemplateId"].asString(); - if(!projectNode["CreateTime"].isNull()) - project_.createTime = projectNode["CreateTime"].asString(); - if(!projectNode["UpdateTime"].isNull()) - project_.updateTime = projectNode["UpdateTime"].asString(); - if(!projectNode["Description"].isNull()) - project_.description = projectNode["Description"].asString(); - if(!projectNode["ProjectQueriesPerSecond"].isNull()) - project_.projectQueriesPerSecond = std::stol(projectNode["ProjectQueriesPerSecond"].asString()); - if(!projectNode["EngineConcurrency"].isNull()) - project_.engineConcurrency = std::stol(projectNode["EngineConcurrency"].asString()); - if(!projectNode["ProjectMaxDatasetCount"].isNull()) - project_.projectMaxDatasetCount = std::stol(projectNode["ProjectMaxDatasetCount"].asString()); - if(!projectNode["DatasetMaxBindCount"].isNull()) - project_.datasetMaxBindCount = std::stol(projectNode["DatasetMaxBindCount"].asString()); - if(!projectNode["DatasetMaxFileCount"].isNull()) - project_.datasetMaxFileCount = std::stol(projectNode["DatasetMaxFileCount"].asString()); - if(!projectNode["DatasetMaxEntityCount"].isNull()) - project_.datasetMaxEntityCount = std::stol(projectNode["DatasetMaxEntityCount"].asString()); - if(!projectNode["DatasetMaxRelationCount"].isNull()) - project_.datasetMaxRelationCount = std::stol(projectNode["DatasetMaxRelationCount"].asString()); - if(!projectNode["DatasetMaxTotalFileSize"].isNull()) - project_.datasetMaxTotalFileSize = std::stol(projectNode["DatasetMaxTotalFileSize"].asString()); - if(!projectNode["DatasetCount"].isNull()) - project_.datasetCount = std::stol(projectNode["DatasetCount"].asString()); - if(!projectNode["FileCount"].isNull()) - project_.fileCount = std::stol(projectNode["FileCount"].asString()); - if(!projectNode["TotalFileSize"].isNull()) - project_.totalFileSize = std::stol(projectNode["TotalFileSize"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); } -UpdateProjectResult::Project UpdateProjectResult::getProject()const +std::string UpdateProjectResult::getProject()const { return project_; } +std::string UpdateProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string UpdateProjectResult::getType()const +{ + return type_; +} + +int UpdateProjectResult::getCU()const +{ + return cU_; +} + +std::string UpdateProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string UpdateProjectResult::getCreateTime()const +{ + return createTime_; +} + +std::string UpdateProjectResult::getRegionId()const +{ + return regionId_; +} + diff --git a/imm/src/model/UpdateSetRequest.cc b/imm/src/model/UpdateSetRequest.cc new file mode 100644 index 000000000..5c6e250b9 --- /dev/null +++ b/imm/src/model/UpdateSetRequest.cc @@ -0,0 +1,63 @@ +/* + * 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 + +using AlibabaCloud::Imm::Model::UpdateSetRequest; + +UpdateSetRequest::UpdateSetRequest() + : RpcServiceRequest("imm", "2017-09-06", "UpdateSet") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSetRequest::~UpdateSetRequest() {} + +std::string UpdateSetRequest::getProject() const { + return project_; +} + +void UpdateSetRequest::setProject(const std::string &project) { + project_ = project; + setParameter(std::string("Project"), project); +} + +std::string UpdateSetRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateSetRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateSetRequest::getSetName() const { + return setName_; +} + +void UpdateSetRequest::setSetName(const std::string &setName) { + setName_ = setName; + setParameter(std::string("SetName"), setName); +} + +std::string UpdateSetRequest::getSetId() const { + return setId_; +} + +void UpdateSetRequest::setSetId(const std::string &setId) { + setId_ = setId; + setParameter(std::string("SetId"), setId); +} + diff --git a/imm/src/model/UpdateSetResult.cc b/imm/src/model/UpdateSetResult.cc new file mode 100644 index 000000000..517358938 --- /dev/null +++ b/imm/src/model/UpdateSetResult.cc @@ -0,0 +1,72 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateSetResult::UpdateSetResult() : + ServiceResult() +{} + +UpdateSetResult::UpdateSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSetResult::~UpdateSetResult() +{} + +void UpdateSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["SetName"].isNull()) + setName_ = value["SetName"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string UpdateSetResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string UpdateSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string UpdateSetResult::getSetName()const +{ + return setName_; +} + +std::string UpdateSetResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/UpdateStoryRequest.cc b/imm/src/model/UpdateStoryRequest.cc index 2f62d8807..a4d65a98b 100644 --- a/imm/src/model/UpdateStoryRequest.cc +++ b/imm/src/model/UpdateStoryRequest.cc @@ -25,15 +25,6 @@ UpdateStoryRequest::UpdateStoryRequest() UpdateStoryRequest::~UpdateStoryRequest() {} -std::string UpdateStoryRequest::getCustomLabels() const { - return customLabels_; -} - -void UpdateStoryRequest::setCustomLabels(const std::string &customLabels) { - customLabels_ = customLabels; - setBodyParameter(std::string("CustomLabels"), customLabels); -} - UpdateStoryRequest::Cover UpdateStoryRequest::getCover() const { return cover_; } @@ -43,15 +34,6 @@ void UpdateStoryRequest::setCover(const UpdateStoryRequest::Cover &cover) { setBodyParameter(std::string("Cover") + ".URI", cover.uRI); } -std::string UpdateStoryRequest::getDatasetName() const { - return datasetName_; -} - -void UpdateStoryRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setBodyParameter(std::string("DatasetName"), datasetName); -} - std::string UpdateStoryRequest::getProjectName() const { return projectName_; } @@ -61,6 +43,24 @@ void UpdateStoryRequest::setProjectName(const std::string &projectName) { setBodyParameter(std::string("ProjectName"), projectName); } +std::string UpdateStoryRequest::getCustomLabels() const { + return customLabels_; +} + +void UpdateStoryRequest::setCustomLabels(const std::string &customLabels) { + customLabels_ = customLabels; + setBodyParameter(std::string("CustomLabels"), customLabels); +} + +std::string UpdateStoryRequest::getDatasetName() const { + return datasetName_; +} + +void UpdateStoryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setBodyParameter(std::string("DatasetName"), datasetName); +} + std::string UpdateStoryRequest::getCustomId() const { return customId_; }