From 6bb79f8a04838248591cf3cfa06043ca06ab5e98 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 20 Jul 2022 07:05:47 +0000 Subject: [PATCH] Add Body Detection and Image Splicing API. --- CHANGELOG | 3 + VERSION | 2 +- imm/CMakeLists.txt | 436 ++-- imm/include/alibabacloud/imm/ImmClient.h | 872 ++++---- ...ageJobRequest.h => AddStoryFilesRequest.h} | 39 +- ...ntentKeyResult.h => AddStoryFilesResult.h} | 26 +- ...APIsRequest.h => AttachOSSBucketRequest.h} | 24 +- ...eoTaskResult.h => AttachOSSBucketResult.h} | 14 +- ...Request.h => BatchDeleteFileMetaRequest.h} | 33 +- ...atResult.h => BatchDeleteFileMetaResult.h} | 16 +- .../imm/model/BatchGetFileMetaRequest.h | 48 + .../imm/model/BatchGetFileMetaResult.h | 331 +++ ...kRequest.h => BatchIndexFileMetaRequest.h} | 46 +- .../imm/model/BatchIndexFileMetaResult.h | 51 + .../imm/model/BatchUpdateFileMetaRequest.h | 64 + ...obResult.h => BatchUpdateFileMetaResult.h} | 28 +- .../imm/model/CompareImageFacesRequest.h | 60 - .../imm/model/CompareImageFacesResult.h | 89 - .../imm/model/ConvertOfficeFormatRequest.h | 102 - ...icenseRequest.h => CreateBindingRequest.h} | 36 +- ...ListSetsResult.h => CreateBindingResult.h} | 36 +- .../imm/model/CreateDatasetRequest.h | 66 + .../imm/model/CreateDatasetResult.h | 68 + .../CreateDetectVideoLabelsTaskRequest.h | 71 + .../model/CreateDetectVideoLabelsTaskResult.h | 53 + ....h => CreateFigureClusteringTaskRequest.h} | 36 +- .../model/CreateFigureClusteringTaskResult.h | 53 + ... CreateFigureClustersMergingTaskRequest.h} | 48 +- .../CreateFigureClustersMergingTaskResult.h | 53 + .../imm/model/CreateGroupFacesJobRequest.h | 54 - .../model/CreateImageModerationTaskRequest.h | 83 + ...lt.h => CreateImageModerationTaskResult.h} | 18 +- .../model/CreateImageSplicingTaskRequest.h | 102 + ...sult.h => CreateImageSplicingTaskResult.h} | 18 +- .../imm/model/CreateMediaConvertTaskRequest.h | 222 ++ ...esult.h => CreateMediaConvertTaskResult.h} | 18 +- .../model/CreateMergeFaceGroupsJobResult.h | 59 - .../model/CreateOfficeConversionTaskRequest.h | 167 +- .../model/CreateOfficeConversionTaskResult.h | 10 +- .../imm/model/CreateProjectRequest.h | 75 + ...sionTaskResult.h => CreateProjectResult.h} | 50 +- .../alibabacloud/imm/model/CreateSetResult.h | 65 - .../imm/model/CreateStoryRequest.h | 87 + ...eleteImageResult.h => CreateStoryResult.h} | 22 +- .../model/CreateVideoAbstractTaskRequest.h | 63 - .../imm/model/CreateVideoAnalyseTaskRequest.h | 72 - .../imm/model/CreateVideoAnalyseTaskResult.h | 53 - .../model/CreateVideoCompressTaskRequest.h | 69 - .../model/CreateVideoModerationTaskRequest.h | 83 + ...lt.h => CreateVideoModerationTaskResult.h} | 18 +- .../imm/model/CreateVideoProduceTaskRequest.h | 72 - .../imm/model/CreateVideoProduceTaskResult.h | 53 - .../imm/model/DecodeBlindWatermarkRequest.h | 63 - .../imm/model/DecodeBlindWatermarkResult.h | 53 - ...onTaskRequest.h => DeleteBindingRequest.h} | 33 +- ...eleteSetResult.h => DeleteBindingResult.h} | 16 +- ...GetSetRequest.h => DeleteDatasetRequest.h} | 27 +- .../imm/model/DeleteDatasetResult.h | 49 + .../imm/model/DeleteFileMetaRequest.h | 48 + ...mageJobResult.h => DeleteFileMetaResult.h} | 14 +- .../imm/model/DeleteProjectRequest.h | 9 +- .../imm/model/DeleteStoryRequest.h | 48 + .../imm/model/DeleteStoryResult.h | 49 + .../imm/model/DeleteVideoRequest.h | 54 - ...ionsRequest.h => DetachOSSBucketRequest.h} | 18 +- .../imm/model/DetachOSSBucketResult.h | 49 + .../imm/model/DetectImageBodiesRequest.h | 32 +- .../imm/model/DetectImageBodiesResult.h | 16 +- .../imm/model/DetectImageCodesRequest.h | 59 + ...CodesResult.h => DetectImageCodesResult.h} | 36 +- ...Request.h => DetectImageCroppingRequest.h} | 41 +- .../imm/model/DetectImageCroppingResult.h | 64 + .../imm/model/DetectImageFacesRequest.h | 32 +- .../imm/model/DetectImageFacesResult.h | 74 +- .../imm/model/DetectImageLabelsRequest.h | 62 + ...TagsResult.h => DetectImageLabelsResult.h} | 31 +- .../imm/model/DetectImageScoreRequest.h | 59 + .../imm/model/DetectImageScoreResult.h | 55 + .../imm/model/DetectImageTagsRequest.h | 51 - .../imm/model/DetectQRCodesResult.h | 76 - .../imm/model/DetectTextAnomalyRequest.h | 45 + ...TaskResult.h => DetectTextAnomalyResult.h} | 16 +- .../imm/model/EncodeBlindWatermarkRequest.h | 69 - .../imm/model/EncodeBlindWatermarkResult.h | 53 - .../imm/model/FindImagesRequest.h | 129 -- .../alibabacloud/imm/model/FindImagesResult.h | 208 -- .../imm/model/FindSimilarFacesRequest.h | 63 - .../imm/model/FindSimilarFacesResult.h | 90 - ...istVideosRequest.h => FuzzyQueryRequest.h} | 42 +- .../alibabacloud/imm/model/FuzzyQueryResult.h | 333 +++ .../imm/model/GetBindingRequest.h | 51 + ...ribeRegionsResult.h => GetBindingResult.h} | 34 +- .../imm/model/GetDRMLicenseResult.h | 53 - ...DeleteSetRequest.h => GetDatasetRequest.h} | 30 +- .../{GetSetResult.h => GetDatasetResult.h} | 49 +- ....h => GetDetectVideoLabelsResultRequest.h} | 21 +- .../model/GetDetectVideoLabelsResultResult.h | 80 + ...desRequest.h => GetFigureClusterRequest.h} | 30 +- .../imm/model/GetFigureClusterResult.h | 352 ++++ ...tSetTagsRequest.h => GetFileMetaRequest.h} | 30 +- .../imm/model/GetFileMetaResult.h | 331 +++ .../model/GetImageCroppingSuggestionsResult.h | 66 - .../imm/model/GetImageQualityRequest.h | 48 - .../imm/model/GetImageQualityResult.h | 66 - .../alibabacloud/imm/model/GetImageRequest.h | 51 - .../alibabacloud/imm/model/GetImageResult.h | 246 --- .../imm/model/GetMediaMetaRequest.h | 29 +- .../imm/model/GetMediaMetaResult.h | 218 +- .../imm/model/GetOSSBucketAttachmentRequest.h | 42 + .../imm/model/GetOSSBucketAttachmentResult.h | 51 + .../model/GetOfficeConversionTaskRequest.h | 48 - .../imm/model/GetOfficeConversionTaskResult.h | 81 - .../imm/model/GetOfficeEditURLRequest.h | 72 - .../imm/model/GetOfficeEditURLResult.h | 59 - .../imm/model/GetOfficePreviewURLRequest.h | 72 - .../imm/model/GetOfficePreviewURLResult.h | 59 - .../imm/model/GetProjectRequest.h | 12 +- .../alibabacloud/imm/model/GetProjectResult.h | 40 +- .../{ListSetsRequest.h => GetStoryRequest.h} | 30 +- .../alibabacloud/imm/model/GetStoryResult.h | 631 ++++++ ...eteVideoTaskRequest.h => GetTaskRequest.h} | 21 +- .../{GetVideoTaskResult.h => GetTaskResult.h} | 38 +- .../alibabacloud/imm/model/GetVideoRequest.h | 51 - .../alibabacloud/imm/model/GetVideoResult.h | 156 -- .../imm/model/GetWebofficeURLRequest.h | 102 +- ...meTaskRequest.h => IndexFileMetaRequest.h} | 52 +- .../imm/model/IndexFileMetaResult.h | 51 + .../imm/model/IndexImageRequest.h | 90 - .../alibabacloud/imm/model/IndexImageResult.h | 71 - .../imm/model/IndexVideoRequest.h | 90 - .../alibabacloud/imm/model/IndexVideoResult.h | 79 - ...ProjectRequest.h => ListBindingsRequest.h} | 36 +- ...ImageTagsResult.h => ListBindingsResult.h} | 39 +- .../imm/model/ListDatasetsRequest.h | 51 + .../imm/model/ListDatasetsResult.h | 70 + .../imm/model/ListFaceGroupsRequest.h | 81 - .../imm/model/ListFaceGroupsResult.h | 90 - .../imm/model/ListImagesRequest.h | 57 - .../alibabacloud/imm/model/ListImagesResult.h | 208 -- .../model/ListOfficeConversionTaskRequest.h | 51 - .../imm/model/ListProjectAPIsResult.h | 53 - .../imm/model/ListProjectsRequest.h | 18 +- .../imm/model/ListProjectsResult.h | 28 +- ...mServiceRequest.h => ListRegionsRequest.h} | 18 +- ...eleteVideoResult.h => ListRegionsResult.h} | 25 +- .../alibabacloud/imm/model/ListTasksRequest.h | 77 + ...stVideoTasksResult.h => ListTasksResult.h} | 32 +- .../imm/model/ListVideoAudiosRequest.h | 54 - .../imm/model/ListVideoAudiosResult.h | 95 - .../imm/model/ListVideoFramesRequest.h | 54 - .../imm/model/ListVideoFramesResult.h | 160 -- .../imm/model/ListVideoTasksRequest.h | 54 - .../alibabacloud/imm/model/ListVideosResult.h | 108 - .../imm/model/MergeFigureClustersRequest.h | 63 + ...skResult.h => MergeFigureClustersResult.h} | 16 +- .../alibabacloud/imm/model/PutProjectResult.h | 67 - .../imm/model/QueryFigureClustersRequest.h | 60 + .../imm/model/QueryFigureClustersResult.h | 354 ++++ .../imm/model/QueryStoriesRequest.h | 99 + .../imm/model/QueryStoriesResult.h | 633 ++++++ .../imm/model/RefreshOfficeEditTokenRequest.h | 51 - .../imm/model/RefreshOfficeEditTokenResult.h | 57 - .../model/RefreshOfficePreviewTokenRequest.h | 51 - .../model/RefreshOfficePreviewTokenResult.h | 57 - .../imm/model/RefreshWebofficeTokenRequest.h | 23 +- .../imm/model/RemoveStoryFilesRequest.h | 54 + .../imm/model/RemoveStoryFilesResult.h | 49 + ...RCodesRequest.h => ResumeBindingRequest.h} | 30 +- .../imm/model/ResumeBindingResult.h | 49 + ...entKeyRequest.h => SemanticQueryRequest.h} | 42 +- .../imm/model/SemanticQueryResult.h | 347 +++ .../imm/model/SimpleQueryRequest.h | 77 + .../imm/model/SimpleQueryResult.h | 347 +++ ...eteImageRequest.h => StopBindingRequest.h} | 36 +- .../imm/model/StopBindingResult.h | 49 + .../imm/model/UpdateDatasetRequest.h | 66 + .../imm/model/UpdateDatasetResult.h | 68 + .../imm/model/UpdateFaceGroupRequest.h | 81 - .../imm/model/UpdateFaceGroupResult.h | 53 - .../imm/model/UpdateFigureClusterRequest.h | 62 + .../imm/model/UpdateFigureClusterResult.h | 49 + .../imm/model/UpdateFileMetaRequest.h | 64 + ...ServiceResult.h => UpdateFileMetaResult.h} | 16 +- .../imm/model/UpdateImageRequest.h | 88 - .../imm/model/UpdateImageResult.h | 71 - .../imm/model/UpdateProjectRequest.h | 51 +- .../imm/model/UpdateProjectResult.h | 36 +- .../alibabacloud/imm/model/UpdateSetRequest.h | 51 - .../alibabacloud/imm/model/UpdateSetResult.h | 57 - .../imm/model/UpdateStoryRequest.h | 63 + .../imm/model/UpdateStoryResult.h | 49 + imm/src/ImmClient.cc | 1872 ++++++++--------- imm/src/model/AddStoryFilesRequest.cc | 65 + ...entKeyResult.cc => AddStoryFilesResult.cc} | 35 +- imm/src/model/AttachOSSBucketRequest.cc | 45 + ...TaskResult.cc => AttachOSSBucketResult.cc} | 10 +- imm/src/model/BatchDeleteFileMetaRequest.cc | 56 + ...Result.cc => BatchDeleteFileMetaResult.cc} | 17 +- imm/src/model/BatchGetFileMetaRequest.cc | 56 + imm/src/model/BatchGetFileMetaResult.cc | 531 +++++ imm/src/model/BatchIndexFileMetaRequest.cc | 87 + ...eResult.cc => BatchIndexFileMetaResult.cc} | 18 +- imm/src/model/BatchUpdateFileMetaRequest.cc | 69 + ...Result.cc => BatchUpdateFileMetaResult.cc} | 42 +- imm/src/model/CompareImageFacesRequest.cc | 90 - imm/src/model/CompareImageFacesResult.cc | 94 - imm/src/model/ConvertOfficeFormatRequest.cc | 216 -- imm/src/model/CreateBindingRequest.cc | 63 + imm/src/model/CreateBindingResult.cc | 66 + imm/src/model/CreateDatasetRequest.cc | 108 + imm/src/model/CreateDatasetResult.cc | 78 + .../CreateDetectVideoLabelsTaskRequest.cc | 98 + .../CreateDetectVideoLabelsTaskResult.cc | 58 + .../CreateFigureClusteringTaskRequest.cc | 83 + .../model/CreateFigureClusteringTaskResult.cc | 58 + .../CreateFigureClustersMergingTaskRequest.cc | 101 + .../CreateFigureClustersMergingTaskResult.cc | 58 + imm/src/model/CreateGrabFrameTaskRequest.cc | 90 - imm/src/model/CreateGroupFacesJobRequest.cc | 72 - .../model/CreateImageModerationTaskRequest.cc | 136 ++ ....cc => CreateImageModerationTaskResult.cc} | 20 +- .../model/CreateImageProcessTaskRequest.cc | 81 - .../model/CreateImageSplicingTaskRequest.cc | 182 ++ ...lt.cc => CreateImageSplicingTaskResult.cc} | 20 +- .../model/CreateMediaComplexTaskRequest.cc | 72 - .../model/CreateMediaConvertTaskRequest.cc | 207 ++ ...ult.cc => CreateMediaConvertTaskResult.cc} | 20 +- .../model/CreateMergeFaceGroupsJobRequest.cc | 99 - .../model/CreateMergeFaceGroupsJobResult.cc | 79 - .../CreateOfficeConversionTaskRequest.cc | 343 +-- .../model/CreateOfficeConversionTaskResult.cc | 29 +- imm/src/model/CreateProjectRequest.cc | 135 ++ imm/src/model/CreateProjectResult.cc | 84 + imm/src/model/CreateSetRequest.cc | 63 - imm/src/model/CreateSetResult.cc | 100 - imm/src/model/CreateStoryRequest.cc | 173 ++ ...rameTaskResult.cc => CreateStoryResult.cc} | 20 +- .../model/CreateVideoAbstractTaskRequest.cc | 99 - .../model/CreateVideoAnalyseTaskRequest.cc | 126 -- .../model/CreateVideoCompressTaskRequest.cc | 117 -- .../model/CreateVideoCompressTaskResult.cc | 58 - .../model/CreateVideoModerationTaskRequest.cc | 136 ++ ....cc => CreateVideoModerationTaskResult.cc} | 20 +- .../model/CreateVideoProduceTaskRequest.cc | 126 -- imm/src/model/CreateVideoProduceTaskResult.cc | 58 - imm/src/model/DecodeBlindWatermarkRequest.cc | 99 - imm/src/model/DecodeBlindWatermarkResult.cc | 58 - imm/src/model/DeleteBindingRequest.cc | 63 + ...onTaskResult.cc => DeleteBindingResult.cc} | 10 +- imm/src/model/DeleteDatasetRequest.cc | 45 + imm/src/model/DeleteDatasetResult.cc | 44 + imm/src/model/DeleteFileMetaRequest.cc | 54 + ...geJobResult.cc => DeleteFileMetaResult.cc} | 10 +- imm/src/model/DeleteImageJobRequest.cc | 63 - imm/src/model/DeleteImageRequest.cc | 63 - .../DeleteOfficeConversionTaskRequest.cc | 54 - imm/src/model/DeleteProjectRequest.cc | 21 +- imm/src/model/DeleteSetRequest.cc | 54 - imm/src/model/DeleteStoryRequest.cc | 54 + imm/src/model/DeleteStoryResult.cc | 44 + imm/src/model/DeleteVideoRequest.cc | 72 - imm/src/model/DeleteVideoTaskRequest.cc | 63 - imm/src/model/DescribeRegionsResult.cc | 61 - ...ceRequest.cc => DetachOSSBucketRequest.cc} | 20 +- imm/src/model/DetachOSSBucketResult.cc | 44 + imm/src/model/DetectImageBodiesRequest.cc | 47 +- imm/src/model/DetectImageBodiesResult.cc | 29 +- imm/src/model/DetectImageCodesRequest.cc | 60 + imm/src/model/DetectImageCodesResult.cc | 70 + imm/src/model/DetectImageCroppingRequest.cc | 69 + imm/src/model/DetectImageCroppingResult.cc | 68 + imm/src/model/DetectImageFacesRequest.cc | 47 +- imm/src/model/DetectImageFacesResult.cc | 111 +- imm/src/model/DetectImageLabelsRequest.cc | 69 + imm/src/model/DetectImageLabelsResult.cc | 67 + imm/src/model/DetectImageQRCodesRequest.cc | 54 - imm/src/model/DetectImageQRCodesResult.cc | 73 - imm/src/model/DetectImageScoreRequest.cc | 60 + ...ageResult.cc => DetectImageScoreResult.cc} | 26 +- imm/src/model/DetectImageTagsRequest.cc | 63 - imm/src/model/DetectImageTagsResult.cc | 76 - imm/src/model/DetectQRCodesRequest.cc | 54 - imm/src/model/DetectQRCodesResult.cc | 91 - imm/src/model/DetectTextAnomalyRequest.cc | 45 + imm/src/model/DetectTextAnomalyResult.cc | 51 + imm/src/model/EncodeBlindWatermarkRequest.cc | 117 -- imm/src/model/EncodeBlindWatermarkResult.cc | 58 - imm/src/model/FindImagesRequest.cc | 297 --- imm/src/model/FindImagesResult.cc | 305 --- imm/src/model/FindSimilarFacesRequest.cc | 99 - imm/src/model/FindSimilarFacesResult.cc | 97 - imm/src/model/FuzzyQueryRequest.cc | 72 + imm/src/model/FuzzyQueryResult.cc | 538 +++++ imm/src/model/GetBindingRequest.cc | 63 + imm/src/model/GetBindingResult.cc | 66 + imm/src/model/GetContentKeyRequest.cc | 72 - imm/src/model/GetDRMLicenseRequest.cc | 63 - imm/src/model/GetDRMLicenseResult.cc | 58 - imm/src/model/GetDatasetRequest.cc | 54 + imm/src/model/GetDatasetResult.cc | 78 + .../GetDetectVideoLabelsResultRequest.cc | 54 + .../model/GetDetectVideoLabelsResultResult.cc | 137 ++ imm/src/model/GetFigureClusterRequest.cc | 54 + imm/src/model/GetFigureClusterResult.cc | 561 +++++ imm/src/model/GetFileMetaRequest.cc | 54 + imm/src/model/GetFileMetaResult.cc | 531 +++++ .../GetImageCroppingSuggestionsRequest.cc | 63 - .../GetImageCroppingSuggestionsResult.cc | 75 - imm/src/model/GetImageQualityRequest.cc | 54 - imm/src/model/GetImageQualityResult.cc | 77 - imm/src/model/GetImageRequest.cc | 63 - imm/src/model/GetImageResult.cc | 512 ----- imm/src/model/GetMediaMetaRequest.cc | 38 +- imm/src/model/GetMediaMetaResult.cc | 446 ++-- .../model/GetOSSBucketAttachmentRequest.cc | 36 + imm/src/model/GetOSSBucketAttachmentResult.cc | 51 + .../model/GetOfficeConversionTaskRequest.cc | 54 - .../model/GetOfficeConversionTaskResult.cc | 143 -- imm/src/model/GetOfficeEditURLRequest.cc | 126 -- imm/src/model/GetOfficeEditURLResult.cc | 79 - imm/src/model/GetOfficePreviewURLRequest.cc | 126 -- imm/src/model/GetOfficePreviewURLResult.cc | 79 - imm/src/model/GetProjectRequest.cc | 22 +- imm/src/model/GetProjectResult.cc | 95 +- imm/src/model/GetSetRequest.cc | 54 - imm/src/model/GetSetResult.cc | 100 - imm/src/model/GetStoryRequest.cc | 54 + imm/src/model/GetStoryResult.cc | 1040 +++++++++ imm/src/model/GetTaskRequest.cc | 54 + imm/src/model/GetTaskResult.cc | 121 ++ imm/src/model/GetVideoRequest.cc | 63 - imm/src/model/GetVideoResult.cc | 381 ---- imm/src/model/GetVideoTaskRequest.cc | 63 - imm/src/model/GetVideoTaskResult.cc | 121 -- imm/src/model/GetWebofficeURLRequest.cc | 168 +- imm/src/model/GetWebofficeURLResult.cc | 12 +- imm/src/model/IndexFileMetaRequest.cc | 85 + imm/src/model/IndexFileMetaResult.cc | 51 + imm/src/model/IndexImageRequest.cc | 180 -- imm/src/model/IndexImageResult.cc | 121 -- imm/src/model/IndexVideoRequest.cc | 180 -- imm/src/model/IndexVideoResult.cc | 149 -- imm/src/model/ListBindingsRequest.cc | 63 + imm/src/model/ListBindingsResult.cc | 78 + imm/src/model/ListDatasetsRequest.cc | 63 + imm/src/model/ListDatasetsResult.cc | 90 + imm/src/model/ListFaceGroupsRequest.cc | 153 -- imm/src/model/ListFaceGroupsResult.cc | 116 - imm/src/model/ListImagesRequest.cc | 81 - imm/src/model/ListImagesResult.cc | 305 --- .../model/ListOfficeConversionTaskRequest.cc | 63 - .../model/ListOfficeConversionTaskResult.cc | 88 - imm/src/model/ListProjectAPIsRequest.cc | 45 - imm/src/model/ListProjectAPIsResult.cc | 59 - imm/src/model/ListProjectsRequest.cc | 32 +- imm/src/model/ListProjectsResult.cc | 62 +- ...egionsRequest.cc => ListRegionsRequest.cc} | 20 +- ...eteVideoResult.cc => ListRegionsResult.cc} | 33 +- imm/src/model/ListSetTagsRequest.cc | 54 - imm/src/model/ListSetTagsResult.cc | 68 - imm/src/model/ListSetsRequest.cc | 54 - imm/src/model/ListSetsResult.cc | 78 - imm/src/model/ListTasksRequest.cc | 121 ++ ...VideoTasksResult.cc => ListTasksResult.cc} | 58 +- imm/src/model/ListVideoAudiosRequest.cc | 72 - imm/src/model/ListVideoAudiosResult.cc | 144 -- imm/src/model/ListVideoFramesRequest.cc | 72 - imm/src/model/ListVideoFramesResult.cc | 235 --- imm/src/model/ListVideoTasksRequest.cc | 72 - imm/src/model/ListVideosRequest.cc | 72 - imm/src/model/ListVideosResult.cc | 163 -- imm/src/model/MergeFigureClustersRequest.cc | 99 + ...Result.cc => MergeFigureClustersResult.cc} | 18 +- imm/src/model/PutProjectRequest.cc | 63 - imm/src/model/PutProjectResult.cc | 107 - imm/src/model/QueryFigureClustersRequest.cc | 90 + imm/src/model/QueryFigureClustersResult.cc | 573 +++++ imm/src/model/QueryStoriesRequest.cc | 176 ++ imm/src/model/QueryStoriesResult.cc | 1052 +++++++++ .../model/RefreshOfficeEditTokenRequest.cc | 63 - imm/src/model/RefreshOfficeEditTokenResult.cc | 72 - .../model/RefreshOfficePreviewTokenRequest.cc | 63 - .../model/RefreshOfficePreviewTokenResult.cc | 72 - imm/src/model/RefreshWebofficeTokenRequest.cc | 44 +- imm/src/model/RemoveStoryFilesRequest.cc | 65 + imm/src/model/RemoveStoryFilesResult.cc | 44 + imm/src/model/ResumeBindingRequest.cc | 54 + imm/src/model/ResumeBindingResult.cc | 44 + imm/src/model/SemanticQueryRequest.cc | 72 + imm/src/model/SemanticQueryResult.cc | 565 +++++ imm/src/model/SimpleQueryRequest.cc | 118 ++ imm/src/model/SimpleQueryResult.cc | 565 +++++ imm/src/model/StopBindingRequest.cc | 63 + imm/src/model/StopBindingResult.cc | 44 + imm/src/model/UpdateDatasetRequest.cc | 108 + imm/src/model/UpdateDatasetResult.cc | 78 + imm/src/model/UpdateFaceGroupRequest.cc | 153 -- imm/src/model/UpdateFaceGroupResult.cc | 58 - imm/src/model/UpdateFigureClusterRequest.cc | 62 + imm/src/model/UpdateFigureClusterResult.cc | 44 + imm/src/model/UpdateFileMetaRequest.cc | 67 + imm/src/model/UpdateFileMetaResult.cc | 44 + imm/src/model/UpdateImageRequest.cc | 165 -- imm/src/model/UpdateImageResult.cc | 121 -- imm/src/model/UpdateProjectRequest.cc | 115 +- imm/src/model/UpdateProjectResult.cc | 81 +- imm/src/model/UpdateSetRequest.cc | 63 - imm/src/model/UpdateSetResult.cc | 72 - imm/src/model/UpdateStoryRequest.cc | 90 + imm/src/model/UpdateStoryResult.cc | 44 + 410 files changed, 22803 insertions(+), 18312 deletions(-) rename imm/include/alibabacloud/imm/model/{DeleteImageJobRequest.h => AddStoryFilesRequest.h} (52%) rename imm/include/alibabacloud/imm/model/{GetContentKeyResult.h => AddStoryFilesResult.h} (63%) rename imm/include/alibabacloud/imm/model/{ListProjectAPIsRequest.h => AttachOSSBucketRequest.h} (62%) rename imm/include/alibabacloud/imm/model/{DeleteVideoTaskResult.h => AttachOSSBucketResult.h} (72%) rename imm/include/alibabacloud/imm/model/{CreateSetRequest.h => BatchDeleteFileMetaRequest.h} (55%) rename imm/include/alibabacloud/imm/model/{ConvertOfficeFormatResult.h => BatchDeleteFileMetaResult.h} (69%) create mode 100644 imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h create mode 100644 imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h rename imm/include/alibabacloud/imm/model/{CreateMediaComplexTaskRequest.h => BatchIndexFileMetaRequest.h} (51%) create mode 100644 imm/include/alibabacloud/imm/model/BatchIndexFileMetaResult.h create mode 100644 imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h rename imm/include/alibabacloud/imm/model/{CreateGroupFacesJobResult.h => BatchUpdateFileMetaResult.h} (63%) delete mode 100644 imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/CompareImageFacesResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h rename imm/include/alibabacloud/imm/model/{GetDRMLicenseRequest.h => CreateBindingRequest.h} (54%) rename imm/include/alibabacloud/imm/model/{ListSetsResult.h => CreateBindingResult.h} (60%) create mode 100644 imm/include/alibabacloud/imm/model/CreateDatasetRequest.h create mode 100644 imm/include/alibabacloud/imm/model/CreateDatasetResult.h create mode 100644 imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h create mode 100644 imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskResult.h rename imm/include/alibabacloud/imm/model/{CreateImageProcessTaskRequest.h => CreateFigureClusteringTaskRequest.h} (57%) create mode 100644 imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.h rename imm/include/alibabacloud/imm/model/{CreateMergeFaceGroupsJobRequest.h => CreateFigureClustersMergingTaskRequest.h} (52%) create mode 100644 imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.h delete mode 100644 imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h create mode 100644 imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h rename imm/include/alibabacloud/imm/model/{CreateImageProcessTaskResult.h => CreateImageModerationTaskResult.h} (66%) create mode 100644 imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h rename imm/include/alibabacloud/imm/model/{CreateVideoCompressTaskResult.h => CreateImageSplicingTaskResult.h} (69%) create mode 100644 imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h rename imm/include/alibabacloud/imm/model/{CreateMediaComplexTaskResult.h => CreateMediaConvertTaskResult.h} (69%) delete mode 100644 imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h create mode 100644 imm/include/alibabacloud/imm/model/CreateProjectRequest.h rename imm/include/alibabacloud/imm/model/{ListOfficeConversionTaskResult.h => CreateProjectResult.h} (51%) delete mode 100644 imm/include/alibabacloud/imm/model/CreateSetResult.h create mode 100644 imm/include/alibabacloud/imm/model/CreateStoryRequest.h rename imm/include/alibabacloud/imm/model/{DeleteImageResult.h => CreateStoryResult.h} (67%) delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h create mode 100644 imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h rename imm/include/alibabacloud/imm/model/{CreateVideoAbstractTaskResult.h => CreateVideoModerationTaskResult.h} (66%) delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h delete mode 100644 imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h rename imm/include/alibabacloud/imm/model/{DeleteOfficeConversionTaskRequest.h => DeleteBindingRequest.h} (55%) rename imm/include/alibabacloud/imm/model/{DeleteSetResult.h => DeleteBindingResult.h} (70%) rename imm/include/alibabacloud/imm/model/{GetSetRequest.h => DeleteDatasetRequest.h} (60%) create mode 100644 imm/include/alibabacloud/imm/model/DeleteDatasetResult.h create mode 100644 imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h rename imm/include/alibabacloud/imm/model/{DeleteImageJobResult.h => DeleteFileMetaResult.h} (73%) create mode 100644 imm/include/alibabacloud/imm/model/DeleteStoryRequest.h create mode 100644 imm/include/alibabacloud/imm/model/DeleteStoryResult.h delete mode 100644 imm/include/alibabacloud/imm/model/DeleteVideoRequest.h rename imm/include/alibabacloud/imm/model/{DescribeRegionsRequest.h => DetachOSSBucketRequest.h} (68%) create mode 100644 imm/include/alibabacloud/imm/model/DetachOSSBucketResult.h create mode 100644 imm/include/alibabacloud/imm/model/DetectImageCodesRequest.h rename imm/include/alibabacloud/imm/model/{DetectImageQRCodesResult.h => DetectImageCodesResult.h} (58%) rename imm/include/alibabacloud/imm/model/{GetImageCroppingSuggestionsRequest.h => DetectImageCroppingRequest.h} (50%) create mode 100644 imm/include/alibabacloud/imm/model/DetectImageCroppingResult.h create mode 100644 imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h rename imm/include/alibabacloud/imm/model/{ListSetTagsResult.h => DetectImageLabelsResult.h} (59%) create mode 100644 imm/include/alibabacloud/imm/model/DetectImageScoreRequest.h create mode 100644 imm/include/alibabacloud/imm/model/DetectImageScoreResult.h delete mode 100644 imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/DetectQRCodesResult.h create mode 100644 imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h rename imm/include/alibabacloud/imm/model/{DeleteOfficeConversionTaskResult.h => DetectTextAnomalyResult.h} (67%) delete mode 100644 imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/EncodeBlindWatermarkResult.h delete mode 100644 imm/include/alibabacloud/imm/model/FindImagesRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/FindImagesResult.h delete mode 100644 imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h rename imm/include/alibabacloud/imm/model/{ListVideosRequest.h => FuzzyQueryRequest.h} (52%) create mode 100644 imm/include/alibabacloud/imm/model/FuzzyQueryResult.h create mode 100644 imm/include/alibabacloud/imm/model/GetBindingRequest.h rename imm/include/alibabacloud/imm/model/{DescribeRegionsResult.h => GetBindingResult.h} (60%) delete mode 100644 imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h rename imm/include/alibabacloud/imm/model/{DeleteSetRequest.h => GetDatasetRequest.h} (58%) rename imm/include/alibabacloud/imm/model/{GetSetResult.h => GetDatasetResult.h} (54%) rename imm/include/alibabacloud/imm/model/{GetVideoTaskRequest.h => GetDetectVideoLabelsResultRequest.h} (67%) create mode 100644 imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultResult.h rename imm/include/alibabacloud/imm/model/{DetectImageQRCodesRequest.h => GetFigureClusterRequest.h} (56%) create mode 100644 imm/include/alibabacloud/imm/model/GetFigureClusterResult.h rename imm/include/alibabacloud/imm/model/{ListSetTagsRequest.h => GetFileMetaRequest.h} (59%) create mode 100644 imm/include/alibabacloud/imm/model/GetFileMetaResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetImageQualityRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetImageQualityResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetImageRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetImageResult.h create mode 100644 imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.h create mode 100644 imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficeEditURLRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficeEditURLResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetOfficePreviewURLResult.h rename imm/include/alibabacloud/imm/model/{ListSetsRequest.h => GetStoryRequest.h} (59%) create mode 100644 imm/include/alibabacloud/imm/model/GetStoryResult.h rename imm/include/alibabacloud/imm/model/{DeleteVideoTaskRequest.h => GetTaskRequest.h} (66%) rename imm/include/alibabacloud/imm/model/{GetVideoTaskResult.h => GetTaskResult.h} (64%) delete mode 100644 imm/include/alibabacloud/imm/model/GetVideoRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetVideoResult.h rename imm/include/alibabacloud/imm/model/{CreateGrabFrameTaskRequest.h => IndexFileMetaRequest.h} (54%) create mode 100644 imm/include/alibabacloud/imm/model/IndexFileMetaResult.h delete mode 100644 imm/include/alibabacloud/imm/model/IndexImageRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/IndexImageResult.h delete mode 100644 imm/include/alibabacloud/imm/model/IndexVideoRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/IndexVideoResult.h rename imm/include/alibabacloud/imm/model/{PutProjectRequest.h => ListBindingsRequest.h} (55%) rename imm/include/alibabacloud/imm/model/{DetectImageTagsResult.h => ListBindingsResult.h} (56%) create mode 100644 imm/include/alibabacloud/imm/model/ListDatasetsRequest.h create mode 100644 imm/include/alibabacloud/imm/model/ListDatasetsResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ListImagesRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListImagesResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h rename imm/include/alibabacloud/imm/model/{OpenImmServiceRequest.h => ListRegionsRequest.h} (67%) rename imm/include/alibabacloud/imm/model/{DeleteVideoResult.h => ListRegionsResult.h} (65%) create mode 100644 imm/include/alibabacloud/imm/model/ListTasksRequest.h rename imm/include/alibabacloud/imm/model/{ListVideoTasksResult.h => ListTasksResult.h} (65%) delete mode 100644 imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListVideoFramesResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ListVideosResult.h create mode 100644 imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.h rename imm/include/alibabacloud/imm/model/{CreateGrabFrameTaskResult.h => MergeFigureClustersResult.h} (69%) delete mode 100644 imm/include/alibabacloud/imm/model/PutProjectResult.h create mode 100644 imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.h create mode 100644 imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h create mode 100644 imm/include/alibabacloud/imm/model/QueryStoriesRequest.h create mode 100644 imm/include/alibabacloud/imm/model/QueryStoriesResult.h delete mode 100644 imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h delete mode 100644 imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h create mode 100644 imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.h create mode 100644 imm/include/alibabacloud/imm/model/RemoveStoryFilesResult.h rename imm/include/alibabacloud/imm/model/{DetectQRCodesRequest.h => ResumeBindingRequest.h} (59%) create mode 100644 imm/include/alibabacloud/imm/model/ResumeBindingResult.h rename imm/include/alibabacloud/imm/model/{GetContentKeyRequest.h => SemanticQueryRequest.h} (51%) create mode 100644 imm/include/alibabacloud/imm/model/SemanticQueryResult.h create mode 100644 imm/include/alibabacloud/imm/model/SimpleQueryRequest.h create mode 100644 imm/include/alibabacloud/imm/model/SimpleQueryResult.h rename imm/include/alibabacloud/imm/model/{DeleteImageRequest.h => StopBindingRequest.h} (55%) create mode 100644 imm/include/alibabacloud/imm/model/StopBindingResult.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateDatasetResult.h delete mode 100644 imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateFigureClusterResult.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h rename imm/include/alibabacloud/imm/model/{OpenImmServiceResult.h => UpdateFileMetaResult.h} (69%) delete mode 100644 imm/include/alibabacloud/imm/model/UpdateImageRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/UpdateImageResult.h delete mode 100644 imm/include/alibabacloud/imm/model/UpdateSetRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/UpdateSetResult.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateStoryRequest.h create mode 100644 imm/include/alibabacloud/imm/model/UpdateStoryResult.h create mode 100644 imm/src/model/AddStoryFilesRequest.cc rename imm/src/model/{GetContentKeyResult.cc => AddStoryFilesResult.cc} (51%) create mode 100644 imm/src/model/AttachOSSBucketRequest.cc rename imm/src/model/{DeleteVideoTaskResult.cc => AttachOSSBucketResult.cc} (76%) create mode 100644 imm/src/model/BatchDeleteFileMetaRequest.cc rename imm/src/model/{DeleteSetResult.cc => BatchDeleteFileMetaResult.cc} (70%) create mode 100644 imm/src/model/BatchGetFileMetaRequest.cc create mode 100644 imm/src/model/BatchGetFileMetaResult.cc create mode 100644 imm/src/model/BatchIndexFileMetaRequest.cc rename imm/src/model/{OpenImmServiceResult.cc => BatchIndexFileMetaResult.cc} (66%) create mode 100644 imm/src/model/BatchUpdateFileMetaRequest.cc rename imm/src/model/{CreateGroupFacesJobResult.cc => BatchUpdateFileMetaResult.cc} (50%) delete mode 100644 imm/src/model/CompareImageFacesRequest.cc delete mode 100644 imm/src/model/CompareImageFacesResult.cc delete mode 100644 imm/src/model/ConvertOfficeFormatRequest.cc create mode 100644 imm/src/model/CreateBindingRequest.cc create mode 100644 imm/src/model/CreateBindingResult.cc create mode 100644 imm/src/model/CreateDatasetRequest.cc create mode 100644 imm/src/model/CreateDatasetResult.cc create mode 100644 imm/src/model/CreateDetectVideoLabelsTaskRequest.cc create mode 100644 imm/src/model/CreateDetectVideoLabelsTaskResult.cc create mode 100644 imm/src/model/CreateFigureClusteringTaskRequest.cc create mode 100644 imm/src/model/CreateFigureClusteringTaskResult.cc create mode 100644 imm/src/model/CreateFigureClustersMergingTaskRequest.cc create mode 100644 imm/src/model/CreateFigureClustersMergingTaskResult.cc delete mode 100644 imm/src/model/CreateGrabFrameTaskRequest.cc delete mode 100644 imm/src/model/CreateGroupFacesJobRequest.cc create mode 100644 imm/src/model/CreateImageModerationTaskRequest.cc rename imm/src/model/{CreateMediaComplexTaskResult.cc => CreateImageModerationTaskResult.cc} (63%) delete mode 100644 imm/src/model/CreateImageProcessTaskRequest.cc create mode 100644 imm/src/model/CreateImageSplicingTaskRequest.cc rename imm/src/model/{CreateVideoAbstractTaskResult.cc => CreateImageSplicingTaskResult.cc} (66%) delete mode 100644 imm/src/model/CreateMediaComplexTaskRequest.cc create mode 100644 imm/src/model/CreateMediaConvertTaskRequest.cc rename imm/src/model/{CreateVideoAnalyseTaskResult.cc => CreateMediaConvertTaskResult.cc} (66%) delete mode 100644 imm/src/model/CreateMergeFaceGroupsJobRequest.cc delete mode 100644 imm/src/model/CreateMergeFaceGroupsJobResult.cc create mode 100644 imm/src/model/CreateProjectRequest.cc create mode 100644 imm/src/model/CreateProjectResult.cc delete mode 100644 imm/src/model/CreateSetRequest.cc delete mode 100644 imm/src/model/CreateSetResult.cc create mode 100644 imm/src/model/CreateStoryRequest.cc rename imm/src/model/{CreateGrabFrameTaskResult.cc => CreateStoryResult.cc} (65%) delete mode 100644 imm/src/model/CreateVideoAbstractTaskRequest.cc delete mode 100644 imm/src/model/CreateVideoAnalyseTaskRequest.cc delete mode 100644 imm/src/model/CreateVideoCompressTaskRequest.cc delete mode 100644 imm/src/model/CreateVideoCompressTaskResult.cc create mode 100644 imm/src/model/CreateVideoModerationTaskRequest.cc rename imm/src/model/{CreateImageProcessTaskResult.cc => CreateVideoModerationTaskResult.cc} (63%) delete mode 100644 imm/src/model/CreateVideoProduceTaskRequest.cc delete mode 100644 imm/src/model/CreateVideoProduceTaskResult.cc delete mode 100644 imm/src/model/DecodeBlindWatermarkRequest.cc delete mode 100644 imm/src/model/DecodeBlindWatermarkResult.cc create mode 100644 imm/src/model/DeleteBindingRequest.cc rename imm/src/model/{DeleteOfficeConversionTaskResult.cc => DeleteBindingResult.cc} (70%) create mode 100644 imm/src/model/DeleteDatasetRequest.cc create mode 100644 imm/src/model/DeleteDatasetResult.cc create mode 100644 imm/src/model/DeleteFileMetaRequest.cc rename imm/src/model/{DeleteImageJobResult.cc => DeleteFileMetaResult.cc} (77%) delete mode 100644 imm/src/model/DeleteImageJobRequest.cc delete mode 100644 imm/src/model/DeleteImageRequest.cc delete mode 100644 imm/src/model/DeleteOfficeConversionTaskRequest.cc delete mode 100644 imm/src/model/DeleteSetRequest.cc create mode 100644 imm/src/model/DeleteStoryRequest.cc create mode 100644 imm/src/model/DeleteStoryResult.cc delete mode 100644 imm/src/model/DeleteVideoRequest.cc delete mode 100644 imm/src/model/DeleteVideoTaskRequest.cc delete mode 100644 imm/src/model/DescribeRegionsResult.cc rename imm/src/model/{OpenImmServiceRequest.cc => DetachOSSBucketRequest.cc} (55%) create mode 100644 imm/src/model/DetachOSSBucketResult.cc create mode 100644 imm/src/model/DetectImageCodesRequest.cc create mode 100644 imm/src/model/DetectImageCodesResult.cc create mode 100644 imm/src/model/DetectImageCroppingRequest.cc create mode 100644 imm/src/model/DetectImageCroppingResult.cc create mode 100644 imm/src/model/DetectImageLabelsRequest.cc create mode 100644 imm/src/model/DetectImageLabelsResult.cc delete mode 100644 imm/src/model/DetectImageQRCodesRequest.cc delete mode 100644 imm/src/model/DetectImageQRCodesResult.cc create mode 100644 imm/src/model/DetectImageScoreRequest.cc rename imm/src/model/{DeleteImageResult.cc => DetectImageScoreResult.cc} (60%) delete mode 100644 imm/src/model/DetectImageTagsRequest.cc delete mode 100644 imm/src/model/DetectImageTagsResult.cc delete mode 100644 imm/src/model/DetectQRCodesRequest.cc delete mode 100644 imm/src/model/DetectQRCodesResult.cc create mode 100644 imm/src/model/DetectTextAnomalyRequest.cc create mode 100644 imm/src/model/DetectTextAnomalyResult.cc delete mode 100644 imm/src/model/EncodeBlindWatermarkRequest.cc delete mode 100644 imm/src/model/EncodeBlindWatermarkResult.cc delete mode 100644 imm/src/model/FindImagesRequest.cc delete mode 100644 imm/src/model/FindImagesResult.cc delete mode 100644 imm/src/model/FindSimilarFacesRequest.cc delete mode 100644 imm/src/model/FindSimilarFacesResult.cc create mode 100644 imm/src/model/FuzzyQueryRequest.cc create mode 100644 imm/src/model/FuzzyQueryResult.cc create mode 100644 imm/src/model/GetBindingRequest.cc create mode 100644 imm/src/model/GetBindingResult.cc delete mode 100644 imm/src/model/GetContentKeyRequest.cc delete mode 100644 imm/src/model/GetDRMLicenseRequest.cc delete mode 100644 imm/src/model/GetDRMLicenseResult.cc create mode 100644 imm/src/model/GetDatasetRequest.cc create mode 100644 imm/src/model/GetDatasetResult.cc create mode 100644 imm/src/model/GetDetectVideoLabelsResultRequest.cc create mode 100644 imm/src/model/GetDetectVideoLabelsResultResult.cc create mode 100644 imm/src/model/GetFigureClusterRequest.cc create mode 100644 imm/src/model/GetFigureClusterResult.cc create mode 100644 imm/src/model/GetFileMetaRequest.cc create mode 100644 imm/src/model/GetFileMetaResult.cc delete mode 100644 imm/src/model/GetImageCroppingSuggestionsRequest.cc delete mode 100644 imm/src/model/GetImageCroppingSuggestionsResult.cc delete mode 100644 imm/src/model/GetImageQualityRequest.cc delete mode 100644 imm/src/model/GetImageQualityResult.cc delete mode 100644 imm/src/model/GetImageRequest.cc delete mode 100644 imm/src/model/GetImageResult.cc create mode 100644 imm/src/model/GetOSSBucketAttachmentRequest.cc create mode 100644 imm/src/model/GetOSSBucketAttachmentResult.cc delete mode 100644 imm/src/model/GetOfficeConversionTaskRequest.cc delete mode 100644 imm/src/model/GetOfficeConversionTaskResult.cc delete mode 100644 imm/src/model/GetOfficeEditURLRequest.cc delete mode 100644 imm/src/model/GetOfficeEditURLResult.cc delete mode 100644 imm/src/model/GetOfficePreviewURLRequest.cc delete mode 100644 imm/src/model/GetOfficePreviewURLResult.cc delete mode 100644 imm/src/model/GetSetRequest.cc delete mode 100644 imm/src/model/GetSetResult.cc create mode 100644 imm/src/model/GetStoryRequest.cc create mode 100644 imm/src/model/GetStoryResult.cc create mode 100644 imm/src/model/GetTaskRequest.cc create mode 100644 imm/src/model/GetTaskResult.cc delete mode 100644 imm/src/model/GetVideoRequest.cc delete mode 100644 imm/src/model/GetVideoResult.cc delete mode 100644 imm/src/model/GetVideoTaskRequest.cc delete mode 100644 imm/src/model/GetVideoTaskResult.cc create mode 100644 imm/src/model/IndexFileMetaRequest.cc create mode 100644 imm/src/model/IndexFileMetaResult.cc delete mode 100644 imm/src/model/IndexImageRequest.cc delete mode 100644 imm/src/model/IndexImageResult.cc delete mode 100644 imm/src/model/IndexVideoRequest.cc delete mode 100644 imm/src/model/IndexVideoResult.cc create mode 100644 imm/src/model/ListBindingsRequest.cc create mode 100644 imm/src/model/ListBindingsResult.cc create mode 100644 imm/src/model/ListDatasetsRequest.cc create mode 100644 imm/src/model/ListDatasetsResult.cc delete mode 100644 imm/src/model/ListFaceGroupsRequest.cc delete mode 100644 imm/src/model/ListFaceGroupsResult.cc delete mode 100644 imm/src/model/ListImagesRequest.cc delete mode 100644 imm/src/model/ListImagesResult.cc delete mode 100644 imm/src/model/ListOfficeConversionTaskRequest.cc delete mode 100644 imm/src/model/ListOfficeConversionTaskResult.cc delete mode 100644 imm/src/model/ListProjectAPIsRequest.cc delete mode 100644 imm/src/model/ListProjectAPIsResult.cc rename imm/src/model/{DescribeRegionsRequest.cc => ListRegionsRequest.cc} (54%) rename imm/src/model/{DeleteVideoResult.cc => ListRegionsResult.cc} (53%) delete mode 100644 imm/src/model/ListSetTagsRequest.cc delete mode 100644 imm/src/model/ListSetTagsResult.cc delete mode 100644 imm/src/model/ListSetsRequest.cc delete mode 100644 imm/src/model/ListSetsResult.cc create mode 100644 imm/src/model/ListTasksRequest.cc rename imm/src/model/{ListVideoTasksResult.cc => ListTasksResult.cc} (56%) delete mode 100644 imm/src/model/ListVideoAudiosRequest.cc delete mode 100644 imm/src/model/ListVideoAudiosResult.cc delete mode 100644 imm/src/model/ListVideoFramesRequest.cc delete mode 100644 imm/src/model/ListVideoFramesResult.cc delete mode 100644 imm/src/model/ListVideoTasksRequest.cc delete mode 100644 imm/src/model/ListVideosRequest.cc delete mode 100644 imm/src/model/ListVideosResult.cc create mode 100644 imm/src/model/MergeFigureClustersRequest.cc rename imm/src/model/{ConvertOfficeFormatResult.cc => MergeFigureClustersResult.cc} (67%) delete mode 100644 imm/src/model/PutProjectRequest.cc delete mode 100644 imm/src/model/PutProjectResult.cc create mode 100644 imm/src/model/QueryFigureClustersRequest.cc create mode 100644 imm/src/model/QueryFigureClustersResult.cc create mode 100644 imm/src/model/QueryStoriesRequest.cc create mode 100644 imm/src/model/QueryStoriesResult.cc delete mode 100644 imm/src/model/RefreshOfficeEditTokenRequest.cc delete mode 100644 imm/src/model/RefreshOfficeEditTokenResult.cc delete mode 100644 imm/src/model/RefreshOfficePreviewTokenRequest.cc delete mode 100644 imm/src/model/RefreshOfficePreviewTokenResult.cc create mode 100644 imm/src/model/RemoveStoryFilesRequest.cc create mode 100644 imm/src/model/RemoveStoryFilesResult.cc create mode 100644 imm/src/model/ResumeBindingRequest.cc create mode 100644 imm/src/model/ResumeBindingResult.cc create mode 100644 imm/src/model/SemanticQueryRequest.cc create mode 100644 imm/src/model/SemanticQueryResult.cc create mode 100644 imm/src/model/SimpleQueryRequest.cc create mode 100644 imm/src/model/SimpleQueryResult.cc create mode 100644 imm/src/model/StopBindingRequest.cc create mode 100644 imm/src/model/StopBindingResult.cc create mode 100644 imm/src/model/UpdateDatasetRequest.cc create mode 100644 imm/src/model/UpdateDatasetResult.cc delete mode 100644 imm/src/model/UpdateFaceGroupRequest.cc delete mode 100644 imm/src/model/UpdateFaceGroupResult.cc create mode 100644 imm/src/model/UpdateFigureClusterRequest.cc create mode 100644 imm/src/model/UpdateFigureClusterResult.cc create mode 100644 imm/src/model/UpdateFileMetaRequest.cc create mode 100644 imm/src/model/UpdateFileMetaResult.cc delete mode 100644 imm/src/model/UpdateImageRequest.cc delete mode 100644 imm/src/model/UpdateImageResult.cc delete mode 100644 imm/src/model/UpdateSetRequest.cc delete mode 100644 imm/src/model/UpdateSetResult.cc create mode 100644 imm/src/model/UpdateStoryRequest.cc create mode 100644 imm/src/model/UpdateStoryResult.cc diff --git a/CHANGELOG b/CHANGELOG index f136f651d..0e07b221c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-07-20 Version: 1.36.1189 +- Add Body Detection and Image Splicing API. + 2022-07-20 Version: 1.36.1188 - Generated 2020-05-18 for `dataworks-public`. diff --git a/VERSION b/VERSION index 9b2153a6b..345a72a26 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1188 \ No newline at end of file +1.36.1189 \ No newline at end of file diff --git a/imm/CMakeLists.txt b/imm/CMakeLists.txt index 38774c8b4..8c622bd7c 100644 --- a/imm/CMakeLists.txt +++ b/imm/CMakeLists.txt @@ -21,273 +21,261 @@ set(imm_public_header include/alibabacloud/imm/ImmExport.h ) set(imm_public_header_model - 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/CreateGrabFrameTaskRequest.h - include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h - include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h - include/alibabacloud/imm/model/CreateGroupFacesJobResult.h - include/alibabacloud/imm/model/CreateImageProcessTaskRequest.h - include/alibabacloud/imm/model/CreateImageProcessTaskResult.h - include/alibabacloud/imm/model/CreateMediaComplexTaskRequest.h - include/alibabacloud/imm/model/CreateMediaComplexTaskResult.h - include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h - include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h + include/alibabacloud/imm/model/AddStoryFilesRequest.h + include/alibabacloud/imm/model/AddStoryFilesResult.h + include/alibabacloud/imm/model/AttachOSSBucketRequest.h + include/alibabacloud/imm/model/AttachOSSBucketResult.h + include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h + include/alibabacloud/imm/model/BatchDeleteFileMetaResult.h + include/alibabacloud/imm/model/BatchGetFileMetaRequest.h + include/alibabacloud/imm/model/BatchGetFileMetaResult.h + include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h + include/alibabacloud/imm/model/BatchIndexFileMetaResult.h + include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h + include/alibabacloud/imm/model/BatchUpdateFileMetaResult.h + include/alibabacloud/imm/model/CreateBindingRequest.h + include/alibabacloud/imm/model/CreateBindingResult.h + include/alibabacloud/imm/model/CreateDatasetRequest.h + include/alibabacloud/imm/model/CreateDatasetResult.h + include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h + include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskResult.h + include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h + include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.h + include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h + include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.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/CreateOfficeConversionTaskRequest.h include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h - include/alibabacloud/imm/model/CreateSetRequest.h - include/alibabacloud/imm/model/CreateSetResult.h - include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h - include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h - include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h - include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h - include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h - include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h - include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h - include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h - include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h - include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h - include/alibabacloud/imm/model/DeleteImageRequest.h - include/alibabacloud/imm/model/DeleteImageResult.h - include/alibabacloud/imm/model/DeleteImageJobRequest.h - include/alibabacloud/imm/model/DeleteImageJobResult.h - include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h - include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h + include/alibabacloud/imm/model/CreateProjectRequest.h + include/alibabacloud/imm/model/CreateProjectResult.h + include/alibabacloud/imm/model/CreateStoryRequest.h + include/alibabacloud/imm/model/CreateStoryResult.h + include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h + include/alibabacloud/imm/model/CreateVideoModerationTaskResult.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/DeleteProjectRequest.h include/alibabacloud/imm/model/DeleteProjectResult.h - include/alibabacloud/imm/model/DeleteSetRequest.h - include/alibabacloud/imm/model/DeleteSetResult.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/DescribeRegionsRequest.h - include/alibabacloud/imm/model/DescribeRegionsResult.h + include/alibabacloud/imm/model/DeleteStoryRequest.h + include/alibabacloud/imm/model/DeleteStoryResult.h + include/alibabacloud/imm/model/DetachOSSBucketRequest.h + include/alibabacloud/imm/model/DetachOSSBucketResult.h include/alibabacloud/imm/model/DetectImageBodiesRequest.h include/alibabacloud/imm/model/DetectImageBodiesResult.h + include/alibabacloud/imm/model/DetectImageCodesRequest.h + include/alibabacloud/imm/model/DetectImageCodesResult.h + include/alibabacloud/imm/model/DetectImageCroppingRequest.h + include/alibabacloud/imm/model/DetectImageCroppingResult.h include/alibabacloud/imm/model/DetectImageFacesRequest.h include/alibabacloud/imm/model/DetectImageFacesResult.h - include/alibabacloud/imm/model/DetectImageQRCodesRequest.h - include/alibabacloud/imm/model/DetectImageQRCodesResult.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/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/GetContentKeyRequest.h - include/alibabacloud/imm/model/GetContentKeyResult.h - include/alibabacloud/imm/model/GetDRMLicenseRequest.h - include/alibabacloud/imm/model/GetDRMLicenseResult.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/DetectImageLabelsRequest.h + include/alibabacloud/imm/model/DetectImageLabelsResult.h + include/alibabacloud/imm/model/DetectImageScoreRequest.h + include/alibabacloud/imm/model/DetectImageScoreResult.h + include/alibabacloud/imm/model/DetectTextAnomalyRequest.h + include/alibabacloud/imm/model/DetectTextAnomalyResult.h + include/alibabacloud/imm/model/FuzzyQueryRequest.h + include/alibabacloud/imm/model/FuzzyQueryResult.h + include/alibabacloud/imm/model/GetBindingRequest.h + include/alibabacloud/imm/model/GetBindingResult.h + include/alibabacloud/imm/model/GetDatasetRequest.h + include/alibabacloud/imm/model/GetDatasetResult.h + include/alibabacloud/imm/model/GetDetectVideoLabelsResultRequest.h + include/alibabacloud/imm/model/GetDetectVideoLabelsResultResult.h + include/alibabacloud/imm/model/GetFigureClusterRequest.h + include/alibabacloud/imm/model/GetFigureClusterResult.h + include/alibabacloud/imm/model/GetFileMetaRequest.h + include/alibabacloud/imm/model/GetFileMetaResult.h include/alibabacloud/imm/model/GetMediaMetaRequest.h include/alibabacloud/imm/model/GetMediaMetaResult.h - include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h - include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h - include/alibabacloud/imm/model/GetOfficeEditURLRequest.h - include/alibabacloud/imm/model/GetOfficeEditURLResult.h - include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h - include/alibabacloud/imm/model/GetOfficePreviewURLResult.h + include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.h + include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.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/GetVideoRequest.h - include/alibabacloud/imm/model/GetVideoResult.h - include/alibabacloud/imm/model/GetVideoTaskRequest.h - include/alibabacloud/imm/model/GetVideoTaskResult.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/GetWebofficeURLRequest.h include/alibabacloud/imm/model/GetWebofficeURLResult.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/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/ListProjectAPIsRequest.h - include/alibabacloud/imm/model/ListProjectAPIsResult.h + include/alibabacloud/imm/model/IndexFileMetaRequest.h + include/alibabacloud/imm/model/IndexFileMetaResult.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/ListProjectsRequest.h include/alibabacloud/imm/model/ListProjectsResult.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/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/OpenImmServiceRequest.h - include/alibabacloud/imm/model/OpenImmServiceResult.h - include/alibabacloud/imm/model/PutProjectRequest.h - include/alibabacloud/imm/model/PutProjectResult.h - include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h - include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h - include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h - include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h + include/alibabacloud/imm/model/ListRegionsRequest.h + include/alibabacloud/imm/model/ListRegionsResult.h + include/alibabacloud/imm/model/ListTasksRequest.h + include/alibabacloud/imm/model/ListTasksResult.h + include/alibabacloud/imm/model/MergeFigureClustersRequest.h + include/alibabacloud/imm/model/MergeFigureClustersResult.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/RefreshWebofficeTokenRequest.h include/alibabacloud/imm/model/RefreshWebofficeTokenResult.h - include/alibabacloud/imm/model/UpdateFaceGroupRequest.h - include/alibabacloud/imm/model/UpdateFaceGroupResult.h - include/alibabacloud/imm/model/UpdateImageRequest.h - include/alibabacloud/imm/model/UpdateImageResult.h + include/alibabacloud/imm/model/RemoveStoryFilesRequest.h + include/alibabacloud/imm/model/RemoveStoryFilesResult.h + include/alibabacloud/imm/model/ResumeBindingRequest.h + include/alibabacloud/imm/model/ResumeBindingResult.h + include/alibabacloud/imm/model/SemanticQueryRequest.h + include/alibabacloud/imm/model/SemanticQueryResult.h + include/alibabacloud/imm/model/SimpleQueryRequest.h + include/alibabacloud/imm/model/SimpleQueryResult.h + include/alibabacloud/imm/model/StopBindingRequest.h + include/alibabacloud/imm/model/StopBindingResult.h + include/alibabacloud/imm/model/UpdateDatasetRequest.h + include/alibabacloud/imm/model/UpdateDatasetResult.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/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 ) set(imm_src src/ImmClient.cc - src/model/CompareImageFacesRequest.cc - src/model/CompareImageFacesResult.cc - src/model/ConvertOfficeFormatRequest.cc - src/model/ConvertOfficeFormatResult.cc - src/model/CreateGrabFrameTaskRequest.cc - src/model/CreateGrabFrameTaskResult.cc - src/model/CreateGroupFacesJobRequest.cc - src/model/CreateGroupFacesJobResult.cc - src/model/CreateImageProcessTaskRequest.cc - src/model/CreateImageProcessTaskResult.cc - src/model/CreateMediaComplexTaskRequest.cc - src/model/CreateMediaComplexTaskResult.cc - src/model/CreateMergeFaceGroupsJobRequest.cc - src/model/CreateMergeFaceGroupsJobResult.cc + src/model/AddStoryFilesRequest.cc + src/model/AddStoryFilesResult.cc + src/model/AttachOSSBucketRequest.cc + src/model/AttachOSSBucketResult.cc + src/model/BatchDeleteFileMetaRequest.cc + src/model/BatchDeleteFileMetaResult.cc + src/model/BatchGetFileMetaRequest.cc + src/model/BatchGetFileMetaResult.cc + src/model/BatchIndexFileMetaRequest.cc + src/model/BatchIndexFileMetaResult.cc + src/model/BatchUpdateFileMetaRequest.cc + src/model/BatchUpdateFileMetaResult.cc + src/model/CreateBindingRequest.cc + src/model/CreateBindingResult.cc + src/model/CreateDatasetRequest.cc + src/model/CreateDatasetResult.cc + src/model/CreateDetectVideoLabelsTaskRequest.cc + src/model/CreateDetectVideoLabelsTaskResult.cc + src/model/CreateFigureClusteringTaskRequest.cc + src/model/CreateFigureClusteringTaskResult.cc + src/model/CreateFigureClustersMergingTaskRequest.cc + src/model/CreateFigureClustersMergingTaskResult.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/CreateOfficeConversionTaskRequest.cc src/model/CreateOfficeConversionTaskResult.cc - src/model/CreateSetRequest.cc - src/model/CreateSetResult.cc - src/model/CreateVideoAbstractTaskRequest.cc - src/model/CreateVideoAbstractTaskResult.cc - src/model/CreateVideoAnalyseTaskRequest.cc - src/model/CreateVideoAnalyseTaskResult.cc - src/model/CreateVideoCompressTaskRequest.cc - src/model/CreateVideoCompressTaskResult.cc - src/model/CreateVideoProduceTaskRequest.cc - src/model/CreateVideoProduceTaskResult.cc - src/model/DecodeBlindWatermarkRequest.cc - src/model/DecodeBlindWatermarkResult.cc - src/model/DeleteImageRequest.cc - src/model/DeleteImageResult.cc - src/model/DeleteImageJobRequest.cc - src/model/DeleteImageJobResult.cc - src/model/DeleteOfficeConversionTaskRequest.cc - src/model/DeleteOfficeConversionTaskResult.cc + src/model/CreateProjectRequest.cc + src/model/CreateProjectResult.cc + src/model/CreateStoryRequest.cc + src/model/CreateStoryResult.cc + src/model/CreateVideoModerationTaskRequest.cc + src/model/CreateVideoModerationTaskResult.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/DeleteProjectRequest.cc src/model/DeleteProjectResult.cc - src/model/DeleteSetRequest.cc - src/model/DeleteSetResult.cc - src/model/DeleteVideoRequest.cc - src/model/DeleteVideoResult.cc - src/model/DeleteVideoTaskRequest.cc - src/model/DeleteVideoTaskResult.cc - src/model/DescribeRegionsRequest.cc - src/model/DescribeRegionsResult.cc + src/model/DeleteStoryRequest.cc + src/model/DeleteStoryResult.cc + src/model/DetachOSSBucketRequest.cc + src/model/DetachOSSBucketResult.cc src/model/DetectImageBodiesRequest.cc src/model/DetectImageBodiesResult.cc + src/model/DetectImageCodesRequest.cc + src/model/DetectImageCodesResult.cc + src/model/DetectImageCroppingRequest.cc + src/model/DetectImageCroppingResult.cc src/model/DetectImageFacesRequest.cc src/model/DetectImageFacesResult.cc - src/model/DetectImageQRCodesRequest.cc - src/model/DetectImageQRCodesResult.cc - src/model/DetectImageTagsRequest.cc - src/model/DetectImageTagsResult.cc - src/model/DetectQRCodesRequest.cc - src/model/DetectQRCodesResult.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/GetContentKeyRequest.cc - src/model/GetContentKeyResult.cc - src/model/GetDRMLicenseRequest.cc - src/model/GetDRMLicenseResult.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/DetectImageLabelsRequest.cc + src/model/DetectImageLabelsResult.cc + src/model/DetectImageScoreRequest.cc + src/model/DetectImageScoreResult.cc + src/model/DetectTextAnomalyRequest.cc + src/model/DetectTextAnomalyResult.cc + src/model/FuzzyQueryRequest.cc + src/model/FuzzyQueryResult.cc + src/model/GetBindingRequest.cc + src/model/GetBindingResult.cc + src/model/GetDatasetRequest.cc + src/model/GetDatasetResult.cc + src/model/GetDetectVideoLabelsResultRequest.cc + src/model/GetDetectVideoLabelsResultResult.cc + src/model/GetFigureClusterRequest.cc + src/model/GetFigureClusterResult.cc + src/model/GetFileMetaRequest.cc + src/model/GetFileMetaResult.cc src/model/GetMediaMetaRequest.cc src/model/GetMediaMetaResult.cc - src/model/GetOfficeConversionTaskRequest.cc - src/model/GetOfficeConversionTaskResult.cc - src/model/GetOfficeEditURLRequest.cc - src/model/GetOfficeEditURLResult.cc - src/model/GetOfficePreviewURLRequest.cc - src/model/GetOfficePreviewURLResult.cc + src/model/GetOSSBucketAttachmentRequest.cc + src/model/GetOSSBucketAttachmentResult.cc src/model/GetProjectRequest.cc src/model/GetProjectResult.cc - src/model/GetSetRequest.cc - src/model/GetSetResult.cc - src/model/GetVideoRequest.cc - src/model/GetVideoResult.cc - src/model/GetVideoTaskRequest.cc - src/model/GetVideoTaskResult.cc + src/model/GetStoryRequest.cc + src/model/GetStoryResult.cc + src/model/GetTaskRequest.cc + src/model/GetTaskResult.cc src/model/GetWebofficeURLRequest.cc src/model/GetWebofficeURLResult.cc - src/model/IndexImageRequest.cc - src/model/IndexImageResult.cc - src/model/IndexVideoRequest.cc - src/model/IndexVideoResult.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/ListProjectAPIsRequest.cc - src/model/ListProjectAPIsResult.cc + src/model/IndexFileMetaRequest.cc + src/model/IndexFileMetaResult.cc + src/model/ListBindingsRequest.cc + src/model/ListBindingsResult.cc + src/model/ListDatasetsRequest.cc + src/model/ListDatasetsResult.cc src/model/ListProjectsRequest.cc src/model/ListProjectsResult.cc - src/model/ListSetTagsRequest.cc - src/model/ListSetTagsResult.cc - src/model/ListSetsRequest.cc - src/model/ListSetsResult.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/OpenImmServiceRequest.cc - src/model/OpenImmServiceResult.cc - src/model/PutProjectRequest.cc - src/model/PutProjectResult.cc - src/model/RefreshOfficeEditTokenRequest.cc - src/model/RefreshOfficeEditTokenResult.cc - src/model/RefreshOfficePreviewTokenRequest.cc - src/model/RefreshOfficePreviewTokenResult.cc + src/model/ListRegionsRequest.cc + src/model/ListRegionsResult.cc + src/model/ListTasksRequest.cc + src/model/ListTasksResult.cc + src/model/MergeFigureClustersRequest.cc + src/model/MergeFigureClustersResult.cc + src/model/QueryFigureClustersRequest.cc + src/model/QueryFigureClustersResult.cc + src/model/QueryStoriesRequest.cc + src/model/QueryStoriesResult.cc src/model/RefreshWebofficeTokenRequest.cc src/model/RefreshWebofficeTokenResult.cc - src/model/UpdateFaceGroupRequest.cc - src/model/UpdateFaceGroupResult.cc - src/model/UpdateImageRequest.cc - src/model/UpdateImageResult.cc + src/model/RemoveStoryFilesRequest.cc + src/model/RemoveStoryFilesResult.cc + src/model/ResumeBindingRequest.cc + src/model/ResumeBindingResult.cc + src/model/SemanticQueryRequest.cc + src/model/SemanticQueryResult.cc + src/model/SimpleQueryRequest.cc + src/model/SimpleQueryResult.cc + src/model/StopBindingRequest.cc + src/model/StopBindingResult.cc + src/model/UpdateDatasetRequest.cc + src/model/UpdateDatasetResult.cc + src/model/UpdateFigureClusterRequest.cc + src/model/UpdateFigureClusterResult.cc + src/model/UpdateFileMetaRequest.cc + src/model/UpdateFileMetaResult.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 ) add_library(imm ${LIB_TYPE} ${imm_public_header} diff --git a/imm/include/alibabacloud/imm/ImmClient.h b/imm/include/alibabacloud/imm/ImmClient.h index fd8ba1980..4e319bdb9 100644 --- a/imm/include/alibabacloud/imm/ImmClient.h +++ b/imm/include/alibabacloud/imm/ImmClient.h @@ -22,138 +22,132 @@ #include #include #include "ImmExport.h" -#include "model/CompareImageFacesRequest.h" -#include "model/CompareImageFacesResult.h" -#include "model/ConvertOfficeFormatRequest.h" -#include "model/ConvertOfficeFormatResult.h" -#include "model/CreateGrabFrameTaskRequest.h" -#include "model/CreateGrabFrameTaskResult.h" -#include "model/CreateGroupFacesJobRequest.h" -#include "model/CreateGroupFacesJobResult.h" -#include "model/CreateImageProcessTaskRequest.h" -#include "model/CreateImageProcessTaskResult.h" -#include "model/CreateMediaComplexTaskRequest.h" -#include "model/CreateMediaComplexTaskResult.h" -#include "model/CreateMergeFaceGroupsJobRequest.h" -#include "model/CreateMergeFaceGroupsJobResult.h" +#include "model/AddStoryFilesRequest.h" +#include "model/AddStoryFilesResult.h" +#include "model/AttachOSSBucketRequest.h" +#include "model/AttachOSSBucketResult.h" +#include "model/BatchDeleteFileMetaRequest.h" +#include "model/BatchDeleteFileMetaResult.h" +#include "model/BatchGetFileMetaRequest.h" +#include "model/BatchGetFileMetaResult.h" +#include "model/BatchIndexFileMetaRequest.h" +#include "model/BatchIndexFileMetaResult.h" +#include "model/BatchUpdateFileMetaRequest.h" +#include "model/BatchUpdateFileMetaResult.h" +#include "model/CreateBindingRequest.h" +#include "model/CreateBindingResult.h" +#include "model/CreateDatasetRequest.h" +#include "model/CreateDatasetResult.h" +#include "model/CreateDetectVideoLabelsTaskRequest.h" +#include "model/CreateDetectVideoLabelsTaskResult.h" +#include "model/CreateFigureClusteringTaskRequest.h" +#include "model/CreateFigureClusteringTaskResult.h" +#include "model/CreateFigureClustersMergingTaskRequest.h" +#include "model/CreateFigureClustersMergingTaskResult.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/CreateOfficeConversionTaskRequest.h" #include "model/CreateOfficeConversionTaskResult.h" -#include "model/CreateSetRequest.h" -#include "model/CreateSetResult.h" -#include "model/CreateVideoAbstractTaskRequest.h" -#include "model/CreateVideoAbstractTaskResult.h" -#include "model/CreateVideoAnalyseTaskRequest.h" -#include "model/CreateVideoAnalyseTaskResult.h" -#include "model/CreateVideoCompressTaskRequest.h" -#include "model/CreateVideoCompressTaskResult.h" -#include "model/CreateVideoProduceTaskRequest.h" -#include "model/CreateVideoProduceTaskResult.h" -#include "model/DecodeBlindWatermarkRequest.h" -#include "model/DecodeBlindWatermarkResult.h" -#include "model/DeleteImageRequest.h" -#include "model/DeleteImageResult.h" -#include "model/DeleteImageJobRequest.h" -#include "model/DeleteImageJobResult.h" -#include "model/DeleteOfficeConversionTaskRequest.h" -#include "model/DeleteOfficeConversionTaskResult.h" +#include "model/CreateProjectRequest.h" +#include "model/CreateProjectResult.h" +#include "model/CreateStoryRequest.h" +#include "model/CreateStoryResult.h" +#include "model/CreateVideoModerationTaskRequest.h" +#include "model/CreateVideoModerationTaskResult.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/DeleteProjectRequest.h" #include "model/DeleteProjectResult.h" -#include "model/DeleteSetRequest.h" -#include "model/DeleteSetResult.h" -#include "model/DeleteVideoRequest.h" -#include "model/DeleteVideoResult.h" -#include "model/DeleteVideoTaskRequest.h" -#include "model/DeleteVideoTaskResult.h" -#include "model/DescribeRegionsRequest.h" -#include "model/DescribeRegionsResult.h" +#include "model/DeleteStoryRequest.h" +#include "model/DeleteStoryResult.h" +#include "model/DetachOSSBucketRequest.h" +#include "model/DetachOSSBucketResult.h" #include "model/DetectImageBodiesRequest.h" #include "model/DetectImageBodiesResult.h" +#include "model/DetectImageCodesRequest.h" +#include "model/DetectImageCodesResult.h" +#include "model/DetectImageCroppingRequest.h" +#include "model/DetectImageCroppingResult.h" #include "model/DetectImageFacesRequest.h" #include "model/DetectImageFacesResult.h" -#include "model/DetectImageQRCodesRequest.h" -#include "model/DetectImageQRCodesResult.h" -#include "model/DetectImageTagsRequest.h" -#include "model/DetectImageTagsResult.h" -#include "model/DetectQRCodesRequest.h" -#include "model/DetectQRCodesResult.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/GetContentKeyRequest.h" -#include "model/GetContentKeyResult.h" -#include "model/GetDRMLicenseRequest.h" -#include "model/GetDRMLicenseResult.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/DetectImageLabelsRequest.h" +#include "model/DetectImageLabelsResult.h" +#include "model/DetectImageScoreRequest.h" +#include "model/DetectImageScoreResult.h" +#include "model/DetectTextAnomalyRequest.h" +#include "model/DetectTextAnomalyResult.h" +#include "model/FuzzyQueryRequest.h" +#include "model/FuzzyQueryResult.h" +#include "model/GetBindingRequest.h" +#include "model/GetBindingResult.h" +#include "model/GetDatasetRequest.h" +#include "model/GetDatasetResult.h" +#include "model/GetDetectVideoLabelsResultRequest.h" +#include "model/GetDetectVideoLabelsResultResult.h" +#include "model/GetFigureClusterRequest.h" +#include "model/GetFigureClusterResult.h" +#include "model/GetFileMetaRequest.h" +#include "model/GetFileMetaResult.h" #include "model/GetMediaMetaRequest.h" #include "model/GetMediaMetaResult.h" -#include "model/GetOfficeConversionTaskRequest.h" -#include "model/GetOfficeConversionTaskResult.h" -#include "model/GetOfficeEditURLRequest.h" -#include "model/GetOfficeEditURLResult.h" -#include "model/GetOfficePreviewURLRequest.h" -#include "model/GetOfficePreviewURLResult.h" +#include "model/GetOSSBucketAttachmentRequest.h" +#include "model/GetOSSBucketAttachmentResult.h" #include "model/GetProjectRequest.h" #include "model/GetProjectResult.h" -#include "model/GetSetRequest.h" -#include "model/GetSetResult.h" -#include "model/GetVideoRequest.h" -#include "model/GetVideoResult.h" -#include "model/GetVideoTaskRequest.h" -#include "model/GetVideoTaskResult.h" +#include "model/GetStoryRequest.h" +#include "model/GetStoryResult.h" +#include "model/GetTaskRequest.h" +#include "model/GetTaskResult.h" #include "model/GetWebofficeURLRequest.h" #include "model/GetWebofficeURLResult.h" -#include "model/IndexImageRequest.h" -#include "model/IndexImageResult.h" -#include "model/IndexVideoRequest.h" -#include "model/IndexVideoResult.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/ListProjectAPIsRequest.h" -#include "model/ListProjectAPIsResult.h" +#include "model/IndexFileMetaRequest.h" +#include "model/IndexFileMetaResult.h" +#include "model/ListBindingsRequest.h" +#include "model/ListBindingsResult.h" +#include "model/ListDatasetsRequest.h" +#include "model/ListDatasetsResult.h" #include "model/ListProjectsRequest.h" #include "model/ListProjectsResult.h" -#include "model/ListSetTagsRequest.h" -#include "model/ListSetTagsResult.h" -#include "model/ListSetsRequest.h" -#include "model/ListSetsResult.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/OpenImmServiceRequest.h" -#include "model/OpenImmServiceResult.h" -#include "model/PutProjectRequest.h" -#include "model/PutProjectResult.h" -#include "model/RefreshOfficeEditTokenRequest.h" -#include "model/RefreshOfficeEditTokenResult.h" -#include "model/RefreshOfficePreviewTokenRequest.h" -#include "model/RefreshOfficePreviewTokenResult.h" +#include "model/ListRegionsRequest.h" +#include "model/ListRegionsResult.h" +#include "model/ListTasksRequest.h" +#include "model/ListTasksResult.h" +#include "model/MergeFigureClustersRequest.h" +#include "model/MergeFigureClustersResult.h" +#include "model/QueryFigureClustersRequest.h" +#include "model/QueryFigureClustersResult.h" +#include "model/QueryStoriesRequest.h" +#include "model/QueryStoriesResult.h" #include "model/RefreshWebofficeTokenRequest.h" #include "model/RefreshWebofficeTokenResult.h" -#include "model/UpdateFaceGroupRequest.h" -#include "model/UpdateFaceGroupResult.h" -#include "model/UpdateImageRequest.h" -#include "model/UpdateImageResult.h" +#include "model/RemoveStoryFilesRequest.h" +#include "model/RemoveStoryFilesResult.h" +#include "model/ResumeBindingRequest.h" +#include "model/ResumeBindingResult.h" +#include "model/SemanticQueryRequest.h" +#include "model/SemanticQueryResult.h" +#include "model/SimpleQueryRequest.h" +#include "model/SimpleQueryResult.h" +#include "model/StopBindingRequest.h" +#include "model/StopBindingResult.h" +#include "model/UpdateDatasetRequest.h" +#include "model/UpdateDatasetResult.h" +#include "model/UpdateFigureClusterRequest.h" +#include "model/UpdateFigureClusterResult.h" +#include "model/UpdateFileMetaRequest.h" +#include "model/UpdateFileMetaResult.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" namespace AlibabaCloud @@ -163,407 +157,389 @@ namespace AlibabaCloud class ALIBABACLOUD_IMM_EXPORT ImmClient : public RpcServiceClient { public: - typedef Outcome CompareImageFacesOutcome; - typedef std::future CompareImageFacesOutcomeCallable; - typedef std::function&)> CompareImageFacesAsyncHandler; - typedef Outcome ConvertOfficeFormatOutcome; - typedef std::future ConvertOfficeFormatOutcomeCallable; - typedef std::function&)> ConvertOfficeFormatAsyncHandler; - typedef Outcome CreateGrabFrameTaskOutcome; - typedef std::future CreateGrabFrameTaskOutcomeCallable; - typedef std::function&)> CreateGrabFrameTaskAsyncHandler; - typedef Outcome CreateGroupFacesJobOutcome; - typedef std::future CreateGroupFacesJobOutcomeCallable; - typedef std::function&)> CreateGroupFacesJobAsyncHandler; - typedef Outcome CreateImageProcessTaskOutcome; - typedef std::future CreateImageProcessTaskOutcomeCallable; - typedef std::function&)> CreateImageProcessTaskAsyncHandler; - typedef Outcome CreateMediaComplexTaskOutcome; - typedef std::future CreateMediaComplexTaskOutcomeCallable; - typedef std::function&)> CreateMediaComplexTaskAsyncHandler; - typedef Outcome CreateMergeFaceGroupsJobOutcome; - typedef std::future CreateMergeFaceGroupsJobOutcomeCallable; - typedef std::function&)> CreateMergeFaceGroupsJobAsyncHandler; + typedef Outcome AddStoryFilesOutcome; + typedef std::future AddStoryFilesOutcomeCallable; + typedef std::function&)> AddStoryFilesAsyncHandler; + typedef Outcome AttachOSSBucketOutcome; + typedef std::future AttachOSSBucketOutcomeCallable; + typedef std::function&)> AttachOSSBucketAsyncHandler; + typedef Outcome BatchDeleteFileMetaOutcome; + typedef std::future BatchDeleteFileMetaOutcomeCallable; + typedef std::function&)> BatchDeleteFileMetaAsyncHandler; + typedef Outcome BatchGetFileMetaOutcome; + typedef std::future BatchGetFileMetaOutcomeCallable; + typedef std::function&)> BatchGetFileMetaAsyncHandler; + typedef Outcome BatchIndexFileMetaOutcome; + typedef std::future BatchIndexFileMetaOutcomeCallable; + typedef std::function&)> BatchIndexFileMetaAsyncHandler; + typedef Outcome BatchUpdateFileMetaOutcome; + typedef std::future BatchUpdateFileMetaOutcomeCallable; + typedef std::function&)> BatchUpdateFileMetaAsyncHandler; + typedef Outcome CreateBindingOutcome; + typedef std::future CreateBindingOutcomeCallable; + typedef std::function&)> CreateBindingAsyncHandler; + typedef Outcome CreateDatasetOutcome; + typedef std::future CreateDatasetOutcomeCallable; + typedef std::function&)> CreateDatasetAsyncHandler; + typedef Outcome CreateDetectVideoLabelsTaskOutcome; + typedef std::future CreateDetectVideoLabelsTaskOutcomeCallable; + typedef std::function&)> CreateDetectVideoLabelsTaskAsyncHandler; + typedef Outcome CreateFigureClusteringTaskOutcome; + typedef std::future CreateFigureClusteringTaskOutcomeCallable; + typedef std::function&)> CreateFigureClusteringTaskAsyncHandler; + typedef Outcome CreateFigureClustersMergingTaskOutcome; + typedef std::future CreateFigureClustersMergingTaskOutcomeCallable; + typedef std::function&)> CreateFigureClustersMergingTaskAsyncHandler; + typedef Outcome CreateImageModerationTaskOutcome; + typedef std::future CreateImageModerationTaskOutcomeCallable; + typedef std::function&)> CreateImageModerationTaskAsyncHandler; + typedef Outcome CreateImageSplicingTaskOutcome; + typedef std::future CreateImageSplicingTaskOutcomeCallable; + typedef std::function&)> CreateImageSplicingTaskAsyncHandler; + typedef Outcome CreateMediaConvertTaskOutcome; + typedef std::future CreateMediaConvertTaskOutcomeCallable; + typedef std::function&)> CreateMediaConvertTaskAsyncHandler; typedef Outcome CreateOfficeConversionTaskOutcome; typedef std::future CreateOfficeConversionTaskOutcomeCallable; typedef std::function&)> CreateOfficeConversionTaskAsyncHandler; - typedef Outcome CreateSetOutcome; - typedef std::future CreateSetOutcomeCallable; - typedef std::function&)> CreateSetAsyncHandler; - typedef Outcome CreateVideoAbstractTaskOutcome; - typedef std::future CreateVideoAbstractTaskOutcomeCallable; - typedef std::function&)> CreateVideoAbstractTaskAsyncHandler; - typedef Outcome CreateVideoAnalyseTaskOutcome; - typedef std::future CreateVideoAnalyseTaskOutcomeCallable; - typedef std::function&)> CreateVideoAnalyseTaskAsyncHandler; - typedef Outcome CreateVideoCompressTaskOutcome; - typedef std::future CreateVideoCompressTaskOutcomeCallable; - typedef std::function&)> CreateVideoCompressTaskAsyncHandler; - typedef Outcome CreateVideoProduceTaskOutcome; - typedef std::future CreateVideoProduceTaskOutcomeCallable; - typedef std::function&)> CreateVideoProduceTaskAsyncHandler; - typedef Outcome DecodeBlindWatermarkOutcome; - typedef std::future DecodeBlindWatermarkOutcomeCallable; - typedef std::function&)> DecodeBlindWatermarkAsyncHandler; - typedef Outcome DeleteImageOutcome; - typedef std::future DeleteImageOutcomeCallable; - typedef std::function&)> DeleteImageAsyncHandler; - typedef Outcome DeleteImageJobOutcome; - typedef std::future DeleteImageJobOutcomeCallable; - typedef std::function&)> DeleteImageJobAsyncHandler; - typedef Outcome DeleteOfficeConversionTaskOutcome; - typedef std::future DeleteOfficeConversionTaskOutcomeCallable; - typedef std::function&)> DeleteOfficeConversionTaskAsyncHandler; + typedef Outcome CreateProjectOutcome; + typedef std::future CreateProjectOutcomeCallable; + typedef std::function&)> CreateProjectAsyncHandler; + typedef Outcome CreateStoryOutcome; + typedef std::future CreateStoryOutcomeCallable; + typedef std::function&)> CreateStoryAsyncHandler; + typedef Outcome CreateVideoModerationTaskOutcome; + typedef std::future CreateVideoModerationTaskOutcomeCallable; + typedef std::function&)> CreateVideoModerationTaskAsyncHandler; + typedef Outcome DeleteBindingOutcome; + typedef std::future DeleteBindingOutcomeCallable; + typedef std::function&)> DeleteBindingAsyncHandler; + typedef Outcome DeleteDatasetOutcome; + typedef std::future DeleteDatasetOutcomeCallable; + typedef std::function&)> DeleteDatasetAsyncHandler; + typedef Outcome DeleteFileMetaOutcome; + typedef std::future DeleteFileMetaOutcomeCallable; + typedef std::function&)> DeleteFileMetaAsyncHandler; typedef Outcome DeleteProjectOutcome; typedef std::future DeleteProjectOutcomeCallable; typedef std::function&)> DeleteProjectAsyncHandler; - typedef Outcome DeleteSetOutcome; - typedef std::future DeleteSetOutcomeCallable; - typedef std::function&)> DeleteSetAsyncHandler; - typedef Outcome DeleteVideoOutcome; - typedef std::future DeleteVideoOutcomeCallable; - typedef std::function&)> DeleteVideoAsyncHandler; - typedef Outcome DeleteVideoTaskOutcome; - typedef std::future DeleteVideoTaskOutcomeCallable; - typedef std::function&)> DeleteVideoTaskAsyncHandler; - typedef Outcome DescribeRegionsOutcome; - typedef std::future DescribeRegionsOutcomeCallable; - typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DeleteStoryOutcome; + typedef std::future DeleteStoryOutcomeCallable; + typedef std::function&)> DeleteStoryAsyncHandler; + typedef Outcome DetachOSSBucketOutcome; + typedef std::future DetachOSSBucketOutcomeCallable; + typedef std::function&)> DetachOSSBucketAsyncHandler; typedef Outcome DetectImageBodiesOutcome; typedef std::future DetectImageBodiesOutcomeCallable; typedef std::function&)> DetectImageBodiesAsyncHandler; + typedef Outcome DetectImageCodesOutcome; + typedef std::future DetectImageCodesOutcomeCallable; + typedef std::function&)> DetectImageCodesAsyncHandler; + typedef Outcome DetectImageCroppingOutcome; + typedef std::future DetectImageCroppingOutcomeCallable; + typedef std::function&)> DetectImageCroppingAsyncHandler; typedef Outcome DetectImageFacesOutcome; typedef std::future DetectImageFacesOutcomeCallable; typedef std::function&)> DetectImageFacesAsyncHandler; - typedef Outcome DetectImageQRCodesOutcome; - typedef std::future DetectImageQRCodesOutcomeCallable; - typedef std::function&)> DetectImageQRCodesAsyncHandler; - typedef Outcome DetectImageTagsOutcome; - typedef std::future DetectImageTagsOutcomeCallable; - typedef std::function&)> DetectImageTagsAsyncHandler; - typedef Outcome DetectQRCodesOutcome; - typedef std::future DetectQRCodesOutcomeCallable; - typedef std::function&)> DetectQRCodesAsyncHandler; - 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 GetContentKeyOutcome; - typedef std::future GetContentKeyOutcomeCallable; - typedef std::function&)> GetContentKeyAsyncHandler; - typedef Outcome GetDRMLicenseOutcome; - typedef std::future GetDRMLicenseOutcomeCallable; - typedef std::function&)> GetDRMLicenseAsyncHandler; - 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 DetectImageLabelsOutcome; + typedef std::future DetectImageLabelsOutcomeCallable; + typedef std::function&)> DetectImageLabelsAsyncHandler; + typedef Outcome DetectImageScoreOutcome; + typedef std::future DetectImageScoreOutcomeCallable; + typedef std::function&)> DetectImageScoreAsyncHandler; + typedef Outcome DetectTextAnomalyOutcome; + typedef std::future DetectTextAnomalyOutcomeCallable; + typedef std::function&)> DetectTextAnomalyAsyncHandler; + typedef Outcome FuzzyQueryOutcome; + typedef std::future FuzzyQueryOutcomeCallable; + typedef std::function&)> FuzzyQueryAsyncHandler; + typedef Outcome GetBindingOutcome; + typedef std::future GetBindingOutcomeCallable; + typedef std::function&)> GetBindingAsyncHandler; + typedef Outcome GetDatasetOutcome; + typedef std::future GetDatasetOutcomeCallable; + typedef std::function&)> GetDatasetAsyncHandler; + typedef Outcome GetDetectVideoLabelsResultOutcome; + typedef std::future GetDetectVideoLabelsResultOutcomeCallable; + typedef std::function&)> GetDetectVideoLabelsResultAsyncHandler; + typedef Outcome GetFigureClusterOutcome; + typedef std::future GetFigureClusterOutcomeCallable; + typedef std::function&)> GetFigureClusterAsyncHandler; + typedef Outcome GetFileMetaOutcome; + typedef std::future GetFileMetaOutcomeCallable; + typedef std::function&)> GetFileMetaAsyncHandler; typedef Outcome GetMediaMetaOutcome; typedef std::future GetMediaMetaOutcomeCallable; typedef std::function&)> GetMediaMetaAsyncHandler; - typedef Outcome GetOfficeConversionTaskOutcome; - typedef std::future GetOfficeConversionTaskOutcomeCallable; - typedef std::function&)> GetOfficeConversionTaskAsyncHandler; - typedef Outcome GetOfficeEditURLOutcome; - typedef std::future GetOfficeEditURLOutcomeCallable; - typedef std::function&)> GetOfficeEditURLAsyncHandler; - typedef Outcome GetOfficePreviewURLOutcome; - typedef std::future GetOfficePreviewURLOutcomeCallable; - typedef std::function&)> GetOfficePreviewURLAsyncHandler; + typedef Outcome GetOSSBucketAttachmentOutcome; + typedef std::future GetOSSBucketAttachmentOutcomeCallable; + typedef std::function&)> GetOSSBucketAttachmentAsyncHandler; typedef Outcome GetProjectOutcome; typedef std::future GetProjectOutcomeCallable; typedef std::function&)> GetProjectAsyncHandler; - typedef Outcome GetSetOutcome; - typedef std::future GetSetOutcomeCallable; - typedef std::function&)> GetSetAsyncHandler; - typedef Outcome GetVideoOutcome; - typedef std::future GetVideoOutcomeCallable; - typedef std::function&)> GetVideoAsyncHandler; - typedef Outcome GetVideoTaskOutcome; - typedef std::future GetVideoTaskOutcomeCallable; - typedef std::function&)> GetVideoTaskAsyncHandler; + typedef Outcome GetStoryOutcome; + typedef std::future GetStoryOutcomeCallable; + typedef std::function&)> GetStoryAsyncHandler; + typedef Outcome GetTaskOutcome; + typedef std::future GetTaskOutcomeCallable; + typedef std::function&)> GetTaskAsyncHandler; typedef Outcome GetWebofficeURLOutcome; typedef std::future GetWebofficeURLOutcomeCallable; typedef std::function&)> GetWebofficeURLAsyncHandler; - typedef Outcome IndexImageOutcome; - typedef std::future IndexImageOutcomeCallable; - typedef std::function&)> IndexImageAsyncHandler; - typedef Outcome IndexVideoOutcome; - typedef std::future IndexVideoOutcomeCallable; - typedef std::function&)> IndexVideoAsyncHandler; - 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 ListProjectAPIsOutcome; - typedef std::future ListProjectAPIsOutcomeCallable; - typedef std::function&)> ListProjectAPIsAsyncHandler; + typedef Outcome IndexFileMetaOutcome; + typedef std::future IndexFileMetaOutcomeCallable; + typedef std::function&)> IndexFileMetaAsyncHandler; + typedef Outcome ListBindingsOutcome; + typedef std::future ListBindingsOutcomeCallable; + typedef std::function&)> ListBindingsAsyncHandler; + typedef Outcome ListDatasetsOutcome; + typedef std::future ListDatasetsOutcomeCallable; + typedef std::function&)> ListDatasetsAsyncHandler; typedef Outcome ListProjectsOutcome; typedef std::future ListProjectsOutcomeCallable; typedef std::function&)> ListProjectsAsyncHandler; - typedef Outcome ListSetTagsOutcome; - typedef std::future ListSetTagsOutcomeCallable; - typedef std::function&)> ListSetTagsAsyncHandler; - typedef Outcome ListSetsOutcome; - typedef std::future ListSetsOutcomeCallable; - typedef std::function&)> ListSetsAsyncHandler; - 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 OpenImmServiceOutcome; - typedef std::future OpenImmServiceOutcomeCallable; - typedef std::function&)> OpenImmServiceAsyncHandler; - typedef Outcome PutProjectOutcome; - typedef std::future PutProjectOutcomeCallable; - typedef std::function&)> PutProjectAsyncHandler; - typedef Outcome RefreshOfficeEditTokenOutcome; - typedef std::future RefreshOfficeEditTokenOutcomeCallable; - typedef std::function&)> RefreshOfficeEditTokenAsyncHandler; - typedef Outcome RefreshOfficePreviewTokenOutcome; - typedef std::future RefreshOfficePreviewTokenOutcomeCallable; - typedef std::function&)> RefreshOfficePreviewTokenAsyncHandler; + typedef Outcome ListRegionsOutcome; + typedef std::future ListRegionsOutcomeCallable; + typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListTasksOutcome; + typedef std::future ListTasksOutcomeCallable; + typedef std::function&)> ListTasksAsyncHandler; + typedef Outcome MergeFigureClustersOutcome; + typedef std::future MergeFigureClustersOutcomeCallable; + typedef std::function&)> MergeFigureClustersAsyncHandler; + typedef Outcome QueryFigureClustersOutcome; + typedef std::future QueryFigureClustersOutcomeCallable; + typedef std::function&)> QueryFigureClustersAsyncHandler; + typedef Outcome QueryStoriesOutcome; + typedef std::future QueryStoriesOutcomeCallable; + typedef std::function&)> QueryStoriesAsyncHandler; typedef Outcome RefreshWebofficeTokenOutcome; typedef std::future RefreshWebofficeTokenOutcomeCallable; typedef std::function&)> RefreshWebofficeTokenAsyncHandler; - typedef Outcome UpdateFaceGroupOutcome; - typedef std::future UpdateFaceGroupOutcomeCallable; - typedef std::function&)> UpdateFaceGroupAsyncHandler; - typedef Outcome UpdateImageOutcome; - typedef std::future UpdateImageOutcomeCallable; - typedef std::function&)> UpdateImageAsyncHandler; + typedef Outcome RemoveStoryFilesOutcome; + typedef std::future RemoveStoryFilesOutcomeCallable; + typedef std::function&)> RemoveStoryFilesAsyncHandler; + typedef Outcome ResumeBindingOutcome; + typedef std::future ResumeBindingOutcomeCallable; + typedef std::function&)> ResumeBindingAsyncHandler; + typedef Outcome SemanticQueryOutcome; + typedef std::future SemanticQueryOutcomeCallable; + typedef std::function&)> SemanticQueryAsyncHandler; + typedef Outcome SimpleQueryOutcome; + typedef std::future SimpleQueryOutcomeCallable; + typedef std::function&)> SimpleQueryAsyncHandler; + typedef Outcome StopBindingOutcome; + typedef std::future StopBindingOutcomeCallable; + typedef std::function&)> StopBindingAsyncHandler; + typedef Outcome UpdateDatasetOutcome; + typedef std::future UpdateDatasetOutcomeCallable; + typedef std::function&)> UpdateDatasetAsyncHandler; + typedef Outcome UpdateFigureClusterOutcome; + typedef std::future UpdateFigureClusterOutcomeCallable; + typedef std::function&)> UpdateFigureClusterAsyncHandler; + typedef Outcome UpdateFileMetaOutcome; + typedef std::future UpdateFileMetaOutcomeCallable; + typedef std::function&)> UpdateFileMetaAsyncHandler; 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; ImmClient(const Credentials &credentials, const ClientConfiguration &configuration); ImmClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); ImmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~ImmClient(); - 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; - 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; - CreateImageProcessTaskOutcome createImageProcessTask(const Model::CreateImageProcessTaskRequest &request)const; - void createImageProcessTaskAsync(const Model::CreateImageProcessTaskRequest& request, const CreateImageProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateImageProcessTaskOutcomeCallable createImageProcessTaskCallable(const Model::CreateImageProcessTaskRequest& request) const; - CreateMediaComplexTaskOutcome createMediaComplexTask(const Model::CreateMediaComplexTaskRequest &request)const; - void createMediaComplexTaskAsync(const Model::CreateMediaComplexTaskRequest& request, const CreateMediaComplexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMediaComplexTaskOutcomeCallable createMediaComplexTaskCallable(const Model::CreateMediaComplexTaskRequest& 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; + AddStoryFilesOutcome addStoryFiles(const Model::AddStoryFilesRequest &request)const; + void addStoryFilesAsync(const Model::AddStoryFilesRequest& request, const AddStoryFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddStoryFilesOutcomeCallable addStoryFilesCallable(const Model::AddStoryFilesRequest& request) const; + AttachOSSBucketOutcome attachOSSBucket(const Model::AttachOSSBucketRequest &request)const; + void attachOSSBucketAsync(const Model::AttachOSSBucketRequest& request, const AttachOSSBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachOSSBucketOutcomeCallable attachOSSBucketCallable(const Model::AttachOSSBucketRequest& request) const; + BatchDeleteFileMetaOutcome batchDeleteFileMeta(const Model::BatchDeleteFileMetaRequest &request)const; + void batchDeleteFileMetaAsync(const Model::BatchDeleteFileMetaRequest& request, const BatchDeleteFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchDeleteFileMetaOutcomeCallable batchDeleteFileMetaCallable(const Model::BatchDeleteFileMetaRequest& request) const; + BatchGetFileMetaOutcome batchGetFileMeta(const Model::BatchGetFileMetaRequest &request)const; + void batchGetFileMetaAsync(const Model::BatchGetFileMetaRequest& request, const BatchGetFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchGetFileMetaOutcomeCallable batchGetFileMetaCallable(const Model::BatchGetFileMetaRequest& request) const; + BatchIndexFileMetaOutcome batchIndexFileMeta(const Model::BatchIndexFileMetaRequest &request)const; + void batchIndexFileMetaAsync(const Model::BatchIndexFileMetaRequest& request, const BatchIndexFileMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchIndexFileMetaOutcomeCallable batchIndexFileMetaCallable(const Model::BatchIndexFileMetaRequest& request) const; + 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; + 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; + CreateDatasetOutcome createDataset(const Model::CreateDatasetRequest &request)const; + void createDatasetAsync(const Model::CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatasetOutcomeCallable createDatasetCallable(const Model::CreateDatasetRequest& request) const; + CreateDetectVideoLabelsTaskOutcome createDetectVideoLabelsTask(const Model::CreateDetectVideoLabelsTaskRequest &request)const; + void createDetectVideoLabelsTaskAsync(const Model::CreateDetectVideoLabelsTaskRequest& request, const CreateDetectVideoLabelsTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDetectVideoLabelsTaskOutcomeCallable createDetectVideoLabelsTaskCallable(const Model::CreateDetectVideoLabelsTaskRequest& request) const; + CreateFigureClusteringTaskOutcome createFigureClusteringTask(const Model::CreateFigureClusteringTaskRequest &request)const; + void createFigureClusteringTaskAsync(const Model::CreateFigureClusteringTaskRequest& request, const CreateFigureClusteringTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFigureClusteringTaskOutcomeCallable createFigureClusteringTaskCallable(const Model::CreateFigureClusteringTaskRequest& request) const; + 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; + 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; + CreateImageSplicingTaskOutcome createImageSplicingTask(const Model::CreateImageSplicingTaskRequest &request)const; + void createImageSplicingTaskAsync(const Model::CreateImageSplicingTaskRequest& request, const CreateImageSplicingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateImageSplicingTaskOutcomeCallable createImageSplicingTaskCallable(const Model::CreateImageSplicingTaskRequest& request) const; + 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; 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; - 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; - CreateVideoAbstractTaskOutcome createVideoAbstractTask(const Model::CreateVideoAbstractTaskRequest &request)const; - void createVideoAbstractTaskAsync(const Model::CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateVideoAbstractTaskOutcomeCallable createVideoAbstractTaskCallable(const Model::CreateVideoAbstractTaskRequest& request) const; - CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const; - void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& 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; - CreateVideoProduceTaskOutcome createVideoProduceTask(const Model::CreateVideoProduceTaskRequest &request)const; - void createVideoProduceTaskAsync(const Model::CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateVideoProduceTaskOutcomeCallable createVideoProduceTaskCallable(const Model::CreateVideoProduceTaskRequest& request) const; - DecodeBlindWatermarkOutcome decodeBlindWatermark(const Model::DecodeBlindWatermarkRequest &request)const; - void decodeBlindWatermarkAsync(const Model::DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DecodeBlindWatermarkOutcomeCallable decodeBlindWatermarkCallable(const Model::DecodeBlindWatermarkRequest& 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; - DeleteImageJobOutcome deleteImageJob(const Model::DeleteImageJobRequest &request)const; - void deleteImageJobAsync(const Model::DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteImageJobOutcomeCallable deleteImageJobCallable(const Model::DeleteImageJobRequest& 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; + 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; + 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; + 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; + 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; + DeleteDatasetOutcome deleteDataset(const Model::DeleteDatasetRequest &request)const; + void deleteDatasetAsync(const Model::DeleteDatasetRequest& request, const DeleteDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatasetOutcomeCallable deleteDatasetCallable(const Model::DeleteDatasetRequest& request) const; + 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; 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; - 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; - DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; - void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& 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; + 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; DetectImageBodiesOutcome detectImageBodies(const Model::DetectImageBodiesRequest &request)const; void detectImageBodiesAsync(const Model::DetectImageBodiesRequest& request, const DetectImageBodiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageBodiesOutcomeCallable detectImageBodiesCallable(const Model::DetectImageBodiesRequest& request) const; + DetectImageCodesOutcome detectImageCodes(const Model::DetectImageCodesRequest &request)const; + void detectImageCodesAsync(const Model::DetectImageCodesRequest& request, const DetectImageCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageCodesOutcomeCallable detectImageCodesCallable(const Model::DetectImageCodesRequest& request) const; + DetectImageCroppingOutcome detectImageCropping(const Model::DetectImageCroppingRequest &request)const; + void detectImageCroppingAsync(const Model::DetectImageCroppingRequest& request, const DetectImageCroppingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageCroppingOutcomeCallable detectImageCroppingCallable(const Model::DetectImageCroppingRequest& request) const; DetectImageFacesOutcome detectImageFaces(const Model::DetectImageFacesRequest &request)const; void detectImageFacesAsync(const Model::DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectImageFacesOutcomeCallable detectImageFacesCallable(const Model::DetectImageFacesRequest& 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; - 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; - 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; - GetContentKeyOutcome getContentKey(const Model::GetContentKeyRequest &request)const; - void getContentKeyAsync(const Model::GetContentKeyRequest& request, const GetContentKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetContentKeyOutcomeCallable getContentKeyCallable(const Model::GetContentKeyRequest& request) const; - GetDRMLicenseOutcome getDRMLicense(const Model::GetDRMLicenseRequest &request)const; - void getDRMLicenseAsync(const Model::GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDRMLicenseOutcomeCallable getDRMLicenseCallable(const Model::GetDRMLicenseRequest& 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; + 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; + 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; + 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; + 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; + GetBindingOutcome getBinding(const Model::GetBindingRequest &request)const; + void getBindingAsync(const Model::GetBindingRequest& request, const GetBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBindingOutcomeCallable getBindingCallable(const Model::GetBindingRequest& request) const; + GetDatasetOutcome getDataset(const Model::GetDatasetRequest &request)const; + void getDatasetAsync(const Model::GetDatasetRequest& request, const GetDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDatasetOutcomeCallable getDatasetCallable(const Model::GetDatasetRequest& request) const; + GetDetectVideoLabelsResultOutcome getDetectVideoLabelsResult(const Model::GetDetectVideoLabelsResultRequest &request)const; + void getDetectVideoLabelsResultAsync(const Model::GetDetectVideoLabelsResultRequest& request, const GetDetectVideoLabelsResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDetectVideoLabelsResultOutcomeCallable getDetectVideoLabelsResultCallable(const Model::GetDetectVideoLabelsResultRequest& request) const; + GetFigureClusterOutcome getFigureCluster(const Model::GetFigureClusterRequest &request)const; + void getFigureClusterAsync(const Model::GetFigureClusterRequest& request, const GetFigureClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFigureClusterOutcomeCallable getFigureClusterCallable(const Model::GetFigureClusterRequest& request) const; + 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; 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; - 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; - GetOfficeEditURLOutcome getOfficeEditURL(const Model::GetOfficeEditURLRequest &request)const; - void getOfficeEditURLAsync(const Model::GetOfficeEditURLRequest& request, const GetOfficeEditURLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetOfficeEditURLOutcomeCallable getOfficeEditURLCallable(const Model::GetOfficeEditURLRequest& 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; + 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; 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; - 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; + 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; 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; - 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; - 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; - ListProjectAPIsOutcome listProjectAPIs(const Model::ListProjectAPIsRequest &request)const; - void listProjectAPIsAsync(const Model::ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListProjectAPIsOutcomeCallable listProjectAPIsCallable(const Model::ListProjectAPIsRequest& 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; + 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; 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; - 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; - 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; - 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; - RefreshOfficeEditTokenOutcome refreshOfficeEditToken(const Model::RefreshOfficeEditTokenRequest &request)const; - void refreshOfficeEditTokenAsync(const Model::RefreshOfficeEditTokenRequest& request, const RefreshOfficeEditTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RefreshOfficeEditTokenOutcomeCallable refreshOfficeEditTokenCallable(const Model::RefreshOfficeEditTokenRequest& 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; + 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; + 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; + 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; + 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; 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; - 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; - 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; + RemoveStoryFilesOutcome removeStoryFiles(const Model::RemoveStoryFilesRequest &request)const; + void removeStoryFilesAsync(const Model::RemoveStoryFilesRequest& request, const RemoveStoryFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveStoryFilesOutcomeCallable removeStoryFilesCallable(const Model::RemoveStoryFilesRequest& request) const; + ResumeBindingOutcome resumeBinding(const Model::ResumeBindingRequest &request)const; + void resumeBindingAsync(const Model::ResumeBindingRequest& request, const ResumeBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResumeBindingOutcomeCallable resumeBindingCallable(const Model::ResumeBindingRequest& request) const; + SemanticQueryOutcome semanticQuery(const Model::SemanticQueryRequest &request)const; + void semanticQueryAsync(const Model::SemanticQueryRequest& request, const SemanticQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SemanticQueryOutcomeCallable semanticQueryCallable(const Model::SemanticQueryRequest& request) const; + SimpleQueryOutcome simpleQuery(const Model::SimpleQueryRequest &request)const; + void simpleQueryAsync(const Model::SimpleQueryRequest& request, const SimpleQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SimpleQueryOutcomeCallable simpleQueryCallable(const Model::SimpleQueryRequest& request) const; + StopBindingOutcome stopBinding(const Model::StopBindingRequest &request)const; + void stopBindingAsync(const Model::StopBindingRequest& request, const StopBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopBindingOutcomeCallable stopBindingCallable(const Model::StopBindingRequest& request) const; + 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; + 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; 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; private: std::shared_ptr endpointProvider_; diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h b/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h similarity index 52% rename from imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h rename to imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h index 56a3448b7..c0f032904 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h +++ b/imm/include/alibabacloud/imm/model/AddStoryFilesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESREQUEST_H_ #include #include @@ -26,26 +26,29 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DeleteImageJobRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT AddStoryFilesRequest : public RpcServiceRequest { public: - DeleteImageJobRequest(); - ~DeleteImageJobRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getJobId() const; - void setJobId(const std::string &jobId); - std::string getJobType() const; - void setJobType(const std::string &jobType); + struct Files { + std::string uRI; + }; + AddStoryFilesRequest(); + ~AddStoryFilesRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::vector getFiles() const; + void setFiles(const std::vector &files); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); private: - std::string project_; - std::string accessKeyId_; - std::string jobId_; - std::string jobType_; + std::string datasetName_; + std::string projectName_; + std::vector files_; + std::string objectId_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetContentKeyResult.h b/imm/include/alibabacloud/imm/model/AddStoryFilesResult.h similarity index 63% rename from imm/include/alibabacloud/imm/model/GetContentKeyResult.h rename to imm/include/alibabacloud/imm/model/AddStoryFilesResult.h index 3f19e83fe..0d9a021b1 100644 --- a/imm/include/alibabacloud/imm/model/GetContentKeyResult.h +++ b/imm/include/alibabacloud/imm/model/AddStoryFilesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESRESULT_H_ #include #include @@ -29,25 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT GetContentKeyResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT AddStoryFilesResult : public ServiceResult { public: + struct FilesItem + { + std::string errorCode; + std::string errorMessage; + std::string uRI; + }; - GetContentKeyResult(); - explicit GetContentKeyResult(const std::string &payload); - ~GetContentKeyResult(); - std::string getVersionId()const; - std::string getKeyInfos()const; + AddStoryFilesResult(); + explicit AddStoryFilesResult(const std::string &payload); + ~AddStoryFilesResult(); + std::vector getFiles()const; protected: void parse(const std::string &payload); private: - std::string versionId_; - std::string keyInfos_; + std::vector files_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_ADDSTORYFILESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h b/imm/include/alibabacloud/imm/model/AttachOSSBucketRequest.h similarity index 62% rename from imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h rename to imm/include/alibabacloud/imm/model/AttachOSSBucketRequest.h index a2a1032ac..c3c1bc02c 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectAPIsRequest.h +++ b/imm/include/alibabacloud/imm/model/AttachOSSBucketRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT AttachOSSBucketRequest : public RpcServiceRequest { public: - ListProjectAPIsRequest(); - ~ListProjectAPIsRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + AttachOSSBucketRequest(); + ~AttachOSSBucketRequest(); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); private: - std::string project_; - std::string accessKeyId_; + std::string projectName_; + std::string oSSBucket_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h b/imm/include/alibabacloud/imm/model/AttachOSSBucketResult.h similarity index 72% rename from imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h rename to imm/include/alibabacloud/imm/model/AttachOSSBucketResult.h index 535bc5d91..7995e463e 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h +++ b/imm/include/alibabacloud/imm/model/AttachOSSBucketResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT AttachOSSBucketResult : public ServiceResult { public: - DeleteVideoTaskResult(); - explicit DeleteVideoTaskResult(const std::string &payload); - ~DeleteVideoTaskResult(); + AttachOSSBucketResult(); + explicit AttachOSSBucketResult(const std::string &payload); + ~AttachOSSBucketResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_ATTACHOSSBUCKETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetRequest.h b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h similarity index 55% rename from imm/include/alibabacloud/imm/model/CreateSetRequest.h rename to imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h index 60e6d7cd9..0a32aa49a 100644 --- a/imm/include/alibabacloud/imm/model/CreateSetRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETAREQUEST_H_ #include #include @@ -26,26 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateSetRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT BatchDeleteFileMetaRequest : 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); + 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); private: - std::string project_; - std::string accessKeyId_; - std::string setName_; - std::string setId_; + std::string datasetName_; + std::string projectName_; + std::vector uRIs_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaResult.h similarity index 69% rename from imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h rename to imm/include/alibabacloud/imm/model/BatchDeleteFileMetaResult.h index aac5d2587..d8c33f8ce 100644 --- a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h +++ b/imm/include/alibabacloud/imm/model/BatchDeleteFileMetaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETARESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT BatchDeleteFileMetaResult : public ServiceResult { public: - ConvertOfficeFormatResult(); - explicit ConvertOfficeFormatResult(const std::string &payload); - ~ConvertOfficeFormatResult(); - int getPageCount()const; + BatchDeleteFileMetaResult(); + explicit BatchDeleteFileMetaResult(const std::string &payload); + ~BatchDeleteFileMetaResult(); protected: void parse(const std::string &payload); private: - int pageCount_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHDELETEFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.h new file mode 100644 index 000000000..58be65736 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/BatchGetFileMetaRequest.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_BATCHGETFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHGETFILEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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); + +private: + std::string datasetName_; + std::string projectName_; + std::vector uRIs_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHGETFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h b/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h new file mode 100644 index 000000000..67012ec95 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h @@ -0,0 +1,331 @@ +/* + * 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_BATCHGETFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHGETFILEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT BatchGetFileMetaResult : public ServiceResult + { + public: + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + + + BatchGetFileMetaResult(); + explicit BatchGetFileMetaResult(const std::string &payload); + ~BatchGetFileMetaResult(); + std::vector getFiles()const; + + protected: + void parse(const std::string &payload); + private: + std::vector files_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHGETFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMediaComplexTaskRequest.h b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h similarity index 51% rename from imm/include/alibabacloud/imm/model/CreateMediaComplexTaskRequest.h rename to imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h index edf430f12..42875dc01 100644 --- a/imm/include/alibabacloud/imm/model/CreateMediaComplexTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_BATCHINDEXFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHINDEXFILEMETAREQUEST_H_ #include #include @@ -26,29 +26,45 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateMediaComplexTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT BatchIndexFileMetaRequest : public RpcServiceRequest { public: - CreateMediaComplexTaskRequest(); - ~CreateMediaComplexTaskRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + struct Files { + std::map customLabels; + struct FiguresItem { + std::string figureId; + std::string figureClusterId; + std::string figureType; + }; + FiguresItem figuresItem; + std::vector figures; + std::string oSSURI; + std::string fileHash; + std::string uRI; + std::string customId; + std::string mediaType; + std::string contentType; + }; + 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 getParameters() const; - void setParameters(const std::string ¶meters); + std::vector getFiles() const; + void setFiles(const std::vector &files); private: - std::string project_; - std::string accessKeyId_; std::string notifyEndpoint_; + std::string datasetName_; + std::string projectName_; std::string notifyTopicName_; - std::string parameters_; + std::vector files_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHINDEXFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/BatchIndexFileMetaResult.h b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaResult.h new file mode 100644 index 000000000..e1678734c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/BatchIndexFileMetaResult.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_BATCHINDEXFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHINDEXFILEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT BatchIndexFileMetaResult : public ServiceResult + { + public: + + + BatchIndexFileMetaResult(); + explicit BatchIndexFileMetaResult(const std::string &payload); + ~BatchIndexFileMetaResult(); + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHINDEXFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.h new file mode 100644 index 000000000..5f8216516 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaRequest.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_BATCHUPDATEFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHUPDATEFILEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT BatchUpdateFileMetaRequest : public RpcServiceRequest { +public: + struct Files { + std::map customLabels; + struct FiguresItem { + std::string figureId; + std::string figureClusterId; + std::string figureType; + }; + FiguresItem figuresItem; + std::vector figures; + std::string oSSURI; + std::string fileHash; + std::string uRI; + std::string customId; + std::string mediaType; + std::string contentType; + }; + BatchUpdateFileMetaRequest(); + ~BatchUpdateFileMetaRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::vector getFiles() const; + void setFiles(const std::vector &files); + +private: + std::string datasetName_; + std::string projectName_; + std::vector files_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHUPDATEFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaResult.h similarity index 63% rename from imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h rename to imm/include/alibabacloud/imm/model/BatchUpdateFileMetaResult.h index 5afeac895..81e74e3a9 100644 --- a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h +++ b/imm/include/alibabacloud/imm/model/BatchUpdateFileMetaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_BATCHUPDATEFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_BATCHUPDATEFILEMETARESULT_H_ #include #include @@ -29,27 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT BatchUpdateFileMetaResult : public ServiceResult { public: + struct FilesItem + { + std::string message; + std::string uRI; + bool success; + }; - CreateGroupFacesJobResult(); - explicit CreateGroupFacesJobResult(const std::string &payload); - ~CreateGroupFacesJobResult(); - std::string getJobType()const; - std::string getSetId()const; - std::string getJobId()const; + BatchUpdateFileMetaResult(); + explicit BatchUpdateFileMetaResult(const std::string &payload); + ~BatchUpdateFileMetaResult(); + std::vector getFiles()const; protected: void parse(const std::string &payload); private: - std::string jobType_; - std::string setId_; - std::string jobId_; + std::vector files_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_BATCHUPDATEFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h deleted file mode 100644 index 1f4a019c6..000000000 --- a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * 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 deleted file mode 100644 index e22f72f91..000000000 --- a/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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 deleted file mode 100644 index dee2cfcd3..000000000 --- a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h +++ /dev/null @@ -1,102 +0,0 @@ -/* - * 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/GetDRMLicenseRequest.h b/imm/include/alibabacloud/imm/model/CreateBindingRequest.h similarity index 54% rename from imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h rename to imm/include/alibabacloud/imm/model/CreateBindingRequest.h index 09785fa84..f521544b0 100644 --- a/imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateBindingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEBINDINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEBINDINGREQUEST_H_ #include #include @@ -26,26 +26,26 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT CreateBindingRequest : public RpcServiceRequest { public: - GetDRMLicenseRequest(); - ~GetDRMLicenseRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getDRMType() const; - void setDRMType(const std::string &dRMType); - std::string getDRMLicense() const; - void setDRMLicense(const std::string &dRMLicense); + CreateBindingRequest(); + ~CreateBindingRequest(); + 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 project_; - std::string accessKeyId_; - std::string dRMType_; - std::string dRMLicense_; + std::string bucketOwnerId_; + std::string datasetName_; + std::string projectName_; + std::string uRI_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListSetsResult.h b/imm/include/alibabacloud/imm/model/CreateBindingResult.h similarity index 60% rename from imm/include/alibabacloud/imm/model/ListSetsResult.h rename to imm/include/alibabacloud/imm/model/CreateBindingResult.h index 8f3a408b4..5ce26d83c 100644 --- a/imm/include/alibabacloud/imm/model/ListSetsResult.h +++ b/imm/include/alibabacloud/imm/model/CreateBindingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEBINDINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEBINDINGRESULT_H_ #include #include @@ -29,36 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT ListSetsResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateBindingResult : public ServiceResult { public: - struct SetsItem + struct Binding { - std::string modifyTime; - int videoCount; - int imageCount; + std::string phase; + std::string projectName; + std::string datasetName; + std::string state; std::string createTime; - std::string setName; - std::string setId; - int videoLength; - int faceCount; + std::string updateTime; + std::string uRI; + std::string detail; }; - ListSetsResult(); - explicit ListSetsResult(const std::string &payload); - ~ListSetsResult(); - std::vector getSets()const; - std::string getNextMarker()const; + CreateBindingResult(); + explicit CreateBindingResult(const std::string &payload); + ~CreateBindingResult(); + Binding getBinding()const; protected: void parse(const std::string &payload); private: - std::vector sets_; - std::string nextMarker_; + Binding binding_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h b/imm/include/alibabacloud/imm/model/CreateDatasetRequest.h new file mode 100644 index 000000000..4f3a09b7a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDatasetRequest.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_CREATEDATASETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateDatasetRequest : public RpcServiceRequest { +public: + CreateDatasetRequest(); + ~CreateDatasetRequest(); + long getDatasetMaxBindCount() const; + void setDatasetMaxBindCount(long datasetMaxBindCount); + std::string getDescription() const; + void setDescription(const std::string &description); + 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); + long getDatasetMaxEntityCount() const; + void setDatasetMaxEntityCount(long datasetMaxEntityCount); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + long getDatasetMaxTotalFileSize() const; + void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); + +private: + long datasetMaxBindCount_; + std::string description_; + long datasetMaxRelationCount_; + std::string datasetName_; + long datasetMaxFileCount_; + std::string projectName_; + long datasetMaxEntityCount_; + std::string templateId_; + long datasetMaxTotalFileSize_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDATASETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateDatasetResult.h b/imm/include/alibabacloud/imm/model/CreateDatasetResult.h new file mode 100644 index 000000000..fe0581be0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDatasetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDATASETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDatasetResult : public ServiceResult + { + public: + struct Dataset + { + std::string description; + long fileCount; + long bindCount; + std::string projectName; + std::string createTime; + long datasetMaxTotalFileSize; + long datasetMaxRelationCount; + long datasetMaxFileCount; + std::string datasetName; + long datasetMaxBindCount; + std::string updateTime; + long datasetMaxEntityCount; + long totalFileSize; + std::string templateId; + }; + + + CreateDatasetResult(); + explicit CreateDatasetResult(const std::string &payload); + ~CreateDatasetResult(); + Dataset getDataset()const; + + protected: + void parse(const std::string &payload); + private: + Dataset dataset_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDATASETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.h new file mode 100644 index 000000000..21cbcc337 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskRequest.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_CREATEDETECTVIDEOLABELSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDETECTVIDEOLABELSTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateDetectVideoLabelsTaskRequest : 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; + }; + CreateDetectVideoLabelsTaskRequest(); + ~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); + 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_; + CredentialConfig credentialConfig_; + std::map tags_; + std::string sourceURI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDETECTVIDEOLABELSTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskResult.h b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskResult.h new file mode 100644 index 000000000..c5100359b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDetectVideoLabelsTaskResult.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_CREATEDETECTVIDEOLABELSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDETECTVIDEOLABELSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDetectVideoLabelsTaskResult : public ServiceResult + { + public: + + + CreateDetectVideoLabelsTaskResult(); + explicit CreateDetectVideoLabelsTaskResult(const std::string &payload); + ~CreateDetectVideoLabelsTaskResult(); + std::string getTaskId()const; + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDETECTVIDEOLABELSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateImageProcessTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h similarity index 57% rename from imm/include/alibabacloud/imm/model/CreateImageProcessTaskRequest.h rename to imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h index d4ccf6762..9dad6fb61 100644 --- a/imm/include/alibabacloud/imm/model/CreateImageProcessTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERINGTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERINGTASKREQUEST_H_ #include #include @@ -26,32 +26,32 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateImageProcessTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT CreateFigureClusteringTaskRequest : public RpcServiceRequest { public: - CreateImageProcessTaskRequest(); - ~CreateImageProcessTaskRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + CreateFigureClusteringTaskRequest(); + ~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 getTargetList() const; - void setTargetList(const std::string &targetList); - std::string getImageUri() const; - void setImageUri(const std::string &imageUri); + std::map getTags() const; + void setTags(const std::map &tags); private: - std::string project_; - std::string accessKeyId_; + std::string userData_; std::string notifyEndpoint_; + std::string datasetName_; + std::string projectName_; std::string notifyTopicName_; - std::string targetList_; - std::string imageUri_; + std::map tags_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERINGTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.h b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.h new file mode 100644 index 000000000..2dc37e984 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateFigureClusteringTaskResult.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_CREATEFIGURECLUSTERINGTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERINGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFigureClusteringTaskResult : public ServiceResult + { + public: + + + CreateFigureClusteringTaskResult(); + explicit CreateFigureClusteringTaskResult(const std::string &payload); + ~CreateFigureClusteringTaskResult(); + std::string getTaskId()const; + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERINGTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h similarity index 52% rename from imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h rename to imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h index a45ce77de..08984047a 100644 --- a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERSMERGINGTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERSMERGINGTASKREQUEST_H_ #include #include @@ -26,38 +26,38 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateMergeFaceGroupsJobRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT CreateFigureClustersMergingTaskRequest : 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); + CreateFigureClustersMergingTaskRequest(); + ~CreateFigureClustersMergingTaskRequest(); + std::string getUserData() const; + void setUserData(const std::string &userData); 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 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::string getGroupIdTo() const; - void setGroupIdTo(const std::string &groupIdTo); - std::string getSetId() const; - void setSetId(const std::string &setId); + std::map getTags() const; + void setTags(const std::map &tags); + std::string getTo() const; + void setTo(const std::string &to); private: - std::string project_; - std::string accessKeyId_; + std::string userData_; std::string notifyEndpoint_; - std::string customMessage_; - std::string groupIdFrom_; + std::string datasetName_; + std::string from_; + std::string projectName_; std::string notifyTopicName_; - std::string groupIdTo_; - std::string setId_; + std::map tags_; + std::string to_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMERGEFACEGROUPSJOBREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERSMERGINGTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.h b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.h new file mode 100644 index 000000000..bad76a642 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateFigureClustersMergingTaskResult.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_CREATEFIGURECLUSTERSMERGINGTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERSMERGINGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFigureClustersMergingTaskResult : public ServiceResult + { + public: + + + CreateFigureClustersMergingTaskResult(); + explicit CreateFigureClustersMergingTaskResult(const std::string &payload); + ~CreateFigureClustersMergingTaskResult(); + std::string getTaskId()const; + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFIGURECLUSTERSMERGINGTASKRESULT_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 deleted file mode 100644 index 64108bb59..000000000 --- a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/CreateImageModerationTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h new file mode 100644 index 000000000..46f51b77d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskRequest.h @@ -0,0 +1,83 @@ +/* + * 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_CREATEIMAGEMODERATIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGEMODERATIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateImageModerationTaskRequest : 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; + }; + CreateImageModerationTaskRequest(); + ~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); + long getMaxFrames() const; + void setMaxFrames(long maxFrames); + 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_; + long maxFrames_; + CredentialConfig credentialConfig_; + std::string reviewer_; + std::map tags_; + std::string sourceURI_; + std::vector scenes_; + long interval_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGEMODERATIONTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateImageProcessTaskResult.h b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskResult.h similarity index 66% rename from imm/include/alibabacloud/imm/model/CreateImageProcessTaskResult.h rename to imm/include/alibabacloud/imm/model/CreateImageModerationTaskResult.h index 824bc17fe..6dec1d576 100644 --- a/imm/include/alibabacloud/imm/model/CreateImageProcessTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateImageModerationTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEIMAGEMODERATIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGEMODERATIONTASKRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateImageProcessTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateImageModerationTaskResult : public ServiceResult { public: - CreateImageProcessTaskResult(); - explicit CreateImageProcessTaskResult(const std::string &payload); - ~CreateImageProcessTaskResult(); + CreateImageModerationTaskResult(); + explicit CreateImageModerationTaskResult(const std::string &payload); + ~CreateImageModerationTaskResult(); std::string getTaskId()const; - std::string getTaskType()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: std::string taskId_; - std::string taskType_; + std::string eventId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGEPROCESSTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGEMODERATIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.h new file mode 100644 index 000000000..7ef074e38 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskRequest.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_CREATEIMAGESPLICINGTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGESPLICINGTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateImageSplicingTaskRequest : public RpcServiceRequest { +public: + struct Sources { + long rotate; + 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; + }; + 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); + 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); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getTargetURI() const; + void setTargetURI(const std::string &targetURI); + 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_; + std::string projectName_; + long margin_; + std::string notifyTopicName_; + long quality_; + std::map tags_; + std::vector sources_; + std::string userData_; + std::string targetURI_; + std::string imageFormat_; + std::string direction_; + long padding_; + CredentialConfig credentialConfig_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGESPLICINGTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskResult.h similarity index 69% rename from imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h rename to imm/include/alibabacloud/imm/model/CreateImageSplicingTaskResult.h index 19a63d16d..fd02d2278 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateImageSplicingTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEIMAGESPLICINGTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEIMAGESPLICINGTASKRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateVideoCompressTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateImageSplicingTaskResult : public ServiceResult { public: - CreateVideoCompressTaskResult(); - explicit CreateVideoCompressTaskResult(const std::string &payload); - ~CreateVideoCompressTaskResult(); + CreateImageSplicingTaskResult(); + explicit CreateImageSplicingTaskResult(const std::string &payload); + ~CreateImageSplicingTaskResult(); std::string getTaskId()const; - std::string getTaskType()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: std::string taskId_; - std::string taskType_; + std::string eventId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOCOMPRESSTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEIMAGESPLICINGTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h new file mode 100644 index 000000000..fbfa79eb7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskRequest.h @@ -0,0 +1,222 @@ +/* + * 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_CREATEMEDIACONVERTTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACONVERTTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateMediaConvertTaskRequest : public RpcServiceRequest { +public: + struct Sources { + double duration; + struct SubtitlesItem { + double timeOffset; + std::string language; + std::string uRI; + }; + SubtitlesItem subtitlesItem; + std::vector subtitles; + double startTime; + std::string uRI; + }; + struct Targets { + std::string container; + struct Image { + struct SnapshotsItem { + int number; + std::string format; + int width; + double interval; + double startTime; + std::string scaleType; + std::string uRI; + int height; + }; + SnapshotsItem snapshotsItem; + std::vector snapshots; + struct SpritesItem { + int tileHeight; + int number; + int pad; + int margin; + float scaleWidth; + std::string format; + double interval; + double startTime; + std::string scaleType; + float scaleHeight; + std::string uRI; + int tileWidth; + }; + SpritesItem spritesItem; + std::vector sprites; + }; + Image image; + struct Encryption { + std::string protectionSystem; + }; + Encryption encryption; + struct Segment { + double duration; + std::string format; + int startNumber; + }; + Segment segment; + struct Subtitle { + bool disableSubtitle; + struct ExtractSubtitle { + std::string format; + std::string uRI; + }; + ExtractSubtitle extractSubtitle; + }; + Subtitle subtitle; + struct Preset { + std::string name; + std::string type; + }; + Preset preset; + struct Video { + struct FilterVideo { + struct DelogosItem { + double duration; + float dx; + float dy; + float width; + std::string referPos; + double startTime; + float height; + }; + DelogosItem delogosItem; + std::vector delogos; + struct WatermarksItem { + float fontApha; + int fontSize; + double startTime; + std::string type; + std::string fontName; + std::string uRI; + std::string content; + std::string borderColor; + double duration; + float dx; + float dy; + int borderWidth; + float width; + std::string fontColor; + std::string referPos; + float height; + }; + WatermarksItem watermarksItem; + std::vector watermarks; + }; + FilterVideo filterVideo; + bool disableVideo; + struct TranscodeVideo { + std::string resolutionOption; + int gOPSize; + std::string pixelFormat; + float frameRate; + int rotation; + int bitrate; + int bufferSize; + std::string resolution; + int bFrames; + int maxBitrate; + std::string codec; + std::string bitrateOption; + int refs; + float cRF; + std::string scaleType; + std::string frameRateOption; + bool adaptiveResolutionDirection; + }; + TranscodeVideo transcodeVideo; + }; + Video video; + struct Audio { + bool disableAudio; + struct TranscodeAudio { + std::string codec; + std::string bitrateOption; + int channel; + int bitrate; + std::string sampleRateOption; + int quality; + int sampleRate; + }; + TranscodeAudio transcodeAudio; + struct FilterAudio { + bool mixing; + }; + FilterAudio filterAudio; + }; + Audio audio; + 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); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); + 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_; + CredentialConfig credentialConfig_; + std::map tags_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACONVERTTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateMediaComplexTaskResult.h b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskResult.h similarity index 69% rename from imm/include/alibabacloud/imm/model/CreateMediaComplexTaskResult.h rename to imm/include/alibabacloud/imm/model/CreateMediaConvertTaskResult.h index 752f1074e..1e834e3bf 100644 --- a/imm/include/alibabacloud/imm/model/CreateMediaComplexTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateMediaConvertTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEMEDIACONVERTTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEMEDIACONVERTTASKRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateMediaComplexTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateMediaConvertTaskResult : public ServiceResult { public: - CreateMediaComplexTaskResult(); - explicit CreateMediaComplexTaskResult(const std::string &payload); - ~CreateMediaComplexTaskResult(); + CreateMediaConvertTaskResult(); + explicit CreateMediaConvertTaskResult(const std::string &payload); + ~CreateMediaConvertTaskResult(); std::string getTaskId()const; - std::string getTaskType()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: std::string taskId_; - std::string taskType_; + std::string eventId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACOMPLEXTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEMEDIACONVERTTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h b/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h deleted file mode 100644 index 1a8a57a2b..000000000 --- a/imm/include/alibabacloud/imm/model/CreateMergeFaceGroupsJobResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 41ee495ef..f8a239897 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h @@ -28,88 +28,123 @@ 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(); - 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 getSheetCount() const; + void setSheetCount(long sheetCount); + bool getShowComments() const; + void setShowComments(bool showComments); std::string getPassword() const; void setPassword(const std::string &password); - long getStartPage() const; - void setStartPage(long startPage); + std::string getPages() const; + void setPages(const std::string &pages); 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 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); - std::string getModelId() const; - void setModelId(const std::string &modelId); - int getDisplayDpi() const; - void setDisplayDpi(int displayDpi); - long getMaxSheetRow() const; - void setMaxSheetRow(long maxSheetRow); - long getMaxSheetCount() const; - void setMaxSheetCount(long maxSheetCount); + bool getFitToHeight() const; + void setFitToHeight(bool fitToHeight); 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); + 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 getUserData() const; + void setUserData(const std::string &userData); + long getScalePercentage() const; + void setScalePercentage(long scalePercentage); + 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); + long getMaxSheetRow() const; + void setMaxSheetRow(long maxSheetRow); + CredentialConfig getCredentialConfig() const; + void setCredentialConfig(const CredentialConfig &credentialConfig); private: - std::string srcType_; - std::string project_; - std::string idempotentToken_; - bool pdfVector_; - std::string accessKeyId_; - std::string userData_; + long sheetCount_; + bool showComments_; std::string password_; - long startPage_; + std::string pages_; std::string notifyEndpoint_; - bool fitToPagesWide_; - std::string tgtFilePrefix_; + std::string sourceType_; + std::string projectName_; std::string notifyTopicName_; - std::string modelId_; - int displayDpi_; - long maxSheetRow_; - long maxSheetCount_; + bool fitToHeight_; 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_; + 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 userData_; + long scalePercentage_; + long startPage_; + std::string targetURIPrefix_; + std::string targetURI_; + std::string paperSize_; + long imageDPI_; + bool longPicture_; + long maxSheetRow_; + CredentialConfig credentialConfig_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h index 03febe08c..74636e4d5 100644 --- a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h @@ -37,20 +37,14 @@ namespace AlibabaCloud CreateOfficeConversionTaskResult(); explicit CreateOfficeConversionTaskResult(const std::string &payload); ~CreateOfficeConversionTaskResult(); - std::string getStatus()const; std::string getTaskId()const; - int getPercent()const; - std::string getCreateTime()const; - std::string getTgtLoc()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: - std::string status_; std::string taskId_; - int percent_; - std::string createTime_; - std::string tgtLoc_; + std::string eventId_; }; } diff --git a/imm/include/alibabacloud/imm/model/CreateProjectRequest.h b/imm/include/alibabacloud/imm/model/CreateProjectRequest.h new file mode 100644 index 000000000..65aaef353 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateProjectRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPROJECTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateProjectRequest : public RpcServiceRequest { +public: + CreateProjectRequest(); + ~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 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); + +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_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEPROJECTREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateProjectResult.h similarity index 51% rename from imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h rename to imm/include/alibabacloud/imm/model/CreateProjectResult.h index ef7d4a37a..fcb61848e 100644 --- a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateProjectResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPROJECTRESULT_H_ #include #include @@ -29,41 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateProjectResult : public ServiceResult { public: - struct TasksItem + struct Project { - std::string status; - std::string tgtType; - std::string taskId; - int percent; + std::string description; + long fileCount; + std::string projectName; 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; + 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; }; - ListOfficeConversionTaskResult(); - explicit ListOfficeConversionTaskResult(const std::string &payload); - ~ListOfficeConversionTaskResult(); - std::vector getTasks()const; - std::string getNextMarker()const; + CreateProjectResult(); + explicit CreateProjectResult(const std::string &payload); + ~CreateProjectResult(); + Project getProject()const; protected: void parse(const std::string &payload); private: - std::vector tasks_; - std::string nextMarker_; + Project project_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetResult.h b/imm/include/alibabacloud/imm/model/CreateSetResult.h deleted file mode 100644 index 04d328056..000000000 --- a/imm/include/alibabacloud/imm/model/CreateSetResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..44329a137 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateStoryRequest.h @@ -0,0 +1,87 @@ +/* + * 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_CREATESTORYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + 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::string getStoryEndTime() const; + void setStoryEndTime(const std::string &storyEndTime); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); + std::string getStoryName() const; + void setStoryName(const std::string &storyName); + +private: + std::string customLabels_; + std::string notifyEndpoint_; + std::string projectName_; + 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::string storyEndTime_; + std::string objectId_; + std::string storyName_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESTORYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteImageResult.h b/imm/include/alibabacloud/imm/model/CreateStoryResult.h similarity index 67% rename from imm/include/alibabacloud/imm/model/DeleteImageResult.h rename to imm/include/alibabacloud/imm/model/CreateStoryResult.h index 9052196c2..8c643d034 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageResult.h +++ b/imm/include/alibabacloud/imm/model/CreateStoryResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATESTORYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESTORYRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteImageResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateStoryResult : public ServiceResult { public: - DeleteImageResult(); - explicit DeleteImageResult(const std::string &payload); - ~DeleteImageResult(); - std::string getSetId()const; - std::string getImageUri()const; + CreateStoryResult(); + explicit CreateStoryResult(const std::string &payload); + ~CreateStoryResult(); + std::string getTaskId()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: - std::string setId_; - std::string imageUri_; + std::string taskId_; + std::string eventId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESTORYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h deleted file mode 100644 index 5fb41c6f1..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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_CREATEVIDEOABSTRACTTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskRequest : public RpcServiceRequest { -public: - CreateVideoAbstractTaskRequest(); - ~CreateVideoAbstractTaskRequest(); - std::string getTargetVideoUri() const; - void setTargetVideoUri(const std::string &targetVideoUri); - 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 getVideoUri() const; - void setVideoUri(const std::string &videoUri); - int getAbstractLength() const; - void setAbstractLength(int abstractLength); - std::string getTargetClipsUri() const; - void setTargetClipsUri(const std::string &targetClipsUri); - -private: - std::string targetVideoUri_; - std::string project_; - std::string accessKeyId_; - std::string notifyEndpoint_; - std::string notifyTopicName_; - std::string videoUri_; - int abstractLength_; - std::string targetClipsUri_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h deleted file mode 100644 index 77317d054..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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_CREATEVIDEOANALYSETASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskRequest : public RpcServiceRequest { -public: - CreateVideoAnalyseTaskRequest(); - ~CreateVideoAnalyseTaskRequest(); - std::string getGrabType() const; - void setGrabType(const std::string &grabType); - std::string getProject() const; - void setProject(const std::string &project); - 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 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 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 startTime_; - std::string accessKeyId_; - std::string notifyEndpoint_; - std::string notifyTopicName_; - std::string endTime_; - std::string videoUri_; - bool saveType_; - std::string interval_; - std::string tgtUri_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h deleted file mode 100644 index 4c935934d..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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_CREATEVIDEOANALYSETASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskResult : public ServiceResult - { - public: - - - CreateVideoAnalyseTaskResult(); - explicit CreateVideoAnalyseTaskResult(const std::string &payload); - ~CreateVideoAnalyseTaskResult(); - 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_CREATEVIDEOANALYSETASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h deleted file mode 100644 index 94947187f..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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/CreateVideoModerationTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h new file mode 100644 index 000000000..bf10bb1a5 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskRequest.h @@ -0,0 +1,83 @@ +/* + * 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_CREATEVIDEOMODERATIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOMODERATIONTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT CreateVideoModerationTaskRequest : 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; + }; + CreateVideoModerationTaskRequest(); + ~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); + long getMaxFrames() const; + void setMaxFrames(long maxFrames); + 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_; + long maxFrames_; + CredentialConfig credentialConfig_; + std::string reviewer_; + std::map tags_; + std::string sourceURI_; + std::vector scenes_; + long interval_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOMODERATIONTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskResult.h similarity index 66% rename from imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h rename to imm/include/alibabacloud/imm/model/CreateVideoModerationTaskResult.h index b855b9c70..a8f8bba5e 100644 --- a/imm/include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h +++ b/imm/include/alibabacloud/imm/model/CreateVideoModerationTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOMODERATIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOMODERATIONTASKRESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT CreateVideoModerationTaskResult : public ServiceResult { public: - CreateVideoAbstractTaskResult(); - explicit CreateVideoAbstractTaskResult(const std::string &payload); - ~CreateVideoAbstractTaskResult(); + CreateVideoModerationTaskResult(); + explicit CreateVideoModerationTaskResult(const std::string &payload); + ~CreateVideoModerationTaskResult(); std::string getTaskId()const; - std::string getTaskType()const; + std::string getEventId()const; protected: void parse(const std::string &payload); private: std::string taskId_; - std::string taskType_; + std::string eventId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOMODERATIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h deleted file mode 100644 index 09a8af441..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskRequest : public RpcServiceRequest { -public: - CreateVideoProduceTaskRequest(); - ~CreateVideoProduceTaskRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getMusic() const; - void setMusic(const std::string &music); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getTargetUri() const; - void setTargetUri(const std::string &targetUri); - std::string getTemplateName() const; - void setTemplateName(const std::string &templateName); - int getHeight() const; - void setHeight(int height); - std::string getCustomMessage() const; - void setCustomMessage(const std::string &customMessage); - std::string getImages() const; - void setImages(const std::string &images); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - int getWidth() const; - void setWidth(int width); - -private: - std::string project_; - std::string accessKeyId_; - std::string music_; - std::string notifyEndpoint_; - std::string targetUri_; - std::string templateName_; - int height_; - std::string customMessage_; - std::string images_; - std::string notifyTopicName_; - int width_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h deleted file mode 100644 index 50017992b..000000000 --- a/imm/include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT CreateVideoProduceTaskResult : public ServiceResult - { - public: - - - CreateVideoProduceTaskResult(); - explicit CreateVideoProduceTaskResult(const std::string &payload); - ~CreateVideoProduceTaskResult(); - std::string getTaskId()const; - std::string getTaskType()const; - - protected: - void parse(const std::string &payload); - private: - std::string taskId_; - std::string taskType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOPRODUCETASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h b/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h deleted file mode 100644 index a5e5a6431..000000000 --- a/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index e9e8eabf2..000000000 --- a/imm/include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 getContent()const; - std::string getTargetUri()const; - - protected: - void parse(const std::string &payload); - private: - std::string content_; - std::string targetUri_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_DECODEBLINDWATERMARKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h similarity index 55% rename from imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h rename to imm/include/alibabacloud/imm/model/DeleteBindingRequest.h index 6c7c16750..cf8e289aa 100644 --- a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteBindingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEBINDINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEBINDINGREQUEST_H_ #include #include @@ -26,23 +26,26 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT DeleteBindingRequest : 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); + 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); private: - std::string project_; - std::string accessKeyId_; - std::string taskId_; + std::string datasetName_; + std::string projectName_; + std::string uRI_; + bool cleanup_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteSetResult.h b/imm/include/alibabacloud/imm/model/DeleteBindingResult.h similarity index 70% rename from imm/include/alibabacloud/imm/model/DeleteSetResult.h rename to imm/include/alibabacloud/imm/model/DeleteBindingResult.h index 9273b1661..fead468bf 100644 --- a/imm/include/alibabacloud/imm/model/DeleteSetResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteBindingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEBINDINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEBINDINGRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteSetResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT DeleteBindingResult : public ServiceResult { public: - DeleteSetResult(); - explicit DeleteSetResult(const std::string &payload); - ~DeleteSetResult(); - std::string getSetId()const; + DeleteBindingResult(); + explicit DeleteBindingResult(const std::string &payload); + ~DeleteBindingResult(); protected: void parse(const std::string &payload); private: - std::string setId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h similarity index 60% rename from imm/include/alibabacloud/imm/model/GetSetRequest.h rename to imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h index f0b0d60eb..3dbafa575 100644 --- a/imm/include/alibabacloud/imm/model/GetSetRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteDatasetRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDATASETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDATASETREQUEST_H_ #include #include @@ -26,23 +26,20 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetSetRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT DeleteDatasetRequest : 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); + DeleteDatasetRequest(); + ~DeleteDatasetRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); private: - std::string project_; - std::string accessKeyId_; - std::string setId_; + std::string datasetName_; + std::string projectName_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDATASETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteDatasetResult.h b/imm/include/alibabacloud/imm/model/DeleteDatasetResult.h new file mode 100644 index 000000000..27742cbdd --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteDatasetResult.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_DELETEDATASETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteDatasetResult : public ServiceResult + { + public: + + + DeleteDatasetResult(); + explicit DeleteDatasetResult(const std::string &payload); + ~DeleteDatasetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDATASETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h b/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.h new file mode 100644 index 000000000..124756929 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFileMetaRequest.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_DELETEFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFILEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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 getURI() const; + void setURI(const std::string &uRI); + +private: + std::string datasetName_; + std::string projectName_; + std::string uRI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h b/imm/include/alibabacloud/imm/model/DeleteFileMetaResult.h similarity index 73% rename from imm/include/alibabacloud/imm/model/DeleteImageJobResult.h rename to imm/include/alibabacloud/imm/model/DeleteFileMetaResult.h index a00564224..825737ddb 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h +++ b/imm/include/alibabacloud/imm/model/DeleteFileMetaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFILEMETARESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteImageJobResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT DeleteFileMetaResult : public ServiceResult { public: - DeleteImageJobResult(); - explicit DeleteImageJobResult(const std::string &payload); - ~DeleteImageJobResult(); + DeleteFileMetaResult(); + explicit DeleteFileMetaResult(const std::string &payload); + ~DeleteFileMetaResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFILEMETARESULT_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 0d2ca39ee..0cee85582 100644 --- a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h @@ -30,14 +30,11 @@ class ALIBABACLOUD_IMM_EXPORT DeleteProjectRequest : public RpcServiceRequest { public: DeleteProjectRequest(); ~DeleteProjectRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); private: - std::string project_; - std::string accessKeyId_; + std::string projectName_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h b/imm/include/alibabacloud/imm/model/DeleteStoryRequest.h new file mode 100644 index 000000000..6fccf4b49 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteStoryRequest.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_DELETESTORYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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 getObjectId() const; + void setObjectId(const std::string &objectId); + +private: + std::string datasetName_; + std::string projectName_; + std::string objectId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESTORYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteStoryResult.h b/imm/include/alibabacloud/imm/model/DeleteStoryResult.h new file mode 100644 index 000000000..d9764b419 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteStoryResult.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_DELETESTORYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteStoryResult : public ServiceResult + { + public: + + + DeleteStoryResult(); + explicit DeleteStoryResult(const std::string &payload); + ~DeleteStoryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESTORYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h deleted file mode 100644 index 0a29e914c..000000000 --- a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/DescribeRegionsRequest.h b/imm/include/alibabacloud/imm/model/DetachOSSBucketRequest.h similarity index 68% rename from imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h rename to imm/include/alibabacloud/imm/model/DetachOSSBucketRequest.h index 987b36f49..1451fa9b7 100644 --- a/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h +++ b/imm/include/alibabacloud/imm/model/DetachOSSBucketRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DETACHOSSBUCKETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETACHOSSBUCKETREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT DetachOSSBucketRequest : public RpcServiceRequest { public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + DetachOSSBucketRequest(); + ~DetachOSSBucketRequest(); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); private: - std::string accessKeyId_; + std::string oSSBucket_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_DETACHOSSBUCKETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetachOSSBucketResult.h b/imm/include/alibabacloud/imm/model/DetachOSSBucketResult.h new file mode 100644 index 000000000..aa882772d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetachOSSBucketResult.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_DETACHOSSBUCKETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETACHOSSBUCKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetachOSSBucketResult : public ServiceResult + { + public: + + + DetachOSSBucketResult(); + explicit DetachOSSBucketResult(const std::string &payload); + ~DetachOSSBucketResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETACHOSSBUCKETRESULT_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 ece8519fd..f51cfab0c 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageBodiesRequest.h @@ -28,19 +28,33 @@ 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 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 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); private: - std::string project_; - std::string accessKeyId_; - std::string imageUri_; + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; + float sensitivity_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h b/imm/include/alibabacloud/imm/model/DetectImageBodiesResult.h index a8b1e99ff..4bb851ced 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 BodyBoundary + struct Boundary { - int left; - int top; - int height; - int width; + long left; + long top; + long height; + long width; }; - float bodyConfidence; - BodyBoundary bodyBoundary; + float confidence; + Boundary boundary; }; @@ -50,13 +50,11 @@ 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 new file mode 100644 index 000000000..dcc2acbaf --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageCodesRequest.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_DETECTIMAGECODESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectImageCodesRequest : 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; + }; + DetectImageCodesRequest(); + ~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); + +private: + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECODESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectImageCodesResult.h similarity index 58% rename from imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h rename to imm/include/alibabacloud/imm/model/DetectImageCodesResult.h index 1fa0a54e0..537b789b0 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageQRCodesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCodesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECODESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECODESRESULT_H_ #include #include @@ -29,37 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DetectImageQRCodesResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT DetectImageCodesResult : public ServiceResult { public: - struct QRCodesItem + struct CodesItem { - struct QRCodeBoundary + struct Boundary { - int left; - int top; - int height; - int width; + long left; + long top; + long height; + long width; }; + std::string type; + float confidence; std::string content; - QRCodeBoundary qRCodeBoundary; + Boundary boundary; }; - DetectImageQRCodesResult(); - explicit DetectImageQRCodesResult(const std::string &payload); - ~DetectImageQRCodesResult(); - std::string getImageUri()const; - std::vector getQRCodes()const; + DetectImageCodesResult(); + explicit DetectImageCodesResult(const std::string &payload); + ~DetectImageCodesResult(); + std::vector getCodes()const; protected: void parse(const std::string &payload); private: - std::string imageUri_; - std::vector qRCodes_; + std::vector codes_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECODESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h similarity index 50% rename from imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h rename to imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h index a4711cf5d..d9de0bd42 100644 --- a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageCroppingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECROPPINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECROPPINGREQUEST_H_ #include #include @@ -26,26 +26,37 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetImageCroppingSuggestionsRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT DetectImageCroppingRequest : public RpcServiceRequest { public: - GetImageCroppingSuggestionsRequest(); - ~GetImageCroppingSuggestionsRequest(); - std::string getProject() const; - void setProject(const std::string &project); + struct CredentialConfig { + struct ChainItem { + std::string role; + std::string roleType; + std::string assumeRoleFor; + }; + ChainItem chainItem; + std::vector chain; + std::string serviceRole; + std::string policy; + }; + DetectImageCroppingRequest(); + ~DetectImageCroppingRequest(); 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); + 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); private: - std::string project_; std::string aspectRatios_; - std::string accessKeyId_; - std::string imageUri_; + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGECROPPINGSUGGESTIONSREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECROPPINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageCroppingResult.h b/imm/include/alibabacloud/imm/model/DetectImageCroppingResult.h new file mode 100644 index 000000000..a96c86757 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageCroppingResult.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_DETECTIMAGECROPPINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECROPPINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageCroppingResult : public ServiceResult + { + public: + struct CroppingsItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary boundary; + }; + + + DetectImageCroppingResult(); + explicit DetectImageCroppingResult(const std::string &payload); + ~DetectImageCroppingResult(); + std::vector getCroppings()const; + + protected: + void parse(const std::string &payload); + private: + std::vector croppings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECROPPINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h index 4bf708ef3..f85f2aa95 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h @@ -28,22 +28,30 @@ 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 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); + 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); private: - std::string project_; - std::string accessKeyId_; - std::string realUid_; - std::string imageUri_; + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h index d222e6006..3cc013000 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h @@ -34,66 +34,56 @@ namespace AlibabaCloud public: struct FacesItem { - struct FaceAttributes + struct Boundary { - 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; + long left; + long top; + long height; + long width; }; - struct EmotionDetails + struct HeadPose { - float cALM; - float sCARED; - float hAPPY; - float sURPRISED; - float sAD; - float dISGUSTED; - float aNGRY; + float pitch; + float roll; + float yaw; }; - std::string faceId; - float attractiveConfidence; - FaceAttributes faceAttributes; - float genderConfidence; - float emotionConfidence; + std::string beard; + float maskConfidence; std::string gender; - EmotionDetails emotionDetails; - float faceConfidence; + float figureClusterConfidence; + Boundary boundary; + float beardConfidence; + std::string figureId; + std::string mouth; + std::string emotion; + long age; + float mouthConfidence; + HeadPose headPose; + std::string figureType; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; float faceQuality; float attractive; - std::string emotion; - int age; - float ageConfidence; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; }; 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 new file mode 100644 index 000000000..c62bca028 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageLabelsRequest.h @@ -0,0 +1,62 @@ +/* + * 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_DETECTIMAGELABELSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELABELSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectImageLabelsRequest : 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; + }; + 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); + +private: + float threshold_; + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELABELSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h b/imm/include/alibabacloud/imm/model/DetectImageLabelsResult.h similarity index 59% rename from imm/include/alibabacloud/imm/model/ListSetTagsResult.h rename to imm/include/alibabacloud/imm/model/DetectImageLabelsResult.h index 120c3aaf7..174fc00fc 100644 --- a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h +++ b/imm/include/alibabacloud/imm/model/DetectImageLabelsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELABELSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELABELSRESULT_H_ #include #include @@ -29,31 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT ListSetTagsResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT DetectImageLabelsResult : public ServiceResult { public: - struct TagsItem + struct LabelsItem { - int tagCount; - std::string tagName; - int tagLevel; + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; }; - ListSetTagsResult(); - explicit ListSetTagsResult(const std::string &payload); - ~ListSetTagsResult(); - std::string getSetId()const; - std::vector getTags()const; + DetectImageLabelsResult(); + explicit DetectImageLabelsResult(const std::string &payload); + ~DetectImageLabelsResult(); + std::vector getLabels()const; protected: void parse(const std::string &payload); private: - std::string setId_; - std::vector tags_; + std::vector labels_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELABELSRESULT_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 new file mode 100644 index 000000000..351d6588a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageScoreRequest.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_DETECTIMAGESCOREREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGESCOREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectImageScoreRequest : 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; + }; + DetectImageScoreRequest(); + ~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); + +private: + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGESCOREREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageScoreResult.h b/imm/include/alibabacloud/imm/model/DetectImageScoreResult.h new file mode 100644 index 000000000..86396cf3b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageScoreResult.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_DETECTIMAGESCORERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGESCORERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageScoreResult : public ServiceResult + { + public: + struct ImageScore + { + float overallQualityScore; + }; + + + DetectImageScoreResult(); + explicit DetectImageScoreResult(const std::string &payload); + ~DetectImageScoreResult(); + ImageScore getImageScore()const; + + protected: + void parse(const std::string &payload); + private: + ImageScore imageScore_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGESCORERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h deleted file mode 100644 index ee9b76c5f..000000000 --- a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/DetectQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h deleted file mode 100644 index 77f0d6a29..000000000 --- a/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..d5423f23c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectTextAnomalyRequest.h @@ -0,0 +1,45 @@ +/* + * 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_DETECTTEXTANOMALYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTEXTANOMALYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT DetectTextAnomalyRequest : public RpcServiceRequest { +public: + DetectTextAnomalyRequest(); + ~DetectTextAnomalyRequest(); + std::string getContent() const; + void setContent(const std::string &content); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + +private: + std::string content_; + std::string projectName_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTTEXTANOMALYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/DetectTextAnomalyResult.h similarity index 67% rename from imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h rename to imm/include/alibabacloud/imm/model/DetectTextAnomalyResult.h index f3aba9cde..eabaac03e 100644 --- a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h +++ b/imm/include/alibabacloud/imm/model/DetectTextAnomalyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTEXTANOMALYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTEXTANOMALYRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT DetectTextAnomalyResult : public ServiceResult { public: - DeleteOfficeConversionTaskResult(); - explicit DeleteOfficeConversionTaskResult(const std::string &payload); - ~DeleteOfficeConversionTaskResult(); + DetectTextAnomalyResult(); + explicit DetectTextAnomalyResult(const std::string &payload); + ~DetectTextAnomalyResult(); + std::string getSuggestion()const; protected: void parse(const std::string &payload); private: + std::string suggestion_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTTEXTANOMALYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h b/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h deleted file mode 100644 index 19748eedd..000000000 --- a/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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 deleted file mode 100644 index 8a081373c..000000000 --- a/imm/include/alibabacloud/imm/model/EncodeBlindWatermarkResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 deleted file mode 100644 index b95b6339c..000000000 --- a/imm/include/alibabacloud/imm/model/FindImagesRequest.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * 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 deleted file mode 100644 index 801366925..000000000 --- a/imm/include/alibabacloud/imm/model/FindImagesResult.h +++ /dev/null @@ -1,208 +0,0 @@ -/* - * 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 deleted file mode 100644 index 8c75a28a8..000000000 --- a/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 2462abee7..000000000 --- a/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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/ListVideosRequest.h b/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h similarity index 52% rename from imm/include/alibabacloud/imm/model/ListVideosRequest.h rename to imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h index cd8641574..e3d8c9db6 100644 --- a/imm/include/alibabacloud/imm/model/ListVideosRequest.h +++ b/imm/include/alibabacloud/imm/model/FuzzyQueryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_FUZZYQUERYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FUZZYQUERYREQUEST_H_ #include #include @@ -26,29 +26,29 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT ListVideosRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT FuzzyQueryRequest : 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); + 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 getQuery() const; + void setQuery(const std::string &query); + long getMaxResults() const; + void setMaxResults(long maxResults); private: - std::string project_; - std::string accessKeyId_; - std::string marker_; - std::string setId_; - std::string createTimeStart_; + std::string nextToken_; + std::string datasetName_; + std::string projectName_; + std::string query_; + long maxResults_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_FUZZYQUERYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h b/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h new file mode 100644 index 000000000..e2adccba4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h @@ -0,0 +1,333 @@ +/* + * 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_FUZZYQUERYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FUZZYQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FuzzyQueryResult : public ServiceResult + { + public: + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + + + FuzzyQueryResult(); + explicit FuzzyQueryResult(const std::string &payload); + ~FuzzyQueryResult(); + std::string getNextToken()const; + std::vector getFiles()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector files_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FUZZYQUERYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetBindingRequest.h b/imm/include/alibabacloud/imm/model/GetBindingRequest.h new file mode 100644 index 000000000..677a07a34 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetBindingRequest.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_GETBINDINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETBINDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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 getURI() const; + void setURI(const std::string &uRI); + +private: + std::string datasetName_; + std::string owner_; + std::string projectName_; + std::string uRI_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h b/imm/include/alibabacloud/imm/model/GetBindingResult.h similarity index 60% rename from imm/include/alibabacloud/imm/model/DescribeRegionsResult.h rename to imm/include/alibabacloud/imm/model/GetBindingResult.h index fe82d30d9..5cd97844a 100644 --- a/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h +++ b/imm/include/alibabacloud/imm/model/GetBindingResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETBINDINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETBINDINGRESULT_H_ #include #include @@ -29,32 +29,34 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT GetBindingResult : public ServiceResult { public: - struct Regions + struct Binding { - struct RegionItem - { - std::vector projectTypes; - std::string regionId; - }; - std::vector region; + std::string phase; + std::string projectName; + std::string datasetName; + std::string state; + std::string createTime; + std::string updateTime; + std::string uRI; + std::string detail; }; - DescribeRegionsResult(); - explicit DescribeRegionsResult(const std::string &payload); - ~DescribeRegionsResult(); - Regions getRegions()const; + GetBindingResult(); + explicit GetBindingResult(const std::string &payload); + ~GetBindingResult(); + Binding getBinding()const; protected: void parse(const std::string &payload); private: - Regions regions_; + Binding binding_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_GETBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h b/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h deleted file mode 100644 index 9d4aad585..000000000 --- a/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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_GETDRMLICENSERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseResult : public ServiceResult - { - public: - - - GetDRMLicenseResult(); - explicit GetDRMLicenseResult(const std::string &payload); - ~GetDRMLicenseResult(); - std::string getDeviceInfo()const; - std::string getDRMData()const; - - protected: - void parse(const std::string &payload); - private: - std::string deviceInfo_; - std::string dRMData_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h b/imm/include/alibabacloud/imm/model/GetDatasetRequest.h similarity index 58% rename from imm/include/alibabacloud/imm/model/DeleteSetRequest.h rename to imm/include/alibabacloud/imm/model/GetDatasetRequest.h index 3bd144313..4d37813a7 100644 --- a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h +++ b/imm/include/alibabacloud/imm/model/GetDatasetRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETDATASETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDATASETREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DeleteSetRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetDatasetRequest : 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); + 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); private: - std::string project_; - std::string accessKeyId_; - std::string setId_; + std::string datasetName_; + std::string projectName_; + bool withStatistics_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETDATASETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetSetResult.h b/imm/include/alibabacloud/imm/model/GetDatasetResult.h similarity index 54% rename from imm/include/alibabacloud/imm/model/GetSetResult.h rename to imm/include/alibabacloud/imm/model/GetDatasetResult.h index 2736930e3..aa403a5ba 100644 --- a/imm/include/alibabacloud/imm/model/GetSetResult.h +++ b/imm/include/alibabacloud/imm/model/GetDatasetResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETDATASETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDATASETRESULT_H_ #include #include @@ -29,37 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT GetSetResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT GetDatasetResult : public ServiceResult { public: + struct Dataset + { + std::string description; + long fileCount; + long bindCount; + std::string projectName; + std::string createTime; + long datasetMaxTotalFileSize; + long datasetMaxRelationCount; + long datasetMaxFileCount; + std::string datasetName; + long datasetMaxBindCount; + std::string updateTime; + long datasetMaxEntityCount; + long totalFileSize; + std::string templateId; + }; - 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; + GetDatasetResult(); + explicit GetDatasetResult(const std::string &payload); + ~GetDatasetResult(); + Dataset getDataset()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_; + Dataset dataset_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_GETDATASETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultRequest.h similarity index 67% rename from imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h rename to imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultRequest.h index b0b958277..ef846b5f9 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETDETECTVIDEOLABELSRESULTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDETECTVIDEOLABELSRESULTREQUEST_H_ #include #include @@ -26,26 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetVideoTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetDetectVideoLabelsResultRequest : 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); + GetDetectVideoLabelsResultRequest(); + ~GetDetectVideoLabelsResultRequest(); std::string getTaskId() const; void setTaskId(const std::string &taskId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); std::string getTaskType() const; void setTaskType(const std::string &taskType); private: - std::string project_; - std::string accessKeyId_; std::string taskId_; + std::string projectName_; std::string taskType_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETDETECTVIDEOLABELSRESULTREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultResult.h b/imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultResult.h new file mode 100644 index 000000000..d1962cc3d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetDetectVideoLabelsResultResult.h @@ -0,0 +1,80 @@ +/* + * 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_GETDETECTVIDEOLABELSRESULTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDETECTVIDEOLABELSRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDetectVideoLabelsResultResult : public ServiceResult + { + public: + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + + + GetDetectVideoLabelsResultResult(); + explicit GetDetectVideoLabelsResultResult(const std::string &payload); + ~GetDetectVideoLabelsResultResult(); + std::string getStatus()const; + std::string getTaskId()const; + std::string getMessage()const; + std::string getEndTime()const; + std::string getProjectName()const; + std::string getUserData()const; + std::string getTaskType()const; + std::string getStartTime()const; + std::string getEventId()const; + std::vector getLabels()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string taskId_; + std::string message_; + std::string endTime_; + std::string projectName_; + std::string userData_; + std::string taskType_; + std::string startTime_; + std::string eventId_; + std::vector labels_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETDETECTVIDEOLABELSRESULTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h b/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h similarity index 56% rename from imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h rename to imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h index c61e44d16..30680af66 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageQRCodesRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFigureClusterRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETFIGURECLUSTERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFIGURECLUSTERREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DetectImageQRCodesRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetFigureClusterRequest : 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); + GetFigureClusterRequest(); + ~GetFigureClusterRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); private: - std::string project_; - std::string accessKeyId_; - std::string imageUri_; + std::string datasetName_; + std::string projectName_; + std::string objectId_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEQRCODESREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETFIGURECLUSTERREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h b/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h new file mode 100644 index 000000000..5d55283a8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h @@ -0,0 +1,352 @@ +/* + * 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_GETFIGURECLUSTERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFIGURECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFigureClusterResult : public ServiceResult + { + public: + struct FigureCluster + { + struct Cover + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + long videoCount; + std::string projectName; + std::string objectId; + std::string createTime; + float maxAge; + std::string gender; + float averageAge; + std::string name; + std::string objectType; + long imageCount; + float minAge; + Cover cover; + std::string customLabels; + std::string ownerId; + std::string datasetName; + std::string customId; + std::string updateTime; + long faceCount; + }; + + + GetFigureClusterResult(); + explicit GetFigureClusterResult(const std::string &payload); + ~GetFigureClusterResult(); + FigureCluster getFigureCluster()const; + + protected: + void parse(const std::string &payload); + private: + FigureCluster figureCluster_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFIGURECLUSTERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h b/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h similarity index 59% rename from imm/include/alibabacloud/imm/model/ListSetTagsRequest.h rename to imm/include/alibabacloud/imm/model/GetFileMetaRequest.h index 23917821c..a2595895b 100644 --- a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h +++ b/imm/include/alibabacloud/imm/model/GetFileMetaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFILEMETAREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT ListSetTagsRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetFileMetaRequest : 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); + GetFileMetaRequest(); + ~GetFileMetaRequest(); + 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 project_; - std::string accessKeyId_; - std::string setId_; + std::string datasetName_; + std::string projectName_; + std::string uRI_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetFileMetaResult.h b/imm/include/alibabacloud/imm/model/GetFileMetaResult.h new file mode 100644 index 000000000..6db95d60b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFileMetaResult.h @@ -0,0 +1,331 @@ +/* + * 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_GETFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFILEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFileMetaResult : public ServiceResult + { + public: + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + + + GetFileMetaResult(); + explicit GetFileMetaResult(const std::string &payload); + ~GetFileMetaResult(); + std::vector getFiles()const; + + protected: + void parse(const std::string &payload); + private: + std::vector files_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h b/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h deleted file mode 100644 index ed3f0783f..000000000 --- a/imm/include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 deleted file mode 100644 index 717446448..000000000 --- a/imm/include/alibabacloud/imm/model/GetImageQualityRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 deleted file mode 100644 index 587ca507d..000000000 --- a/imm/include/alibabacloud/imm/model/GetImageQualityResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 deleted file mode 100644 index 92829faa8..000000000 --- a/imm/include/alibabacloud/imm/model/GetImageRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 deleted file mode 100644 index f41433ee8..000000000 --- a/imm/include/alibabacloud/imm/model/GetImageResult.h +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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 0edda1655..ded62af00 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaRequest.h @@ -28,19 +28,30 @@ 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 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); + 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); private: - std::string mediaUri_; - std::string project_; - std::string accessKeyId_; + std::string projectName_; + CredentialConfig credentialConfig_; + std::string sourceURI_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h index 207923b67..9bc27b157 100644 --- a/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h +++ b/imm/include/alibabacloud/imm/model/GetMediaMetaResult.h @@ -32,115 +32,137 @@ namespace AlibabaCloud class ALIBABACLOUD_IMM_EXPORT GetMediaMetaResult : public ServiceResult { public: - struct MediaMeta + struct VideoStreamsItem { - 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; + 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; }; GetMediaMetaResult(); explicit GetMediaMetaResult(const std::string &payload); ~GetMediaMetaResult(); - std::string getMediaUri()const; - MediaMeta getMediaMeta()const; + 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; protected: void parse(const std::string &payload); private: - std::string mediaUri_; - MediaMeta mediaMeta_; + 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_; }; } diff --git a/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.h b/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.h new file mode 100644 index 000000000..9effa5982 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentRequest.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_GETOSSBUCKETATTACHMENTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOSSBUCKETATTACHMENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT GetOSSBucketAttachmentRequest : public RpcServiceRequest { +public: + GetOSSBucketAttachmentRequest(); + ~GetOSSBucketAttachmentRequest(); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); + +private: + std::string oSSBucket_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_GETOSSBUCKETATTACHMENTREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.h b/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.h new file mode 100644 index 000000000..1d72fa192 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOSSBucketAttachmentResult.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_GETOSSBUCKETATTACHMENTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOSSBUCKETATTACHMENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOSSBucketAttachmentResult : public ServiceResult + { + public: + + + GetOSSBucketAttachmentResult(); + explicit GetOSSBucketAttachmentResult(const std::string &payload); + ~GetOSSBucketAttachmentResult(); + std::string getProjectName()const; + + protected: + void parse(const std::string &payload); + private: + std::string projectName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETOSSBUCKETATTACHMENTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h deleted file mode 100644 index 070ed53c7..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * 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 deleted file mode 100644 index d602f6b4e..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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/GetOfficeEditURLRequest.h b/imm/include/alibabacloud/imm/model/GetOfficeEditURLRequest.h deleted file mode 100644 index ef4a74754..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficeEditURLRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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_GETOFFICEEDITURLREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetOfficeEditURLRequest : public RpcServiceRequest { -public: - GetOfficeEditURLRequest(); - ~GetOfficeEditURLRequest(); - std::string getSrcType() const; - void setSrcType(const std::string &srcType); - std::string getProject() const; - void setProject(const std::string &project); - std::string getUserID() const; - void setUserID(const std::string &userID); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getFileID() const; - void setFileID(const std::string &fileID); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - std::string getFileName() const; - void setFileName(const std::string &fileName); - std::string getSrcUri() const; - void setSrcUri(const std::string &srcUri); - std::string getTgtUri() const; - void setTgtUri(const std::string &tgtUri); - std::string getUserName() const; - void setUserName(const std::string &userName); - -private: - std::string srcType_; - std::string project_; - std::string userID_; - std::string accessKeyId_; - std::string notifyEndpoint_; - std::string fileID_; - std::string notifyTopicName_; - std::string fileName_; - std::string srcUri_; - std::string tgtUri_; - std::string userName_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetOfficeEditURLResult.h b/imm/include/alibabacloud/imm/model/GetOfficeEditURLResult.h deleted file mode 100644 index bc4cd8400..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficeEditURLResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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_GETOFFICEEDITURLRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetOfficeEditURLResult : public ServiceResult - { - public: - - - GetOfficeEditURLResult(); - explicit GetOfficeEditURLResult(const std::string &payload); - ~GetOfficeEditURLResult(); - std::string getRefreshToken()const; - std::string getEditURL()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 editURL_; - std::string accessToken_; - std::string refreshTokenExpiredTime_; - std::string accessTokenExpiredTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICEEDITURLRESULT_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 deleted file mode 100644 index 91b0ab366..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficePreviewURLRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 deleted file mode 100644 index 2f5b54907..000000000 --- a/imm/include/alibabacloud/imm/model/GetOfficePreviewURLResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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 7d7a05d78..1e06a84cc 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 getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + bool getWithStatistics() const; + void setWithStatistics(bool withStatistics); private: - std::string project_; - std::string accessKeyId_; + std::string projectName_; + bool withStatistics_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/GetProjectResult.h b/imm/include/alibabacloud/imm/model/GetProjectResult.h index 197dd5ef1..7c8a2ccfc 100644 --- a/imm/include/alibabacloud/imm/model/GetProjectResult.h +++ b/imm/include/alibabacloud/imm/model/GetProjectResult.h @@ -32,33 +32,37 @@ 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(); - 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; + Project getProject()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_; + Project project_; }; } diff --git a/imm/include/alibabacloud/imm/model/ListSetsRequest.h b/imm/include/alibabacloud/imm/model/GetStoryRequest.h similarity index 59% rename from imm/include/alibabacloud/imm/model/ListSetsRequest.h rename to imm/include/alibabacloud/imm/model/GetStoryRequest.h index 7af8e5257..79d186d10 100644 --- a/imm/include/alibabacloud/imm/model/ListSetsRequest.h +++ b/imm/include/alibabacloud/imm/model/GetStoryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETSTORYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSTORYREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT ListSetsRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetStoryRequest : 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); + GetStoryRequest(); + ~GetStoryRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); private: - std::string project_; - std::string accessKeyId_; - std::string marker_; + std::string datasetName_; + std::string projectName_; + std::string objectId_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETSTORYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetStoryResult.h b/imm/include/alibabacloud/imm/model/GetStoryResult.h new file mode 100644 index 000000000..970b87a75 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetStoryResult.h @@ -0,0 +1,631 @@ +/* + * 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_GETSTORYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetStoryResult : public ServiceResult + { + public: + struct Story + { + struct Cover + { + struct ImageScore10 + { + float overallQualityScore; + }; + struct AddressesItem20 + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem21 + { + struct Boundary22 + { + long left; + long top; + long height; + long width; + }; + struct HeadPose23 + { + float pitch; + float roll; + float yaw; + }; + std::string beard; + float maskConfidence; + std::string gender; + HeadPose23 headPose23; + float figureClusterConfidence; + float beardConfidence; + std::string figureId; + std::string mouth; + std::string emotion; + long age; + float mouthConfidence; + std::string figureType; + float genderConfidence; + std::string mask; + Boundary22 boundary22; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem24 + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem25 + { + struct Boundary26 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary26 boundary26; + }; + struct OCRContentsItem27 + { + struct Boundary28 + { + long left; + long top; + long height; + long width; + }; + Boundary28 boundary28; + std::string contents; + std::string language; + float confidence; + }; + struct VideoStreamsItem29 + { + 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 SubtitlesItem30 + { + 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 AudioStreamsItem31 + { + 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 AudioCoversItem32 + { + struct ImageScore33 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem36 + { + struct Boundary37 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary37 boundary37; + }; + struct OCRContentsItem38 + { + struct Boundary39 + { + long left; + long top; + long height; + long width; + }; + Boundary39 boundary39; + std::string contents; + std::string language; + float confidence; + }; + std::string eXIF; + long imageHeight; + ImageScore33 imageScore33; + std::vector croppingSuggestions34; + long imageWidth; + std::vector oCRContents35; + }; + std::vector figures12; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + long streamCount; + std::vector labels13; + std::string customLabels; + long videoHeight; + long imageWidth; + std::string documentLanguage; + std::string oSSStorageClass; + std::vector oCRContents15; + std::string mediaType; + std::vector audioStreams18; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + double duration; + long orientation; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::string fileAccessTime; + std::string projectName; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::string objectType; + std::vector subtitles17; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + ImageScore10 imageScore10; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::vector audioCovers19; + std::vector videoStreams16; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::vector croppingSuggestions14; + std::string updateTime; + std::string oSSUserMeta; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::vector addresses11; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + std::string storyName; + std::string projectName; + std::string objectId; + std::string createTime; + std::string storyType; + std::string objectType; + Cover cover; + std::string customLabels; + std::string ownerId; + std::string datasetName; + std::string storyEndTime; + std::string storySubType; + std::string customId; + std::string updateTime; + std::string storyStartTime; + std::vector figureClusterIds; + std::vector files; + }; + + + GetStoryResult(); + explicit GetStoryResult(const std::string &payload); + ~GetStoryResult(); + Story getStory()const; + + protected: + void parse(const std::string &payload); + private: + Story story_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETSTORYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/GetTaskRequest.h similarity index 66% rename from imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h rename to imm/include/alibabacloud/imm/model/GetTaskRequest.h index ea424f21e..b4e4ed260 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/GetTaskRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTASKREQUEST_H_ #include #include @@ -26,26 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT GetTaskRequest : 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); + GetTaskRequest(); + ~GetTaskRequest(); std::string getTaskId() const; void setTaskId(const std::string &taskId); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); std::string getTaskType() const; void setTaskType(const std::string &taskType); private: - std::string project_; - std::string accessKeyId_; std::string taskId_; + std::string projectName_; std::string taskType_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_GETTASKREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h b/imm/include/alibabacloud/imm/model/GetTaskResult.h similarity index 64% rename from imm/include/alibabacloud/imm/model/GetVideoTaskResult.h rename to imm/include/alibabacloud/imm/model/GetTaskResult.h index 5b62fa969..f9cf40af7 100644 --- a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h +++ b/imm/include/alibabacloud/imm/model/GetTaskResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_GETTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTASKRESULT_H_ #include #include @@ -29,43 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT GetVideoTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT GetTaskResult : public ServiceResult { public: - GetVideoTaskResult(); - explicit GetVideoTaskResult(const std::string &payload); - ~GetVideoTaskResult(); + GetTaskResult(); + explicit GetTaskResult(const std::string &payload); + ~GetTaskResult(); std::string getStatus()const; - int getProgress()const; - std::string getNotifyEndpoint()const; - std::string getParameters()const; std::string getTaskId()const; + std::string getMessage()const; std::string getEndTime()const; + std::string getProjectName()const; + std::string getUserData()const; std::string getTaskType()const; std::string getStartTime()const; - std::string getNotifyTopicName()const; - std::string getErrorMessage()const; - std::string getResult()const; + std::string getEventId()const; + std::string getCode()const; + std::string getTags()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 message_; std::string endTime_; + std::string projectName_; + std::string userData_; std::string taskType_; std::string startTime_; - std::string notifyTopicName_; - std::string errorMessage_; - std::string result_; + std::string eventId_; + std::string code_; + std::string tags_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_GETTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoRequest.h b/imm/include/alibabacloud/imm/model/GetVideoRequest.h deleted file mode 100644 index d016c3663..000000000 --- a/imm/include/alibabacloud/imm/model/GetVideoRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 deleted file mode 100644 index e447872a6..000000000 --- a/imm/include/alibabacloud/imm/model/GetVideoResult.h +++ /dev/null @@ -1,156 +0,0 @@ -/* - * 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/GetWebofficeURLRequest.h b/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h index b9b119995..3fdce04ef 100644 --- a/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h +++ b/imm/include/alibabacloud/imm/model/GetWebofficeURLRequest.h @@ -28,43 +28,91 @@ 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 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); + 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 getFileID() const; - void setFileID(const std::string &fileID); - std::string getWatermark() const; - void setWatermark(const std::string &watermark); + 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 getPermission() const; - void setPermission(const std::string &permission); - std::string getUser() const; - void setUser(const std::string &user); + 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); + 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); private: - std::string srcType_; - std::string project_; - std::string accessKeyId_; - std::string file_; - bool hidecmb_; + std::string referer_; + std::string password_; std::string notifyEndpoint_; - std::string fileID_; - std::string watermark_; + std::string projectName_; + Watermark watermark_; std::string notifyTopicName_; - std::string permission_; - std::string user_; + std::string filename_; + std::string sourceURI_; + bool externalUploaded_; + std::string userData_; + long previewPages_; + bool hidecmb_; + bool cachePreview_; + Permission permission_; + CredentialConfig credentialConfig_; + User user_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h b/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h similarity index 54% rename from imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h rename to imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h index dfea6186a..a119c91a9 100644 --- a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h +++ b/imm/include/alibabacloud/imm/model/IndexFileMetaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXFILEMETAREQUEST_H_ #include #include @@ -26,35 +26,45 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT CreateGrabFrameTaskRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT IndexFileMetaRequest : 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); + struct File { + std::map customLabels; + struct FiguresItem { + std::string figureId; + std::string figureClusterId; + std::string figureType; + }; + FiguresItem figuresItem; + std::vector figures; + std::string oSSURI; + std::string fileHash; + std::string uRI; + std::string customId; + std::string mediaType; + std::string contentType; + }; + IndexFileMetaRequest(); + ~IndexFileMetaRequest(); + File getFile() const; + void setFile(const File &file); std::string getNotifyEndpoint() const; void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getCustomMessage() const; - void setCustomMessage(const std::string &customMessage); + 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 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_; + File file_; std::string notifyEndpoint_; - std::string customMessage_; + std::string datasetName_; + std::string projectName_; std::string notifyTopicName_; - std::string targetList_; - std::string videoUri_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/IndexFileMetaResult.h b/imm/include/alibabacloud/imm/model/IndexFileMetaResult.h new file mode 100644 index 000000000..8ee5408aa --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexFileMetaResult.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_INDEXFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXFILEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexFileMetaResult : public ServiceResult + { + public: + + + IndexFileMetaResult(); + explicit IndexFileMetaResult(const std::string &payload); + ~IndexFileMetaResult(); + std::string getEventId()const; + + protected: + void parse(const std::string &payload); + private: + std::string eventId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexImageRequest.h b/imm/include/alibabacloud/imm/model/IndexImageRequest.h deleted file mode 100644 index d2682d4e4..000000000 --- a/imm/include/alibabacloud/imm/model/IndexImageRequest.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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 deleted file mode 100644 index c5ab7175e..000000000 --- a/imm/include/alibabacloud/imm/model/IndexImageResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 deleted file mode 100644 index b2324a3f7..000000000 --- a/imm/include/alibabacloud/imm/model/IndexVideoRequest.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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 deleted file mode 100644 index f88d349ea..000000000 --- a/imm/include/alibabacloud/imm/model/IndexVideoResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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/PutProjectRequest.h b/imm/include/alibabacloud/imm/model/ListBindingsRequest.h similarity index 55% rename from imm/include/alibabacloud/imm/model/PutProjectRequest.h rename to imm/include/alibabacloud/imm/model/ListBindingsRequest.h index 4619a5180..6465d32bb 100644 --- a/imm/include/alibabacloud/imm/model/PutProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/ListBindingsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_LISTBINDINGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTBINDINGSREQUEST_H_ #include #include @@ -26,26 +26,26 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT PutProjectRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT ListBindingsRequest : 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); + ListBindingsRequest(); + ~ListBindingsRequest(); + 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 project_; - std::string accessKeyId_; - std::string bCTaskVersion_; - std::string serviceRole_; + std::string nextToken_; + std::string datasetName_; + std::string projectName_; + long maxResults_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_LISTBINDINGSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h b/imm/include/alibabacloud/imm/model/ListBindingsResult.h similarity index 56% rename from imm/include/alibabacloud/imm/model/DetectImageTagsResult.h rename to imm/include/alibabacloud/imm/model/ListBindingsResult.h index d8b36af0e..4750214a7 100644 --- a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h +++ b/imm/include/alibabacloud/imm/model/ListBindingsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_LISTBINDINGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTBINDINGSRESULT_H_ #include #include @@ -29,35 +29,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DetectImageTagsResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT ListBindingsResult : public ServiceResult { public: - struct TagsItem + struct BindingsItem { - float centricScore; - std::string tagName; - float tagConfidence; - std::string tagEnName; - std::string parentTagEnName; - int tagLevel; - std::string parentTagName; + std::string phase; + std::string projectName; + std::string datasetName; + std::string state; + std::string createTime; + std::string updateTime; + std::string uRI; + std::string detail; }; - DetectImageTagsResult(); - explicit DetectImageTagsResult(const std::string &payload); - ~DetectImageTagsResult(); - std::string getImageUri()const; - std::vector getTags()const; + ListBindingsResult(); + explicit ListBindingsResult(const std::string &payload); + ~ListBindingsResult(); + std::string getNextToken()const; + std::vector getBindings()const; protected: void parse(const std::string &payload); private: - std::string imageUri_; - std::vector tags_; + std::string nextToken_; + std::vector bindings_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_LISTBINDINGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h b/imm/include/alibabacloud/imm/model/ListDatasetsRequest.h new file mode 100644 index 000000000..c9c59c326 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListDatasetsRequest.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_LISTDATASETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTDATASETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +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); + long getMaxResults() const; + void setMaxResults(long maxResults); + +private: + std::string prefix_; + std::string nextToken_; + std::string projectName_; + long maxResults_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTDATASETSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListDatasetsResult.h b/imm/include/alibabacloud/imm/model/ListDatasetsResult.h new file mode 100644 index 000000000..5a182f558 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListDatasetsResult.h @@ -0,0 +1,70 @@ +/* + * 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_LISTDATASETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTDATASETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListDatasetsResult : public ServiceResult + { + public: + struct DatasetsItem + { + std::string description; + long fileCount; + long bindCount; + std::string projectName; + std::string createTime; + long datasetMaxTotalFileSize; + long datasetMaxRelationCount; + long datasetMaxFileCount; + std::string datasetName; + long datasetMaxBindCount; + std::string updateTime; + long datasetMaxEntityCount; + long totalFileSize; + std::string templateId; + }; + + + ListDatasetsResult(); + explicit ListDatasetsResult(const std::string &payload); + ~ListDatasetsResult(); + std::vector getDatasets()const; + std::string getNextToken()const; + + protected: + void parse(const std::string &payload); + private: + std::vector datasets_; + std::string nextToken_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTDATASETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h b/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h deleted file mode 100644 index 18b3946a4..000000000 --- a/imm/include/alibabacloud/imm/model/ListFaceGroupsRequest.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 deleted file mode 100644 index 029765b41..000000000 --- a/imm/include/alibabacloud/imm/model/ListFaceGroupsResult.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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 deleted file mode 100644 index 8d298945e..000000000 --- a/imm/include/alibabacloud/imm/model/ListImagesRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 deleted file mode 100644 index c4231152f..000000000 --- a/imm/include/alibabacloud/imm/model/ListImagesResult.h +++ /dev/null @@ -1,208 +0,0 @@ -/* - * 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 deleted file mode 100644 index 7b1f83c32..000000000 --- a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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/ListProjectAPIsResult.h b/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h deleted file mode 100644 index b2408710f..000000000 --- a/imm/include/alibabacloud/imm/model/ListProjectAPIsResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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_LISTPROJECTAPISRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ListProjectAPIsResult : public ServiceResult - { - public: - - - ListProjectAPIsResult(); - explicit ListProjectAPIsResult(const std::string &payload); - ~ListProjectAPIsResult(); - std::string getProject()const; - std::vector getAPIs()const; - - protected: - void parse(const std::string &payload); - private: - std::string project_; - std::vector aPIs_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTAPISRESULT_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 72f5a8e19..749ec8cd9 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(); - 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); + 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); private: - int maxKeys_; - std::string accessKeyId_; - std::string marker_; + std::string prefix_; + std::string nextToken_; + long maxResults_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/ListProjectsResult.h b/imm/include/alibabacloud/imm/model/ListProjectsResult.h index f87df0fad..2caf54c6e 100644 --- a/imm/include/alibabacloud/imm/model/ListProjectsResult.h +++ b/imm/include/alibabacloud/imm/model/ListProjectsResult.h @@ -34,29 +34,37 @@ namespace AlibabaCloud public: struct ProjectsItem { - std::string project; - std::string modifyTime; - std::string type; - int cU; - std::string serviceRole; - std::string endpoint; + std::string description; + long fileCount; + std::string projectName; std::string createTime; - std::string regionId; - std::string billingType; + 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; }; 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/OpenImmServiceRequest.h b/imm/include/alibabacloud/imm/model/ListRegionsRequest.h similarity index 67% rename from imm/include/alibabacloud/imm/model/OpenImmServiceRequest.h rename to imm/include/alibabacloud/imm/model/ListRegionsRequest.h index fb33900da..ca914c926 100644 --- a/imm/include/alibabacloud/imm/model/OpenImmServiceRequest.h +++ b/imm/include/alibabacloud/imm/model/ListRegionsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_LISTREGIONSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTREGIONSREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT OpenImmServiceRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT ListRegionsRequest : public RpcServiceRequest { public: - OpenImmServiceRequest(); - ~OpenImmServiceRequest(); - long getOwnerId() const; - void setOwnerId(long ownerId); + ListRegionsRequest(); + ~ListRegionsRequest(); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: - long ownerId_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICEREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_LISTREGIONSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h b/imm/include/alibabacloud/imm/model/ListRegionsResult.h similarity index 65% rename from imm/include/alibabacloud/imm/model/DeleteVideoResult.h rename to imm/include/alibabacloud/imm/model/ListRegionsResult.h index f1df303de..f4d1e498e 100644 --- a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h +++ b/imm/include/alibabacloud/imm/model/ListRegionsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_LISTREGIONSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTREGIONSRESULT_H_ #include #include @@ -29,25 +29,28 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT DeleteVideoResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT ListRegionsResult : public ServiceResult { public: + struct RegionsItem + { + std::string regionId; + std::string localName; + }; - DeleteVideoResult(); - explicit DeleteVideoResult(const std::string &payload); - ~DeleteVideoResult(); - std::string getVideoUri()const; - std::string getSetId()const; + ListRegionsResult(); + explicit ListRegionsResult(const std::string &payload); + ~ListRegionsResult(); + std::vector getRegions()const; protected: void parse(const std::string &payload); private: - std::string videoUri_; - std::string setId_; + std::vector regions_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_LISTREGIONSRESULT_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 new file mode 100644 index 000000000..1f1e385a0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTasksRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT ListTasksRequest : public RpcServiceRequest { +public: + struct StartTimeRange { + std::string start; + std::string end; + }; + struct EndTimeRange { + 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::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 getStatus() const; + void setStatus(const std::string &status); + +private: + StartTimeRange startTimeRange_; + std::string nextToken_; + std::string order_; + std::string projectName_; + std::vector taskTypes_; + EndTimeRange endTimeRange_; + std::string sort_; + long maxResults_; + std::string tagSelector_; + std::string status_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTASKSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h b/imm/include/alibabacloud/imm/model/ListTasksResult.h similarity index 65% rename from imm/include/alibabacloud/imm/model/ListVideoTasksResult.h rename to imm/include/alibabacloud/imm/model/ListTasksResult.h index 0a0e0a9e0..c42147f14 100644 --- a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h +++ b/imm/include/alibabacloud/imm/model/ListTasksResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTASKSRESULT_H_ #include #include @@ -29,39 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT ListVideoTasksResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT ListTasksResult : public ServiceResult { public: struct TasksItem { std::string status; - int progress; - std::string notifyEndpoint; - std::string parameters; std::string taskId; + std::string message; std::string endTime; + std::string userData; std::string taskType; std::string startTime; - std::string notifyTopicName; - std::string errorMessage; - std::string result; + std::string code; + std::string tags; }; - ListVideoTasksResult(); - explicit ListVideoTasksResult(const std::string &payload); - ~ListVideoTasksResult(); + ListTasksResult(); + explicit ListTasksResult(const std::string &payload); + ~ListTasksResult(); std::vector getTasks()const; - std::string getNextMarker()const; + std::string getNextToken()const; + std::string getProjectName()const; + std::string getMaxResults()const; protected: void parse(const std::string &payload); private: std::vector tasks_; - std::string nextMarker_; + std::string nextToken_; + std::string projectName_; + std::string maxResults_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h deleted file mode 100644 index 23f8b9b4a..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3dec578a9..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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 deleted file mode 100644 index d6eeec307..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index d3a46f9a9..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h +++ /dev/null @@ -1,160 +0,0 @@ -/* - * 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 deleted file mode 100644 index 548dbce5a..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/ListVideosResult.h b/imm/include/alibabacloud/imm/model/ListVideosResult.h deleted file mode 100644 index 239b99ecc..000000000 --- a/imm/include/alibabacloud/imm/model/ListVideosResult.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..49ad5cd25 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/MergeFigureClustersRequest.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_MERGEFIGURECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_MERGEFIGURECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT MergeFigureClustersRequest : public RpcServiceRequest { +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; + void setClusterIdFrom(const std::string &clusterIdFrom); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + std::string getNotifyTopicName() const; + void setNotifyTopicName(const std::string ¬ifyTopicName); + std::string getFigureType() const; + void setFigureType(const std::string &figureType); + std::string getClusterIdTo() const; + void setClusterIdTo(const std::string &clusterIdTo); + +private: + std::string notifyTopicEndpoint_; + std::string datasetName_; + std::string customMessage_; + std::string clusterIdFrom_; + std::string projectName_; + std::string notifyTopicName_; + std::string figureType_; + std::string clusterIdTo_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_MERGEFIGURECLUSTERSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h b/imm/include/alibabacloud/imm/model/MergeFigureClustersResult.h similarity index 69% rename from imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h rename to imm/include/alibabacloud/imm/model/MergeFigureClustersResult.h index e9f3b9b90..cafd9666e 100644 --- a/imm/include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h +++ b/imm/include/alibabacloud/imm/model/MergeFigureClustersResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_CREATEGRABFRAMETASKRESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_MERGEFIGURECLUSTERSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_MERGEFIGURECLUSTERSRESULT_H_ #include #include @@ -29,25 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT CreateGrabFrameTaskResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT MergeFigureClustersResult : public ServiceResult { public: - CreateGrabFrameTaskResult(); - explicit CreateGrabFrameTaskResult(const std::string &payload); - ~CreateGrabFrameTaskResult(); + MergeFigureClustersResult(); + explicit MergeFigureClustersResult(const std::string &payload); + ~MergeFigureClustersResult(); 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 +#endif // !ALIBABACLOUD_IMM_MODEL_MERGEFIGURECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectResult.h b/imm/include/alibabacloud/imm/model/PutProjectResult.h deleted file mode 100644 index 936bbdf30..000000000 --- a/imm/include/alibabacloud/imm/model/PutProjectResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..6f8d14bce --- /dev/null +++ b/imm/include/alibabacloud/imm/model/QueryFigureClustersRequest.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_QUERYFIGURECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_QUERYFIGURECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT QueryFigureClustersRequest : public RpcServiceRequest { +public: + QueryFigureClustersRequest(); + ~QueryFigureClustersRequest(); + 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); + +private: + std::string customLabels_; + std::string nextToken_; + std::string datasetName_; + std::string order_; + std::string projectName_; + std::string sort_; + long maxResults_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_QUERYFIGURECLUSTERSREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h b/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h new file mode 100644 index 000000000..df1edb67c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h @@ -0,0 +1,354 @@ +/* + * 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_QUERYFIGURECLUSTERSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_QUERYFIGURECLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT QueryFigureClustersResult : public ServiceResult + { + public: + struct FigureClustersItem + { + struct Cover + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + long videoCount; + std::string projectName; + std::string objectId; + std::string createTime; + float maxAge; + std::string gender; + float averageAge; + std::string name; + std::string objectType; + long imageCount; + float minAge; + Cover cover; + std::string customLabels; + std::string ownerId; + std::string datasetName; + std::string customId; + std::string updateTime; + long faceCount; + }; + + + QueryFigureClustersResult(); + explicit QueryFigureClustersResult(const std::string &payload); + ~QueryFigureClustersResult(); + std::string getNextToken()const; + std::vector getFigureClusters()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector figureClusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_QUERYFIGURECLUSTERSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h b/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h new file mode 100644 index 000000000..93f0474e2 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/QueryStoriesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_QUERYSTORIESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_QUERYSTORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT QueryStoriesRequest : public RpcServiceRequest { +public: + struct StoryStartTimeRange { + std::string start; + std::string end; + }; + struct StoryEndTimeRange { + std::string start; + std::string end; + }; + struct CreateTimeRange { + std::string start; + std::string end; + }; + QueryStoriesRequest(); + ~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 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); + CreateTimeRange getCreateTimeRange() const; + void setCreateTimeRange(const CreateTimeRange &createTimeRange); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); + std::string getStoryName() const; + void setStoryName(const std::string &storyName); + +private: + std::vector figureClusterIds_; + std::string customLabels_; + bool withEmptyStories_; + std::string order_; + std::string projectName_; + std::string sort_; + std::string storyType_; + StoryStartTimeRange storyStartTimeRange_; + std::string storySubType_; + long maxResults_; + std::string nextToken_; + std::string datasetName_; + StoryEndTimeRange storyEndTimeRange_; + CreateTimeRange createTimeRange_; + std::string objectId_; + std::string storyName_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_QUERYSTORIESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/QueryStoriesResult.h b/imm/include/alibabacloud/imm/model/QueryStoriesResult.h new file mode 100644 index 000000000..d2661200a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/QueryStoriesResult.h @@ -0,0 +1,633 @@ +/* + * 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_QUERYSTORIESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_QUERYSTORIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT QueryStoriesResult : public ServiceResult + { + public: + struct StoriesItem + { + struct Cover + { + struct ImageScore10 + { + float overallQualityScore; + }; + struct AddressesItem20 + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem21 + { + struct Boundary22 + { + long left; + long top; + long height; + long width; + }; + struct HeadPose23 + { + float pitch; + float roll; + float yaw; + }; + std::string beard; + float maskConfidence; + std::string gender; + HeadPose23 headPose23; + float figureClusterConfidence; + float beardConfidence; + std::string figureId; + std::string mouth; + std::string emotion; + long age; + float mouthConfidence; + std::string figureType; + float genderConfidence; + std::string mask; + Boundary22 boundary22; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem24 + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem25 + { + struct Boundary26 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary26 boundary26; + }; + struct OCRContentsItem27 + { + struct Boundary28 + { + long left; + long top; + long height; + long width; + }; + Boundary28 boundary28; + std::string contents; + std::string language; + float confidence; + }; + struct VideoStreamsItem29 + { + 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 SubtitlesItem30 + { + 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 AudioStreamsItem31 + { + 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 AudioCoversItem32 + { + struct ImageScore33 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem36 + { + struct Boundary37 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary37 boundary37; + }; + struct OCRContentsItem38 + { + struct Boundary39 + { + long left; + long top; + long height; + long width; + }; + Boundary39 boundary39; + std::string contents; + std::string language; + float confidence; + }; + std::string eXIF; + long imageHeight; + ImageScore33 imageScore33; + std::vector croppingSuggestions34; + long imageWidth; + std::vector oCRContents35; + }; + std::vector figures12; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + long streamCount; + std::vector labels13; + std::string customLabels; + long videoHeight; + long imageWidth; + std::string documentLanguage; + std::string oSSStorageClass; + std::vector oCRContents15; + std::string mediaType; + std::vector audioStreams18; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + double duration; + long orientation; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::string fileAccessTime; + std::string projectName; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::string objectType; + std::vector subtitles17; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + ImageScore10 imageScore10; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::vector audioCovers19; + std::vector videoStreams16; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::vector croppingSuggestions14; + std::string updateTime; + std::string oSSUserMeta; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::vector addresses11; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + std::string storyName; + std::string projectName; + std::string objectId; + std::string createTime; + std::string storyType; + std::string objectType; + Cover cover; + std::string customLabels; + std::string ownerId; + std::string datasetName; + std::string storyEndTime; + std::string storySubType; + std::string customId; + std::string updateTime; + std::string storyStartTime; + std::vector figureClusterIds; + std::vector files; + }; + + + QueryStoriesResult(); + explicit QueryStoriesResult(const std::string &payload); + ~QueryStoriesResult(); + std::string getNextToken()const; + std::vector getStories()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector stories_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_QUERYSTORIESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h b/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h deleted file mode 100644 index e4a684b69..000000000 --- a/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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_REFRESHOFFICEEDITTOKENREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT RefreshOfficeEditTokenRequest : public RpcServiceRequest { -public: - RefreshOfficeEditTokenRequest(); - ~RefreshOfficeEditTokenRequest(); - 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_REFRESHOFFICEEDITTOKENREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h b/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h deleted file mode 100644 index 41a1b2072..000000000 --- a/imm/include/alibabacloud/imm/model/RefreshOfficeEditTokenResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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_REFRESHOFFICEEDITTOKENRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_REFRESHOFFICEEDITTOKENRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT RefreshOfficeEditTokenResult : public ServiceResult - { - public: - - - RefreshOfficeEditTokenResult(); - explicit RefreshOfficeEditTokenResult(const std::string &payload); - ~RefreshOfficeEditTokenResult(); - 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_REFRESHOFFICEEDITTOKENRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h b/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h deleted file mode 100644 index 0fce216d6..000000000 --- a/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 deleted file mode 100644 index 9be49b69e..000000000 --- a/imm/include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 2e7dc251f..edcbd1ef0 100644 --- a/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h +++ b/imm/include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h @@ -28,22 +28,33 @@ 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 new file mode 100644 index 000000000..84f4077e0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RemoveStoryFilesRequest.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_REMOVESTORYFILESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_REMOVESTORYFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT RemoveStoryFilesRequest : public RpcServiceRequest { +public: + struct Files { + std::string uRI; + }; + RemoveStoryFilesRequest(); + ~RemoveStoryFilesRequest(); + std::string getDatasetName() const; + void setDatasetName(const std::string &datasetName); + std::string getProjectName() const; + void setProjectName(const std::string &projectName); + 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::vector files_; + std::string objectId_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_REMOVESTORYFILESREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/RemoveStoryFilesResult.h b/imm/include/alibabacloud/imm/model/RemoveStoryFilesResult.h new file mode 100644 index 000000000..dabe93e1c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RemoveStoryFilesResult.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_REMOVESTORYFILESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_REMOVESTORYFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RemoveStoryFilesResult : public ServiceResult + { + public: + + + RemoveStoryFilesResult(); + explicit RemoveStoryFilesResult(const std::string &payload); + ~RemoveStoryFilesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_REMOVESTORYFILESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h b/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h similarity index 59% rename from imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h rename to imm/include/alibabacloud/imm/model/ResumeBindingRequest.h index 30c515b6b..cd6cc2939 100644 --- a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h +++ b/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ #include #include @@ -26,23 +26,23 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DetectQRCodesRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT ResumeBindingRequest : 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); + ResumeBindingRequest(); + ~ResumeBindingRequest(); + 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 project_; - std::string accessKeyId_; - std::string srcUris_; + std::string datasetName_; + std::string projectName_; + std::string uRI_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ResumeBindingResult.h b/imm/include/alibabacloud/imm/model/ResumeBindingResult.h new file mode 100644 index 000000000..0bc9ad315 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ResumeBindingResult.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_RESUMEBINDINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ResumeBindingResult : public ServiceResult + { + public: + + + ResumeBindingResult(); + explicit ResumeBindingResult(const std::string &payload); + ~ResumeBindingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetContentKeyRequest.h b/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h similarity index 51% rename from imm/include/alibabacloud/imm/model/GetContentKeyRequest.h rename to imm/include/alibabacloud/imm/model/SemanticQueryRequest.h index fb4fb86cd..7fb07db64 100644 --- a/imm/include/alibabacloud/imm/model/GetContentKeyRequest.h +++ b/imm/include/alibabacloud/imm/model/SemanticQueryRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_SEMANTICQUERYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SEMANTICQUERYREQUEST_H_ #include #include @@ -26,29 +26,29 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetContentKeyRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT SemanticQueryRequest : public RpcServiceRequest { public: - GetContentKeyRequest(); - ~GetContentKeyRequest(); - std::string getProject() const; - void setProject(const std::string &project); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getVersionId() const; - void setVersionId(const std::string &versionId); - std::string getDRMServerId() const; - void setDRMServerId(const std::string &dRMServerId); - std::string getKeyIds() const; - void setKeyIds(const std::string &keyIds); + 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 getQuery() const; + void setQuery(const std::string &query); + int getMaxResults() const; + void setMaxResults(int maxResults); private: - std::string project_; - std::string accessKeyId_; - std::string versionId_; - std::string dRMServerId_; - std::string keyIds_; + std::string nextToken_; + std::string datasetName_; + std::string projectName_; + std::string query_; + int maxResults_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETCONTENTKEYREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_SEMANTICQUERYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/SemanticQueryResult.h b/imm/include/alibabacloud/imm/model/SemanticQueryResult.h new file mode 100644 index 000000000..17b40f7fb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SemanticQueryResult.h @@ -0,0 +1,347 @@ +/* + * 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_SEMANTICQUERYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SEMANTICQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SemanticQueryResult : public ServiceResult + { + public: + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + struct AggregationsItem + { + struct GroupsItem + { + std::string value; + long count; + }; + std::string field; + std::vector groups; + float value; + std::string operation; + }; + + + SemanticQueryResult(); + explicit SemanticQueryResult(const std::string &payload); + ~SemanticQueryResult(); + std::string getNextToken()const; + std::vector getAggregations()const; + std::vector getFiles()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector aggregations_; + std::vector files_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SEMANTICQUERYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h b/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h new file mode 100644 index 000000000..a3b2bfa6d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SimpleQueryRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SIMPLEQUERYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SIMPLEQUERYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT SimpleQueryRequest : public RpcServiceRequest { +public: + struct Query { + std::string field; + ObjectOfAny objectOfAny; + std::vector subQueries; + std::string value; + std::string operation; + }; + struct Aggregations { + std::string field; + std::string operation; + }; + 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); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::vector getAggregations() const; + void setAggregations(const std::vector &aggregations); + +private: + std::string nextToken_; + std::string datasetName_; + std::string order_; + std::string projectName_; + Query query_; + std::string sort_; + std::vector withFields_; + int maxResults_; + std::vector aggregations_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_SIMPLEQUERYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/SimpleQueryResult.h b/imm/include/alibabacloud/imm/model/SimpleQueryResult.h new file mode 100644 index 000000000..098cfff1f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SimpleQueryResult.h @@ -0,0 +1,347 @@ +/* + * 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_SIMPLEQUERYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SIMPLEQUERYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SimpleQueryResult : public ServiceResult + { + public: + struct FilesItem + { + struct ImageScore + { + float overallQualityScore; + }; + struct AddressesItem + { + std::string language; + std::string township; + std::string addressLine; + std::string country; + std::string city; + std::string district; + std::string province; + }; + struct FiguresItem + { + struct Boundary + { + long left; + long top; + long height; + long width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + 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; + float genderConfidence; + std::string mask; + float emotionConfidence; + float hatConfidence; + float glassesConfidence; + float sharpness; + std::string figureClusterId; + float faceQuality; + float attractive; + float ageSD; + std::string glasses; + float figureConfidence; + std::string hat; + }; + struct LabelsItem + { + float centricScore; + std::string language; + float labelConfidence; + std::string labelName; + long labelLevel; + std::string parentLabelName; + }; + struct CroppingSuggestionsItem + { + struct Boundary1 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + Boundary1 boundary1; + float confidence; + }; + struct OCRContentsItem + { + struct Boundary2 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary2 boundary2; + }; + struct VideoStreamsItem + { + 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 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 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 AudioCoversItem + { + struct ImageScore3 + { + float overallQualityScore; + }; + struct CroppingSuggestionsItem6 + { + struct Boundary7 + { + long left; + long top; + long height; + long width; + }; + std::string aspectRatio; + float confidence; + Boundary7 boundary7; + }; + struct OCRContentsItem8 + { + struct Boundary9 + { + long left; + long top; + long height; + long width; + }; + std::string contents; + std::string language; + float confidence; + Boundary9 boundary9; + }; + std::string eXIF; + std::vector croppingSuggestions4; + long imageHeight; + long imageWidth; + std::vector oCRContents5; + ImageScore3 imageScore3; + }; + std::string produceTime; + std::string timezone; + std::string artist; + std::string objectACL; + std::string contentType; + std::string accessControlRequestMethod; + long size; + std::string album; + std::string contentLanguage; + std::string oSSTagging; + std::vector addresses; + long streamCount; + std::string customLabels; + long videoHeight; + long imageWidth; + std::vector subtitles; + std::string documentLanguage; + std::string oSSStorageClass; + std::string mediaType; + std::string oSSDeleteMarker; + std::string formatLongName; + long programCount; + double startTime; + std::string filename; + std::vector labels; + double duration; + long orientation; + std::vector croppingSuggestions; + std::string eXIF; + std::string performer; + long imageHeight; + long pageCount; + ImageScore imageScore; + long figureCount; + std::string eTag; + std::string datasetName; + std::string documentContent; + std::string fileHash; + std::string cacheControl; + std::string oSSVersionId; + std::vector videoStreams; + std::string fileAccessTime; + std::string projectName; + std::vector audioCovers; + long videoWidth; + std::string contentEncoding; + std::string uRI; + std::vector audioStreams; + std::string objectType; + std::string serverSideEncryptionKeyId; + std::string ownerId; + std::string fileModifiedTime; + std::string language; + std::string fileCreateTime; + std::string serverSideEncryption; + std::string formatName; + std::string composer; + std::string objectId; + std::string createTime; + std::string title; + std::string travelClusterId; + std::string oSSExpiration; + std::vector figures; + std::string serverSideEncryptionCustomerAlgorithm; + long bitrate; + std::string albumArtist; + std::string contentMd5; + std::string contentDisposition; + std::string customId; + std::string updateTime; + std::string oSSUserMeta; + std::vector oCRContents; + std::string accessControlAllowOrigin; + std::string oSSCRC64; + long oSSTaggingCount; + std::string oSSURI; + std::string serverSideDataEncryption; + std::string latLong; + std::string oSSObjectType; + }; + struct AggregationsItem + { + struct GroupsItem + { + std::string value; + long count; + }; + std::string field; + std::vector groups; + double value; + std::string operation; + }; + + + SimpleQueryResult(); + explicit SimpleQueryResult(const std::string &payload); + ~SimpleQueryResult(); + std::string getNextToken()const; + std::vector getAggregations()const; + std::vector getFiles()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector aggregations_; + std::vector files_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SIMPLEQUERYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h b/imm/include/alibabacloud/imm/model/StopBindingRequest.h similarity index 55% rename from imm/include/alibabacloud/imm/model/DeleteImageRequest.h rename to imm/include/alibabacloud/imm/model/StopBindingRequest.h index 5ba5c5ff0..7407e2fc5 100644 --- a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h +++ b/imm/include/alibabacloud/imm/model/StopBindingRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ #include #include @@ -26,26 +26,26 @@ namespace AlibabaCloud { namespace Imm { namespace Model { -class ALIBABACLOUD_IMM_EXPORT DeleteImageRequest : public RpcServiceRequest { +class ALIBABACLOUD_IMM_EXPORT StopBindingRequest : 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); + StopBindingRequest(); + ~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 getURI() const; + void setURI(const std::string &uRI); private: - std::string project_; - std::string accessKeyId_; - std::string imageUri_; - std::string setId_; + std::string reason_; + std::string datasetName_; + std::string projectName_; + std::string uRI_; }; } // namespace Model } // namespace Imm } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ +#endif // !ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/StopBindingResult.h b/imm/include/alibabacloud/imm/model/StopBindingResult.h new file mode 100644 index 000000000..02ef690d1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/StopBindingResult.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_STOPBINDINGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_STOPBINDINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT StopBindingResult : public ServiceResult + { + public: + + + StopBindingResult(); + explicit StopBindingResult(const std::string &payload); + ~StopBindingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_STOPBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h b/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.h new file mode 100644 index 000000000..d95b85226 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateDatasetRequest.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_UPDATEDATASETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDATASETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateDatasetRequest : public RpcServiceRequest { +public: + UpdateDatasetRequest(); + ~UpdateDatasetRequest(); + long getDatasetMaxBindCount() const; + void setDatasetMaxBindCount(long datasetMaxBindCount); + std::string getDescription() const; + void setDescription(const std::string &description); + 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); + long getDatasetMaxEntityCount() const; + void setDatasetMaxEntityCount(long datasetMaxEntityCount); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + long getDatasetMaxTotalFileSize() const; + void setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize); + +private: + long datasetMaxBindCount_; + std::string description_; + long datasetMaxRelationCount_; + std::string datasetName_; + long datasetMaxFileCount_; + std::string projectName_; + long datasetMaxEntityCount_; + std::string templateId_; + long datasetMaxTotalFileSize_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDATASETREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateDatasetResult.h b/imm/include/alibabacloud/imm/model/UpdateDatasetResult.h new file mode 100644 index 000000000..c20d09f6a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateDatasetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDATASETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDATASETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateDatasetResult : public ServiceResult + { + public: + struct Dataset + { + std::string description; + long fileCount; + long bindCount; + std::string projectName; + std::string createTime; + long datasetMaxTotalFileSize; + long datasetMaxRelationCount; + long datasetMaxFileCount; + std::string datasetName; + long datasetMaxBindCount; + std::string updateTime; + long datasetMaxEntityCount; + long totalFileSize; + std::string templateId; + }; + + + UpdateDatasetResult(); + explicit UpdateDatasetResult(const std::string &payload); + ~UpdateDatasetResult(); + Dataset getDataset()const; + + protected: + void parse(const std::string &payload); + private: + Dataset dataset_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDATASETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h b/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h deleted file mode 100644 index bd89feb15..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateFaceGroupRequest.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 deleted file mode 100644 index 0af957832..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateFaceGroupResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..601b92817 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateFigureClusterRequest.h @@ -0,0 +1,62 @@ +/* + * 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_UPDATEFIGURECLUSTERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFIGURECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateFigureClusterRequest : public RpcServiceRequest { +public: + struct FigureCluster { + struct Cover { + struct FiguresItem { + std::string figureId; + }; + FiguresItem figuresItem; + std::vector figures; + }; + Cover cover; + std::map customLabels; + std::string name; + std::string customId; + std::string objectId; + }; + 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); + +private: + std::string datasetName_; + std::string projectName_; + FigureCluster figureCluster_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFIGURECLUSTERREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateFigureClusterResult.h b/imm/include/alibabacloud/imm/model/UpdateFigureClusterResult.h new file mode 100644 index 000000000..812476e83 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateFigureClusterResult.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_UPDATEFIGURECLUSTERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFIGURECLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateFigureClusterResult : public ServiceResult + { + public: + + + UpdateFigureClusterResult(); + explicit UpdateFigureClusterResult(const std::string &payload); + ~UpdateFigureClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFIGURECLUSTERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h b/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.h new file mode 100644 index 000000000..a03cec2e3 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateFileMetaRequest.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_UPDATEFILEMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFILEMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateFileMetaRequest : public RpcServiceRequest { +public: + struct File { + std::map customLabels; + struct FiguresItem { + std::string figureId; + std::string figureClusterId; + std::string figureType; + }; + FiguresItem figuresItem; + std::vector figures; + std::string oSSURI; + std::string fileHash; + std::string uRI; + std::string customId; + std::string mediaType; + std::string contentType; + }; + UpdateFileMetaRequest(); + ~UpdateFileMetaRequest(); + 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: + File file_; + std::string datasetName_; + std::string projectName_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFILEMETAREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/OpenImmServiceResult.h b/imm/include/alibabacloud/imm/model/UpdateFileMetaResult.h similarity index 69% rename from imm/include/alibabacloud/imm/model/OpenImmServiceResult.h rename to imm/include/alibabacloud/imm/model/UpdateFileMetaResult.h index 316fa7365..5a0fce74e 100644 --- a/imm/include/alibabacloud/imm/model/OpenImmServiceResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateFileMetaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_ +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEFILEMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEFILEMETARESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_IMM_EXPORT OpenImmServiceResult : public ServiceResult + class ALIBABACLOUD_IMM_EXPORT UpdateFileMetaResult : public ServiceResult { public: - OpenImmServiceResult(); - explicit OpenImmServiceResult(const std::string &payload); - ~OpenImmServiceResult(); - std::string getOrderId()const; + UpdateFileMetaResult(); + explicit UpdateFileMetaResult(const std::string &payload); + ~UpdateFileMetaResult(); protected: void parse(const std::string &payload); private: - std::string orderId_; }; } } } -#endif // !ALIBABACLOUD_IMM_MODEL_OPENIMMSERVICERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEFILEMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h deleted file mode 100644 index 445a264c1..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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 deleted file mode 100644 index 23de72d7a..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateImageResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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 e4749279a..89dbfb057 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h @@ -30,23 +30,44 @@ class ALIBABACLOUD_IMM_EXPORT UpdateProjectRequest : public RpcServiceRequest { public: UpdateProjectRequest(); ~UpdateProjectRequest(); - 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); + 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); private: - std::string project_; - std::string newBCTaskVersion_; - std::string accessKeyId_; - std::string newServiceRole_; - int newCU_; + 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_; }; } // namespace Model } // namespace Imm diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h index d32647a7c..782afa251 100644 --- a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h +++ b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h @@ -32,29 +32,37 @@ 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(); - 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; + Project getProject()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 createTime_; - std::string regionId_; + Project project_; }; } diff --git a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h deleted file mode 100644 index b058199e9..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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 deleted file mode 100644 index ca4cd5646..000000000 --- a/imm/include/alibabacloud/imm/model/UpdateSetResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..347547486 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateStoryRequest.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_UPDATESTORYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESTORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imm { +namespace Model { +class ALIBABACLOUD_IMM_EXPORT UpdateStoryRequest : public RpcServiceRequest { +public: + struct Cover { + std::string uRI; + }; + 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 getCustomId() const; + void setCustomId(const std::string &customId); + std::string getObjectId() const; + void setObjectId(const std::string &objectId); + std::string getStoryName() const; + void setStoryName(const std::string &storyName); + +private: + std::string customLabels_; + Cover cover_; + std::string datasetName_; + std::string projectName_; + std::string customId_; + std::string objectId_; + std::string storyName_; +}; +} // namespace Model +} // namespace Imm +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESTORYREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/UpdateStoryResult.h b/imm/include/alibabacloud/imm/model/UpdateStoryResult.h new file mode 100644 index 000000000..2b95de710 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateStoryResult.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_UPDATESTORYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESTORYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateStoryResult : public ServiceResult + { + public: + + + UpdateStoryResult(); + explicit UpdateStoryResult(const std::string &payload); + ~UpdateStoryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESTORYRESULT_H_ \ No newline at end of file diff --git a/imm/src/ImmClient.cc b/imm/src/ImmClient.cc index 434f4ffcd..674e88f9e 100644 --- a/imm/src/ImmClient.cc +++ b/imm/src/ImmClient.cc @@ -51,252 +51,504 @@ ImmClient::ImmClient(const std::string & accessKeyId, const std::string & access ImmClient::~ImmClient() {} -ImmClient::CompareImageFacesOutcome ImmClient::compareImageFaces(const CompareImageFacesRequest &request) const +ImmClient::AddStoryFilesOutcome ImmClient::addStoryFiles(const AddStoryFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CompareImageFacesOutcome(endpointOutcome.error()); + return AddStoryFilesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CompareImageFacesOutcome(CompareImageFacesResult(outcome.result())); + return AddStoryFilesOutcome(AddStoryFilesResult(outcome.result())); else - return CompareImageFacesOutcome(outcome.error()); + return AddStoryFilesOutcome(outcome.error()); } -void ImmClient::compareImageFacesAsync(const CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::addStoryFilesAsync(const AddStoryFilesRequest& request, const AddStoryFilesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, compareImageFaces(request), context); + handler(this, request, addStoryFiles(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CompareImageFacesOutcomeCallable ImmClient::compareImageFacesCallable(const CompareImageFacesRequest &request) const +ImmClient::AddStoryFilesOutcomeCallable ImmClient::addStoryFilesCallable(const AddStoryFilesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->compareImageFaces(request); + return this->addStoryFiles(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ConvertOfficeFormatOutcome ImmClient::convertOfficeFormat(const ConvertOfficeFormatRequest &request) const +ImmClient::AttachOSSBucketOutcome ImmClient::attachOSSBucket(const AttachOSSBucketRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ConvertOfficeFormatOutcome(endpointOutcome.error()); + return AttachOSSBucketOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ConvertOfficeFormatOutcome(ConvertOfficeFormatResult(outcome.result())); + return AttachOSSBucketOutcome(AttachOSSBucketResult(outcome.result())); else - return ConvertOfficeFormatOutcome(outcome.error()); + return AttachOSSBucketOutcome(outcome.error()); } -void ImmClient::convertOfficeFormatAsync(const ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::attachOSSBucketAsync(const AttachOSSBucketRequest& request, const AttachOSSBucketAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, convertOfficeFormat(request), context); + handler(this, request, attachOSSBucket(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCallable(const ConvertOfficeFormatRequest &request) const +ImmClient::AttachOSSBucketOutcomeCallable ImmClient::attachOSSBucketCallable(const AttachOSSBucketRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->convertOfficeFormat(request); + return this->attachOSSBucket(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateGrabFrameTaskOutcome ImmClient::createGrabFrameTask(const CreateGrabFrameTaskRequest &request) const +ImmClient::BatchDeleteFileMetaOutcome ImmClient::batchDeleteFileMeta(const BatchDeleteFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateGrabFrameTaskOutcome(endpointOutcome.error()); + return BatchDeleteFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateGrabFrameTaskOutcome(CreateGrabFrameTaskResult(outcome.result())); + return BatchDeleteFileMetaOutcome(BatchDeleteFileMetaResult(outcome.result())); else - return CreateGrabFrameTaskOutcome(outcome.error()); + return BatchDeleteFileMetaOutcome(outcome.error()); } -void ImmClient::createGrabFrameTaskAsync(const CreateGrabFrameTaskRequest& request, const CreateGrabFrameTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::batchDeleteFileMetaAsync(const BatchDeleteFileMetaRequest& request, const BatchDeleteFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createGrabFrameTask(request), context); + handler(this, request, batchDeleteFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateGrabFrameTaskOutcomeCallable ImmClient::createGrabFrameTaskCallable(const CreateGrabFrameTaskRequest &request) const +ImmClient::BatchDeleteFileMetaOutcomeCallable ImmClient::batchDeleteFileMetaCallable(const BatchDeleteFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createGrabFrameTask(request); + return this->batchDeleteFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateGroupFacesJobOutcome ImmClient::createGroupFacesJob(const CreateGroupFacesJobRequest &request) const +ImmClient::BatchGetFileMetaOutcome ImmClient::batchGetFileMeta(const BatchGetFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateGroupFacesJobOutcome(endpointOutcome.error()); + return BatchGetFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateGroupFacesJobOutcome(CreateGroupFacesJobResult(outcome.result())); + return BatchGetFileMetaOutcome(BatchGetFileMetaResult(outcome.result())); else - return CreateGroupFacesJobOutcome(outcome.error()); + return BatchGetFileMetaOutcome(outcome.error()); } -void ImmClient::createGroupFacesJobAsync(const CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::batchGetFileMetaAsync(const BatchGetFileMetaRequest& request, const BatchGetFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createGroupFacesJob(request), context); + handler(this, request, batchGetFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateGroupFacesJobOutcomeCallable ImmClient::createGroupFacesJobCallable(const CreateGroupFacesJobRequest &request) const +ImmClient::BatchGetFileMetaOutcomeCallable ImmClient::batchGetFileMetaCallable(const BatchGetFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createGroupFacesJob(request); + return this->batchGetFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateImageProcessTaskOutcome ImmClient::createImageProcessTask(const CreateImageProcessTaskRequest &request) const +ImmClient::BatchIndexFileMetaOutcome ImmClient::batchIndexFileMeta(const BatchIndexFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateImageProcessTaskOutcome(endpointOutcome.error()); + return BatchIndexFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateImageProcessTaskOutcome(CreateImageProcessTaskResult(outcome.result())); + return BatchIndexFileMetaOutcome(BatchIndexFileMetaResult(outcome.result())); else - return CreateImageProcessTaskOutcome(outcome.error()); + return BatchIndexFileMetaOutcome(outcome.error()); } -void ImmClient::createImageProcessTaskAsync(const CreateImageProcessTaskRequest& request, const CreateImageProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::batchIndexFileMetaAsync(const BatchIndexFileMetaRequest& request, const BatchIndexFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createImageProcessTask(request), context); + handler(this, request, batchIndexFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateImageProcessTaskOutcomeCallable ImmClient::createImageProcessTaskCallable(const CreateImageProcessTaskRequest &request) const +ImmClient::BatchIndexFileMetaOutcomeCallable ImmClient::batchIndexFileMetaCallable(const BatchIndexFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createImageProcessTask(request); + return this->batchIndexFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateMediaComplexTaskOutcome ImmClient::createMediaComplexTask(const CreateMediaComplexTaskRequest &request) const +ImmClient::BatchUpdateFileMetaOutcome ImmClient::batchUpdateFileMeta(const BatchUpdateFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMediaComplexTaskOutcome(endpointOutcome.error()); + return BatchUpdateFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMediaComplexTaskOutcome(CreateMediaComplexTaskResult(outcome.result())); + return BatchUpdateFileMetaOutcome(BatchUpdateFileMetaResult(outcome.result())); else - return CreateMediaComplexTaskOutcome(outcome.error()); + return BatchUpdateFileMetaOutcome(outcome.error()); } -void ImmClient::createMediaComplexTaskAsync(const CreateMediaComplexTaskRequest& request, const CreateMediaComplexTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::batchUpdateFileMetaAsync(const BatchUpdateFileMetaRequest& request, const BatchUpdateFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMediaComplexTask(request), context); + handler(this, request, batchUpdateFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateMediaComplexTaskOutcomeCallable ImmClient::createMediaComplexTaskCallable(const CreateMediaComplexTaskRequest &request) const +ImmClient::BatchUpdateFileMetaOutcomeCallable ImmClient::batchUpdateFileMetaCallable(const BatchUpdateFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMediaComplexTask(request); + return this->batchUpdateFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateMergeFaceGroupsJobOutcome ImmClient::createMergeFaceGroupsJob(const CreateMergeFaceGroupsJobRequest &request) const +ImmClient::CreateBindingOutcome ImmClient::createBinding(const CreateBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMergeFaceGroupsJobOutcome(endpointOutcome.error()); + return CreateBindingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMergeFaceGroupsJobOutcome(CreateMergeFaceGroupsJobResult(outcome.result())); + return CreateBindingOutcome(CreateBindingResult(outcome.result())); else - return CreateMergeFaceGroupsJobOutcome(outcome.error()); + return CreateBindingOutcome(outcome.error()); } -void ImmClient::createMergeFaceGroupsJobAsync(const CreateMergeFaceGroupsJobRequest& request, const CreateMergeFaceGroupsJobAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::createBindingAsync(const CreateBindingRequest& request, const CreateBindingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMergeFaceGroupsJob(request), context); + handler(this, request, createBinding(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateMergeFaceGroupsJobOutcomeCallable ImmClient::createMergeFaceGroupsJobCallable(const CreateMergeFaceGroupsJobRequest &request) const +ImmClient::CreateBindingOutcomeCallable ImmClient::createBindingCallable(const CreateBindingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMergeFaceGroupsJob(request); + return this->createBinding(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateDatasetOutcome ImmClient::createDataset(const CreateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatasetOutcome(CreateDatasetResult(outcome.result())); + else + return CreateDatasetOutcome(outcome.error()); +} + +void ImmClient::createDatasetAsync(const CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateDatasetOutcomeCallable ImmClient::createDatasetCallable(const CreateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateDetectVideoLabelsTaskOutcome ImmClient::createDetectVideoLabelsTask(const CreateDetectVideoLabelsTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDetectVideoLabelsTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDetectVideoLabelsTaskOutcome(CreateDetectVideoLabelsTaskResult(outcome.result())); + else + return CreateDetectVideoLabelsTaskOutcome(outcome.error()); +} + +void ImmClient::createDetectVideoLabelsTaskAsync(const CreateDetectVideoLabelsTaskRequest& request, const CreateDetectVideoLabelsTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDetectVideoLabelsTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateDetectVideoLabelsTaskOutcomeCallable ImmClient::createDetectVideoLabelsTaskCallable(const CreateDetectVideoLabelsTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDetectVideoLabelsTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateFigureClusteringTaskOutcome ImmClient::createFigureClusteringTask(const CreateFigureClusteringTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFigureClusteringTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFigureClusteringTaskOutcome(CreateFigureClusteringTaskResult(outcome.result())); + else + return CreateFigureClusteringTaskOutcome(outcome.error()); +} + +void ImmClient::createFigureClusteringTaskAsync(const CreateFigureClusteringTaskRequest& request, const CreateFigureClusteringTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFigureClusteringTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateFigureClusteringTaskOutcomeCallable ImmClient::createFigureClusteringTaskCallable(const CreateFigureClusteringTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFigureClusteringTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateFigureClustersMergingTaskOutcome ImmClient::createFigureClustersMergingTask(const CreateFigureClustersMergingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFigureClustersMergingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFigureClustersMergingTaskOutcome(CreateFigureClustersMergingTaskResult(outcome.result())); + else + return CreateFigureClustersMergingTaskOutcome(outcome.error()); +} + +void ImmClient::createFigureClustersMergingTaskAsync(const CreateFigureClustersMergingTaskRequest& request, const CreateFigureClustersMergingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFigureClustersMergingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateFigureClustersMergingTaskOutcomeCallable ImmClient::createFigureClustersMergingTaskCallable(const CreateFigureClustersMergingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFigureClustersMergingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateImageModerationTaskOutcome ImmClient::createImageModerationTask(const CreateImageModerationTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateImageModerationTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateImageModerationTaskOutcome(CreateImageModerationTaskResult(outcome.result())); + else + return CreateImageModerationTaskOutcome(outcome.error()); +} + +void ImmClient::createImageModerationTaskAsync(const CreateImageModerationTaskRequest& request, const CreateImageModerationTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createImageModerationTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateImageModerationTaskOutcomeCallable ImmClient::createImageModerationTaskCallable(const CreateImageModerationTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createImageModerationTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateImageSplicingTaskOutcome ImmClient::createImageSplicingTask(const CreateImageSplicingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateImageSplicingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateImageSplicingTaskOutcome(CreateImageSplicingTaskResult(outcome.result())); + else + return CreateImageSplicingTaskOutcome(outcome.error()); +} + +void ImmClient::createImageSplicingTaskAsync(const CreateImageSplicingTaskRequest& request, const CreateImageSplicingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createImageSplicingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateImageSplicingTaskOutcomeCallable ImmClient::createImageSplicingTaskCallable(const CreateImageSplicingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createImageSplicingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateMediaConvertTaskOutcome ImmClient::createMediaConvertTask(const CreateMediaConvertTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMediaConvertTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMediaConvertTaskOutcome(CreateMediaConvertTaskResult(outcome.result())); + else + return CreateMediaConvertTaskOutcome(outcome.error()); +} + +void ImmClient::createMediaConvertTaskAsync(const CreateMediaConvertTaskRequest& request, const CreateMediaConvertTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMediaConvertTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateMediaConvertTaskOutcomeCallable ImmClient::createMediaConvertTaskCallable(const CreateMediaConvertTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMediaConvertTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -339,324 +591,216 @@ ImmClient::CreateOfficeConversionTaskOutcomeCallable ImmClient::createOfficeConv return task->get_future(); } -ImmClient::CreateSetOutcome ImmClient::createSet(const CreateSetRequest &request) const +ImmClient::CreateProjectOutcome ImmClient::createProject(const CreateProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateSetOutcome(endpointOutcome.error()); + return CreateProjectOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateSetOutcome(CreateSetResult(outcome.result())); + return CreateProjectOutcome(CreateProjectResult(outcome.result())); else - return CreateSetOutcome(outcome.error()); + return CreateProjectOutcome(outcome.error()); } -void ImmClient::createSetAsync(const CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::createProjectAsync(const CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createSet(request), context); + handler(this, request, createProject(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSetRequest &request) const +ImmClient::CreateProjectOutcomeCallable ImmClient::createProjectCallable(const CreateProjectRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createSet(request); + return this->createProject(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateVideoAbstractTaskOutcome ImmClient::createVideoAbstractTask(const CreateVideoAbstractTaskRequest &request) const +ImmClient::CreateStoryOutcome ImmClient::createStory(const CreateStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateVideoAbstractTaskOutcome(endpointOutcome.error()); + return CreateStoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateVideoAbstractTaskOutcome(CreateVideoAbstractTaskResult(outcome.result())); + return CreateStoryOutcome(CreateStoryResult(outcome.result())); else - return CreateVideoAbstractTaskOutcome(outcome.error()); + return CreateStoryOutcome(outcome.error()); } -void ImmClient::createVideoAbstractTaskAsync(const CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::createStoryAsync(const CreateStoryRequest& request, const CreateStoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createVideoAbstractTask(request), context); + handler(this, request, createStory(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateVideoAbstractTaskOutcomeCallable ImmClient::createVideoAbstractTaskCallable(const CreateVideoAbstractTaskRequest &request) const +ImmClient::CreateStoryOutcomeCallable ImmClient::createStoryCallable(const CreateStoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createVideoAbstractTask(request); + return this->createStory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const +ImmClient::CreateVideoModerationTaskOutcome ImmClient::createVideoModerationTask(const CreateVideoModerationTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateVideoAnalyseTaskOutcome(endpointOutcome.error()); + return CreateVideoModerationTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateVideoAnalyseTaskOutcome(CreateVideoAnalyseTaskResult(outcome.result())); + return CreateVideoModerationTaskOutcome(CreateVideoModerationTaskResult(outcome.result())); else - return CreateVideoAnalyseTaskOutcome(outcome.error()); + return CreateVideoModerationTaskOutcome(outcome.error()); } -void ImmClient::createVideoAnalyseTaskAsync(const CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::createVideoModerationTaskAsync(const CreateVideoModerationTaskRequest& request, const CreateVideoModerationTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createVideoAnalyseTask(request), context); + handler(this, request, createVideoModerationTask(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateVideoAnalyseTaskOutcomeCallable ImmClient::createVideoAnalyseTaskCallable(const CreateVideoAnalyseTaskRequest &request) const +ImmClient::CreateVideoModerationTaskOutcomeCallable ImmClient::createVideoModerationTaskCallable(const CreateVideoModerationTaskRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createVideoAnalyseTask(request); + return this->createVideoModerationTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateVideoCompressTaskOutcome ImmClient::createVideoCompressTask(const CreateVideoCompressTaskRequest &request) const +ImmClient::DeleteBindingOutcome ImmClient::deleteBinding(const DeleteBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateVideoCompressTaskOutcome(endpointOutcome.error()); + return DeleteBindingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateVideoCompressTaskOutcome(CreateVideoCompressTaskResult(outcome.result())); + return DeleteBindingOutcome(DeleteBindingResult(outcome.result())); else - return CreateVideoCompressTaskOutcome(outcome.error()); + return DeleteBindingOutcome(outcome.error()); } -void ImmClient::createVideoCompressTaskAsync(const CreateVideoCompressTaskRequest& request, const CreateVideoCompressTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::deleteBindingAsync(const DeleteBindingRequest& request, const DeleteBindingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createVideoCompressTask(request), context); + handler(this, request, deleteBinding(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateVideoCompressTaskOutcomeCallable ImmClient::createVideoCompressTaskCallable(const CreateVideoCompressTaskRequest &request) const +ImmClient::DeleteBindingOutcomeCallable ImmClient::deleteBindingCallable(const DeleteBindingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createVideoCompressTask(request); + return this->deleteBinding(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::CreateVideoProduceTaskOutcome ImmClient::createVideoProduceTask(const CreateVideoProduceTaskRequest &request) const +ImmClient::DeleteDatasetOutcome ImmClient::deleteDataset(const DeleteDatasetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateVideoProduceTaskOutcome(endpointOutcome.error()); + return DeleteDatasetOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateVideoProduceTaskOutcome(CreateVideoProduceTaskResult(outcome.result())); + return DeleteDatasetOutcome(DeleteDatasetResult(outcome.result())); else - return CreateVideoProduceTaskOutcome(outcome.error()); + return DeleteDatasetOutcome(outcome.error()); } -void ImmClient::createVideoProduceTaskAsync(const CreateVideoProduceTaskRequest& request, const CreateVideoProduceTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::deleteDatasetAsync(const DeleteDatasetRequest& request, const DeleteDatasetAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createVideoProduceTask(request), context); + handler(this, request, deleteDataset(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::CreateVideoProduceTaskOutcomeCallable ImmClient::createVideoProduceTaskCallable(const CreateVideoProduceTaskRequest &request) const +ImmClient::DeleteDatasetOutcomeCallable ImmClient::deleteDatasetCallable(const DeleteDatasetRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createVideoProduceTask(request); + return this->deleteDataset(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::DecodeBlindWatermarkOutcome ImmClient::decodeBlindWatermark(const DecodeBlindWatermarkRequest &request) const +ImmClient::DeleteFileMetaOutcome ImmClient::deleteFileMeta(const DeleteFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DecodeBlindWatermarkOutcome(endpointOutcome.error()); + return DeleteFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DecodeBlindWatermarkOutcome(DecodeBlindWatermarkResult(outcome.result())); + return DeleteFileMetaOutcome(DeleteFileMetaResult(outcome.result())); else - return DecodeBlindWatermarkOutcome(outcome.error()); + return DeleteFileMetaOutcome(outcome.error()); } -void ImmClient::decodeBlindWatermarkAsync(const DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::deleteFileMetaAsync(const DeleteFileMetaRequest& request, const DeleteFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, decodeBlindWatermark(request), context); + handler(this, request, deleteFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DecodeBlindWatermarkOutcomeCallable ImmClient::decodeBlindWatermarkCallable(const DecodeBlindWatermarkRequest &request) const +ImmClient::DeleteFileMetaOutcomeCallable ImmClient::deleteFileMetaCallable(const DeleteFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->decodeBlindWatermark(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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::DeleteImageJobOutcome ImmClient::deleteImageJob(const DeleteImageJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteImageJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteImageJobOutcome(DeleteImageJobResult(outcome.result())); - else - return DeleteImageJobOutcome(outcome.error()); -} - -void ImmClient::deleteImageJobAsync(const DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteImageJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DeleteImageJobOutcomeCallable ImmClient::deleteImageJobCallable(const DeleteImageJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteImageJob(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); + return this->deleteFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,144 +843,72 @@ ImmClient::DeleteProjectOutcomeCallable ImmClient::deleteProjectCallable(const D return task->get_future(); } -ImmClient::DeleteSetOutcome ImmClient::deleteSet(const DeleteSetRequest &request) const +ImmClient::DeleteStoryOutcome ImmClient::deleteStory(const DeleteStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteSetOutcome(endpointOutcome.error()); + return DeleteStoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteSetOutcome(DeleteSetResult(outcome.result())); + return DeleteStoryOutcome(DeleteStoryResult(outcome.result())); else - return DeleteSetOutcome(outcome.error()); + return DeleteStoryOutcome(outcome.error()); } -void ImmClient::deleteSetAsync(const DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::deleteStoryAsync(const DeleteStoryRequest& request, const DeleteStoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteSet(request), context); + handler(this, request, deleteStory(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DeleteSetOutcomeCallable ImmClient::deleteSetCallable(const DeleteSetRequest &request) const +ImmClient::DeleteStoryOutcomeCallable ImmClient::deleteStoryCallable(const DeleteStoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteSet(request); + return this->deleteStory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::DeleteVideoOutcome ImmClient::deleteVideo(const DeleteVideoRequest &request) const +ImmClient::DetachOSSBucketOutcome ImmClient::detachOSSBucket(const DetachOSSBucketRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteVideoOutcome(endpointOutcome.error()); + return DetachOSSBucketOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteVideoOutcome(DeleteVideoResult(outcome.result())); + return DetachOSSBucketOutcome(DetachOSSBucketResult(outcome.result())); else - return DeleteVideoOutcome(outcome.error()); + return DetachOSSBucketOutcome(outcome.error()); } -void ImmClient::deleteVideoAsync(const DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::detachOSSBucketAsync(const DetachOSSBucketRequest& request, const DetachOSSBucketAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteVideo(request), context); + handler(this, request, detachOSSBucket(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DeleteVideoOutcomeCallable ImmClient::deleteVideoCallable(const DeleteVideoRequest &request) const +ImmClient::DetachOSSBucketOutcomeCallable ImmClient::detachOSSBucketCallable(const DetachOSSBucketRequest &request) const { - auto task = std::make_shared>( + 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::DescribeRegionsOutcome ImmClient::describeRegions(const DescribeRegionsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeRegionsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); - else - return DescribeRegionsOutcome(outcome.error()); -} - -void ImmClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeRegions(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::DescribeRegionsOutcomeCallable ImmClient::describeRegionsCallable(const DescribeRegionsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeRegions(request); + return this->detachOSSBucket(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -879,6 +951,78 @@ ImmClient::DetectImageBodiesOutcomeCallable ImmClient::detectImageBodiesCallable return task->get_future(); } +ImmClient::DetectImageCodesOutcome ImmClient::detectImageCodes(const DetectImageCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageCodesOutcome(DetectImageCodesResult(outcome.result())); + else + return DetectImageCodesOutcome(outcome.error()); +} + +void ImmClient::detectImageCodesAsync(const DetectImageCodesRequest& request, const DetectImageCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageCodesOutcomeCallable ImmClient::detectImageCodesCallable(const DetectImageCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageCroppingOutcome ImmClient::detectImageCropping(const DetectImageCroppingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageCroppingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageCroppingOutcome(DetectImageCroppingResult(outcome.result())); + else + return DetectImageCroppingOutcome(outcome.error()); +} + +void ImmClient::detectImageCroppingAsync(const DetectImageCroppingRequest& request, const DetectImageCroppingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageCropping(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageCroppingOutcomeCallable ImmClient::detectImageCroppingCallable(const DetectImageCroppingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageCropping(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + ImmClient::DetectImageFacesOutcome ImmClient::detectImageFaces(const DetectImageFacesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,396 +1059,324 @@ ImmClient::DetectImageFacesOutcomeCallable ImmClient::detectImageFacesCallable(c return task->get_future(); } -ImmClient::DetectImageQRCodesOutcome ImmClient::detectImageQRCodes(const DetectImageQRCodesRequest &request) const +ImmClient::DetectImageLabelsOutcome ImmClient::detectImageLabels(const DetectImageLabelsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DetectImageQRCodesOutcome(endpointOutcome.error()); + return DetectImageLabelsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DetectImageQRCodesOutcome(DetectImageQRCodesResult(outcome.result())); + return DetectImageLabelsOutcome(DetectImageLabelsResult(outcome.result())); else - return DetectImageQRCodesOutcome(outcome.error()); + return DetectImageLabelsOutcome(outcome.error()); } -void ImmClient::detectImageQRCodesAsync(const DetectImageQRCodesRequest& request, const DetectImageQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::detectImageLabelsAsync(const DetectImageLabelsRequest& request, const DetectImageLabelsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, detectImageQRCodes(request), context); + handler(this, request, detectImageLabels(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DetectImageQRCodesOutcomeCallable ImmClient::detectImageQRCodesCallable(const DetectImageQRCodesRequest &request) const +ImmClient::DetectImageLabelsOutcomeCallable ImmClient::detectImageLabelsCallable(const DetectImageLabelsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->detectImageQRCodes(request); + return this->detectImageLabels(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::DetectImageTagsOutcome ImmClient::detectImageTags(const DetectImageTagsRequest &request) const +ImmClient::DetectImageScoreOutcome ImmClient::detectImageScore(const DetectImageScoreRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DetectImageTagsOutcome(endpointOutcome.error()); + return DetectImageScoreOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DetectImageTagsOutcome(DetectImageTagsResult(outcome.result())); + return DetectImageScoreOutcome(DetectImageScoreResult(outcome.result())); else - return DetectImageTagsOutcome(outcome.error()); + return DetectImageScoreOutcome(outcome.error()); } -void ImmClient::detectImageTagsAsync(const DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::detectImageScoreAsync(const DetectImageScoreRequest& request, const DetectImageScoreAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, detectImageTags(request), context); + handler(this, request, detectImageScore(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(const DetectImageTagsRequest &request) const +ImmClient::DetectImageScoreOutcomeCallable ImmClient::detectImageScoreCallable(const DetectImageScoreRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->detectImageTags(request); + return this->detectImageScore(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const +ImmClient::DetectTextAnomalyOutcome ImmClient::detectTextAnomaly(const DetectTextAnomalyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DetectQRCodesOutcome(endpointOutcome.error()); + return DetectTextAnomalyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DetectQRCodesOutcome(DetectQRCodesResult(outcome.result())); + return DetectTextAnomalyOutcome(DetectTextAnomalyResult(outcome.result())); else - return DetectQRCodesOutcome(outcome.error()); + return DetectTextAnomalyOutcome(outcome.error()); } -void ImmClient::detectQRCodesAsync(const DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::detectTextAnomalyAsync(const DetectTextAnomalyRequest& request, const DetectTextAnomalyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, detectQRCodes(request), context); + handler(this, request, detectTextAnomaly(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::DetectQRCodesOutcomeCallable ImmClient::detectQRCodesCallable(const DetectQRCodesRequest &request) const +ImmClient::DetectTextAnomalyOutcomeCallable ImmClient::detectTextAnomalyCallable(const DetectTextAnomalyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->detectQRCodes(request); + return this->detectTextAnomaly(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::EncodeBlindWatermarkOutcome ImmClient::encodeBlindWatermark(const EncodeBlindWatermarkRequest &request) const +ImmClient::FuzzyQueryOutcome ImmClient::fuzzyQuery(const FuzzyQueryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EncodeBlindWatermarkOutcome(endpointOutcome.error()); + return FuzzyQueryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EncodeBlindWatermarkOutcome(EncodeBlindWatermarkResult(outcome.result())); + return FuzzyQueryOutcome(FuzzyQueryResult(outcome.result())); else - return EncodeBlindWatermarkOutcome(outcome.error()); + return FuzzyQueryOutcome(outcome.error()); } -void ImmClient::encodeBlindWatermarkAsync(const EncodeBlindWatermarkRequest& request, const EncodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::fuzzyQueryAsync(const FuzzyQueryRequest& request, const FuzzyQueryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, encodeBlindWatermark(request), context); + handler(this, request, fuzzyQuery(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::EncodeBlindWatermarkOutcomeCallable ImmClient::encodeBlindWatermarkCallable(const EncodeBlindWatermarkRequest &request) const +ImmClient::FuzzyQueryOutcomeCallable ImmClient::fuzzyQueryCallable(const FuzzyQueryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->encodeBlindWatermark(request); + return this->fuzzyQuery(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const +ImmClient::GetBindingOutcome ImmClient::getBinding(const GetBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FindImagesOutcome(endpointOutcome.error()); + return GetBindingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FindImagesOutcome(FindImagesResult(outcome.result())); + return GetBindingOutcome(GetBindingResult(outcome.result())); else - return FindImagesOutcome(outcome.error()); + return GetBindingOutcome(outcome.error()); } -void ImmClient::findImagesAsync(const FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getBindingAsync(const GetBindingRequest& request, const GetBindingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, findImages(request), context); + handler(this, request, getBinding(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::FindImagesOutcomeCallable ImmClient::findImagesCallable(const FindImagesRequest &request) const +ImmClient::GetBindingOutcomeCallable ImmClient::getBindingCallable(const GetBindingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->findImages(request); + return this->getBinding(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::FindSimilarFacesOutcome ImmClient::findSimilarFaces(const FindSimilarFacesRequest &request) const +ImmClient::GetDatasetOutcome ImmClient::getDataset(const GetDatasetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return FindSimilarFacesOutcome(endpointOutcome.error()); + return GetDatasetOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return FindSimilarFacesOutcome(FindSimilarFacesResult(outcome.result())); + return GetDatasetOutcome(GetDatasetResult(outcome.result())); else - return FindSimilarFacesOutcome(outcome.error()); + return GetDatasetOutcome(outcome.error()); } -void ImmClient::findSimilarFacesAsync(const FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getDatasetAsync(const GetDatasetRequest& request, const GetDatasetAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, findSimilarFaces(request), context); + handler(this, request, getDataset(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(const FindSimilarFacesRequest &request) const +ImmClient::GetDatasetOutcomeCallable ImmClient::getDatasetCallable(const GetDatasetRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->findSimilarFaces(request); + return this->getDataset(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::GetContentKeyOutcome ImmClient::getContentKey(const GetContentKeyRequest &request) const +ImmClient::GetDetectVideoLabelsResultOutcome ImmClient::getDetectVideoLabelsResult(const GetDetectVideoLabelsResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetContentKeyOutcome(endpointOutcome.error()); + return GetDetectVideoLabelsResultOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetContentKeyOutcome(GetContentKeyResult(outcome.result())); + return GetDetectVideoLabelsResultOutcome(GetDetectVideoLabelsResultResult(outcome.result())); else - return GetContentKeyOutcome(outcome.error()); + return GetDetectVideoLabelsResultOutcome(outcome.error()); } -void ImmClient::getContentKeyAsync(const GetContentKeyRequest& request, const GetContentKeyAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getDetectVideoLabelsResultAsync(const GetDetectVideoLabelsResultRequest& request, const GetDetectVideoLabelsResultAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getContentKey(request), context); + handler(this, request, getDetectVideoLabelsResult(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetContentKeyOutcomeCallable ImmClient::getContentKeyCallable(const GetContentKeyRequest &request) const +ImmClient::GetDetectVideoLabelsResultOutcomeCallable ImmClient::getDetectVideoLabelsResultCallable(const GetDetectVideoLabelsResultRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getContentKey(request); + return this->getDetectVideoLabelsResult(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::GetDRMLicenseOutcome ImmClient::getDRMLicense(const GetDRMLicenseRequest &request) const +ImmClient::GetFigureClusterOutcome ImmClient::getFigureCluster(const GetFigureClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetDRMLicenseOutcome(endpointOutcome.error()); + return GetFigureClusterOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetDRMLicenseOutcome(GetDRMLicenseResult(outcome.result())); + return GetFigureClusterOutcome(GetFigureClusterResult(outcome.result())); else - return GetDRMLicenseOutcome(outcome.error()); + return GetFigureClusterOutcome(outcome.error()); } -void ImmClient::getDRMLicenseAsync(const GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getFigureClusterAsync(const GetFigureClusterRequest& request, const GetFigureClusterAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getDRMLicense(request), context); + handler(this, request, getFigureCluster(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetDRMLicenseOutcomeCallable ImmClient::getDRMLicenseCallable(const GetDRMLicenseRequest &request) const +ImmClient::GetFigureClusterOutcomeCallable ImmClient::getFigureClusterCallable(const GetFigureClusterRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getDRMLicense(request); + return this->getFigureCluster(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::GetImageOutcome ImmClient::getImage(const GetImageRequest &request) const +ImmClient::GetFileMetaOutcome ImmClient::getFileMeta(const GetFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetImageOutcome(endpointOutcome.error()); + return GetFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetImageOutcome(GetImageResult(outcome.result())); + return GetFileMetaOutcome(GetFileMetaResult(outcome.result())); else - return GetImageOutcome(outcome.error()); + return GetFileMetaOutcome(outcome.error()); } -void ImmClient::getImageAsync(const GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getFileMetaAsync(const GetFileMetaRequest& request, const GetFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getImage(request), context); + handler(this, request, getFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetImageOutcomeCallable ImmClient::getImageCallable(const GetImageRequest &request) const +ImmClient::GetFileMetaOutcomeCallable ImmClient::getFileMetaCallable(const GetFileMetaRequest &request) const { - auto task = std::make_shared>( + 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); + return this->getFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1347,108 +1419,36 @@ ImmClient::GetMediaMetaOutcomeCallable ImmClient::getMediaMetaCallable(const Get return task->get_future(); } -ImmClient::GetOfficeConversionTaskOutcome ImmClient::getOfficeConversionTask(const GetOfficeConversionTaskRequest &request) const +ImmClient::GetOSSBucketAttachmentOutcome ImmClient::getOSSBucketAttachment(const GetOSSBucketAttachmentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetOfficeConversionTaskOutcome(endpointOutcome.error()); + return GetOSSBucketAttachmentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetOfficeConversionTaskOutcome(GetOfficeConversionTaskResult(outcome.result())); + return GetOSSBucketAttachmentOutcome(GetOSSBucketAttachmentResult(outcome.result())); else - return GetOfficeConversionTaskOutcome(outcome.error()); + return GetOSSBucketAttachmentOutcome(outcome.error()); } -void ImmClient::getOfficeConversionTaskAsync(const GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getOSSBucketAttachmentAsync(const GetOSSBucketAttachmentRequest& request, const GetOSSBucketAttachmentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getOfficeConversionTask(request), context); + handler(this, request, getOSSBucketAttachment(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversionTaskCallable(const GetOfficeConversionTaskRequest &request) const +ImmClient::GetOSSBucketAttachmentOutcomeCallable ImmClient::getOSSBucketAttachmentCallable(const GetOSSBucketAttachmentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getOfficeConversionTask(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -ImmClient::GetOfficeEditURLOutcome ImmClient::getOfficeEditURL(const GetOfficeEditURLRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetOfficeEditURLOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetOfficeEditURLOutcome(GetOfficeEditURLResult(outcome.result())); - else - return GetOfficeEditURLOutcome(outcome.error()); -} - -void ImmClient::getOfficeEditURLAsync(const GetOfficeEditURLRequest& request, const GetOfficeEditURLAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getOfficeEditURL(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetOfficeEditURLOutcomeCallable ImmClient::getOfficeEditURLCallable(const GetOfficeEditURLRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getOfficeEditURL(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); + return this->getOSSBucketAttachment(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1491,108 +1491,72 @@ ImmClient::GetProjectOutcomeCallable ImmClient::getProjectCallable(const GetProj return task->get_future(); } -ImmClient::GetSetOutcome ImmClient::getSet(const GetSetRequest &request) const +ImmClient::GetStoryOutcome ImmClient::getStory(const GetStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetSetOutcome(endpointOutcome.error()); + return GetStoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetSetOutcome(GetSetResult(outcome.result())); + return GetStoryOutcome(GetStoryResult(outcome.result())); else - return GetSetOutcome(outcome.error()); + return GetStoryOutcome(outcome.error()); } -void ImmClient::getSetAsync(const GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getStoryAsync(const GetStoryRequest& request, const GetStoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getSet(request), context); + handler(this, request, getStory(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetSetOutcomeCallable ImmClient::getSetCallable(const GetSetRequest &request) const +ImmClient::GetStoryOutcomeCallable ImmClient::getStoryCallable(const GetStoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getSet(request); + return this->getStory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::GetVideoOutcome ImmClient::getVideo(const GetVideoRequest &request) const +ImmClient::GetTaskOutcome ImmClient::getTask(const GetTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetVideoOutcome(endpointOutcome.error()); + return GetTaskOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetVideoOutcome(GetVideoResult(outcome.result())); + return GetTaskOutcome(GetTaskResult(outcome.result())); else - return GetVideoOutcome(outcome.error()); + return GetTaskOutcome(outcome.error()); } -void ImmClient::getVideoAsync(const GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::getTaskAsync(const GetTaskRequest& request, const GetTaskAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getVideo(request), context); + handler(this, request, getTask(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::GetVideoOutcomeCallable ImmClient::getVideoCallable(const GetVideoRequest &request) const +ImmClient::GetTaskOutcomeCallable ImmClient::getTaskCallable(const GetTaskRequest &request) const { - auto task = std::make_shared>( + 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); + return this->getTask(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1635,216 +1599,108 @@ ImmClient::GetWebofficeURLOutcomeCallable ImmClient::getWebofficeURLCallable(con return task->get_future(); } -ImmClient::IndexImageOutcome ImmClient::indexImage(const IndexImageRequest &request) const +ImmClient::IndexFileMetaOutcome ImmClient::indexFileMeta(const IndexFileMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return IndexImageOutcome(endpointOutcome.error()); + return IndexFileMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return IndexImageOutcome(IndexImageResult(outcome.result())); + return IndexFileMetaOutcome(IndexFileMetaResult(outcome.result())); else - return IndexImageOutcome(outcome.error()); + return IndexFileMetaOutcome(outcome.error()); } -void ImmClient::indexImageAsync(const IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::indexFileMetaAsync(const IndexFileMetaRequest& request, const IndexFileMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, indexImage(request), context); + handler(this, request, indexFileMeta(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::IndexImageOutcomeCallable ImmClient::indexImageCallable(const IndexImageRequest &request) const +ImmClient::IndexFileMetaOutcomeCallable ImmClient::indexFileMetaCallable(const IndexFileMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->indexImage(request); + return this->indexFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::IndexVideoOutcome ImmClient::indexVideo(const IndexVideoRequest &request) const +ImmClient::ListBindingsOutcome ImmClient::listBindings(const ListBindingsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return IndexVideoOutcome(endpointOutcome.error()); + return ListBindingsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return IndexVideoOutcome(IndexVideoResult(outcome.result())); + return ListBindingsOutcome(ListBindingsResult(outcome.result())); else - return IndexVideoOutcome(outcome.error()); + return ListBindingsOutcome(outcome.error()); } -void ImmClient::indexVideoAsync(const IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::listBindingsAsync(const ListBindingsRequest& request, const ListBindingsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, indexVideo(request), context); + handler(this, request, listBindings(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::IndexVideoOutcomeCallable ImmClient::indexVideoCallable(const IndexVideoRequest &request) const +ImmClient::ListBindingsOutcomeCallable ImmClient::listBindingsCallable(const ListBindingsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->indexVideo(request); + return this->listBindings(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ListFaceGroupsOutcome ImmClient::listFaceGroups(const ListFaceGroupsRequest &request) const +ImmClient::ListDatasetsOutcome ImmClient::listDatasets(const ListDatasetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListFaceGroupsOutcome(endpointOutcome.error()); + return ListDatasetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListFaceGroupsOutcome(ListFaceGroupsResult(outcome.result())); + return ListDatasetsOutcome(ListDatasetsResult(outcome.result())); else - return ListFaceGroupsOutcome(outcome.error()); + return ListDatasetsOutcome(outcome.error()); } -void ImmClient::listFaceGroupsAsync(const ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::listDatasetsAsync(const ListDatasetsRequest& request, const ListDatasetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listFaceGroups(request), context); + handler(this, request, listDatasets(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListFaceGroupsOutcomeCallable ImmClient::listFaceGroupsCallable(const ListFaceGroupsRequest &request) const +ImmClient::ListDatasetsOutcomeCallable ImmClient::listDatasetsCallable(const ListDatasetsRequest &request) const { - auto task = std::make_shared>( + 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::ListProjectAPIsOutcome ImmClient::listProjectAPIs(const ListProjectAPIsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListProjectAPIsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListProjectAPIsOutcome(ListProjectAPIsResult(outcome.result())); - else - return ListProjectAPIsOutcome(outcome.error()); -} - -void ImmClient::listProjectAPIsAsync(const ListProjectAPIsRequest& request, const ListProjectAPIsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listProjectAPIs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ListProjectAPIsOutcomeCallable ImmClient::listProjectAPIsCallable(const ListProjectAPIsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listProjectAPIs(request); + return this->listDatasets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1887,360 +1743,180 @@ ImmClient::ListProjectsOutcomeCallable ImmClient::listProjectsCallable(const Lis return task->get_future(); } -ImmClient::ListSetTagsOutcome ImmClient::listSetTags(const ListSetTagsRequest &request) const +ImmClient::ListRegionsOutcome ImmClient::listRegions(const ListRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSetTagsOutcome(endpointOutcome.error()); + return ListRegionsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSetTagsOutcome(ListSetTagsResult(outcome.result())); + return ListRegionsOutcome(ListRegionsResult(outcome.result())); else - return ListSetTagsOutcome(outcome.error()); + return ListRegionsOutcome(outcome.error()); } -void ImmClient::listSetTagsAsync(const ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::listRegionsAsync(const ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSetTags(request), context); + handler(this, request, listRegions(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListSetTagsOutcomeCallable ImmClient::listSetTagsCallable(const ListSetTagsRequest &request) const +ImmClient::ListRegionsOutcomeCallable ImmClient::listRegionsCallable(const ListRegionsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSetTags(request); + return this->listRegions(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const +ImmClient::ListTasksOutcome ImmClient::listTasks(const ListTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSetsOutcome(endpointOutcome.error()); + return ListTasksOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSetsOutcome(ListSetsResult(outcome.result())); + return ListTasksOutcome(ListTasksResult(outcome.result())); else - return ListSetsOutcome(outcome.error()); + return ListTasksOutcome(outcome.error()); } -void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::listTasksAsync(const ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSets(request), context); + handler(this, request, listTasks(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const +ImmClient::ListTasksOutcomeCallable ImmClient::listTasksCallable(const ListTasksRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSets(request); + return this->listTasks(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ListVideoAudiosOutcome ImmClient::listVideoAudios(const ListVideoAudiosRequest &request) const +ImmClient::MergeFigureClustersOutcome ImmClient::mergeFigureClusters(const MergeFigureClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListVideoAudiosOutcome(endpointOutcome.error()); + return MergeFigureClustersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListVideoAudiosOutcome(ListVideoAudiosResult(outcome.result())); + return MergeFigureClustersOutcome(MergeFigureClustersResult(outcome.result())); else - return ListVideoAudiosOutcome(outcome.error()); + return MergeFigureClustersOutcome(outcome.error()); } -void ImmClient::listVideoAudiosAsync(const ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::mergeFigureClustersAsync(const MergeFigureClustersRequest& request, const MergeFigureClustersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listVideoAudios(request), context); + handler(this, request, mergeFigureClusters(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListVideoAudiosOutcomeCallable ImmClient::listVideoAudiosCallable(const ListVideoAudiosRequest &request) const +ImmClient::MergeFigureClustersOutcomeCallable ImmClient::mergeFigureClustersCallable(const MergeFigureClustersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listVideoAudios(request); + return this->mergeFigureClusters(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ListVideoFramesOutcome ImmClient::listVideoFrames(const ListVideoFramesRequest &request) const +ImmClient::QueryFigureClustersOutcome ImmClient::queryFigureClusters(const QueryFigureClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListVideoFramesOutcome(endpointOutcome.error()); + return QueryFigureClustersOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListVideoFramesOutcome(ListVideoFramesResult(outcome.result())); + return QueryFigureClustersOutcome(QueryFigureClustersResult(outcome.result())); else - return ListVideoFramesOutcome(outcome.error()); + return QueryFigureClustersOutcome(outcome.error()); } -void ImmClient::listVideoFramesAsync(const ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::queryFigureClustersAsync(const QueryFigureClustersRequest& request, const QueryFigureClustersAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listVideoFrames(request), context); + handler(this, request, queryFigureClusters(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListVideoFramesOutcomeCallable ImmClient::listVideoFramesCallable(const ListVideoFramesRequest &request) const +ImmClient::QueryFigureClustersOutcomeCallable ImmClient::queryFigureClustersCallable(const QueryFigureClustersRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listVideoFrames(request); + return this->queryFigureClusters(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::ListVideoTasksOutcome ImmClient::listVideoTasks(const ListVideoTasksRequest &request) const +ImmClient::QueryStoriesOutcome ImmClient::queryStories(const QueryStoriesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListVideoTasksOutcome(endpointOutcome.error()); + return QueryStoriesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListVideoTasksOutcome(ListVideoTasksResult(outcome.result())); + return QueryStoriesOutcome(QueryStoriesResult(outcome.result())); else - return ListVideoTasksOutcome(outcome.error()); + return QueryStoriesOutcome(outcome.error()); } -void ImmClient::listVideoTasksAsync(const ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::queryStoriesAsync(const QueryStoriesRequest& request, const QueryStoriesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listVideoTasks(request), context); + handler(this, request, queryStories(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::ListVideoTasksOutcomeCallable ImmClient::listVideoTasksCallable(const ListVideoTasksRequest &request) const +ImmClient::QueryStoriesOutcomeCallable ImmClient::queryStoriesCallable(const QueryStoriesRequest &request) const { - auto task = std::make_shared>( + 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::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::RefreshOfficeEditTokenOutcome ImmClient::refreshOfficeEditToken(const RefreshOfficeEditTokenRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RefreshOfficeEditTokenOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RefreshOfficeEditTokenOutcome(RefreshOfficeEditTokenResult(outcome.result())); - else - return RefreshOfficeEditTokenOutcome(outcome.error()); -} - -void ImmClient::refreshOfficeEditTokenAsync(const RefreshOfficeEditTokenRequest& request, const RefreshOfficeEditTokenAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, refreshOfficeEditToken(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::RefreshOfficeEditTokenOutcomeCallable ImmClient::refreshOfficeEditTokenCallable(const RefreshOfficeEditTokenRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->refreshOfficeEditToken(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - 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); + return this->queryStories(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2283,72 +1959,288 @@ ImmClient::RefreshWebofficeTokenOutcomeCallable ImmClient::refreshWebofficeToken return task->get_future(); } -ImmClient::UpdateFaceGroupOutcome ImmClient::updateFaceGroup(const UpdateFaceGroupRequest &request) const +ImmClient::RemoveStoryFilesOutcome ImmClient::removeStoryFiles(const RemoveStoryFilesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateFaceGroupOutcome(endpointOutcome.error()); + return RemoveStoryFilesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateFaceGroupOutcome(UpdateFaceGroupResult(outcome.result())); + return RemoveStoryFilesOutcome(RemoveStoryFilesResult(outcome.result())); else - return UpdateFaceGroupOutcome(outcome.error()); + return RemoveStoryFilesOutcome(outcome.error()); } -void ImmClient::updateFaceGroupAsync(const UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::removeStoryFilesAsync(const RemoveStoryFilesRequest& request, const RemoveStoryFilesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateFaceGroup(request), context); + handler(this, request, removeStoryFiles(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::UpdateFaceGroupOutcomeCallable ImmClient::updateFaceGroupCallable(const UpdateFaceGroupRequest &request) const +ImmClient::RemoveStoryFilesOutcomeCallable ImmClient::removeStoryFilesCallable(const RemoveStoryFilesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateFaceGroup(request); + return this->removeStoryFiles(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -ImmClient::UpdateImageOutcome ImmClient::updateImage(const UpdateImageRequest &request) const +ImmClient::ResumeBindingOutcome ImmClient::resumeBinding(const ResumeBindingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateImageOutcome(endpointOutcome.error()); + return ResumeBindingOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateImageOutcome(UpdateImageResult(outcome.result())); + return ResumeBindingOutcome(ResumeBindingResult(outcome.result())); else - return UpdateImageOutcome(outcome.error()); + return ResumeBindingOutcome(outcome.error()); } -void ImmClient::updateImageAsync(const UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::resumeBindingAsync(const ResumeBindingRequest& request, const ResumeBindingAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateImage(request), context); + handler(this, request, resumeBinding(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::UpdateImageOutcomeCallable ImmClient::updateImageCallable(const UpdateImageRequest &request) const +ImmClient::ResumeBindingOutcomeCallable ImmClient::resumeBindingCallable(const ResumeBindingRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateImage(request); + return this->resumeBinding(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SemanticQueryOutcome ImmClient::semanticQuery(const SemanticQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SemanticQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SemanticQueryOutcome(SemanticQueryResult(outcome.result())); + else + return SemanticQueryOutcome(outcome.error()); +} + +void ImmClient::semanticQueryAsync(const SemanticQueryRequest& request, const SemanticQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, semanticQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SemanticQueryOutcomeCallable ImmClient::semanticQueryCallable(const SemanticQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->semanticQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SimpleQueryOutcome ImmClient::simpleQuery(const SimpleQueryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SimpleQueryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SimpleQueryOutcome(SimpleQueryResult(outcome.result())); + else + return SimpleQueryOutcome(outcome.error()); +} + +void ImmClient::simpleQueryAsync(const SimpleQueryRequest& request, const SimpleQueryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, simpleQuery(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SimpleQueryOutcomeCallable ImmClient::simpleQueryCallable(const SimpleQueryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->simpleQuery(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::StopBindingOutcome ImmClient::stopBinding(const StopBindingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopBindingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopBindingOutcome(StopBindingResult(outcome.result())); + else + return StopBindingOutcome(outcome.error()); +} + +void ImmClient::stopBindingAsync(const StopBindingRequest& request, const StopBindingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopBinding(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::StopBindingOutcomeCallable ImmClient::stopBindingCallable(const StopBindingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopBinding(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateDatasetOutcome ImmClient::updateDataset(const UpdateDatasetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDatasetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDatasetOutcome(UpdateDatasetResult(outcome.result())); + else + return UpdateDatasetOutcome(outcome.error()); +} + +void ImmClient::updateDatasetAsync(const UpdateDatasetRequest& request, const UpdateDatasetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDataset(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateDatasetOutcomeCallable ImmClient::updateDatasetCallable(const UpdateDatasetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDataset(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateFigureClusterOutcome ImmClient::updateFigureCluster(const UpdateFigureClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFigureClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFigureClusterOutcome(UpdateFigureClusterResult(outcome.result())); + else + return UpdateFigureClusterOutcome(outcome.error()); +} + +void ImmClient::updateFigureClusterAsync(const UpdateFigureClusterRequest& request, const UpdateFigureClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFigureCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateFigureClusterOutcomeCallable ImmClient::updateFigureClusterCallable(const UpdateFigureClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFigureCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateFileMetaOutcome ImmClient::updateFileMeta(const UpdateFileMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateFileMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateFileMetaOutcome(UpdateFileMetaResult(outcome.result())); + else + return UpdateFileMetaOutcome(outcome.error()); +} + +void ImmClient::updateFileMetaAsync(const UpdateFileMetaRequest& request, const UpdateFileMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateFileMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateFileMetaOutcomeCallable ImmClient::updateFileMetaCallable(const UpdateFileMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateFileMeta(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2391,36 +2283,36 @@ ImmClient::UpdateProjectOutcomeCallable ImmClient::updateProjectCallable(const U return task->get_future(); } -ImmClient::UpdateSetOutcome ImmClient::updateSet(const UpdateSetRequest &request) const +ImmClient::UpdateStoryOutcome ImmClient::updateStory(const UpdateStoryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateSetOutcome(endpointOutcome.error()); + return UpdateStoryOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateSetOutcome(UpdateSetResult(outcome.result())); + return UpdateStoryOutcome(UpdateStoryResult(outcome.result())); else - return UpdateSetOutcome(outcome.error()); + return UpdateStoryOutcome(outcome.error()); } -void ImmClient::updateSetAsync(const UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context) const +void ImmClient::updateStoryAsync(const UpdateStoryRequest& request, const UpdateStoryAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateSet(request), context); + handler(this, request, updateStory(request), context); }; asyncExecute(new Runnable(fn)); } -ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSetRequest &request) const +ImmClient::UpdateStoryOutcomeCallable ImmClient::updateStoryCallable(const UpdateStoryRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateSet(request); + return this->updateStory(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/imm/src/model/AddStoryFilesRequest.cc b/imm/src/model/AddStoryFilesRequest.cc new file mode 100644 index 000000000..00b5d6e4e --- /dev/null +++ b/imm/src/model/AddStoryFilesRequest.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 + +using AlibabaCloud::Imm::Model::AddStoryFilesRequest; + +AddStoryFilesRequest::AddStoryFilesRequest() + : RpcServiceRequest("imm", "2020-09-30", "AddStoryFiles") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void AddStoryFilesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setBodyParameter(std::string("ProjectName"), projectName); +} + +std::vector AddStoryFilesRequest::getFiles() const { + return files_; +} + +void AddStoryFilesRequest::setFiles(const std::vector &files) { + files_ = files; + for(int dep1 = 0; dep1 != files.size(); dep1++) { + setBodyParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".URI", files[dep1].uRI); + } +} + +std::string AddStoryFilesRequest::getObjectId() const { + return objectId_; +} + +void AddStoryFilesRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setBodyParameter(std::string("ObjectId"), objectId); +} + diff --git a/imm/src/model/GetContentKeyResult.cc b/imm/src/model/AddStoryFilesResult.cc similarity index 51% rename from imm/src/model/GetContentKeyResult.cc rename to imm/src/model/AddStoryFilesResult.cc index 22556c293..9da5ec908 100644 --- a/imm/src/model/GetContentKeyResult.cc +++ b/imm/src/model/AddStoryFilesResult.cc @@ -14,45 +14,48 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -GetContentKeyResult::GetContentKeyResult() : +AddStoryFilesResult::AddStoryFilesResult() : ServiceResult() {} -GetContentKeyResult::GetContentKeyResult(const std::string &payload) : +AddStoryFilesResult::AddStoryFilesResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetContentKeyResult::~GetContentKeyResult() +AddStoryFilesResult::~AddStoryFilesResult() {} -void GetContentKeyResult::parse(const std::string &payload) +void AddStoryFilesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["VersionId"].isNull()) - versionId_ = value["VersionId"].asString(); - if(!value["KeyInfos"].isNull()) - keyInfos_ = value["KeyInfos"].asString(); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["ErrorCode"].isNull()) + filesObject.errorCode = valueFilesFilesItem["ErrorCode"].asString(); + if(!valueFilesFilesItem["ErrorMessage"].isNull()) + filesObject.errorMessage = valueFilesFilesItem["ErrorMessage"].asString(); + files_.push_back(filesObject); + } } -std::string GetContentKeyResult::getVersionId()const +std::vector AddStoryFilesResult::getFiles()const { - return versionId_; -} - -std::string GetContentKeyResult::getKeyInfos()const -{ - return keyInfos_; + return files_; } diff --git a/imm/src/model/AttachOSSBucketRequest.cc b/imm/src/model/AttachOSSBucketRequest.cc new file mode 100644 index 000000000..ca9488cb0 --- /dev/null +++ b/imm/src/model/AttachOSSBucketRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::AttachOSSBucketRequest; + +AttachOSSBucketRequest::AttachOSSBucketRequest() + : RpcServiceRequest("imm", "2020-09-30", "AttachOSSBucket") { + setMethod(HttpRequest::Method::Post); +} + +AttachOSSBucketRequest::~AttachOSSBucketRequest() {} + +std::string AttachOSSBucketRequest::getProjectName() const { + return projectName_; +} + +void AttachOSSBucketRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string AttachOSSBucketRequest::getOSSBucket() const { + return oSSBucket_; +} + +void AttachOSSBucketRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); +} + diff --git a/imm/src/model/DeleteVideoTaskResult.cc b/imm/src/model/AttachOSSBucketResult.cc similarity index 76% rename from imm/src/model/DeleteVideoTaskResult.cc rename to imm/src/model/AttachOSSBucketResult.cc index ba2622e4c..a8964f965 100644 --- a/imm/src/model/DeleteVideoTaskResult.cc +++ b/imm/src/model/AttachOSSBucketResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteVideoTaskResult::DeleteVideoTaskResult() : +AttachOSSBucketResult::AttachOSSBucketResult() : ServiceResult() {} -DeleteVideoTaskResult::DeleteVideoTaskResult(const std::string &payload) : +AttachOSSBucketResult::AttachOSSBucketResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteVideoTaskResult::~DeleteVideoTaskResult() +AttachOSSBucketResult::~AttachOSSBucketResult() {} -void DeleteVideoTaskResult::parse(const std::string &payload) +void AttachOSSBucketResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/imm/src/model/BatchDeleteFileMetaRequest.cc b/imm/src/model/BatchDeleteFileMetaRequest.cc new file mode 100644 index 000000000..d237a1a71 --- /dev/null +++ b/imm/src/model/BatchDeleteFileMetaRequest.cc @@ -0,0 +1,56 @@ +/* + * 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::BatchDeleteFileMetaRequest; + +BatchDeleteFileMetaRequest::BatchDeleteFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "BatchDeleteFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void BatchDeleteFileMetaRequest::setURIs(const std::vector &uRIs) { + uRIs_ = uRIs; + for(int dep1 = 0; dep1 != uRIs.size(); dep1++) { + setParameter(std::string("URIs") + "." + std::to_string(dep1 + 1), uRIs[dep1]); + } +} + diff --git a/imm/src/model/DeleteSetResult.cc b/imm/src/model/BatchDeleteFileMetaResult.cc similarity index 70% rename from imm/src/model/DeleteSetResult.cc rename to imm/src/model/BatchDeleteFileMetaResult.cc index 70683228a..4c8bbdef7 100644 --- a/imm/src/model/DeleteSetResult.cc +++ b/imm/src/model/BatchDeleteFileMetaResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteSetResult::DeleteSetResult() : +BatchDeleteFileMetaResult::BatchDeleteFileMetaResult() : ServiceResult() {} -DeleteSetResult::DeleteSetResult(const std::string &payload) : +BatchDeleteFileMetaResult::BatchDeleteFileMetaResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteSetResult::~DeleteSetResult() +BatchDeleteFileMetaResult::~BatchDeleteFileMetaResult() {} -void DeleteSetResult::parse(const std::string &payload) +void BatchDeleteFileMetaResult::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/BatchGetFileMetaRequest.cc b/imm/src/model/BatchGetFileMetaRequest.cc new file mode 100644 index 000000000..26f8f62d1 --- /dev/null +++ b/imm/src/model/BatchGetFileMetaRequest.cc @@ -0,0 +1,56 @@ +/* + * 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::BatchGetFileMetaRequest; + +BatchGetFileMetaRequest::BatchGetFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "BatchGetFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +BatchGetFileMetaRequest::~BatchGetFileMetaRequest() {} + +std::string BatchGetFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void BatchGetFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string BatchGetFileMetaRequest::getProjectName() const { + return projectName_; +} + +void BatchGetFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::vector BatchGetFileMetaRequest::getURIs() const { + return uRIs_; +} + +void BatchGetFileMetaRequest::setURIs(const std::vector &uRIs) { + uRIs_ = uRIs; + for(int dep1 = 0; dep1 != uRIs.size(); dep1++) { + setParameter(std::string("URIs") + "." + std::to_string(dep1 + 1), uRIs[dep1]); + } +} + diff --git a/imm/src/model/BatchGetFileMetaResult.cc b/imm/src/model/BatchGetFileMetaResult.cc new file mode 100644 index 000000000..972e484af --- /dev/null +++ b/imm/src/model/BatchGetFileMetaResult.cc @@ -0,0 +1,531 @@ +/* + * 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; + +BatchGetFileMetaResult::BatchGetFileMetaResult() : + ServiceResult() +{} + +BatchGetFileMetaResult::BatchGetFileMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchGetFileMetaResult::~BatchGetFileMetaResult() +{} + +void BatchGetFileMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueFilesFilesItem["OwnerId"].asString(); + if(!valueFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueFilesFilesItem["ProjectName"].asString(); + if(!valueFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueFilesFilesItem["DatasetName"].asString(); + if(!valueFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueFilesFilesItem["ObjectType"].asString(); + if(!valueFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueFilesFilesItem["ObjectId"].asString(); + if(!valueFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueFilesFilesItem["UpdateTime"].asString(); + if(!valueFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueFilesFilesItem["CreateTime"].asString(); + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueFilesFilesItem["OSSURI"].asString(); + if(!valueFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueFilesFilesItem["Filename"].asString(); + if(!valueFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueFilesFilesItem["MediaType"].asString(); + if(!valueFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueFilesFilesItem["ContentType"].asString(); + if(!valueFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueFilesFilesItem["Size"].asString()); + if(!valueFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueFilesFilesItem["FileHash"].asString(); + if(!valueFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueFilesFilesItem["FileModifiedTime"].asString(); + if(!valueFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueFilesFilesItem["FileCreateTime"].asString(); + if(!valueFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueFilesFilesItem["FileAccessTime"].asString(); + if(!valueFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueFilesFilesItem["ProduceTime"].asString(); + if(!valueFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueFilesFilesItem["LatLong"].asString(); + if(!valueFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueFilesFilesItem["Timezone"].asString(); + if(!valueFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueFilesFilesItem["TravelClusterId"].asString(); + if(!valueFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueFilesFilesItem["Orientation"].asString()); + if(!valueFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueFilesFilesItem["FigureCount"].asString()); + if(!valueFilesFilesItem["Title"].isNull()) + filesObject.title = valueFilesFilesItem["Title"].asString(); + if(!valueFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueFilesFilesItem["ImageWidth"].asString()); + if(!valueFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueFilesFilesItem["ImageHeight"].asString()); + if(!valueFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueFilesFilesItem["EXIF"].asString(); + if(!valueFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueFilesFilesItem["VideoWidth"].asString()); + if(!valueFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueFilesFilesItem["VideoHeight"].asString()); + if(!valueFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueFilesFilesItem["Artist"].asString(); + if(!valueFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueFilesFilesItem["AlbumArtist"].asString(); + if(!valueFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueFilesFilesItem["Composer"].asString(); + if(!valueFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueFilesFilesItem["Performer"].asString(); + if(!valueFilesFilesItem["Language"].isNull()) + filesObject.language = valueFilesFilesItem["Language"].asString(); + if(!valueFilesFilesItem["Album"].isNull()) + filesObject.album = valueFilesFilesItem["Album"].asString(); + if(!valueFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); + if(!valueFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); + if(!valueFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueFilesFilesItem["ETag"].asString(); + if(!valueFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueFilesFilesItem["CacheControl"].asString(); + if(!valueFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueFilesFilesItem["ContentDisposition"].asString(); + if(!valueFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueFilesFilesItem["ContentEncoding"].asString(); + if(!valueFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueFilesFilesItem["ContentLanguage"].asString(); + if(!valueFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueFilesFilesItem["OSSStorageClass"].asString(); + if(!valueFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueFilesFilesItem["OSSCRC64"].asString(); + if(!valueFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueFilesFilesItem["ObjectACL"].asString(); + if(!valueFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueFilesFilesItem["ContentMd5"].asString(); + if(!valueFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueFilesFilesItem["OSSUserMeta"].asString(); + if(!valueFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueFilesFilesItem["OSSTagging"].asString(); + if(!valueFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueFilesFilesItem["OSSExpiration"].asString(); + if(!valueFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueFilesFilesItem["OSSVersionId"].asString(); + if(!valueFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueFilesFilesItem["OSSObjectType"].asString(); + if(!valueFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueFilesFilesItem["CustomId"].asString(); + if(!valueFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueFilesFilesItem["CustomLabels"].asString(); + if(!valueFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueFilesFilesItem["StreamCount"].asString()); + if(!valueFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueFilesFilesItem["ProgramCount"].asString()); + if(!valueFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueFilesFilesItem["FormatName"].asString(); + if(!valueFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueFilesFilesItem["FormatLongName"].asString(); + if(!valueFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueFilesFilesItem["StartTime"].asString(); + if(!valueFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueFilesFilesItem["Bitrate"].asString()); + if(!valueFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + FilesItem::AddressesItem addressesObject; + if(!valueFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + FilesItem::FiguresItem figuresObject; + if(!valueFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + FilesItem::LabelsItem labelsObject; + if(!valueFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + FilesItem::OCRContentsItem oCRContentsObject; + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + FilesItem::SubtitlesItem subtitlesObject; + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + FilesItem::AudioCoversItem audioCoversObject; + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + files_.push_back(filesObject); + } + +} + +std::vector BatchGetFileMetaResult::getFiles()const +{ + return files_; +} + diff --git a/imm/src/model/BatchIndexFileMetaRequest.cc b/imm/src/model/BatchIndexFileMetaRequest.cc new file mode 100644 index 000000000..f82fef709 --- /dev/null +++ b/imm/src/model/BatchIndexFileMetaRequest.cc @@ -0,0 +1,87 @@ +/* + * 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::BatchIndexFileMetaRequest; + +BatchIndexFileMetaRequest::BatchIndexFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "BatchIndexFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +BatchIndexFileMetaRequest::~BatchIndexFileMetaRequest() {} + +std::string BatchIndexFileMetaRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void BatchIndexFileMetaRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string BatchIndexFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void BatchIndexFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string BatchIndexFileMetaRequest::getProjectName() const { + return projectName_; +} + +void BatchIndexFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string BatchIndexFileMetaRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void BatchIndexFileMetaRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::vector BatchIndexFileMetaRequest::getFiles() const { + return files_; +} + +void BatchIndexFileMetaRequest::setFiles(const std::vector &files) { + files_ = files; + for(int dep1 = 0; dep1 != files.size(); dep1++) { + for(auto const &iter2 : files[dep1].customLabels) { + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".CustomLabels." + iter2.first, iter2.second); + } + for(int dep2 = 0; dep2 != files[dep1].figures.size(); dep2++) { + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureId", files[dep1].figures[dep2].figureId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureClusterId", files[dep1].figures[dep2].figureClusterId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureType", files[dep1].figures[dep2].figureType); + } + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".OSSURI", files[dep1].oSSURI); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".FileHash", files[dep1].fileHash); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".URI", files[dep1].uRI); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".CustomId", files[dep1].customId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".MediaType", files[dep1].mediaType); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".ContentType", files[dep1].contentType); + } +} + diff --git a/imm/src/model/OpenImmServiceResult.cc b/imm/src/model/BatchIndexFileMetaResult.cc similarity index 66% rename from imm/src/model/OpenImmServiceResult.cc rename to imm/src/model/BatchIndexFileMetaResult.cc index 6610042b2..af2a690ec 100644 --- a/imm/src/model/OpenImmServiceResult.cc +++ b/imm/src/model/BatchIndexFileMetaResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -OpenImmServiceResult::OpenImmServiceResult() : +BatchIndexFileMetaResult::BatchIndexFileMetaResult() : ServiceResult() {} -OpenImmServiceResult::OpenImmServiceResult(const std::string &payload) : +BatchIndexFileMetaResult::BatchIndexFileMetaResult(const std::string &payload) : ServiceResult() { parse(payload); } -OpenImmServiceResult::~OpenImmServiceResult() +BatchIndexFileMetaResult::~BatchIndexFileMetaResult() {} -void OpenImmServiceResult::parse(const std::string &payload) +void BatchIndexFileMetaResult::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(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } -std::string OpenImmServiceResult::getOrderId()const +std::string BatchIndexFileMetaResult::getEventId()const { - return orderId_; + return eventId_; } diff --git a/imm/src/model/BatchUpdateFileMetaRequest.cc b/imm/src/model/BatchUpdateFileMetaRequest.cc new file mode 100644 index 000000000..5a1299745 --- /dev/null +++ b/imm/src/model/BatchUpdateFileMetaRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::BatchUpdateFileMetaRequest; + +BatchUpdateFileMetaRequest::BatchUpdateFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "BatchUpdateFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void BatchUpdateFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::vector BatchUpdateFileMetaRequest::getFiles() const { + return files_; +} + +void BatchUpdateFileMetaRequest::setFiles(const std::vector &files) { + files_ = files; + for(int dep1 = 0; dep1 != files.size(); dep1++) { + for(auto const &iter2 : files[dep1].customLabels) { + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".CustomLabels." + iter2.first, iter2.second); + } + for(int dep2 = 0; dep2 != files[dep1].figures.size(); dep2++) { + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureId", files[dep1].figures[dep2].figureId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureClusterId", files[dep1].figures[dep2].figureClusterId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".Figures." + std::to_string(dep2 + 1) + ".FigureType", files[dep1].figures[dep2].figureType); + } + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".OSSURI", files[dep1].oSSURI); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".FileHash", files[dep1].fileHash); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".URI", files[dep1].uRI); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".CustomId", files[dep1].customId); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".MediaType", files[dep1].mediaType); + setParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".ContentType", files[dep1].contentType); + } +} + diff --git a/imm/src/model/CreateGroupFacesJobResult.cc b/imm/src/model/BatchUpdateFileMetaResult.cc similarity index 50% rename from imm/src/model/CreateGroupFacesJobResult.cc rename to imm/src/model/BatchUpdateFileMetaResult.cc index 72579b7dd..74d8400b8 100644 --- a/imm/src/model/CreateGroupFacesJobResult.cc +++ b/imm/src/model/BatchUpdateFileMetaResult.cc @@ -14,52 +14,48 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateGroupFacesJobResult::CreateGroupFacesJobResult() : +BatchUpdateFileMetaResult::BatchUpdateFileMetaResult() : ServiceResult() {} -CreateGroupFacesJobResult::CreateGroupFacesJobResult(const std::string &payload) : +BatchUpdateFileMetaResult::BatchUpdateFileMetaResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateGroupFacesJobResult::~CreateGroupFacesJobResult() +BatchUpdateFileMetaResult::~BatchUpdateFileMetaResult() {} -void CreateGroupFacesJobResult::parse(const std::string &payload) +void BatchUpdateFileMetaResult::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(); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["Success"].isNull()) + filesObject.success = valueFilesFilesItem["Success"].asString() == "true"; + if(!valueFilesFilesItem["Message"].isNull()) + filesObject.message = valueFilesFilesItem["Message"].asString(); + files_.push_back(filesObject); + } } -std::string CreateGroupFacesJobResult::getJobType()const +std::vector BatchUpdateFileMetaResult::getFiles()const { - return jobType_; -} - -std::string CreateGroupFacesJobResult::getSetId()const -{ - return setId_; -} - -std::string CreateGroupFacesJobResult::getJobId()const -{ - return jobId_; + return files_; } diff --git a/imm/src/model/CompareImageFacesRequest.cc b/imm/src/model/CompareImageFacesRequest.cc deleted file mode 100644 index 7555b89e1..000000000 --- a/imm/src/model/CompareImageFacesRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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 deleted file mode 100644 index 405882d9c..000000000 --- a/imm/src/model/CompareImageFacesResult.cc +++ /dev/null @@ -1,94 +0,0 @@ -/* - * 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 deleted file mode 100644 index 25b4eefb7..000000000 --- a/imm/src/model/ConvertOfficeFormatRequest.cc +++ /dev/null @@ -1,216 +0,0 @@ -/* - * 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/CreateBindingRequest.cc b/imm/src/model/CreateBindingRequest.cc new file mode 100644 index 000000000..45584f392 --- /dev/null +++ b/imm/src/model/CreateBindingRequest.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::CreateBindingRequest; + +CreateBindingRequest::CreateBindingRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateBinding") { + setMethod(HttpRequest::Method::Post); +} + +CreateBindingRequest::~CreateBindingRequest() {} + +std::string CreateBindingRequest::getBucketOwnerId() const { + return bucketOwnerId_; +} + +void CreateBindingRequest::setBucketOwnerId(const std::string &bucketOwnerId) { + bucketOwnerId_ = bucketOwnerId; + setParameter(std::string("BucketOwnerId"), bucketOwnerId); +} + +std::string CreateBindingRequest::getDatasetName() const { + return datasetName_; +} + +void CreateBindingRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = 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_; +} + +void CreateBindingRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/CreateBindingResult.cc b/imm/src/model/CreateBindingResult.cc new file mode 100644 index 000000000..573d54f4b --- /dev/null +++ b/imm/src/model/CreateBindingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +CreateBindingResult::CreateBindingResult() : + ServiceResult() +{} + +CreateBindingResult::CreateBindingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBindingResult::~CreateBindingResult() +{} + +void CreateBindingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto bindingNode = value["Binding"]; + if(!bindingNode["ProjectName"].isNull()) + binding_.projectName = bindingNode["ProjectName"].asString(); + if(!bindingNode["DatasetName"].isNull()) + binding_.datasetName = bindingNode["DatasetName"].asString(); + if(!bindingNode["URI"].isNull()) + binding_.uRI = bindingNode["URI"].asString(); + if(!bindingNode["State"].isNull()) + binding_.state = bindingNode["State"].asString(); + if(!bindingNode["Phase"].isNull()) + binding_.phase = bindingNode["Phase"].asString(); + if(!bindingNode["Detail"].isNull()) + binding_.detail = bindingNode["Detail"].asString(); + if(!bindingNode["CreateTime"].isNull()) + binding_.createTime = bindingNode["CreateTime"].asString(); + if(!bindingNode["UpdateTime"].isNull()) + binding_.updateTime = bindingNode["UpdateTime"].asString(); + +} + +CreateBindingResult::Binding CreateBindingResult::getBinding()const +{ + return binding_; +} + diff --git a/imm/src/model/CreateDatasetRequest.cc b/imm/src/model/CreateDatasetRequest.cc new file mode 100644 index 000000000..38cdae1d9 --- /dev/null +++ b/imm/src/model/CreateDatasetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::CreateDatasetRequest; + +CreateDatasetRequest::CreateDatasetRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateDataset") { + setMethod(HttpRequest::Method::Post); +} + +CreateDatasetRequest::~CreateDatasetRequest() {} + +long CreateDatasetRequest::getDatasetMaxBindCount() const { + return datasetMaxBindCount_; +} + +void CreateDatasetRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { + datasetMaxBindCount_ = datasetMaxBindCount; + setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); +} + +std::string CreateDatasetRequest::getDescription() const { + return description_; +} + +void CreateDatasetRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +long CreateDatasetRequest::getDatasetMaxRelationCount() const { + return datasetMaxRelationCount_; +} + +void CreateDatasetRequest::setDatasetMaxRelationCount(long datasetMaxRelationCount) { + datasetMaxRelationCount_ = datasetMaxRelationCount; + setParameter(std::string("DatasetMaxRelationCount"), std::to_string(datasetMaxRelationCount)); +} + +std::string CreateDatasetRequest::getDatasetName() const { + return datasetName_; +} + +void CreateDatasetRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +long CreateDatasetRequest::getDatasetMaxFileCount() const { + return datasetMaxFileCount_; +} + +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); +} + +long CreateDatasetRequest::getDatasetMaxEntityCount() const { + return datasetMaxEntityCount_; +} + +void CreateDatasetRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) { + datasetMaxEntityCount_ = datasetMaxEntityCount; + setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); +} + +std::string CreateDatasetRequest::getTemplateId() const { + return templateId_; +} + +void CreateDatasetRequest::setTemplateId(const std::string &templateId) { + templateId_ = 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/CreateDatasetResult.cc b/imm/src/model/CreateDatasetResult.cc new file mode 100644 index 000000000..9ffaaa98b --- /dev/null +++ b/imm/src/model/CreateDatasetResult.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; + +CreateDatasetResult::CreateDatasetResult() : + ServiceResult() +{} + +CreateDatasetResult::CreateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatasetResult::~CreateDatasetResult() +{} + +void CreateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto datasetNode = value["Dataset"]; + if(!datasetNode["ProjectName"].isNull()) + dataset_.projectName = datasetNode["ProjectName"].asString(); + if(!datasetNode["DatasetName"].isNull()) + dataset_.datasetName = datasetNode["DatasetName"].asString(); + if(!datasetNode["TemplateId"].isNull()) + dataset_.templateId = datasetNode["TemplateId"].asString(); + if(!datasetNode["CreateTime"].isNull()) + dataset_.createTime = datasetNode["CreateTime"].asString(); + if(!datasetNode["UpdateTime"].isNull()) + dataset_.updateTime = datasetNode["UpdateTime"].asString(); + if(!datasetNode["Description"].isNull()) + dataset_.description = datasetNode["Description"].asString(); + if(!datasetNode["DatasetMaxBindCount"].isNull()) + dataset_.datasetMaxBindCount = std::stol(datasetNode["DatasetMaxBindCount"].asString()); + if(!datasetNode["DatasetMaxFileCount"].isNull()) + dataset_.datasetMaxFileCount = std::stol(datasetNode["DatasetMaxFileCount"].asString()); + if(!datasetNode["DatasetMaxEntityCount"].isNull()) + dataset_.datasetMaxEntityCount = std::stol(datasetNode["DatasetMaxEntityCount"].asString()); + if(!datasetNode["DatasetMaxRelationCount"].isNull()) + dataset_.datasetMaxRelationCount = std::stol(datasetNode["DatasetMaxRelationCount"].asString()); + if(!datasetNode["DatasetMaxTotalFileSize"].isNull()) + dataset_.datasetMaxTotalFileSize = std::stol(datasetNode["DatasetMaxTotalFileSize"].asString()); + if(!datasetNode["BindCount"].isNull()) + dataset_.bindCount = std::stol(datasetNode["BindCount"].asString()); + if(!datasetNode["FileCount"].isNull()) + dataset_.fileCount = std::stol(datasetNode["FileCount"].asString()); + if(!datasetNode["TotalFileSize"].isNull()) + dataset_.totalFileSize = std::stol(datasetNode["TotalFileSize"].asString()); + +} + +CreateDatasetResult::Dataset CreateDatasetResult::getDataset()const +{ + return dataset_; +} + diff --git a/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc b/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc new file mode 100644 index 000000000..b754e29de --- /dev/null +++ b/imm/src/model/CreateDetectVideoLabelsTaskRequest.cc @@ -0,0 +1,98 @@ +/* + * 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::CreateDetectVideoLabelsTaskRequest; + +CreateDetectVideoLabelsTaskRequest::CreateDetectVideoLabelsTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateDetectVideoLabelsTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateDetectVideoLabelsTaskRequest::~CreateDetectVideoLabelsTaskRequest() {} + +std::string CreateDetectVideoLabelsTaskRequest::getUserData() const { + return userData_; +} + +void CreateDetectVideoLabelsTaskRequest::setUserData(const std::string &userData) { + userData_ = 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_; +} + +void CreateDetectVideoLabelsTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateDetectVideoLabelsTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateDetectVideoLabelsTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +CreateDetectVideoLabelsTaskRequest::CredentialConfig CreateDetectVideoLabelsTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void CreateDetectVideoLabelsTaskRequest::setCredentialConfig(const CreateDetectVideoLabelsTaskRequest::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); +} + +std::map CreateDetectVideoLabelsTaskRequest::getTags() const { + return tags_; +} + +void CreateDetectVideoLabelsTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +std::string CreateDetectVideoLabelsTaskRequest::getSourceURI() const { + return sourceURI_; +} + +void CreateDetectVideoLabelsTaskRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); +} + diff --git a/imm/src/model/CreateDetectVideoLabelsTaskResult.cc b/imm/src/model/CreateDetectVideoLabelsTaskResult.cc new file mode 100644 index 000000000..1f2c63806 --- /dev/null +++ b/imm/src/model/CreateDetectVideoLabelsTaskResult.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; + +CreateDetectVideoLabelsTaskResult::CreateDetectVideoLabelsTaskResult() : + ServiceResult() +{} + +CreateDetectVideoLabelsTaskResult::CreateDetectVideoLabelsTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDetectVideoLabelsTaskResult::~CreateDetectVideoLabelsTaskResult() +{} + +void CreateDetectVideoLabelsTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateDetectVideoLabelsTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateDetectVideoLabelsTaskResult::getEventId()const +{ + return eventId_; +} + diff --git a/imm/src/model/CreateFigureClusteringTaskRequest.cc b/imm/src/model/CreateFigureClusteringTaskRequest.cc new file mode 100644 index 000000000..1796749db --- /dev/null +++ b/imm/src/model/CreateFigureClusteringTaskRequest.cc @@ -0,0 +1,83 @@ +/* + * 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::CreateFigureClusteringTaskRequest; + +CreateFigureClusteringTaskRequest::CreateFigureClusteringTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateFigureClusteringTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateFigureClusteringTaskRequest::~CreateFigureClusteringTaskRequest() {} + +std::string CreateFigureClusteringTaskRequest::getUserData() const { + return userData_; +} + +void CreateFigureClusteringTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateFigureClusteringTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateFigureClusteringTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateFigureClusteringTaskRequest::getDatasetName() const { + return datasetName_; +} + +void CreateFigureClusteringTaskRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string CreateFigureClusteringTaskRequest::getProjectName() const { + return projectName_; +} + +void CreateFigureClusteringTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateFigureClusteringTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateFigureClusteringTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::map CreateFigureClusteringTaskRequest::getTags() const { + return tags_; +} + +void CreateFigureClusteringTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + diff --git a/imm/src/model/CreateFigureClusteringTaskResult.cc b/imm/src/model/CreateFigureClusteringTaskResult.cc new file mode 100644 index 000000000..122ffa92f --- /dev/null +++ b/imm/src/model/CreateFigureClusteringTaskResult.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; + +CreateFigureClusteringTaskResult::CreateFigureClusteringTaskResult() : + ServiceResult() +{} + +CreateFigureClusteringTaskResult::CreateFigureClusteringTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFigureClusteringTaskResult::~CreateFigureClusteringTaskResult() +{} + +void CreateFigureClusteringTaskResult::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["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string CreateFigureClusteringTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateFigureClusteringTaskResult::getEventId()const +{ + return eventId_; +} + diff --git a/imm/src/model/CreateFigureClustersMergingTaskRequest.cc b/imm/src/model/CreateFigureClustersMergingTaskRequest.cc new file mode 100644 index 000000000..443b01e53 --- /dev/null +++ b/imm/src/model/CreateFigureClustersMergingTaskRequest.cc @@ -0,0 +1,101 @@ +/* + * 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::CreateFigureClustersMergingTaskRequest; + +CreateFigureClustersMergingTaskRequest::CreateFigureClustersMergingTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateFigureClustersMergingTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateFigureClustersMergingTaskRequest::~CreateFigureClustersMergingTaskRequest() {} + +std::string CreateFigureClustersMergingTaskRequest::getUserData() const { + return userData_; +} + +void CreateFigureClustersMergingTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateFigureClustersMergingTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateFigureClustersMergingTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string CreateFigureClustersMergingTaskRequest::getDatasetName() const { + return datasetName_; +} + +void CreateFigureClustersMergingTaskRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string CreateFigureClustersMergingTaskRequest::getFrom() const { + return from_; +} + +void CreateFigureClustersMergingTaskRequest::setFrom(const std::string &from) { + from_ = from; + setParameter(std::string("From"), from); +} + +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::map CreateFigureClustersMergingTaskRequest::getTags() const { + return tags_; +} + +void CreateFigureClustersMergingTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +std::string CreateFigureClustersMergingTaskRequest::getTo() const { + return to_; +} + +void CreateFigureClustersMergingTaskRequest::setTo(const std::string &to) { + to_ = to; + setParameter(std::string("To"), to); +} + diff --git a/imm/src/model/CreateFigureClustersMergingTaskResult.cc b/imm/src/model/CreateFigureClustersMergingTaskResult.cc new file mode 100644 index 000000000..630459a25 --- /dev/null +++ b/imm/src/model/CreateFigureClustersMergingTaskResult.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; + +CreateFigureClustersMergingTaskResult::CreateFigureClustersMergingTaskResult() : + ServiceResult() +{} + +CreateFigureClustersMergingTaskResult::CreateFigureClustersMergingTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateFigureClustersMergingTaskResult::~CreateFigureClustersMergingTaskResult() +{} + +void CreateFigureClustersMergingTaskResult::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["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string CreateFigureClustersMergingTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateFigureClustersMergingTaskResult::getEventId()const +{ + return eventId_; +} + diff --git a/imm/src/model/CreateGrabFrameTaskRequest.cc b/imm/src/model/CreateGrabFrameTaskRequest.cc deleted file mode 100644 index 42a740dfb..000000000 --- a/imm/src/model/CreateGrabFrameTaskRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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::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/CreateGroupFacesJobRequest.cc b/imm/src/model/CreateGroupFacesJobRequest.cc deleted file mode 100644 index fc71c5647..000000000 --- a/imm/src/model/CreateGroupFacesJobRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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/CreateImageModerationTaskRequest.cc b/imm/src/model/CreateImageModerationTaskRequest.cc new file mode 100644 index 000000000..b5b7765e5 --- /dev/null +++ b/imm/src/model/CreateImageModerationTaskRequest.cc @@ -0,0 +1,136 @@ +/* + * 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::CreateImageModerationTaskRequest; + +CreateImageModerationTaskRequest::CreateImageModerationTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateImageModerationTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateImageModerationTaskRequest::~CreateImageModerationTaskRequest() {} + +std::string CreateImageModerationTaskRequest::getUserData() const { + return userData_; +} + +void CreateImageModerationTaskRequest::setUserData(const std::string &userData) { + userData_ = 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_; +} + +void CreateImageModerationTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateImageModerationTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateImageModerationTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +long CreateImageModerationTaskRequest::getMaxFrames() const { + return maxFrames_; +} + +void CreateImageModerationTaskRequest::setMaxFrames(long maxFrames) { + maxFrames_ = maxFrames; + setParameter(std::string("MaxFrames"), std::to_string(maxFrames)); +} + +CreateImageModerationTaskRequest::CredentialConfig CreateImageModerationTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void CreateImageModerationTaskRequest::setCredentialConfig(const CreateImageModerationTaskRequest::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); +} + +std::string CreateImageModerationTaskRequest::getReviewer() const { + return reviewer_; +} + +void CreateImageModerationTaskRequest::setReviewer(const std::string &reviewer) { + reviewer_ = reviewer; + setParameter(std::string("Reviewer"), reviewer); +} + +std::map CreateImageModerationTaskRequest::getTags() const { + return tags_; +} + +void CreateImageModerationTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +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::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/CreateMediaComplexTaskResult.cc b/imm/src/model/CreateImageModerationTaskResult.cc similarity index 63% rename from imm/src/model/CreateMediaComplexTaskResult.cc rename to imm/src/model/CreateImageModerationTaskResult.cc index 672d7d8be..04cb6a202 100644 --- a/imm/src/model/CreateMediaComplexTaskResult.cc +++ b/imm/src/model/CreateImageModerationTaskResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateMediaComplexTaskResult::CreateMediaComplexTaskResult() : +CreateImageModerationTaskResult::CreateImageModerationTaskResult() : ServiceResult() {} -CreateMediaComplexTaskResult::CreateMediaComplexTaskResult(const std::string &payload) : +CreateImageModerationTaskResult::CreateImageModerationTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateMediaComplexTaskResult::~CreateMediaComplexTaskResult() +CreateImageModerationTaskResult::~CreateImageModerationTaskResult() {} -void CreateMediaComplexTaskResult::parse(const std::string &payload) +void CreateImageModerationTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -41,18 +41,18 @@ void CreateMediaComplexTaskResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } -std::string CreateMediaComplexTaskResult::getTaskId()const +std::string CreateImageModerationTaskResult::getTaskId()const { return taskId_; } -std::string CreateMediaComplexTaskResult::getTaskType()const +std::string CreateImageModerationTaskResult::getEventId()const { - return taskType_; + return eventId_; } diff --git a/imm/src/model/CreateImageProcessTaskRequest.cc b/imm/src/model/CreateImageProcessTaskRequest.cc deleted file mode 100644 index 296cc540b..000000000 --- a/imm/src/model/CreateImageProcessTaskRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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::CreateImageProcessTaskRequest; - -CreateImageProcessTaskRequest::CreateImageProcessTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateImageProcessTask") { - setMethod(HttpRequest::Method::Post); -} - -CreateImageProcessTaskRequest::~CreateImageProcessTaskRequest() {} - -std::string CreateImageProcessTaskRequest::getProject() const { - return project_; -} - -void CreateImageProcessTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateImageProcessTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateImageProcessTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateImageProcessTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateImageProcessTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateImageProcessTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateImageProcessTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string CreateImageProcessTaskRequest::getTargetList() const { - return targetList_; -} - -void CreateImageProcessTaskRequest::setTargetList(const std::string &targetList) { - targetList_ = targetList; - setParameter(std::string("TargetList"), targetList); -} - -std::string CreateImageProcessTaskRequest::getImageUri() const { - return imageUri_; -} - -void CreateImageProcessTaskRequest::setImageUri(const std::string &imageUri) { - imageUri_ = imageUri; - setParameter(std::string("ImageUri"), imageUri); -} - diff --git a/imm/src/model/CreateImageSplicingTaskRequest.cc b/imm/src/model/CreateImageSplicingTaskRequest.cc new file mode 100644 index 000000000..f165a6d59 --- /dev/null +++ b/imm/src/model/CreateImageSplicingTaskRequest.cc @@ -0,0 +1,182 @@ +/* + * 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::CreateImageSplicingTaskRequest; + +CreateImageSplicingTaskRequest::CreateImageSplicingTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateImageSplicingTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateImageSplicingTaskRequest::~CreateImageSplicingTaskRequest() {} + +long CreateImageSplicingTaskRequest::getAlign() const { + return align_; +} + +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); +} + +std::string CreateImageSplicingTaskRequest::getProjectName() const { + return projectName_; +} + +void CreateImageSplicingTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +long CreateImageSplicingTaskRequest::getMargin() const { + return margin_; +} + +void CreateImageSplicingTaskRequest::setMargin(long margin) { + margin_ = margin; + setParameter(std::string("Margin"), std::to_string(margin)); +} + +std::string CreateImageSplicingTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateImageSplicingTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +long CreateImageSplicingTaskRequest::getQuality() const { + return quality_; +} + +void CreateImageSplicingTaskRequest::setQuality(long quality) { + quality_ = quality; + setParameter(std::string("Quality"), std::to_string(quality)); +} + +std::map CreateImageSplicingTaskRequest::getTags() const { + return tags_; +} + +void CreateImageSplicingTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +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); + } +} + +std::string CreateImageSplicingTaskRequest::getUserData() const { + return userData_; +} + +void CreateImageSplicingTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateImageSplicingTaskRequest::getTargetURI() const { + return targetURI_; +} + +void CreateImageSplicingTaskRequest::setTargetURI(const std::string &targetURI) { + targetURI_ = targetURI; + setParameter(std::string("TargetURI"), targetURI); +} + +std::string CreateImageSplicingTaskRequest::getImageFormat() const { + return imageFormat_; +} + +void CreateImageSplicingTaskRequest::setImageFormat(const std::string &imageFormat) { + imageFormat_ = imageFormat; + setParameter(std::string("ImageFormat"), imageFormat); +} + +std::string CreateImageSplicingTaskRequest::getDirection() const { + return direction_; +} + +void CreateImageSplicingTaskRequest::setDirection(const std::string &direction) { + direction_ = 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/CreateVideoAbstractTaskResult.cc b/imm/src/model/CreateImageSplicingTaskResult.cc similarity index 66% rename from imm/src/model/CreateVideoAbstractTaskResult.cc rename to imm/src/model/CreateImageSplicingTaskResult.cc index 6546e1264..6a832d679 100644 --- a/imm/src/model/CreateVideoAbstractTaskResult.cc +++ b/imm/src/model/CreateImageSplicingTaskResult.cc @@ -14,45 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult() : +CreateImageSplicingTaskResult::CreateImageSplicingTaskResult() : ServiceResult() {} -CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult(const std::string &payload) : +CreateImageSplicingTaskResult::CreateImageSplicingTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateVideoAbstractTaskResult::~CreateVideoAbstractTaskResult() +CreateImageSplicingTaskResult::~CreateImageSplicingTaskResult() {} -void CreateVideoAbstractTaskResult::parse(const std::string &payload) +void CreateImageSplicingTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); } -std::string CreateVideoAbstractTaskResult::getTaskId()const +std::string CreateImageSplicingTaskResult::getTaskId()const { return taskId_; } -std::string CreateVideoAbstractTaskResult::getTaskType()const +std::string CreateImageSplicingTaskResult::getEventId()const { - return taskType_; + return eventId_; } diff --git a/imm/src/model/CreateMediaComplexTaskRequest.cc b/imm/src/model/CreateMediaComplexTaskRequest.cc deleted file mode 100644 index 6870a8216..000000000 --- a/imm/src/model/CreateMediaComplexTaskRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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::CreateMediaComplexTaskRequest; - -CreateMediaComplexTaskRequest::CreateMediaComplexTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateMediaComplexTask") { - setMethod(HttpRequest::Method::Post); -} - -CreateMediaComplexTaskRequest::~CreateMediaComplexTaskRequest() {} - -std::string CreateMediaComplexTaskRequest::getProject() const { - return project_; -} - -void CreateMediaComplexTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateMediaComplexTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateMediaComplexTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateMediaComplexTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateMediaComplexTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateMediaComplexTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateMediaComplexTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string CreateMediaComplexTaskRequest::getParameters() const { - return parameters_; -} - -void CreateMediaComplexTaskRequest::setParameters(const std::string ¶meters) { - parameters_ = parameters; - setParameter(std::string("Parameters"), parameters); -} - diff --git a/imm/src/model/CreateMediaConvertTaskRequest.cc b/imm/src/model/CreateMediaConvertTaskRequest.cc new file mode 100644 index 000000000..b3be44e01 --- /dev/null +++ b/imm/src/model/CreateMediaConvertTaskRequest.cc @@ -0,0 +1,207 @@ +/* + * 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::CreateMediaConvertTaskRequest; + +CreateMediaConvertTaskRequest::CreateMediaConvertTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateMediaConvertTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateMediaConvertTaskRequest::~CreateMediaConvertTaskRequest() {} + +std::vector CreateMediaConvertTaskRequest::getSources() const { + return sources_; +} + +void CreateMediaConvertTaskRequest::setSources(const std::vector &sources) { + sources_ = sources; + for(int dep1 = 0; dep1 != sources.size(); dep1++) { + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Duration", std::to_string(sources[dep1].duration)); + for(int dep2 = 0; dep2 != sources[dep1].subtitles.size(); dep2++) { + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Subtitles." + std::to_string(dep2 + 1) + ".TimeOffset", std::to_string(sources[dep1].subtitles[dep2].timeOffset)); + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Subtitles." + std::to_string(dep2 + 1) + ".Language", sources[dep1].subtitles[dep2].language); + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".Subtitles." + std::to_string(dep2 + 1) + ".URI", sources[dep1].subtitles[dep2].uRI); + } + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".StartTime", std::to_string(sources[dep1].startTime)); + setParameter(std::string("Sources") + "." + std::to_string(dep1 + 1) + ".URI", sources[dep1].uRI); + } +} + +std::vector CreateMediaConvertTaskRequest::getTargets() const { + return targets_; +} + +void CreateMediaConvertTaskRequest::setTargets(const std::vector &targets) { + targets_ = targets; + for(int dep1 = 0; dep1 != targets.size(); dep1++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Container", targets[dep1].container); + for(int dep2 = 0; dep2 != targets[dep1].image.snapshots.size(); dep2++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".Number", std::to_string(targets[dep1].image.snapshots[dep2].number)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".Format", targets[dep1].image.snapshots[dep2].format); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".Width", std::to_string(targets[dep1].image.snapshots[dep2].width)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".Interval", std::to_string(targets[dep1].image.snapshots[dep2].interval)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].image.snapshots[dep2].startTime)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".ScaleType", targets[dep1].image.snapshots[dep2].scaleType); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".URI", targets[dep1].image.snapshots[dep2].uRI); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Snapshots." + std::to_string(dep2 + 1) + ".Height", std::to_string(targets[dep1].image.snapshots[dep2].height)); + } + for(int dep2 = 0; dep2 != targets[dep1].image.sprites.size(); dep2++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".TileHeight", std::to_string(targets[dep1].image.sprites[dep2].tileHeight)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".Number", std::to_string(targets[dep1].image.sprites[dep2].number)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".Pad", std::to_string(targets[dep1].image.sprites[dep2].pad)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".Margin", std::to_string(targets[dep1].image.sprites[dep2].margin)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".ScaleWidth", std::to_string(targets[dep1].image.sprites[dep2].scaleWidth)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".Format", targets[dep1].image.sprites[dep2].format); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".Interval", std::to_string(targets[dep1].image.sprites[dep2].interval)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].image.sprites[dep2].startTime)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".ScaleType", targets[dep1].image.sprites[dep2].scaleType); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".ScaleHeight", std::to_string(targets[dep1].image.sprites[dep2].scaleHeight)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".URI", targets[dep1].image.sprites[dep2].uRI); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Image.Sprites." + std::to_string(dep2 + 1) + ".TileWidth", std::to_string(targets[dep1].image.sprites[dep2].tileWidth)); + } + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Encryption.ProtectionSystem", targets[dep1].encryption.protectionSystem); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Segment.Duration", std::to_string(targets[dep1].segment.duration)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Segment.Format", targets[dep1].segment.format); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Segment.StartNumber", std::to_string(targets[dep1].segment.startNumber)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.DisableSubtitle", targets[dep1].subtitle.disableSubtitle ? "true" : "false"); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.Format", targets[dep1].subtitle.extractSubtitle.format); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Subtitle.ExtractSubtitle.URI", targets[dep1].subtitle.extractSubtitle.uRI); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Preset.Name", targets[dep1].preset.name); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Preset.Type", targets[dep1].preset.type); + for(int dep2 = 0; dep2 != targets[dep1].video.filterVideo.delogos.size(); dep2++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Duration", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].duration)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Dx", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].dx)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Dy", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].dy)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Width", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].width)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".ReferPos", targets[dep1].video.filterVideo.delogos[dep2].referPos); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].startTime)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Delogos." + std::to_string(dep2 + 1) + ".Height", std::to_string(targets[dep1].video.filterVideo.delogos[dep2].height)); + } + for(int dep2 = 0; dep2 != targets[dep1].video.filterVideo.watermarks.size(); dep2++) { + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontApha", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].fontApha)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontSize", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].fontSize)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".StartTime", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].startTime)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Type", targets[dep1].video.filterVideo.watermarks[dep2].type); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontName", targets[dep1].video.filterVideo.watermarks[dep2].fontName); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".URI", targets[dep1].video.filterVideo.watermarks[dep2].uRI); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Content", targets[dep1].video.filterVideo.watermarks[dep2].content); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".BorderColor", targets[dep1].video.filterVideo.watermarks[dep2].borderColor); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Duration", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].duration)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Dx", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].dx)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Dy", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].dy)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".BorderWidth", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].borderWidth)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Width", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].width)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".FontColor", targets[dep1].video.filterVideo.watermarks[dep2].fontColor); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".ReferPos", targets[dep1].video.filterVideo.watermarks[dep2].referPos); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.FilterVideo.Watermarks." + std::to_string(dep2 + 1) + ".Height", std::to_string(targets[dep1].video.filterVideo.watermarks[dep2].height)); + } + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.DisableVideo", targets[dep1].video.disableVideo ? "true" : "false"); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.ResolutionOption", targets[dep1].video.transcodeVideo.resolutionOption); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.GOPSize", std::to_string(targets[dep1].video.transcodeVideo.gOPSize)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.PixelFormat", targets[dep1].video.transcodeVideo.pixelFormat); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.FrameRate", std::to_string(targets[dep1].video.transcodeVideo.frameRate)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Rotation", std::to_string(targets[dep1].video.transcodeVideo.rotation)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Bitrate", std::to_string(targets[dep1].video.transcodeVideo.bitrate)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BufferSize", std::to_string(targets[dep1].video.transcodeVideo.bufferSize)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Resolution", targets[dep1].video.transcodeVideo.resolution); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BFrames", std::to_string(targets[dep1].video.transcodeVideo.bFrames)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.MaxBitrate", std::to_string(targets[dep1].video.transcodeVideo.maxBitrate)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Codec", targets[dep1].video.transcodeVideo.codec); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.BitrateOption", targets[dep1].video.transcodeVideo.bitrateOption); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.Refs", std::to_string(targets[dep1].video.transcodeVideo.refs)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.CRF", std::to_string(targets[dep1].video.transcodeVideo.cRF)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.ScaleType", targets[dep1].video.transcodeVideo.scaleType); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.FrameRateOption", targets[dep1].video.transcodeVideo.frameRateOption); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Video.TranscodeVideo.AdaptiveResolutionDirection", targets[dep1].video.transcodeVideo.adaptiveResolutionDirection ? "true" : "false"); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.DisableAudio", targets[dep1].audio.disableAudio ? "true" : "false"); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Codec", targets[dep1].audio.transcodeAudio.codec); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.BitrateOption", targets[dep1].audio.transcodeAudio.bitrateOption); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Channel", std::to_string(targets[dep1].audio.transcodeAudio.channel)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Bitrate", std::to_string(targets[dep1].audio.transcodeAudio.bitrate)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.SampleRateOption", targets[dep1].audio.transcodeAudio.sampleRateOption); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.Quality", std::to_string(targets[dep1].audio.transcodeAudio.quality)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.TranscodeAudio.SampleRate", std::to_string(targets[dep1].audio.transcodeAudio.sampleRate)); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Audio.FilterAudio.Mixing", targets[dep1].audio.filterAudio.mixing ? "true" : "false"); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".URI", targets[dep1].uRI); + setParameter(std::string("Targets") + "." + std::to_string(dep1 + 1) + ".Speed", std::to_string(targets[dep1].speed)); + } +} + +std::string CreateMediaConvertTaskRequest::getUserData() const { + return userData_; +} + +void CreateMediaConvertTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateMediaConvertTaskRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void CreateMediaConvertTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +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); +} + +CreateMediaConvertTaskRequest::CredentialConfig CreateMediaConvertTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void CreateMediaConvertTaskRequest::setCredentialConfig(const CreateMediaConvertTaskRequest::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); +} + +std::map CreateMediaConvertTaskRequest::getTags() const { + return tags_; +} + +void CreateMediaConvertTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + diff --git a/imm/src/model/CreateVideoAnalyseTaskResult.cc b/imm/src/model/CreateMediaConvertTaskResult.cc similarity index 66% rename from imm/src/model/CreateVideoAnalyseTaskResult.cc rename to imm/src/model/CreateMediaConvertTaskResult.cc index d4327bfc5..897ad9194 100644 --- a/imm/src/model/CreateVideoAnalyseTaskResult.cc +++ b/imm/src/model/CreateMediaConvertTaskResult.cc @@ -14,45 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult() : +CreateMediaConvertTaskResult::CreateMediaConvertTaskResult() : ServiceResult() {} -CreateVideoAnalyseTaskResult::CreateVideoAnalyseTaskResult(const std::string &payload) : +CreateMediaConvertTaskResult::CreateMediaConvertTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateVideoAnalyseTaskResult::~CreateVideoAnalyseTaskResult() +CreateMediaConvertTaskResult::~CreateMediaConvertTaskResult() {} -void CreateVideoAnalyseTaskResult::parse(const std::string &payload) +void CreateMediaConvertTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); } -std::string CreateVideoAnalyseTaskResult::getTaskId()const +std::string CreateMediaConvertTaskResult::getTaskId()const { return taskId_; } -std::string CreateVideoAnalyseTaskResult::getTaskType()const +std::string CreateMediaConvertTaskResult::getEventId()const { - return taskType_; + return eventId_; } diff --git a/imm/src/model/CreateMergeFaceGroupsJobRequest.cc b/imm/src/model/CreateMergeFaceGroupsJobRequest.cc deleted file mode 100644 index aa279c019..000000000 --- a/imm/src/model/CreateMergeFaceGroupsJobRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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 deleted file mode 100644 index 31a4e85d3..000000000 --- a/imm/src/model/CreateMergeFaceGroupsJobResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 f596ddf92..6037c4542 100644 --- a/imm/src/model/CreateOfficeConversionTaskRequest.cc +++ b/imm/src/model/CreateOfficeConversionTaskRequest.cc @@ -19,64 +19,28 @@ using AlibabaCloud::Imm::Model::CreateOfficeConversionTaskRequest; CreateOfficeConversionTaskRequest::CreateOfficeConversionTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateOfficeConversionTask") { + : RpcServiceRequest("imm", "2020-09-30", "CreateOfficeConversionTask") { setMethod(HttpRequest::Method::Post); } CreateOfficeConversionTaskRequest::~CreateOfficeConversionTaskRequest() {} -std::string CreateOfficeConversionTaskRequest::getSrcType() const { - return srcType_; +long CreateOfficeConversionTaskRequest::getSheetCount() const { + return sheetCount_; } -void CreateOfficeConversionTaskRequest::setSrcType(const std::string &srcType) { - srcType_ = srcType; - setParameter(std::string("SrcType"), srcType); +void CreateOfficeConversionTaskRequest::setSheetCount(long sheetCount) { + sheetCount_ = sheetCount; + setParameter(std::string("SheetCount"), std::to_string(sheetCount)); } -std::string CreateOfficeConversionTaskRequest::getProject() const { - return project_; +bool CreateOfficeConversionTaskRequest::getShowComments() const { + return showComments_; } -void CreateOfficeConversionTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateOfficeConversionTaskRequest::getIdempotentToken() const { - return idempotentToken_; -} - -void CreateOfficeConversionTaskRequest::setIdempotentToken(const std::string &idempotentToken) { - idempotentToken_ = idempotentToken; - setParameter(std::string("IdempotentToken"), idempotentToken); -} - -bool CreateOfficeConversionTaskRequest::getPdfVector() const { - return pdfVector_; -} - -void CreateOfficeConversionTaskRequest::setPdfVector(bool pdfVector) { - pdfVector_ = pdfVector; - setParameter(std::string("PdfVector"), pdfVector ? "true" : "false"); -} - -std::string CreateOfficeConversionTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateOfficeConversionTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateOfficeConversionTaskRequest::getUserData() const { - return userData_; -} - -void CreateOfficeConversionTaskRequest::setUserData(const std::string &userData) { - userData_ = userData; - setParameter(std::string("UserData"), userData); +void CreateOfficeConversionTaskRequest::setShowComments(bool showComments) { + showComments_ = showComments; + setParameter(std::string("ShowComments"), showComments ? "true" : "false"); } std::string CreateOfficeConversionTaskRequest::getPassword() const { @@ -88,13 +52,13 @@ void CreateOfficeConversionTaskRequest::setPassword(const std::string &password) setParameter(std::string("Password"), password); } -long CreateOfficeConversionTaskRequest::getStartPage() const { - return startPage_; +std::string CreateOfficeConversionTaskRequest::getPages() const { + return pages_; } -void CreateOfficeConversionTaskRequest::setStartPage(long startPage) { - startPage_ = startPage; - setParameter(std::string("StartPage"), std::to_string(startPage)); +void CreateOfficeConversionTaskRequest::setPages(const std::string &pages) { + pages_ = pages; + setParameter(std::string("Pages"), pages); } std::string CreateOfficeConversionTaskRequest::getNotifyEndpoint() const { @@ -106,22 +70,22 @@ void CreateOfficeConversionTaskRequest::setNotifyEndpoint(const std::string ¬ setParameter(std::string("NotifyEndpoint"), notifyEndpoint); } -bool CreateOfficeConversionTaskRequest::getFitToPagesWide() const { - return fitToPagesWide_; +std::string CreateOfficeConversionTaskRequest::getSourceType() const { + return sourceType_; } -void CreateOfficeConversionTaskRequest::setFitToPagesWide(bool fitToPagesWide) { - fitToPagesWide_ = fitToPagesWide; - setParameter(std::string("FitToPagesWide"), fitToPagesWide ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -std::string CreateOfficeConversionTaskRequest::getTgtFilePrefix() const { - return tgtFilePrefix_; +std::string CreateOfficeConversionTaskRequest::getProjectName() const { + return projectName_; } -void CreateOfficeConversionTaskRequest::setTgtFilePrefix(const std::string &tgtFilePrefix) { - tgtFilePrefix_ = tgtFilePrefix; - setParameter(std::string("TgtFilePrefix"), tgtFilePrefix); +void CreateOfficeConversionTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } std::string CreateOfficeConversionTaskRequest::getNotifyTopicName() const { @@ -133,40 +97,13 @@ void CreateOfficeConversionTaskRequest::setNotifyTopicName(const std::string &no setParameter(std::string("NotifyTopicName"), notifyTopicName); } -std::string CreateOfficeConversionTaskRequest::getModelId() const { - return modelId_; +bool CreateOfficeConversionTaskRequest::getFitToHeight() const { + return fitToHeight_; } -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 { - return maxSheetRow_; -} - -void CreateOfficeConversionTaskRequest::setMaxSheetRow(long maxSheetRow) { - maxSheetRow_ = maxSheetRow; - setParameter(std::string("MaxSheetRow"), std::to_string(maxSheetRow)); -} - -long CreateOfficeConversionTaskRequest::getMaxSheetCount() const { - return maxSheetCount_; -} - -void CreateOfficeConversionTaskRequest::setMaxSheetCount(long maxSheetCount) { - maxSheetCount_ = maxSheetCount; - setParameter(std::string("MaxSheetCount"), std::to_string(maxSheetCount)); +void CreateOfficeConversionTaskRequest::setFitToHeight(bool fitToHeight) { + fitToHeight_ = fitToHeight; + setParameter(std::string("FitToHeight"), fitToHeight ? "true" : "false"); } long CreateOfficeConversionTaskRequest::getEndPage() const { @@ -178,84 +115,212 @@ void CreateOfficeConversionTaskRequest::setEndPage(long endPage) { setParameter(std::string("EndPage"), std::to_string(endPage)); } -std::string CreateOfficeConversionTaskRequest::getTgtFileSuffix() const { - return tgtFileSuffix_; +bool CreateOfficeConversionTaskRequest::getFitToWidth() const { + return fitToWidth_; } -void CreateOfficeConversionTaskRequest::setTgtFileSuffix(const std::string &tgtFileSuffix) { - tgtFileSuffix_ = tgtFileSuffix; - setParameter(std::string("TgtFileSuffix"), tgtFileSuffix); +void CreateOfficeConversionTaskRequest::setFitToWidth(bool fitToWidth) { + fitToWidth_ = fitToWidth; + setParameter(std::string("FitToWidth"), fitToWidth ? "true" : "false"); } -bool CreateOfficeConversionTaskRequest::getSheetOnePage() const { - return sheetOnePage_; +long CreateOfficeConversionTaskRequest::getQuality() const { + return quality_; } -void CreateOfficeConversionTaskRequest::setSheetOnePage(bool sheetOnePage) { - sheetOnePage_ = sheetOnePage; - setParameter(std::string("SheetOnePage"), sheetOnePage ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setQuality(long quality) { + quality_ = quality; + setParameter(std::string("Quality"), std::to_string(quality)); } -long CreateOfficeConversionTaskRequest::getMaxSheetCol() const { - return maxSheetCol_; +std::map CreateOfficeConversionTaskRequest::getTags() const { + return tags_; } -void CreateOfficeConversionTaskRequest::setMaxSheetCol(long maxSheetCol) { - maxSheetCol_ = maxSheetCol; - setParameter(std::string("MaxSheetCol"), std::to_string(maxSheetCol)); +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::getTgtType() const { - return tgtType_; +std::string CreateOfficeConversionTaskRequest::getSourceURI() const { + return sourceURI_; } -void CreateOfficeConversionTaskRequest::setTgtType(const std::string &tgtType) { - tgtType_ = tgtType; - setParameter(std::string("TgtType"), tgtType); +void CreateOfficeConversionTaskRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); } -bool CreateOfficeConversionTaskRequest::getHidecomments() const { - return hidecomments_; +long CreateOfficeConversionTaskRequest::getSheetIndex() const { + return sheetIndex_; } -void CreateOfficeConversionTaskRequest::setHidecomments(bool hidecomments) { - hidecomments_ = hidecomments; - setParameter(std::string("Hidecomments"), hidecomments ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setSheetIndex(long sheetIndex) { + sheetIndex_ = sheetIndex; + setParameter(std::string("SheetIndex"), std::to_string(sheetIndex)); } -bool CreateOfficeConversionTaskRequest::getFitToPagesTall() const { - return fitToPagesTall_; +bool CreateOfficeConversionTaskRequest::getHoldLineFeed() const { + return holdLineFeed_; } -void CreateOfficeConversionTaskRequest::setFitToPagesTall(bool fitToPagesTall) { - fitToPagesTall_ = fitToPagesTall; - setParameter(std::string("FitToPagesTall"), fitToPagesTall ? "true" : "false"); +void CreateOfficeConversionTaskRequest::setHoldLineFeed(bool holdLineFeed) { + holdLineFeed_ = holdLineFeed; + setParameter(std::string("HoldLineFeed"), holdLineFeed ? "true" : "false"); } -std::string CreateOfficeConversionTaskRequest::getSrcUri() const { - return srcUri_; +bool CreateOfficeConversionTaskRequest::getLongText() const { + return longText_; } -void CreateOfficeConversionTaskRequest::setSrcUri(const std::string &srcUri) { - srcUri_ = srcUri; - setParameter(std::string("SrcUri"), srcUri); +void CreateOfficeConversionTaskRequest::setLongText(bool longText) { + longText_ = longText; + setParameter(std::string("LongText"), longText ? "true" : "false"); } -std::string CreateOfficeConversionTaskRequest::getTgtFilePages() const { - return tgtFilePages_; +std::string CreateOfficeConversionTaskRequest::getTargetType() const { + return targetType_; } -void CreateOfficeConversionTaskRequest::setTgtFilePages(const std::string &tgtFilePages) { - tgtFilePages_ = tgtFilePages; - setParameter(std::string("TgtFilePages"), tgtFilePages); +void CreateOfficeConversionTaskRequest::setTargetType(const std::string &targetType) { + targetType_ = targetType; + setParameter(std::string("TargetType"), targetType); } -std::string CreateOfficeConversionTaskRequest::getTgtUri() const { - return tgtUri_; +CreateOfficeConversionTaskRequest::TrimPolicy CreateOfficeConversionTaskRequest::getTrimPolicy() const { + return trimPolicy_; } -void CreateOfficeConversionTaskRequest::setTgtUri(const std::string &tgtUri) { - tgtUri_ = tgtUri; - setParameter(std::string("TgtUri"), tgtUri); +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"); +} + +std::string CreateOfficeConversionTaskRequest::getUserData() const { + return userData_; +} + +void CreateOfficeConversionTaskRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +long CreateOfficeConversionTaskRequest::getScalePercentage() const { + return scalePercentage_; +} + +void CreateOfficeConversionTaskRequest::setScalePercentage(long scalePercentage) { + scalePercentage_ = scalePercentage; + setParameter(std::string("ScalePercentage"), std::to_string(scalePercentage)); +} + +long CreateOfficeConversionTaskRequest::getStartPage() const { + return startPage_; +} + +void CreateOfficeConversionTaskRequest::setStartPage(long startPage) { + startPage_ = startPage; + setParameter(std::string("StartPage"), std::to_string(startPage)); +} + +std::string CreateOfficeConversionTaskRequest::getTargetURIPrefix() const { + return targetURIPrefix_; +} + +void CreateOfficeConversionTaskRequest::setTargetURIPrefix(const std::string &targetURIPrefix) { + targetURIPrefix_ = targetURIPrefix; + setParameter(std::string("TargetURIPrefix"), targetURIPrefix); +} + +std::string CreateOfficeConversionTaskRequest::getTargetURI() const { + return targetURI_; +} + +void CreateOfficeConversionTaskRequest::setTargetURI(const std::string &targetURI) { + targetURI_ = targetURI; + setParameter(std::string("TargetURI"), targetURI); +} + +std::string CreateOfficeConversionTaskRequest::getPaperSize() const { + return paperSize_; +} + +void CreateOfficeConversionTaskRequest::setPaperSize(const std::string &paperSize) { + paperSize_ = paperSize; + setParameter(std::string("PaperSize"), paperSize); +} + +long CreateOfficeConversionTaskRequest::getImageDPI() const { + return imageDPI_; +} + +void CreateOfficeConversionTaskRequest::setImageDPI(long imageDPI) { + imageDPI_ = imageDPI; + setParameter(std::string("ImageDPI"), std::to_string(imageDPI)); +} + +bool CreateOfficeConversionTaskRequest::getLongPicture() const { + return longPicture_; +} + +void CreateOfficeConversionTaskRequest::setLongPicture(bool longPicture) { + longPicture_ = longPicture; + setParameter(std::string("LongPicture"), longPicture ? "true" : "false"); +} + +long CreateOfficeConversionTaskRequest::getMaxSheetRow() const { + return maxSheetRow_; +} + +void CreateOfficeConversionTaskRequest::setMaxSheetRow(long maxSheetRow) { + maxSheetRow_ = maxSheetRow; + setParameter(std::string("MaxSheetRow"), std::to_string(maxSheetRow)); +} + +CreateOfficeConversionTaskRequest::CredentialConfig CreateOfficeConversionTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +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); } diff --git a/imm/src/model/CreateOfficeConversionTaskResult.cc b/imm/src/model/CreateOfficeConversionTaskResult.cc index 010d68b3a..1b18b10ba 100644 --- a/imm/src/model/CreateOfficeConversionTaskResult.cc +++ b/imm/src/model/CreateOfficeConversionTaskResult.cc @@ -39,41 +39,20 @@ 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["Percent"].isNull()) - percent_ = std::stoi(value["Percent"].asString()); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["TgtLoc"].isNull()) - tgtLoc_ = value["TgtLoc"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } -std::string CreateOfficeConversionTaskResult::getStatus()const -{ - return status_; -} - std::string CreateOfficeConversionTaskResult::getTaskId()const { return taskId_; } -int CreateOfficeConversionTaskResult::getPercent()const +std::string CreateOfficeConversionTaskResult::getEventId()const { - return percent_; -} - -std::string CreateOfficeConversionTaskResult::getCreateTime()const -{ - return createTime_; -} - -std::string CreateOfficeConversionTaskResult::getTgtLoc()const -{ - return tgtLoc_; + return eventId_; } diff --git a/imm/src/model/CreateProjectRequest.cc b/imm/src/model/CreateProjectRequest.cc new file mode 100644 index 000000000..6a92368ef --- /dev/null +++ b/imm/src/model/CreateProjectRequest.cc @@ -0,0 +1,135 @@ +/* + * 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::CreateProjectRequest; + +CreateProjectRequest::CreateProjectRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateProject") { + setMethod(HttpRequest::Method::Post); +} + +CreateProjectRequest::~CreateProjectRequest() {} + +long CreateProjectRequest::getEngineConcurrency() const { + return engineConcurrency_; +} + +void CreateProjectRequest::setEngineConcurrency(long engineConcurrency) { + engineConcurrency_ = 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_; +} + +void CreateProjectRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +long CreateProjectRequest::getProjectMaxDatasetCount() const { + return projectMaxDatasetCount_; +} + +void CreateProjectRequest::setProjectMaxDatasetCount(long projectMaxDatasetCount) { + projectMaxDatasetCount_ = 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_; +} + +void CreateProjectRequest::setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize) { + datasetMaxTotalFileSize_ = datasetMaxTotalFileSize; + setParameter(std::string("DatasetMaxTotalFileSize"), std::to_string(datasetMaxTotalFileSize)); +} + +std::string CreateProjectRequest::getServiceRole() const { + return serviceRole_; +} + +void CreateProjectRequest::setServiceRole(const std::string &serviceRole) { + serviceRole_ = serviceRole; + setParameter(std::string("ServiceRole"), serviceRole); +} + diff --git a/imm/src/model/CreateProjectResult.cc b/imm/src/model/CreateProjectResult.cc new file mode 100644 index 000000000..56fceb6cc --- /dev/null +++ b/imm/src/model/CreateProjectResult.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; + +CreateProjectResult::CreateProjectResult() : + ServiceResult() +{} + +CreateProjectResult::CreateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProjectResult::~CreateProjectResult() +{} + +void CreateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + 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()); + +} + +CreateProjectResult::Project CreateProjectResult::getProject()const +{ + return project_; +} + diff --git a/imm/src/model/CreateSetRequest.cc b/imm/src/model/CreateSetRequest.cc deleted file mode 100644 index 3d462a8c7..000000000 --- a/imm/src/model/CreateSetRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 8f484fefe..000000000 --- a/imm/src/model/CreateSetResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..0fa8145df --- /dev/null +++ b/imm/src/model/CreateStoryRequest.cc @@ -0,0 +1,173 @@ +/* + * 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::CreateStoryRequest; + +CreateStoryRequest::CreateStoryRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateStory") { + setMethod(HttpRequest::Method::Post); +} + +CreateStoryRequest::~CreateStoryRequest() {} + +std::string CreateStoryRequest::getCustomLabels() const { + return customLabels_; +} + +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); +} + +std::string CreateStoryRequest::getProjectName() const { + return projectName_; +} + +void CreateStoryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setBodyParameter(std::string("ProjectName"), projectName); +} + +std::string CreateStoryRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateStoryRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setBodyParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string CreateStoryRequest::getStoryType() const { + return storyType_; +} + +void CreateStoryRequest::setStoryType(const std::string &storyType) { + storyType_ = storyType; + setBodyParameter(std::string("StoryType"), storyType); +} + +std::map CreateStoryRequest::getTags() const { + return tags_; +} + +void CreateStoryRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +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_; +} + +void CreateStoryRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +long CreateStoryRequest::getMaxFileCount() const { + return maxFileCount_; +} + +void CreateStoryRequest::setMaxFileCount(long maxFileCount) { + maxFileCount_ = maxFileCount; + setBodyParameter(std::string("MaxFileCount"), std::to_string(maxFileCount)); +} + +std::string CreateStoryRequest::getDatasetName() const { + return datasetName_; +} + +void CreateStoryRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = 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_; +} + +void CreateStoryRequest::setStoryEndTime(const std::string &storyEndTime) { + storyEndTime_ = storyEndTime; + setBodyParameter(std::string("StoryEndTime"), storyEndTime); +} + +std::string CreateStoryRequest::getObjectId() const { + return objectId_; +} + +void CreateStoryRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setBodyParameter(std::string("ObjectId"), objectId); +} + +std::string CreateStoryRequest::getStoryName() const { + return storyName_; +} + +void CreateStoryRequest::setStoryName(const std::string &storyName) { + storyName_ = storyName; + setBodyParameter(std::string("StoryName"), storyName); +} + diff --git a/imm/src/model/CreateGrabFrameTaskResult.cc b/imm/src/model/CreateStoryResult.cc similarity index 65% rename from imm/src/model/CreateGrabFrameTaskResult.cc rename to imm/src/model/CreateStoryResult.cc index 227d5b31d..6898ec397 100644 --- a/imm/src/model/CreateGrabFrameTaskResult.cc +++ b/imm/src/model/CreateStoryResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateGrabFrameTaskResult::CreateGrabFrameTaskResult() : +CreateStoryResult::CreateStoryResult() : ServiceResult() {} -CreateGrabFrameTaskResult::CreateGrabFrameTaskResult(const std::string &payload) : +CreateStoryResult::CreateStoryResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateGrabFrameTaskResult::~CreateGrabFrameTaskResult() +CreateStoryResult::~CreateStoryResult() {} -void CreateGrabFrameTaskResult::parse(const std::string &payload) +void CreateStoryResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -41,18 +41,18 @@ void CreateGrabFrameTaskResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } -std::string CreateGrabFrameTaskResult::getTaskId()const +std::string CreateStoryResult::getTaskId()const { return taskId_; } -std::string CreateGrabFrameTaskResult::getTaskType()const +std::string CreateStoryResult::getEventId()const { - return taskType_; + return eventId_; } diff --git a/imm/src/model/CreateVideoAbstractTaskRequest.cc b/imm/src/model/CreateVideoAbstractTaskRequest.cc deleted file mode 100644 index 0b50e168f..000000000 --- a/imm/src/model/CreateVideoAbstractTaskRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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::CreateVideoAbstractTaskRequest; - -CreateVideoAbstractTaskRequest::CreateVideoAbstractTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateVideoAbstractTask") { - setMethod(HttpRequest::Method::Post); -} - -CreateVideoAbstractTaskRequest::~CreateVideoAbstractTaskRequest() {} - -std::string CreateVideoAbstractTaskRequest::getTargetVideoUri() const { - return targetVideoUri_; -} - -void CreateVideoAbstractTaskRequest::setTargetVideoUri(const std::string &targetVideoUri) { - targetVideoUri_ = targetVideoUri; - setParameter(std::string("TargetVideoUri"), targetVideoUri); -} - -std::string CreateVideoAbstractTaskRequest::getProject() const { - return project_; -} - -void CreateVideoAbstractTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateVideoAbstractTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateVideoAbstractTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateVideoAbstractTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateVideoAbstractTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateVideoAbstractTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateVideoAbstractTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string CreateVideoAbstractTaskRequest::getVideoUri() const { - return videoUri_; -} - -void CreateVideoAbstractTaskRequest::setVideoUri(const std::string &videoUri) { - videoUri_ = videoUri; - setParameter(std::string("VideoUri"), videoUri); -} - -int CreateVideoAbstractTaskRequest::getAbstractLength() const { - return abstractLength_; -} - -void CreateVideoAbstractTaskRequest::setAbstractLength(int abstractLength) { - abstractLength_ = abstractLength; - setParameter(std::string("AbstractLength"), std::to_string(abstractLength)); -} - -std::string CreateVideoAbstractTaskRequest::getTargetClipsUri() const { - return targetClipsUri_; -} - -void CreateVideoAbstractTaskRequest::setTargetClipsUri(const std::string &targetClipsUri) { - targetClipsUri_ = targetClipsUri; - setParameter(std::string("TargetClipsUri"), targetClipsUri); -} - diff --git a/imm/src/model/CreateVideoAnalyseTaskRequest.cc b/imm/src/model/CreateVideoAnalyseTaskRequest.cc deleted file mode 100644 index 04ec1180c..000000000 --- a/imm/src/model/CreateVideoAnalyseTaskRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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::CreateVideoAnalyseTaskRequest; - -CreateVideoAnalyseTaskRequest::CreateVideoAnalyseTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateVideoAnalyseTask") { - setMethod(HttpRequest::Method::Post); -} - -CreateVideoAnalyseTaskRequest::~CreateVideoAnalyseTaskRequest() {} - -std::string CreateVideoAnalyseTaskRequest::getGrabType() const { - return grabType_; -} - -void CreateVideoAnalyseTaskRequest::setGrabType(const std::string &grabType) { - grabType_ = grabType; - setParameter(std::string("GrabType"), grabType); -} - -std::string CreateVideoAnalyseTaskRequest::getProject() const { - return project_; -} - -void CreateVideoAnalyseTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateVideoAnalyseTaskRequest::getStartTime() const { - return startTime_; -} - -void CreateVideoAnalyseTaskRequest::setStartTime(const std::string &startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), startTime); -} - -std::string CreateVideoAnalyseTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateVideoAnalyseTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateVideoAnalyseTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateVideoAnalyseTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateVideoAnalyseTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateVideoAnalyseTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string CreateVideoAnalyseTaskRequest::getEndTime() const { - return endTime_; -} - -void CreateVideoAnalyseTaskRequest::setEndTime(const std::string &endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), endTime); -} - -std::string CreateVideoAnalyseTaskRequest::getVideoUri() const { - return videoUri_; -} - -void CreateVideoAnalyseTaskRequest::setVideoUri(const std::string &videoUri) { - videoUri_ = videoUri; - setParameter(std::string("VideoUri"), videoUri); -} - -bool CreateVideoAnalyseTaskRequest::getSaveType() const { - return saveType_; -} - -void CreateVideoAnalyseTaskRequest::setSaveType(bool saveType) { - saveType_ = saveType; - setParameter(std::string("SaveType"), saveType ? "true" : "false"); -} - -std::string CreateVideoAnalyseTaskRequest::getInterval() const { - return interval_; -} - -void CreateVideoAnalyseTaskRequest::setInterval(const std::string &interval) { - interval_ = interval; - setParameter(std::string("Interval"), interval); -} - -std::string CreateVideoAnalyseTaskRequest::getTgtUri() const { - return tgtUri_; -} - -void CreateVideoAnalyseTaskRequest::setTgtUri(const std::string &tgtUri) { - tgtUri_ = tgtUri; - setParameter(std::string("TgtUri"), tgtUri); -} - diff --git a/imm/src/model/CreateVideoCompressTaskRequest.cc b/imm/src/model/CreateVideoCompressTaskRequest.cc deleted file mode 100644 index 7ce50daae..000000000 --- a/imm/src/model/CreateVideoCompressTaskRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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 deleted file mode 100644 index 928954e67..000000000 --- a/imm/src/model/CreateVideoCompressTaskResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..eafe54d9d --- /dev/null +++ b/imm/src/model/CreateVideoModerationTaskRequest.cc @@ -0,0 +1,136 @@ +/* + * 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::CreateVideoModerationTaskRequest; + +CreateVideoModerationTaskRequest::CreateVideoModerationTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "CreateVideoModerationTask") { + setMethod(HttpRequest::Method::Post); +} + +CreateVideoModerationTaskRequest::~CreateVideoModerationTaskRequest() {} + +std::string CreateVideoModerationTaskRequest::getUserData() const { + return userData_; +} + +void CreateVideoModerationTaskRequest::setUserData(const std::string &userData) { + userData_ = 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_; +} + +void CreateVideoModerationTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string CreateVideoModerationTaskRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void CreateVideoModerationTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +long CreateVideoModerationTaskRequest::getMaxFrames() const { + return maxFrames_; +} + +void CreateVideoModerationTaskRequest::setMaxFrames(long maxFrames) { + maxFrames_ = maxFrames; + setParameter(std::string("MaxFrames"), std::to_string(maxFrames)); +} + +CreateVideoModerationTaskRequest::CredentialConfig CreateVideoModerationTaskRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void CreateVideoModerationTaskRequest::setCredentialConfig(const CreateVideoModerationTaskRequest::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); +} + +std::string CreateVideoModerationTaskRequest::getReviewer() const { + return reviewer_; +} + +void CreateVideoModerationTaskRequest::setReviewer(const std::string &reviewer) { + reviewer_ = reviewer; + setParameter(std::string("Reviewer"), reviewer); +} + +std::map CreateVideoModerationTaskRequest::getTags() const { + return tags_; +} + +void CreateVideoModerationTaskRequest::setTags(const std::map &tags) { + tags_ = tags; + for(auto const &iter1 : tags) { + setParameter(std::string("Tags") + "." + iter1.first, iter1.second); + } +} + +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::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/CreateImageProcessTaskResult.cc b/imm/src/model/CreateVideoModerationTaskResult.cc similarity index 63% rename from imm/src/model/CreateImageProcessTaskResult.cc rename to imm/src/model/CreateVideoModerationTaskResult.cc index 01eb85ff9..253e80559 100644 --- a/imm/src/model/CreateImageProcessTaskResult.cc +++ b/imm/src/model/CreateVideoModerationTaskResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -CreateImageProcessTaskResult::CreateImageProcessTaskResult() : +CreateVideoModerationTaskResult::CreateVideoModerationTaskResult() : ServiceResult() {} -CreateImageProcessTaskResult::CreateImageProcessTaskResult(const std::string &payload) : +CreateVideoModerationTaskResult::CreateVideoModerationTaskResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateImageProcessTaskResult::~CreateImageProcessTaskResult() +CreateVideoModerationTaskResult::~CreateVideoModerationTaskResult() {} -void CreateImageProcessTaskResult::parse(const std::string &payload) +void CreateVideoModerationTaskResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -41,18 +41,18 @@ void CreateImageProcessTaskResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["TaskId"].isNull()) taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); } -std::string CreateImageProcessTaskResult::getTaskId()const +std::string CreateVideoModerationTaskResult::getTaskId()const { return taskId_; } -std::string CreateImageProcessTaskResult::getTaskType()const +std::string CreateVideoModerationTaskResult::getEventId()const { - return taskType_; + return eventId_; } diff --git a/imm/src/model/CreateVideoProduceTaskRequest.cc b/imm/src/model/CreateVideoProduceTaskRequest.cc deleted file mode 100644 index 235c3a821..000000000 --- a/imm/src/model/CreateVideoProduceTaskRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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::CreateVideoProduceTaskRequest; - -CreateVideoProduceTaskRequest::CreateVideoProduceTaskRequest() - : RpcServiceRequest("imm", "2017-09-06", "CreateVideoProduceTask") { - setMethod(HttpRequest::Method::Post); -} - -CreateVideoProduceTaskRequest::~CreateVideoProduceTaskRequest() {} - -std::string CreateVideoProduceTaskRequest::getProject() const { - return project_; -} - -void CreateVideoProduceTaskRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string CreateVideoProduceTaskRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateVideoProduceTaskRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateVideoProduceTaskRequest::getMusic() const { - return music_; -} - -void CreateVideoProduceTaskRequest::setMusic(const std::string &music) { - music_ = music; - setParameter(std::string("Music"), music); -} - -std::string CreateVideoProduceTaskRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void CreateVideoProduceTaskRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string CreateVideoProduceTaskRequest::getTargetUri() const { - return targetUri_; -} - -void CreateVideoProduceTaskRequest::setTargetUri(const std::string &targetUri) { - targetUri_ = targetUri; - setParameter(std::string("TargetUri"), targetUri); -} - -std::string CreateVideoProduceTaskRequest::getTemplateName() const { - return templateName_; -} - -void CreateVideoProduceTaskRequest::setTemplateName(const std::string &templateName) { - templateName_ = templateName; - setParameter(std::string("TemplateName"), templateName); -} - -int CreateVideoProduceTaskRequest::getHeight() const { - return height_; -} - -void CreateVideoProduceTaskRequest::setHeight(int height) { - height_ = height; - setParameter(std::string("Height"), std::to_string(height)); -} - -std::string CreateVideoProduceTaskRequest::getCustomMessage() const { - return customMessage_; -} - -void CreateVideoProduceTaskRequest::setCustomMessage(const std::string &customMessage) { - customMessage_ = customMessage; - setParameter(std::string("CustomMessage"), customMessage); -} - -std::string CreateVideoProduceTaskRequest::getImages() const { - return images_; -} - -void CreateVideoProduceTaskRequest::setImages(const std::string &images) { - images_ = images; - setParameter(std::string("Images"), images); -} - -std::string CreateVideoProduceTaskRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void CreateVideoProduceTaskRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -int CreateVideoProduceTaskRequest::getWidth() const { - return width_; -} - -void CreateVideoProduceTaskRequest::setWidth(int width) { - width_ = width; - setParameter(std::string("Width"), std::to_string(width)); -} - diff --git a/imm/src/model/CreateVideoProduceTaskResult.cc b/imm/src/model/CreateVideoProduceTaskResult.cc deleted file mode 100644 index a7d1af13e..000000000 --- a/imm/src/model/CreateVideoProduceTaskResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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; - -CreateVideoProduceTaskResult::CreateVideoProduceTaskResult() : - ServiceResult() -{} - -CreateVideoProduceTaskResult::CreateVideoProduceTaskResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateVideoProduceTaskResult::~CreateVideoProduceTaskResult() -{} - -void CreateVideoProduceTaskResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); - -} - -std::string CreateVideoProduceTaskResult::getTaskId()const -{ - return taskId_; -} - -std::string CreateVideoProduceTaskResult::getTaskType()const -{ - return taskType_; -} - diff --git a/imm/src/model/DecodeBlindWatermarkRequest.cc b/imm/src/model/DecodeBlindWatermarkRequest.cc deleted file mode 100644 index 24adce9e2..000000000 --- a/imm/src/model/DecodeBlindWatermarkRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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 deleted file mode 100644 index 1cc501a53..000000000 --- a/imm/src/model/DecodeBlindWatermarkResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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["Content"].isNull()) - content_ = value["Content"].asString(); - if(!value["TargetUri"].isNull()) - targetUri_ = value["TargetUri"].asString(); - -} - -std::string DecodeBlindWatermarkResult::getContent()const -{ - return content_; -} - -std::string DecodeBlindWatermarkResult::getTargetUri()const -{ - return targetUri_; -} - diff --git a/imm/src/model/DeleteBindingRequest.cc b/imm/src/model/DeleteBindingRequest.cc new file mode 100644 index 000000000..6c82a211f --- /dev/null +++ b/imm/src/model/DeleteBindingRequest.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::DeleteBindingRequest; + +DeleteBindingRequest::DeleteBindingRequest() + : RpcServiceRequest("imm", "2020-09-30", "DeleteBinding") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DeleteBindingRequest::setProjectName(const std::string &projectName) { + projectName_ = 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_; +} + +void DeleteBindingRequest::setCleanup(bool cleanup) { + cleanup_ = cleanup; + setParameter(std::string("Cleanup"), cleanup ? "true" : "false"); +} + diff --git a/imm/src/model/DeleteOfficeConversionTaskResult.cc b/imm/src/model/DeleteBindingResult.cc similarity index 70% rename from imm/src/model/DeleteOfficeConversionTaskResult.cc rename to imm/src/model/DeleteBindingResult.cc index 3ba5a0500..c11517cc4 100644 --- a/imm/src/model/DeleteOfficeConversionTaskResult.cc +++ b/imm/src/model/DeleteBindingResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult() : +DeleteBindingResult::DeleteBindingResult() : ServiceResult() {} -DeleteOfficeConversionTaskResult::DeleteOfficeConversionTaskResult(const std::string &payload) : +DeleteBindingResult::DeleteBindingResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteOfficeConversionTaskResult::~DeleteOfficeConversionTaskResult() +DeleteBindingResult::~DeleteBindingResult() {} -void DeleteOfficeConversionTaskResult::parse(const std::string &payload) +void DeleteBindingResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/imm/src/model/DeleteDatasetRequest.cc b/imm/src/model/DeleteDatasetRequest.cc new file mode 100644 index 000000000..642ccd907 --- /dev/null +++ b/imm/src/model/DeleteDatasetRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::DeleteDatasetRequest; + +DeleteDatasetRequest::DeleteDatasetRequest() + : RpcServiceRequest("imm", "2020-09-30", "DeleteDataset") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DeleteDatasetRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + diff --git a/imm/src/model/DeleteDatasetResult.cc b/imm/src/model/DeleteDatasetResult.cc new file mode 100644 index 000000000..0e9c37443 --- /dev/null +++ b/imm/src/model/DeleteDatasetResult.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; + +DeleteDatasetResult::DeleteDatasetResult() : + ServiceResult() +{} + +DeleteDatasetResult::DeleteDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatasetResult::~DeleteDatasetResult() +{} + +void DeleteDatasetResult::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/DeleteFileMetaRequest.cc b/imm/src/model/DeleteFileMetaRequest.cc new file mode 100644 index 000000000..326ee4303 --- /dev/null +++ b/imm/src/model/DeleteFileMetaRequest.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::DeleteFileMetaRequest; + +DeleteFileMetaRequest::DeleteFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "DeleteFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DeleteFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string DeleteFileMetaRequest::getURI() const { + return uRI_; +} + +void DeleteFileMetaRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/DeleteImageJobResult.cc b/imm/src/model/DeleteFileMetaResult.cc similarity index 77% rename from imm/src/model/DeleteImageJobResult.cc rename to imm/src/model/DeleteFileMetaResult.cc index 30d3318bd..2b0bce2c2 100644 --- a/imm/src/model/DeleteImageJobResult.cc +++ b/imm/src/model/DeleteFileMetaResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteImageJobResult::DeleteImageJobResult() : +DeleteFileMetaResult::DeleteFileMetaResult() : ServiceResult() {} -DeleteImageJobResult::DeleteImageJobResult(const std::string &payload) : +DeleteFileMetaResult::DeleteFileMetaResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteImageJobResult::~DeleteImageJobResult() +DeleteFileMetaResult::~DeleteFileMetaResult() {} -void DeleteImageJobResult::parse(const std::string &payload) +void DeleteFileMetaResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/imm/src/model/DeleteImageJobRequest.cc b/imm/src/model/DeleteImageJobRequest.cc deleted file mode 100644 index 3476b7d0a..000000000 --- a/imm/src/model/DeleteImageJobRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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::DeleteImageJobRequest; - -DeleteImageJobRequest::DeleteImageJobRequest() - : RpcServiceRequest("imm", "2017-09-06", "DeleteImageJob") { - setMethod(HttpRequest::Method::Post); -} - -DeleteImageJobRequest::~DeleteImageJobRequest() {} - -std::string DeleteImageJobRequest::getProject() const { - return project_; -} - -void DeleteImageJobRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string DeleteImageJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteImageJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteImageJobRequest::getJobId() const { - return jobId_; -} - -void DeleteImageJobRequest::setJobId(const std::string &jobId) { - jobId_ = jobId; - setParameter(std::string("JobId"), jobId); -} - -std::string DeleteImageJobRequest::getJobType() const { - return jobType_; -} - -void DeleteImageJobRequest::setJobType(const std::string &jobType) { - jobType_ = jobType; - setParameter(std::string("JobType"), jobType); -} - diff --git a/imm/src/model/DeleteImageRequest.cc b/imm/src/model/DeleteImageRequest.cc deleted file mode 100644 index a37cc28a7..000000000 --- a/imm/src/model/DeleteImageRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/DeleteOfficeConversionTaskRequest.cc b/imm/src/model/DeleteOfficeConversionTaskRequest.cc deleted file mode 100644 index 2cc1c7d41..000000000 --- a/imm/src/model/DeleteOfficeConversionTaskRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/DeleteProjectRequest.cc b/imm/src/model/DeleteProjectRequest.cc index 12a79612a..82e393e4f 100644 --- a/imm/src/model/DeleteProjectRequest.cc +++ b/imm/src/model/DeleteProjectRequest.cc @@ -19,27 +19,18 @@ using AlibabaCloud::Imm::Model::DeleteProjectRequest; DeleteProjectRequest::DeleteProjectRequest() - : RpcServiceRequest("imm", "2017-09-06", "DeleteProject") { + : RpcServiceRequest("imm", "2020-09-30", "DeleteProject") { setMethod(HttpRequest::Method::Post); } DeleteProjectRequest::~DeleteProjectRequest() {} -std::string DeleteProjectRequest::getProject() const { - return project_; +std::string DeleteProjectRequest::getProjectName() const { + return 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); +void DeleteProjectRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } diff --git a/imm/src/model/DeleteSetRequest.cc b/imm/src/model/DeleteSetRequest.cc deleted file mode 100644 index 7c1005578..000000000 --- a/imm/src/model/DeleteSetRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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/DeleteStoryRequest.cc b/imm/src/model/DeleteStoryRequest.cc new file mode 100644 index 000000000..c0e2a0c70 --- /dev/null +++ b/imm/src/model/DeleteStoryRequest.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::DeleteStoryRequest; + +DeleteStoryRequest::DeleteStoryRequest() + : RpcServiceRequest("imm", "2020-09-30", "DeleteStory") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DeleteStoryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string DeleteStoryRequest::getObjectId() const { + return objectId_; +} + +void DeleteStoryRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setParameter(std::string("ObjectId"), objectId); +} + diff --git a/imm/src/model/DeleteStoryResult.cc b/imm/src/model/DeleteStoryResult.cc new file mode 100644 index 000000000..732bdb533 --- /dev/null +++ b/imm/src/model/DeleteStoryResult.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; + +DeleteStoryResult::DeleteStoryResult() : + ServiceResult() +{} + +DeleteStoryResult::DeleteStoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStoryResult::~DeleteStoryResult() +{} + +void DeleteStoryResult::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/DeleteVideoRequest.cc b/imm/src/model/DeleteVideoRequest.cc deleted file mode 100644 index 1fbb1a8bb..000000000 --- a/imm/src/model/DeleteVideoRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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/DeleteVideoTaskRequest.cc b/imm/src/model/DeleteVideoTaskRequest.cc deleted file mode 100644 index da1ec180a..000000000 --- a/imm/src/model/DeleteVideoTaskRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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/DescribeRegionsResult.cc b/imm/src/model/DescribeRegionsResult.cc deleted file mode 100644 index 7e876568a..000000000 --- a/imm/src/model/DescribeRegionsResult.cc +++ /dev/null @@ -1,61 +0,0 @@ -/* - * 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; - -DescribeRegionsResult::DescribeRegionsResult() : - ServiceResult() -{} - -DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeRegionsResult::~DescribeRegionsResult() -{} - -void DescribeRegionsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto regionsNode = value["Regions"]; - auto allRegionNode = regionsNode["Region"]["RegionItem"]; - for (auto regionsNodeRegionRegionItem : allRegionNode) - { - Regions::RegionItem regionItemObject; - if(!regionsNodeRegionRegionItem["RegionId"].isNull()) - regionItemObject.regionId = regionsNodeRegionRegionItem["RegionId"].asString(); - auto allProjectTypes = value["ProjectTypes"]["ProjectTypes"]; - for (auto value : allProjectTypes) - regionItemObject.projectTypes.push_back(value.asString()); - regions_.region.push_back(regionItemObject); - } - -} - -DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const -{ - return regions_; -} - diff --git a/imm/src/model/OpenImmServiceRequest.cc b/imm/src/model/DetachOSSBucketRequest.cc similarity index 55% rename from imm/src/model/OpenImmServiceRequest.cc rename to imm/src/model/DetachOSSBucketRequest.cc index 98e390df6..9312c77fd 100644 --- a/imm/src/model/OpenImmServiceRequest.cc +++ b/imm/src/model/DetachOSSBucketRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Imm::Model::OpenImmServiceRequest; +using AlibabaCloud::Imm::Model::DetachOSSBucketRequest; -OpenImmServiceRequest::OpenImmServiceRequest() - : RpcServiceRequest("imm", "2017-09-06", "OpenImmService") { +DetachOSSBucketRequest::DetachOSSBucketRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetachOSSBucket") { setMethod(HttpRequest::Method::Post); } -OpenImmServiceRequest::~OpenImmServiceRequest() {} +DetachOSSBucketRequest::~DetachOSSBucketRequest() {} -long OpenImmServiceRequest::getOwnerId() const { - return ownerId_; +std::string DetachOSSBucketRequest::getOSSBucket() const { + return oSSBucket_; } -void OpenImmServiceRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); +void DetachOSSBucketRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); } diff --git a/imm/src/model/DetachOSSBucketResult.cc b/imm/src/model/DetachOSSBucketResult.cc new file mode 100644 index 000000000..4ff0106d6 --- /dev/null +++ b/imm/src/model/DetachOSSBucketResult.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; + +DetachOSSBucketResult::DetachOSSBucketResult() : + ServiceResult() +{} + +DetachOSSBucketResult::DetachOSSBucketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetachOSSBucketResult::~DetachOSSBucketResult() +{} + +void DetachOSSBucketResult::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 db001abec..57db5ab47 100644 --- a/imm/src/model/DetectImageBodiesRequest.cc +++ b/imm/src/model/DetectImageBodiesRequest.cc @@ -19,36 +19,51 @@ using AlibabaCloud::Imm::Model::DetectImageBodiesRequest; DetectImageBodiesRequest::DetectImageBodiesRequest() - : RpcServiceRequest("imm", "2017-09-06", "DetectImageBodies") { + : RpcServiceRequest("imm", "2020-09-30", "DetectImageBodies") { setMethod(HttpRequest::Method::Post); } DetectImageBodiesRequest::~DetectImageBodiesRequest() {} -std::string DetectImageBodiesRequest::getProject() const { - return project_; +std::string DetectImageBodiesRequest::getProjectName() const { + return projectName_; } -void DetectImageBodiesRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); +void DetectImageBodiesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -std::string DetectImageBodiesRequest::getAccessKeyId() const { - return accessKeyId_; +DetectImageBodiesRequest::CredentialConfig DetectImageBodiesRequest::getCredentialConfig() const { + return credentialConfig_; } -void DetectImageBodiesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), 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); } -std::string DetectImageBodiesRequest::getImageUri() const { - return imageUri_; +std::string DetectImageBodiesRequest::getSourceURI() const { + return sourceURI_; } -void DetectImageBodiesRequest::setImageUri(const std::string &imageUri) { - imageUri_ = imageUri; - setParameter(std::string("ImageUri"), 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)); } diff --git a/imm/src/model/DetectImageBodiesResult.cc b/imm/src/model/DetectImageBodiesResult.cc index d38534314..5a7a5895e 100644 --- a/imm/src/model/DetectImageBodiesResult.cc +++ b/imm/src/model/DetectImageBodiesResult.cc @@ -43,21 +43,19 @@ void DetectImageBodiesResult::parse(const std::string &payload) for (auto valueBodiesBodiesItem : allBodiesNode) { BodiesItem bodiesObject; - 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()); + 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()); bodies_.push_back(bodiesObject); } - if(!value["ImageUri"].isNull()) - imageUri_ = value["ImageUri"].asString(); } @@ -66,8 +64,3 @@ 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 new file mode 100644 index 000000000..3575cde2e --- /dev/null +++ b/imm/src/model/DetectImageCodesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::DetectImageCodesRequest; + +DetectImageCodesRequest::DetectImageCodesRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetectImageCodes") { + setMethod(HttpRequest::Method::Post); +} + +DetectImageCodesRequest::~DetectImageCodesRequest() {} + +std::string DetectImageCodesRequest::getProjectName() const { + return projectName_; +} + +void DetectImageCodesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +DetectImageCodesRequest::CredentialConfig DetectImageCodesRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void DetectImageCodesRequest::setCredentialConfig(const DetectImageCodesRequest::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); +} + +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/DetectImageCodesResult.cc b/imm/src/model/DetectImageCodesResult.cc new file mode 100644 index 000000000..e712da4d8 --- /dev/null +++ b/imm/src/model/DetectImageCodesResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +DetectImageCodesResult::DetectImageCodesResult() : + ServiceResult() +{} + +DetectImageCodesResult::DetectImageCodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageCodesResult::~DetectImageCodesResult() +{} + +void DetectImageCodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCodesNode = value["Codes"]["CodesItem"]; + for (auto valueCodesCodesItem : allCodesNode) + { + CodesItem codesObject; + if(!valueCodesCodesItem["Content"].isNull()) + codesObject.content = valueCodesCodesItem["Content"].asString(); + if(!valueCodesCodesItem["Confidence"].isNull()) + codesObject.confidence = std::stof(valueCodesCodesItem["Confidence"].asString()); + if(!valueCodesCodesItem["Type"].isNull()) + codesObject.type = valueCodesCodesItem["Type"].asString(); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + codesObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + codesObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + codesObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + codesObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + codes_.push_back(codesObject); + } + +} + +std::vector DetectImageCodesResult::getCodes()const +{ + return codes_; +} + diff --git a/imm/src/model/DetectImageCroppingRequest.cc b/imm/src/model/DetectImageCroppingRequest.cc new file mode 100644 index 000000000..c11ec22d0 --- /dev/null +++ b/imm/src/model/DetectImageCroppingRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::DetectImageCroppingRequest; + +DetectImageCroppingRequest::DetectImageCroppingRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetectImageCropping") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DetectImageCroppingRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +DetectImageCroppingRequest::CredentialConfig DetectImageCroppingRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void DetectImageCroppingRequest::setCredentialConfig(const DetectImageCroppingRequest::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); +} + +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/DetectImageCroppingResult.cc b/imm/src/model/DetectImageCroppingResult.cc new file mode 100644 index 000000000..d09ab4532 --- /dev/null +++ b/imm/src/model/DetectImageCroppingResult.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; + +DetectImageCroppingResult::DetectImageCroppingResult() : + ServiceResult() +{} + +DetectImageCroppingResult::DetectImageCroppingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageCroppingResult::~DetectImageCroppingResult() +{} + +void DetectImageCroppingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCroppingsNode = value["Croppings"]["CroppingsItem"]; + for (auto valueCroppingsCroppingsItem : allCroppingsNode) + { + CroppingsItem croppingsObject; + if(!valueCroppingsCroppingsItem["AspectRatio"].isNull()) + croppingsObject.aspectRatio = valueCroppingsCroppingsItem["AspectRatio"].asString(); + if(!valueCroppingsCroppingsItem["Confidence"].isNull()) + croppingsObject.confidence = std::stof(valueCroppingsCroppingsItem["Confidence"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + croppingsObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + croppingsObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + croppingsObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + croppingsObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + croppings_.push_back(croppingsObject); + } + +} + +std::vector DetectImageCroppingResult::getCroppings()const +{ + return croppings_; +} + diff --git a/imm/src/model/DetectImageFacesRequest.cc b/imm/src/model/DetectImageFacesRequest.cc index 01cf925c8..b91ad23f2 100644 --- a/imm/src/model/DetectImageFacesRequest.cc +++ b/imm/src/model/DetectImageFacesRequest.cc @@ -19,45 +19,42 @@ using AlibabaCloud::Imm::Model::DetectImageFacesRequest; DetectImageFacesRequest::DetectImageFacesRequest() - : RpcServiceRequest("imm", "2017-09-06", "DetectImageFaces") { + : RpcServiceRequest("imm", "2020-09-30", "DetectImageFaces") { setMethod(HttpRequest::Method::Post); } DetectImageFacesRequest::~DetectImageFacesRequest() {} -std::string DetectImageFacesRequest::getProject() const { - return project_; +std::string DetectImageFacesRequest::getProjectName() const { + return projectName_; } -void DetectImageFacesRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); +void DetectImageFacesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -std::string DetectImageFacesRequest::getAccessKeyId() const { - return accessKeyId_; +DetectImageFacesRequest::CredentialConfig DetectImageFacesRequest::getCredentialConfig() const { + return credentialConfig_; } -void DetectImageFacesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), 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); } -std::string DetectImageFacesRequest::getRealUid() const { - return realUid_; +std::string DetectImageFacesRequest::getSourceURI() const { + return 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); +void DetectImageFacesRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); } diff --git a/imm/src/model/DetectImageFacesResult.cc b/imm/src/model/DetectImageFacesResult.cc index 4a4609a44..47473c680 100644 --- a/imm/src/model/DetectImageFacesResult.cc +++ b/imm/src/model/DetectImageFacesResult.cc @@ -43,84 +43,75 @@ void DetectImageFacesResult::parse(const std::string &payload) for (auto valueFacesFacesItem : allFacesNode) { FacesItem facesObject; - if(!valueFacesFacesItem["AttractiveConfidence"].isNull()) - facesObject.attractiveConfidence = std::stof(valueFacesFacesItem["AttractiveConfidence"].asString()); + 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["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 = 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["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["Attractive"].isNull()) facesObject.attractive = std::stof(valueFacesFacesItem["Attractive"].asString()); - 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"]; + 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(!headPoseNode["Pitch"].isNull()) - facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + facesObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); if(!headPoseNode["Roll"].isNull()) - facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + facesObject.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()); + facesObject.headPose.yaw = std::stof(headPoseNode["Yaw"].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 new file mode 100644 index 000000000..c332e09c6 --- /dev/null +++ b/imm/src/model/DetectImageLabelsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::DetectImageLabelsRequest; + +DetectImageLabelsRequest::DetectImageLabelsRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetectImageLabels") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DetectImageLabelsRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +DetectImageLabelsRequest::CredentialConfig DetectImageLabelsRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void DetectImageLabelsRequest::setCredentialConfig(const DetectImageLabelsRequest::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); +} + +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/DetectImageLabelsResult.cc b/imm/src/model/DetectImageLabelsResult.cc new file mode 100644 index 000000000..664f5470b --- /dev/null +++ b/imm/src/model/DetectImageLabelsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +DetectImageLabelsResult::DetectImageLabelsResult() : + ServiceResult() +{} + +DetectImageLabelsResult::DetectImageLabelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageLabelsResult::~DetectImageLabelsResult() +{} + +void DetectImageLabelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLabelsNode = value["Labels"]["LabelsItem"]; + for (auto valueLabelsLabelsItem : allLabelsNode) + { + LabelsItem labelsObject; + if(!valueLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueLabelsLabelsItem["Language"].asString(); + if(!valueLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueLabelsLabelsItem["LabelName"].asString(); + if(!valueLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueLabelsLabelsItem["LabelLevel"].asString()); + if(!valueLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueLabelsLabelsItem["CentricScore"].asString()); + labels_.push_back(labelsObject); + } + +} + +std::vector DetectImageLabelsResult::getLabels()const +{ + return labels_; +} + diff --git a/imm/src/model/DetectImageQRCodesRequest.cc b/imm/src/model/DetectImageQRCodesRequest.cc deleted file mode 100644 index 5dca3e76c..000000000 --- a/imm/src/model/DetectImageQRCodesRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index efa7d4815..000000000 --- a/imm/src/model/DetectImageQRCodesResult.cc +++ /dev/null @@ -1,73 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..fdc496cd3 --- /dev/null +++ b/imm/src/model/DetectImageScoreRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::DetectImageScoreRequest; + +DetectImageScoreRequest::DetectImageScoreRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetectImageScore") { + setMethod(HttpRequest::Method::Post); +} + +DetectImageScoreRequest::~DetectImageScoreRequest() {} + +std::string DetectImageScoreRequest::getProjectName() const { + return projectName_; +} + +void DetectImageScoreRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +DetectImageScoreRequest::CredentialConfig DetectImageScoreRequest::getCredentialConfig() const { + return credentialConfig_; +} + +void DetectImageScoreRequest::setCredentialConfig(const DetectImageScoreRequest::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); +} + +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/DeleteImageResult.cc b/imm/src/model/DetectImageScoreResult.cc similarity index 60% rename from imm/src/model/DeleteImageResult.cc rename to imm/src/model/DetectImageScoreResult.cc index 5231f1d6e..f70c930ed 100644 --- a/imm/src/model/DeleteImageResult.cc +++ b/imm/src/model/DetectImageScoreResult.cc @@ -14,45 +14,39 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteImageResult::DeleteImageResult() : +DetectImageScoreResult::DetectImageScoreResult() : ServiceResult() {} -DeleteImageResult::DeleteImageResult(const std::string &payload) : +DetectImageScoreResult::DetectImageScoreResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteImageResult::~DeleteImageResult() +DetectImageScoreResult::~DetectImageScoreResult() {} -void DeleteImageResult::parse(const std::string &payload) +void DetectImageScoreResult::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(); + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + imageScore_.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); } -std::string DeleteImageResult::getSetId()const +DetectImageScoreResult::ImageScore DetectImageScoreResult::getImageScore()const { - return setId_; -} - -std::string DeleteImageResult::getImageUri()const -{ - return imageUri_; + return imageScore_; } diff --git a/imm/src/model/DetectImageTagsRequest.cc b/imm/src/model/DetectImageTagsRequest.cc deleted file mode 100644 index 5b2977876..000000000 --- a/imm/src/model/DetectImageTagsRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 746b9828e..000000000 --- a/imm/src/model/DetectImageTagsResult.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * 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 deleted file mode 100644 index d4068d14f..000000000 --- a/imm/src/model/DetectQRCodesRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index f72d69c2d..000000000 --- a/imm/src/model/DetectQRCodesResult.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..e46b9ee73 --- /dev/null +++ b/imm/src/model/DetectTextAnomalyRequest.cc @@ -0,0 +1,45 @@ +/* + * 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::DetectTextAnomalyRequest; + +DetectTextAnomalyRequest::DetectTextAnomalyRequest() + : RpcServiceRequest("imm", "2020-09-30", "DetectTextAnomaly") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void DetectTextAnomalyRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + diff --git a/imm/src/model/DetectTextAnomalyResult.cc b/imm/src/model/DetectTextAnomalyResult.cc new file mode 100644 index 000000000..d2a130244 --- /dev/null +++ b/imm/src/model/DetectTextAnomalyResult.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; + +DetectTextAnomalyResult::DetectTextAnomalyResult() : + ServiceResult() +{} + +DetectTextAnomalyResult::DetectTextAnomalyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectTextAnomalyResult::~DetectTextAnomalyResult() +{} + +void DetectTextAnomalyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Suggestion"].isNull()) + suggestion_ = value["Suggestion"].asString(); + +} + +std::string DetectTextAnomalyResult::getSuggestion()const +{ + return suggestion_; +} + diff --git a/imm/src/model/EncodeBlindWatermarkRequest.cc b/imm/src/model/EncodeBlindWatermarkRequest.cc deleted file mode 100644 index e0123dad5..000000000 --- a/imm/src/model/EncodeBlindWatermarkRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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 deleted file mode 100644 index 09886220b..000000000 --- a/imm/src/model/EncodeBlindWatermarkResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 deleted file mode 100644 index f879f1457..000000000 --- a/imm/src/model/FindImagesRequest.cc +++ /dev/null @@ -1,297 +0,0 @@ -/* - * 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 deleted file mode 100644 index e99c4a9be..000000000 --- a/imm/src/model/FindImagesResult.cc +++ /dev/null @@ -1,305 +0,0 @@ -/* - * 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 deleted file mode 100644 index 248a92b1d..000000000 --- a/imm/src/model/FindSimilarFacesRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * 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 deleted file mode 100644 index 0d381cfb7..000000000 --- a/imm/src/model/FindSimilarFacesResult.cc +++ /dev/null @@ -1,97 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..dd98734fc --- /dev/null +++ b/imm/src/model/FuzzyQueryRequest.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::FuzzyQueryRequest; + +FuzzyQueryRequest::FuzzyQueryRequest() + : RpcServiceRequest("imm", "2020-09-30", "FuzzyQuery") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void FuzzyQueryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string FuzzyQueryRequest::getQuery() const { + return query_; +} + +void FuzzyQueryRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("Query"), query); +} + +long FuzzyQueryRequest::getMaxResults() const { + return maxResults_; +} + +void FuzzyQueryRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/imm/src/model/FuzzyQueryResult.cc b/imm/src/model/FuzzyQueryResult.cc new file mode 100644 index 000000000..a9d22229d --- /dev/null +++ b/imm/src/model/FuzzyQueryResult.cc @@ -0,0 +1,538 @@ +/* + * 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; + +FuzzyQueryResult::FuzzyQueryResult() : + ServiceResult() +{} + +FuzzyQueryResult::FuzzyQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FuzzyQueryResult::~FuzzyQueryResult() +{} + +void FuzzyQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueFilesFilesItem["OwnerId"].asString(); + if(!valueFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueFilesFilesItem["ProjectName"].asString(); + if(!valueFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueFilesFilesItem["DatasetName"].asString(); + if(!valueFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueFilesFilesItem["ObjectType"].asString(); + if(!valueFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueFilesFilesItem["ObjectId"].asString(); + if(!valueFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueFilesFilesItem["UpdateTime"].asString(); + if(!valueFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueFilesFilesItem["CreateTime"].asString(); + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueFilesFilesItem["OSSURI"].asString(); + if(!valueFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueFilesFilesItem["Filename"].asString(); + if(!valueFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueFilesFilesItem["MediaType"].asString(); + if(!valueFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueFilesFilesItem["ContentType"].asString(); + if(!valueFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueFilesFilesItem["Size"].asString()); + if(!valueFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueFilesFilesItem["FileHash"].asString(); + if(!valueFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueFilesFilesItem["FileModifiedTime"].asString(); + if(!valueFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueFilesFilesItem["FileCreateTime"].asString(); + if(!valueFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueFilesFilesItem["FileAccessTime"].asString(); + if(!valueFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueFilesFilesItem["ProduceTime"].asString(); + if(!valueFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueFilesFilesItem["LatLong"].asString(); + if(!valueFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueFilesFilesItem["Timezone"].asString(); + if(!valueFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueFilesFilesItem["TravelClusterId"].asString(); + if(!valueFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueFilesFilesItem["Orientation"].asString()); + if(!valueFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueFilesFilesItem["FigureCount"].asString()); + if(!valueFilesFilesItem["Title"].isNull()) + filesObject.title = valueFilesFilesItem["Title"].asString(); + if(!valueFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueFilesFilesItem["ImageWidth"].asString()); + if(!valueFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueFilesFilesItem["ImageHeight"].asString()); + if(!valueFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueFilesFilesItem["EXIF"].asString(); + if(!valueFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueFilesFilesItem["VideoWidth"].asString()); + if(!valueFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueFilesFilesItem["VideoHeight"].asString()); + if(!valueFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueFilesFilesItem["Artist"].asString(); + if(!valueFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueFilesFilesItem["AlbumArtist"].asString(); + if(!valueFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueFilesFilesItem["Composer"].asString(); + if(!valueFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueFilesFilesItem["Performer"].asString(); + if(!valueFilesFilesItem["Language"].isNull()) + filesObject.language = valueFilesFilesItem["Language"].asString(); + if(!valueFilesFilesItem["Album"].isNull()) + filesObject.album = valueFilesFilesItem["Album"].asString(); + if(!valueFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); + if(!valueFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); + if(!valueFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueFilesFilesItem["ETag"].asString(); + if(!valueFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueFilesFilesItem["CacheControl"].asString(); + if(!valueFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueFilesFilesItem["ContentDisposition"].asString(); + if(!valueFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueFilesFilesItem["ContentEncoding"].asString(); + if(!valueFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueFilesFilesItem["ContentLanguage"].asString(); + if(!valueFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueFilesFilesItem["OSSStorageClass"].asString(); + if(!valueFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueFilesFilesItem["OSSCRC64"].asString(); + if(!valueFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueFilesFilesItem["ObjectACL"].asString(); + if(!valueFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueFilesFilesItem["ContentMd5"].asString(); + if(!valueFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueFilesFilesItem["OSSUserMeta"].asString(); + if(!valueFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueFilesFilesItem["OSSTagging"].asString(); + if(!valueFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueFilesFilesItem["OSSExpiration"].asString(); + if(!valueFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueFilesFilesItem["OSSVersionId"].asString(); + if(!valueFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueFilesFilesItem["OSSObjectType"].asString(); + if(!valueFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueFilesFilesItem["CustomId"].asString(); + if(!valueFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueFilesFilesItem["CustomLabels"].asString(); + if(!valueFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueFilesFilesItem["StreamCount"].asString()); + if(!valueFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueFilesFilesItem["ProgramCount"].asString()); + if(!valueFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueFilesFilesItem["FormatName"].asString(); + if(!valueFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueFilesFilesItem["FormatLongName"].asString(); + if(!valueFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueFilesFilesItem["StartTime"].asString(); + if(!valueFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueFilesFilesItem["Bitrate"].asString()); + if(!valueFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + FilesItem::AddressesItem addressesObject; + if(!valueFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + FilesItem::FiguresItem figuresObject; + if(!valueFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + FilesItem::LabelsItem labelsObject; + if(!valueFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + FilesItem::OCRContentsItem oCRContentsObject; + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + FilesItem::SubtitlesItem subtitlesObject; + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + FilesItem::AudioCoversItem audioCoversObject; + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + files_.push_back(filesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string FuzzyQueryResult::getNextToken()const +{ + return nextToken_; +} + +std::vector FuzzyQueryResult::getFiles()const +{ + return files_; +} + diff --git a/imm/src/model/GetBindingRequest.cc b/imm/src/model/GetBindingRequest.cc new file mode 100644 index 000000000..b80eedf00 --- /dev/null +++ b/imm/src/model/GetBindingRequest.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::GetBindingRequest; + +GetBindingRequest::GetBindingRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetBinding") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetBindingRequest::setOwner(const std::string &owner) { + owner_ = owner; + setParameter(std::string("Owner"), owner); +} + +std::string GetBindingRequest::getProjectName() const { + return projectName_; +} + +void GetBindingRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetBindingRequest::getURI() const { + return uRI_; +} + +void GetBindingRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/GetBindingResult.cc b/imm/src/model/GetBindingResult.cc new file mode 100644 index 000000000..fa5253ab2 --- /dev/null +++ b/imm/src/model/GetBindingResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetBindingResult::GetBindingResult() : + ServiceResult() +{} + +GetBindingResult::GetBindingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBindingResult::~GetBindingResult() +{} + +void GetBindingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto bindingNode = value["Binding"]; + if(!bindingNode["ProjectName"].isNull()) + binding_.projectName = bindingNode["ProjectName"].asString(); + if(!bindingNode["DatasetName"].isNull()) + binding_.datasetName = bindingNode["DatasetName"].asString(); + if(!bindingNode["URI"].isNull()) + binding_.uRI = bindingNode["URI"].asString(); + if(!bindingNode["State"].isNull()) + binding_.state = bindingNode["State"].asString(); + if(!bindingNode["Phase"].isNull()) + binding_.phase = bindingNode["Phase"].asString(); + if(!bindingNode["Detail"].isNull()) + binding_.detail = bindingNode["Detail"].asString(); + if(!bindingNode["CreateTime"].isNull()) + binding_.createTime = bindingNode["CreateTime"].asString(); + if(!bindingNode["UpdateTime"].isNull()) + binding_.updateTime = bindingNode["UpdateTime"].asString(); + +} + +GetBindingResult::Binding GetBindingResult::getBinding()const +{ + return binding_; +} + diff --git a/imm/src/model/GetContentKeyRequest.cc b/imm/src/model/GetContentKeyRequest.cc deleted file mode 100644 index 95e4e39c0..000000000 --- a/imm/src/model/GetContentKeyRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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::GetContentKeyRequest; - -GetContentKeyRequest::GetContentKeyRequest() - : RpcServiceRequest("imm", "2017-09-06", "GetContentKey") { - setMethod(HttpRequest::Method::Post); -} - -GetContentKeyRequest::~GetContentKeyRequest() {} - -std::string GetContentKeyRequest::getProject() const { - return project_; -} - -void GetContentKeyRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string GetContentKeyRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void GetContentKeyRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string GetContentKeyRequest::getVersionId() const { - return versionId_; -} - -void GetContentKeyRequest::setVersionId(const std::string &versionId) { - versionId_ = versionId; - setParameter(std::string("VersionId"), versionId); -} - -std::string GetContentKeyRequest::getDRMServerId() const { - return dRMServerId_; -} - -void GetContentKeyRequest::setDRMServerId(const std::string &dRMServerId) { - dRMServerId_ = dRMServerId; - setParameter(std::string("DRMServerId"), dRMServerId); -} - -std::string GetContentKeyRequest::getKeyIds() const { - return keyIds_; -} - -void GetContentKeyRequest::setKeyIds(const std::string &keyIds) { - keyIds_ = keyIds; - setParameter(std::string("KeyIds"), keyIds); -} - diff --git a/imm/src/model/GetDRMLicenseRequest.cc b/imm/src/model/GetDRMLicenseRequest.cc deleted file mode 100644 index a5159ee52..000000000 --- a/imm/src/model/GetDRMLicenseRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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::GetDRMLicenseRequest; - -GetDRMLicenseRequest::GetDRMLicenseRequest() - : RpcServiceRequest("imm", "2017-09-06", "GetDRMLicense") { - setMethod(HttpRequest::Method::Post); -} - -GetDRMLicenseRequest::~GetDRMLicenseRequest() {} - -std::string GetDRMLicenseRequest::getProject() const { - return project_; -} - -void GetDRMLicenseRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string GetDRMLicenseRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void GetDRMLicenseRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string GetDRMLicenseRequest::getDRMType() const { - return dRMType_; -} - -void GetDRMLicenseRequest::setDRMType(const std::string &dRMType) { - dRMType_ = dRMType; - setParameter(std::string("DRMType"), dRMType); -} - -std::string GetDRMLicenseRequest::getDRMLicense() const { - return dRMLicense_; -} - -void GetDRMLicenseRequest::setDRMLicense(const std::string &dRMLicense) { - dRMLicense_ = dRMLicense; - setParameter(std::string("DRMLicense"), dRMLicense); -} - diff --git a/imm/src/model/GetDRMLicenseResult.cc b/imm/src/model/GetDRMLicenseResult.cc deleted file mode 100644 index 58312a339..000000000 --- a/imm/src/model/GetDRMLicenseResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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; - -GetDRMLicenseResult::GetDRMLicenseResult() : - ServiceResult() -{} - -GetDRMLicenseResult::GetDRMLicenseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDRMLicenseResult::~GetDRMLicenseResult() -{} - -void GetDRMLicenseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DeviceInfo"].isNull()) - deviceInfo_ = value["DeviceInfo"].asString(); - if(!value["DRMData"].isNull()) - dRMData_ = value["DRMData"].asString(); - -} - -std::string GetDRMLicenseResult::getDeviceInfo()const -{ - return deviceInfo_; -} - -std::string GetDRMLicenseResult::getDRMData()const -{ - return dRMData_; -} - diff --git a/imm/src/model/GetDatasetRequest.cc b/imm/src/model/GetDatasetRequest.cc new file mode 100644 index 000000000..f39a629cf --- /dev/null +++ b/imm/src/model/GetDatasetRequest.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::GetDatasetRequest; + +GetDatasetRequest::GetDatasetRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetDataset") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetDatasetRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +bool GetDatasetRequest::getWithStatistics() const { + return withStatistics_; +} + +void GetDatasetRequest::setWithStatistics(bool withStatistics) { + withStatistics_ = withStatistics; + setParameter(std::string("WithStatistics"), withStatistics ? "true" : "false"); +} + diff --git a/imm/src/model/GetDatasetResult.cc b/imm/src/model/GetDatasetResult.cc new file mode 100644 index 000000000..1c4bd92e1 --- /dev/null +++ b/imm/src/model/GetDatasetResult.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; + +GetDatasetResult::GetDatasetResult() : + ServiceResult() +{} + +GetDatasetResult::GetDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDatasetResult::~GetDatasetResult() +{} + +void GetDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto datasetNode = value["Dataset"]; + if(!datasetNode["ProjectName"].isNull()) + dataset_.projectName = datasetNode["ProjectName"].asString(); + if(!datasetNode["DatasetName"].isNull()) + dataset_.datasetName = datasetNode["DatasetName"].asString(); + if(!datasetNode["TemplateId"].isNull()) + dataset_.templateId = datasetNode["TemplateId"].asString(); + if(!datasetNode["CreateTime"].isNull()) + dataset_.createTime = datasetNode["CreateTime"].asString(); + if(!datasetNode["UpdateTime"].isNull()) + dataset_.updateTime = datasetNode["UpdateTime"].asString(); + if(!datasetNode["Description"].isNull()) + dataset_.description = datasetNode["Description"].asString(); + if(!datasetNode["DatasetMaxBindCount"].isNull()) + dataset_.datasetMaxBindCount = std::stol(datasetNode["DatasetMaxBindCount"].asString()); + if(!datasetNode["DatasetMaxFileCount"].isNull()) + dataset_.datasetMaxFileCount = std::stol(datasetNode["DatasetMaxFileCount"].asString()); + if(!datasetNode["DatasetMaxEntityCount"].isNull()) + dataset_.datasetMaxEntityCount = std::stol(datasetNode["DatasetMaxEntityCount"].asString()); + if(!datasetNode["DatasetMaxRelationCount"].isNull()) + dataset_.datasetMaxRelationCount = std::stol(datasetNode["DatasetMaxRelationCount"].asString()); + if(!datasetNode["DatasetMaxTotalFileSize"].isNull()) + dataset_.datasetMaxTotalFileSize = std::stol(datasetNode["DatasetMaxTotalFileSize"].asString()); + if(!datasetNode["BindCount"].isNull()) + dataset_.bindCount = std::stol(datasetNode["BindCount"].asString()); + if(!datasetNode["FileCount"].isNull()) + dataset_.fileCount = std::stol(datasetNode["FileCount"].asString()); + if(!datasetNode["TotalFileSize"].isNull()) + dataset_.totalFileSize = std::stol(datasetNode["TotalFileSize"].asString()); + +} + +GetDatasetResult::Dataset GetDatasetResult::getDataset()const +{ + return dataset_; +} + diff --git a/imm/src/model/GetDetectVideoLabelsResultRequest.cc b/imm/src/model/GetDetectVideoLabelsResultRequest.cc new file mode 100644 index 000000000..e7b1a322e --- /dev/null +++ b/imm/src/model/GetDetectVideoLabelsResultRequest.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::GetDetectVideoLabelsResultRequest; + +GetDetectVideoLabelsResultRequest::GetDetectVideoLabelsResultRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetDetectVideoLabelsResult") { + setMethod(HttpRequest::Method::Post); +} + +GetDetectVideoLabelsResultRequest::~GetDetectVideoLabelsResultRequest() {} + +std::string GetDetectVideoLabelsResultRequest::getTaskId() const { + return taskId_; +} + +void GetDetectVideoLabelsResultRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string GetDetectVideoLabelsResultRequest::getProjectName() const { + return projectName_; +} + +void GetDetectVideoLabelsResultRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetDetectVideoLabelsResultRequest::getTaskType() const { + return taskType_; +} + +void GetDetectVideoLabelsResultRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + diff --git a/imm/src/model/GetDetectVideoLabelsResultResult.cc b/imm/src/model/GetDetectVideoLabelsResultResult.cc new file mode 100644 index 000000000..af214602f --- /dev/null +++ b/imm/src/model/GetDetectVideoLabelsResultResult.cc @@ -0,0 +1,137 @@ +/* + * 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; + +GetDetectVideoLabelsResultResult::GetDetectVideoLabelsResultResult() : + ServiceResult() +{} + +GetDetectVideoLabelsResultResult::GetDetectVideoLabelsResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDetectVideoLabelsResultResult::~GetDetectVideoLabelsResultResult() +{} + +void GetDetectVideoLabelsResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLabelsNode = value["Labels"]["LabelsItem"]; + for (auto valueLabelsLabelsItem : allLabelsNode) + { + LabelsItem labelsObject; + if(!valueLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueLabelsLabelsItem["Language"].asString(); + if(!valueLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueLabelsLabelsItem["LabelName"].asString(); + if(!valueLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueLabelsLabelsItem["LabelLevel"].asString()); + if(!valueLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueLabelsLabelsItem["CentricScore"].asString()); + labels_.push_back(labelsObject); + } + if(!value["ProjectName"].isNull()) + projectName_ = value["ProjectName"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["UserData"].isNull()) + userData_ = value["UserData"].asString(); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string GetDetectVideoLabelsResultResult::getStatus()const +{ + return status_; +} + +std::string GetDetectVideoLabelsResultResult::getTaskId()const +{ + return taskId_; +} + +std::string GetDetectVideoLabelsResultResult::getMessage()const +{ + return message_; +} + +std::string GetDetectVideoLabelsResultResult::getEndTime()const +{ + return endTime_; +} + +std::string GetDetectVideoLabelsResultResult::getProjectName()const +{ + return projectName_; +} + +std::string GetDetectVideoLabelsResultResult::getUserData()const +{ + return userData_; +} + +std::string GetDetectVideoLabelsResultResult::getTaskType()const +{ + return taskType_; +} + +std::string GetDetectVideoLabelsResultResult::getStartTime()const +{ + return startTime_; +} + +std::string GetDetectVideoLabelsResultResult::getEventId()const +{ + return eventId_; +} + +std::vector GetDetectVideoLabelsResultResult::getLabels()const +{ + return labels_; +} + +std::string GetDetectVideoLabelsResultResult::getCode()const +{ + return code_; +} + diff --git a/imm/src/model/GetFigureClusterRequest.cc b/imm/src/model/GetFigureClusterRequest.cc new file mode 100644 index 000000000..68eca07e2 --- /dev/null +++ b/imm/src/model/GetFigureClusterRequest.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::GetFigureClusterRequest; + +GetFigureClusterRequest::GetFigureClusterRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetFigureCluster") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetFigureClusterRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetFigureClusterRequest::getObjectId() const { + return objectId_; +} + +void GetFigureClusterRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setParameter(std::string("ObjectId"), objectId); +} + diff --git a/imm/src/model/GetFigureClusterResult.cc b/imm/src/model/GetFigureClusterResult.cc new file mode 100644 index 000000000..056c4a384 --- /dev/null +++ b/imm/src/model/GetFigureClusterResult.cc @@ -0,0 +1,561 @@ +/* + * 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; + +GetFigureClusterResult::GetFigureClusterResult() : + ServiceResult() +{} + +GetFigureClusterResult::GetFigureClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFigureClusterResult::~GetFigureClusterResult() +{} + +void GetFigureClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto figureClusterNode = value["FigureCluster"]; + if(!figureClusterNode["OwnerId"].isNull()) + figureCluster_.ownerId = figureClusterNode["OwnerId"].asString(); + if(!figureClusterNode["ProjectName"].isNull()) + figureCluster_.projectName = figureClusterNode["ProjectName"].asString(); + if(!figureClusterNode["DatasetName"].isNull()) + figureCluster_.datasetName = figureClusterNode["DatasetName"].asString(); + if(!figureClusterNode["ObjectType"].isNull()) + figureCluster_.objectType = figureClusterNode["ObjectType"].asString(); + if(!figureClusterNode["ObjectId"].isNull()) + figureCluster_.objectId = figureClusterNode["ObjectId"].asString(); + if(!figureClusterNode["UpdateTime"].isNull()) + figureCluster_.updateTime = figureClusterNode["UpdateTime"].asString(); + if(!figureClusterNode["CreateTime"].isNull()) + figureCluster_.createTime = figureClusterNode["CreateTime"].asString(); + if(!figureClusterNode["Name"].isNull()) + figureCluster_.name = figureClusterNode["Name"].asString(); + if(!figureClusterNode["Gender"].isNull()) + figureCluster_.gender = figureClusterNode["Gender"].asString(); + if(!figureClusterNode["FaceCount"].isNull()) + figureCluster_.faceCount = std::stol(figureClusterNode["FaceCount"].asString()); + if(!figureClusterNode["ImageCount"].isNull()) + figureCluster_.imageCount = std::stol(figureClusterNode["ImageCount"].asString()); + if(!figureClusterNode["VideoCount"].isNull()) + figureCluster_.videoCount = std::stol(figureClusterNode["VideoCount"].asString()); + if(!figureClusterNode["AverageAge"].isNull()) + figureCluster_.averageAge = std::stof(figureClusterNode["AverageAge"].asString()); + if(!figureClusterNode["MinAge"].isNull()) + figureCluster_.minAge = std::stof(figureClusterNode["MinAge"].asString()); + if(!figureClusterNode["MaxAge"].isNull()) + figureCluster_.maxAge = std::stof(figureClusterNode["MaxAge"].asString()); + if(!figureClusterNode["CustomId"].isNull()) + figureCluster_.customId = figureClusterNode["CustomId"].asString(); + if(!figureClusterNode["CustomLabels"].isNull()) + figureCluster_.customLabels = figureClusterNode["CustomLabels"].asString(); + auto coverNode = figureClusterNode["Cover"]; + if(!coverNode["OwnerId"].isNull()) + figureCluster_.cover.ownerId = coverNode["OwnerId"].asString(); + if(!coverNode["ProjectName"].isNull()) + figureCluster_.cover.projectName = coverNode["ProjectName"].asString(); + if(!coverNode["DatasetName"].isNull()) + figureCluster_.cover.datasetName = coverNode["DatasetName"].asString(); + if(!coverNode["ObjectType"].isNull()) + figureCluster_.cover.objectType = coverNode["ObjectType"].asString(); + if(!coverNode["ObjectId"].isNull()) + figureCluster_.cover.objectId = coverNode["ObjectId"].asString(); + if(!coverNode["UpdateTime"].isNull()) + figureCluster_.cover.updateTime = coverNode["UpdateTime"].asString(); + if(!coverNode["CreateTime"].isNull()) + figureCluster_.cover.createTime = coverNode["CreateTime"].asString(); + if(!coverNode["URI"].isNull()) + figureCluster_.cover.uRI = coverNode["URI"].asString(); + if(!coverNode["OSSURI"].isNull()) + figureCluster_.cover.oSSURI = coverNode["OSSURI"].asString(); + if(!coverNode["Filename"].isNull()) + figureCluster_.cover.filename = coverNode["Filename"].asString(); + if(!coverNode["MediaType"].isNull()) + figureCluster_.cover.mediaType = coverNode["MediaType"].asString(); + if(!coverNode["ContentType"].isNull()) + figureCluster_.cover.contentType = coverNode["ContentType"].asString(); + if(!coverNode["Size"].isNull()) + figureCluster_.cover.size = std::stol(coverNode["Size"].asString()); + if(!coverNode["FileHash"].isNull()) + figureCluster_.cover.fileHash = coverNode["FileHash"].asString(); + if(!coverNode["FileModifiedTime"].isNull()) + figureCluster_.cover.fileModifiedTime = coverNode["FileModifiedTime"].asString(); + if(!coverNode["FileCreateTime"].isNull()) + figureCluster_.cover.fileCreateTime = coverNode["FileCreateTime"].asString(); + if(!coverNode["FileAccessTime"].isNull()) + figureCluster_.cover.fileAccessTime = coverNode["FileAccessTime"].asString(); + if(!coverNode["ProduceTime"].isNull()) + figureCluster_.cover.produceTime = coverNode["ProduceTime"].asString(); + if(!coverNode["LatLong"].isNull()) + figureCluster_.cover.latLong = coverNode["LatLong"].asString(); + if(!coverNode["Timezone"].isNull()) + figureCluster_.cover.timezone = coverNode["Timezone"].asString(); + if(!coverNode["TravelClusterId"].isNull()) + figureCluster_.cover.travelClusterId = coverNode["TravelClusterId"].asString(); + if(!coverNode["Orientation"].isNull()) + figureCluster_.cover.orientation = std::stol(coverNode["Orientation"].asString()); + if(!coverNode["FigureCount"].isNull()) + figureCluster_.cover.figureCount = std::stol(coverNode["FigureCount"].asString()); + if(!coverNode["Title"].isNull()) + figureCluster_.cover.title = coverNode["Title"].asString(); + if(!coverNode["ImageWidth"].isNull()) + figureCluster_.cover.imageWidth = std::stol(coverNode["ImageWidth"].asString()); + if(!coverNode["ImageHeight"].isNull()) + figureCluster_.cover.imageHeight = std::stol(coverNode["ImageHeight"].asString()); + if(!coverNode["EXIF"].isNull()) + figureCluster_.cover.eXIF = coverNode["EXIF"].asString(); + if(!coverNode["VideoWidth"].isNull()) + figureCluster_.cover.videoWidth = std::stol(coverNode["VideoWidth"].asString()); + if(!coverNode["VideoHeight"].isNull()) + figureCluster_.cover.videoHeight = std::stol(coverNode["VideoHeight"].asString()); + if(!coverNode["Artist"].isNull()) + figureCluster_.cover.artist = coverNode["Artist"].asString(); + if(!coverNode["AlbumArtist"].isNull()) + figureCluster_.cover.albumArtist = coverNode["AlbumArtist"].asString(); + if(!coverNode["Composer"].isNull()) + figureCluster_.cover.composer = coverNode["Composer"].asString(); + if(!coverNode["Performer"].isNull()) + figureCluster_.cover.performer = coverNode["Performer"].asString(); + if(!coverNode["Language"].isNull()) + figureCluster_.cover.language = coverNode["Language"].asString(); + if(!coverNode["Album"].isNull()) + figureCluster_.cover.album = coverNode["Album"].asString(); + if(!coverNode["DocumentLanguage"].isNull()) + figureCluster_.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); + if(!coverNode["PageCount"].isNull()) + figureCluster_.cover.pageCount = std::stol(coverNode["PageCount"].asString()); + if(!coverNode["DocumentContent"].isNull()) + figureCluster_.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["ETag"].isNull()) + figureCluster_.cover.eTag = coverNode["ETag"].asString(); + if(!coverNode["CacheControl"].isNull()) + figureCluster_.cover.cacheControl = coverNode["CacheControl"].asString(); + if(!coverNode["ContentDisposition"].isNull()) + figureCluster_.cover.contentDisposition = coverNode["ContentDisposition"].asString(); + if(!coverNode["ContentEncoding"].isNull()) + figureCluster_.cover.contentEncoding = coverNode["ContentEncoding"].asString(); + if(!coverNode["ContentLanguage"].isNull()) + figureCluster_.cover.contentLanguage = coverNode["ContentLanguage"].asString(); + if(!coverNode["AccessControlAllowOrigin"].isNull()) + figureCluster_.cover.accessControlAllowOrigin = coverNode["AccessControlAllowOrigin"].asString(); + if(!coverNode["AccessControlRequestMethod"].isNull()) + figureCluster_.cover.accessControlRequestMethod = coverNode["AccessControlRequestMethod"].asString(); + if(!coverNode["ServerSideEncryptionCustomerAlgorithm"].isNull()) + figureCluster_.cover.serverSideEncryptionCustomerAlgorithm = coverNode["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!coverNode["ServerSideEncryption"].isNull()) + figureCluster_.cover.serverSideEncryption = coverNode["ServerSideEncryption"].asString(); + if(!coverNode["ServerSideDataEncryption"].isNull()) + figureCluster_.cover.serverSideDataEncryption = coverNode["ServerSideDataEncryption"].asString(); + if(!coverNode["ServerSideEncryptionKeyId"].isNull()) + figureCluster_.cover.serverSideEncryptionKeyId = coverNode["ServerSideEncryptionKeyId"].asString(); + if(!coverNode["OSSStorageClass"].isNull()) + figureCluster_.cover.oSSStorageClass = coverNode["OSSStorageClass"].asString(); + if(!coverNode["OSSCRC64"].isNull()) + figureCluster_.cover.oSSCRC64 = coverNode["OSSCRC64"].asString(); + if(!coverNode["ObjectACL"].isNull()) + figureCluster_.cover.objectACL = coverNode["ObjectACL"].asString(); + if(!coverNode["ContentMd5"].isNull()) + figureCluster_.cover.contentMd5 = coverNode["ContentMd5"].asString(); + if(!coverNode["OSSUserMeta"].isNull()) + figureCluster_.cover.oSSUserMeta = coverNode["OSSUserMeta"].asString(); + if(!coverNode["OSSTaggingCount"].isNull()) + figureCluster_.cover.oSSTaggingCount = std::stol(coverNode["OSSTaggingCount"].asString()); + if(!coverNode["OSSTagging"].isNull()) + figureCluster_.cover.oSSTagging = coverNode["OSSTagging"].asString(); + if(!coverNode["OSSExpiration"].isNull()) + figureCluster_.cover.oSSExpiration = coverNode["OSSExpiration"].asString(); + if(!coverNode["OSSVersionId"].isNull()) + figureCluster_.cover.oSSVersionId = coverNode["OSSVersionId"].asString(); + if(!coverNode["OSSDeleteMarker"].isNull()) + figureCluster_.cover.oSSDeleteMarker = coverNode["OSSDeleteMarker"].asString(); + if(!coverNode["OSSObjectType"].isNull()) + figureCluster_.cover.oSSObjectType = coverNode["OSSObjectType"].asString(); + if(!coverNode["CustomId"].isNull()) + figureCluster_.cover.customId = coverNode["CustomId"].asString(); + if(!coverNode["CustomLabels"].isNull()) + figureCluster_.cover.customLabels = coverNode["CustomLabels"].asString(); + if(!coverNode["StreamCount"].isNull()) + figureCluster_.cover.streamCount = std::stol(coverNode["StreamCount"].asString()); + if(!coverNode["ProgramCount"].isNull()) + figureCluster_.cover.programCount = std::stol(coverNode["ProgramCount"].asString()); + if(!coverNode["FormatName"].isNull()) + figureCluster_.cover.formatName = coverNode["FormatName"].asString(); + if(!coverNode["FormatLongName"].isNull()) + figureCluster_.cover.formatLongName = coverNode["FormatLongName"].asString(); + if(!coverNode["StartTime"].isNull()) + figureCluster_.cover.startTime = coverNode["StartTime"].asString(); + if(!coverNode["Bitrate"].isNull()) + figureCluster_.cover.bitrate = std::stol(coverNode["Bitrate"].asString()); + if(!coverNode["Duration"].isNull()) + figureCluster_.cover.duration = coverNode["Duration"].asString(); + auto allAddressesNode = coverNode["Addresses"]["AddressesItem"]; + for (auto coverNodeAddressesAddressesItem : allAddressesNode) + { + FigureCluster::Cover::AddressesItem addressesItemObject; + if(!coverNodeAddressesAddressesItem["Language"].isNull()) + addressesItemObject.language = coverNodeAddressesAddressesItem["Language"].asString(); + if(!coverNodeAddressesAddressesItem["AddressLine"].isNull()) + addressesItemObject.addressLine = coverNodeAddressesAddressesItem["AddressLine"].asString(); + if(!coverNodeAddressesAddressesItem["Country"].isNull()) + addressesItemObject.country = coverNodeAddressesAddressesItem["Country"].asString(); + if(!coverNodeAddressesAddressesItem["Province"].isNull()) + addressesItemObject.province = coverNodeAddressesAddressesItem["Province"].asString(); + if(!coverNodeAddressesAddressesItem["City"].isNull()) + addressesItemObject.city = coverNodeAddressesAddressesItem["City"].asString(); + if(!coverNodeAddressesAddressesItem["District"].isNull()) + addressesItemObject.district = coverNodeAddressesAddressesItem["District"].asString(); + if(!coverNodeAddressesAddressesItem["Township"].isNull()) + addressesItemObject.township = coverNodeAddressesAddressesItem["Township"].asString(); + figureCluster_.cover.addresses.push_back(addressesItemObject); + } + auto allFiguresNode = coverNode["Figures"]["FiguresItem"]; + for (auto coverNodeFiguresFiguresItem : allFiguresNode) + { + FigureCluster::Cover::FiguresItem figuresItemObject; + if(!coverNodeFiguresFiguresItem["FigureId"].isNull()) + figuresItemObject.figureId = coverNodeFiguresFiguresItem["FigureId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureConfidence"].isNull()) + figuresItemObject.figureConfidence = std::stof(coverNodeFiguresFiguresItem["FigureConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureClusterId"].isNull()) + figuresItemObject.figureClusterId = coverNodeFiguresFiguresItem["FigureClusterId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresItemObject.figureClusterConfidence = std::stof(coverNodeFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureType"].isNull()) + figuresItemObject.figureType = coverNodeFiguresFiguresItem["FigureType"].asString(); + if(!coverNodeFiguresFiguresItem["Age"].isNull()) + figuresItemObject.age = std::stol(coverNodeFiguresFiguresItem["Age"].asString()); + if(!coverNodeFiguresFiguresItem["AgeSD"].isNull()) + figuresItemObject.ageSD = std::stof(coverNodeFiguresFiguresItem["AgeSD"].asString()); + if(!coverNodeFiguresFiguresItem["Gender"].isNull()) + figuresItemObject.gender = coverNodeFiguresFiguresItem["Gender"].asString(); + if(!coverNodeFiguresFiguresItem["GenderConfidence"].isNull()) + figuresItemObject.genderConfidence = std::stof(coverNodeFiguresFiguresItem["GenderConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Emotion"].isNull()) + figuresItemObject.emotion = coverNodeFiguresFiguresItem["Emotion"].asString(); + if(!coverNodeFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresItemObject.emotionConfidence = std::stof(coverNodeFiguresFiguresItem["EmotionConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FaceQuality"].isNull()) + figuresItemObject.faceQuality = std::stof(coverNodeFiguresFiguresItem["FaceQuality"].asString()); + if(!coverNodeFiguresFiguresItem["Mouth"].isNull()) + figuresItemObject.mouth = coverNodeFiguresFiguresItem["Mouth"].asString(); + if(!coverNodeFiguresFiguresItem["MouthConfidence"].isNull()) + figuresItemObject.mouthConfidence = std::stof(coverNodeFiguresFiguresItem["MouthConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Beard"].isNull()) + figuresItemObject.beard = coverNodeFiguresFiguresItem["Beard"].asString(); + if(!coverNodeFiguresFiguresItem["BeardConfidence"].isNull()) + figuresItemObject.beardConfidence = std::stof(coverNodeFiguresFiguresItem["BeardConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Hat"].isNull()) + figuresItemObject.hat = coverNodeFiguresFiguresItem["Hat"].asString(); + if(!coverNodeFiguresFiguresItem["HatConfidence"].isNull()) + figuresItemObject.hatConfidence = std::stof(coverNodeFiguresFiguresItem["HatConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Mask"].isNull()) + figuresItemObject.mask = coverNodeFiguresFiguresItem["Mask"].asString(); + if(!coverNodeFiguresFiguresItem["MaskConfidence"].isNull()) + figuresItemObject.maskConfidence = std::stof(coverNodeFiguresFiguresItem["MaskConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Glasses"].isNull()) + figuresItemObject.glasses = coverNodeFiguresFiguresItem["Glasses"].asString(); + if(!coverNodeFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresItemObject.glassesConfidence = std::stof(coverNodeFiguresFiguresItem["GlassesConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Sharpness"].isNull()) + figuresItemObject.sharpness = std::stof(coverNodeFiguresFiguresItem["Sharpness"].asString()); + if(!coverNodeFiguresFiguresItem["Attractive"].isNull()) + figuresItemObject.attractive = std::stof(coverNodeFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresItemObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresItemObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresItemObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresItemObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresItemObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresItemObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresItemObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + figureCluster_.cover.figures.push_back(figuresItemObject); + } + auto allLabelsNode = coverNode["Labels"]["LabelsItem"]; + for (auto coverNodeLabelsLabelsItem : allLabelsNode) + { + FigureCluster::Cover::LabelsItem labelsItemObject; + if(!coverNodeLabelsLabelsItem["Language"].isNull()) + labelsItemObject.language = coverNodeLabelsLabelsItem["Language"].asString(); + if(!coverNodeLabelsLabelsItem["LabelName"].isNull()) + labelsItemObject.labelName = coverNodeLabelsLabelsItem["LabelName"].asString(); + if(!coverNodeLabelsLabelsItem["LabelLevel"].isNull()) + labelsItemObject.labelLevel = std::stol(coverNodeLabelsLabelsItem["LabelLevel"].asString()); + if(!coverNodeLabelsLabelsItem["LabelConfidence"].isNull()) + labelsItemObject.labelConfidence = std::stof(coverNodeLabelsLabelsItem["LabelConfidence"].asString()); + if(!coverNodeLabelsLabelsItem["ParentLabelName"].isNull()) + labelsItemObject.parentLabelName = coverNodeLabelsLabelsItem["ParentLabelName"].asString(); + if(!coverNodeLabelsLabelsItem["CentricScore"].isNull()) + labelsItemObject.centricScore = std::stof(coverNodeLabelsLabelsItem["CentricScore"].asString()); + figureCluster_.cover.labels.push_back(labelsItemObject); + } + auto allCroppingSuggestionsNode = coverNode["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FigureCluster::Cover::CroppingSuggestionsItem croppingSuggestionsItemObject; + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsItemObject.aspectRatio = coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsItemObject.confidence = std::stof(coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsItemObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsItemObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsItemObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsItemObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + figureCluster_.cover.croppingSuggestions.push_back(croppingSuggestionsItemObject); + } + auto allOCRContentsNode = coverNode["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeOCRContentsOCRContentsItem : allOCRContentsNode) + { + FigureCluster::Cover::OCRContentsItem oCRContentsItemObject; + if(!coverNodeOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsItemObject.language = coverNodeOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsItemObject.contents = coverNodeOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsItemObject.confidence = std::stof(coverNodeOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsItemObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsItemObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsItemObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsItemObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + figureCluster_.cover.oCRContents.push_back(oCRContentsItemObject); + } + auto allVideoStreamsNode = coverNode["VideoStreams"]["VideoStreamsItem"]; + for (auto coverNodeVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FigureCluster::Cover::VideoStreamsItem videoStreamsItemObject; + if(!coverNodeVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsItemObject.index = std::stol(coverNodeVideoStreamsVideoStreamsItem["Index"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsItemObject.language = coverNodeVideoStreamsVideoStreamsItem["Language"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsItemObject.codecName = coverNodeVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsItemObject.codecLongName = coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsItemObject.profile = coverNodeVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsItemObject.codecTimeBase = coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsItemObject.codecTagString = coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsItemObject.codecTag = coverNodeVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsItemObject.width = std::stol(coverNodeVideoStreamsVideoStreamsItem["Width"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsItemObject.height = std::stol(coverNodeVideoStreamsVideoStreamsItem["Height"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsItemObject.hasBFrames = std::stol(coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsItemObject.sampleAspectRatio = coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsItemObject.displayAspectRatio = coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsItemObject.pixelFormat = coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsItemObject.level = std::stol(coverNodeVideoStreamsVideoStreamsItem["Level"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsItemObject.frameRate = coverNodeVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsItemObject.averageFrameRate = coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsItemObject.timeBase = coverNodeVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsItemObject.startTime = coverNodeVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsItemObject.duration = coverNodeVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsItemObject.bitrate = std::stol(coverNodeVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsItemObject.frameCount = std::stol(coverNodeVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsItemObject.rotate = coverNodeVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsItemObject.bitDepth = std::stol(coverNodeVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsItemObject.colorSpace = coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsItemObject.colorRange = coverNodeVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsItemObject.colorTransfer = coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsItemObject.colorPrimaries = coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + figureCluster_.cover.videoStreams.push_back(videoStreamsItemObject); + } + auto allSubtitlesNode = coverNode["Subtitles"]["SubtitlesItem"]; + for (auto coverNodeSubtitlesSubtitlesItem : allSubtitlesNode) + { + FigureCluster::Cover::SubtitlesItem subtitlesItemObject; + if(!coverNodeSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesItemObject.index = std::stol(coverNodeSubtitlesSubtitlesItem["Index"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesItemObject.language = coverNodeSubtitlesSubtitlesItem["Language"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesItemObject.codecName = coverNodeSubtitlesSubtitlesItem["CodecName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesItemObject.codecLongName = coverNodeSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesItemObject.codecTagString = coverNodeSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesItemObject.codecTag = coverNodeSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesItemObject.startTime = coverNodeSubtitlesSubtitlesItem["StartTime"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesItemObject.duration = coverNodeSubtitlesSubtitlesItem["Duration"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesItemObject.bitrate = std::stol(coverNodeSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesItemObject.content = coverNodeSubtitlesSubtitlesItem["Content"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesItemObject.width = std::stol(coverNodeSubtitlesSubtitlesItem["Width"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesItemObject.height = std::stol(coverNodeSubtitlesSubtitlesItem["Height"].asString()); + figureCluster_.cover.subtitles.push_back(subtitlesItemObject); + } + auto allAudioStreamsNode = coverNode["AudioStreams"]["AudioStreamsItem"]; + for (auto coverNodeAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FigureCluster::Cover::AudioStreamsItem audioStreamsItemObject; + if(!coverNodeAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsItemObject.index = std::stol(coverNodeAudioStreamsAudioStreamsItem["Index"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsItemObject.language = coverNodeAudioStreamsAudioStreamsItem["Language"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsItemObject.codecName = coverNodeAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsItemObject.codecLongName = coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsItemObject.codecTimeBase = coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsItemObject.codecTagString = coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsItemObject.codecTag = coverNodeAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsItemObject.timeBase = coverNodeAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsItemObject.startTime = coverNodeAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsItemObject.duration = coverNodeAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsItemObject.bitrate = std::stol(coverNodeAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsItemObject.frameCount = std::stol(coverNodeAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsItemObject.lyric = coverNodeAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsItemObject.sampleFormat = coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsItemObject.sampleRate = std::stol(coverNodeAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsItemObject.channels = std::stol(coverNodeAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsItemObject.channelLayout = coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + figureCluster_.cover.audioStreams.push_back(audioStreamsItemObject); + } + auto allAudioCoversNode = coverNode["AudioCovers"]["AudioCoversItem"]; + for (auto coverNodeAudioCoversAudioCoversItem : allAudioCoversNode) + { + FigureCluster::Cover::AudioCoversItem audioCoversItemObject; + if(!coverNodeAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversItemObject.imageWidth = std::stol(coverNodeAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversItemObject.imageHeight = std::stol(coverNodeAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversItemObject.eXIF = coverNodeAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = coverNodeAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FigureCluster::Cover::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversItemObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = coverNodeAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FigureCluster::Cover::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversItemObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversItemObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + figureCluster_.cover.audioCovers.push_back(audioCoversItemObject); + } + auto imageScoreNode = coverNode["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + figureCluster_.cover.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + +} + +GetFigureClusterResult::FigureCluster GetFigureClusterResult::getFigureCluster()const +{ + return figureCluster_; +} + diff --git a/imm/src/model/GetFileMetaRequest.cc b/imm/src/model/GetFileMetaRequest.cc new file mode 100644 index 000000000..634a5363d --- /dev/null +++ b/imm/src/model/GetFileMetaRequest.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::GetFileMetaRequest; + +GetFileMetaRequest::GetFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetFileMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetFileMetaRequest::getURI() const { + return uRI_; +} + +void GetFileMetaRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/GetFileMetaResult.cc b/imm/src/model/GetFileMetaResult.cc new file mode 100644 index 000000000..78e339994 --- /dev/null +++ b/imm/src/model/GetFileMetaResult.cc @@ -0,0 +1,531 @@ +/* + * 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; + +GetFileMetaResult::GetFileMetaResult() : + ServiceResult() +{} + +GetFileMetaResult::GetFileMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetFileMetaResult::~GetFileMetaResult() +{} + +void GetFileMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueFilesFilesItem["OwnerId"].asString(); + if(!valueFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueFilesFilesItem["ProjectName"].asString(); + if(!valueFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueFilesFilesItem["DatasetName"].asString(); + if(!valueFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueFilesFilesItem["ObjectType"].asString(); + if(!valueFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueFilesFilesItem["ObjectId"].asString(); + if(!valueFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueFilesFilesItem["UpdateTime"].asString(); + if(!valueFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueFilesFilesItem["CreateTime"].asString(); + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueFilesFilesItem["OSSURI"].asString(); + if(!valueFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueFilesFilesItem["Filename"].asString(); + if(!valueFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueFilesFilesItem["MediaType"].asString(); + if(!valueFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueFilesFilesItem["ContentType"].asString(); + if(!valueFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueFilesFilesItem["Size"].asString()); + if(!valueFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueFilesFilesItem["FileHash"].asString(); + if(!valueFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueFilesFilesItem["FileModifiedTime"].asString(); + if(!valueFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueFilesFilesItem["FileCreateTime"].asString(); + if(!valueFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueFilesFilesItem["FileAccessTime"].asString(); + if(!valueFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueFilesFilesItem["ProduceTime"].asString(); + if(!valueFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueFilesFilesItem["LatLong"].asString(); + if(!valueFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueFilesFilesItem["Timezone"].asString(); + if(!valueFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueFilesFilesItem["TravelClusterId"].asString(); + if(!valueFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueFilesFilesItem["Orientation"].asString()); + if(!valueFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueFilesFilesItem["FigureCount"].asString()); + if(!valueFilesFilesItem["Title"].isNull()) + filesObject.title = valueFilesFilesItem["Title"].asString(); + if(!valueFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueFilesFilesItem["ImageWidth"].asString()); + if(!valueFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueFilesFilesItem["ImageHeight"].asString()); + if(!valueFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueFilesFilesItem["EXIF"].asString(); + if(!valueFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueFilesFilesItem["VideoWidth"].asString()); + if(!valueFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueFilesFilesItem["VideoHeight"].asString()); + if(!valueFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueFilesFilesItem["Artist"].asString(); + if(!valueFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueFilesFilesItem["AlbumArtist"].asString(); + if(!valueFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueFilesFilesItem["Composer"].asString(); + if(!valueFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueFilesFilesItem["Performer"].asString(); + if(!valueFilesFilesItem["Language"].isNull()) + filesObject.language = valueFilesFilesItem["Language"].asString(); + if(!valueFilesFilesItem["Album"].isNull()) + filesObject.album = valueFilesFilesItem["Album"].asString(); + if(!valueFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); + if(!valueFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); + if(!valueFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueFilesFilesItem["ETag"].asString(); + if(!valueFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueFilesFilesItem["CacheControl"].asString(); + if(!valueFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueFilesFilesItem["ContentDisposition"].asString(); + if(!valueFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueFilesFilesItem["ContentEncoding"].asString(); + if(!valueFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueFilesFilesItem["ContentLanguage"].asString(); + if(!valueFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueFilesFilesItem["OSSStorageClass"].asString(); + if(!valueFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueFilesFilesItem["OSSCRC64"].asString(); + if(!valueFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueFilesFilesItem["ObjectACL"].asString(); + if(!valueFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueFilesFilesItem["ContentMd5"].asString(); + if(!valueFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueFilesFilesItem["OSSUserMeta"].asString(); + if(!valueFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueFilesFilesItem["OSSTagging"].asString(); + if(!valueFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueFilesFilesItem["OSSExpiration"].asString(); + if(!valueFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueFilesFilesItem["OSSVersionId"].asString(); + if(!valueFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueFilesFilesItem["OSSObjectType"].asString(); + if(!valueFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueFilesFilesItem["CustomId"].asString(); + if(!valueFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueFilesFilesItem["CustomLabels"].asString(); + if(!valueFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueFilesFilesItem["StreamCount"].asString()); + if(!valueFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueFilesFilesItem["ProgramCount"].asString()); + if(!valueFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueFilesFilesItem["FormatName"].asString(); + if(!valueFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueFilesFilesItem["FormatLongName"].asString(); + if(!valueFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueFilesFilesItem["StartTime"].asString(); + if(!valueFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueFilesFilesItem["Bitrate"].asString()); + if(!valueFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + FilesItem::AddressesItem addressesObject; + if(!valueFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + FilesItem::FiguresItem figuresObject; + if(!valueFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + FilesItem::LabelsItem labelsObject; + if(!valueFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + FilesItem::OCRContentsItem oCRContentsObject; + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + FilesItem::SubtitlesItem subtitlesObject; + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + FilesItem::AudioCoversItem audioCoversObject; + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + files_.push_back(filesObject); + } + +} + +std::vector GetFileMetaResult::getFiles()const +{ + return files_; +} + diff --git a/imm/src/model/GetImageCroppingSuggestionsRequest.cc b/imm/src/model/GetImageCroppingSuggestionsRequest.cc deleted file mode 100644 index 11ac05bff..000000000 --- a/imm/src/model/GetImageCroppingSuggestionsRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 96622c4be..000000000 --- a/imm/src/model/GetImageCroppingSuggestionsResult.cc +++ /dev/null @@ -1,75 +0,0 @@ -/* - * 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 deleted file mode 100644 index f31ec345c..000000000 --- a/imm/src/model/GetImageQualityRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 238a6d657..000000000 --- a/imm/src/model/GetImageQualityResult.cc +++ /dev/null @@ -1,77 +0,0 @@ -/* - * 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 deleted file mode 100644 index 8c90abf3b..000000000 --- a/imm/src/model/GetImageRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index c63f0a9e0..000000000 --- a/imm/src/model/GetImageResult.cc +++ /dev/null @@ -1,512 +0,0 @@ -/* - * 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 18d8e8857..febb20d3d 100644 --- a/imm/src/model/GetMediaMetaRequest.cc +++ b/imm/src/model/GetMediaMetaRequest.cc @@ -19,36 +19,42 @@ using AlibabaCloud::Imm::Model::GetMediaMetaRequest; GetMediaMetaRequest::GetMediaMetaRequest() - : RpcServiceRequest("imm", "2017-09-06", "GetMediaMeta") { + : RpcServiceRequest("imm", "2020-09-30", "GetMediaMeta") { setMethod(HttpRequest::Method::Post); } GetMediaMetaRequest::~GetMediaMetaRequest() {} -std::string GetMediaMetaRequest::getMediaUri() const { - return mediaUri_; +std::string GetMediaMetaRequest::getProjectName() const { + return projectName_; } -void GetMediaMetaRequest::setMediaUri(const std::string &mediaUri) { - mediaUri_ = mediaUri; - setParameter(std::string("MediaUri"), mediaUri); +void GetMediaMetaRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -std::string GetMediaMetaRequest::getProject() const { - return project_; +GetMediaMetaRequest::CredentialConfig GetMediaMetaRequest::getCredentialConfig() const { + return credentialConfig_; } -void GetMediaMetaRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), 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); } -std::string GetMediaMetaRequest::getAccessKeyId() const { - return accessKeyId_; +std::string GetMediaMetaRequest::getSourceURI() const { + return sourceURI_; } -void GetMediaMetaRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void GetMediaMetaRequest::setSourceURI(const std::string &sourceURI) { + sourceURI_ = sourceURI; + setParameter(std::string("SourceURI"), sourceURI); } diff --git a/imm/src/model/GetMediaMetaResult.cc b/imm/src/model/GetMediaMetaResult.cc index a6e330f4a..31b0e8b7a 100644 --- a/imm/src/model/GetMediaMetaResult.cc +++ b/imm/src/model/GetMediaMetaResult.cc @@ -39,171 +39,311 @@ void GetMediaMetaResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - 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) + auto allVideoStreamsNode = value["VideoStreams"]["VideoStreamsItem"]; + for (auto valueVideoStreamsVideoStreamsItem : allVideoStreamsNode) { - 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); + 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); } - auto allAudioStreamsNode = mediaStreamsNode["AudioStreams"]["AudioStream"]; - for (auto mediaStreamsNodeAudioStreamsAudioStream : allAudioStreamsNode) + auto allAudioStreamsNode = value["AudioStreams"]["AudioStreamsItem"]; + for (auto valueAudioStreamsAudioStreamsItem : allAudioStreamsNode) { - 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); + 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); } - auto allSubtitleStreamsNode = mediaStreamsNode["SubtitleStreams"]["SubtitleStream"]; - for (auto mediaStreamsNodeSubtitleStreamsSubtitleStream : allSubtitleStreamsNode) + auto allSubtitlesNode = value["Subtitles"]["SubtitlesItem"]; + for (auto valueSubtitlesSubtitlesItem : allSubtitlesNode) { - 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); + 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); } - if(!value["MediaUri"].isNull()) - mediaUri_ = value["MediaUri"].asString(); + 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()); } -std::string GetMediaMetaResult::getMediaUri()const +std::string GetMediaMetaResult::getArtist()const { - return mediaUri_; + return artist_; } -GetMediaMetaResult::MediaMeta GetMediaMetaResult::getMediaMeta()const +std::string GetMediaMetaResult::getProduceTime()const { - return mediaMeta_; + 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_; } diff --git a/imm/src/model/GetOSSBucketAttachmentRequest.cc b/imm/src/model/GetOSSBucketAttachmentRequest.cc new file mode 100644 index 000000000..bc82c50f2 --- /dev/null +++ b/imm/src/model/GetOSSBucketAttachmentRequest.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::GetOSSBucketAttachmentRequest; + +GetOSSBucketAttachmentRequest::GetOSSBucketAttachmentRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetOSSBucketAttachment") { + setMethod(HttpRequest::Method::Post); +} + +GetOSSBucketAttachmentRequest::~GetOSSBucketAttachmentRequest() {} + +std::string GetOSSBucketAttachmentRequest::getOSSBucket() const { + return oSSBucket_; +} + +void GetOSSBucketAttachmentRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); +} + diff --git a/imm/src/model/GetOSSBucketAttachmentResult.cc b/imm/src/model/GetOSSBucketAttachmentResult.cc new file mode 100644 index 000000000..f4734a344 --- /dev/null +++ b/imm/src/model/GetOSSBucketAttachmentResult.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; + +GetOSSBucketAttachmentResult::GetOSSBucketAttachmentResult() : + ServiceResult() +{} + +GetOSSBucketAttachmentResult::GetOSSBucketAttachmentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOSSBucketAttachmentResult::~GetOSSBucketAttachmentResult() +{} + +void GetOSSBucketAttachmentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ProjectName"].isNull()) + projectName_ = value["ProjectName"].asString(); + +} + +std::string GetOSSBucketAttachmentResult::getProjectName()const +{ + return projectName_; +} + diff --git a/imm/src/model/GetOfficeConversionTaskRequest.cc b/imm/src/model/GetOfficeConversionTaskRequest.cc deleted file mode 100644 index e1b297913..000000000 --- a/imm/src/model/GetOfficeConversionTaskRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 09cb099b3..000000000 --- a/imm/src/model/GetOfficeConversionTaskResult.cc +++ /dev/null @@ -1,143 +0,0 @@ -/* - * 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/GetOfficeEditURLRequest.cc b/imm/src/model/GetOfficeEditURLRequest.cc deleted file mode 100644 index f0b20329a..000000000 --- a/imm/src/model/GetOfficeEditURLRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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::GetOfficeEditURLRequest; - -GetOfficeEditURLRequest::GetOfficeEditURLRequest() - : RpcServiceRequest("imm", "2017-09-06", "GetOfficeEditURL") { - setMethod(HttpRequest::Method::Post); -} - -GetOfficeEditURLRequest::~GetOfficeEditURLRequest() {} - -std::string GetOfficeEditURLRequest::getSrcType() const { - return srcType_; -} - -void GetOfficeEditURLRequest::setSrcType(const std::string &srcType) { - srcType_ = srcType; - setParameter(std::string("SrcType"), srcType); -} - -std::string GetOfficeEditURLRequest::getProject() const { - return project_; -} - -void GetOfficeEditURLRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string GetOfficeEditURLRequest::getUserID() const { - return userID_; -} - -void GetOfficeEditURLRequest::setUserID(const std::string &userID) { - userID_ = userID; - setParameter(std::string("UserID"), userID); -} - -std::string GetOfficeEditURLRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void GetOfficeEditURLRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string GetOfficeEditURLRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void GetOfficeEditURLRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string GetOfficeEditURLRequest::getFileID() const { - return fileID_; -} - -void GetOfficeEditURLRequest::setFileID(const std::string &fileID) { - fileID_ = fileID; - setParameter(std::string("FileID"), fileID); -} - -std::string GetOfficeEditURLRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void GetOfficeEditURLRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string GetOfficeEditURLRequest::getFileName() const { - return fileName_; -} - -void GetOfficeEditURLRequest::setFileName(const std::string &fileName) { - fileName_ = fileName; - setParameter(std::string("FileName"), fileName); -} - -std::string GetOfficeEditURLRequest::getSrcUri() const { - return srcUri_; -} - -void GetOfficeEditURLRequest::setSrcUri(const std::string &srcUri) { - srcUri_ = srcUri; - setParameter(std::string("SrcUri"), srcUri); -} - -std::string GetOfficeEditURLRequest::getTgtUri() const { - return tgtUri_; -} - -void GetOfficeEditURLRequest::setTgtUri(const std::string &tgtUri) { - tgtUri_ = tgtUri; - setParameter(std::string("TgtUri"), tgtUri); -} - -std::string GetOfficeEditURLRequest::getUserName() const { - return userName_; -} - -void GetOfficeEditURLRequest::setUserName(const std::string &userName) { - userName_ = userName; - setParameter(std::string("UserName"), userName); -} - diff --git a/imm/src/model/GetOfficeEditURLResult.cc b/imm/src/model/GetOfficeEditURLResult.cc deleted file mode 100644 index 165ab95b9..000000000 --- a/imm/src/model/GetOfficeEditURLResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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; - -GetOfficeEditURLResult::GetOfficeEditURLResult() : - ServiceResult() -{} - -GetOfficeEditURLResult::GetOfficeEditURLResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetOfficeEditURLResult::~GetOfficeEditURLResult() -{} - -void GetOfficeEditURLResult::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["EditURL"].isNull()) - editURL_ = value["EditURL"].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 GetOfficeEditURLResult::getRefreshToken()const -{ - return refreshToken_; -} - -std::string GetOfficeEditURLResult::getEditURL()const -{ - return editURL_; -} - -std::string GetOfficeEditURLResult::getAccessToken()const -{ - return accessToken_; -} - -std::string GetOfficeEditURLResult::getRefreshTokenExpiredTime()const -{ - return refreshTokenExpiredTime_; -} - -std::string GetOfficeEditURLResult::getAccessTokenExpiredTime()const -{ - return accessTokenExpiredTime_; -} - diff --git a/imm/src/model/GetOfficePreviewURLRequest.cc b/imm/src/model/GetOfficePreviewURLRequest.cc deleted file mode 100644 index 1f1b156bd..000000000 --- a/imm/src/model/GetOfficePreviewURLRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * 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 deleted file mode 100644 index 4b2769bc3..000000000 --- a/imm/src/model/GetOfficePreviewURLResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 166720b7c..a9c62220b 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", "2017-09-06", "GetProject") { + : RpcServiceRequest("imm", "2020-09-30", "GetProject") { setMethod(HttpRequest::Method::Post); } GetProjectRequest::~GetProjectRequest() {} -std::string GetProjectRequest::getProject() const { - return project_; +std::string GetProjectRequest::getProjectName() const { + return projectName_; } -void GetProjectRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); +void GetProjectRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -std::string GetProjectRequest::getAccessKeyId() const { - return accessKeyId_; +bool GetProjectRequest::getWithStatistics() const { + return withStatistics_; } -void GetProjectRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void GetProjectRequest::setWithStatistics(bool withStatistics) { + withStatistics_ = withStatistics; + setParameter(std::string("WithStatistics"), withStatistics ? "true" : "false"); } diff --git a/imm/src/model/GetProjectResult.cc b/imm/src/model/GetProjectResult.cc index 48b50d6db..33cff9012 100644 --- a/imm/src/model/GetProjectResult.cc +++ b/imm/src/model/GetProjectResult.cc @@ -39,69 +39,46 @@ void GetProjectResult::parse(const std::string &payload) 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(); + 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()); } -std::string GetProjectResult::getProject()const +GetProjectResult::Project 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 deleted file mode 100644 index acfa22514..000000000 --- a/imm/src/model/GetSetRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3d657abcb..000000000 --- a/imm/src/model/GetSetResult.cc +++ /dev/null @@ -1,100 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..c897b0fca --- /dev/null +++ b/imm/src/model/GetStoryRequest.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::GetStoryRequest; + +GetStoryRequest::GetStoryRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetStory") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetStoryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetStoryRequest::getObjectId() const { + return objectId_; +} + +void GetStoryRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setParameter(std::string("ObjectId"), objectId); +} + diff --git a/imm/src/model/GetStoryResult.cc b/imm/src/model/GetStoryResult.cc new file mode 100644 index 000000000..62c94c0a5 --- /dev/null +++ b/imm/src/model/GetStoryResult.cc @@ -0,0 +1,1040 @@ +/* + * 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; + +GetStoryResult::GetStoryResult() : + ServiceResult() +{} + +GetStoryResult::GetStoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStoryResult::~GetStoryResult() +{} + +void GetStoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto storyNode = value["Story"]; + if(!storyNode["OwnerId"].isNull()) + story_.ownerId = storyNode["OwnerId"].asString(); + if(!storyNode["ProjectName"].isNull()) + story_.projectName = storyNode["ProjectName"].asString(); + if(!storyNode["DatasetName"].isNull()) + story_.datasetName = storyNode["DatasetName"].asString(); + if(!storyNode["ObjectId"].isNull()) + story_.objectId = storyNode["ObjectId"].asString(); + if(!storyNode["ObjectType"].isNull()) + story_.objectType = storyNode["ObjectType"].asString(); + if(!storyNode["UpdateTime"].isNull()) + story_.updateTime = storyNode["UpdateTime"].asString(); + if(!storyNode["CreateTime"].isNull()) + story_.createTime = storyNode["CreateTime"].asString(); + if(!storyNode["StoryName"].isNull()) + story_.storyName = storyNode["StoryName"].asString(); + if(!storyNode["StoryType"].isNull()) + story_.storyType = storyNode["StoryType"].asString(); + if(!storyNode["StorySubType"].isNull()) + story_.storySubType = storyNode["StorySubType"].asString(); + if(!storyNode["StoryStartTime"].isNull()) + story_.storyStartTime = storyNode["StoryStartTime"].asString(); + if(!storyNode["StoryEndTime"].isNull()) + story_.storyEndTime = storyNode["StoryEndTime"].asString(); + if(!storyNode["CustomId"].isNull()) + story_.customId = storyNode["CustomId"].asString(); + if(!storyNode["CustomLabels"].isNull()) + story_.customLabels = storyNode["CustomLabels"].asString(); + auto allFilesNode = storyNode["Files"]["FilesItem"]; + for (auto storyNodeFilesFilesItem : allFilesNode) + { + Story::FilesItem filesItemObject; + if(!storyNodeFilesFilesItem["OwnerId"].isNull()) + filesItemObject.ownerId = storyNodeFilesFilesItem["OwnerId"].asString(); + if(!storyNodeFilesFilesItem["ProjectName"].isNull()) + filesItemObject.projectName = storyNodeFilesFilesItem["ProjectName"].asString(); + if(!storyNodeFilesFilesItem["DatasetName"].isNull()) + filesItemObject.datasetName = storyNodeFilesFilesItem["DatasetName"].asString(); + if(!storyNodeFilesFilesItem["ObjectType"].isNull()) + filesItemObject.objectType = storyNodeFilesFilesItem["ObjectType"].asString(); + if(!storyNodeFilesFilesItem["ObjectId"].isNull()) + filesItemObject.objectId = storyNodeFilesFilesItem["ObjectId"].asString(); + if(!storyNodeFilesFilesItem["UpdateTime"].isNull()) + filesItemObject.updateTime = storyNodeFilesFilesItem["UpdateTime"].asString(); + if(!storyNodeFilesFilesItem["CreateTime"].isNull()) + filesItemObject.createTime = storyNodeFilesFilesItem["CreateTime"].asString(); + if(!storyNodeFilesFilesItem["URI"].isNull()) + filesItemObject.uRI = storyNodeFilesFilesItem["URI"].asString(); + if(!storyNodeFilesFilesItem["OSSURI"].isNull()) + filesItemObject.oSSURI = storyNodeFilesFilesItem["OSSURI"].asString(); + if(!storyNodeFilesFilesItem["Filename"].isNull()) + filesItemObject.filename = storyNodeFilesFilesItem["Filename"].asString(); + if(!storyNodeFilesFilesItem["MediaType"].isNull()) + filesItemObject.mediaType = storyNodeFilesFilesItem["MediaType"].asString(); + if(!storyNodeFilesFilesItem["ContentType"].isNull()) + filesItemObject.contentType = storyNodeFilesFilesItem["ContentType"].asString(); + if(!storyNodeFilesFilesItem["Size"].isNull()) + filesItemObject.size = std::stol(storyNodeFilesFilesItem["Size"].asString()); + if(!storyNodeFilesFilesItem["FileHash"].isNull()) + filesItemObject.fileHash = storyNodeFilesFilesItem["FileHash"].asString(); + if(!storyNodeFilesFilesItem["FileModifiedTime"].isNull()) + filesItemObject.fileModifiedTime = storyNodeFilesFilesItem["FileModifiedTime"].asString(); + if(!storyNodeFilesFilesItem["FileCreateTime"].isNull()) + filesItemObject.fileCreateTime = storyNodeFilesFilesItem["FileCreateTime"].asString(); + if(!storyNodeFilesFilesItem["FileAccessTime"].isNull()) + filesItemObject.fileAccessTime = storyNodeFilesFilesItem["FileAccessTime"].asString(); + if(!storyNodeFilesFilesItem["ProduceTime"].isNull()) + filesItemObject.produceTime = storyNodeFilesFilesItem["ProduceTime"].asString(); + if(!storyNodeFilesFilesItem["LatLong"].isNull()) + filesItemObject.latLong = storyNodeFilesFilesItem["LatLong"].asString(); + if(!storyNodeFilesFilesItem["Timezone"].isNull()) + filesItemObject.timezone = storyNodeFilesFilesItem["Timezone"].asString(); + if(!storyNodeFilesFilesItem["TravelClusterId"].isNull()) + filesItemObject.travelClusterId = storyNodeFilesFilesItem["TravelClusterId"].asString(); + if(!storyNodeFilesFilesItem["Orientation"].isNull()) + filesItemObject.orientation = std::stol(storyNodeFilesFilesItem["Orientation"].asString()); + if(!storyNodeFilesFilesItem["FigureCount"].isNull()) + filesItemObject.figureCount = std::stol(storyNodeFilesFilesItem["FigureCount"].asString()); + if(!storyNodeFilesFilesItem["Title"].isNull()) + filesItemObject.title = storyNodeFilesFilesItem["Title"].asString(); + if(!storyNodeFilesFilesItem["ImageWidth"].isNull()) + filesItemObject.imageWidth = std::stol(storyNodeFilesFilesItem["ImageWidth"].asString()); + if(!storyNodeFilesFilesItem["ImageHeight"].isNull()) + filesItemObject.imageHeight = std::stol(storyNodeFilesFilesItem["ImageHeight"].asString()); + if(!storyNodeFilesFilesItem["EXIF"].isNull()) + filesItemObject.eXIF = storyNodeFilesFilesItem["EXIF"].asString(); + if(!storyNodeFilesFilesItem["VideoWidth"].isNull()) + filesItemObject.videoWidth = std::stol(storyNodeFilesFilesItem["VideoWidth"].asString()); + if(!storyNodeFilesFilesItem["VideoHeight"].isNull()) + filesItemObject.videoHeight = std::stol(storyNodeFilesFilesItem["VideoHeight"].asString()); + if(!storyNodeFilesFilesItem["Artist"].isNull()) + filesItemObject.artist = storyNodeFilesFilesItem["Artist"].asString(); + if(!storyNodeFilesFilesItem["AlbumArtist"].isNull()) + filesItemObject.albumArtist = storyNodeFilesFilesItem["AlbumArtist"].asString(); + if(!storyNodeFilesFilesItem["Composer"].isNull()) + filesItemObject.composer = storyNodeFilesFilesItem["Composer"].asString(); + if(!storyNodeFilesFilesItem["Performer"].isNull()) + filesItemObject.performer = storyNodeFilesFilesItem["Performer"].asString(); + if(!storyNodeFilesFilesItem["Language"].isNull()) + filesItemObject.language = storyNodeFilesFilesItem["Language"].asString(); + if(!storyNodeFilesFilesItem["Album"].isNull()) + filesItemObject.album = storyNodeFilesFilesItem["Album"].asString(); + if(!storyNodeFilesFilesItem["DocumentLanguage"].isNull()) + filesItemObject.documentLanguage = storyNodeFilesFilesItem["DocumentLanguage"].asString(); + if(!storyNodeFilesFilesItem["PageCount"].isNull()) + filesItemObject.pageCount = std::stol(storyNodeFilesFilesItem["PageCount"].asString()); + if(!storyNodeFilesFilesItem["DocumentContent"].isNull()) + filesItemObject.documentContent = storyNodeFilesFilesItem["DocumentContent"].asString(); + if(!storyNodeFilesFilesItem["ETag"].isNull()) + filesItemObject.eTag = storyNodeFilesFilesItem["ETag"].asString(); + if(!storyNodeFilesFilesItem["CacheControl"].isNull()) + filesItemObject.cacheControl = storyNodeFilesFilesItem["CacheControl"].asString(); + if(!storyNodeFilesFilesItem["ContentDisposition"].isNull()) + filesItemObject.contentDisposition = storyNodeFilesFilesItem["ContentDisposition"].asString(); + if(!storyNodeFilesFilesItem["ContentEncoding"].isNull()) + filesItemObject.contentEncoding = storyNodeFilesFilesItem["ContentEncoding"].asString(); + if(!storyNodeFilesFilesItem["ContentLanguage"].isNull()) + filesItemObject.contentLanguage = storyNodeFilesFilesItem["ContentLanguage"].asString(); + if(!storyNodeFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesItemObject.accessControlAllowOrigin = storyNodeFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!storyNodeFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesItemObject.accessControlRequestMethod = storyNodeFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!storyNodeFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesItemObject.serverSideEncryptionCustomerAlgorithm = storyNodeFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!storyNodeFilesFilesItem["ServerSideEncryption"].isNull()) + filesItemObject.serverSideEncryption = storyNodeFilesFilesItem["ServerSideEncryption"].asString(); + if(!storyNodeFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesItemObject.serverSideDataEncryption = storyNodeFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!storyNodeFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesItemObject.serverSideEncryptionKeyId = storyNodeFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!storyNodeFilesFilesItem["OSSStorageClass"].isNull()) + filesItemObject.oSSStorageClass = storyNodeFilesFilesItem["OSSStorageClass"].asString(); + if(!storyNodeFilesFilesItem["OSSCRC64"].isNull()) + filesItemObject.oSSCRC64 = storyNodeFilesFilesItem["OSSCRC64"].asString(); + if(!storyNodeFilesFilesItem["ObjectACL"].isNull()) + filesItemObject.objectACL = storyNodeFilesFilesItem["ObjectACL"].asString(); + if(!storyNodeFilesFilesItem["ContentMd5"].isNull()) + filesItemObject.contentMd5 = storyNodeFilesFilesItem["ContentMd5"].asString(); + if(!storyNodeFilesFilesItem["OSSUserMeta"].isNull()) + filesItemObject.oSSUserMeta = storyNodeFilesFilesItem["OSSUserMeta"].asString(); + if(!storyNodeFilesFilesItem["OSSTaggingCount"].isNull()) + filesItemObject.oSSTaggingCount = std::stol(storyNodeFilesFilesItem["OSSTaggingCount"].asString()); + if(!storyNodeFilesFilesItem["OSSTagging"].isNull()) + filesItemObject.oSSTagging = storyNodeFilesFilesItem["OSSTagging"].asString(); + if(!storyNodeFilesFilesItem["OSSExpiration"].isNull()) + filesItemObject.oSSExpiration = storyNodeFilesFilesItem["OSSExpiration"].asString(); + if(!storyNodeFilesFilesItem["OSSVersionId"].isNull()) + filesItemObject.oSSVersionId = storyNodeFilesFilesItem["OSSVersionId"].asString(); + if(!storyNodeFilesFilesItem["OSSDeleteMarker"].isNull()) + filesItemObject.oSSDeleteMarker = storyNodeFilesFilesItem["OSSDeleteMarker"].asString(); + if(!storyNodeFilesFilesItem["OSSObjectType"].isNull()) + filesItemObject.oSSObjectType = storyNodeFilesFilesItem["OSSObjectType"].asString(); + if(!storyNodeFilesFilesItem["CustomId"].isNull()) + filesItemObject.customId = storyNodeFilesFilesItem["CustomId"].asString(); + if(!storyNodeFilesFilesItem["CustomLabels"].isNull()) + filesItemObject.customLabels = storyNodeFilesFilesItem["CustomLabels"].asString(); + if(!storyNodeFilesFilesItem["StreamCount"].isNull()) + filesItemObject.streamCount = std::stol(storyNodeFilesFilesItem["StreamCount"].asString()); + if(!storyNodeFilesFilesItem["ProgramCount"].isNull()) + filesItemObject.programCount = std::stol(storyNodeFilesFilesItem["ProgramCount"].asString()); + if(!storyNodeFilesFilesItem["FormatName"].isNull()) + filesItemObject.formatName = storyNodeFilesFilesItem["FormatName"].asString(); + if(!storyNodeFilesFilesItem["FormatLongName"].isNull()) + filesItemObject.formatLongName = storyNodeFilesFilesItem["FormatLongName"].asString(); + if(!storyNodeFilesFilesItem["StartTime"].isNull()) + filesItemObject.startTime = storyNodeFilesFilesItem["StartTime"].asString(); + if(!storyNodeFilesFilesItem["Bitrate"].isNull()) + filesItemObject.bitrate = std::stol(storyNodeFilesFilesItem["Bitrate"].asString()); + if(!storyNodeFilesFilesItem["Duration"].isNull()) + filesItemObject.duration = storyNodeFilesFilesItem["Duration"].asString(); + auto allAddressesNode = storyNodeFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto storyNodeFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + Story::FilesItem::AddressesItem addressesObject; + if(!storyNodeFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = storyNodeFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = storyNodeFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = storyNodeFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = storyNodeFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = storyNodeFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = storyNodeFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!storyNodeFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = storyNodeFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesItemObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = storyNodeFilesFilesItem["Figures"]["FiguresItem"]; + for (auto storyNodeFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + Story::FilesItem::FiguresItem figuresObject; + if(!storyNodeFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = storyNodeFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = storyNodeFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = storyNodeFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(storyNodeFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = storyNodeFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = storyNodeFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = storyNodeFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = storyNodeFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = storyNodeFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = storyNodeFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = storyNodeFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!storyNodeFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!storyNodeFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(storyNodeFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesItemObject.figures.push_back(figuresObject); + } + auto allLabelsNode = storyNodeFilesFilesItem["Labels"]["LabelsItem"]; + for (auto storyNodeFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + Story::FilesItem::LabelsItem labelsObject; + if(!storyNodeFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = storyNodeFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!storyNodeFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = storyNodeFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!storyNodeFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(storyNodeFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!storyNodeFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(storyNodeFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!storyNodeFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = storyNodeFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!storyNodeFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(storyNodeFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesItemObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = storyNodeFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto storyNodeFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + Story::FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!storyNodeFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = storyNodeFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!storyNodeFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(storyNodeFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesItemObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = storyNodeFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto storyNodeFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + Story::FilesItem::OCRContentsItem oCRContentsObject; + if(!storyNodeFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = storyNodeFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!storyNodeFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = storyNodeFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!storyNodeFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(storyNodeFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesItemObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = storyNodeFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto storyNodeFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + Story::FilesItem::VideoStreamsItem videoStreamsObject; + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = storyNodeFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesItemObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = storyNodeFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto storyNodeFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + Story::FilesItem::SubtitlesItem subtitlesObject; + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(storyNodeFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = storyNodeFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = storyNodeFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = storyNodeFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = storyNodeFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(storyNodeFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = storyNodeFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(storyNodeFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!storyNodeFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(storyNodeFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesItemObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = storyNodeFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto storyNodeFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + Story::FilesItem::AudioStreamsItem audioStreamsObject; + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = storyNodeFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesItemObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = storyNodeFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto storyNodeFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + Story::FilesItem::AudioCoversItem audioCoversObject; + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(storyNodeFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(storyNodeFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = storyNodeFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = storyNodeFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto storyNodeFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + Story::FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = storyNodeFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(storyNodeFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = storyNodeFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + Story::FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(storyNodeFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesItemObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesItemObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + story_.files.push_back(filesItemObject); + } + auto coverNode = storyNode["Cover"]; + if(!coverNode["OwnerId"].isNull()) + story_.cover.ownerId = coverNode["OwnerId"].asString(); + if(!coverNode["ProjectName"].isNull()) + story_.cover.projectName = coverNode["ProjectName"].asString(); + if(!coverNode["DatasetName"].isNull()) + story_.cover.datasetName = coverNode["DatasetName"].asString(); + if(!coverNode["ObjectType"].isNull()) + story_.cover.objectType = coverNode["ObjectType"].asString(); + if(!coverNode["ObjectId"].isNull()) + story_.cover.objectId = coverNode["ObjectId"].asString(); + if(!coverNode["UpdateTime"].isNull()) + story_.cover.updateTime = coverNode["UpdateTime"].asString(); + if(!coverNode["CreateTime"].isNull()) + story_.cover.createTime = coverNode["CreateTime"].asString(); + if(!coverNode["URI"].isNull()) + story_.cover.uRI = coverNode["URI"].asString(); + if(!coverNode["OSSURI"].isNull()) + story_.cover.oSSURI = coverNode["OSSURI"].asString(); + if(!coverNode["Filename"].isNull()) + story_.cover.filename = coverNode["Filename"].asString(); + if(!coverNode["MediaType"].isNull()) + story_.cover.mediaType = coverNode["MediaType"].asString(); + if(!coverNode["ContentType"].isNull()) + story_.cover.contentType = coverNode["ContentType"].asString(); + if(!coverNode["Size"].isNull()) + story_.cover.size = std::stol(coverNode["Size"].asString()); + if(!coverNode["FileHash"].isNull()) + story_.cover.fileHash = coverNode["FileHash"].asString(); + if(!coverNode["FileModifiedTime"].isNull()) + story_.cover.fileModifiedTime = coverNode["FileModifiedTime"].asString(); + if(!coverNode["FileCreateTime"].isNull()) + story_.cover.fileCreateTime = coverNode["FileCreateTime"].asString(); + if(!coverNode["FileAccessTime"].isNull()) + story_.cover.fileAccessTime = coverNode["FileAccessTime"].asString(); + if(!coverNode["ProduceTime"].isNull()) + story_.cover.produceTime = coverNode["ProduceTime"].asString(); + if(!coverNode["LatLong"].isNull()) + story_.cover.latLong = coverNode["LatLong"].asString(); + if(!coverNode["Timezone"].isNull()) + story_.cover.timezone = coverNode["Timezone"].asString(); + if(!coverNode["TravelClusterId"].isNull()) + story_.cover.travelClusterId = coverNode["TravelClusterId"].asString(); + if(!coverNode["Orientation"].isNull()) + story_.cover.orientation = std::stol(coverNode["Orientation"].asString()); + if(!coverNode["FigureCount"].isNull()) + story_.cover.figureCount = std::stol(coverNode["FigureCount"].asString()); + if(!coverNode["Title"].isNull()) + story_.cover.title = coverNode["Title"].asString(); + if(!coverNode["ImageWidth"].isNull()) + story_.cover.imageWidth = std::stol(coverNode["ImageWidth"].asString()); + if(!coverNode["ImageHeight"].isNull()) + story_.cover.imageHeight = std::stol(coverNode["ImageHeight"].asString()); + if(!coverNode["EXIF"].isNull()) + story_.cover.eXIF = coverNode["EXIF"].asString(); + if(!coverNode["VideoWidth"].isNull()) + story_.cover.videoWidth = std::stol(coverNode["VideoWidth"].asString()); + if(!coverNode["VideoHeight"].isNull()) + story_.cover.videoHeight = std::stol(coverNode["VideoHeight"].asString()); + if(!coverNode["Artist"].isNull()) + story_.cover.artist = coverNode["Artist"].asString(); + if(!coverNode["AlbumArtist"].isNull()) + story_.cover.albumArtist = coverNode["AlbumArtist"].asString(); + if(!coverNode["Composer"].isNull()) + story_.cover.composer = coverNode["Composer"].asString(); + if(!coverNode["Performer"].isNull()) + story_.cover.performer = coverNode["Performer"].asString(); + if(!coverNode["Language"].isNull()) + story_.cover.language = coverNode["Language"].asString(); + if(!coverNode["Album"].isNull()) + story_.cover.album = coverNode["Album"].asString(); + if(!coverNode["DocumentLanguage"].isNull()) + story_.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); + if(!coverNode["PageCount"].isNull()) + story_.cover.pageCount = std::stol(coverNode["PageCount"].asString()); + if(!coverNode["DocumentContent"].isNull()) + story_.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["ETag"].isNull()) + story_.cover.eTag = coverNode["ETag"].asString(); + if(!coverNode["CacheControl"].isNull()) + story_.cover.cacheControl = coverNode["CacheControl"].asString(); + if(!coverNode["ContentDisposition"].isNull()) + story_.cover.contentDisposition = coverNode["ContentDisposition"].asString(); + if(!coverNode["ContentEncoding"].isNull()) + story_.cover.contentEncoding = coverNode["ContentEncoding"].asString(); + if(!coverNode["ContentLanguage"].isNull()) + story_.cover.contentLanguage = coverNode["ContentLanguage"].asString(); + if(!coverNode["AccessControlAllowOrigin"].isNull()) + story_.cover.accessControlAllowOrigin = coverNode["AccessControlAllowOrigin"].asString(); + if(!coverNode["AccessControlRequestMethod"].isNull()) + story_.cover.accessControlRequestMethod = coverNode["AccessControlRequestMethod"].asString(); + if(!coverNode["ServerSideEncryptionCustomerAlgorithm"].isNull()) + story_.cover.serverSideEncryptionCustomerAlgorithm = coverNode["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!coverNode["ServerSideEncryption"].isNull()) + story_.cover.serverSideEncryption = coverNode["ServerSideEncryption"].asString(); + if(!coverNode["ServerSideDataEncryption"].isNull()) + story_.cover.serverSideDataEncryption = coverNode["ServerSideDataEncryption"].asString(); + if(!coverNode["ServerSideEncryptionKeyId"].isNull()) + story_.cover.serverSideEncryptionKeyId = coverNode["ServerSideEncryptionKeyId"].asString(); + if(!coverNode["OSSStorageClass"].isNull()) + story_.cover.oSSStorageClass = coverNode["OSSStorageClass"].asString(); + if(!coverNode["OSSCRC64"].isNull()) + story_.cover.oSSCRC64 = coverNode["OSSCRC64"].asString(); + if(!coverNode["ObjectACL"].isNull()) + story_.cover.objectACL = coverNode["ObjectACL"].asString(); + if(!coverNode["ContentMd5"].isNull()) + story_.cover.contentMd5 = coverNode["ContentMd5"].asString(); + if(!coverNode["OSSUserMeta"].isNull()) + story_.cover.oSSUserMeta = coverNode["OSSUserMeta"].asString(); + if(!coverNode["OSSTaggingCount"].isNull()) + story_.cover.oSSTaggingCount = std::stol(coverNode["OSSTaggingCount"].asString()); + if(!coverNode["OSSTagging"].isNull()) + story_.cover.oSSTagging = coverNode["OSSTagging"].asString(); + if(!coverNode["OSSExpiration"].isNull()) + story_.cover.oSSExpiration = coverNode["OSSExpiration"].asString(); + if(!coverNode["OSSVersionId"].isNull()) + story_.cover.oSSVersionId = coverNode["OSSVersionId"].asString(); + if(!coverNode["OSSDeleteMarker"].isNull()) + story_.cover.oSSDeleteMarker = coverNode["OSSDeleteMarker"].asString(); + if(!coverNode["OSSObjectType"].isNull()) + story_.cover.oSSObjectType = coverNode["OSSObjectType"].asString(); + if(!coverNode["CustomId"].isNull()) + story_.cover.customId = coverNode["CustomId"].asString(); + if(!coverNode["CustomLabels"].isNull()) + story_.cover.customLabels = coverNode["CustomLabels"].asString(); + if(!coverNode["StreamCount"].isNull()) + story_.cover.streamCount = std::stol(coverNode["StreamCount"].asString()); + if(!coverNode["ProgramCount"].isNull()) + story_.cover.programCount = std::stol(coverNode["ProgramCount"].asString()); + if(!coverNode["FormatName"].isNull()) + story_.cover.formatName = coverNode["FormatName"].asString(); + if(!coverNode["FormatLongName"].isNull()) + story_.cover.formatLongName = coverNode["FormatLongName"].asString(); + if(!coverNode["StartTime"].isNull()) + story_.cover.startTime = coverNode["StartTime"].asString(); + if(!coverNode["Bitrate"].isNull()) + story_.cover.bitrate = std::stol(coverNode["Bitrate"].asString()); + if(!coverNode["Duration"].isNull()) + story_.cover.duration = coverNode["Duration"].asString(); + auto allAddresses11Node = coverNode["Addresses"]["AddressesItem"]; + for (auto coverNodeAddressesAddressesItem : allAddresses11Node) + { + Story::Cover::AddressesItem20 addressesItem20Object; + if(!coverNodeAddressesAddressesItem["Language"].isNull()) + addressesItem20Object.language = coverNodeAddressesAddressesItem["Language"].asString(); + if(!coverNodeAddressesAddressesItem["AddressLine"].isNull()) + addressesItem20Object.addressLine = coverNodeAddressesAddressesItem["AddressLine"].asString(); + if(!coverNodeAddressesAddressesItem["Country"].isNull()) + addressesItem20Object.country = coverNodeAddressesAddressesItem["Country"].asString(); + if(!coverNodeAddressesAddressesItem["Province"].isNull()) + addressesItem20Object.province = coverNodeAddressesAddressesItem["Province"].asString(); + if(!coverNodeAddressesAddressesItem["City"].isNull()) + addressesItem20Object.city = coverNodeAddressesAddressesItem["City"].asString(); + if(!coverNodeAddressesAddressesItem["District"].isNull()) + addressesItem20Object.district = coverNodeAddressesAddressesItem["District"].asString(); + if(!coverNodeAddressesAddressesItem["Township"].isNull()) + addressesItem20Object.township = coverNodeAddressesAddressesItem["Township"].asString(); + story_.cover.addresses11.push_back(addressesItem20Object); + } + auto allFigures12Node = coverNode["Figures"]["FiguresItem"]; + for (auto coverNodeFiguresFiguresItem : allFigures12Node) + { + Story::Cover::FiguresItem21 figuresItem21Object; + if(!coverNodeFiguresFiguresItem["FigureId"].isNull()) + figuresItem21Object.figureId = coverNodeFiguresFiguresItem["FigureId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureConfidence"].isNull()) + figuresItem21Object.figureConfidence = std::stof(coverNodeFiguresFiguresItem["FigureConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureClusterId"].isNull()) + figuresItem21Object.figureClusterId = coverNodeFiguresFiguresItem["FigureClusterId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresItem21Object.figureClusterConfidence = std::stof(coverNodeFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureType"].isNull()) + figuresItem21Object.figureType = coverNodeFiguresFiguresItem["FigureType"].asString(); + if(!coverNodeFiguresFiguresItem["Age"].isNull()) + figuresItem21Object.age = std::stol(coverNodeFiguresFiguresItem["Age"].asString()); + if(!coverNodeFiguresFiguresItem["AgeSD"].isNull()) + figuresItem21Object.ageSD = std::stof(coverNodeFiguresFiguresItem["AgeSD"].asString()); + if(!coverNodeFiguresFiguresItem["Gender"].isNull()) + figuresItem21Object.gender = coverNodeFiguresFiguresItem["Gender"].asString(); + if(!coverNodeFiguresFiguresItem["GenderConfidence"].isNull()) + figuresItem21Object.genderConfidence = std::stof(coverNodeFiguresFiguresItem["GenderConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Emotion"].isNull()) + figuresItem21Object.emotion = coverNodeFiguresFiguresItem["Emotion"].asString(); + if(!coverNodeFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresItem21Object.emotionConfidence = std::stof(coverNodeFiguresFiguresItem["EmotionConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FaceQuality"].isNull()) + figuresItem21Object.faceQuality = std::stof(coverNodeFiguresFiguresItem["FaceQuality"].asString()); + if(!coverNodeFiguresFiguresItem["Mouth"].isNull()) + figuresItem21Object.mouth = coverNodeFiguresFiguresItem["Mouth"].asString(); + if(!coverNodeFiguresFiguresItem["MouthConfidence"].isNull()) + figuresItem21Object.mouthConfidence = std::stof(coverNodeFiguresFiguresItem["MouthConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Beard"].isNull()) + figuresItem21Object.beard = coverNodeFiguresFiguresItem["Beard"].asString(); + if(!coverNodeFiguresFiguresItem["BeardConfidence"].isNull()) + figuresItem21Object.beardConfidence = std::stof(coverNodeFiguresFiguresItem["BeardConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Hat"].isNull()) + figuresItem21Object.hat = coverNodeFiguresFiguresItem["Hat"].asString(); + if(!coverNodeFiguresFiguresItem["HatConfidence"].isNull()) + figuresItem21Object.hatConfidence = std::stof(coverNodeFiguresFiguresItem["HatConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Mask"].isNull()) + figuresItem21Object.mask = coverNodeFiguresFiguresItem["Mask"].asString(); + if(!coverNodeFiguresFiguresItem["MaskConfidence"].isNull()) + figuresItem21Object.maskConfidence = std::stof(coverNodeFiguresFiguresItem["MaskConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Glasses"].isNull()) + figuresItem21Object.glasses = coverNodeFiguresFiguresItem["Glasses"].asString(); + if(!coverNodeFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresItem21Object.glassesConfidence = std::stof(coverNodeFiguresFiguresItem["GlassesConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Sharpness"].isNull()) + figuresItem21Object.sharpness = std::stof(coverNodeFiguresFiguresItem["Sharpness"].asString()); + if(!coverNodeFiguresFiguresItem["Attractive"].isNull()) + figuresItem21Object.attractive = std::stof(coverNodeFiguresFiguresItem["Attractive"].asString()); + auto boundary22Node = value["Boundary"]; + if(!boundary22Node["Width"].isNull()) + figuresItem21Object.boundary22.width = std::stol(boundary22Node["Width"].asString()); + if(!boundary22Node["Height"].isNull()) + figuresItem21Object.boundary22.height = std::stol(boundary22Node["Height"].asString()); + if(!boundary22Node["Left"].isNull()) + figuresItem21Object.boundary22.left = std::stol(boundary22Node["Left"].asString()); + if(!boundary22Node["Top"].isNull()) + figuresItem21Object.boundary22.top = std::stol(boundary22Node["Top"].asString()); + auto headPose23Node = value["HeadPose"]; + if(!headPose23Node["Pitch"].isNull()) + figuresItem21Object.headPose23.pitch = std::stof(headPose23Node["Pitch"].asString()); + if(!headPose23Node["Roll"].isNull()) + figuresItem21Object.headPose23.roll = std::stof(headPose23Node["Roll"].asString()); + if(!headPose23Node["Yaw"].isNull()) + figuresItem21Object.headPose23.yaw = std::stof(headPose23Node["Yaw"].asString()); + story_.cover.figures12.push_back(figuresItem21Object); + } + auto allLabels13Node = coverNode["Labels"]["LabelsItem"]; + for (auto coverNodeLabelsLabelsItem : allLabels13Node) + { + Story::Cover::LabelsItem24 labelsItem24Object; + if(!coverNodeLabelsLabelsItem["Language"].isNull()) + labelsItem24Object.language = coverNodeLabelsLabelsItem["Language"].asString(); + if(!coverNodeLabelsLabelsItem["LabelName"].isNull()) + labelsItem24Object.labelName = coverNodeLabelsLabelsItem["LabelName"].asString(); + if(!coverNodeLabelsLabelsItem["LabelLevel"].isNull()) + labelsItem24Object.labelLevel = std::stol(coverNodeLabelsLabelsItem["LabelLevel"].asString()); + if(!coverNodeLabelsLabelsItem["LabelConfidence"].isNull()) + labelsItem24Object.labelConfidence = std::stof(coverNodeLabelsLabelsItem["LabelConfidence"].asString()); + if(!coverNodeLabelsLabelsItem["ParentLabelName"].isNull()) + labelsItem24Object.parentLabelName = coverNodeLabelsLabelsItem["ParentLabelName"].asString(); + if(!coverNodeLabelsLabelsItem["CentricScore"].isNull()) + labelsItem24Object.centricScore = std::stof(coverNodeLabelsLabelsItem["CentricScore"].asString()); + story_.cover.labels13.push_back(labelsItem24Object); + } + auto allCroppingSuggestions14Node = coverNode["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions14Node) + { + Story::Cover::CroppingSuggestionsItem25 croppingSuggestionsItem25Object; + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsItem25Object.aspectRatio = coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsItem25Object.confidence = std::stof(coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary26Node = value["Boundary"]; + if(!boundary26Node["Width"].isNull()) + croppingSuggestionsItem25Object.boundary26.width = std::stol(boundary26Node["Width"].asString()); + if(!boundary26Node["Height"].isNull()) + croppingSuggestionsItem25Object.boundary26.height = std::stol(boundary26Node["Height"].asString()); + if(!boundary26Node["Left"].isNull()) + croppingSuggestionsItem25Object.boundary26.left = std::stol(boundary26Node["Left"].asString()); + if(!boundary26Node["Top"].isNull()) + croppingSuggestionsItem25Object.boundary26.top = std::stol(boundary26Node["Top"].asString()); + story_.cover.croppingSuggestions14.push_back(croppingSuggestionsItem25Object); + } + auto allOCRContents15Node = coverNode["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeOCRContentsOCRContentsItem : allOCRContents15Node) + { + Story::Cover::OCRContentsItem27 oCRContentsItem27Object; + if(!coverNodeOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsItem27Object.language = coverNodeOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsItem27Object.contents = coverNodeOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsItem27Object.confidence = std::stof(coverNodeOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary28Node = value["Boundary"]; + if(!boundary28Node["Width"].isNull()) + oCRContentsItem27Object.boundary28.width = std::stol(boundary28Node["Width"].asString()); + if(!boundary28Node["Height"].isNull()) + oCRContentsItem27Object.boundary28.height = std::stol(boundary28Node["Height"].asString()); + if(!boundary28Node["Left"].isNull()) + oCRContentsItem27Object.boundary28.left = std::stol(boundary28Node["Left"].asString()); + if(!boundary28Node["Top"].isNull()) + oCRContentsItem27Object.boundary28.top = std::stol(boundary28Node["Top"].asString()); + story_.cover.oCRContents15.push_back(oCRContentsItem27Object); + } + auto allVideoStreams16Node = coverNode["VideoStreams"]["VideoStreamsItem"]; + for (auto coverNodeVideoStreamsVideoStreamsItem : allVideoStreams16Node) + { + Story::Cover::VideoStreamsItem29 videoStreamsItem29Object; + if(!coverNodeVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsItem29Object.index = std::stol(coverNodeVideoStreamsVideoStreamsItem["Index"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsItem29Object.language = coverNodeVideoStreamsVideoStreamsItem["Language"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsItem29Object.codecName = coverNodeVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsItem29Object.codecLongName = coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsItem29Object.profile = coverNodeVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsItem29Object.codecTimeBase = coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsItem29Object.codecTagString = coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsItem29Object.codecTag = coverNodeVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsItem29Object.width = std::stol(coverNodeVideoStreamsVideoStreamsItem["Width"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsItem29Object.height = std::stol(coverNodeVideoStreamsVideoStreamsItem["Height"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsItem29Object.hasBFrames = std::stol(coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsItem29Object.sampleAspectRatio = coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsItem29Object.displayAspectRatio = coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsItem29Object.pixelFormat = coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsItem29Object.level = std::stol(coverNodeVideoStreamsVideoStreamsItem["Level"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsItem29Object.frameRate = coverNodeVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsItem29Object.averageFrameRate = coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsItem29Object.timeBase = coverNodeVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsItem29Object.startTime = coverNodeVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsItem29Object.duration = coverNodeVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsItem29Object.bitrate = std::stol(coverNodeVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsItem29Object.frameCount = std::stol(coverNodeVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsItem29Object.rotate = coverNodeVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsItem29Object.bitDepth = std::stol(coverNodeVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsItem29Object.colorSpace = coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsItem29Object.colorRange = coverNodeVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsItem29Object.colorTransfer = coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsItem29Object.colorPrimaries = coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + story_.cover.videoStreams16.push_back(videoStreamsItem29Object); + } + auto allSubtitles17Node = coverNode["Subtitles"]["SubtitlesItem"]; + for (auto coverNodeSubtitlesSubtitlesItem : allSubtitles17Node) + { + Story::Cover::SubtitlesItem30 subtitlesItem30Object; + if(!coverNodeSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesItem30Object.index = std::stol(coverNodeSubtitlesSubtitlesItem["Index"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesItem30Object.language = coverNodeSubtitlesSubtitlesItem["Language"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesItem30Object.codecName = coverNodeSubtitlesSubtitlesItem["CodecName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesItem30Object.codecLongName = coverNodeSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesItem30Object.codecTagString = coverNodeSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesItem30Object.codecTag = coverNodeSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesItem30Object.startTime = coverNodeSubtitlesSubtitlesItem["StartTime"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesItem30Object.duration = coverNodeSubtitlesSubtitlesItem["Duration"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesItem30Object.bitrate = std::stol(coverNodeSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesItem30Object.content = coverNodeSubtitlesSubtitlesItem["Content"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesItem30Object.width = std::stol(coverNodeSubtitlesSubtitlesItem["Width"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesItem30Object.height = std::stol(coverNodeSubtitlesSubtitlesItem["Height"].asString()); + story_.cover.subtitles17.push_back(subtitlesItem30Object); + } + auto allAudioStreams18Node = coverNode["AudioStreams"]["AudioStreamsItem"]; + for (auto coverNodeAudioStreamsAudioStreamsItem : allAudioStreams18Node) + { + Story::Cover::AudioStreamsItem31 audioStreamsItem31Object; + if(!coverNodeAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsItem31Object.index = std::stol(coverNodeAudioStreamsAudioStreamsItem["Index"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsItem31Object.language = coverNodeAudioStreamsAudioStreamsItem["Language"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsItem31Object.codecName = coverNodeAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsItem31Object.codecLongName = coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsItem31Object.codecTimeBase = coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsItem31Object.codecTagString = coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsItem31Object.codecTag = coverNodeAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsItem31Object.timeBase = coverNodeAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsItem31Object.startTime = coverNodeAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsItem31Object.duration = coverNodeAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsItem31Object.bitrate = std::stol(coverNodeAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsItem31Object.frameCount = std::stol(coverNodeAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsItem31Object.lyric = coverNodeAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsItem31Object.sampleFormat = coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsItem31Object.sampleRate = std::stol(coverNodeAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsItem31Object.channels = std::stol(coverNodeAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsItem31Object.channelLayout = coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + story_.cover.audioStreams18.push_back(audioStreamsItem31Object); + } + auto allAudioCovers19Node = coverNode["AudioCovers"]["AudioCoversItem"]; + for (auto coverNodeAudioCoversAudioCoversItem : allAudioCovers19Node) + { + Story::Cover::AudioCoversItem32 audioCoversItem32Object; + if(!coverNodeAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversItem32Object.imageWidth = std::stol(coverNodeAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversItem32Object.imageHeight = std::stol(coverNodeAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversItem32Object.eXIF = coverNodeAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions34Node = coverNodeAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions34Node) + { + Story::Cover::AudioCoversItem32::CroppingSuggestionsItem36 croppingSuggestions34Object; + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions34Object.aspectRatio = coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions34Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary37Node = value["Boundary"]; + if(!boundary37Node["Width"].isNull()) + croppingSuggestions34Object.boundary37.width = std::stol(boundary37Node["Width"].asString()); + if(!boundary37Node["Height"].isNull()) + croppingSuggestions34Object.boundary37.height = std::stol(boundary37Node["Height"].asString()); + if(!boundary37Node["Left"].isNull()) + croppingSuggestions34Object.boundary37.left = std::stol(boundary37Node["Left"].asString()); + if(!boundary37Node["Top"].isNull()) + croppingSuggestions34Object.boundary37.top = std::stol(boundary37Node["Top"].asString()); + audioCoversItem32Object.croppingSuggestions34.push_back(croppingSuggestions34Object); + } + auto allOCRContents35Node = coverNodeAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents35Node) + { + Story::Cover::AudioCoversItem32::OCRContentsItem38 oCRContents35Object; + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents35Object.language = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents35Object.contents = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents35Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary39Node = value["Boundary"]; + if(!boundary39Node["Width"].isNull()) + oCRContents35Object.boundary39.width = std::stol(boundary39Node["Width"].asString()); + if(!boundary39Node["Height"].isNull()) + oCRContents35Object.boundary39.height = std::stol(boundary39Node["Height"].asString()); + if(!boundary39Node["Left"].isNull()) + oCRContents35Object.boundary39.left = std::stol(boundary39Node["Left"].asString()); + if(!boundary39Node["Top"].isNull()) + oCRContents35Object.boundary39.top = std::stol(boundary39Node["Top"].asString()); + audioCoversItem32Object.oCRContents35.push_back(oCRContents35Object); + } + auto imageScore33Node = value["ImageScore"]; + if(!imageScore33Node["OverallQualityScore"].isNull()) + audioCoversItem32Object.imageScore33.overallQualityScore = std::stof(imageScore33Node["OverallQualityScore"].asString()); + story_.cover.audioCovers19.push_back(audioCoversItem32Object); + } + auto imageScore10Node = coverNode["ImageScore"]; + if(!imageScore10Node["OverallQualityScore"].isNull()) + story_.cover.imageScore10.overallQualityScore = std::stof(imageScore10Node["OverallQualityScore"].asString()); + auto allFigureClusterIds = storyNode["FigureClusterIds"]["null"]; + for (auto value : allFigureClusterIds) + story_.figureClusterIds.push_back(value.asString()); + +} + +GetStoryResult::Story GetStoryResult::getStory()const +{ + return story_; +} + diff --git a/imm/src/model/GetTaskRequest.cc b/imm/src/model/GetTaskRequest.cc new file mode 100644 index 000000000..d1f8e3b8a --- /dev/null +++ b/imm/src/model/GetTaskRequest.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::GetTaskRequest; + +GetTaskRequest::GetTaskRequest() + : RpcServiceRequest("imm", "2020-09-30", "GetTask") { + setMethod(HttpRequest::Method::Post); +} + +GetTaskRequest::~GetTaskRequest() {} + +std::string GetTaskRequest::getTaskId() const { + return taskId_; +} + +void GetTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string GetTaskRequest::getProjectName() const { + return projectName_; +} + +void GetTaskRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string GetTaskRequest::getTaskType() const { + return taskType_; +} + +void GetTaskRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + diff --git a/imm/src/model/GetTaskResult.cc b/imm/src/model/GetTaskResult.cc new file mode 100644 index 000000000..f65422653 --- /dev/null +++ b/imm/src/model/GetTaskResult.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; + +GetTaskResult::GetTaskResult() : + ServiceResult() +{} + +GetTaskResult::GetTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskResult::~GetTaskResult() +{} + +void GetTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ProjectName"].isNull()) + projectName_ = value["ProjectName"].asString(); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["UserData"].isNull()) + userData_ = value["UserData"].asString(); + if(!value["TaskType"].isNull()) + taskType_ = value["TaskType"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Tags"].isNull()) + tags_ = value["Tags"].asString(); + +} + +std::string GetTaskResult::getStatus()const +{ + return status_; +} + +std::string GetTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string GetTaskResult::getMessage()const +{ + return message_; +} + +std::string GetTaskResult::getEndTime()const +{ + return endTime_; +} + +std::string GetTaskResult::getProjectName()const +{ + return projectName_; +} + +std::string GetTaskResult::getUserData()const +{ + return userData_; +} + +std::string GetTaskResult::getTaskType()const +{ + return taskType_; +} + +std::string GetTaskResult::getStartTime()const +{ + return startTime_; +} + +std::string GetTaskResult::getEventId()const +{ + return eventId_; +} + +std::string GetTaskResult::getCode()const +{ + return code_; +} + +std::string GetTaskResult::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/GetVideoRequest.cc b/imm/src/model/GetVideoRequest.cc deleted file mode 100644 index 585d1aab3..000000000 --- a/imm/src/model/GetVideoRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 40afb48ea..000000000 --- a/imm/src/model/GetVideoResult.cc +++ /dev/null @@ -1,381 +0,0 @@ -/* - * 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 deleted file mode 100644 index a2cc856d3..000000000 --- a/imm/src/model/GetVideoTaskRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index f7a93be48..000000000 --- a/imm/src/model/GetVideoTaskResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 e4ef2624c..b5d0a7028 100644 --- a/imm/src/model/GetWebofficeURLRequest.cc +++ b/imm/src/model/GetWebofficeURLRequest.cc @@ -19,55 +19,28 @@ using AlibabaCloud::Imm::Model::GetWebofficeURLRequest; GetWebofficeURLRequest::GetWebofficeURLRequest() - : RpcServiceRequest("imm", "2017-09-06", "GetWebofficeURL") { + : RpcServiceRequest("imm", "2020-09-30", "GetWebofficeURL") { setMethod(HttpRequest::Method::Post); } GetWebofficeURLRequest::~GetWebofficeURLRequest() {} -std::string GetWebofficeURLRequest::getSrcType() const { - return srcType_; +std::string GetWebofficeURLRequest::getReferer() const { + return referer_; } -void GetWebofficeURLRequest::setSrcType(const std::string &srcType) { - srcType_ = srcType; - setParameter(std::string("SrcType"), srcType); +void GetWebofficeURLRequest::setReferer(const std::string &referer) { + referer_ = referer; + setParameter(std::string("Referer"), referer); } -std::string GetWebofficeURLRequest::getProject() const { - return project_; +std::string GetWebofficeURLRequest::getPassword() const { + return password_; } -void GetWebofficeURLRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string GetWebofficeURLRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void GetWebofficeURLRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string GetWebofficeURLRequest::getFile() const { - return file_; -} - -void GetWebofficeURLRequest::setFile(const std::string &file) { - file_ = file; - setParameter(std::string("File"), file); -} - -bool GetWebofficeURLRequest::getHidecmb() const { - return hidecmb_; -} - -void GetWebofficeURLRequest::setHidecmb(bool hidecmb) { - hidecmb_ = hidecmb; - setParameter(std::string("Hidecmb"), hidecmb ? "true" : "false"); +void GetWebofficeURLRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); } std::string GetWebofficeURLRequest::getNotifyEndpoint() const { @@ -79,22 +52,28 @@ void GetWebofficeURLRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint setParameter(std::string("NotifyEndpoint"), notifyEndpoint); } -std::string GetWebofficeURLRequest::getFileID() const { - return fileID_; +std::string GetWebofficeURLRequest::getProjectName() const { + return projectName_; } -void GetWebofficeURLRequest::setFileID(const std::string &fileID) { - fileID_ = fileID; - setParameter(std::string("FileID"), fileID); +void GetWebofficeURLRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); } -std::string GetWebofficeURLRequest::getWatermark() const { +GetWebofficeURLRequest::Watermark GetWebofficeURLRequest::getWatermark() const { return watermark_; } -void GetWebofficeURLRequest::setWatermark(const std::string &watermark) { +void GetWebofficeURLRequest::setWatermark(const GetWebofficeURLRequest::Watermark &watermark) { watermark_ = watermark; - setParameter(std::string("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 { @@ -106,21 +85,106 @@ void GetWebofficeURLRequest::setNotifyTopicName(const std::string ¬ifyTopicNa setParameter(std::string("NotifyTopicName"), notifyTopicName); } -std::string GetWebofficeURLRequest::getPermission() const { +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)); +} + +bool GetWebofficeURLRequest::getHidecmb() const { + return hidecmb_; +} + +void GetWebofficeURLRequest::setHidecmb(bool hidecmb) { + hidecmb_ = hidecmb; + setParameter(std::string("Hidecmb"), hidecmb ? "true" : "false"); +} + +bool GetWebofficeURLRequest::getCachePreview() const { + return cachePreview_; +} + +void GetWebofficeURLRequest::setCachePreview(bool cachePreview) { + cachePreview_ = cachePreview; + setParameter(std::string("CachePreview"), cachePreview ? "true" : "false"); +} + +GetWebofficeURLRequest::Permission GetWebofficeURLRequest::getPermission() const { return permission_; } -void GetWebofficeURLRequest::setPermission(const std::string &permission) { +void GetWebofficeURLRequest::setPermission(const GetWebofficeURLRequest::Permission &permission) { permission_ = permission; - setParameter(std::string("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"); } -std::string GetWebofficeURLRequest::getUser() const { +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 { return user_; } -void GetWebofficeURLRequest::setUser(const std::string &user) { +void GetWebofficeURLRequest::setUser(const GetWebofficeURLRequest::User &user) { user_ = user; - setParameter(std::string("User"), user); + setParameter(std::string("User") + ".Name", user.name); + setParameter(std::string("User") + ".Id", user.id); + setParameter(std::string("User") + ".Avatar", user.avatar); } diff --git a/imm/src/model/GetWebofficeURLResult.cc b/imm/src/model/GetWebofficeURLResult.cc index 94e1ca95f..cf6ea6444 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["RefreshToken"].isNull()) - refreshToken_ = value["RefreshToken"].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["AccessToken"].isNull()) + accessToken_ = value["AccessToken"].asString(); + if(!value["RefreshToken"].isNull()) + refreshToken_ = value["RefreshToken"].asString(); if(!value["AccessTokenExpiredTime"].isNull()) accessTokenExpiredTime_ = value["AccessTokenExpiredTime"].asString(); + if(!value["RefreshTokenExpiredTime"].isNull()) + refreshTokenExpiredTime_ = value["RefreshTokenExpiredTime"].asString(); } diff --git a/imm/src/model/IndexFileMetaRequest.cc b/imm/src/model/IndexFileMetaRequest.cc new file mode 100644 index 000000000..89a1339dd --- /dev/null +++ b/imm/src/model/IndexFileMetaRequest.cc @@ -0,0 +1,85 @@ +/* + * 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::IndexFileMetaRequest; + +IndexFileMetaRequest::IndexFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "IndexFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +IndexFileMetaRequest::~IndexFileMetaRequest() {} + +IndexFileMetaRequest::File IndexFileMetaRequest::getFile() const { + return file_; +} + +void IndexFileMetaRequest::setFile(const IndexFileMetaRequest::File &file) { + file_ = file; + for(auto const &iter1 : file.customLabels) { + setParameter(std::string("File") + ".CustomLabels." + iter1.first, iter1.second); + } + for(int dep1 = 0; dep1 != file.figures.size(); dep1++) { + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureId", file.figures[dep1].figureId); + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureClusterId", file.figures[dep1].figureClusterId); + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureType", file.figures[dep1].figureType); + } + setParameter(std::string("File") + ".OSSURI", file.oSSURI); + setParameter(std::string("File") + ".FileHash", file.fileHash); + setParameter(std::string("File") + ".URI", file.uRI); + setParameter(std::string("File") + ".CustomId", file.customId); + setParameter(std::string("File") + ".MediaType", file.mediaType); + setParameter(std::string("File") + ".ContentType", file.contentType); +} + +std::string IndexFileMetaRequest::getNotifyEndpoint() const { + return notifyEndpoint_; +} + +void IndexFileMetaRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { + notifyEndpoint_ = notifyEndpoint; + setParameter(std::string("NotifyEndpoint"), notifyEndpoint); +} + +std::string IndexFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void IndexFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = 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/IndexFileMetaResult.cc b/imm/src/model/IndexFileMetaResult.cc new file mode 100644 index 000000000..6e04a1cfb --- /dev/null +++ b/imm/src/model/IndexFileMetaResult.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; + +IndexFileMetaResult::IndexFileMetaResult() : + ServiceResult() +{} + +IndexFileMetaResult::IndexFileMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexFileMetaResult::~IndexFileMetaResult() +{} + +void IndexFileMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EventId"].isNull()) + eventId_ = value["EventId"].asString(); + +} + +std::string IndexFileMetaResult::getEventId()const +{ + return eventId_; +} + diff --git a/imm/src/model/IndexImageRequest.cc b/imm/src/model/IndexImageRequest.cc deleted file mode 100644 index dd10fa518..000000000 --- a/imm/src/model/IndexImageRequest.cc +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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 deleted file mode 100644 index da48be5d8..000000000 --- a/imm/src/model/IndexImageResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 deleted file mode 100644 index 98e92ea80..000000000 --- a/imm/src/model/IndexVideoRequest.cc +++ /dev/null @@ -1,180 +0,0 @@ -/* - * 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 deleted file mode 100644 index 7bd75f80c..000000000 --- a/imm/src/model/IndexVideoResult.cc +++ /dev/null @@ -1,149 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..ec9c7d3c6 --- /dev/null +++ b/imm/src/model/ListBindingsRequest.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::ListBindingsRequest; + +ListBindingsRequest::ListBindingsRequest() + : RpcServiceRequest("imm", "2020-09-30", "ListBindings") { + setMethod(HttpRequest::Method::Post); +} + +ListBindingsRequest::~ListBindingsRequest() {} + +std::string ListBindingsRequest::getNextToken() const { + return nextToken_; +} + +void ListBindingsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListBindingsRequest::getDatasetName() const { + return datasetName_; +} + +void ListBindingsRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = 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_; +} + +void ListBindingsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/imm/src/model/ListBindingsResult.cc b/imm/src/model/ListBindingsResult.cc new file mode 100644 index 000000000..d56a84bb0 --- /dev/null +++ b/imm/src/model/ListBindingsResult.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; + +ListBindingsResult::ListBindingsResult() : + ServiceResult() +{} + +ListBindingsResult::ListBindingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListBindingsResult::~ListBindingsResult() +{} + +void ListBindingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBindingsNode = value["Bindings"]["BindingsItem"]; + for (auto valueBindingsBindingsItem : allBindingsNode) + { + BindingsItem bindingsObject; + if(!valueBindingsBindingsItem["ProjectName"].isNull()) + bindingsObject.projectName = valueBindingsBindingsItem["ProjectName"].asString(); + if(!valueBindingsBindingsItem["DatasetName"].isNull()) + bindingsObject.datasetName = valueBindingsBindingsItem["DatasetName"].asString(); + if(!valueBindingsBindingsItem["URI"].isNull()) + bindingsObject.uRI = valueBindingsBindingsItem["URI"].asString(); + if(!valueBindingsBindingsItem["State"].isNull()) + bindingsObject.state = valueBindingsBindingsItem["State"].asString(); + if(!valueBindingsBindingsItem["Phase"].isNull()) + bindingsObject.phase = valueBindingsBindingsItem["Phase"].asString(); + if(!valueBindingsBindingsItem["Detail"].isNull()) + bindingsObject.detail = valueBindingsBindingsItem["Detail"].asString(); + if(!valueBindingsBindingsItem["CreateTime"].isNull()) + bindingsObject.createTime = valueBindingsBindingsItem["CreateTime"].asString(); + if(!valueBindingsBindingsItem["UpdateTime"].isNull()) + bindingsObject.updateTime = valueBindingsBindingsItem["UpdateTime"].asString(); + bindings_.push_back(bindingsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListBindingsResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListBindingsResult::getBindings()const +{ + return bindings_; +} + diff --git a/imm/src/model/ListDatasetsRequest.cc b/imm/src/model/ListDatasetsRequest.cc new file mode 100644 index 000000000..394b393c1 --- /dev/null +++ b/imm/src/model/ListDatasetsRequest.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::ListDatasetsRequest; + +ListDatasetsRequest::ListDatasetsRequest() + : RpcServiceRequest("imm", "2020-09-30", "ListDatasets") { + setMethod(HttpRequest::Method::Post); +} + +ListDatasetsRequest::~ListDatasetsRequest() {} + +std::string ListDatasetsRequest::getPrefix() const { + return prefix_; +} + +void ListDatasetsRequest::setPrefix(const std::string &prefix) { + prefix_ = prefix; + setParameter(std::string("Prefix"), prefix); +} + +std::string ListDatasetsRequest::getNextToken() const { + return nextToken_; +} + +void ListDatasetsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListDatasetsRequest::getProjectName() const { + return projectName_; +} + +void ListDatasetsRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +long ListDatasetsRequest::getMaxResults() const { + return maxResults_; +} + +void ListDatasetsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/imm/src/model/ListDatasetsResult.cc b/imm/src/model/ListDatasetsResult.cc new file mode 100644 index 000000000..4b41f3f1e --- /dev/null +++ b/imm/src/model/ListDatasetsResult.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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListDatasetsResult::ListDatasetsResult() : + ServiceResult() +{} + +ListDatasetsResult::ListDatasetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDatasetsResult::~ListDatasetsResult() +{} + +void ListDatasetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDatasetsNode = value["Datasets"]["DatasetsItem"]; + for (auto valueDatasetsDatasetsItem : allDatasetsNode) + { + DatasetsItem datasetsObject; + if(!valueDatasetsDatasetsItem["ProjectName"].isNull()) + datasetsObject.projectName = valueDatasetsDatasetsItem["ProjectName"].asString(); + if(!valueDatasetsDatasetsItem["DatasetName"].isNull()) + datasetsObject.datasetName = valueDatasetsDatasetsItem["DatasetName"].asString(); + if(!valueDatasetsDatasetsItem["TemplateId"].isNull()) + datasetsObject.templateId = valueDatasetsDatasetsItem["TemplateId"].asString(); + if(!valueDatasetsDatasetsItem["CreateTime"].isNull()) + datasetsObject.createTime = valueDatasetsDatasetsItem["CreateTime"].asString(); + if(!valueDatasetsDatasetsItem["UpdateTime"].isNull()) + datasetsObject.updateTime = valueDatasetsDatasetsItem["UpdateTime"].asString(); + if(!valueDatasetsDatasetsItem["Description"].isNull()) + datasetsObject.description = valueDatasetsDatasetsItem["Description"].asString(); + if(!valueDatasetsDatasetsItem["DatasetMaxBindCount"].isNull()) + datasetsObject.datasetMaxBindCount = std::stol(valueDatasetsDatasetsItem["DatasetMaxBindCount"].asString()); + if(!valueDatasetsDatasetsItem["DatasetMaxFileCount"].isNull()) + datasetsObject.datasetMaxFileCount = std::stol(valueDatasetsDatasetsItem["DatasetMaxFileCount"].asString()); + if(!valueDatasetsDatasetsItem["DatasetMaxEntityCount"].isNull()) + datasetsObject.datasetMaxEntityCount = std::stol(valueDatasetsDatasetsItem["DatasetMaxEntityCount"].asString()); + if(!valueDatasetsDatasetsItem["DatasetMaxRelationCount"].isNull()) + datasetsObject.datasetMaxRelationCount = std::stol(valueDatasetsDatasetsItem["DatasetMaxRelationCount"].asString()); + if(!valueDatasetsDatasetsItem["DatasetMaxTotalFileSize"].isNull()) + datasetsObject.datasetMaxTotalFileSize = std::stol(valueDatasetsDatasetsItem["DatasetMaxTotalFileSize"].asString()); + if(!valueDatasetsDatasetsItem["BindCount"].isNull()) + datasetsObject.bindCount = std::stol(valueDatasetsDatasetsItem["BindCount"].asString()); + if(!valueDatasetsDatasetsItem["FileCount"].isNull()) + datasetsObject.fileCount = std::stol(valueDatasetsDatasetsItem["FileCount"].asString()); + if(!valueDatasetsDatasetsItem["TotalFileSize"].isNull()) + datasetsObject.totalFileSize = std::stol(valueDatasetsDatasetsItem["TotalFileSize"].asString()); + datasets_.push_back(datasetsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::vector ListDatasetsResult::getDatasets()const +{ + return datasets_; +} + +std::string ListDatasetsResult::getNextToken()const +{ + return nextToken_; +} + diff --git a/imm/src/model/ListFaceGroupsRequest.cc b/imm/src/model/ListFaceGroupsRequest.cc deleted file mode 100644 index 17398d429..000000000 --- a/imm/src/model/ListFaceGroupsRequest.cc +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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 deleted file mode 100644 index 587337407..000000000 --- a/imm/src/model/ListFaceGroupsResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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 deleted file mode 100644 index 566422d53..000000000 --- a/imm/src/model/ListImagesRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * 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 deleted file mode 100644 index 01cadbbea..000000000 --- a/imm/src/model/ListImagesResult.cc +++ /dev/null @@ -1,305 +0,0 @@ -/* - * 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 deleted file mode 100644 index e62314298..000000000 --- a/imm/src/model/ListOfficeConversionTaskRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 24c9cfc1b..000000000 --- a/imm/src/model/ListOfficeConversionTaskResult.cc +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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/ListProjectAPIsRequest.cc b/imm/src/model/ListProjectAPIsRequest.cc deleted file mode 100644 index 45d72781f..000000000 --- a/imm/src/model/ListProjectAPIsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * 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::ListProjectAPIsRequest; - -ListProjectAPIsRequest::ListProjectAPIsRequest() - : RpcServiceRequest("imm", "2017-09-06", "ListProjectAPIs") { - setMethod(HttpRequest::Method::Post); -} - -ListProjectAPIsRequest::~ListProjectAPIsRequest() {} - -std::string ListProjectAPIsRequest::getProject() const { - return project_; -} - -void ListProjectAPIsRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string ListProjectAPIsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ListProjectAPIsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - diff --git a/imm/src/model/ListProjectAPIsResult.cc b/imm/src/model/ListProjectAPIsResult.cc deleted file mode 100644 index 4f3e93755..000000000 --- a/imm/src/model/ListProjectAPIsResult.cc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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; - -ListProjectAPIsResult::ListProjectAPIsResult() : - ServiceResult() -{} - -ListProjectAPIsResult::ListProjectAPIsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListProjectAPIsResult::~ListProjectAPIsResult() -{} - -void ListProjectAPIsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAPIs = value["APIs"]["APIs"]; - for (const auto &item : allAPIs) - aPIs_.push_back(item.asString()); - if(!value["Project"].isNull()) - project_ = value["Project"].asString(); - -} - -std::string ListProjectAPIsResult::getProject()const -{ - return project_; -} - -std::vector ListProjectAPIsResult::getAPIs()const -{ - return aPIs_; -} - diff --git a/imm/src/model/ListProjectsRequest.cc b/imm/src/model/ListProjectsRequest.cc index ab67729d5..4448e0a99 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", "2017-09-06", "ListProjects") { + : RpcServiceRequest("imm", "2020-09-30", "ListProjects") { setMethod(HttpRequest::Method::Post); } ListProjectsRequest::~ListProjectsRequest() {} -int ListProjectsRequest::getMaxKeys() const { - return maxKeys_; +std::string ListProjectsRequest::getPrefix() const { + return prefix_; } -void ListProjectsRequest::setMaxKeys(int maxKeys) { - maxKeys_ = maxKeys; - setParameter(std::string("MaxKeys"), std::to_string(maxKeys)); +void ListProjectsRequest::setPrefix(const std::string &prefix) { + prefix_ = prefix; + setParameter(std::string("Prefix"), prefix); } -std::string ListProjectsRequest::getAccessKeyId() const { - return accessKeyId_; +std::string ListProjectsRequest::getNextToken() const { + return nextToken_; } -void ListProjectsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void ListProjectsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -std::string ListProjectsRequest::getMarker() const { - return marker_; +long ListProjectsRequest::getMaxResults() const { + return maxResults_; } -void ListProjectsRequest::setMarker(const std::string &marker) { - marker_ = marker; - setParameter(std::string("Marker"), marker); +void ListProjectsRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); } diff --git a/imm/src/model/ListProjectsResult.cc b/imm/src/model/ListProjectsResult.cc index 9bfbd3da6..4984f1c2d 100644 --- a/imm/src/model/ListProjectsResult.cc +++ b/imm/src/model/ListProjectsResult.cc @@ -43,38 +43,54 @@ void ListProjectsResult::parse(const std::string &payload) for (auto valueProjectsProjectsItem : allProjectsNode) { ProjectsItem projectsObject; - 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["ProjectName"].isNull()) + projectsObject.projectName = valueProjectsProjectsItem["ProjectName"].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(); + if(!valueProjectsProjectsItem["TemplateId"].isNull()) + projectsObject.templateId = valueProjectsProjectsItem["TemplateId"].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()); projects_.push_back(projectsObject); } - if(!value["NextMarker"].isNull()) - nextMarker_ = value["NextMarker"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].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/DescribeRegionsRequest.cc b/imm/src/model/ListRegionsRequest.cc similarity index 54% rename from imm/src/model/DescribeRegionsRequest.cc rename to imm/src/model/ListRegionsRequest.cc index 0c063e5d9..4f75723f6 100644 --- a/imm/src/model/DescribeRegionsRequest.cc +++ b/imm/src/model/ListRegionsRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Imm::Model::DescribeRegionsRequest; +using AlibabaCloud::Imm::Model::ListRegionsRequest; -DescribeRegionsRequest::DescribeRegionsRequest() - : RpcServiceRequest("imm", "2017-09-06", "DescribeRegions") { +ListRegionsRequest::ListRegionsRequest() + : RpcServiceRequest("imm", "2020-09-30", "ListRegions") { setMethod(HttpRequest::Method::Post); } -DescribeRegionsRequest::~DescribeRegionsRequest() {} +ListRegionsRequest::~ListRegionsRequest() {} -std::string DescribeRegionsRequest::getAccessKeyId() const { - return accessKeyId_; +std::string ListRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; } -void DescribeRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void ListRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); } diff --git a/imm/src/model/DeleteVideoResult.cc b/imm/src/model/ListRegionsResult.cc similarity index 53% rename from imm/src/model/DeleteVideoResult.cc rename to imm/src/model/ListRegionsResult.cc index 8df9989df..330644b4d 100644 --- a/imm/src/model/DeleteVideoResult.cc +++ b/imm/src/model/ListRegionsResult.cc @@ -14,45 +14,46 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -DeleteVideoResult::DeleteVideoResult() : +ListRegionsResult::ListRegionsResult() : ServiceResult() {} -DeleteVideoResult::DeleteVideoResult(const std::string &payload) : +ListRegionsResult::ListRegionsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteVideoResult::~DeleteVideoResult() +ListRegionsResult::~ListRegionsResult() {} -void DeleteVideoResult::parse(const std::string &payload) +void ListRegionsResult::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(); + auto allRegionsNode = value["Regions"]["RegionsItem"]; + for (auto valueRegionsRegionsItem : allRegionsNode) + { + RegionsItem regionsObject; + if(!valueRegionsRegionsItem["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegionsItem["RegionId"].asString(); + if(!valueRegionsRegionsItem["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegionsItem["LocalName"].asString(); + regions_.push_back(regionsObject); + } } -std::string DeleteVideoResult::getVideoUri()const +std::vector ListRegionsResult::getRegions()const { - return videoUri_; -} - -std::string DeleteVideoResult::getSetId()const -{ - return setId_; + return regions_; } diff --git a/imm/src/model/ListSetTagsRequest.cc b/imm/src/model/ListSetTagsRequest.cc deleted file mode 100644 index 1fc4d4f4e..000000000 --- a/imm/src/model/ListSetTagsRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 0ea1bf369..000000000 --- a/imm/src/model/ListSetTagsResult.cc +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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 deleted file mode 100644 index f8ac3c251..000000000 --- a/imm/src/model/ListSetsRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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 deleted file mode 100644 index 80a65605b..000000000 --- a/imm/src/model/ListSetsResult.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..87ff87fdf --- /dev/null +++ b/imm/src/model/ListTasksRequest.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 + +using AlibabaCloud::Imm::Model::ListTasksRequest; + +ListTasksRequest::ListTasksRequest() + : RpcServiceRequest("imm", "2020-09-30", "ListTasks") { + setMethod(HttpRequest::Method::Post); +} + +ListTasksRequest::~ListTasksRequest() {} + +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); +} + +std::string ListTasksRequest::getNextToken() const { + return nextToken_; +} + +void ListTasksRequest::setNextToken(const std::string &nextToken) { + nextToken_ = 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_; +} + +void ListTasksRequest::setTaskTypes(const std::vector &taskTypes) { + taskTypes_ = taskTypes; + for(int dep1 = 0; dep1 != taskTypes.size(); dep1++) { + setParameter(std::string("TaskTypes") + "." + std::to_string(dep1 + 1), taskTypes[dep1]); + } +} + +ListTasksRequest::EndTimeRange ListTasksRequest::getEndTimeRange() const { + return endTimeRange_; +} + +void ListTasksRequest::setEndTimeRange(const ListTasksRequest::EndTimeRange &endTimeRange) { + endTimeRange_ = endTimeRange; + setParameter(std::string("EndTimeRange") + ".Start", endTimeRange.start); + 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_; +} + +void ListTasksRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTasksRequest::getTagSelector() const { + return tagSelector_; +} + +void ListTasksRequest::setTagSelector(const std::string &tagSelector) { + tagSelector_ = tagSelector; + setParameter(std::string("TagSelector"), tagSelector); +} + +std::string ListTasksRequest::getStatus() const { + return status_; +} + +void ListTasksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/imm/src/model/ListVideoTasksResult.cc b/imm/src/model/ListTasksResult.cc similarity index 56% rename from imm/src/model/ListVideoTasksResult.cc rename to imm/src/model/ListTasksResult.cc index 8a5bdcf7b..8631fa3f1 100644 --- a/imm/src/model/ListVideoTasksResult.cc +++ b/imm/src/model/ListTasksResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -ListVideoTasksResult::ListVideoTasksResult() : +ListTasksResult::ListTasksResult() : ServiceResult() {} -ListVideoTasksResult::ListVideoTasksResult(const std::string &payload) : +ListTasksResult::ListTasksResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListVideoTasksResult::~ListVideoTasksResult() +ListTasksResult::~ListTasksResult() {} -void ListVideoTasksResult::parse(const std::string &payload) +void ListTasksResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,42 +43,52 @@ void ListVideoTasksResult::parse(const std::string &payload) 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["Code"].isNull()) + tasksObject.code = valueTasksTasksItem["Code"].asString(); + if(!valueTasksTasksItem["Message"].isNull()) + tasksObject.message = valueTasksTasksItem["Message"].asString(); if(!valueTasksTasksItem["StartTime"].isNull()) tasksObject.startTime = valueTasksTasksItem["StartTime"].asString(); + if(!valueTasksTasksItem["EndTime"].isNull()) + tasksObject.endTime = valueTasksTasksItem["EndTime"].asString(); + if(!valueTasksTasksItem["UserData"].isNull()) + tasksObject.userData = valueTasksTasksItem["UserData"].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(); + if(!valueTasksTasksItem["Tags"].isNull()) + tasksObject.tags = valueTasksTasksItem["Tags"].asString(); tasks_.push_back(tasksObject); } - if(!value["NextMarker"].isNull()) - nextMarker_ = value["NextMarker"].asString(); + if(!value["ProjectName"].isNull()) + projectName_ = value["ProjectName"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = value["MaxResults"].asString(); } -std::vector ListVideoTasksResult::getTasks()const +std::vector ListTasksResult::getTasks()const { return tasks_; } -std::string ListVideoTasksResult::getNextMarker()const +std::string ListTasksResult::getNextToken()const { - return nextMarker_; + return nextToken_; +} + +std::string ListTasksResult::getProjectName()const +{ + return projectName_; +} + +std::string ListTasksResult::getMaxResults()const +{ + return maxResults_; } diff --git a/imm/src/model/ListVideoAudiosRequest.cc b/imm/src/model/ListVideoAudiosRequest.cc deleted file mode 100644 index 00aa0da5b..000000000 --- a/imm/src/model/ListVideoAudiosRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3c1d993ee..000000000 --- a/imm/src/model/ListVideoAudiosResult.cc +++ /dev/null @@ -1,144 +0,0 @@ -/* - * 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 deleted file mode 100644 index 75ae9b444..000000000 --- a/imm/src/model/ListVideoFramesRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 deleted file mode 100644 index 62a65a8f0..000000000 --- a/imm/src/model/ListVideoFramesResult.cc +++ /dev/null @@ -1,235 +0,0 @@ -/* - * 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 deleted file mode 100644 index 3e7df1891..000000000 --- a/imm/src/model/ListVideoTasksRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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/ListVideosRequest.cc b/imm/src/model/ListVideosRequest.cc deleted file mode 100644 index ca4c52b7d..000000000 --- a/imm/src/model/ListVideosRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 deleted file mode 100644 index 765ba27f4..000000000 --- a/imm/src/model/ListVideosResult.cc +++ /dev/null @@ -1,163 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..14462e137 --- /dev/null +++ b/imm/src/model/MergeFigureClustersRequest.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::MergeFigureClustersRequest; + +MergeFigureClustersRequest::MergeFigureClustersRequest() + : RpcServiceRequest("imm", "2020-09-30", "MergeFigureClusters") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void MergeFigureClustersRequest::setCustomMessage(const std::string &customMessage) { + customMessage_ = customMessage; + setParameter(std::string("CustomMessage"), customMessage); +} + +std::string MergeFigureClustersRequest::getClusterIdFrom() const { + return clusterIdFrom_; +} + +void MergeFigureClustersRequest::setClusterIdFrom(const std::string &clusterIdFrom) { + clusterIdFrom_ = clusterIdFrom; + setParameter(std::string("ClusterIdFrom"), clusterIdFrom); +} + +std::string MergeFigureClustersRequest::getProjectName() const { + return projectName_; +} + +void MergeFigureClustersRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string MergeFigureClustersRequest::getNotifyTopicName() const { + return notifyTopicName_; +} + +void MergeFigureClustersRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { + notifyTopicName_ = notifyTopicName; + setParameter(std::string("NotifyTopicName"), notifyTopicName); +} + +std::string MergeFigureClustersRequest::getFigureType() const { + return figureType_; +} + +void MergeFigureClustersRequest::setFigureType(const std::string &figureType) { + figureType_ = figureType; + setParameter(std::string("FigureType"), figureType); +} + +std::string MergeFigureClustersRequest::getClusterIdTo() const { + return clusterIdTo_; +} + +void MergeFigureClustersRequest::setClusterIdTo(const std::string &clusterIdTo) { + clusterIdTo_ = clusterIdTo; + setParameter(std::string("ClusterIdTo"), clusterIdTo); +} + diff --git a/imm/src/model/ConvertOfficeFormatResult.cc b/imm/src/model/MergeFigureClustersResult.cc similarity index 67% rename from imm/src/model/ConvertOfficeFormatResult.cc rename to imm/src/model/MergeFigureClustersResult.cc index 4e759120b..b754f3e0d 100644 --- a/imm/src/model/ConvertOfficeFormatResult.cc +++ b/imm/src/model/MergeFigureClustersResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Imm; using namespace AlibabaCloud::Imm::Model; -ConvertOfficeFormatResult::ConvertOfficeFormatResult() : +MergeFigureClustersResult::MergeFigureClustersResult() : ServiceResult() {} -ConvertOfficeFormatResult::ConvertOfficeFormatResult(const std::string &payload) : +MergeFigureClustersResult::MergeFigureClustersResult(const std::string &payload) : ServiceResult() { parse(payload); } -ConvertOfficeFormatResult::~ConvertOfficeFormatResult() +MergeFigureClustersResult::~MergeFigureClustersResult() {} -void ConvertOfficeFormatResult::parse(const std::string &payload) +void MergeFigureClustersResult::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()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } -int ConvertOfficeFormatResult::getPageCount()const +std::string MergeFigureClustersResult::getTaskId()const { - return pageCount_; + return taskId_; } diff --git a/imm/src/model/PutProjectRequest.cc b/imm/src/model/PutProjectRequest.cc deleted file mode 100644 index 0f3203d22..000000000 --- a/imm/src/model/PutProjectRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index a2971d091..000000000 --- a/imm/src/model/PutProjectResult.cc +++ /dev/null @@ -1,107 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..881a47d1e --- /dev/null +++ b/imm/src/model/QueryFigureClustersRequest.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::QueryFigureClustersRequest; + +QueryFigureClustersRequest::QueryFigureClustersRequest() + : RpcServiceRequest("imm", "2020-09-30", "QueryFigureClusters") { + setMethod(HttpRequest::Method::Post); +} + +QueryFigureClustersRequest::~QueryFigureClustersRequest() {} + +std::string QueryFigureClustersRequest::getCustomLabels() const { + return customLabels_; +} + +void QueryFigureClustersRequest::setCustomLabels(const std::string &customLabels) { + customLabels_ = customLabels; + setParameter(std::string("CustomLabels"), customLabels); +} + +std::string QueryFigureClustersRequest::getNextToken() const { + return nextToken_; +} + +void QueryFigureClustersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string QueryFigureClustersRequest::getDatasetName() const { + return datasetName_; +} + +void QueryFigureClustersRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string QueryFigureClustersRequest::getOrder() const { + return order_; +} + +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); +} + +std::string QueryFigureClustersRequest::getSort() const { + return sort_; +} + +void QueryFigureClustersRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("Sort"), sort); +} + +long QueryFigureClustersRequest::getMaxResults() const { + return maxResults_; +} + +void QueryFigureClustersRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/imm/src/model/QueryFigureClustersResult.cc b/imm/src/model/QueryFigureClustersResult.cc new file mode 100644 index 000000000..4ac1e7e43 --- /dev/null +++ b/imm/src/model/QueryFigureClustersResult.cc @@ -0,0 +1,573 @@ +/* + * 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; + +QueryFigureClustersResult::QueryFigureClustersResult() : + ServiceResult() +{} + +QueryFigureClustersResult::QueryFigureClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryFigureClustersResult::~QueryFigureClustersResult() +{} + +void QueryFigureClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFigureClustersNode = value["FigureClusters"]["FigureClustersItem"]; + for (auto valueFigureClustersFigureClustersItem : allFigureClustersNode) + { + FigureClustersItem figureClustersObject; + if(!valueFigureClustersFigureClustersItem["OwnerId"].isNull()) + figureClustersObject.ownerId = valueFigureClustersFigureClustersItem["OwnerId"].asString(); + if(!valueFigureClustersFigureClustersItem["ProjectName"].isNull()) + figureClustersObject.projectName = valueFigureClustersFigureClustersItem["ProjectName"].asString(); + if(!valueFigureClustersFigureClustersItem["DatasetName"].isNull()) + figureClustersObject.datasetName = valueFigureClustersFigureClustersItem["DatasetName"].asString(); + if(!valueFigureClustersFigureClustersItem["ObjectType"].isNull()) + figureClustersObject.objectType = valueFigureClustersFigureClustersItem["ObjectType"].asString(); + if(!valueFigureClustersFigureClustersItem["ObjectId"].isNull()) + figureClustersObject.objectId = valueFigureClustersFigureClustersItem["ObjectId"].asString(); + if(!valueFigureClustersFigureClustersItem["UpdateTime"].isNull()) + figureClustersObject.updateTime = valueFigureClustersFigureClustersItem["UpdateTime"].asString(); + if(!valueFigureClustersFigureClustersItem["CreateTime"].isNull()) + figureClustersObject.createTime = valueFigureClustersFigureClustersItem["CreateTime"].asString(); + if(!valueFigureClustersFigureClustersItem["Name"].isNull()) + figureClustersObject.name = valueFigureClustersFigureClustersItem["Name"].asString(); + if(!valueFigureClustersFigureClustersItem["Gender"].isNull()) + figureClustersObject.gender = valueFigureClustersFigureClustersItem["Gender"].asString(); + if(!valueFigureClustersFigureClustersItem["FaceCount"].isNull()) + figureClustersObject.faceCount = std::stol(valueFigureClustersFigureClustersItem["FaceCount"].asString()); + if(!valueFigureClustersFigureClustersItem["ImageCount"].isNull()) + figureClustersObject.imageCount = std::stol(valueFigureClustersFigureClustersItem["ImageCount"].asString()); + if(!valueFigureClustersFigureClustersItem["VideoCount"].isNull()) + figureClustersObject.videoCount = std::stol(valueFigureClustersFigureClustersItem["VideoCount"].asString()); + if(!valueFigureClustersFigureClustersItem["AverageAge"].isNull()) + figureClustersObject.averageAge = std::stof(valueFigureClustersFigureClustersItem["AverageAge"].asString()); + if(!valueFigureClustersFigureClustersItem["MinAge"].isNull()) + figureClustersObject.minAge = std::stof(valueFigureClustersFigureClustersItem["MinAge"].asString()); + if(!valueFigureClustersFigureClustersItem["MaxAge"].isNull()) + figureClustersObject.maxAge = std::stof(valueFigureClustersFigureClustersItem["MaxAge"].asString()); + if(!valueFigureClustersFigureClustersItem["CustomId"].isNull()) + figureClustersObject.customId = valueFigureClustersFigureClustersItem["CustomId"].asString(); + if(!valueFigureClustersFigureClustersItem["CustomLabels"].isNull()) + figureClustersObject.customLabels = valueFigureClustersFigureClustersItem["CustomLabels"].asString(); + auto coverNode = value["Cover"]; + if(!coverNode["OwnerId"].isNull()) + figureClustersObject.cover.ownerId = coverNode["OwnerId"].asString(); + if(!coverNode["ProjectName"].isNull()) + figureClustersObject.cover.projectName = coverNode["ProjectName"].asString(); + if(!coverNode["DatasetName"].isNull()) + figureClustersObject.cover.datasetName = coverNode["DatasetName"].asString(); + if(!coverNode["ObjectType"].isNull()) + figureClustersObject.cover.objectType = coverNode["ObjectType"].asString(); + if(!coverNode["ObjectId"].isNull()) + figureClustersObject.cover.objectId = coverNode["ObjectId"].asString(); + if(!coverNode["UpdateTime"].isNull()) + figureClustersObject.cover.updateTime = coverNode["UpdateTime"].asString(); + if(!coverNode["CreateTime"].isNull()) + figureClustersObject.cover.createTime = coverNode["CreateTime"].asString(); + if(!coverNode["URI"].isNull()) + figureClustersObject.cover.uRI = coverNode["URI"].asString(); + if(!coverNode["OSSURI"].isNull()) + figureClustersObject.cover.oSSURI = coverNode["OSSURI"].asString(); + if(!coverNode["Filename"].isNull()) + figureClustersObject.cover.filename = coverNode["Filename"].asString(); + if(!coverNode["MediaType"].isNull()) + figureClustersObject.cover.mediaType = coverNode["MediaType"].asString(); + if(!coverNode["ContentType"].isNull()) + figureClustersObject.cover.contentType = coverNode["ContentType"].asString(); + if(!coverNode["Size"].isNull()) + figureClustersObject.cover.size = std::stol(coverNode["Size"].asString()); + if(!coverNode["FileHash"].isNull()) + figureClustersObject.cover.fileHash = coverNode["FileHash"].asString(); + if(!coverNode["FileModifiedTime"].isNull()) + figureClustersObject.cover.fileModifiedTime = coverNode["FileModifiedTime"].asString(); + if(!coverNode["FileCreateTime"].isNull()) + figureClustersObject.cover.fileCreateTime = coverNode["FileCreateTime"].asString(); + if(!coverNode["FileAccessTime"].isNull()) + figureClustersObject.cover.fileAccessTime = coverNode["FileAccessTime"].asString(); + if(!coverNode["ProduceTime"].isNull()) + figureClustersObject.cover.produceTime = coverNode["ProduceTime"].asString(); + if(!coverNode["LatLong"].isNull()) + figureClustersObject.cover.latLong = coverNode["LatLong"].asString(); + if(!coverNode["Timezone"].isNull()) + figureClustersObject.cover.timezone = coverNode["Timezone"].asString(); + if(!coverNode["TravelClusterId"].isNull()) + figureClustersObject.cover.travelClusterId = coverNode["TravelClusterId"].asString(); + if(!coverNode["Orientation"].isNull()) + figureClustersObject.cover.orientation = std::stol(coverNode["Orientation"].asString()); + if(!coverNode["FigureCount"].isNull()) + figureClustersObject.cover.figureCount = std::stol(coverNode["FigureCount"].asString()); + if(!coverNode["Title"].isNull()) + figureClustersObject.cover.title = coverNode["Title"].asString(); + if(!coverNode["ImageWidth"].isNull()) + figureClustersObject.cover.imageWidth = std::stol(coverNode["ImageWidth"].asString()); + if(!coverNode["ImageHeight"].isNull()) + figureClustersObject.cover.imageHeight = std::stol(coverNode["ImageHeight"].asString()); + if(!coverNode["EXIF"].isNull()) + figureClustersObject.cover.eXIF = coverNode["EXIF"].asString(); + if(!coverNode["VideoWidth"].isNull()) + figureClustersObject.cover.videoWidth = std::stol(coverNode["VideoWidth"].asString()); + if(!coverNode["VideoHeight"].isNull()) + figureClustersObject.cover.videoHeight = std::stol(coverNode["VideoHeight"].asString()); + if(!coverNode["Artist"].isNull()) + figureClustersObject.cover.artist = coverNode["Artist"].asString(); + if(!coverNode["AlbumArtist"].isNull()) + figureClustersObject.cover.albumArtist = coverNode["AlbumArtist"].asString(); + if(!coverNode["Composer"].isNull()) + figureClustersObject.cover.composer = coverNode["Composer"].asString(); + if(!coverNode["Performer"].isNull()) + figureClustersObject.cover.performer = coverNode["Performer"].asString(); + if(!coverNode["Language"].isNull()) + figureClustersObject.cover.language = coverNode["Language"].asString(); + if(!coverNode["Album"].isNull()) + figureClustersObject.cover.album = coverNode["Album"].asString(); + if(!coverNode["DocumentLanguage"].isNull()) + figureClustersObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); + if(!coverNode["PageCount"].isNull()) + figureClustersObject.cover.pageCount = std::stol(coverNode["PageCount"].asString()); + if(!coverNode["DocumentContent"].isNull()) + figureClustersObject.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["ETag"].isNull()) + figureClustersObject.cover.eTag = coverNode["ETag"].asString(); + if(!coverNode["CacheControl"].isNull()) + figureClustersObject.cover.cacheControl = coverNode["CacheControl"].asString(); + if(!coverNode["ContentDisposition"].isNull()) + figureClustersObject.cover.contentDisposition = coverNode["ContentDisposition"].asString(); + if(!coverNode["ContentEncoding"].isNull()) + figureClustersObject.cover.contentEncoding = coverNode["ContentEncoding"].asString(); + if(!coverNode["ContentLanguage"].isNull()) + figureClustersObject.cover.contentLanguage = coverNode["ContentLanguage"].asString(); + if(!coverNode["AccessControlAllowOrigin"].isNull()) + figureClustersObject.cover.accessControlAllowOrigin = coverNode["AccessControlAllowOrigin"].asString(); + if(!coverNode["AccessControlRequestMethod"].isNull()) + figureClustersObject.cover.accessControlRequestMethod = coverNode["AccessControlRequestMethod"].asString(); + if(!coverNode["ServerSideEncryptionCustomerAlgorithm"].isNull()) + figureClustersObject.cover.serverSideEncryptionCustomerAlgorithm = coverNode["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!coverNode["ServerSideEncryption"].isNull()) + figureClustersObject.cover.serverSideEncryption = coverNode["ServerSideEncryption"].asString(); + if(!coverNode["ServerSideDataEncryption"].isNull()) + figureClustersObject.cover.serverSideDataEncryption = coverNode["ServerSideDataEncryption"].asString(); + if(!coverNode["ServerSideEncryptionKeyId"].isNull()) + figureClustersObject.cover.serverSideEncryptionKeyId = coverNode["ServerSideEncryptionKeyId"].asString(); + if(!coverNode["OSSStorageClass"].isNull()) + figureClustersObject.cover.oSSStorageClass = coverNode["OSSStorageClass"].asString(); + if(!coverNode["OSSCRC64"].isNull()) + figureClustersObject.cover.oSSCRC64 = coverNode["OSSCRC64"].asString(); + if(!coverNode["ObjectACL"].isNull()) + figureClustersObject.cover.objectACL = coverNode["ObjectACL"].asString(); + if(!coverNode["ContentMd5"].isNull()) + figureClustersObject.cover.contentMd5 = coverNode["ContentMd5"].asString(); + if(!coverNode["OSSUserMeta"].isNull()) + figureClustersObject.cover.oSSUserMeta = coverNode["OSSUserMeta"].asString(); + if(!coverNode["OSSTaggingCount"].isNull()) + figureClustersObject.cover.oSSTaggingCount = std::stol(coverNode["OSSTaggingCount"].asString()); + if(!coverNode["OSSTagging"].isNull()) + figureClustersObject.cover.oSSTagging = coverNode["OSSTagging"].asString(); + if(!coverNode["OSSExpiration"].isNull()) + figureClustersObject.cover.oSSExpiration = coverNode["OSSExpiration"].asString(); + if(!coverNode["OSSVersionId"].isNull()) + figureClustersObject.cover.oSSVersionId = coverNode["OSSVersionId"].asString(); + if(!coverNode["OSSDeleteMarker"].isNull()) + figureClustersObject.cover.oSSDeleteMarker = coverNode["OSSDeleteMarker"].asString(); + if(!coverNode["OSSObjectType"].isNull()) + figureClustersObject.cover.oSSObjectType = coverNode["OSSObjectType"].asString(); + if(!coverNode["CustomId"].isNull()) + figureClustersObject.cover.customId = coverNode["CustomId"].asString(); + if(!coverNode["CustomLabels"].isNull()) + figureClustersObject.cover.customLabels = coverNode["CustomLabels"].asString(); + if(!coverNode["StreamCount"].isNull()) + figureClustersObject.cover.streamCount = std::stol(coverNode["StreamCount"].asString()); + if(!coverNode["ProgramCount"].isNull()) + figureClustersObject.cover.programCount = std::stol(coverNode["ProgramCount"].asString()); + if(!coverNode["FormatName"].isNull()) + figureClustersObject.cover.formatName = coverNode["FormatName"].asString(); + if(!coverNode["FormatLongName"].isNull()) + figureClustersObject.cover.formatLongName = coverNode["FormatLongName"].asString(); + if(!coverNode["StartTime"].isNull()) + figureClustersObject.cover.startTime = coverNode["StartTime"].asString(); + if(!coverNode["Bitrate"].isNull()) + figureClustersObject.cover.bitrate = std::stol(coverNode["Bitrate"].asString()); + if(!coverNode["Duration"].isNull()) + figureClustersObject.cover.duration = coverNode["Duration"].asString(); + auto allAddressesNode = coverNode["Addresses"]["AddressesItem"]; + for (auto coverNodeAddressesAddressesItem : allAddressesNode) + { + FigureClustersItem::Cover::AddressesItem addressesItemObject; + if(!coverNodeAddressesAddressesItem["Language"].isNull()) + addressesItemObject.language = coverNodeAddressesAddressesItem["Language"].asString(); + if(!coverNodeAddressesAddressesItem["AddressLine"].isNull()) + addressesItemObject.addressLine = coverNodeAddressesAddressesItem["AddressLine"].asString(); + if(!coverNodeAddressesAddressesItem["Country"].isNull()) + addressesItemObject.country = coverNodeAddressesAddressesItem["Country"].asString(); + if(!coverNodeAddressesAddressesItem["Province"].isNull()) + addressesItemObject.province = coverNodeAddressesAddressesItem["Province"].asString(); + if(!coverNodeAddressesAddressesItem["City"].isNull()) + addressesItemObject.city = coverNodeAddressesAddressesItem["City"].asString(); + if(!coverNodeAddressesAddressesItem["District"].isNull()) + addressesItemObject.district = coverNodeAddressesAddressesItem["District"].asString(); + if(!coverNodeAddressesAddressesItem["Township"].isNull()) + addressesItemObject.township = coverNodeAddressesAddressesItem["Township"].asString(); + figureClustersObject.cover.addresses.push_back(addressesItemObject); + } + auto allFiguresNode = coverNode["Figures"]["FiguresItem"]; + for (auto coverNodeFiguresFiguresItem : allFiguresNode) + { + FigureClustersItem::Cover::FiguresItem figuresItemObject; + if(!coverNodeFiguresFiguresItem["FigureId"].isNull()) + figuresItemObject.figureId = coverNodeFiguresFiguresItem["FigureId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureConfidence"].isNull()) + figuresItemObject.figureConfidence = std::stof(coverNodeFiguresFiguresItem["FigureConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureClusterId"].isNull()) + figuresItemObject.figureClusterId = coverNodeFiguresFiguresItem["FigureClusterId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresItemObject.figureClusterConfidence = std::stof(coverNodeFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureType"].isNull()) + figuresItemObject.figureType = coverNodeFiguresFiguresItem["FigureType"].asString(); + if(!coverNodeFiguresFiguresItem["Age"].isNull()) + figuresItemObject.age = std::stol(coverNodeFiguresFiguresItem["Age"].asString()); + if(!coverNodeFiguresFiguresItem["AgeSD"].isNull()) + figuresItemObject.ageSD = std::stof(coverNodeFiguresFiguresItem["AgeSD"].asString()); + if(!coverNodeFiguresFiguresItem["Gender"].isNull()) + figuresItemObject.gender = coverNodeFiguresFiguresItem["Gender"].asString(); + if(!coverNodeFiguresFiguresItem["GenderConfidence"].isNull()) + figuresItemObject.genderConfidence = std::stof(coverNodeFiguresFiguresItem["GenderConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Emotion"].isNull()) + figuresItemObject.emotion = coverNodeFiguresFiguresItem["Emotion"].asString(); + if(!coverNodeFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresItemObject.emotionConfidence = std::stof(coverNodeFiguresFiguresItem["EmotionConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FaceQuality"].isNull()) + figuresItemObject.faceQuality = std::stof(coverNodeFiguresFiguresItem["FaceQuality"].asString()); + if(!coverNodeFiguresFiguresItem["Mouth"].isNull()) + figuresItemObject.mouth = coverNodeFiguresFiguresItem["Mouth"].asString(); + if(!coverNodeFiguresFiguresItem["MouthConfidence"].isNull()) + figuresItemObject.mouthConfidence = std::stof(coverNodeFiguresFiguresItem["MouthConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Beard"].isNull()) + figuresItemObject.beard = coverNodeFiguresFiguresItem["Beard"].asString(); + if(!coverNodeFiguresFiguresItem["BeardConfidence"].isNull()) + figuresItemObject.beardConfidence = std::stof(coverNodeFiguresFiguresItem["BeardConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Hat"].isNull()) + figuresItemObject.hat = coverNodeFiguresFiguresItem["Hat"].asString(); + if(!coverNodeFiguresFiguresItem["HatConfidence"].isNull()) + figuresItemObject.hatConfidence = std::stof(coverNodeFiguresFiguresItem["HatConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Mask"].isNull()) + figuresItemObject.mask = coverNodeFiguresFiguresItem["Mask"].asString(); + if(!coverNodeFiguresFiguresItem["MaskConfidence"].isNull()) + figuresItemObject.maskConfidence = std::stof(coverNodeFiguresFiguresItem["MaskConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Glasses"].isNull()) + figuresItemObject.glasses = coverNodeFiguresFiguresItem["Glasses"].asString(); + if(!coverNodeFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresItemObject.glassesConfidence = std::stof(coverNodeFiguresFiguresItem["GlassesConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Sharpness"].isNull()) + figuresItemObject.sharpness = std::stof(coverNodeFiguresFiguresItem["Sharpness"].asString()); + if(!coverNodeFiguresFiguresItem["Attractive"].isNull()) + figuresItemObject.attractive = std::stof(coverNodeFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresItemObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresItemObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresItemObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresItemObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresItemObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresItemObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresItemObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + figureClustersObject.cover.figures.push_back(figuresItemObject); + } + auto allLabelsNode = coverNode["Labels"]["LabelsItem"]; + for (auto coverNodeLabelsLabelsItem : allLabelsNode) + { + FigureClustersItem::Cover::LabelsItem labelsItemObject; + if(!coverNodeLabelsLabelsItem["Language"].isNull()) + labelsItemObject.language = coverNodeLabelsLabelsItem["Language"].asString(); + if(!coverNodeLabelsLabelsItem["LabelName"].isNull()) + labelsItemObject.labelName = coverNodeLabelsLabelsItem["LabelName"].asString(); + if(!coverNodeLabelsLabelsItem["LabelLevel"].isNull()) + labelsItemObject.labelLevel = std::stol(coverNodeLabelsLabelsItem["LabelLevel"].asString()); + if(!coverNodeLabelsLabelsItem["LabelConfidence"].isNull()) + labelsItemObject.labelConfidence = std::stof(coverNodeLabelsLabelsItem["LabelConfidence"].asString()); + if(!coverNodeLabelsLabelsItem["ParentLabelName"].isNull()) + labelsItemObject.parentLabelName = coverNodeLabelsLabelsItem["ParentLabelName"].asString(); + if(!coverNodeLabelsLabelsItem["CentricScore"].isNull()) + labelsItemObject.centricScore = std::stof(coverNodeLabelsLabelsItem["CentricScore"].asString()); + figureClustersObject.cover.labels.push_back(labelsItemObject); + } + auto allCroppingSuggestionsNode = coverNode["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FigureClustersItem::Cover::CroppingSuggestionsItem croppingSuggestionsItemObject; + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsItemObject.aspectRatio = coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsItemObject.confidence = std::stof(coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsItemObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsItemObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsItemObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsItemObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + figureClustersObject.cover.croppingSuggestions.push_back(croppingSuggestionsItemObject); + } + auto allOCRContentsNode = coverNode["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeOCRContentsOCRContentsItem : allOCRContentsNode) + { + FigureClustersItem::Cover::OCRContentsItem oCRContentsItemObject; + if(!coverNodeOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsItemObject.language = coverNodeOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsItemObject.contents = coverNodeOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsItemObject.confidence = std::stof(coverNodeOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsItemObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsItemObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsItemObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsItemObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + figureClustersObject.cover.oCRContents.push_back(oCRContentsItemObject); + } + auto allVideoStreamsNode = coverNode["VideoStreams"]["VideoStreamsItem"]; + for (auto coverNodeVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FigureClustersItem::Cover::VideoStreamsItem videoStreamsItemObject; + if(!coverNodeVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsItemObject.index = std::stol(coverNodeVideoStreamsVideoStreamsItem["Index"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsItemObject.language = coverNodeVideoStreamsVideoStreamsItem["Language"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsItemObject.codecName = coverNodeVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsItemObject.codecLongName = coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsItemObject.profile = coverNodeVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsItemObject.codecTimeBase = coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsItemObject.codecTagString = coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsItemObject.codecTag = coverNodeVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsItemObject.width = std::stol(coverNodeVideoStreamsVideoStreamsItem["Width"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsItemObject.height = std::stol(coverNodeVideoStreamsVideoStreamsItem["Height"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsItemObject.hasBFrames = std::stol(coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsItemObject.sampleAspectRatio = coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsItemObject.displayAspectRatio = coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsItemObject.pixelFormat = coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsItemObject.level = std::stol(coverNodeVideoStreamsVideoStreamsItem["Level"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsItemObject.frameRate = coverNodeVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsItemObject.averageFrameRate = coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsItemObject.timeBase = coverNodeVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsItemObject.startTime = coverNodeVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsItemObject.duration = coverNodeVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsItemObject.bitrate = std::stol(coverNodeVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsItemObject.frameCount = std::stol(coverNodeVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsItemObject.rotate = coverNodeVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsItemObject.bitDepth = std::stol(coverNodeVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsItemObject.colorSpace = coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsItemObject.colorRange = coverNodeVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsItemObject.colorTransfer = coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsItemObject.colorPrimaries = coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + figureClustersObject.cover.videoStreams.push_back(videoStreamsItemObject); + } + auto allSubtitlesNode = coverNode["Subtitles"]["SubtitlesItem"]; + for (auto coverNodeSubtitlesSubtitlesItem : allSubtitlesNode) + { + FigureClustersItem::Cover::SubtitlesItem subtitlesItemObject; + if(!coverNodeSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesItemObject.index = std::stol(coverNodeSubtitlesSubtitlesItem["Index"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesItemObject.language = coverNodeSubtitlesSubtitlesItem["Language"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesItemObject.codecName = coverNodeSubtitlesSubtitlesItem["CodecName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesItemObject.codecLongName = coverNodeSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesItemObject.codecTagString = coverNodeSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesItemObject.codecTag = coverNodeSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesItemObject.startTime = coverNodeSubtitlesSubtitlesItem["StartTime"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesItemObject.duration = coverNodeSubtitlesSubtitlesItem["Duration"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesItemObject.bitrate = std::stol(coverNodeSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesItemObject.content = coverNodeSubtitlesSubtitlesItem["Content"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesItemObject.width = std::stol(coverNodeSubtitlesSubtitlesItem["Width"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesItemObject.height = std::stol(coverNodeSubtitlesSubtitlesItem["Height"].asString()); + figureClustersObject.cover.subtitles.push_back(subtitlesItemObject); + } + auto allAudioStreamsNode = coverNode["AudioStreams"]["AudioStreamsItem"]; + for (auto coverNodeAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FigureClustersItem::Cover::AudioStreamsItem audioStreamsItemObject; + if(!coverNodeAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsItemObject.index = std::stol(coverNodeAudioStreamsAudioStreamsItem["Index"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsItemObject.language = coverNodeAudioStreamsAudioStreamsItem["Language"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsItemObject.codecName = coverNodeAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsItemObject.codecLongName = coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsItemObject.codecTimeBase = coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsItemObject.codecTagString = coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsItemObject.codecTag = coverNodeAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsItemObject.timeBase = coverNodeAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsItemObject.startTime = coverNodeAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsItemObject.duration = coverNodeAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsItemObject.bitrate = std::stol(coverNodeAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsItemObject.frameCount = std::stol(coverNodeAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsItemObject.lyric = coverNodeAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsItemObject.sampleFormat = coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsItemObject.sampleRate = std::stol(coverNodeAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsItemObject.channels = std::stol(coverNodeAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsItemObject.channelLayout = coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + figureClustersObject.cover.audioStreams.push_back(audioStreamsItemObject); + } + auto allAudioCoversNode = coverNode["AudioCovers"]["AudioCoversItem"]; + for (auto coverNodeAudioCoversAudioCoversItem : allAudioCoversNode) + { + FigureClustersItem::Cover::AudioCoversItem audioCoversItemObject; + if(!coverNodeAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversItemObject.imageWidth = std::stol(coverNodeAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversItemObject.imageHeight = std::stol(coverNodeAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversItemObject.eXIF = coverNodeAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = coverNodeAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FigureClustersItem::Cover::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversItemObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = coverNodeAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FigureClustersItem::Cover::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversItemObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversItemObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + figureClustersObject.cover.audioCovers.push_back(audioCoversItemObject); + } + auto imageScoreNode = coverNode["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + figureClustersObject.cover.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + figureClusters_.push_back(figureClustersObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string QueryFigureClustersResult::getNextToken()const +{ + return nextToken_; +} + +std::vector QueryFigureClustersResult::getFigureClusters()const +{ + return figureClusters_; +} + diff --git a/imm/src/model/QueryStoriesRequest.cc b/imm/src/model/QueryStoriesRequest.cc new file mode 100644 index 000000000..fdaf7d8e9 --- /dev/null +++ b/imm/src/model/QueryStoriesRequest.cc @@ -0,0 +1,176 @@ +/* + * 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::QueryStoriesRequest; + +QueryStoriesRequest::QueryStoriesRequest() + : RpcServiceRequest("imm", "2020-09-30", "QueryStories") { + setMethod(HttpRequest::Method::Post); +} + +QueryStoriesRequest::~QueryStoriesRequest() {} + +std::vector QueryStoriesRequest::getFigureClusterIds() const { + return figureClusterIds_; +} + +void QueryStoriesRequest::setFigureClusterIds(const std::vector &figureClusterIds) { + figureClusterIds_ = figureClusterIds; + for(int dep1 = 0; dep1 != figureClusterIds.size(); dep1++) { + setParameter(std::string("FigureClusterIds") + "." + std::to_string(dep1 + 1), figureClusterIds[dep1]); + } +} + +std::string QueryStoriesRequest::getCustomLabels() const { + return customLabels_; +} + +void QueryStoriesRequest::setCustomLabels(const std::string &customLabels) { + customLabels_ = customLabels; + setParameter(std::string("CustomLabels"), customLabels); +} + +bool QueryStoriesRequest::getWithEmptyStories() const { + return withEmptyStories_; +} + +void QueryStoriesRequest::setWithEmptyStories(bool withEmptyStories) { + withEmptyStories_ = withEmptyStories; + setParameter(std::string("WithEmptyStories"), withEmptyStories ? "true" : "false"); +} + +std::string QueryStoriesRequest::getOrder() const { + return order_; +} + +void QueryStoriesRequest::setOrder(const std::string &order) { + order_ = order; + setParameter(std::string("Order"), order); +} + +std::string QueryStoriesRequest::getProjectName() const { + return projectName_; +} + +void QueryStoriesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string QueryStoriesRequest::getSort() const { + return sort_; +} + +void QueryStoriesRequest::setSort(const std::string &sort) { + sort_ = sort; + setParameter(std::string("Sort"), sort); +} + +std::string QueryStoriesRequest::getStoryType() const { + return storyType_; +} + +void QueryStoriesRequest::setStoryType(const std::string &storyType) { + storyType_ = storyType; + setParameter(std::string("StoryType"), storyType); +} + +QueryStoriesRequest::StoryStartTimeRange QueryStoriesRequest::getStoryStartTimeRange() const { + return storyStartTimeRange_; +} + +void QueryStoriesRequest::setStoryStartTimeRange(const QueryStoriesRequest::StoryStartTimeRange &storyStartTimeRange) { + storyStartTimeRange_ = storyStartTimeRange; + setParameter(std::string("StoryStartTimeRange") + ".Start", storyStartTimeRange.start); + setParameter(std::string("StoryStartTimeRange") + ".End", storyStartTimeRange.end); +} + +std::string QueryStoriesRequest::getStorySubType() const { + return storySubType_; +} + +void QueryStoriesRequest::setStorySubType(const std::string &storySubType) { + storySubType_ = storySubType; + setParameter(std::string("StorySubType"), storySubType); +} + +long QueryStoriesRequest::getMaxResults() const { + return maxResults_; +} + +void QueryStoriesRequest::setMaxResults(long maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string QueryStoriesRequest::getNextToken() const { + return nextToken_; +} + +void QueryStoriesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string QueryStoriesRequest::getDatasetName() const { + return datasetName_; +} + +void QueryStoriesRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +QueryStoriesRequest::StoryEndTimeRange QueryStoriesRequest::getStoryEndTimeRange() const { + return storyEndTimeRange_; +} + +void QueryStoriesRequest::setStoryEndTimeRange(const QueryStoriesRequest::StoryEndTimeRange &storyEndTimeRange) { + storyEndTimeRange_ = storyEndTimeRange; + setParameter(std::string("StoryEndTimeRange") + ".Start", storyEndTimeRange.start); + setParameter(std::string("StoryEndTimeRange") + ".End", storyEndTimeRange.end); +} + +QueryStoriesRequest::CreateTimeRange QueryStoriesRequest::getCreateTimeRange() const { + return createTimeRange_; +} + +void QueryStoriesRequest::setCreateTimeRange(const QueryStoriesRequest::CreateTimeRange &createTimeRange) { + createTimeRange_ = createTimeRange; + setParameter(std::string("CreateTimeRange") + ".Start", createTimeRange.start); + setParameter(std::string("CreateTimeRange") + ".End", createTimeRange.end); +} + +std::string QueryStoriesRequest::getObjectId() const { + return objectId_; +} + +void QueryStoriesRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setParameter(std::string("ObjectId"), objectId); +} + +std::string QueryStoriesRequest::getStoryName() const { + return storyName_; +} + +void QueryStoriesRequest::setStoryName(const std::string &storyName) { + storyName_ = storyName; + setParameter(std::string("StoryName"), storyName); +} + diff --git a/imm/src/model/QueryStoriesResult.cc b/imm/src/model/QueryStoriesResult.cc new file mode 100644 index 000000000..48eaf9a09 --- /dev/null +++ b/imm/src/model/QueryStoriesResult.cc @@ -0,0 +1,1052 @@ +/* + * 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; + +QueryStoriesResult::QueryStoriesResult() : + ServiceResult() +{} + +QueryStoriesResult::QueryStoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryStoriesResult::~QueryStoriesResult() +{} + +void QueryStoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allStoriesNode = value["Stories"]["StoriesItem"]; + for (auto valueStoriesStoriesItem : allStoriesNode) + { + StoriesItem storiesObject; + if(!valueStoriesStoriesItem["OwnerId"].isNull()) + storiesObject.ownerId = valueStoriesStoriesItem["OwnerId"].asString(); + if(!valueStoriesStoriesItem["ProjectName"].isNull()) + storiesObject.projectName = valueStoriesStoriesItem["ProjectName"].asString(); + if(!valueStoriesStoriesItem["DatasetName"].isNull()) + storiesObject.datasetName = valueStoriesStoriesItem["DatasetName"].asString(); + if(!valueStoriesStoriesItem["ObjectId"].isNull()) + storiesObject.objectId = valueStoriesStoriesItem["ObjectId"].asString(); + if(!valueStoriesStoriesItem["ObjectType"].isNull()) + storiesObject.objectType = valueStoriesStoriesItem["ObjectType"].asString(); + if(!valueStoriesStoriesItem["UpdateTime"].isNull()) + storiesObject.updateTime = valueStoriesStoriesItem["UpdateTime"].asString(); + if(!valueStoriesStoriesItem["CreateTime"].isNull()) + storiesObject.createTime = valueStoriesStoriesItem["CreateTime"].asString(); + if(!valueStoriesStoriesItem["StoryName"].isNull()) + storiesObject.storyName = valueStoriesStoriesItem["StoryName"].asString(); + if(!valueStoriesStoriesItem["StoryType"].isNull()) + storiesObject.storyType = valueStoriesStoriesItem["StoryType"].asString(); + if(!valueStoriesStoriesItem["StorySubType"].isNull()) + storiesObject.storySubType = valueStoriesStoriesItem["StorySubType"].asString(); + if(!valueStoriesStoriesItem["StoryStartTime"].isNull()) + storiesObject.storyStartTime = valueStoriesStoriesItem["StoryStartTime"].asString(); + if(!valueStoriesStoriesItem["StoryEndTime"].isNull()) + storiesObject.storyEndTime = valueStoriesStoriesItem["StoryEndTime"].asString(); + if(!valueStoriesStoriesItem["CustomId"].isNull()) + storiesObject.customId = valueStoriesStoriesItem["CustomId"].asString(); + if(!valueStoriesStoriesItem["CustomLabels"].isNull()) + storiesObject.customLabels = valueStoriesStoriesItem["CustomLabels"].asString(); + auto allFilesNode = valueStoriesStoriesItem["Files"]["FilesItem"]; + for (auto valueStoriesStoriesItemFilesFilesItem : allFilesNode) + { + StoriesItem::FilesItem filesObject; + if(!valueStoriesStoriesItemFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueStoriesStoriesItemFilesFilesItem["OwnerId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueStoriesStoriesItemFilesFilesItem["ProjectName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueStoriesStoriesItemFilesFilesItem["DatasetName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueStoriesStoriesItemFilesFilesItem["ObjectType"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueStoriesStoriesItemFilesFilesItem["ObjectId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueStoriesStoriesItemFilesFilesItem["UpdateTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueStoriesStoriesItemFilesFilesItem["CreateTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueStoriesStoriesItemFilesFilesItem["URI"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueStoriesStoriesItemFilesFilesItem["OSSURI"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueStoriesStoriesItemFilesFilesItem["Filename"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueStoriesStoriesItemFilesFilesItem["MediaType"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueStoriesStoriesItemFilesFilesItem["ContentType"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueStoriesStoriesItemFilesFilesItem["Size"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueStoriesStoriesItemFilesFilesItem["FileHash"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueStoriesStoriesItemFilesFilesItem["FileModifiedTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueStoriesStoriesItemFilesFilesItem["FileCreateTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueStoriesStoriesItemFilesFilesItem["FileAccessTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueStoriesStoriesItemFilesFilesItem["ProduceTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueStoriesStoriesItemFilesFilesItem["LatLong"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueStoriesStoriesItemFilesFilesItem["Timezone"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueStoriesStoriesItemFilesFilesItem["TravelClusterId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueStoriesStoriesItemFilesFilesItem["Orientation"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueStoriesStoriesItemFilesFilesItem["FigureCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["Title"].isNull()) + filesObject.title = valueStoriesStoriesItemFilesFilesItem["Title"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueStoriesStoriesItemFilesFilesItem["ImageWidth"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueStoriesStoriesItemFilesFilesItem["ImageHeight"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueStoriesStoriesItemFilesFilesItem["EXIF"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueStoriesStoriesItemFilesFilesItem["VideoWidth"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueStoriesStoriesItemFilesFilesItem["VideoHeight"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueStoriesStoriesItemFilesFilesItem["Artist"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueStoriesStoriesItemFilesFilesItem["AlbumArtist"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueStoriesStoriesItemFilesFilesItem["Composer"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueStoriesStoriesItemFilesFilesItem["Performer"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Language"].isNull()) + filesObject.language = valueStoriesStoriesItemFilesFilesItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Album"].isNull()) + filesObject.album = valueStoriesStoriesItemFilesFilesItem["Album"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueStoriesStoriesItemFilesFilesItem["PageCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueStoriesStoriesItemFilesFilesItem["DocumentContent"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueStoriesStoriesItemFilesFilesItem["ETag"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueStoriesStoriesItemFilesFilesItem["CacheControl"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueStoriesStoriesItemFilesFilesItem["ContentDisposition"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueStoriesStoriesItemFilesFilesItem["ContentEncoding"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueStoriesStoriesItemFilesFilesItem["ContentLanguage"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueStoriesStoriesItemFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueStoriesStoriesItemFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueStoriesStoriesItemFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueStoriesStoriesItemFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueStoriesStoriesItemFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueStoriesStoriesItemFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueStoriesStoriesItemFilesFilesItem["OSSStorageClass"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueStoriesStoriesItemFilesFilesItem["OSSCRC64"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueStoriesStoriesItemFilesFilesItem["ObjectACL"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueStoriesStoriesItemFilesFilesItem["ContentMd5"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueStoriesStoriesItemFilesFilesItem["OSSUserMeta"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueStoriesStoriesItemFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueStoriesStoriesItemFilesFilesItem["OSSTagging"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueStoriesStoriesItemFilesFilesItem["OSSExpiration"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueStoriesStoriesItemFilesFilesItem["OSSVersionId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueStoriesStoriesItemFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueStoriesStoriesItemFilesFilesItem["OSSObjectType"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueStoriesStoriesItemFilesFilesItem["CustomId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueStoriesStoriesItemFilesFilesItem["CustomLabels"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueStoriesStoriesItemFilesFilesItem["StreamCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueStoriesStoriesItemFilesFilesItem["ProgramCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueStoriesStoriesItemFilesFilesItem["FormatName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueStoriesStoriesItemFilesFilesItem["FormatLongName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueStoriesStoriesItemFilesFilesItem["StartTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueStoriesStoriesItemFilesFilesItem["Bitrate"].asString()); + if(!valueStoriesStoriesItemFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueStoriesStoriesItemFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueStoriesStoriesItemFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + StoriesItem::FilesItem::AddressesItem addressesObject; + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueStoriesStoriesItemFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueStoriesStoriesItemFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + StoriesItem::FilesItem::FiguresItem figuresObject; + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueStoriesStoriesItemFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueStoriesStoriesItemFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + StoriesItem::FilesItem::LabelsItem labelsObject; + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueStoriesStoriesItemFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueStoriesStoriesItemFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + StoriesItem::FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueStoriesStoriesItemFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueStoriesStoriesItemFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueStoriesStoriesItemFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueStoriesStoriesItemFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + StoriesItem::FilesItem::OCRContentsItem oCRContentsObject; + if(!valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueStoriesStoriesItemFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueStoriesStoriesItemFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + StoriesItem::FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueStoriesStoriesItemFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueStoriesStoriesItemFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + StoriesItem::FilesItem::SubtitlesItem subtitlesObject; + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueStoriesStoriesItemFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueStoriesStoriesItemFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + StoriesItem::FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueStoriesStoriesItemFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueStoriesStoriesItemFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + StoriesItem::FilesItem::AudioCoversItem audioCoversObject; + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + StoriesItem::FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + StoriesItem::FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueStoriesStoriesItemFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + storiesObject.files.push_back(filesObject); + } + auto coverNode = value["Cover"]; + if(!coverNode["OwnerId"].isNull()) + storiesObject.cover.ownerId = coverNode["OwnerId"].asString(); + if(!coverNode["ProjectName"].isNull()) + storiesObject.cover.projectName = coverNode["ProjectName"].asString(); + if(!coverNode["DatasetName"].isNull()) + storiesObject.cover.datasetName = coverNode["DatasetName"].asString(); + if(!coverNode["ObjectType"].isNull()) + storiesObject.cover.objectType = coverNode["ObjectType"].asString(); + if(!coverNode["ObjectId"].isNull()) + storiesObject.cover.objectId = coverNode["ObjectId"].asString(); + if(!coverNode["UpdateTime"].isNull()) + storiesObject.cover.updateTime = coverNode["UpdateTime"].asString(); + if(!coverNode["CreateTime"].isNull()) + storiesObject.cover.createTime = coverNode["CreateTime"].asString(); + if(!coverNode["URI"].isNull()) + storiesObject.cover.uRI = coverNode["URI"].asString(); + if(!coverNode["OSSURI"].isNull()) + storiesObject.cover.oSSURI = coverNode["OSSURI"].asString(); + if(!coverNode["Filename"].isNull()) + storiesObject.cover.filename = coverNode["Filename"].asString(); + if(!coverNode["MediaType"].isNull()) + storiesObject.cover.mediaType = coverNode["MediaType"].asString(); + if(!coverNode["ContentType"].isNull()) + storiesObject.cover.contentType = coverNode["ContentType"].asString(); + if(!coverNode["Size"].isNull()) + storiesObject.cover.size = std::stol(coverNode["Size"].asString()); + if(!coverNode["FileHash"].isNull()) + storiesObject.cover.fileHash = coverNode["FileHash"].asString(); + if(!coverNode["FileModifiedTime"].isNull()) + storiesObject.cover.fileModifiedTime = coverNode["FileModifiedTime"].asString(); + if(!coverNode["FileCreateTime"].isNull()) + storiesObject.cover.fileCreateTime = coverNode["FileCreateTime"].asString(); + if(!coverNode["FileAccessTime"].isNull()) + storiesObject.cover.fileAccessTime = coverNode["FileAccessTime"].asString(); + if(!coverNode["ProduceTime"].isNull()) + storiesObject.cover.produceTime = coverNode["ProduceTime"].asString(); + if(!coverNode["LatLong"].isNull()) + storiesObject.cover.latLong = coverNode["LatLong"].asString(); + if(!coverNode["Timezone"].isNull()) + storiesObject.cover.timezone = coverNode["Timezone"].asString(); + if(!coverNode["TravelClusterId"].isNull()) + storiesObject.cover.travelClusterId = coverNode["TravelClusterId"].asString(); + if(!coverNode["Orientation"].isNull()) + storiesObject.cover.orientation = std::stol(coverNode["Orientation"].asString()); + if(!coverNode["FigureCount"].isNull()) + storiesObject.cover.figureCount = std::stol(coverNode["FigureCount"].asString()); + if(!coverNode["Title"].isNull()) + storiesObject.cover.title = coverNode["Title"].asString(); + if(!coverNode["ImageWidth"].isNull()) + storiesObject.cover.imageWidth = std::stol(coverNode["ImageWidth"].asString()); + if(!coverNode["ImageHeight"].isNull()) + storiesObject.cover.imageHeight = std::stol(coverNode["ImageHeight"].asString()); + if(!coverNode["EXIF"].isNull()) + storiesObject.cover.eXIF = coverNode["EXIF"].asString(); + if(!coverNode["VideoWidth"].isNull()) + storiesObject.cover.videoWidth = std::stol(coverNode["VideoWidth"].asString()); + if(!coverNode["VideoHeight"].isNull()) + storiesObject.cover.videoHeight = std::stol(coverNode["VideoHeight"].asString()); + if(!coverNode["Artist"].isNull()) + storiesObject.cover.artist = coverNode["Artist"].asString(); + if(!coverNode["AlbumArtist"].isNull()) + storiesObject.cover.albumArtist = coverNode["AlbumArtist"].asString(); + if(!coverNode["Composer"].isNull()) + storiesObject.cover.composer = coverNode["Composer"].asString(); + if(!coverNode["Performer"].isNull()) + storiesObject.cover.performer = coverNode["Performer"].asString(); + if(!coverNode["Language"].isNull()) + storiesObject.cover.language = coverNode["Language"].asString(); + if(!coverNode["Album"].isNull()) + storiesObject.cover.album = coverNode["Album"].asString(); + if(!coverNode["DocumentLanguage"].isNull()) + storiesObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); + if(!coverNode["PageCount"].isNull()) + storiesObject.cover.pageCount = std::stol(coverNode["PageCount"].asString()); + if(!coverNode["DocumentContent"].isNull()) + storiesObject.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["ETag"].isNull()) + storiesObject.cover.eTag = coverNode["ETag"].asString(); + if(!coverNode["CacheControl"].isNull()) + storiesObject.cover.cacheControl = coverNode["CacheControl"].asString(); + if(!coverNode["ContentDisposition"].isNull()) + storiesObject.cover.contentDisposition = coverNode["ContentDisposition"].asString(); + if(!coverNode["ContentEncoding"].isNull()) + storiesObject.cover.contentEncoding = coverNode["ContentEncoding"].asString(); + if(!coverNode["ContentLanguage"].isNull()) + storiesObject.cover.contentLanguage = coverNode["ContentLanguage"].asString(); + if(!coverNode["AccessControlAllowOrigin"].isNull()) + storiesObject.cover.accessControlAllowOrigin = coverNode["AccessControlAllowOrigin"].asString(); + if(!coverNode["AccessControlRequestMethod"].isNull()) + storiesObject.cover.accessControlRequestMethod = coverNode["AccessControlRequestMethod"].asString(); + if(!coverNode["ServerSideEncryptionCustomerAlgorithm"].isNull()) + storiesObject.cover.serverSideEncryptionCustomerAlgorithm = coverNode["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!coverNode["ServerSideEncryption"].isNull()) + storiesObject.cover.serverSideEncryption = coverNode["ServerSideEncryption"].asString(); + if(!coverNode["ServerSideDataEncryption"].isNull()) + storiesObject.cover.serverSideDataEncryption = coverNode["ServerSideDataEncryption"].asString(); + if(!coverNode["ServerSideEncryptionKeyId"].isNull()) + storiesObject.cover.serverSideEncryptionKeyId = coverNode["ServerSideEncryptionKeyId"].asString(); + if(!coverNode["OSSStorageClass"].isNull()) + storiesObject.cover.oSSStorageClass = coverNode["OSSStorageClass"].asString(); + if(!coverNode["OSSCRC64"].isNull()) + storiesObject.cover.oSSCRC64 = coverNode["OSSCRC64"].asString(); + if(!coverNode["ObjectACL"].isNull()) + storiesObject.cover.objectACL = coverNode["ObjectACL"].asString(); + if(!coverNode["ContentMd5"].isNull()) + storiesObject.cover.contentMd5 = coverNode["ContentMd5"].asString(); + if(!coverNode["OSSUserMeta"].isNull()) + storiesObject.cover.oSSUserMeta = coverNode["OSSUserMeta"].asString(); + if(!coverNode["OSSTaggingCount"].isNull()) + storiesObject.cover.oSSTaggingCount = std::stol(coverNode["OSSTaggingCount"].asString()); + if(!coverNode["OSSTagging"].isNull()) + storiesObject.cover.oSSTagging = coverNode["OSSTagging"].asString(); + if(!coverNode["OSSExpiration"].isNull()) + storiesObject.cover.oSSExpiration = coverNode["OSSExpiration"].asString(); + if(!coverNode["OSSVersionId"].isNull()) + storiesObject.cover.oSSVersionId = coverNode["OSSVersionId"].asString(); + if(!coverNode["OSSDeleteMarker"].isNull()) + storiesObject.cover.oSSDeleteMarker = coverNode["OSSDeleteMarker"].asString(); + if(!coverNode["OSSObjectType"].isNull()) + storiesObject.cover.oSSObjectType = coverNode["OSSObjectType"].asString(); + if(!coverNode["CustomId"].isNull()) + storiesObject.cover.customId = coverNode["CustomId"].asString(); + if(!coverNode["CustomLabels"].isNull()) + storiesObject.cover.customLabels = coverNode["CustomLabels"].asString(); + if(!coverNode["StreamCount"].isNull()) + storiesObject.cover.streamCount = std::stol(coverNode["StreamCount"].asString()); + if(!coverNode["ProgramCount"].isNull()) + storiesObject.cover.programCount = std::stol(coverNode["ProgramCount"].asString()); + if(!coverNode["FormatName"].isNull()) + storiesObject.cover.formatName = coverNode["FormatName"].asString(); + if(!coverNode["FormatLongName"].isNull()) + storiesObject.cover.formatLongName = coverNode["FormatLongName"].asString(); + if(!coverNode["StartTime"].isNull()) + storiesObject.cover.startTime = coverNode["StartTime"].asString(); + if(!coverNode["Bitrate"].isNull()) + storiesObject.cover.bitrate = std::stol(coverNode["Bitrate"].asString()); + if(!coverNode["Duration"].isNull()) + storiesObject.cover.duration = coverNode["Duration"].asString(); + auto allAddresses11Node = coverNode["Addresses"]["AddressesItem"]; + for (auto coverNodeAddressesAddressesItem : allAddresses11Node) + { + StoriesItem::Cover::AddressesItem20 addressesItem20Object; + if(!coverNodeAddressesAddressesItem["Language"].isNull()) + addressesItem20Object.language = coverNodeAddressesAddressesItem["Language"].asString(); + if(!coverNodeAddressesAddressesItem["AddressLine"].isNull()) + addressesItem20Object.addressLine = coverNodeAddressesAddressesItem["AddressLine"].asString(); + if(!coverNodeAddressesAddressesItem["Country"].isNull()) + addressesItem20Object.country = coverNodeAddressesAddressesItem["Country"].asString(); + if(!coverNodeAddressesAddressesItem["Province"].isNull()) + addressesItem20Object.province = coverNodeAddressesAddressesItem["Province"].asString(); + if(!coverNodeAddressesAddressesItem["City"].isNull()) + addressesItem20Object.city = coverNodeAddressesAddressesItem["City"].asString(); + if(!coverNodeAddressesAddressesItem["District"].isNull()) + addressesItem20Object.district = coverNodeAddressesAddressesItem["District"].asString(); + if(!coverNodeAddressesAddressesItem["Township"].isNull()) + addressesItem20Object.township = coverNodeAddressesAddressesItem["Township"].asString(); + storiesObject.cover.addresses11.push_back(addressesItem20Object); + } + auto allFigures12Node = coverNode["Figures"]["FiguresItem"]; + for (auto coverNodeFiguresFiguresItem : allFigures12Node) + { + StoriesItem::Cover::FiguresItem21 figuresItem21Object; + if(!coverNodeFiguresFiguresItem["FigureId"].isNull()) + figuresItem21Object.figureId = coverNodeFiguresFiguresItem["FigureId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureConfidence"].isNull()) + figuresItem21Object.figureConfidence = std::stof(coverNodeFiguresFiguresItem["FigureConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureClusterId"].isNull()) + figuresItem21Object.figureClusterId = coverNodeFiguresFiguresItem["FigureClusterId"].asString(); + if(!coverNodeFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresItem21Object.figureClusterConfidence = std::stof(coverNodeFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FigureType"].isNull()) + figuresItem21Object.figureType = coverNodeFiguresFiguresItem["FigureType"].asString(); + if(!coverNodeFiguresFiguresItem["Age"].isNull()) + figuresItem21Object.age = std::stol(coverNodeFiguresFiguresItem["Age"].asString()); + if(!coverNodeFiguresFiguresItem["AgeSD"].isNull()) + figuresItem21Object.ageSD = std::stof(coverNodeFiguresFiguresItem["AgeSD"].asString()); + if(!coverNodeFiguresFiguresItem["Gender"].isNull()) + figuresItem21Object.gender = coverNodeFiguresFiguresItem["Gender"].asString(); + if(!coverNodeFiguresFiguresItem["GenderConfidence"].isNull()) + figuresItem21Object.genderConfidence = std::stof(coverNodeFiguresFiguresItem["GenderConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Emotion"].isNull()) + figuresItem21Object.emotion = coverNodeFiguresFiguresItem["Emotion"].asString(); + if(!coverNodeFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresItem21Object.emotionConfidence = std::stof(coverNodeFiguresFiguresItem["EmotionConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["FaceQuality"].isNull()) + figuresItem21Object.faceQuality = std::stof(coverNodeFiguresFiguresItem["FaceQuality"].asString()); + if(!coverNodeFiguresFiguresItem["Mouth"].isNull()) + figuresItem21Object.mouth = coverNodeFiguresFiguresItem["Mouth"].asString(); + if(!coverNodeFiguresFiguresItem["MouthConfidence"].isNull()) + figuresItem21Object.mouthConfidence = std::stof(coverNodeFiguresFiguresItem["MouthConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Beard"].isNull()) + figuresItem21Object.beard = coverNodeFiguresFiguresItem["Beard"].asString(); + if(!coverNodeFiguresFiguresItem["BeardConfidence"].isNull()) + figuresItem21Object.beardConfidence = std::stof(coverNodeFiguresFiguresItem["BeardConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Hat"].isNull()) + figuresItem21Object.hat = coverNodeFiguresFiguresItem["Hat"].asString(); + if(!coverNodeFiguresFiguresItem["HatConfidence"].isNull()) + figuresItem21Object.hatConfidence = std::stof(coverNodeFiguresFiguresItem["HatConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Mask"].isNull()) + figuresItem21Object.mask = coverNodeFiguresFiguresItem["Mask"].asString(); + if(!coverNodeFiguresFiguresItem["MaskConfidence"].isNull()) + figuresItem21Object.maskConfidence = std::stof(coverNodeFiguresFiguresItem["MaskConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Glasses"].isNull()) + figuresItem21Object.glasses = coverNodeFiguresFiguresItem["Glasses"].asString(); + if(!coverNodeFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresItem21Object.glassesConfidence = std::stof(coverNodeFiguresFiguresItem["GlassesConfidence"].asString()); + if(!coverNodeFiguresFiguresItem["Sharpness"].isNull()) + figuresItem21Object.sharpness = std::stof(coverNodeFiguresFiguresItem["Sharpness"].asString()); + if(!coverNodeFiguresFiguresItem["Attractive"].isNull()) + figuresItem21Object.attractive = std::stof(coverNodeFiguresFiguresItem["Attractive"].asString()); + auto boundary22Node = value["Boundary"]; + if(!boundary22Node["Width"].isNull()) + figuresItem21Object.boundary22.width = std::stol(boundary22Node["Width"].asString()); + if(!boundary22Node["Height"].isNull()) + figuresItem21Object.boundary22.height = std::stol(boundary22Node["Height"].asString()); + if(!boundary22Node["Left"].isNull()) + figuresItem21Object.boundary22.left = std::stol(boundary22Node["Left"].asString()); + if(!boundary22Node["Top"].isNull()) + figuresItem21Object.boundary22.top = std::stol(boundary22Node["Top"].asString()); + auto headPose23Node = value["HeadPose"]; + if(!headPose23Node["Pitch"].isNull()) + figuresItem21Object.headPose23.pitch = std::stof(headPose23Node["Pitch"].asString()); + if(!headPose23Node["Roll"].isNull()) + figuresItem21Object.headPose23.roll = std::stof(headPose23Node["Roll"].asString()); + if(!headPose23Node["Yaw"].isNull()) + figuresItem21Object.headPose23.yaw = std::stof(headPose23Node["Yaw"].asString()); + storiesObject.cover.figures12.push_back(figuresItem21Object); + } + auto allLabels13Node = coverNode["Labels"]["LabelsItem"]; + for (auto coverNodeLabelsLabelsItem : allLabels13Node) + { + StoriesItem::Cover::LabelsItem24 labelsItem24Object; + if(!coverNodeLabelsLabelsItem["Language"].isNull()) + labelsItem24Object.language = coverNodeLabelsLabelsItem["Language"].asString(); + if(!coverNodeLabelsLabelsItem["LabelName"].isNull()) + labelsItem24Object.labelName = coverNodeLabelsLabelsItem["LabelName"].asString(); + if(!coverNodeLabelsLabelsItem["LabelLevel"].isNull()) + labelsItem24Object.labelLevel = std::stol(coverNodeLabelsLabelsItem["LabelLevel"].asString()); + if(!coverNodeLabelsLabelsItem["LabelConfidence"].isNull()) + labelsItem24Object.labelConfidence = std::stof(coverNodeLabelsLabelsItem["LabelConfidence"].asString()); + if(!coverNodeLabelsLabelsItem["ParentLabelName"].isNull()) + labelsItem24Object.parentLabelName = coverNodeLabelsLabelsItem["ParentLabelName"].asString(); + if(!coverNodeLabelsLabelsItem["CentricScore"].isNull()) + labelsItem24Object.centricScore = std::stof(coverNodeLabelsLabelsItem["CentricScore"].asString()); + storiesObject.cover.labels13.push_back(labelsItem24Object); + } + auto allCroppingSuggestions14Node = coverNode["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions14Node) + { + StoriesItem::Cover::CroppingSuggestionsItem25 croppingSuggestionsItem25Object; + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsItem25Object.aspectRatio = coverNodeCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsItem25Object.confidence = std::stof(coverNodeCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary26Node = value["Boundary"]; + if(!boundary26Node["Width"].isNull()) + croppingSuggestionsItem25Object.boundary26.width = std::stol(boundary26Node["Width"].asString()); + if(!boundary26Node["Height"].isNull()) + croppingSuggestionsItem25Object.boundary26.height = std::stol(boundary26Node["Height"].asString()); + if(!boundary26Node["Left"].isNull()) + croppingSuggestionsItem25Object.boundary26.left = std::stol(boundary26Node["Left"].asString()); + if(!boundary26Node["Top"].isNull()) + croppingSuggestionsItem25Object.boundary26.top = std::stol(boundary26Node["Top"].asString()); + storiesObject.cover.croppingSuggestions14.push_back(croppingSuggestionsItem25Object); + } + auto allOCRContents15Node = coverNode["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeOCRContentsOCRContentsItem : allOCRContents15Node) + { + StoriesItem::Cover::OCRContentsItem27 oCRContentsItem27Object; + if(!coverNodeOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsItem27Object.language = coverNodeOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsItem27Object.contents = coverNodeOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsItem27Object.confidence = std::stof(coverNodeOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary28Node = value["Boundary"]; + if(!boundary28Node["Width"].isNull()) + oCRContentsItem27Object.boundary28.width = std::stol(boundary28Node["Width"].asString()); + if(!boundary28Node["Height"].isNull()) + oCRContentsItem27Object.boundary28.height = std::stol(boundary28Node["Height"].asString()); + if(!boundary28Node["Left"].isNull()) + oCRContentsItem27Object.boundary28.left = std::stol(boundary28Node["Left"].asString()); + if(!boundary28Node["Top"].isNull()) + oCRContentsItem27Object.boundary28.top = std::stol(boundary28Node["Top"].asString()); + storiesObject.cover.oCRContents15.push_back(oCRContentsItem27Object); + } + auto allVideoStreams16Node = coverNode["VideoStreams"]["VideoStreamsItem"]; + for (auto coverNodeVideoStreamsVideoStreamsItem : allVideoStreams16Node) + { + StoriesItem::Cover::VideoStreamsItem29 videoStreamsItem29Object; + if(!coverNodeVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsItem29Object.index = std::stol(coverNodeVideoStreamsVideoStreamsItem["Index"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsItem29Object.language = coverNodeVideoStreamsVideoStreamsItem["Language"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsItem29Object.codecName = coverNodeVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsItem29Object.codecLongName = coverNodeVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsItem29Object.profile = coverNodeVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsItem29Object.codecTimeBase = coverNodeVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsItem29Object.codecTagString = coverNodeVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsItem29Object.codecTag = coverNodeVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsItem29Object.width = std::stol(coverNodeVideoStreamsVideoStreamsItem["Width"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsItem29Object.height = std::stol(coverNodeVideoStreamsVideoStreamsItem["Height"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsItem29Object.hasBFrames = std::stol(coverNodeVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsItem29Object.sampleAspectRatio = coverNodeVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsItem29Object.displayAspectRatio = coverNodeVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsItem29Object.pixelFormat = coverNodeVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsItem29Object.level = std::stol(coverNodeVideoStreamsVideoStreamsItem["Level"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsItem29Object.frameRate = coverNodeVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsItem29Object.averageFrameRate = coverNodeVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsItem29Object.timeBase = coverNodeVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsItem29Object.startTime = coverNodeVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsItem29Object.duration = coverNodeVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsItem29Object.bitrate = std::stol(coverNodeVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsItem29Object.frameCount = std::stol(coverNodeVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsItem29Object.rotate = coverNodeVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsItem29Object.bitDepth = std::stol(coverNodeVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsItem29Object.colorSpace = coverNodeVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsItem29Object.colorRange = coverNodeVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsItem29Object.colorTransfer = coverNodeVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsItem29Object.colorPrimaries = coverNodeVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + storiesObject.cover.videoStreams16.push_back(videoStreamsItem29Object); + } + auto allSubtitles17Node = coverNode["Subtitles"]["SubtitlesItem"]; + for (auto coverNodeSubtitlesSubtitlesItem : allSubtitles17Node) + { + StoriesItem::Cover::SubtitlesItem30 subtitlesItem30Object; + if(!coverNodeSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesItem30Object.index = std::stol(coverNodeSubtitlesSubtitlesItem["Index"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesItem30Object.language = coverNodeSubtitlesSubtitlesItem["Language"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesItem30Object.codecName = coverNodeSubtitlesSubtitlesItem["CodecName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesItem30Object.codecLongName = coverNodeSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesItem30Object.codecTagString = coverNodeSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesItem30Object.codecTag = coverNodeSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesItem30Object.startTime = coverNodeSubtitlesSubtitlesItem["StartTime"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesItem30Object.duration = coverNodeSubtitlesSubtitlesItem["Duration"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesItem30Object.bitrate = std::stol(coverNodeSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesItem30Object.content = coverNodeSubtitlesSubtitlesItem["Content"].asString(); + if(!coverNodeSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesItem30Object.width = std::stol(coverNodeSubtitlesSubtitlesItem["Width"].asString()); + if(!coverNodeSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesItem30Object.height = std::stol(coverNodeSubtitlesSubtitlesItem["Height"].asString()); + storiesObject.cover.subtitles17.push_back(subtitlesItem30Object); + } + auto allAudioStreams18Node = coverNode["AudioStreams"]["AudioStreamsItem"]; + for (auto coverNodeAudioStreamsAudioStreamsItem : allAudioStreams18Node) + { + StoriesItem::Cover::AudioStreamsItem31 audioStreamsItem31Object; + if(!coverNodeAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsItem31Object.index = std::stol(coverNodeAudioStreamsAudioStreamsItem["Index"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsItem31Object.language = coverNodeAudioStreamsAudioStreamsItem["Language"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsItem31Object.codecName = coverNodeAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsItem31Object.codecLongName = coverNodeAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsItem31Object.codecTimeBase = coverNodeAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsItem31Object.codecTagString = coverNodeAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsItem31Object.codecTag = coverNodeAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsItem31Object.timeBase = coverNodeAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsItem31Object.startTime = coverNodeAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsItem31Object.duration = coverNodeAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsItem31Object.bitrate = std::stol(coverNodeAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsItem31Object.frameCount = std::stol(coverNodeAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsItem31Object.lyric = coverNodeAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsItem31Object.sampleFormat = coverNodeAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!coverNodeAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsItem31Object.sampleRate = std::stol(coverNodeAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsItem31Object.channels = std::stol(coverNodeAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsItem31Object.channelLayout = coverNodeAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + storiesObject.cover.audioStreams18.push_back(audioStreamsItem31Object); + } + auto allAudioCovers19Node = coverNode["AudioCovers"]["AudioCoversItem"]; + for (auto coverNodeAudioCoversAudioCoversItem : allAudioCovers19Node) + { + StoriesItem::Cover::AudioCoversItem32 audioCoversItem32Object; + if(!coverNodeAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversItem32Object.imageWidth = std::stol(coverNodeAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversItem32Object.imageHeight = std::stol(coverNodeAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!coverNodeAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversItem32Object.eXIF = coverNodeAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions34Node = coverNodeAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions34Node) + { + StoriesItem::Cover::AudioCoversItem32::CroppingSuggestionsItem36 croppingSuggestions34Object; + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions34Object.aspectRatio = coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions34Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary37Node = value["Boundary"]; + if(!boundary37Node["Width"].isNull()) + croppingSuggestions34Object.boundary37.width = std::stol(boundary37Node["Width"].asString()); + if(!boundary37Node["Height"].isNull()) + croppingSuggestions34Object.boundary37.height = std::stol(boundary37Node["Height"].asString()); + if(!boundary37Node["Left"].isNull()) + croppingSuggestions34Object.boundary37.left = std::stol(boundary37Node["Left"].asString()); + if(!boundary37Node["Top"].isNull()) + croppingSuggestions34Object.boundary37.top = std::stol(boundary37Node["Top"].asString()); + audioCoversItem32Object.croppingSuggestions34.push_back(croppingSuggestions34Object); + } + auto allOCRContents35Node = coverNodeAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents35Node) + { + StoriesItem::Cover::AudioCoversItem32::OCRContentsItem38 oCRContents35Object; + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents35Object.language = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents35Object.contents = coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents35Object.confidence = std::stof(coverNodeAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary39Node = value["Boundary"]; + if(!boundary39Node["Width"].isNull()) + oCRContents35Object.boundary39.width = std::stol(boundary39Node["Width"].asString()); + if(!boundary39Node["Height"].isNull()) + oCRContents35Object.boundary39.height = std::stol(boundary39Node["Height"].asString()); + if(!boundary39Node["Left"].isNull()) + oCRContents35Object.boundary39.left = std::stol(boundary39Node["Left"].asString()); + if(!boundary39Node["Top"].isNull()) + oCRContents35Object.boundary39.top = std::stol(boundary39Node["Top"].asString()); + audioCoversItem32Object.oCRContents35.push_back(oCRContents35Object); + } + auto imageScore33Node = value["ImageScore"]; + if(!imageScore33Node["OverallQualityScore"].isNull()) + audioCoversItem32Object.imageScore33.overallQualityScore = std::stof(imageScore33Node["OverallQualityScore"].asString()); + storiesObject.cover.audioCovers19.push_back(audioCoversItem32Object); + } + auto imageScore10Node = coverNode["ImageScore"]; + if(!imageScore10Node["OverallQualityScore"].isNull()) + storiesObject.cover.imageScore10.overallQualityScore = std::stof(imageScore10Node["OverallQualityScore"].asString()); + auto allFigureClusterIds = value["FigureClusterIds"]["null"]; + for (auto value : allFigureClusterIds) + storiesObject.figureClusterIds.push_back(value.asString()); + stories_.push_back(storiesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string QueryStoriesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector QueryStoriesResult::getStories()const +{ + return stories_; +} + diff --git a/imm/src/model/RefreshOfficeEditTokenRequest.cc b/imm/src/model/RefreshOfficeEditTokenRequest.cc deleted file mode 100644 index 825633972..000000000 --- a/imm/src/model/RefreshOfficeEditTokenRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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::RefreshOfficeEditTokenRequest; - -RefreshOfficeEditTokenRequest::RefreshOfficeEditTokenRequest() - : RpcServiceRequest("imm", "2017-09-06", "RefreshOfficeEditToken") { - setMethod(HttpRequest::Method::Post); -} - -RefreshOfficeEditTokenRequest::~RefreshOfficeEditTokenRequest() {} - -std::string RefreshOfficeEditTokenRequest::getProject() const { - return project_; -} - -void RefreshOfficeEditTokenRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); -} - -std::string RefreshOfficeEditTokenRequest::getAccessToken() const { - return accessToken_; -} - -void RefreshOfficeEditTokenRequest::setAccessToken(const std::string &accessToken) { - accessToken_ = accessToken; - setParameter(std::string("AccessToken"), accessToken); -} - -std::string RefreshOfficeEditTokenRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void RefreshOfficeEditTokenRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string RefreshOfficeEditTokenRequest::getRefreshToken() const { - return refreshToken_; -} - -void RefreshOfficeEditTokenRequest::setRefreshToken(const std::string &refreshToken) { - refreshToken_ = refreshToken; - setParameter(std::string("RefreshToken"), refreshToken); -} - diff --git a/imm/src/model/RefreshOfficeEditTokenResult.cc b/imm/src/model/RefreshOfficeEditTokenResult.cc deleted file mode 100644 index aca496873..000000000 --- a/imm/src/model/RefreshOfficeEditTokenResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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; - -RefreshOfficeEditTokenResult::RefreshOfficeEditTokenResult() : - ServiceResult() -{} - -RefreshOfficeEditTokenResult::RefreshOfficeEditTokenResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RefreshOfficeEditTokenResult::~RefreshOfficeEditTokenResult() -{} - -void RefreshOfficeEditTokenResult::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 RefreshOfficeEditTokenResult::getRefreshToken()const -{ - return refreshToken_; -} - -std::string RefreshOfficeEditTokenResult::getAccessToken()const -{ - return accessToken_; -} - -std::string RefreshOfficeEditTokenResult::getRefreshTokenExpiredTime()const -{ - return refreshTokenExpiredTime_; -} - -std::string RefreshOfficeEditTokenResult::getAccessTokenExpiredTime()const -{ - return accessTokenExpiredTime_; -} - diff --git a/imm/src/model/RefreshOfficePreviewTokenRequest.cc b/imm/src/model/RefreshOfficePreviewTokenRequest.cc deleted file mode 100644 index 3ce707ec0..000000000 --- a/imm/src/model/RefreshOfficePreviewTokenRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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::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 deleted file mode 100644 index 470f4fa99..000000000 --- a/imm/src/model/RefreshOfficePreviewTokenResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 2929a91b3..bc3a4ca1e 100644 --- a/imm/src/model/RefreshWebofficeTokenRequest.cc +++ b/imm/src/model/RefreshWebofficeTokenRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Imm::Model::RefreshWebofficeTokenRequest; RefreshWebofficeTokenRequest::RefreshWebofficeTokenRequest() - : RpcServiceRequest("imm", "2017-09-06", "RefreshWebofficeToken") { + : RpcServiceRequest("imm", "2020-09-30", "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_; } @@ -43,15 +34,6 @@ 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_; } @@ -61,3 +43,27 @@ 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 new file mode 100644 index 000000000..9ecbcaad2 --- /dev/null +++ b/imm/src/model/RemoveStoryFilesRequest.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 + +using AlibabaCloud::Imm::Model::RemoveStoryFilesRequest; + +RemoveStoryFilesRequest::RemoveStoryFilesRequest() + : RpcServiceRequest("imm", "2020-09-30", "RemoveStoryFiles") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void RemoveStoryFilesRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setBodyParameter(std::string("ProjectName"), projectName); +} + +std::vector RemoveStoryFilesRequest::getFiles() const { + return files_; +} + +void RemoveStoryFilesRequest::setFiles(const std::vector &files) { + files_ = files; + for(int dep1 = 0; dep1 != files.size(); dep1++) { + setBodyParameter(std::string("Files") + "." + std::to_string(dep1 + 1) + ".URI", files[dep1].uRI); + } +} + +std::string RemoveStoryFilesRequest::getObjectId() const { + return objectId_; +} + +void RemoveStoryFilesRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setBodyParameter(std::string("ObjectId"), objectId); +} + diff --git a/imm/src/model/RemoveStoryFilesResult.cc b/imm/src/model/RemoveStoryFilesResult.cc new file mode 100644 index 000000000..f99939e90 --- /dev/null +++ b/imm/src/model/RemoveStoryFilesResult.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; + +RemoveStoryFilesResult::RemoveStoryFilesResult() : + ServiceResult() +{} + +RemoveStoryFilesResult::RemoveStoryFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveStoryFilesResult::~RemoveStoryFilesResult() +{} + +void RemoveStoryFilesResult::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/ResumeBindingRequest.cc b/imm/src/model/ResumeBindingRequest.cc new file mode 100644 index 000000000..2eb86c054 --- /dev/null +++ b/imm/src/model/ResumeBindingRequest.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::ResumeBindingRequest; + +ResumeBindingRequest::ResumeBindingRequest() + : RpcServiceRequest("imm", "2020-09-30", "ResumeBinding") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void ResumeBindingRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string ResumeBindingRequest::getURI() const { + return uRI_; +} + +void ResumeBindingRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/ResumeBindingResult.cc b/imm/src/model/ResumeBindingResult.cc new file mode 100644 index 000000000..227486f31 --- /dev/null +++ b/imm/src/model/ResumeBindingResult.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; + +ResumeBindingResult::ResumeBindingResult() : + ServiceResult() +{} + +ResumeBindingResult::ResumeBindingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResumeBindingResult::~ResumeBindingResult() +{} + +void ResumeBindingResult::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/SemanticQueryRequest.cc b/imm/src/model/SemanticQueryRequest.cc new file mode 100644 index 000000000..427371046 --- /dev/null +++ b/imm/src/model/SemanticQueryRequest.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::SemanticQueryRequest; + +SemanticQueryRequest::SemanticQueryRequest() + : RpcServiceRequest("imm", "2020-09-30", "SemanticQuery") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void SemanticQueryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string SemanticQueryRequest::getQuery() const { + return query_; +} + +void SemanticQueryRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("Query"), query); +} + +int SemanticQueryRequest::getMaxResults() const { + return maxResults_; +} + +void SemanticQueryRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/imm/src/model/SemanticQueryResult.cc b/imm/src/model/SemanticQueryResult.cc new file mode 100644 index 000000000..4700b84fc --- /dev/null +++ b/imm/src/model/SemanticQueryResult.cc @@ -0,0 +1,565 @@ +/* + * 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; + +SemanticQueryResult::SemanticQueryResult() : + ServiceResult() +{} + +SemanticQueryResult::SemanticQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SemanticQueryResult::~SemanticQueryResult() +{} + +void SemanticQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueFilesFilesItem["OwnerId"].asString(); + if(!valueFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueFilesFilesItem["ProjectName"].asString(); + if(!valueFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueFilesFilesItem["DatasetName"].asString(); + if(!valueFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueFilesFilesItem["ObjectType"].asString(); + if(!valueFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueFilesFilesItem["ObjectId"].asString(); + if(!valueFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueFilesFilesItem["UpdateTime"].asString(); + if(!valueFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueFilesFilesItem["CreateTime"].asString(); + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueFilesFilesItem["OSSURI"].asString(); + if(!valueFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueFilesFilesItem["Filename"].asString(); + if(!valueFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueFilesFilesItem["MediaType"].asString(); + if(!valueFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueFilesFilesItem["ContentType"].asString(); + if(!valueFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueFilesFilesItem["Size"].asString()); + if(!valueFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueFilesFilesItem["FileHash"].asString(); + if(!valueFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueFilesFilesItem["FileModifiedTime"].asString(); + if(!valueFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueFilesFilesItem["FileCreateTime"].asString(); + if(!valueFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueFilesFilesItem["FileAccessTime"].asString(); + if(!valueFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueFilesFilesItem["ProduceTime"].asString(); + if(!valueFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueFilesFilesItem["LatLong"].asString(); + if(!valueFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueFilesFilesItem["Timezone"].asString(); + if(!valueFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueFilesFilesItem["TravelClusterId"].asString(); + if(!valueFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueFilesFilesItem["Orientation"].asString()); + if(!valueFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueFilesFilesItem["FigureCount"].asString()); + if(!valueFilesFilesItem["Title"].isNull()) + filesObject.title = valueFilesFilesItem["Title"].asString(); + if(!valueFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueFilesFilesItem["ImageWidth"].asString()); + if(!valueFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueFilesFilesItem["ImageHeight"].asString()); + if(!valueFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueFilesFilesItem["EXIF"].asString(); + if(!valueFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueFilesFilesItem["VideoWidth"].asString()); + if(!valueFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueFilesFilesItem["VideoHeight"].asString()); + if(!valueFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueFilesFilesItem["Artist"].asString(); + if(!valueFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueFilesFilesItem["AlbumArtist"].asString(); + if(!valueFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueFilesFilesItem["Composer"].asString(); + if(!valueFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueFilesFilesItem["Performer"].asString(); + if(!valueFilesFilesItem["Language"].isNull()) + filesObject.language = valueFilesFilesItem["Language"].asString(); + if(!valueFilesFilesItem["Album"].isNull()) + filesObject.album = valueFilesFilesItem["Album"].asString(); + if(!valueFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); + if(!valueFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); + if(!valueFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueFilesFilesItem["ETag"].asString(); + if(!valueFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueFilesFilesItem["CacheControl"].asString(); + if(!valueFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueFilesFilesItem["ContentDisposition"].asString(); + if(!valueFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueFilesFilesItem["ContentEncoding"].asString(); + if(!valueFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueFilesFilesItem["ContentLanguage"].asString(); + if(!valueFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueFilesFilesItem["OSSStorageClass"].asString(); + if(!valueFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueFilesFilesItem["OSSCRC64"].asString(); + if(!valueFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueFilesFilesItem["ObjectACL"].asString(); + if(!valueFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueFilesFilesItem["ContentMd5"].asString(); + if(!valueFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueFilesFilesItem["OSSUserMeta"].asString(); + if(!valueFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueFilesFilesItem["OSSTagging"].asString(); + if(!valueFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueFilesFilesItem["OSSExpiration"].asString(); + if(!valueFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueFilesFilesItem["OSSVersionId"].asString(); + if(!valueFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueFilesFilesItem["OSSObjectType"].asString(); + if(!valueFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueFilesFilesItem["CustomId"].asString(); + if(!valueFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueFilesFilesItem["CustomLabels"].asString(); + if(!valueFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueFilesFilesItem["StreamCount"].asString()); + if(!valueFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueFilesFilesItem["ProgramCount"].asString()); + if(!valueFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueFilesFilesItem["FormatName"].asString(); + if(!valueFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueFilesFilesItem["FormatLongName"].asString(); + if(!valueFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueFilesFilesItem["StartTime"].asString(); + if(!valueFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueFilesFilesItem["Bitrate"].asString()); + if(!valueFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + FilesItem::AddressesItem addressesObject; + if(!valueFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + FilesItem::FiguresItem figuresObject; + if(!valueFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + FilesItem::LabelsItem labelsObject; + if(!valueFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + FilesItem::OCRContentsItem oCRContentsObject; + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + FilesItem::SubtitlesItem subtitlesObject; + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + FilesItem::AudioCoversItem audioCoversObject; + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + files_.push_back(filesObject); + } + auto allAggregationsNode = value["Aggregations"]["AggregationsItem"]; + for (auto valueAggregationsAggregationsItem : allAggregationsNode) + { + AggregationsItem aggregationsObject; + if(!valueAggregationsAggregationsItem["Field"].isNull()) + aggregationsObject.field = valueAggregationsAggregationsItem["Field"].asString(); + if(!valueAggregationsAggregationsItem["Operation"].isNull()) + aggregationsObject.operation = valueAggregationsAggregationsItem["Operation"].asString(); + if(!valueAggregationsAggregationsItem["Value"].isNull()) + aggregationsObject.value = std::stof(valueAggregationsAggregationsItem["Value"].asString()); + auto allGroupsNode = valueAggregationsAggregationsItem["Groups"]["GroupsItem"]; + for (auto valueAggregationsAggregationsItemGroupsGroupsItem : allGroupsNode) + { + AggregationsItem::GroupsItem groupsObject; + if(!valueAggregationsAggregationsItemGroupsGroupsItem["Value"].isNull()) + groupsObject.value = valueAggregationsAggregationsItemGroupsGroupsItem["Value"].asString(); + if(!valueAggregationsAggregationsItemGroupsGroupsItem["Count"].isNull()) + groupsObject.count = std::stol(valueAggregationsAggregationsItemGroupsGroupsItem["Count"].asString()); + aggregationsObject.groups.push_back(groupsObject); + } + aggregations_.push_back(aggregationsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string SemanticQueryResult::getNextToken()const +{ + return nextToken_; +} + +std::vector SemanticQueryResult::getAggregations()const +{ + return aggregations_; +} + +std::vector SemanticQueryResult::getFiles()const +{ + return files_; +} + diff --git a/imm/src/model/SimpleQueryRequest.cc b/imm/src/model/SimpleQueryRequest.cc new file mode 100644 index 000000000..bedd1adbb --- /dev/null +++ b/imm/src/model/SimpleQueryRequest.cc @@ -0,0 +1,118 @@ +/* + * 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::SimpleQueryRequest; + +SimpleQueryRequest::SimpleQueryRequest() + : RpcServiceRequest("imm", "2020-09-30", "SimpleQuery") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void SimpleQueryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +SimpleQueryRequest::Query SimpleQueryRequest::getQuery() const { + return query_; +} + +void SimpleQueryRequest::setQuery(const SimpleQueryRequest::Query &query) { + query_ = query; + setParameter(std::string("Query") + ".Field", query.field); + for(int dep1 = 0; dep1 != query.subQueries.size(); dep1++) { + setParameter(std::string("Query") + ".SubQueries." + std::to_string(dep1 + 1), std::to_string(query.subQueries[dep1])); + } + setParameter(std::string("Query") + ".Value", query.value); + 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_; +} + +void SimpleQueryRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::vector SimpleQueryRequest::getAggregations() const { + return aggregations_; +} + +void SimpleQueryRequest::setAggregations(const std::vector &aggregations) { + aggregations_ = aggregations; + for(int dep1 = 0; dep1 != aggregations.size(); dep1++) { + setParameter(std::string("Aggregations") + "." + std::to_string(dep1 + 1) + ".Field", aggregations[dep1].field); + setParameter(std::string("Aggregations") + "." + std::to_string(dep1 + 1) + ".Operation", aggregations[dep1].operation); + } +} + diff --git a/imm/src/model/SimpleQueryResult.cc b/imm/src/model/SimpleQueryResult.cc new file mode 100644 index 000000000..91ca53bfd --- /dev/null +++ b/imm/src/model/SimpleQueryResult.cc @@ -0,0 +1,565 @@ +/* + * 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; + +SimpleQueryResult::SimpleQueryResult() : + ServiceResult() +{} + +SimpleQueryResult::SimpleQueryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SimpleQueryResult::~SimpleQueryResult() +{} + +void SimpleQueryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFilesNode = value["Files"]["FilesItem"]; + for (auto valueFilesFilesItem : allFilesNode) + { + FilesItem filesObject; + if(!valueFilesFilesItem["OwnerId"].isNull()) + filesObject.ownerId = valueFilesFilesItem["OwnerId"].asString(); + if(!valueFilesFilesItem["ProjectName"].isNull()) + filesObject.projectName = valueFilesFilesItem["ProjectName"].asString(); + if(!valueFilesFilesItem["DatasetName"].isNull()) + filesObject.datasetName = valueFilesFilesItem["DatasetName"].asString(); + if(!valueFilesFilesItem["ObjectType"].isNull()) + filesObject.objectType = valueFilesFilesItem["ObjectType"].asString(); + if(!valueFilesFilesItem["ObjectId"].isNull()) + filesObject.objectId = valueFilesFilesItem["ObjectId"].asString(); + if(!valueFilesFilesItem["UpdateTime"].isNull()) + filesObject.updateTime = valueFilesFilesItem["UpdateTime"].asString(); + if(!valueFilesFilesItem["CreateTime"].isNull()) + filesObject.createTime = valueFilesFilesItem["CreateTime"].asString(); + if(!valueFilesFilesItem["URI"].isNull()) + filesObject.uRI = valueFilesFilesItem["URI"].asString(); + if(!valueFilesFilesItem["OSSURI"].isNull()) + filesObject.oSSURI = valueFilesFilesItem["OSSURI"].asString(); + if(!valueFilesFilesItem["Filename"].isNull()) + filesObject.filename = valueFilesFilesItem["Filename"].asString(); + if(!valueFilesFilesItem["MediaType"].isNull()) + filesObject.mediaType = valueFilesFilesItem["MediaType"].asString(); + if(!valueFilesFilesItem["ContentType"].isNull()) + filesObject.contentType = valueFilesFilesItem["ContentType"].asString(); + if(!valueFilesFilesItem["Size"].isNull()) + filesObject.size = std::stol(valueFilesFilesItem["Size"].asString()); + if(!valueFilesFilesItem["FileHash"].isNull()) + filesObject.fileHash = valueFilesFilesItem["FileHash"].asString(); + if(!valueFilesFilesItem["FileModifiedTime"].isNull()) + filesObject.fileModifiedTime = valueFilesFilesItem["FileModifiedTime"].asString(); + if(!valueFilesFilesItem["FileCreateTime"].isNull()) + filesObject.fileCreateTime = valueFilesFilesItem["FileCreateTime"].asString(); + if(!valueFilesFilesItem["FileAccessTime"].isNull()) + filesObject.fileAccessTime = valueFilesFilesItem["FileAccessTime"].asString(); + if(!valueFilesFilesItem["ProduceTime"].isNull()) + filesObject.produceTime = valueFilesFilesItem["ProduceTime"].asString(); + if(!valueFilesFilesItem["LatLong"].isNull()) + filesObject.latLong = valueFilesFilesItem["LatLong"].asString(); + if(!valueFilesFilesItem["Timezone"].isNull()) + filesObject.timezone = valueFilesFilesItem["Timezone"].asString(); + if(!valueFilesFilesItem["TravelClusterId"].isNull()) + filesObject.travelClusterId = valueFilesFilesItem["TravelClusterId"].asString(); + if(!valueFilesFilesItem["Orientation"].isNull()) + filesObject.orientation = std::stol(valueFilesFilesItem["Orientation"].asString()); + if(!valueFilesFilesItem["FigureCount"].isNull()) + filesObject.figureCount = std::stol(valueFilesFilesItem["FigureCount"].asString()); + if(!valueFilesFilesItem["Title"].isNull()) + filesObject.title = valueFilesFilesItem["Title"].asString(); + if(!valueFilesFilesItem["ImageWidth"].isNull()) + filesObject.imageWidth = std::stol(valueFilesFilesItem["ImageWidth"].asString()); + if(!valueFilesFilesItem["ImageHeight"].isNull()) + filesObject.imageHeight = std::stol(valueFilesFilesItem["ImageHeight"].asString()); + if(!valueFilesFilesItem["EXIF"].isNull()) + filesObject.eXIF = valueFilesFilesItem["EXIF"].asString(); + if(!valueFilesFilesItem["VideoWidth"].isNull()) + filesObject.videoWidth = std::stol(valueFilesFilesItem["VideoWidth"].asString()); + if(!valueFilesFilesItem["VideoHeight"].isNull()) + filesObject.videoHeight = std::stol(valueFilesFilesItem["VideoHeight"].asString()); + if(!valueFilesFilesItem["Artist"].isNull()) + filesObject.artist = valueFilesFilesItem["Artist"].asString(); + if(!valueFilesFilesItem["AlbumArtist"].isNull()) + filesObject.albumArtist = valueFilesFilesItem["AlbumArtist"].asString(); + if(!valueFilesFilesItem["Composer"].isNull()) + filesObject.composer = valueFilesFilesItem["Composer"].asString(); + if(!valueFilesFilesItem["Performer"].isNull()) + filesObject.performer = valueFilesFilesItem["Performer"].asString(); + if(!valueFilesFilesItem["Language"].isNull()) + filesObject.language = valueFilesFilesItem["Language"].asString(); + if(!valueFilesFilesItem["Album"].isNull()) + filesObject.album = valueFilesFilesItem["Album"].asString(); + if(!valueFilesFilesItem["DocumentLanguage"].isNull()) + filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); + if(!valueFilesFilesItem["PageCount"].isNull()) + filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); + if(!valueFilesFilesItem["DocumentContent"].isNull()) + filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["ETag"].isNull()) + filesObject.eTag = valueFilesFilesItem["ETag"].asString(); + if(!valueFilesFilesItem["CacheControl"].isNull()) + filesObject.cacheControl = valueFilesFilesItem["CacheControl"].asString(); + if(!valueFilesFilesItem["ContentDisposition"].isNull()) + filesObject.contentDisposition = valueFilesFilesItem["ContentDisposition"].asString(); + if(!valueFilesFilesItem["ContentEncoding"].isNull()) + filesObject.contentEncoding = valueFilesFilesItem["ContentEncoding"].asString(); + if(!valueFilesFilesItem["ContentLanguage"].isNull()) + filesObject.contentLanguage = valueFilesFilesItem["ContentLanguage"].asString(); + if(!valueFilesFilesItem["AccessControlAllowOrigin"].isNull()) + filesObject.accessControlAllowOrigin = valueFilesFilesItem["AccessControlAllowOrigin"].asString(); + if(!valueFilesFilesItem["AccessControlRequestMethod"].isNull()) + filesObject.accessControlRequestMethod = valueFilesFilesItem["AccessControlRequestMethod"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].isNull()) + filesObject.serverSideEncryptionCustomerAlgorithm = valueFilesFilesItem["ServerSideEncryptionCustomerAlgorithm"].asString(); + if(!valueFilesFilesItem["ServerSideEncryption"].isNull()) + filesObject.serverSideEncryption = valueFilesFilesItem["ServerSideEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideDataEncryption"].isNull()) + filesObject.serverSideDataEncryption = valueFilesFilesItem["ServerSideDataEncryption"].asString(); + if(!valueFilesFilesItem["ServerSideEncryptionKeyId"].isNull()) + filesObject.serverSideEncryptionKeyId = valueFilesFilesItem["ServerSideEncryptionKeyId"].asString(); + if(!valueFilesFilesItem["OSSStorageClass"].isNull()) + filesObject.oSSStorageClass = valueFilesFilesItem["OSSStorageClass"].asString(); + if(!valueFilesFilesItem["OSSCRC64"].isNull()) + filesObject.oSSCRC64 = valueFilesFilesItem["OSSCRC64"].asString(); + if(!valueFilesFilesItem["ObjectACL"].isNull()) + filesObject.objectACL = valueFilesFilesItem["ObjectACL"].asString(); + if(!valueFilesFilesItem["ContentMd5"].isNull()) + filesObject.contentMd5 = valueFilesFilesItem["ContentMd5"].asString(); + if(!valueFilesFilesItem["OSSUserMeta"].isNull()) + filesObject.oSSUserMeta = valueFilesFilesItem["OSSUserMeta"].asString(); + if(!valueFilesFilesItem["OSSTaggingCount"].isNull()) + filesObject.oSSTaggingCount = std::stol(valueFilesFilesItem["OSSTaggingCount"].asString()); + if(!valueFilesFilesItem["OSSTagging"].isNull()) + filesObject.oSSTagging = valueFilesFilesItem["OSSTagging"].asString(); + if(!valueFilesFilesItem["OSSExpiration"].isNull()) + filesObject.oSSExpiration = valueFilesFilesItem["OSSExpiration"].asString(); + if(!valueFilesFilesItem["OSSVersionId"].isNull()) + filesObject.oSSVersionId = valueFilesFilesItem["OSSVersionId"].asString(); + if(!valueFilesFilesItem["OSSDeleteMarker"].isNull()) + filesObject.oSSDeleteMarker = valueFilesFilesItem["OSSDeleteMarker"].asString(); + if(!valueFilesFilesItem["OSSObjectType"].isNull()) + filesObject.oSSObjectType = valueFilesFilesItem["OSSObjectType"].asString(); + if(!valueFilesFilesItem["CustomId"].isNull()) + filesObject.customId = valueFilesFilesItem["CustomId"].asString(); + if(!valueFilesFilesItem["CustomLabels"].isNull()) + filesObject.customLabels = valueFilesFilesItem["CustomLabels"].asString(); + if(!valueFilesFilesItem["StreamCount"].isNull()) + filesObject.streamCount = std::stol(valueFilesFilesItem["StreamCount"].asString()); + if(!valueFilesFilesItem["ProgramCount"].isNull()) + filesObject.programCount = std::stol(valueFilesFilesItem["ProgramCount"].asString()); + if(!valueFilesFilesItem["FormatName"].isNull()) + filesObject.formatName = valueFilesFilesItem["FormatName"].asString(); + if(!valueFilesFilesItem["FormatLongName"].isNull()) + filesObject.formatLongName = valueFilesFilesItem["FormatLongName"].asString(); + if(!valueFilesFilesItem["StartTime"].isNull()) + filesObject.startTime = valueFilesFilesItem["StartTime"].asString(); + if(!valueFilesFilesItem["Bitrate"].isNull()) + filesObject.bitrate = std::stol(valueFilesFilesItem["Bitrate"].asString()); + if(!valueFilesFilesItem["Duration"].isNull()) + filesObject.duration = valueFilesFilesItem["Duration"].asString(); + auto allAddressesNode = valueFilesFilesItem["Addresses"]["AddressesItem"]; + for (auto valueFilesFilesItemAddressesAddressesItem : allAddressesNode) + { + FilesItem::AddressesItem addressesObject; + if(!valueFilesFilesItemAddressesAddressesItem["Language"].isNull()) + addressesObject.language = valueFilesFilesItemAddressesAddressesItem["Language"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["AddressLine"].isNull()) + addressesObject.addressLine = valueFilesFilesItemAddressesAddressesItem["AddressLine"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Country"].isNull()) + addressesObject.country = valueFilesFilesItemAddressesAddressesItem["Country"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Province"].isNull()) + addressesObject.province = valueFilesFilesItemAddressesAddressesItem["Province"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["City"].isNull()) + addressesObject.city = valueFilesFilesItemAddressesAddressesItem["City"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["District"].isNull()) + addressesObject.district = valueFilesFilesItemAddressesAddressesItem["District"].asString(); + if(!valueFilesFilesItemAddressesAddressesItem["Township"].isNull()) + addressesObject.township = valueFilesFilesItemAddressesAddressesItem["Township"].asString(); + filesObject.addresses.push_back(addressesObject); + } + auto allFiguresNode = valueFilesFilesItem["Figures"]["FiguresItem"]; + for (auto valueFilesFilesItemFiguresFiguresItem : allFiguresNode) + { + FilesItem::FiguresItem figuresObject; + if(!valueFilesFilesItemFiguresFiguresItem["FigureId"].isNull()) + figuresObject.figureId = valueFilesFilesItemFiguresFiguresItem["FigureId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].isNull()) + figuresObject.figureConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].isNull()) + figuresObject.figureClusterId = valueFilesFilesItemFiguresFiguresItem["FigureClusterId"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].isNull()) + figuresObject.figureClusterConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["FigureClusterConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FigureType"].isNull()) + figuresObject.figureType = valueFilesFilesItemFiguresFiguresItem["FigureType"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["Age"].isNull()) + figuresObject.age = std::stol(valueFilesFilesItemFiguresFiguresItem["Age"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["AgeSD"].isNull()) + figuresObject.ageSD = std::stof(valueFilesFilesItemFiguresFiguresItem["AgeSD"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Gender"].isNull()) + figuresObject.gender = valueFilesFilesItemFiguresFiguresItem["Gender"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].isNull()) + figuresObject.genderConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GenderConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Emotion"].isNull()) + figuresObject.emotion = valueFilesFilesItemFiguresFiguresItem["Emotion"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].isNull()) + figuresObject.emotionConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["EmotionConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["FaceQuality"].isNull()) + figuresObject.faceQuality = std::stof(valueFilesFilesItemFiguresFiguresItem["FaceQuality"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mouth"].isNull()) + figuresObject.mouth = valueFilesFilesItemFiguresFiguresItem["Mouth"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].isNull()) + figuresObject.mouthConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MouthConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Beard"].isNull()) + figuresObject.beard = valueFilesFilesItemFiguresFiguresItem["Beard"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].isNull()) + figuresObject.beardConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["BeardConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Hat"].isNull()) + figuresObject.hat = valueFilesFilesItemFiguresFiguresItem["Hat"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["HatConfidence"].isNull()) + figuresObject.hatConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["HatConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Mask"].isNull()) + figuresObject.mask = valueFilesFilesItemFiguresFiguresItem["Mask"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].isNull()) + figuresObject.maskConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["MaskConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Glasses"].isNull()) + figuresObject.glasses = valueFilesFilesItemFiguresFiguresItem["Glasses"].asString(); + if(!valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].isNull()) + figuresObject.glassesConfidence = std::stof(valueFilesFilesItemFiguresFiguresItem["GlassesConfidence"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Sharpness"].isNull()) + figuresObject.sharpness = std::stof(valueFilesFilesItemFiguresFiguresItem["Sharpness"].asString()); + if(!valueFilesFilesItemFiguresFiguresItem["Attractive"].isNull()) + figuresObject.attractive = std::stof(valueFilesFilesItemFiguresFiguresItem["Attractive"].asString()); + auto boundaryNode = value["Boundary"]; + if(!boundaryNode["Width"].isNull()) + figuresObject.boundary.width = std::stol(boundaryNode["Width"].asString()); + if(!boundaryNode["Height"].isNull()) + figuresObject.boundary.height = std::stol(boundaryNode["Height"].asString()); + if(!boundaryNode["Left"].isNull()) + figuresObject.boundary.left = std::stol(boundaryNode["Left"].asString()); + if(!boundaryNode["Top"].isNull()) + figuresObject.boundary.top = std::stol(boundaryNode["Top"].asString()); + auto headPoseNode = value["HeadPose"]; + if(!headPoseNode["Pitch"].isNull()) + figuresObject.headPose.pitch = std::stof(headPoseNode["Pitch"].asString()); + if(!headPoseNode["Roll"].isNull()) + figuresObject.headPose.roll = std::stof(headPoseNode["Roll"].asString()); + if(!headPoseNode["Yaw"].isNull()) + figuresObject.headPose.yaw = std::stof(headPoseNode["Yaw"].asString()); + filesObject.figures.push_back(figuresObject); + } + auto allLabelsNode = valueFilesFilesItem["Labels"]["LabelsItem"]; + for (auto valueFilesFilesItemLabelsLabelsItem : allLabelsNode) + { + FilesItem::LabelsItem labelsObject; + if(!valueFilesFilesItemLabelsLabelsItem["Language"].isNull()) + labelsObject.language = valueFilesFilesItemLabelsLabelsItem["Language"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelName"].isNull()) + labelsObject.labelName = valueFilesFilesItemLabelsLabelsItem["LabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["LabelLevel"].isNull()) + labelsObject.labelLevel = std::stol(valueFilesFilesItemLabelsLabelsItem["LabelLevel"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].isNull()) + labelsObject.labelConfidence = std::stof(valueFilesFilesItemLabelsLabelsItem["LabelConfidence"].asString()); + if(!valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].isNull()) + labelsObject.parentLabelName = valueFilesFilesItemLabelsLabelsItem["ParentLabelName"].asString(); + if(!valueFilesFilesItemLabelsLabelsItem["CentricScore"].isNull()) + labelsObject.centricScore = std::stof(valueFilesFilesItemLabelsLabelsItem["CentricScore"].asString()); + filesObject.labels.push_back(labelsObject); + } + auto allCroppingSuggestionsNode = valueFilesFilesItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestionsNode) + { + FilesItem::CroppingSuggestionsItem croppingSuggestionsObject; + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestionsObject.aspectRatio = valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestionsObject.confidence = std::stof(valueFilesFilesItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary1Node = value["Boundary"]; + if(!boundary1Node["Width"].isNull()) + croppingSuggestionsObject.boundary1.width = std::stol(boundary1Node["Width"].asString()); + if(!boundary1Node["Height"].isNull()) + croppingSuggestionsObject.boundary1.height = std::stol(boundary1Node["Height"].asString()); + if(!boundary1Node["Left"].isNull()) + croppingSuggestionsObject.boundary1.left = std::stol(boundary1Node["Left"].asString()); + if(!boundary1Node["Top"].isNull()) + croppingSuggestionsObject.boundary1.top = std::stol(boundary1Node["Top"].asString()); + filesObject.croppingSuggestions.push_back(croppingSuggestionsObject); + } + auto allOCRContentsNode = valueFilesFilesItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemOCRContentsOCRContentsItem : allOCRContentsNode) + { + FilesItem::OCRContentsItem oCRContentsObject; + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContentsObject.language = valueFilesFilesItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContentsObject.contents = valueFilesFilesItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContentsObject.confidence = std::stof(valueFilesFilesItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary2Node = value["Boundary"]; + if(!boundary2Node["Width"].isNull()) + oCRContentsObject.boundary2.width = std::stol(boundary2Node["Width"].asString()); + if(!boundary2Node["Height"].isNull()) + oCRContentsObject.boundary2.height = std::stol(boundary2Node["Height"].asString()); + if(!boundary2Node["Left"].isNull()) + oCRContentsObject.boundary2.left = std::stol(boundary2Node["Left"].asString()); + if(!boundary2Node["Top"].isNull()) + oCRContentsObject.boundary2.top = std::stol(boundary2Node["Top"].asString()); + filesObject.oCRContents.push_back(oCRContentsObject); + } + auto allVideoStreamsNode = valueFilesFilesItem["VideoStreams"]["VideoStreamsItem"]; + for (auto valueFilesFilesItemVideoStreamsVideoStreamsItem : allVideoStreamsNode) + { + FilesItem::VideoStreamsItem videoStreamsObject; + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].isNull()) + videoStreamsObject.index = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Index"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].isNull()) + videoStreamsObject.language = valueFilesFilesItemVideoStreamsVideoStreamsItem["Language"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].isNull()) + videoStreamsObject.codecName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].isNull()) + videoStreamsObject.codecLongName = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].isNull()) + videoStreamsObject.profile = valueFilesFilesItemVideoStreamsVideoStreamsItem["Profile"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].isNull()) + videoStreamsObject.codecTimeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].isNull()) + videoStreamsObject.codecTagString = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].isNull()) + videoStreamsObject.codecTag = valueFilesFilesItemVideoStreamsVideoStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].isNull()) + videoStreamsObject.width = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Width"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].isNull()) + videoStreamsObject.height = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Height"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].isNull()) + videoStreamsObject.hasBFrames = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["HasBFrames"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].isNull()) + videoStreamsObject.sampleAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["SampleAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].isNull()) + videoStreamsObject.displayAspectRatio = valueFilesFilesItemVideoStreamsVideoStreamsItem["DisplayAspectRatio"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].isNull()) + videoStreamsObject.pixelFormat = valueFilesFilesItemVideoStreamsVideoStreamsItem["PixelFormat"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].isNull()) + videoStreamsObject.level = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Level"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].isNull()) + videoStreamsObject.frameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].isNull()) + videoStreamsObject.averageFrameRate = valueFilesFilesItemVideoStreamsVideoStreamsItem["AverageFrameRate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].isNull()) + videoStreamsObject.timeBase = valueFilesFilesItemVideoStreamsVideoStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].isNull()) + videoStreamsObject.startTime = valueFilesFilesItemVideoStreamsVideoStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].isNull()) + videoStreamsObject.duration = valueFilesFilesItemVideoStreamsVideoStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].isNull()) + videoStreamsObject.bitrate = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].isNull()) + videoStreamsObject.frameCount = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].isNull()) + videoStreamsObject.rotate = valueFilesFilesItemVideoStreamsVideoStreamsItem["Rotate"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].isNull()) + videoStreamsObject.bitDepth = std::stol(valueFilesFilesItemVideoStreamsVideoStreamsItem["BitDepth"].asString()); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].isNull()) + videoStreamsObject.colorSpace = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorSpace"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].isNull()) + videoStreamsObject.colorRange = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorRange"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].isNull()) + videoStreamsObject.colorTransfer = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorTransfer"].asString(); + if(!valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].isNull()) + videoStreamsObject.colorPrimaries = valueFilesFilesItemVideoStreamsVideoStreamsItem["ColorPrimaries"].asString(); + filesObject.videoStreams.push_back(videoStreamsObject); + } + auto allSubtitlesNode = valueFilesFilesItem["Subtitles"]["SubtitlesItem"]; + for (auto valueFilesFilesItemSubtitlesSubtitlesItem : allSubtitlesNode) + { + FilesItem::SubtitlesItem subtitlesObject; + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Index"].isNull()) + subtitlesObject.index = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Index"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Language"].isNull()) + subtitlesObject.language = valueFilesFilesItemSubtitlesSubtitlesItem["Language"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].isNull()) + subtitlesObject.codecName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].isNull()) + subtitlesObject.codecLongName = valueFilesFilesItemSubtitlesSubtitlesItem["CodecLongName"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].isNull()) + subtitlesObject.codecTagString = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTagString"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].isNull()) + subtitlesObject.codecTag = valueFilesFilesItemSubtitlesSubtitlesItem["CodecTag"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].isNull()) + subtitlesObject.startTime = valueFilesFilesItemSubtitlesSubtitlesItem["StartTime"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].isNull()) + subtitlesObject.duration = valueFilesFilesItemSubtitlesSubtitlesItem["Duration"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].isNull()) + subtitlesObject.bitrate = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Bitrate"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Content"].isNull()) + subtitlesObject.content = valueFilesFilesItemSubtitlesSubtitlesItem["Content"].asString(); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Width"].isNull()) + subtitlesObject.width = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Width"].asString()); + if(!valueFilesFilesItemSubtitlesSubtitlesItem["Height"].isNull()) + subtitlesObject.height = std::stol(valueFilesFilesItemSubtitlesSubtitlesItem["Height"].asString()); + filesObject.subtitles.push_back(subtitlesObject); + } + auto allAudioStreamsNode = valueFilesFilesItem["AudioStreams"]["AudioStreamsItem"]; + for (auto valueFilesFilesItemAudioStreamsAudioStreamsItem : allAudioStreamsNode) + { + FilesItem::AudioStreamsItem audioStreamsObject; + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].isNull()) + audioStreamsObject.index = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Index"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].isNull()) + audioStreamsObject.language = valueFilesFilesItemAudioStreamsAudioStreamsItem["Language"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].isNull()) + audioStreamsObject.codecName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].isNull()) + audioStreamsObject.codecLongName = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecLongName"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].isNull()) + audioStreamsObject.codecTimeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].isNull()) + audioStreamsObject.codecTagString = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTagString"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].isNull()) + audioStreamsObject.codecTag = valueFilesFilesItemAudioStreamsAudioStreamsItem["CodecTag"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].isNull()) + audioStreamsObject.timeBase = valueFilesFilesItemAudioStreamsAudioStreamsItem["TimeBase"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].isNull()) + audioStreamsObject.startTime = valueFilesFilesItemAudioStreamsAudioStreamsItem["StartTime"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].isNull()) + audioStreamsObject.duration = valueFilesFilesItemAudioStreamsAudioStreamsItem["Duration"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].isNull()) + audioStreamsObject.bitrate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Bitrate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].isNull()) + audioStreamsObject.frameCount = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["FrameCount"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].isNull()) + audioStreamsObject.lyric = valueFilesFilesItemAudioStreamsAudioStreamsItem["Lyric"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].isNull()) + audioStreamsObject.sampleFormat = valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleFormat"].asString(); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].isNull()) + audioStreamsObject.sampleRate = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["SampleRate"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].isNull()) + audioStreamsObject.channels = std::stol(valueFilesFilesItemAudioStreamsAudioStreamsItem["Channels"].asString()); + if(!valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].isNull()) + audioStreamsObject.channelLayout = valueFilesFilesItemAudioStreamsAudioStreamsItem["ChannelLayout"].asString(); + filesObject.audioStreams.push_back(audioStreamsObject); + } + auto allAudioCoversNode = valueFilesFilesItem["AudioCovers"]["AudioCoversItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItem : allAudioCoversNode) + { + FilesItem::AudioCoversItem audioCoversObject; + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].isNull()) + audioCoversObject.imageWidth = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageWidth"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].isNull()) + audioCoversObject.imageHeight = std::stol(valueFilesFilesItemAudioCoversAudioCoversItem["ImageHeight"].asString()); + if(!valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].isNull()) + audioCoversObject.eXIF = valueFilesFilesItemAudioCoversAudioCoversItem["EXIF"].asString(); + auto allCroppingSuggestions4Node = valueFilesFilesItemAudioCoversAudioCoversItem["CroppingSuggestions"]["CroppingSuggestionsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem : allCroppingSuggestions4Node) + { + FilesItem::AudioCoversItem::CroppingSuggestionsItem6 croppingSuggestions4Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].isNull()) + croppingSuggestions4Object.aspectRatio = valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["AspectRatio"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].isNull()) + croppingSuggestions4Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemCroppingSuggestionsCroppingSuggestionsItem["Confidence"].asString()); + auto boundary7Node = value["Boundary"]; + if(!boundary7Node["Width"].isNull()) + croppingSuggestions4Object.boundary7.width = std::stol(boundary7Node["Width"].asString()); + if(!boundary7Node["Height"].isNull()) + croppingSuggestions4Object.boundary7.height = std::stol(boundary7Node["Height"].asString()); + if(!boundary7Node["Left"].isNull()) + croppingSuggestions4Object.boundary7.left = std::stol(boundary7Node["Left"].asString()); + if(!boundary7Node["Top"].isNull()) + croppingSuggestions4Object.boundary7.top = std::stol(boundary7Node["Top"].asString()); + audioCoversObject.croppingSuggestions4.push_back(croppingSuggestions4Object); + } + auto allOCRContents5Node = valueFilesFilesItemAudioCoversAudioCoversItem["OCRContents"]["OCRContentsItem"]; + for (auto valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem : allOCRContents5Node) + { + FilesItem::AudioCoversItem::OCRContentsItem8 oCRContents5Object; + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].isNull()) + oCRContents5Object.language = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Language"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].isNull()) + oCRContents5Object.contents = valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Contents"].asString(); + if(!valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].isNull()) + oCRContents5Object.confidence = std::stof(valueFilesFilesItemAudioCoversAudioCoversItemOCRContentsOCRContentsItem["Confidence"].asString()); + auto boundary9Node = value["Boundary"]; + if(!boundary9Node["Width"].isNull()) + oCRContents5Object.boundary9.width = std::stol(boundary9Node["Width"].asString()); + if(!boundary9Node["Height"].isNull()) + oCRContents5Object.boundary9.height = std::stol(boundary9Node["Height"].asString()); + if(!boundary9Node["Left"].isNull()) + oCRContents5Object.boundary9.left = std::stol(boundary9Node["Left"].asString()); + if(!boundary9Node["Top"].isNull()) + oCRContents5Object.boundary9.top = std::stol(boundary9Node["Top"].asString()); + audioCoversObject.oCRContents5.push_back(oCRContents5Object); + } + auto imageScore3Node = value["ImageScore"]; + if(!imageScore3Node["OverallQualityScore"].isNull()) + audioCoversObject.imageScore3.overallQualityScore = std::stof(imageScore3Node["OverallQualityScore"].asString()); + filesObject.audioCovers.push_back(audioCoversObject); + } + auto imageScoreNode = value["ImageScore"]; + if(!imageScoreNode["OverallQualityScore"].isNull()) + filesObject.imageScore.overallQualityScore = std::stof(imageScoreNode["OverallQualityScore"].asString()); + files_.push_back(filesObject); + } + auto allAggregationsNode = value["Aggregations"]["AggregationsItem"]; + for (auto valueAggregationsAggregationsItem : allAggregationsNode) + { + AggregationsItem aggregationsObject; + if(!valueAggregationsAggregationsItem["Field"].isNull()) + aggregationsObject.field = valueAggregationsAggregationsItem["Field"].asString(); + if(!valueAggregationsAggregationsItem["Operation"].isNull()) + aggregationsObject.operation = valueAggregationsAggregationsItem["Operation"].asString(); + if(!valueAggregationsAggregationsItem["Value"].isNull()) + aggregationsObject.value = valueAggregationsAggregationsItem["Value"].asString(); + auto allGroupsNode = valueAggregationsAggregationsItem["Groups"]["GroupsItem"]; + for (auto valueAggregationsAggregationsItemGroupsGroupsItem : allGroupsNode) + { + AggregationsItem::GroupsItem groupsObject; + if(!valueAggregationsAggregationsItemGroupsGroupsItem["Value"].isNull()) + groupsObject.value = valueAggregationsAggregationsItemGroupsGroupsItem["Value"].asString(); + if(!valueAggregationsAggregationsItemGroupsGroupsItem["Count"].isNull()) + groupsObject.count = std::stol(valueAggregationsAggregationsItemGroupsGroupsItem["Count"].asString()); + aggregationsObject.groups.push_back(groupsObject); + } + aggregations_.push_back(aggregationsObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string SimpleQueryResult::getNextToken()const +{ + return nextToken_; +} + +std::vector SimpleQueryResult::getAggregations()const +{ + return aggregations_; +} + +std::vector SimpleQueryResult::getFiles()const +{ + return files_; +} + diff --git a/imm/src/model/StopBindingRequest.cc b/imm/src/model/StopBindingRequest.cc new file mode 100644 index 000000000..007315296 --- /dev/null +++ b/imm/src/model/StopBindingRequest.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::StopBindingRequest; + +StopBindingRequest::StopBindingRequest() + : RpcServiceRequest("imm", "2020-09-30", "StopBinding") { + setMethod(HttpRequest::Method::Post); +} + +StopBindingRequest::~StopBindingRequest() {} + +std::string StopBindingRequest::getReason() const { + return reason_; +} + +void StopBindingRequest::setReason(const std::string &reason) { + reason_ = reason; + setParameter(std::string("Reason"), reason); +} + +std::string StopBindingRequest::getDatasetName() const { + return datasetName_; +} + +void StopBindingRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +std::string StopBindingRequest::getProjectName() const { + return projectName_; +} + +void StopBindingRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +std::string StopBindingRequest::getURI() const { + return uRI_; +} + +void StopBindingRequest::setURI(const std::string &uRI) { + uRI_ = uRI; + setParameter(std::string("URI"), uRI); +} + diff --git a/imm/src/model/StopBindingResult.cc b/imm/src/model/StopBindingResult.cc new file mode 100644 index 000000000..74b57ddfd --- /dev/null +++ b/imm/src/model/StopBindingResult.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; + +StopBindingResult::StopBindingResult() : + ServiceResult() +{} + +StopBindingResult::StopBindingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopBindingResult::~StopBindingResult() +{} + +void StopBindingResult::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/UpdateDatasetRequest.cc b/imm/src/model/UpdateDatasetRequest.cc new file mode 100644 index 000000000..ff4f27261 --- /dev/null +++ b/imm/src/model/UpdateDatasetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::UpdateDatasetRequest; + +UpdateDatasetRequest::UpdateDatasetRequest() + : RpcServiceRequest("imm", "2020-09-30", "UpdateDataset") { + setMethod(HttpRequest::Method::Post); +} + +UpdateDatasetRequest::~UpdateDatasetRequest() {} + +long UpdateDatasetRequest::getDatasetMaxBindCount() const { + return datasetMaxBindCount_; +} + +void UpdateDatasetRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { + datasetMaxBindCount_ = datasetMaxBindCount; + setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); +} + +std::string UpdateDatasetRequest::getDescription() const { + return description_; +} + +void UpdateDatasetRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +long UpdateDatasetRequest::getDatasetMaxRelationCount() const { + return datasetMaxRelationCount_; +} + +void UpdateDatasetRequest::setDatasetMaxRelationCount(long datasetMaxRelationCount) { + datasetMaxRelationCount_ = datasetMaxRelationCount; + setParameter(std::string("DatasetMaxRelationCount"), std::to_string(datasetMaxRelationCount)); +} + +std::string UpdateDatasetRequest::getDatasetName() const { + return datasetName_; +} + +void UpdateDatasetRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = datasetName; + setParameter(std::string("DatasetName"), datasetName); +} + +long UpdateDatasetRequest::getDatasetMaxFileCount() const { + return datasetMaxFileCount_; +} + +void UpdateDatasetRequest::setDatasetMaxFileCount(long datasetMaxFileCount) { + datasetMaxFileCount_ = datasetMaxFileCount; + setParameter(std::string("DatasetMaxFileCount"), std::to_string(datasetMaxFileCount)); +} + +std::string UpdateDatasetRequest::getProjectName() const { + return projectName_; +} + +void UpdateDatasetRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +long UpdateDatasetRequest::getDatasetMaxEntityCount() const { + return datasetMaxEntityCount_; +} + +void UpdateDatasetRequest::setDatasetMaxEntityCount(long datasetMaxEntityCount) { + datasetMaxEntityCount_ = datasetMaxEntityCount; + setParameter(std::string("DatasetMaxEntityCount"), std::to_string(datasetMaxEntityCount)); +} + +std::string UpdateDatasetRequest::getTemplateId() const { + return templateId_; +} + +void UpdateDatasetRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +long UpdateDatasetRequest::getDatasetMaxTotalFileSize() const { + return datasetMaxTotalFileSize_; +} + +void UpdateDatasetRequest::setDatasetMaxTotalFileSize(long datasetMaxTotalFileSize) { + datasetMaxTotalFileSize_ = datasetMaxTotalFileSize; + setParameter(std::string("DatasetMaxTotalFileSize"), std::to_string(datasetMaxTotalFileSize)); +} + diff --git a/imm/src/model/UpdateDatasetResult.cc b/imm/src/model/UpdateDatasetResult.cc new file mode 100644 index 000000000..b509c6f1d --- /dev/null +++ b/imm/src/model/UpdateDatasetResult.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; + +UpdateDatasetResult::UpdateDatasetResult() : + ServiceResult() +{} + +UpdateDatasetResult::UpdateDatasetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDatasetResult::~UpdateDatasetResult() +{} + +void UpdateDatasetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto datasetNode = value["Dataset"]; + if(!datasetNode["ProjectName"].isNull()) + dataset_.projectName = datasetNode["ProjectName"].asString(); + if(!datasetNode["DatasetName"].isNull()) + dataset_.datasetName = datasetNode["DatasetName"].asString(); + if(!datasetNode["TemplateId"].isNull()) + dataset_.templateId = datasetNode["TemplateId"].asString(); + if(!datasetNode["CreateTime"].isNull()) + dataset_.createTime = datasetNode["CreateTime"].asString(); + if(!datasetNode["UpdateTime"].isNull()) + dataset_.updateTime = datasetNode["UpdateTime"].asString(); + if(!datasetNode["Description"].isNull()) + dataset_.description = datasetNode["Description"].asString(); + if(!datasetNode["DatasetMaxBindCount"].isNull()) + dataset_.datasetMaxBindCount = std::stol(datasetNode["DatasetMaxBindCount"].asString()); + if(!datasetNode["DatasetMaxFileCount"].isNull()) + dataset_.datasetMaxFileCount = std::stol(datasetNode["DatasetMaxFileCount"].asString()); + if(!datasetNode["DatasetMaxEntityCount"].isNull()) + dataset_.datasetMaxEntityCount = std::stol(datasetNode["DatasetMaxEntityCount"].asString()); + if(!datasetNode["DatasetMaxRelationCount"].isNull()) + dataset_.datasetMaxRelationCount = std::stol(datasetNode["DatasetMaxRelationCount"].asString()); + if(!datasetNode["DatasetMaxTotalFileSize"].isNull()) + dataset_.datasetMaxTotalFileSize = std::stol(datasetNode["DatasetMaxTotalFileSize"].asString()); + if(!datasetNode["BindCount"].isNull()) + dataset_.bindCount = std::stol(datasetNode["BindCount"].asString()); + if(!datasetNode["FileCount"].isNull()) + dataset_.fileCount = std::stol(datasetNode["FileCount"].asString()); + if(!datasetNode["TotalFileSize"].isNull()) + dataset_.totalFileSize = std::stol(datasetNode["TotalFileSize"].asString()); + +} + +UpdateDatasetResult::Dataset UpdateDatasetResult::getDataset()const +{ + return dataset_; +} + diff --git a/imm/src/model/UpdateFaceGroupRequest.cc b/imm/src/model/UpdateFaceGroupRequest.cc deleted file mode 100644 index c77b5ea7a..000000000 --- a/imm/src/model/UpdateFaceGroupRequest.cc +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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::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 deleted file mode 100644 index dffaa8a73..000000000 --- a/imm/src/model/UpdateFaceGroupResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..5550c61e8 --- /dev/null +++ b/imm/src/model/UpdateFigureClusterRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::UpdateFigureClusterRequest; + +UpdateFigureClusterRequest::UpdateFigureClusterRequest() + : RpcServiceRequest("imm", "2020-09-30", "UpdateFigureCluster") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void UpdateFigureClusterRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setParameter(std::string("ProjectName"), projectName); +} + +UpdateFigureClusterRequest::FigureCluster UpdateFigureClusterRequest::getFigureCluster() const { + return figureCluster_; +} + +void UpdateFigureClusterRequest::setFigureCluster(const UpdateFigureClusterRequest::FigureCluster &figureCluster) { + figureCluster_ = figureCluster; + for(int dep1 = 0; dep1 != figureCluster.cover.figures.size(); dep1++) { + setParameter(std::string("FigureCluster") + ".Cover.Figures." + std::to_string(dep1 + 1) + ".FigureId", figureCluster.cover.figures[dep1].figureId); + } + for(auto const &iter1 : figureCluster.customLabels) { + setParameter(std::string("FigureCluster") + ".CustomLabels." + iter1.first, iter1.second); + } + setParameter(std::string("FigureCluster") + ".Name", figureCluster.name); + setParameter(std::string("FigureCluster") + ".CustomId", figureCluster.customId); + setParameter(std::string("FigureCluster") + ".ObjectId", figureCluster.objectId); +} + diff --git a/imm/src/model/UpdateFigureClusterResult.cc b/imm/src/model/UpdateFigureClusterResult.cc new file mode 100644 index 000000000..ef855cbb6 --- /dev/null +++ b/imm/src/model/UpdateFigureClusterResult.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; + +UpdateFigureClusterResult::UpdateFigureClusterResult() : + ServiceResult() +{} + +UpdateFigureClusterResult::UpdateFigureClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFigureClusterResult::~UpdateFigureClusterResult() +{} + +void UpdateFigureClusterResult::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/UpdateFileMetaRequest.cc b/imm/src/model/UpdateFileMetaRequest.cc new file mode 100644 index 000000000..f59a67ae4 --- /dev/null +++ b/imm/src/model/UpdateFileMetaRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Imm::Model::UpdateFileMetaRequest; + +UpdateFileMetaRequest::UpdateFileMetaRequest() + : RpcServiceRequest("imm", "2020-09-30", "UpdateFileMeta") { + setMethod(HttpRequest::Method::Post); +} + +UpdateFileMetaRequest::~UpdateFileMetaRequest() {} + +UpdateFileMetaRequest::File UpdateFileMetaRequest::getFile() const { + return file_; +} + +void UpdateFileMetaRequest::setFile(const UpdateFileMetaRequest::File &file) { + file_ = file; + for(auto const &iter1 : file.customLabels) { + setParameter(std::string("File") + ".CustomLabels." + iter1.first, iter1.second); + } + for(int dep1 = 0; dep1 != file.figures.size(); dep1++) { + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureId", file.figures[dep1].figureId); + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureClusterId", file.figures[dep1].figureClusterId); + setParameter(std::string("File") + ".Figures." + std::to_string(dep1 + 1) + ".FigureType", file.figures[dep1].figureType); + } + setParameter(std::string("File") + ".OSSURI", file.oSSURI); + setParameter(std::string("File") + ".FileHash", file.fileHash); + setParameter(std::string("File") + ".URI", file.uRI); + setParameter(std::string("File") + ".CustomId", file.customId); + setParameter(std::string("File") + ".MediaType", file.mediaType); + setParameter(std::string("File") + ".ContentType", file.contentType); +} + +std::string UpdateFileMetaRequest::getDatasetName() const { + return datasetName_; +} + +void UpdateFileMetaRequest::setDatasetName(const std::string &datasetName) { + datasetName_ = 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/UpdateFileMetaResult.cc b/imm/src/model/UpdateFileMetaResult.cc new file mode 100644 index 000000000..f127e2701 --- /dev/null +++ b/imm/src/model/UpdateFileMetaResult.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; + +UpdateFileMetaResult::UpdateFileMetaResult() : + ServiceResult() +{} + +UpdateFileMetaResult::UpdateFileMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateFileMetaResult::~UpdateFileMetaResult() +{} + +void UpdateFileMetaResult::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/UpdateImageRequest.cc b/imm/src/model/UpdateImageRequest.cc deleted file mode 100644 index 3dd91eac1..000000000 --- a/imm/src/model/UpdateImageRequest.cc +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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 deleted file mode 100644 index d8f161c4f..000000000 --- a/imm/src/model/UpdateImageResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * 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 7d2c85501..780cd5fab 100644 --- a/imm/src/model/UpdateProjectRequest.cc +++ b/imm/src/model/UpdateProjectRequest.cc @@ -19,54 +19,117 @@ using AlibabaCloud::Imm::Model::UpdateProjectRequest; UpdateProjectRequest::UpdateProjectRequest() - : RpcServiceRequest("imm", "2017-09-06", "UpdateProject") { + : RpcServiceRequest("imm", "2020-09-30", "UpdateProject") { setMethod(HttpRequest::Method::Post); } UpdateProjectRequest::~UpdateProjectRequest() {} -std::string UpdateProjectRequest::getProject() const { - return project_; +long UpdateProjectRequest::getEngineConcurrency() const { + return engineConcurrency_; } -void UpdateProjectRequest::setProject(const std::string &project) { - project_ = project; - setParameter(std::string("Project"), project); +void UpdateProjectRequest::setEngineConcurrency(long engineConcurrency) { + engineConcurrency_ = engineConcurrency; + setParameter(std::string("EngineConcurrency"), std::to_string(engineConcurrency)); } -std::string UpdateProjectRequest::getNewBCTaskVersion() const { - return newBCTaskVersion_; +long UpdateProjectRequest::getDatasetMaxBindCount() const { + return datasetMaxBindCount_; } -void UpdateProjectRequest::setNewBCTaskVersion(const std::string &newBCTaskVersion) { - newBCTaskVersion_ = newBCTaskVersion; - setParameter(std::string("NewBCTaskVersion"), newBCTaskVersion); +void UpdateProjectRequest::setDatasetMaxBindCount(long datasetMaxBindCount) { + datasetMaxBindCount_ = datasetMaxBindCount; + setParameter(std::string("DatasetMaxBindCount"), std::to_string(datasetMaxBindCount)); } -std::string UpdateProjectRequest::getAccessKeyId() const { - return accessKeyId_; +std::string UpdateProjectRequest::getDescription() const { + return description_; } -void UpdateProjectRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void UpdateProjectRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -std::string UpdateProjectRequest::getNewServiceRole() const { - return newServiceRole_; +long UpdateProjectRequest::getProjectQueriesPerSecond() const { + return projectQueriesPerSecond_; } -void UpdateProjectRequest::setNewServiceRole(const std::string &newServiceRole) { - newServiceRole_ = newServiceRole; - setParameter(std::string("NewServiceRole"), newServiceRole); +void UpdateProjectRequest::setProjectQueriesPerSecond(long projectQueriesPerSecond) { + projectQueriesPerSecond_ = projectQueriesPerSecond; + setParameter(std::string("ProjectQueriesPerSecond"), std::to_string(projectQueriesPerSecond)); } -int UpdateProjectRequest::getNewCU() const { - return newCU_; +long UpdateProjectRequest::getDatasetMaxRelationCount() const { + return datasetMaxRelationCount_; } -void UpdateProjectRequest::setNewCU(int newCU) { - newCU_ = newCU; - setParameter(std::string("NewCU"), std::to_string(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); } diff --git a/imm/src/model/UpdateProjectResult.cc b/imm/src/model/UpdateProjectResult.cc index 42aa78457..48164f516 100644 --- a/imm/src/model/UpdateProjectResult.cc +++ b/imm/src/model/UpdateProjectResult.cc @@ -39,55 +39,46 @@ void UpdateProjectResult::parse(const std::string &payload) 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["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].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()); } -std::string UpdateProjectResult::getProject()const +UpdateProjectResult::Project 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 deleted file mode 100644 index 5c6e250b9..000000000 --- a/imm/src/model/UpdateSetRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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 deleted file mode 100644 index 517358938..000000000 --- a/imm/src/model/UpdateSetResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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 new file mode 100644 index 000000000..2f62d8807 --- /dev/null +++ b/imm/src/model/UpdateStoryRequest.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::UpdateStoryRequest; + +UpdateStoryRequest::UpdateStoryRequest() + : RpcServiceRequest("imm", "2020-09-30", "UpdateStory") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void UpdateStoryRequest::setCover(const UpdateStoryRequest::Cover &cover) { + 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_; +} + +void UpdateStoryRequest::setProjectName(const std::string &projectName) { + projectName_ = projectName; + setBodyParameter(std::string("ProjectName"), projectName); +} + +std::string UpdateStoryRequest::getCustomId() const { + return customId_; +} + +void UpdateStoryRequest::setCustomId(const std::string &customId) { + customId_ = customId; + setBodyParameter(std::string("CustomId"), customId); +} + +std::string UpdateStoryRequest::getObjectId() const { + return objectId_; +} + +void UpdateStoryRequest::setObjectId(const std::string &objectId) { + objectId_ = objectId; + setBodyParameter(std::string("ObjectId"), objectId); +} + +std::string UpdateStoryRequest::getStoryName() const { + return storyName_; +} + +void UpdateStoryRequest::setStoryName(const std::string &storyName) { + storyName_ = storyName; + setBodyParameter(std::string("StoryName"), storyName); +} + diff --git a/imm/src/model/UpdateStoryResult.cc b/imm/src/model/UpdateStoryResult.cc new file mode 100644 index 000000000..23465b233 --- /dev/null +++ b/imm/src/model/UpdateStoryResult.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; + +UpdateStoryResult::UpdateStoryResult() : + ServiceResult() +{} + +UpdateStoryResult::UpdateStoryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateStoryResult::~UpdateStoryResult() +{} + +void UpdateStoryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +