From 5793cc890bb2adb36b96084221655eac13c67cd1 Mon Sep 17 00:00:00 2001 From: fenglc Date: Mon, 5 Feb 2018 14:59:15 +0800 Subject: [PATCH] update CloudPhoto module --- cloudphoto/CMakeLists.txt | 510 +++++++++--------- .../cloudphoto/CloudPhotoClient.h | 362 +++++++------ .../cloudphoto/CloudPhotoRequest.h | 39 -- .../cloudphoto/model/ActivatePhotosRequest.h | 5 +- .../cloudphoto/model/ActivatePhotosResult.h | 4 - .../cloudphoto/model/AddAlbumPhotosRequest.h | 5 +- .../cloudphoto/model/AddAlbumPhotosResult.h | 4 - .../cloudphoto/model/CreateAlbumRequest.h | 5 +- .../cloudphoto/model/CreateAlbumResult.h | 4 - .../cloudphoto/model/CreatePhotoRequest.h | 5 +- .../cloudphoto/model/CreatePhotoResult.h | 4 - .../model/CreatePhotoStoreRequest.h | 5 +- .../cloudphoto/model/CreatePhotoStoreResult.h | 3 - .../model/CreateTransactionRequest.h | 5 +- .../model/CreateTransactionResult.h | 4 - .../cloudphoto/model/DeleteAlbumsRequest.h | 5 +- .../cloudphoto/model/DeleteAlbumsResult.h | 4 - .../cloudphoto/model/DeleteFacesRequest.h | 5 +- .../cloudphoto/model/DeleteFacesResult.h | 4 - .../model/DeletePhotoStoreRequest.h | 5 +- .../cloudphoto/model/DeletePhotoStoreResult.h | 3 - .../cloudphoto/model/DeletePhotosRequest.h | 5 +- .../cloudphoto/model/DeletePhotosResult.h | 4 - .../cloudphoto/model/EditPhotoStoreRequest.h | 5 +- .../cloudphoto/model/EditPhotoStoreResult.h | 3 - .../cloudphoto/model/EditPhotosRequest.h | 5 +- .../cloudphoto/model/EditPhotosResult.h | 4 - .../cloudphoto/model/GetDownloadUrlRequest.h | 5 +- .../cloudphoto/model/GetDownloadUrlResult.h | 4 - .../cloudphoto/model/GetDownloadUrlsRequest.h | 5 +- .../cloudphoto/model/GetDownloadUrlsResult.h | 4 - .../model/GetFramedPhotoUrlsRequest.h | 5 +- .../model/GetFramedPhotoUrlsResult.h | 4 - .../cloudphoto/model/GetLibraryRequest.h | 5 +- .../cloudphoto/model/GetLibraryResult.h | 4 - .../cloudphoto/model/GetPhotoStoreRequest.h | 5 +- .../cloudphoto/model/GetPhotoStoreResult.h | 4 - .../cloudphoto/model/GetPhotosByMd5sRequest.h | 5 +- .../cloudphoto/model/GetPhotosByMd5sResult.h | 4 - .../cloudphoto/model/GetPhotosRequest.h | 5 +- .../cloudphoto/model/GetPhotosResult.h | 4 - .../model/GetPrivateAccessUrlsRequest.h | 5 +- .../model/GetPrivateAccessUrlsResult.h | 4 - .../model/GetPublicAccessUrlsRequest.h | 5 +- .../model/GetPublicAccessUrlsResult.h | 4 - .../cloudphoto/model/GetQuotaRequest.h | 5 +- .../cloudphoto/model/GetQuotaResult.h | 4 - .../model/GetSimilarPhotosRequest.h | 5 +- .../cloudphoto/model/GetSimilarPhotosResult.h | 4 - .../cloudphoto/model/GetThumbnailRequest.h | 5 +- .../cloudphoto/model/GetThumbnailResult.h | 4 - .../cloudphoto/model/GetThumbnailsRequest.h | 5 +- .../cloudphoto/model/GetThumbnailsResult.h | 4 - .../cloudphoto/model/GetVideoCoverRequest.h | 5 +- .../cloudphoto/model/GetVideoCoverResult.h | 4 - .../model/InactivatePhotosRequest.h | 5 +- .../cloudphoto/model/InactivatePhotosResult.h | 4 - .../cloudphoto/model/LikePhotoRequest.h | 5 +- .../cloudphoto/model/LikePhotoResult.h | 3 - .../cloudphoto/model/ListAlbumPhotosRequest.h | 5 +- .../cloudphoto/model/ListAlbumPhotosResult.h | 6 - .../cloudphoto/model/ListAlbumsRequest.h | 5 +- .../cloudphoto/model/ListAlbumsResult.h | 6 - .../cloudphoto/model/ListFacePhotosRequest.h | 5 +- .../cloudphoto/model/ListFacePhotosResult.h | 6 - .../cloudphoto/model/ListFacesRequest.h | 5 +- .../cloudphoto/model/ListFacesResult.h | 6 - .../model/ListMomentPhotosRequest.h | 5 +- .../cloudphoto/model/ListMomentPhotosResult.h | 6 - .../cloudphoto/model/ListMomentsRequest.h | 5 +- .../cloudphoto/model/ListMomentsResult.h | 6 - .../cloudphoto/model/ListPhotoFacesRequest.h | 5 +- .../cloudphoto/model/ListPhotoFacesResult.h | 4 - .../cloudphoto/model/ListPhotoStoresRequest.h | 5 +- .../cloudphoto/model/ListPhotoStoresResult.h | 4 - .../cloudphoto/model/ListPhotoTagsRequest.h | 5 +- .../cloudphoto/model/ListPhotoTagsResult.h | 4 - .../cloudphoto/model/ListPhotosRequest.h | 5 +- .../cloudphoto/model/ListPhotosResult.h | 6 - .../model/ListRegisteredTagsRequest.h | 5 +- .../model/ListRegisteredTagsResult.h | 4 - .../cloudphoto/model/ListTagPhotosRequest.h | 5 +- .../cloudphoto/model/ListTagPhotosResult.h | 6 - .../cloudphoto/model/ListTagsRequest.h | 5 +- .../cloudphoto/model/ListTagsResult.h | 4 - .../model/ListTimeLinePhotosRequest.h | 5 +- .../model/ListTimeLinePhotosResult.h | 5 - .../cloudphoto/model/ListTimeLinesRequest.h | 5 +- .../cloudphoto/model/ListTimeLinesResult.h | 5 - .../cloudphoto/model/MergeFacesRequest.h | 5 +- .../cloudphoto/model/MergeFacesResult.h | 4 - .../cloudphoto/model/MoveAlbumPhotosRequest.h | 5 +- .../cloudphoto/model/MoveAlbumPhotosResult.h | 4 - .../cloudphoto/model/MoveFacePhotosRequest.h | 5 +- .../cloudphoto/model/MoveFacePhotosResult.h | 4 - .../model/ReactivatePhotosRequest.h | 5 +- .../cloudphoto/model/ReactivatePhotosResult.h | 4 - .../cloudphoto/model/RegisterPhotoRequest.h | 5 +- .../cloudphoto/model/RegisterPhotoResult.h | 4 - .../cloudphoto/model/RegisterTagRequest.h | 5 +- .../cloudphoto/model/RegisterTagResult.h | 3 - .../model/RemoveAlbumPhotosRequest.h | 5 +- .../model/RemoveAlbumPhotosResult.h | 4 - .../model/RemoveFacePhotosRequest.h | 5 +- .../cloudphoto/model/RemoveFacePhotosResult.h | 4 - .../cloudphoto/model/RenameAlbumRequest.h | 5 +- .../cloudphoto/model/RenameAlbumResult.h | 3 - .../cloudphoto/model/RenameFaceRequest.h | 5 +- .../cloudphoto/model/RenameFaceResult.h | 3 - .../cloudphoto/model/SearchPhotosRequest.h | 5 +- .../cloudphoto/model/SearchPhotosResult.h | 5 - .../cloudphoto/model/SetAlbumCoverRequest.h | 5 +- .../cloudphoto/model/SetAlbumCoverResult.h | 3 - .../cloudphoto/model/SetFaceCoverRequest.h | 5 +- .../cloudphoto/model/SetFaceCoverResult.h | 3 - .../cloudphoto/model/SetMeRequest.h | 5 +- .../cloudphoto/model/SetMeResult.h | 3 - .../cloudphoto/model/SetQuotaRequest.h | 5 +- .../cloudphoto/model/SetQuotaResult.h | 3 - .../cloudphoto/model/TagPhotoRequest.h | 5 +- .../cloudphoto/model/TagPhotoResult.h | 3 - .../cloudphoto/model/ToggleFeaturesRequest.h | 5 +- .../cloudphoto/model/ToggleFeaturesResult.h | 3 - cloudphoto/src/CloudPhotoRequest.cc | 27 - cloudphoto/src/model/ActivatePhotosRequest.cc | 5 +- cloudphoto/src/model/ActivatePhotosResult.cc | 36 +- cloudphoto/src/model/AddAlbumPhotosRequest.cc | 5 +- cloudphoto/src/model/AddAlbumPhotosResult.cc | 36 +- cloudphoto/src/model/CreateAlbumRequest.cc | 5 +- cloudphoto/src/model/CreateAlbumResult.cc | 77 +-- cloudphoto/src/model/CreatePhotoRequest.cc | 5 +- cloudphoto/src/model/CreatePhotoResult.cc | 68 +-- .../src/model/CreatePhotoStoreRequest.cc | 5 +- .../src/model/CreatePhotoStoreResult.cc | 24 +- .../src/model/CreateTransactionRequest.cc | 5 +- .../src/model/CreateTransactionResult.cc | 47 +- cloudphoto/src/model/DeleteAlbumsRequest.cc | 5 +- cloudphoto/src/model/DeleteAlbumsResult.cc | 36 +- cloudphoto/src/model/DeleteFacesRequest.cc | 5 +- cloudphoto/src/model/DeleteFacesResult.cc | 36 +- .../src/model/DeletePhotoStoreRequest.cc | 5 +- .../src/model/DeletePhotoStoreResult.cc | 24 +- cloudphoto/src/model/DeletePhotosRequest.cc | 5 +- cloudphoto/src/model/DeletePhotosResult.cc | 36 +- cloudphoto/src/model/EditPhotoStoreRequest.cc | 5 +- cloudphoto/src/model/EditPhotoStoreResult.cc | 24 +- cloudphoto/src/model/EditPhotosRequest.cc | 5 +- cloudphoto/src/model/EditPhotosResult.cc | 36 +- cloudphoto/src/model/GetDownloadUrlRequest.cc | 5 +- cloudphoto/src/model/GetDownloadUrlResult.cc | 32 +- .../src/model/GetDownloadUrlsRequest.cc | 5 +- cloudphoto/src/model/GetDownloadUrlsResult.cc | 39 +- .../src/model/GetFramedPhotoUrlsRequest.cc | 5 +- .../src/model/GetFramedPhotoUrlsResult.cc | 39 +- cloudphoto/src/model/GetLibraryRequest.cc | 5 +- cloudphoto/src/model/GetLibraryResult.cc | 53 +- cloudphoto/src/model/GetPhotoStoreRequest.cc | 5 +- cloudphoto/src/model/GetPhotoStoreResult.cc | 62 ++- .../src/model/GetPhotosByMd5sRequest.cc | 5 +- cloudphoto/src/model/GetPhotosByMd5sResult.cc | 78 +-- cloudphoto/src/model/GetPhotosRequest.cc | 5 +- cloudphoto/src/model/GetPhotosResult.cc | 84 +-- .../src/model/GetPrivateAccessUrlsRequest.cc | 5 +- .../src/model/GetPrivateAccessUrlsResult.cc | 39 +- .../src/model/GetPublicAccessUrlsRequest.cc | 5 +- .../src/model/GetPublicAccessUrlsResult.cc | 39 +- cloudphoto/src/model/GetQuotaRequest.cc | 5 +- cloudphoto/src/model/GetQuotaResult.cc | 38 +- .../src/model/GetSimilarPhotosRequest.cc | 5 +- .../src/model/GetSimilarPhotosResult.cc | 84 +-- cloudphoto/src/model/GetThumbnailRequest.cc | 5 +- cloudphoto/src/model/GetThumbnailResult.cc | 32 +- cloudphoto/src/model/GetThumbnailsRequest.cc | 5 +- cloudphoto/src/model/GetThumbnailsResult.cc | 39 +- cloudphoto/src/model/GetVideoCoverRequest.cc | 5 +- cloudphoto/src/model/GetVideoCoverResult.cc | 32 +- .../src/model/InactivatePhotosRequest.cc | 5 +- .../src/model/InactivatePhotosResult.cc | 36 +- cloudphoto/src/model/LikePhotoRequest.cc | 5 +- cloudphoto/src/model/LikePhotoResult.cc | 24 +- .../src/model/ListAlbumPhotosRequest.cc | 5 +- cloudphoto/src/model/ListAlbumPhotosResult.cc | 49 +- cloudphoto/src/model/ListAlbumsRequest.cc | 5 +- cloudphoto/src/model/ListAlbumsResult.cc | 96 ++-- cloudphoto/src/model/ListFacePhotosRequest.cc | 5 +- cloudphoto/src/model/ListFacePhotosResult.cc | 49 +- cloudphoto/src/model/ListFacesRequest.cc | 5 +- cloudphoto/src/model/ListFacesResult.cc | 101 ++-- .../src/model/ListMomentPhotosRequest.cc | 5 +- .../src/model/ListMomentPhotosResult.cc | 49 +- cloudphoto/src/model/ListMomentsRequest.cc | 5 +- cloudphoto/src/model/ListMomentsResult.cc | 64 +-- cloudphoto/src/model/ListPhotoFacesRequest.cc | 5 +- cloudphoto/src/model/ListPhotoFacesResult.cc | 35 +- .../src/model/ListPhotoStoresRequest.cc | 5 +- cloudphoto/src/model/ListPhotoStoresResult.cc | 64 +-- cloudphoto/src/model/ListPhotoTagsRequest.cc | 5 +- cloudphoto/src/model/ListPhotoTagsResult.cc | 39 +- cloudphoto/src/model/ListPhotosRequest.cc | 5 +- cloudphoto/src/model/ListPhotosResult.cc | 97 ++-- .../src/model/ListRegisteredTagsRequest.cc | 5 +- .../src/model/ListRegisteredTagsResult.cc | 40 +- cloudphoto/src/model/ListTagPhotosRequest.cc | 5 +- cloudphoto/src/model/ListTagPhotosResult.cc | 49 +- cloudphoto/src/model/ListTagsRequest.cc | 5 +- cloudphoto/src/model/ListTagsResult.cc | 74 +-- .../src/model/ListTimeLinePhotosRequest.cc | 5 +- .../src/model/ListTimeLinePhotosResult.cc | 89 +-- cloudphoto/src/model/ListTimeLinesRequest.cc | 5 +- cloudphoto/src/model/ListTimeLinesResult.cc | 105 ++-- cloudphoto/src/model/MergeFacesRequest.cc | 5 +- cloudphoto/src/model/MergeFacesResult.cc | 36 +- .../src/model/MoveAlbumPhotosRequest.cc | 5 +- cloudphoto/src/model/MoveAlbumPhotosResult.cc | 36 +- cloudphoto/src/model/MoveFacePhotosRequest.cc | 5 +- cloudphoto/src/model/MoveFacePhotosResult.cc | 36 +- .../src/model/ReactivatePhotosRequest.cc | 5 +- .../src/model/ReactivatePhotosResult.cc | 36 +- cloudphoto/src/model/RegisterPhotoRequest.cc | 5 +- cloudphoto/src/model/RegisterPhotoResult.cc | 68 +-- cloudphoto/src/model/RegisterTagRequest.cc | 5 +- cloudphoto/src/model/RegisterTagResult.cc | 24 +- .../src/model/RemoveAlbumPhotosRequest.cc | 5 +- .../src/model/RemoveAlbumPhotosResult.cc | 36 +- .../src/model/RemoveFacePhotosRequest.cc | 5 +- .../src/model/RemoveFacePhotosResult.cc | 36 +- cloudphoto/src/model/RenameAlbumRequest.cc | 5 +- cloudphoto/src/model/RenameAlbumResult.cc | 24 +- cloudphoto/src/model/RenameFaceRequest.cc | 5 +- cloudphoto/src/model/RenameFaceResult.cc | 24 +- cloudphoto/src/model/SearchPhotosRequest.cc | 5 +- cloudphoto/src/model/SearchPhotosResult.cc | 83 +-- cloudphoto/src/model/SetAlbumCoverRequest.cc | 5 +- cloudphoto/src/model/SetAlbumCoverResult.cc | 24 +- cloudphoto/src/model/SetFaceCoverRequest.cc | 5 +- cloudphoto/src/model/SetFaceCoverResult.cc | 24 +- cloudphoto/src/model/SetMeRequest.cc | 5 +- cloudphoto/src/model/SetMeResult.cc | 24 +- cloudphoto/src/model/SetQuotaRequest.cc | 5 +- cloudphoto/src/model/SetQuotaResult.cc | 24 +- cloudphoto/src/model/TagPhotoRequest.cc | 5 +- cloudphoto/src/model/TagPhotoResult.cc | 24 +- cloudphoto/src/model/ToggleFeaturesRequest.cc | 5 +- cloudphoto/src/model/ToggleFeaturesResult.cc | 24 +- 244 files changed, 2021 insertions(+), 2576 deletions(-) delete mode 100644 cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoRequest.h delete mode 100644 cloudphoto/src/CloudPhotoRequest.cc diff --git a/cloudphoto/CMakeLists.txt b/cloudphoto/CMakeLists.txt index 438836a72..15aa2a52a 100644 --- a/cloudphoto/CMakeLists.txt +++ b/cloudphoto/CMakeLists.txt @@ -15,258 +15,260 @@ # set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) -set(cloudphoto_public_header - include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h - include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h - include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h - include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h - include/alibabacloud/cloudphoto/model/GetQuotaRequest.h - include/alibabacloud/cloudphoto/model/GetQuotaResult.h - include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h - include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h - include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h - include/alibabacloud/cloudphoto/model/DeleteFacesResult.h - include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h - include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h - include/alibabacloud/cloudphoto/model/ListFacesRequest.h - include/alibabacloud/cloudphoto/model/ListFacesResult.h - include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h - include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h - include/alibabacloud/cloudphoto/model/ListPhotosRequest.h - include/alibabacloud/cloudphoto/model/ListPhotosResult.h - include/alibabacloud/cloudphoto/model/RegisterTagRequest.h - include/alibabacloud/cloudphoto/model/RegisterTagResult.h - include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h - include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h - include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h - include/alibabacloud/cloudphoto/model/DeletePhotosResult.h - include/alibabacloud/cloudphoto/model/MergeFacesRequest.h - include/alibabacloud/cloudphoto/model/MergeFacesResult.h - include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h - include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h - include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h - include/alibabacloud/cloudphoto/model/CreateTransactionResult.h - include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h - include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h - include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h - include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h - include/alibabacloud/cloudphoto/model/TagPhotoRequest.h - include/alibabacloud/cloudphoto/model/TagPhotoResult.h - include/alibabacloud/cloudphoto/model/GetLibraryRequest.h - include/alibabacloud/cloudphoto/model/GetLibraryResult.h - include/alibabacloud/cloudphoto/model/SetQuotaRequest.h - include/alibabacloud/cloudphoto/model/SetQuotaResult.h - include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h - include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h - include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h - include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h - include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h - include/alibabacloud/cloudphoto/model/ListAlbumsResult.h - include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h - include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h - include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h - include/alibabacloud/cloudphoto/model/RenameAlbumResult.h - include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h - include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h - include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h - include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h - include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h - include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h - include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h - include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h - include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h - include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h - include/alibabacloud/cloudphoto/model/SetMeRequest.h - include/alibabacloud/cloudphoto/model/SetMeResult.h - include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h - include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h - include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h - include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h - include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h - include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h - include/alibabacloud/cloudphoto/model/GetPhotosRequest.h - include/alibabacloud/cloudphoto/model/GetPhotosResult.h - include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h - include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h - include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h - include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h - include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h - include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h - include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h - include/alibabacloud/cloudphoto/model/SearchPhotosResult.h - include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h - include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h - include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h - include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h - include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h - include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h - include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h - include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h - include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h - include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h - include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h - include/alibabacloud/cloudphoto/model/GetThumbnailResult.h - include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h - include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h - include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h - include/alibabacloud/cloudphoto/model/CreatePhotoResult.h - include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h - include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h - include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h - include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h - include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h - include/alibabacloud/cloudphoto/model/CreateAlbumResult.h - include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h - include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h - include/alibabacloud/cloudphoto/model/LikePhotoRequest.h - include/alibabacloud/cloudphoto/model/LikePhotoResult.h - include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h - include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h - include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h - include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h - include/alibabacloud/cloudphoto/model/EditPhotosRequest.h - include/alibabacloud/cloudphoto/model/EditPhotosResult.h - include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h - include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h - include/alibabacloud/cloudphoto/model/RenameFaceRequest.h - include/alibabacloud/cloudphoto/model/RenameFaceResult.h - include/alibabacloud/cloudphoto/model/ListMomentsRequest.h - include/alibabacloud/cloudphoto/model/ListMomentsResult.h - include/alibabacloud/cloudphoto/model/ListTagsRequest.h - include/alibabacloud/cloudphoto/model/ListTagsResult.h - include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h - include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h - include/alibabacloud/cloudphoto/CloudPhotoClient.h - include/alibabacloud/cloudphoto/CloudPhotoExport.h - include/alibabacloud/cloudphoto/CloudPhotoRequest.h - ) -set(cloudphoto_src - src/model/RemoveFacePhotosRequest.cc - src/model/RemoveFacePhotosResult.cc - src/model/ReactivatePhotosRequest.cc - src/model/ReactivatePhotosResult.cc - src/model/GetQuotaRequest.cc - src/model/GetQuotaResult.cc - src/model/GetThumbnailsRequest.cc - src/model/GetThumbnailsResult.cc - src/model/DeleteFacesRequest.cc - src/model/DeleteFacesResult.cc - src/model/AddAlbumPhotosRequest.cc - src/model/AddAlbumPhotosResult.cc - src/model/ListFacesRequest.cc - src/model/ListFacesResult.cc - src/model/MoveFacePhotosRequest.cc - src/model/MoveFacePhotosResult.cc - src/model/ListPhotosRequest.cc - src/model/ListPhotosResult.cc - src/model/RegisterTagRequest.cc - src/model/RegisterTagResult.cc - src/model/ListTimeLinePhotosRequest.cc - src/model/ListTimeLinePhotosResult.cc - src/model/DeletePhotosRequest.cc - src/model/DeletePhotosResult.cc - src/model/MergeFacesRequest.cc - src/model/MergeFacesResult.cc - src/model/GetPhotosByMd5sRequest.cc - src/model/GetPhotosByMd5sResult.cc - src/model/CreateTransactionRequest.cc - src/model/CreateTransactionResult.cc - src/model/InactivatePhotosRequest.cc - src/model/InactivatePhotosResult.cc - src/model/CreatePhotoStoreRequest.cc - src/model/CreatePhotoStoreResult.cc - src/model/TagPhotoRequest.cc - src/model/TagPhotoResult.cc - src/model/GetLibraryRequest.cc - src/model/GetLibraryResult.cc - src/model/SetQuotaRequest.cc - src/model/SetQuotaResult.cc - src/model/ListAlbumPhotosRequest.cc - src/model/ListAlbumPhotosResult.cc - src/model/RemoveAlbumPhotosRequest.cc - src/model/RemoveAlbumPhotosResult.cc - src/model/ListAlbumsRequest.cc - src/model/ListAlbumsResult.cc - src/model/ListPhotoFacesRequest.cc - src/model/ListPhotoFacesResult.cc - src/model/RenameAlbumRequest.cc - src/model/RenameAlbumResult.cc - src/model/ActivatePhotosRequest.cc - src/model/ActivatePhotosResult.cc - src/model/GetPrivateAccessUrlsRequest.cc - src/model/GetPrivateAccessUrlsResult.cc - src/model/GetSimilarPhotosRequest.cc - src/model/GetSimilarPhotosResult.cc - src/model/GetVideoCoverRequest.cc - src/model/GetVideoCoverResult.cc - src/model/GetFramedPhotoUrlsRequest.cc - src/model/GetFramedPhotoUrlsResult.cc - src/model/SetMeRequest.cc - src/model/SetMeResult.cc - src/model/ListTagPhotosRequest.cc - src/model/ListTagPhotosResult.cc - src/model/DeleteAlbumsRequest.cc - src/model/DeleteAlbumsResult.cc - src/model/GetDownloadUrlsRequest.cc - src/model/GetDownloadUrlsResult.cc - src/model/GetPhotosRequest.cc - src/model/GetPhotosResult.cc - src/model/RegisterPhotoRequest.cc - src/model/RegisterPhotoResult.cc - src/model/EditPhotoStoreRequest.cc - src/model/EditPhotoStoreResult.cc - src/model/ListTimeLinesRequest.cc - src/model/ListTimeLinesResult.cc - src/model/SearchPhotosRequest.cc - src/model/SearchPhotosResult.cc - src/model/ToggleFeaturesRequest.cc - src/model/ToggleFeaturesResult.cc - src/model/ListRegisteredTagsRequest.cc - src/model/ListRegisteredTagsResult.cc - src/model/DeletePhotoStoreRequest.cc - src/model/DeletePhotoStoreResult.cc - src/model/GetPhotoStoreRequest.cc - src/model/GetPhotoStoreResult.cc - src/model/ListMomentPhotosRequest.cc - src/model/ListMomentPhotosResult.cc - src/model/GetThumbnailRequest.cc - src/model/GetThumbnailResult.cc - src/model/SetFaceCoverRequest.cc - src/model/SetFaceCoverResult.cc - src/model/CreatePhotoRequest.cc - src/model/CreatePhotoResult.cc - src/model/MoveAlbumPhotosRequest.cc - src/model/MoveAlbumPhotosResult.cc - src/model/GetDownloadUrlRequest.cc - src/model/GetDownloadUrlResult.cc - src/model/CreateAlbumRequest.cc - src/model/CreateAlbumResult.cc - src/model/ListPhotoTagsRequest.cc - src/model/ListPhotoTagsResult.cc - src/model/LikePhotoRequest.cc - src/model/LikePhotoResult.cc - src/model/ListPhotoStoresRequest.cc - src/model/ListPhotoStoresResult.cc - src/model/GetPublicAccessUrlsRequest.cc - src/model/GetPublicAccessUrlsResult.cc - src/model/EditPhotosRequest.cc - src/model/EditPhotosResult.cc - src/model/SetAlbumCoverRequest.cc - src/model/SetAlbumCoverResult.cc - src/model/RenameFaceRequest.cc - src/model/RenameFaceResult.cc - src/model/ListMomentsRequest.cc - src/model/ListMomentsResult.cc - src/model/ListTagsRequest.cc - src/model/ListTagsResult.cc - src/model/ListFacePhotosRequest.cc - src/model/ListFacePhotosResult.cc - src/CloudPhotoClient.cc - src/CloudPhotoRequest.cc - ) +set(cloudphoto_public_header + include/alibabacloud/cloudphoto/CloudPhotoClient.h + include/alibabacloud/cloudphoto/CloudPhotoExport.h ) -add_library(cloudphoto ${LIB_TYPE} ${cloudphoto_public_header} ${cloudphoto_src}) +set(cloudphoto_public_header_model + include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h + include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h + include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h + include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h + include/alibabacloud/cloudphoto/model/GetQuotaRequest.h + include/alibabacloud/cloudphoto/model/GetQuotaResult.h + include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h + include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h + include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h + include/alibabacloud/cloudphoto/model/DeleteFacesResult.h + include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h + include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h + include/alibabacloud/cloudphoto/model/ListFacesRequest.h + include/alibabacloud/cloudphoto/model/ListFacesResult.h + include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h + include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h + include/alibabacloud/cloudphoto/model/ListPhotosRequest.h + include/alibabacloud/cloudphoto/model/ListPhotosResult.h + include/alibabacloud/cloudphoto/model/RegisterTagRequest.h + include/alibabacloud/cloudphoto/model/RegisterTagResult.h + include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h + include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h + include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h + include/alibabacloud/cloudphoto/model/DeletePhotosResult.h + include/alibabacloud/cloudphoto/model/MergeFacesRequest.h + include/alibabacloud/cloudphoto/model/MergeFacesResult.h + include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h + include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h + include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h + include/alibabacloud/cloudphoto/model/CreateTransactionResult.h + include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h + include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h + include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h + include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h + include/alibabacloud/cloudphoto/model/TagPhotoRequest.h + include/alibabacloud/cloudphoto/model/TagPhotoResult.h + include/alibabacloud/cloudphoto/model/GetLibraryRequest.h + include/alibabacloud/cloudphoto/model/GetLibraryResult.h + include/alibabacloud/cloudphoto/model/SetQuotaRequest.h + include/alibabacloud/cloudphoto/model/SetQuotaResult.h + include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h + include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h + include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h + include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h + include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h + include/alibabacloud/cloudphoto/model/ListAlbumsResult.h + include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h + include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h + include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h + include/alibabacloud/cloudphoto/model/RenameAlbumResult.h + include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h + include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h + include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h + include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h + include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h + include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h + include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h + include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h + include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h + include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h + include/alibabacloud/cloudphoto/model/SetMeRequest.h + include/alibabacloud/cloudphoto/model/SetMeResult.h + include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h + include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h + include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h + include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h + include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h + include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h + include/alibabacloud/cloudphoto/model/GetPhotosRequest.h + include/alibabacloud/cloudphoto/model/GetPhotosResult.h + include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h + include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h + include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h + include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h + include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h + include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h + include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h + include/alibabacloud/cloudphoto/model/SearchPhotosResult.h + include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h + include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h + include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h + include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h + include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h + include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h + include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h + include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h + include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h + include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h + include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h + include/alibabacloud/cloudphoto/model/GetThumbnailResult.h + include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h + include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h + include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h + include/alibabacloud/cloudphoto/model/CreatePhotoResult.h + include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h + include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h + include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h + include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h + include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h + include/alibabacloud/cloudphoto/model/CreateAlbumResult.h + include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h + include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h + include/alibabacloud/cloudphoto/model/LikePhotoRequest.h + include/alibabacloud/cloudphoto/model/LikePhotoResult.h + include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h + include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h + include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h + include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h + include/alibabacloud/cloudphoto/model/EditPhotosRequest.h + include/alibabacloud/cloudphoto/model/EditPhotosResult.h + include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h + include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h + include/alibabacloud/cloudphoto/model/RenameFaceRequest.h + include/alibabacloud/cloudphoto/model/RenameFaceResult.h + include/alibabacloud/cloudphoto/model/ListMomentsRequest.h + include/alibabacloud/cloudphoto/model/ListMomentsResult.h + include/alibabacloud/cloudphoto/model/ListTagsRequest.h + include/alibabacloud/cloudphoto/model/ListTagsResult.h + include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h + include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h ) + +set(cloudphoto_src + src/CloudPhotoClient.cc + src/model/RemoveFacePhotosRequest.cc + src/model/RemoveFacePhotosResult.cc + src/model/ReactivatePhotosRequest.cc + src/model/ReactivatePhotosResult.cc + src/model/GetQuotaRequest.cc + src/model/GetQuotaResult.cc + src/model/GetThumbnailsRequest.cc + src/model/GetThumbnailsResult.cc + src/model/DeleteFacesRequest.cc + src/model/DeleteFacesResult.cc + src/model/AddAlbumPhotosRequest.cc + src/model/AddAlbumPhotosResult.cc + src/model/ListFacesRequest.cc + src/model/ListFacesResult.cc + src/model/MoveFacePhotosRequest.cc + src/model/MoveFacePhotosResult.cc + src/model/ListPhotosRequest.cc + src/model/ListPhotosResult.cc + src/model/RegisterTagRequest.cc + src/model/RegisterTagResult.cc + src/model/ListTimeLinePhotosRequest.cc + src/model/ListTimeLinePhotosResult.cc + src/model/DeletePhotosRequest.cc + src/model/DeletePhotosResult.cc + src/model/MergeFacesRequest.cc + src/model/MergeFacesResult.cc + src/model/GetPhotosByMd5sRequest.cc + src/model/GetPhotosByMd5sResult.cc + src/model/CreateTransactionRequest.cc + src/model/CreateTransactionResult.cc + src/model/InactivatePhotosRequest.cc + src/model/InactivatePhotosResult.cc + src/model/CreatePhotoStoreRequest.cc + src/model/CreatePhotoStoreResult.cc + src/model/TagPhotoRequest.cc + src/model/TagPhotoResult.cc + src/model/GetLibraryRequest.cc + src/model/GetLibraryResult.cc + src/model/SetQuotaRequest.cc + src/model/SetQuotaResult.cc + src/model/ListAlbumPhotosRequest.cc + src/model/ListAlbumPhotosResult.cc + src/model/RemoveAlbumPhotosRequest.cc + src/model/RemoveAlbumPhotosResult.cc + src/model/ListAlbumsRequest.cc + src/model/ListAlbumsResult.cc + src/model/ListPhotoFacesRequest.cc + src/model/ListPhotoFacesResult.cc + src/model/RenameAlbumRequest.cc + src/model/RenameAlbumResult.cc + src/model/ActivatePhotosRequest.cc + src/model/ActivatePhotosResult.cc + src/model/GetPrivateAccessUrlsRequest.cc + src/model/GetPrivateAccessUrlsResult.cc + src/model/GetSimilarPhotosRequest.cc + src/model/GetSimilarPhotosResult.cc + src/model/GetVideoCoverRequest.cc + src/model/GetVideoCoverResult.cc + src/model/GetFramedPhotoUrlsRequest.cc + src/model/GetFramedPhotoUrlsResult.cc + src/model/SetMeRequest.cc + src/model/SetMeResult.cc + src/model/ListTagPhotosRequest.cc + src/model/ListTagPhotosResult.cc + src/model/DeleteAlbumsRequest.cc + src/model/DeleteAlbumsResult.cc + src/model/GetDownloadUrlsRequest.cc + src/model/GetDownloadUrlsResult.cc + src/model/GetPhotosRequest.cc + src/model/GetPhotosResult.cc + src/model/RegisterPhotoRequest.cc + src/model/RegisterPhotoResult.cc + src/model/EditPhotoStoreRequest.cc + src/model/EditPhotoStoreResult.cc + src/model/ListTimeLinesRequest.cc + src/model/ListTimeLinesResult.cc + src/model/SearchPhotosRequest.cc + src/model/SearchPhotosResult.cc + src/model/ToggleFeaturesRequest.cc + src/model/ToggleFeaturesResult.cc + src/model/ListRegisteredTagsRequest.cc + src/model/ListRegisteredTagsResult.cc + src/model/DeletePhotoStoreRequest.cc + src/model/DeletePhotoStoreResult.cc + src/model/GetPhotoStoreRequest.cc + src/model/GetPhotoStoreResult.cc + src/model/ListMomentPhotosRequest.cc + src/model/ListMomentPhotosResult.cc + src/model/GetThumbnailRequest.cc + src/model/GetThumbnailResult.cc + src/model/SetFaceCoverRequest.cc + src/model/SetFaceCoverResult.cc + src/model/CreatePhotoRequest.cc + src/model/CreatePhotoResult.cc + src/model/MoveAlbumPhotosRequest.cc + src/model/MoveAlbumPhotosResult.cc + src/model/GetDownloadUrlRequest.cc + src/model/GetDownloadUrlResult.cc + src/model/CreateAlbumRequest.cc + src/model/CreateAlbumResult.cc + src/model/ListPhotoTagsRequest.cc + src/model/ListPhotoTagsResult.cc + src/model/LikePhotoRequest.cc + src/model/LikePhotoResult.cc + src/model/ListPhotoStoresRequest.cc + src/model/ListPhotoStoresResult.cc + src/model/GetPublicAccessUrlsRequest.cc + src/model/GetPublicAccessUrlsResult.cc + src/model/EditPhotosRequest.cc + src/model/EditPhotosResult.cc + src/model/SetAlbumCoverRequest.cc + src/model/SetAlbumCoverResult.cc + src/model/RenameFaceRequest.cc + src/model/RenameFaceResult.cc + src/model/ListMomentsRequest.cc + src/model/ListMomentsResult.cc + src/model/ListTagsRequest.cc + src/model/ListTagsResult.cc + src/model/ListFacePhotosRequest.cc + src/model/ListFacePhotosResult.cc ) + +add_library(cloudphoto ${LIB_TYPE} + ${cloudphoto_public_header} + ${cloudphoto_public_header_model} + ${cloudphoto_src}) set_target_properties(cloudphoto PROPERTIES @@ -275,7 +277,6 @@ set_target_properties(cloudphoto LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudphoto - PUBLIC_HEADER "${cloudphoto_public_header}" ) if(${LIB_TYPE} STREQUAL "SHARED") @@ -310,9 +311,12 @@ else() jsoncpp) endif() +install(FILES ${cloudphoto_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudphoto) +install(FILES ${cloudphoto_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudphoto/model) install(TARGETS cloudphoto ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudphoto - ) + ) \ No newline at end of file diff --git a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h b/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h index 16862fb67..cbaf22326 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoClient.h @@ -332,192 +332,190 @@ namespace AlibabaCloud typedef std::future ListFacePhotosOutcomeCallable; typedef std::function&)> ListFacePhotosAsyncHandler; - CloudPhotoClient(const Credentials &credentials, const ClientConfiguration &configuration); CloudPhotoClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CloudPhotoClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CloudPhotoClient(); - - RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const; - void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const; - ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const; - void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const; - GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const; - void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const; - GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const; - void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const; - DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const; - void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const; - AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const; - void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const; - ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const; - void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const; - MoveFacePhotosOutcome moveFacePhotos(const Model::MoveFacePhotosRequest &request)const; - void moveFacePhotosAsync(const Model::MoveFacePhotosRequest& request, const MoveFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MoveFacePhotosOutcomeCallable moveFacePhotosCallable(const Model::MoveFacePhotosRequest& request) const; - ListPhotosOutcome listPhotos(const Model::ListPhotosRequest &request)const; - void listPhotosAsync(const Model::ListPhotosRequest& request, const ListPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhotosOutcomeCallable listPhotosCallable(const Model::ListPhotosRequest& request) const; - RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const; - void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const; - ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const; - void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const; - DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const; - void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const; - MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const; - void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const; - GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const; - void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const; - CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const; - void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const; - InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const; - void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const; - CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const; - void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const; - TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const; - void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const; - GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const; - void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const; - SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const; - void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const; - ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const; - void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const; - RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const; - void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const; - ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const; - void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const; - ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const; - void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const; - RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const; - void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const; - ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const; - void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const; - GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const; - void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const; - GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const; - void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const; - GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const; - void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const; - GetFramedPhotoUrlsOutcome getFramedPhotoUrls(const Model::GetFramedPhotoUrlsRequest &request)const; - void getFramedPhotoUrlsAsync(const Model::GetFramedPhotoUrlsRequest& request, const GetFramedPhotoUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetFramedPhotoUrlsOutcomeCallable getFramedPhotoUrlsCallable(const Model::GetFramedPhotoUrlsRequest& request) const; - SetMeOutcome setMe(const Model::SetMeRequest &request)const; - void setMeAsync(const Model::SetMeRequest& request, const SetMeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetMeOutcomeCallable setMeCallable(const Model::SetMeRequest& request) const; - ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const; - void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const; - DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const; - void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const; - GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const; - void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const; - GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const; - void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const; - RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const; - void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const; - EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const; - void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const; - ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const; - void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const; - SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const; - void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const; - ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const; - void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const; - ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const; - void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const; - DeletePhotoStoreOutcome deletePhotoStore(const Model::DeletePhotoStoreRequest &request)const; - void deletePhotoStoreAsync(const Model::DeletePhotoStoreRequest& request, const DeletePhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePhotoStoreOutcomeCallable deletePhotoStoreCallable(const Model::DeletePhotoStoreRequest& request) const; - GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const; - void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const; - ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const; - void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const; - GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const; - void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const; - SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const; - void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const; - CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const; - void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const; - MoveAlbumPhotosOutcome moveAlbumPhotos(const Model::MoveAlbumPhotosRequest &request)const; - void moveAlbumPhotosAsync(const Model::MoveAlbumPhotosRequest& request, const MoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - MoveAlbumPhotosOutcomeCallable moveAlbumPhotosCallable(const Model::MoveAlbumPhotosRequest& request) const; - GetDownloadUrlOutcome getDownloadUrl(const Model::GetDownloadUrlRequest &request)const; - void getDownloadUrlAsync(const Model::GetDownloadUrlRequest& request, const GetDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDownloadUrlOutcomeCallable getDownloadUrlCallable(const Model::GetDownloadUrlRequest& request) const; - CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const; - void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const; - ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const; - void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const; - LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const; - void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const; - ListPhotoStoresOutcome listPhotoStores(const Model::ListPhotoStoresRequest &request)const; - void listPhotoStoresAsync(const Model::ListPhotoStoresRequest& request, const ListPhotoStoresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListPhotoStoresOutcomeCallable listPhotoStoresCallable(const Model::ListPhotoStoresRequest& request) const; - GetPublicAccessUrlsOutcome getPublicAccessUrls(const Model::GetPublicAccessUrlsRequest &request)const; - void getPublicAccessUrlsAsync(const Model::GetPublicAccessUrlsRequest& request, const GetPublicAccessUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetPublicAccessUrlsOutcomeCallable getPublicAccessUrlsCallable(const Model::GetPublicAccessUrlsRequest& request) const; - EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const; - void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const; - SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const; - void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const; - RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const; - void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const; - ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const; - void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const; - ListTagsOutcome listTags(const Model::ListTagsRequest &request)const; - void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const; - ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const; - void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const; + RemoveFacePhotosOutcome removeFacePhotos(const Model::RemoveFacePhotosRequest &request)const; + void removeFacePhotosAsync(const Model::RemoveFacePhotosRequest& request, const RemoveFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveFacePhotosOutcomeCallable removeFacePhotosCallable(const Model::RemoveFacePhotosRequest& request) const; + ReactivatePhotosOutcome reactivatePhotos(const Model::ReactivatePhotosRequest &request)const; + void reactivatePhotosAsync(const Model::ReactivatePhotosRequest& request, const ReactivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReactivatePhotosOutcomeCallable reactivatePhotosCallable(const Model::ReactivatePhotosRequest& request) const; + GetQuotaOutcome getQuota(const Model::GetQuotaRequest &request)const; + void getQuotaAsync(const Model::GetQuotaRequest& request, const GetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetQuotaOutcomeCallable getQuotaCallable(const Model::GetQuotaRequest& request) const; + GetThumbnailsOutcome getThumbnails(const Model::GetThumbnailsRequest &request)const; + void getThumbnailsAsync(const Model::GetThumbnailsRequest& request, const GetThumbnailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetThumbnailsOutcomeCallable getThumbnailsCallable(const Model::GetThumbnailsRequest& request) const; + DeleteFacesOutcome deleteFaces(const Model::DeleteFacesRequest &request)const; + void deleteFacesAsync(const Model::DeleteFacesRequest& request, const DeleteFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFacesOutcomeCallable deleteFacesCallable(const Model::DeleteFacesRequest& request) const; + AddAlbumPhotosOutcome addAlbumPhotos(const Model::AddAlbumPhotosRequest &request)const; + void addAlbumPhotosAsync(const Model::AddAlbumPhotosRequest& request, const AddAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAlbumPhotosOutcomeCallable addAlbumPhotosCallable(const Model::AddAlbumPhotosRequest& request) const; + ListFacesOutcome listFaces(const Model::ListFacesRequest &request)const; + void listFacesAsync(const Model::ListFacesRequest& request, const ListFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFacesOutcomeCallable listFacesCallable(const Model::ListFacesRequest& request) const; + MoveFacePhotosOutcome moveFacePhotos(const Model::MoveFacePhotosRequest &request)const; + void moveFacePhotosAsync(const Model::MoveFacePhotosRequest& request, const MoveFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveFacePhotosOutcomeCallable moveFacePhotosCallable(const Model::MoveFacePhotosRequest& request) const; + ListPhotosOutcome listPhotos(const Model::ListPhotosRequest &request)const; + void listPhotosAsync(const Model::ListPhotosRequest& request, const ListPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotosOutcomeCallable listPhotosCallable(const Model::ListPhotosRequest& request) const; + RegisterTagOutcome registerTag(const Model::RegisterTagRequest &request)const; + void registerTagAsync(const Model::RegisterTagRequest& request, const RegisterTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterTagOutcomeCallable registerTagCallable(const Model::RegisterTagRequest& request) const; + ListTimeLinePhotosOutcome listTimeLinePhotos(const Model::ListTimeLinePhotosRequest &request)const; + void listTimeLinePhotosAsync(const Model::ListTimeLinePhotosRequest& request, const ListTimeLinePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTimeLinePhotosOutcomeCallable listTimeLinePhotosCallable(const Model::ListTimeLinePhotosRequest& request) const; + DeletePhotosOutcome deletePhotos(const Model::DeletePhotosRequest &request)const; + void deletePhotosAsync(const Model::DeletePhotosRequest& request, const DeletePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhotosOutcomeCallable deletePhotosCallable(const Model::DeletePhotosRequest& request) const; + MergeFacesOutcome mergeFaces(const Model::MergeFacesRequest &request)const; + void mergeFacesAsync(const Model::MergeFacesRequest& request, const MergeFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MergeFacesOutcomeCallable mergeFacesCallable(const Model::MergeFacesRequest& request) const; + GetPhotosByMd5sOutcome getPhotosByMd5s(const Model::GetPhotosByMd5sRequest &request)const; + void getPhotosByMd5sAsync(const Model::GetPhotosByMd5sRequest& request, const GetPhotosByMd5sAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotosByMd5sOutcomeCallable getPhotosByMd5sCallable(const Model::GetPhotosByMd5sRequest& request) const; + CreateTransactionOutcome createTransaction(const Model::CreateTransactionRequest &request)const; + void createTransactionAsync(const Model::CreateTransactionRequest& request, const CreateTransactionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTransactionOutcomeCallable createTransactionCallable(const Model::CreateTransactionRequest& request) const; + InactivatePhotosOutcome inactivatePhotos(const Model::InactivatePhotosRequest &request)const; + void inactivatePhotosAsync(const Model::InactivatePhotosRequest& request, const InactivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InactivatePhotosOutcomeCallable inactivatePhotosCallable(const Model::InactivatePhotosRequest& request) const; + CreatePhotoStoreOutcome createPhotoStore(const Model::CreatePhotoStoreRequest &request)const; + void createPhotoStoreAsync(const Model::CreatePhotoStoreRequest& request, const CreatePhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhotoStoreOutcomeCallable createPhotoStoreCallable(const Model::CreatePhotoStoreRequest& request) const; + TagPhotoOutcome tagPhoto(const Model::TagPhotoRequest &request)const; + void tagPhotoAsync(const Model::TagPhotoRequest& request, const TagPhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagPhotoOutcomeCallable tagPhotoCallable(const Model::TagPhotoRequest& request) const; + GetLibraryOutcome getLibrary(const Model::GetLibraryRequest &request)const; + void getLibraryAsync(const Model::GetLibraryRequest& request, const GetLibraryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetLibraryOutcomeCallable getLibraryCallable(const Model::GetLibraryRequest& request) const; + SetQuotaOutcome setQuota(const Model::SetQuotaRequest &request)const; + void setQuotaAsync(const Model::SetQuotaRequest& request, const SetQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetQuotaOutcomeCallable setQuotaCallable(const Model::SetQuotaRequest& request) const; + ListAlbumPhotosOutcome listAlbumPhotos(const Model::ListAlbumPhotosRequest &request)const; + void listAlbumPhotosAsync(const Model::ListAlbumPhotosRequest& request, const ListAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlbumPhotosOutcomeCallable listAlbumPhotosCallable(const Model::ListAlbumPhotosRequest& request) const; + RemoveAlbumPhotosOutcome removeAlbumPhotos(const Model::RemoveAlbumPhotosRequest &request)const; + void removeAlbumPhotosAsync(const Model::RemoveAlbumPhotosRequest& request, const RemoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAlbumPhotosOutcomeCallable removeAlbumPhotosCallable(const Model::RemoveAlbumPhotosRequest& request) const; + ListAlbumsOutcome listAlbums(const Model::ListAlbumsRequest &request)const; + void listAlbumsAsync(const Model::ListAlbumsRequest& request, const ListAlbumsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAlbumsOutcomeCallable listAlbumsCallable(const Model::ListAlbumsRequest& request) const; + ListPhotoFacesOutcome listPhotoFaces(const Model::ListPhotoFacesRequest &request)const; + void listPhotoFacesAsync(const Model::ListPhotoFacesRequest& request, const ListPhotoFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotoFacesOutcomeCallable listPhotoFacesCallable(const Model::ListPhotoFacesRequest& request) const; + RenameAlbumOutcome renameAlbum(const Model::RenameAlbumRequest &request)const; + void renameAlbumAsync(const Model::RenameAlbumRequest& request, const RenameAlbumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenameAlbumOutcomeCallable renameAlbumCallable(const Model::RenameAlbumRequest& request) const; + ActivatePhotosOutcome activatePhotos(const Model::ActivatePhotosRequest &request)const; + void activatePhotosAsync(const Model::ActivatePhotosRequest& request, const ActivatePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ActivatePhotosOutcomeCallable activatePhotosCallable(const Model::ActivatePhotosRequest& request) const; + GetPrivateAccessUrlsOutcome getPrivateAccessUrls(const Model::GetPrivateAccessUrlsRequest &request)const; + void getPrivateAccessUrlsAsync(const Model::GetPrivateAccessUrlsRequest& request, const GetPrivateAccessUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPrivateAccessUrlsOutcomeCallable getPrivateAccessUrlsCallable(const Model::GetPrivateAccessUrlsRequest& request) const; + GetSimilarPhotosOutcome getSimilarPhotos(const Model::GetSimilarPhotosRequest &request)const; + void getSimilarPhotosAsync(const Model::GetSimilarPhotosRequest& request, const GetSimilarPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSimilarPhotosOutcomeCallable getSimilarPhotosCallable(const Model::GetSimilarPhotosRequest& request) const; + GetVideoCoverOutcome getVideoCover(const Model::GetVideoCoverRequest &request)const; + void getVideoCoverAsync(const Model::GetVideoCoverRequest& request, const GetVideoCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoCoverOutcomeCallable getVideoCoverCallable(const Model::GetVideoCoverRequest& request) const; + GetFramedPhotoUrlsOutcome getFramedPhotoUrls(const Model::GetFramedPhotoUrlsRequest &request)const; + void getFramedPhotoUrlsAsync(const Model::GetFramedPhotoUrlsRequest& request, const GetFramedPhotoUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFramedPhotoUrlsOutcomeCallable getFramedPhotoUrlsCallable(const Model::GetFramedPhotoUrlsRequest& request) const; + SetMeOutcome setMe(const Model::SetMeRequest &request)const; + void setMeAsync(const Model::SetMeRequest& request, const SetMeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetMeOutcomeCallable setMeCallable(const Model::SetMeRequest& request) const; + ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const; + void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const; + DeleteAlbumsOutcome deleteAlbums(const Model::DeleteAlbumsRequest &request)const; + void deleteAlbumsAsync(const Model::DeleteAlbumsRequest& request, const DeleteAlbumsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAlbumsOutcomeCallable deleteAlbumsCallable(const Model::DeleteAlbumsRequest& request) const; + GetDownloadUrlsOutcome getDownloadUrls(const Model::GetDownloadUrlsRequest &request)const; + void getDownloadUrlsAsync(const Model::GetDownloadUrlsRequest& request, const GetDownloadUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDownloadUrlsOutcomeCallable getDownloadUrlsCallable(const Model::GetDownloadUrlsRequest& request) const; + GetPhotosOutcome getPhotos(const Model::GetPhotosRequest &request)const; + void getPhotosAsync(const Model::GetPhotosRequest& request, const GetPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotosOutcomeCallable getPhotosCallable(const Model::GetPhotosRequest& request) const; + RegisterPhotoOutcome registerPhoto(const Model::RegisterPhotoRequest &request)const; + void registerPhotoAsync(const Model::RegisterPhotoRequest& request, const RegisterPhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterPhotoOutcomeCallable registerPhotoCallable(const Model::RegisterPhotoRequest& request) const; + EditPhotoStoreOutcome editPhotoStore(const Model::EditPhotoStoreRequest &request)const; + void editPhotoStoreAsync(const Model::EditPhotoStoreRequest& request, const EditPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EditPhotoStoreOutcomeCallable editPhotoStoreCallable(const Model::EditPhotoStoreRequest& request) const; + ListTimeLinesOutcome listTimeLines(const Model::ListTimeLinesRequest &request)const; + void listTimeLinesAsync(const Model::ListTimeLinesRequest& request, const ListTimeLinesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTimeLinesOutcomeCallable listTimeLinesCallable(const Model::ListTimeLinesRequest& request) const; + SearchPhotosOutcome searchPhotos(const Model::SearchPhotosRequest &request)const; + void searchPhotosAsync(const Model::SearchPhotosRequest& request, const SearchPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchPhotosOutcomeCallable searchPhotosCallable(const Model::SearchPhotosRequest& request) const; + ToggleFeaturesOutcome toggleFeatures(const Model::ToggleFeaturesRequest &request)const; + void toggleFeaturesAsync(const Model::ToggleFeaturesRequest& request, const ToggleFeaturesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ToggleFeaturesOutcomeCallable toggleFeaturesCallable(const Model::ToggleFeaturesRequest& request) const; + ListRegisteredTagsOutcome listRegisteredTags(const Model::ListRegisteredTagsRequest &request)const; + void listRegisteredTagsAsync(const Model::ListRegisteredTagsRequest& request, const ListRegisteredTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRegisteredTagsOutcomeCallable listRegisteredTagsCallable(const Model::ListRegisteredTagsRequest& request) const; + DeletePhotoStoreOutcome deletePhotoStore(const Model::DeletePhotoStoreRequest &request)const; + void deletePhotoStoreAsync(const Model::DeletePhotoStoreRequest& request, const DeletePhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhotoStoreOutcomeCallable deletePhotoStoreCallable(const Model::DeletePhotoStoreRequest& request) const; + GetPhotoStoreOutcome getPhotoStore(const Model::GetPhotoStoreRequest &request)const; + void getPhotoStoreAsync(const Model::GetPhotoStoreRequest& request, const GetPhotoStoreAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotoStoreOutcomeCallable getPhotoStoreCallable(const Model::GetPhotoStoreRequest& request) const; + ListMomentPhotosOutcome listMomentPhotos(const Model::ListMomentPhotosRequest &request)const; + void listMomentPhotosAsync(const Model::ListMomentPhotosRequest& request, const ListMomentPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMomentPhotosOutcomeCallable listMomentPhotosCallable(const Model::ListMomentPhotosRequest& request) const; + GetThumbnailOutcome getThumbnail(const Model::GetThumbnailRequest &request)const; + void getThumbnailAsync(const Model::GetThumbnailRequest& request, const GetThumbnailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetThumbnailOutcomeCallable getThumbnailCallable(const Model::GetThumbnailRequest& request) const; + SetFaceCoverOutcome setFaceCover(const Model::SetFaceCoverRequest &request)const; + void setFaceCoverAsync(const Model::SetFaceCoverRequest& request, const SetFaceCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetFaceCoverOutcomeCallable setFaceCoverCallable(const Model::SetFaceCoverRequest& request) const; + CreatePhotoOutcome createPhoto(const Model::CreatePhotoRequest &request)const; + void createPhotoAsync(const Model::CreatePhotoRequest& request, const CreatePhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePhotoOutcomeCallable createPhotoCallable(const Model::CreatePhotoRequest& request) const; + MoveAlbumPhotosOutcome moveAlbumPhotos(const Model::MoveAlbumPhotosRequest &request)const; + void moveAlbumPhotosAsync(const Model::MoveAlbumPhotosRequest& request, const MoveAlbumPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MoveAlbumPhotosOutcomeCallable moveAlbumPhotosCallable(const Model::MoveAlbumPhotosRequest& request) const; + GetDownloadUrlOutcome getDownloadUrl(const Model::GetDownloadUrlRequest &request)const; + void getDownloadUrlAsync(const Model::GetDownloadUrlRequest& request, const GetDownloadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDownloadUrlOutcomeCallable getDownloadUrlCallable(const Model::GetDownloadUrlRequest& request) const; + CreateAlbumOutcome createAlbum(const Model::CreateAlbumRequest &request)const; + void createAlbumAsync(const Model::CreateAlbumRequest& request, const CreateAlbumAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAlbumOutcomeCallable createAlbumCallable(const Model::CreateAlbumRequest& request) const; + ListPhotoTagsOutcome listPhotoTags(const Model::ListPhotoTagsRequest &request)const; + void listPhotoTagsAsync(const Model::ListPhotoTagsRequest& request, const ListPhotoTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotoTagsOutcomeCallable listPhotoTagsCallable(const Model::ListPhotoTagsRequest& request) const; + LikePhotoOutcome likePhoto(const Model::LikePhotoRequest &request)const; + void likePhotoAsync(const Model::LikePhotoRequest& request, const LikePhotoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + LikePhotoOutcomeCallable likePhotoCallable(const Model::LikePhotoRequest& request) const; + ListPhotoStoresOutcome listPhotoStores(const Model::ListPhotoStoresRequest &request)const; + void listPhotoStoresAsync(const Model::ListPhotoStoresRequest& request, const ListPhotoStoresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotoStoresOutcomeCallable listPhotoStoresCallable(const Model::ListPhotoStoresRequest& request) const; + GetPublicAccessUrlsOutcome getPublicAccessUrls(const Model::GetPublicAccessUrlsRequest &request)const; + void getPublicAccessUrlsAsync(const Model::GetPublicAccessUrlsRequest& request, const GetPublicAccessUrlsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPublicAccessUrlsOutcomeCallable getPublicAccessUrlsCallable(const Model::GetPublicAccessUrlsRequest& request) const; + EditPhotosOutcome editPhotos(const Model::EditPhotosRequest &request)const; + void editPhotosAsync(const Model::EditPhotosRequest& request, const EditPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EditPhotosOutcomeCallable editPhotosCallable(const Model::EditPhotosRequest& request) const; + SetAlbumCoverOutcome setAlbumCover(const Model::SetAlbumCoverRequest &request)const; + void setAlbumCoverAsync(const Model::SetAlbumCoverRequest& request, const SetAlbumCoverAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAlbumCoverOutcomeCallable setAlbumCoverCallable(const Model::SetAlbumCoverRequest& request) const; + RenameFaceOutcome renameFace(const Model::RenameFaceRequest &request)const; + void renameFaceAsync(const Model::RenameFaceRequest& request, const RenameFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenameFaceOutcomeCallable renameFaceCallable(const Model::RenameFaceRequest& request) const; + ListMomentsOutcome listMoments(const Model::ListMomentsRequest &request)const; + void listMomentsAsync(const Model::ListMomentsRequest& request, const ListMomentsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMomentsOutcomeCallable listMomentsCallable(const Model::ListMomentsRequest& request) const; + ListTagsOutcome listTags(const Model::ListTagsRequest &request)const; + void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const; + ListFacePhotosOutcome listFacePhotos(const Model::ListFacePhotosRequest &request)const; + void listFacePhotosAsync(const Model::ListFacePhotosRequest& request, const ListFacePhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFacePhotosOutcomeCallable listFacePhotosCallable(const Model::ListFacePhotosRequest& request) const; private: virtual EndpointOutcome endpoint()const override; diff --git a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoRequest.h deleted file mode 100644 index 8cad611df..000000000 --- a/cloudphoto/include/alibabacloud/cloudphoto/CloudPhotoRequest.h +++ /dev/null @@ -1,39 +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_CLOUDPHOTO_CLOUDPHOTOREQUEST_H_ -#define ALIBABACLOUD_CLOUDPHOTO_CLOUDPHOTOREQUEST_H_ - -#include -#include "CloudPhotoExport.h" - -namespace AlibabaCloud -{ - namespace CloudPhoto - { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT CloudPhotoRequest : public RpcServiceRequest - { - public: - explicit CloudPhotoRequest(const std::string & action); - virtual ~CloudPhotoRequest(); - - private: - - }; - } -} - -#endif // !ALIBABACLOUD_CLOUDPHOTO_CLOUDPHOTOREQUEST_H_ \ No newline at end of file diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h index 2346f9c0a..9b6835522 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ActivatePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ActivatePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h index d750f38ed..b20d3e40b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ActivatePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit ActivatePhotosResult(const std::string &payload); ~ActivatePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h index c1ad28b19..2daad5e36 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT AddAlbumPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT AddAlbumPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h index 45ad062c2..dcf0f9dcd 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/AddAlbumPhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit AddAlbumPhotosResult(const std::string &payload); ~AddAlbumPhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h index 6556fe7a6..e2cd72545 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateAlbumRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateAlbumRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumResult.h index 826ebfc10..477ba25c1 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateAlbumResult.h @@ -63,13 +63,9 @@ namespace AlibabaCloud explicit CreateAlbumResult(const std::string &payload); ~CreateAlbumResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getAlbum()const; - void setAlbum(const std::vector& album); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h index 6b82b51a6..78c5fa643 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoResult.h index cf3d30d53..a47da948b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoResult.h @@ -56,13 +56,9 @@ namespace AlibabaCloud explicit CreatePhotoResult(const std::string &payload); ~CreatePhotoResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getPhoto()const; - void setPhoto(const std::vector& photo); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h index f06a32b27..be8a88420 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoStoreRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreatePhotoStoreRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h index 4269103f3..8f9beb1f4 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreatePhotoStoreResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit CreatePhotoStoreResult(const std::string &payload); ~CreatePhotoStoreResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h index 821f42d77..76ea4de68 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateTransactionRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT CreateTransactionRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionResult.h index 35bcbede8..a77e863fe 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/CreateTransactionResult.h @@ -53,13 +53,9 @@ namespace AlibabaCloud explicit CreateTransactionResult(const std::string &payload); ~CreateTransactionResult(); std::string getAction()const; - void setAction(const std::string& action); std::vector getTransaction()const; - void setTransaction(const std::vector& transaction); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h index cabdadd86..df4d98153 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteAlbumsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteAlbumsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h index 9546d4c06..b71e4a1d9 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteAlbumsResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit DeleteAlbumsResult(const std::string &payload); ~DeleteAlbumsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h index c58b78677..d75865ee9 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteFacesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeleteFacesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesResult.h index 2eb5557b6..df87a99e2 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeleteFacesResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit DeleteFacesResult(const std::string &payload); ~DeleteFacesResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h index 5f117df40..9d263447c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotoStoreRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotoStoreRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h index 4e26a7a0c..793670302 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotoStoreResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit DeletePhotoStoreResult(const std::string &payload); ~DeletePhotoStoreResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h index feebe5dc3..0889aa2f1 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT DeletePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosResult.h index 1b33edd1a..90f3c1fc2 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/DeletePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit DeletePhotosResult(const std::string &payload); ~DeletePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h index 8d8e742e4..600e12a3b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotoStoreRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotoStoreRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h index 48868ced4..4eaa31151 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotoStoreResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit EditPhotoStoreResult(const std::string &payload); ~EditPhotoStoreResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosRequest.h index 100206c30..40e0909ef 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT EditPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosResult.h index d04e4bf28..bdb4d54f5 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/EditPhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit EditPhotosResult(const std::string &payload); ~EditPhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h index ea2697330..ff9905398 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h index be9736d84..91c8a1943 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlResult.h @@ -38,13 +38,9 @@ namespace AlibabaCloud explicit GetDownloadUrlResult(const std::string &payload); ~GetDownloadUrlResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::string getDownloadUrl()const; - void setDownloadUrl(const std::string& downloadUrl); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h index eb079ea69..97d6c0bef 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetDownloadUrlsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h index 14e93effa..abef24268 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetDownloadUrlsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit GetDownloadUrlsResult(const std::string &payload); ~GetDownloadUrlsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h index dc67991bb..e66302017 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetFramedPhotoUrlsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetFramedPhotoUrlsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h index fd5892279..ab8b99fb4 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetFramedPhotoUrlsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit GetFramedPhotoUrlsResult(const std::string &payload); ~GetFramedPhotoUrlsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryRequest.h index 2a8ad0cc9..fbed02467 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetLibraryRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetLibraryRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryResult.h index 060226deb..b452d1b01 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetLibraryResult.h @@ -59,13 +59,9 @@ namespace AlibabaCloud explicit GetLibraryResult(const std::string &payload); ~GetLibraryResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getLibrary()const; - void setLibrary(const std::vector& library); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h index 8300695bf..6be5dc5f0 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotoStoreRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotoStoreRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h index 820a0b808..bd6a357cd 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotoStoreResult.h @@ -58,13 +58,9 @@ namespace AlibabaCloud explicit GetPhotoStoreResult(const std::string &payload); ~GetPhotoStoreResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getPhotoStore()const; - void setPhotoStore(const std::vector& photoStore); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h index cd208b247..57f7ce03a 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosByMd5sRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosByMd5sRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h index 38addf484..f628cc67f 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosByMd5sResult.h @@ -56,13 +56,9 @@ namespace AlibabaCloud explicit GetPhotosByMd5sResult(const std::string &payload); ~GetPhotosByMd5sResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosRequest.h index 3743a5949..d60e1a2d1 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosResult.h index b0ece7012..6dd38f4b6 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPhotosResult.h @@ -58,13 +58,9 @@ namespace AlibabaCloud explicit GetPhotosResult(const std::string &payload); ~GetPhotosResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h index 494244591..638bb3f10 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPrivateAccessUrlsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPrivateAccessUrlsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h index 5a0466592..7705bfac4 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPrivateAccessUrlsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit GetPrivateAccessUrlsResult(const std::string &payload); ~GetPrivateAccessUrlsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h index edb1e3803..be12b0e1f 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPublicAccessUrlsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetPublicAccessUrlsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h index e366abb5d..2b936e31a 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetPublicAccessUrlsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit GetPublicAccessUrlsResult(const std::string &payload); ~GetPublicAccessUrlsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaRequest.h index 6ca7142b1..d6e16a525 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetQuotaRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetQuotaRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaResult.h index 04ce71606..6321c49ac 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetQuotaResult.h @@ -46,13 +46,9 @@ namespace AlibabaCloud explicit GetQuotaResult(const std::string &payload); ~GetQuotaResult(); std::string getAction()const; - void setAction(const std::string& action); std::vector getQuota()const; - void setQuota(const std::vector& quota); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h index 49456fab9..d431a2a79 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetSimilarPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetSimilarPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h index 793cb6ccf..98d85b8cc 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetSimilarPhotosResult.h @@ -58,13 +58,9 @@ namespace AlibabaCloud explicit GetSimilarPhotosResult(const std::string &payload); ~GetSimilarPhotosResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h index 684b06b75..8a4c27da5 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailResult.h index a2d338a53..10ade5694 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailResult.h @@ -38,13 +38,9 @@ namespace AlibabaCloud explicit GetThumbnailResult(const std::string &payload); ~GetThumbnailResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getThumbnailUrl()const; - void setThumbnailUrl(const std::string& thumbnailUrl); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h index 84ce1476f..da2229090 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetThumbnailsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h index e2450e1a9..2c834c05d 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetThumbnailsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit GetThumbnailsResult(const std::string &payload); ~GetThumbnailsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h index a043a1a25..5bb029398 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetVideoCoverRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT GetVideoCoverRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h index 8be8379c3..e88a531ad 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/GetVideoCoverResult.h @@ -38,13 +38,9 @@ namespace AlibabaCloud explicit GetVideoCoverResult(const std::string &payload); ~GetVideoCoverResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getVideoCoverUrl()const; - void setVideoCoverUrl(const std::string& videoCoverUrl); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h index 6ce6fa09b..036f45322 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT InactivatePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT InactivatePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h index a61f904d3..004f6f19c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/InactivatePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit InactivatePhotosResult(const std::string &payload); ~InactivatePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoRequest.h index 5a1e723f5..e8ba7b0e7 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT LikePhotoRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT LikePhotoRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoResult.h index 05127cb46..0daa9844a 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/LikePhotoResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit LikePhotoResult(const std::string &payload); ~LikePhotoResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h index ca1f030cf..536a02862 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h index ef7fbddae..cb8b14822 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumPhotosResult.h @@ -43,17 +43,11 @@ namespace AlibabaCloud explicit ListAlbumPhotosResult(const std::string &payload); ~ListAlbumPhotosResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h index 252097f49..4b689e605 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListAlbumsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsResult.h index d6b47a5c2..6e585ca1e 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListAlbumsResult.h @@ -62,17 +62,11 @@ namespace AlibabaCloud explicit ListAlbumsResult(const std::string &payload); ~ListAlbumsResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::vector getAlbums()const; - void setAlbums(const std::vector& albums); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h index f4fd442b4..772f1cffe 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h index 4b2971696..a3f15e465 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacePhotosResult.h @@ -43,17 +43,11 @@ namespace AlibabaCloud explicit ListFacePhotosResult(const std::string &payload); ~ListFacePhotosResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesRequest.h index 5ff078a74..3c1e97d05 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListFacesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesResult.h index 4ebd82231..1480b37f5 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListFacesResult.h @@ -64,17 +64,11 @@ namespace AlibabaCloud explicit ListFacesResult(const std::string &payload); ~ListFacesResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::vector getFaces()const; - void setFaces(const std::vector& faces); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h index 63057e6c6..2a714dfaa 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h index e4dd79c2a..9487f052b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentPhotosResult.h @@ -43,17 +43,11 @@ namespace AlibabaCloud explicit ListMomentPhotosResult(const std::string &payload); ~ListMomentPhotosResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsRequest.h index 74f5fa68d..cf335dd12 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListMomentsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsResult.h index 679ded311..201eae08c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListMomentsResult.h @@ -48,17 +48,11 @@ namespace AlibabaCloud explicit ListMomentsResult(const std::string &payload); ~ListMomentsResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getMoments()const; - void setMoments(const std::vector& moments); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h index b8e43669d..9d0ac9fcd 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoFacesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoFacesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h index 998c83824..573973df2 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoFacesResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit ListPhotoFacesResult(const std::string &payload); ~ListPhotoFacesResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::vector getFaces()const; - void setFaces(const std::vector& faces); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h index b138861ec..768540621 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoStoresRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoStoresRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h index 811736239..741bfa224 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoStoresResult.h @@ -56,13 +56,9 @@ namespace AlibabaCloud explicit ListPhotoStoresResult(const std::string &payload); ~ListPhotoStoresResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getPhotoStores()const; - void setPhotoStores(const std::vector& photoStores); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h index 1b1db2f25..ff1418ea4 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoTagsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotoTagsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h index f0bd048e9..6017b4d24 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotoTagsResult.h @@ -45,13 +45,9 @@ namespace AlibabaCloud explicit ListPhotoTagsResult(const std::string &payload); ~ListPhotoTagsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::vector getTags()const; - void setTags(const std::vector& tags); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosRequest.h index 985b95bb7..53df8171c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosResult.h index 226a953d8..0d8249f7c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListPhotosResult.h @@ -57,17 +57,11 @@ namespace AlibabaCloud explicit ListPhotosResult(const std::string &payload); ~ListPhotosResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h index 1c8b0e898..c7ddee38a 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListRegisteredTagsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListRegisteredTagsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h index 75f3f2a3e..75d576089 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListRegisteredTagsResult.h @@ -48,13 +48,9 @@ namespace AlibabaCloud explicit ListRegisteredTagsResult(const std::string &payload); ~ListRegisteredTagsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getRegisteredTags()const; - void setRegisteredTags(const std::vector& registeredTags); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h index 03660981c..09225ff57 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h index 05218ac8c..096746f51 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagPhotosResult.h @@ -43,17 +43,11 @@ namespace AlibabaCloud explicit ListTagPhotosResult(const std::string &payload); ~ListTagPhotosResult(); std::string getNextCursor()const; - void setNextCursor(const std::string& nextCursor); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsRequest.h index 2bc62961a..cb53fdf8e 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagsRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTagsRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsResult.h index 506a4d860..5ec8fb79e 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTagsResult.h @@ -60,13 +60,9 @@ namespace AlibabaCloud explicit ListTagsResult(const std::string &payload); ~ListTagsResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); std::vector getTags()const; - void setTags(const std::vector& tags); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h index 7efdd3b1e..be143ce70 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h index bbce01b71..900994ca8 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinePhotosResult.h @@ -57,15 +57,10 @@ namespace AlibabaCloud explicit ListTimeLinePhotosResult(const std::string &payload); ~ListTimeLinePhotosResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h index 95482f6a5..04f28b96f 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ListTimeLinesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h index ca8266996..7fa771c93 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ListTimeLinesResult.h @@ -65,15 +65,10 @@ namespace AlibabaCloud explicit ListTimeLinesResult(const std::string &payload); ~ListTimeLinesResult(); std::vector getTimeLines()const; - void setTimeLines(const std::vector& timeLines); int getNextCursor()const; - void setNextCursor(int nextCursor); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesRequest.h index 2e14dd5ba..6d9f63aa8 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT MergeFacesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT MergeFacesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesResult.h index ce3882a81..2a06f3422 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MergeFacesResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit MergeFacesResult(const std::string &payload); ~MergeFacesResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h index a3a9f6c8c..6755c499b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveAlbumPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveAlbumPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h index 7d1533649..a5d9e5aac 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveAlbumPhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit MoveAlbumPhotosResult(const std::string &payload); ~MoveAlbumPhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h index 1247db332..185357359 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveFacePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT MoveFacePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h index 8e106cc8b..0985f9bca 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/MoveFacePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit MoveFacePhotosResult(const std::string &payload); ~MoveFacePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h index dc0242d58..5bdca5f55 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ReactivatePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ReactivatePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h index a87f25442..c60e8258a 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ReactivatePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit ReactivatePhotosResult(const std::string &payload); ~ReactivatePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h index bfe57328e..90e148917 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterPhotoRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterPhotoRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h index 1a6f1e393..8ae4fcf85 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterPhotoResult.h @@ -56,13 +56,9 @@ namespace AlibabaCloud explicit RegisterPhotoResult(const std::string &payload); ~RegisterPhotoResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getPhoto()const; - void setPhoto(const std::vector& photo); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagRequest.h index 644443f90..6947fa18b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterTagRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RegisterTagRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagResult.h index 03ac3b92b..7d64585f3 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RegisterTagResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit RegisterTagResult(const std::string &payload); ~RegisterTagResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h index 0061e9070..a23c71da8 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveAlbumPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveAlbumPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h index ca9d9a274..55f14d7e6 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveAlbumPhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit RemoveAlbumPhotosResult(const std::string &payload); ~RemoveAlbumPhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h index 589811aba..f497d7346 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveFacePhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RemoveFacePhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h index 11e94c7ec..c5aa808c1 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RemoveFacePhotosResult.h @@ -44,13 +44,9 @@ namespace AlibabaCloud explicit RemoveFacePhotosResult(const std::string &payload); ~RemoveFacePhotosResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::vector getResults()const; - void setResults(const std::vector& results); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h index ceb3060d4..5d865c0f4 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RenameAlbumRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RenameAlbumRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumResult.h index 8768a5f78..a9196c085 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameAlbumResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit RenameAlbumResult(const std::string &payload); ~RenameAlbumResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceRequest.h index 15ccd188d..ad19bbf0c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT RenameFaceRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT RenameFaceRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceResult.h index fa6e6e30d..e21b83374 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/RenameFaceResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit RenameFaceResult(const std::string &payload); ~RenameFaceResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h index 29bca58d1..9c61ccb20 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT SearchPhotosRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT SearchPhotosRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosResult.h index c71b54bd3..5d85c2769 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SearchPhotosResult.h @@ -55,15 +55,10 @@ namespace AlibabaCloud explicit SearchPhotosResult(const std::string &payload); ~SearchPhotosResult(); std::vector getPhotos()const; - void setPhotos(const std::vector& photos); int getTotalCount()const; - void setTotalCount(int totalCount); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h index 42c37512f..c1223764b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetAlbumCoverRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetAlbumCoverRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h index 5fafe06e8..163b350e6 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetAlbumCoverResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit SetAlbumCoverResult(const std::string &payload); ~SetAlbumCoverResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h index a64e7f09c..615bff341 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetFaceCoverRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetFaceCoverRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h index fc75396eb..44030146e 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetFaceCoverResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit SetFaceCoverResult(const std::string &payload); ~SetFaceCoverResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeRequest.h index a7d9f6bd3..63e6cb359 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetMeRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetMeRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeResult.h index 81077b07b..c02280a4c 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetMeResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit SetMeResult(const std::string &payload); ~SetMeResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaRequest.h index 28b59011a..3f91b1ee3 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetQuotaRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT SetQuotaRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaResult.h index a739e72b3..5afdea905 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/SetQuotaResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit SetQuotaResult(const std::string &payload); ~SetQuotaResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoRequest.h index 5a313ca38..a79ab3e8f 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT TagPhotoRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT TagPhotoRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoResult.h index c82bed16b..043c4443d 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/TagPhotoResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit TagPhotoResult(const std::string &payload); ~TagPhotoResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h index 441b81b84..d2b26e54e 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesRequest.h @@ -19,7 +19,8 @@ #include #include -#include +#include +#include namespace AlibabaCloud { @@ -27,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CLOUDPHOTO_EXPORT ToggleFeaturesRequest : public CloudPhotoRequest + class ALIBABACLOUD_CLOUDPHOTO_EXPORT ToggleFeaturesRequest : public RpcServiceRequest { public: diff --git a/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h b/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h index 55f6d41cf..1ce58eb3b 100644 --- a/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h +++ b/cloudphoto/include/alibabacloud/cloudphoto/model/ToggleFeaturesResult.h @@ -38,11 +38,8 @@ namespace AlibabaCloud explicit ToggleFeaturesResult(const std::string &payload); ~ToggleFeaturesResult(); std::string getAction()const; - void setAction(const std::string& action); std::string getMessage()const; - void setMessage(const std::string& message); std::string getCode()const; - void setCode(const std::string& code); protected: void parse(const std::string &payload); diff --git a/cloudphoto/src/CloudPhotoRequest.cc b/cloudphoto/src/CloudPhotoRequest.cc deleted file mode 100644 index 414b7c7b9..000000000 --- a/cloudphoto/src/CloudPhotoRequest.cc +++ /dev/null @@ -1,27 +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 namespace AlibabaCloud; -using namespace AlibabaCloud::CloudPhoto; - -CloudPhotoRequest::CloudPhotoRequest(const std::string & action) : - RpcServiceRequest("cloudphoto", "2017-07-11", action) -{ } - -CloudPhotoRequest::~CloudPhotoRequest() -{ } \ No newline at end of file diff --git a/cloudphoto/src/model/ActivatePhotosRequest.cc b/cloudphoto/src/model/ActivatePhotosRequest.cc index ee45a223a..7a1dbd6e2 100644 --- a/cloudphoto/src/model/ActivatePhotosRequest.cc +++ b/cloudphoto/src/model/ActivatePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ActivatePhotosRequest; ActivatePhotosRequest::ActivatePhotosRequest() : - CloudPhotoRequest("ActivatePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ActivatePhotos") {} ActivatePhotosRequest::~ActivatePhotosRequest() diff --git a/cloudphoto/src/model/ActivatePhotosResult.cc b/cloudphoto/src/model/ActivatePhotosResult.cc index b9fcc272c..be648181a 100644 --- a/cloudphoto/src/model/ActivatePhotosResult.cc +++ b/cloudphoto/src/model/ActivatePhotosResult.cc @@ -43,15 +43,21 @@ void ActivatePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string ActivatePhotosResult::getAction()const return action_; } -void ActivatePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ActivatePhotosResult::getMessage()const { return message_; } -void ActivatePhotosResult::setMessage(const std::string& message) +std::vector ActivatePhotosResult::getResults()const { - message_ = message; + return results_; } std::string ActivatePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string ActivatePhotosResult::getCode()const return code_; } -void ActivatePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/AddAlbumPhotosRequest.cc b/cloudphoto/src/model/AddAlbumPhotosRequest.cc index c731d20db..cdf2eb347 100644 --- a/cloudphoto/src/model/AddAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/AddAlbumPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::AddAlbumPhotosRequest; AddAlbumPhotosRequest::AddAlbumPhotosRequest() : - CloudPhotoRequest("AddAlbumPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "AddAlbumPhotos") {} AddAlbumPhotosRequest::~AddAlbumPhotosRequest() diff --git a/cloudphoto/src/model/AddAlbumPhotosResult.cc b/cloudphoto/src/model/AddAlbumPhotosResult.cc index 8169ff800..dec78efb8 100644 --- a/cloudphoto/src/model/AddAlbumPhotosResult.cc +++ b/cloudphoto/src/model/AddAlbumPhotosResult.cc @@ -43,15 +43,21 @@ void AddAlbumPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string AddAlbumPhotosResult::getAction()const return action_; } -void AddAlbumPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string AddAlbumPhotosResult::getMessage()const { return message_; } -void AddAlbumPhotosResult::setMessage(const std::string& message) +std::vector AddAlbumPhotosResult::getResults()const { - message_ = message; + return results_; } std::string AddAlbumPhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string AddAlbumPhotosResult::getCode()const return code_; } -void AddAlbumPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/CreateAlbumRequest.cc b/cloudphoto/src/model/CreateAlbumRequest.cc index 1abb41db7..250f8f7c6 100644 --- a/cloudphoto/src/model/CreateAlbumRequest.cc +++ b/cloudphoto/src/model/CreateAlbumRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::CreateAlbumRequest; CreateAlbumRequest::CreateAlbumRequest() : - CloudPhotoRequest("CreateAlbum") + RpcServiceRequest("cloudphoto", "2017-07-11", "CreateAlbum") {} CreateAlbumRequest::~CreateAlbumRequest() diff --git a/cloudphoto/src/model/CreateAlbumResult.cc b/cloudphoto/src/model/CreateAlbumResult.cc index e72e080f0..9207cc5c6 100644 --- a/cloudphoto/src/model/CreateAlbumResult.cc +++ b/cloudphoto/src/model/CreateAlbumResult.cc @@ -44,35 +44,56 @@ void CreateAlbumResult::parse(const std::string &payload) for (auto value : allAlbum) { Album albumObject; - albumObject.id = std::stol(value["Id"].asString()); - albumObject.name = value["Name"].asString(); - albumObject.state = value["State"].asString(); - albumObject.remark = value["Remark"].asString(); - albumObject.photosCount = std::stol(value["PhotosCount"].asString()); - albumObject.ctime = std::stol(value["Ctime"].asString()); - albumObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["Id"].isNull()) + albumObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + albumObject.name = value["Name"].asString(); + if(!value["State"].isNull()) + albumObject.state = value["State"].asString(); + if(!value["Remark"].isNull()) + albumObject.remark = value["Remark"].asString(); + if(!value["PhotosCount"].isNull()) + albumObject.photosCount = std::stol(value["PhotosCount"].asString()); + if(!value["Ctime"].isNull()) + albumObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + albumObject.mtime = std::stol(value["Mtime"].asString()); auto allCover = value["Cover"]; for (auto value : allCover) { Album::Cover coverObject; - coverObject.id = std::stol(value["Id"].asString()); - coverObject.title = value["Title"].asString(); - coverObject.fileId = value["FileId"].asString(); - coverObject.state = value["State"].asString(); - coverObject.md5 = value["Md5"].asString(); - coverObject.isVideo = std::stoi(value["IsVideo"].asString()); - coverObject.width = std::stol(value["Width"].asString()); - coverObject.height = std::stol(value["Height"].asString()); - coverObject.ctime = std::stol(value["Ctime"].asString()); - coverObject.mtime = std::stol(value["Mtime"].asString()); - coverObject.remark = value["Remark"].asString(); + if(!value["Id"].isNull()) + coverObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + coverObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + coverObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + coverObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + coverObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + coverObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Width"].isNull()) + coverObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + coverObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + coverObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + coverObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["Remark"].isNull()) + coverObject.remark = value["Remark"].asString(); albumObject.cover.push_back(coverObject); } album_.push_back(albumObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -81,19 +102,14 @@ std::string CreateAlbumResult::getAction()const return action_; } -void CreateAlbumResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string CreateAlbumResult::getMessage()const { return message_; } -void CreateAlbumResult::setMessage(const std::string& message) +std::vector CreateAlbumResult::getAlbum()const { - message_ = message; + return album_; } std::string CreateAlbumResult::getCode()const @@ -101,8 +117,3 @@ std::string CreateAlbumResult::getCode()const return code_; } -void CreateAlbumResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/CreatePhotoRequest.cc b/cloudphoto/src/model/CreatePhotoRequest.cc index b3b345e44..6191ee8a2 100644 --- a/cloudphoto/src/model/CreatePhotoRequest.cc +++ b/cloudphoto/src/model/CreatePhotoRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::CreatePhotoRequest; CreatePhotoRequest::CreatePhotoRequest() : - CloudPhotoRequest("CreatePhoto") + RpcServiceRequest("cloudphoto", "2017-07-11", "CreatePhoto") {} CreatePhotoRequest::~CreatePhotoRequest() diff --git a/cloudphoto/src/model/CreatePhotoResult.cc b/cloudphoto/src/model/CreatePhotoResult.cc index 7686feb67..ee81dcf21 100644 --- a/cloudphoto/src/model/CreatePhotoResult.cc +++ b/cloudphoto/src/model/CreatePhotoResult.cc @@ -44,26 +44,44 @@ void CreatePhotoResult::parse(const std::string &payload) for (auto value : allPhoto) { Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Id"].isNull()) + photoObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photoObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photoObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photoObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photoObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photoObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photoObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Size"].isNull()) + photoObject.size = std::stol(value["Size"].asString()); + if(!value["Remark"].isNull()) + photoObject.remark = value["Remark"].asString(); + if(!value["Width"].isNull()) + photoObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photoObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photoObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photoObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photoObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); photo_.push_back(photoObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -72,19 +90,14 @@ std::string CreatePhotoResult::getAction()const return action_; } -void CreatePhotoResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string CreatePhotoResult::getMessage()const { return message_; } -void CreatePhotoResult::setMessage(const std::string& message) +std::vector CreatePhotoResult::getPhoto()const { - message_ = message; + return photo_; } std::string CreatePhotoResult::getCode()const @@ -92,8 +105,3 @@ std::string CreatePhotoResult::getCode()const return code_; } -void CreatePhotoResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/CreatePhotoStoreRequest.cc b/cloudphoto/src/model/CreatePhotoStoreRequest.cc index a0a31141f..42f32ce5a 100644 --- a/cloudphoto/src/model/CreatePhotoStoreRequest.cc +++ b/cloudphoto/src/model/CreatePhotoStoreRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::CreatePhotoStoreRequest; CreatePhotoStoreRequest::CreatePhotoStoreRequest() : - CloudPhotoRequest("CreatePhotoStore") + RpcServiceRequest("cloudphoto", "2017-07-11", "CreatePhotoStore") {} CreatePhotoStoreRequest::~CreatePhotoStoreRequest() diff --git a/cloudphoto/src/model/CreatePhotoStoreResult.cc b/cloudphoto/src/model/CreatePhotoStoreResult.cc index aaccf491a..e94b06341 100644 --- a/cloudphoto/src/model/CreatePhotoStoreResult.cc +++ b/cloudphoto/src/model/CreatePhotoStoreResult.cc @@ -40,9 +40,12 @@ void CreatePhotoStoreResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string CreatePhotoStoreResult::getAction()const return action_; } -void CreatePhotoStoreResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string CreatePhotoStoreResult::getMessage()const { return message_; } -void CreatePhotoStoreResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string CreatePhotoStoreResult::getCode()const { return code_; } -void CreatePhotoStoreResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/CreateTransactionRequest.cc b/cloudphoto/src/model/CreateTransactionRequest.cc index 04bb9762a..12c7185e4 100644 --- a/cloudphoto/src/model/CreateTransactionRequest.cc +++ b/cloudphoto/src/model/CreateTransactionRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::CreateTransactionRequest; CreateTransactionRequest::CreateTransactionRequest() : - CloudPhotoRequest("CreateTransaction") + RpcServiceRequest("cloudphoto", "2017-07-11", "CreateTransaction") {} CreateTransactionRequest::~CreateTransactionRequest() diff --git a/cloudphoto/src/model/CreateTransactionResult.cc b/cloudphoto/src/model/CreateTransactionResult.cc index e864b612d..ac8ba7e66 100644 --- a/cloudphoto/src/model/CreateTransactionResult.cc +++ b/cloudphoto/src/model/CreateTransactionResult.cc @@ -48,21 +48,32 @@ void CreateTransactionResult::parse(const std::string &payload) for (auto value : allUpload) { Transaction::Upload uploadObject; - uploadObject.bucket = value["Bucket"].asString(); - uploadObject.fileId = value["FileId"].asString(); - uploadObject.ossEndpoint = value["OssEndpoint"].asString(); - uploadObject.objectKey = value["ObjectKey"].asString(); - uploadObject.sessionId = value["SessionId"].asString(); - uploadObject.accessKeyId = value["AccessKeyId"].asString(); - uploadObject.accessKeySecret = value["AccessKeySecret"].asString(); - uploadObject.stsToken = value["StsToken"].asString(); + if(!value["Bucket"].isNull()) + uploadObject.bucket = value["Bucket"].asString(); + if(!value["FileId"].isNull()) + uploadObject.fileId = value["FileId"].asString(); + if(!value["OssEndpoint"].isNull()) + uploadObject.ossEndpoint = value["OssEndpoint"].asString(); + if(!value["ObjectKey"].isNull()) + uploadObject.objectKey = value["ObjectKey"].asString(); + if(!value["SessionId"].isNull()) + uploadObject.sessionId = value["SessionId"].asString(); + if(!value["AccessKeyId"].isNull()) + uploadObject.accessKeyId = value["AccessKeyId"].asString(); + if(!value["AccessKeySecret"].isNull()) + uploadObject.accessKeySecret = value["AccessKeySecret"].asString(); + if(!value["StsToken"].isNull()) + uploadObject.stsToken = value["StsToken"].asString(); transactionObject.upload.push_back(uploadObject); } transaction_.push_back(transactionObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -71,9 +82,9 @@ std::string CreateTransactionResult::getAction()const return action_; } -void CreateTransactionResult::setAction(const std::string& action) +std::vector CreateTransactionResult::getTransaction()const { - action_ = action; + return transaction_; } std::string CreateTransactionResult::getMessage()const @@ -81,18 +92,8 @@ std::string CreateTransactionResult::getMessage()const return message_; } -void CreateTransactionResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string CreateTransactionResult::getCode()const { return code_; } -void CreateTransactionResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/DeleteAlbumsRequest.cc b/cloudphoto/src/model/DeleteAlbumsRequest.cc index bbaf56283..07cc88a2e 100644 --- a/cloudphoto/src/model/DeleteAlbumsRequest.cc +++ b/cloudphoto/src/model/DeleteAlbumsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::DeleteAlbumsRequest; DeleteAlbumsRequest::DeleteAlbumsRequest() : - CloudPhotoRequest("DeleteAlbums") + RpcServiceRequest("cloudphoto", "2017-07-11", "DeleteAlbums") {} DeleteAlbumsRequest::~DeleteAlbumsRequest() diff --git a/cloudphoto/src/model/DeleteAlbumsResult.cc b/cloudphoto/src/model/DeleteAlbumsResult.cc index bc60ac514..6ff9cd15d 100644 --- a/cloudphoto/src/model/DeleteAlbumsResult.cc +++ b/cloudphoto/src/model/DeleteAlbumsResult.cc @@ -43,15 +43,21 @@ void DeleteAlbumsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string DeleteAlbumsResult::getAction()const return action_; } -void DeleteAlbumsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string DeleteAlbumsResult::getMessage()const { return message_; } -void DeleteAlbumsResult::setMessage(const std::string& message) +std::vector DeleteAlbumsResult::getResults()const { - message_ = message; + return results_; } std::string DeleteAlbumsResult::getCode()const @@ -80,8 +81,3 @@ std::string DeleteAlbumsResult::getCode()const return code_; } -void DeleteAlbumsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/DeleteFacesRequest.cc b/cloudphoto/src/model/DeleteFacesRequest.cc index a55dc5ca5..374c47475 100644 --- a/cloudphoto/src/model/DeleteFacesRequest.cc +++ b/cloudphoto/src/model/DeleteFacesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::DeleteFacesRequest; DeleteFacesRequest::DeleteFacesRequest() : - CloudPhotoRequest("DeleteFaces") + RpcServiceRequest("cloudphoto", "2017-07-11", "DeleteFaces") {} DeleteFacesRequest::~DeleteFacesRequest() diff --git a/cloudphoto/src/model/DeleteFacesResult.cc b/cloudphoto/src/model/DeleteFacesResult.cc index 91904a707..437b40497 100644 --- a/cloudphoto/src/model/DeleteFacesResult.cc +++ b/cloudphoto/src/model/DeleteFacesResult.cc @@ -43,15 +43,21 @@ void DeleteFacesResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string DeleteFacesResult::getAction()const return action_; } -void DeleteFacesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string DeleteFacesResult::getMessage()const { return message_; } -void DeleteFacesResult::setMessage(const std::string& message) +std::vector DeleteFacesResult::getResults()const { - message_ = message; + return results_; } std::string DeleteFacesResult::getCode()const @@ -80,8 +81,3 @@ std::string DeleteFacesResult::getCode()const return code_; } -void DeleteFacesResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/DeletePhotoStoreRequest.cc b/cloudphoto/src/model/DeletePhotoStoreRequest.cc index f486706f0..9909770b0 100644 --- a/cloudphoto/src/model/DeletePhotoStoreRequest.cc +++ b/cloudphoto/src/model/DeletePhotoStoreRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::DeletePhotoStoreRequest; DeletePhotoStoreRequest::DeletePhotoStoreRequest() : - CloudPhotoRequest("DeletePhotoStore") + RpcServiceRequest("cloudphoto", "2017-07-11", "DeletePhotoStore") {} DeletePhotoStoreRequest::~DeletePhotoStoreRequest() diff --git a/cloudphoto/src/model/DeletePhotoStoreResult.cc b/cloudphoto/src/model/DeletePhotoStoreResult.cc index 1d513b70a..e8432af27 100644 --- a/cloudphoto/src/model/DeletePhotoStoreResult.cc +++ b/cloudphoto/src/model/DeletePhotoStoreResult.cc @@ -40,9 +40,12 @@ void DeletePhotoStoreResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string DeletePhotoStoreResult::getAction()const return action_; } -void DeletePhotoStoreResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string DeletePhotoStoreResult::getMessage()const { return message_; } -void DeletePhotoStoreResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string DeletePhotoStoreResult::getCode()const { return code_; } -void DeletePhotoStoreResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/DeletePhotosRequest.cc b/cloudphoto/src/model/DeletePhotosRequest.cc index c55296f14..2a3cdbcd2 100644 --- a/cloudphoto/src/model/DeletePhotosRequest.cc +++ b/cloudphoto/src/model/DeletePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::DeletePhotosRequest; DeletePhotosRequest::DeletePhotosRequest() : - CloudPhotoRequest("DeletePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "DeletePhotos") {} DeletePhotosRequest::~DeletePhotosRequest() diff --git a/cloudphoto/src/model/DeletePhotosResult.cc b/cloudphoto/src/model/DeletePhotosResult.cc index d973ce8d6..e2efd2bdf 100644 --- a/cloudphoto/src/model/DeletePhotosResult.cc +++ b/cloudphoto/src/model/DeletePhotosResult.cc @@ -43,15 +43,21 @@ void DeletePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string DeletePhotosResult::getAction()const return action_; } -void DeletePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string DeletePhotosResult::getMessage()const { return message_; } -void DeletePhotosResult::setMessage(const std::string& message) +std::vector DeletePhotosResult::getResults()const { - message_ = message; + return results_; } std::string DeletePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string DeletePhotosResult::getCode()const return code_; } -void DeletePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/EditPhotoStoreRequest.cc b/cloudphoto/src/model/EditPhotoStoreRequest.cc index 4fe663a21..a1eee724f 100644 --- a/cloudphoto/src/model/EditPhotoStoreRequest.cc +++ b/cloudphoto/src/model/EditPhotoStoreRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::EditPhotoStoreRequest; EditPhotoStoreRequest::EditPhotoStoreRequest() : - CloudPhotoRequest("EditPhotoStore") + RpcServiceRequest("cloudphoto", "2017-07-11", "EditPhotoStore") {} EditPhotoStoreRequest::~EditPhotoStoreRequest() diff --git a/cloudphoto/src/model/EditPhotoStoreResult.cc b/cloudphoto/src/model/EditPhotoStoreResult.cc index 0fb4599eb..f6f2b1c59 100644 --- a/cloudphoto/src/model/EditPhotoStoreResult.cc +++ b/cloudphoto/src/model/EditPhotoStoreResult.cc @@ -40,9 +40,12 @@ void EditPhotoStoreResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string EditPhotoStoreResult::getAction()const return action_; } -void EditPhotoStoreResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string EditPhotoStoreResult::getMessage()const { return message_; } -void EditPhotoStoreResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string EditPhotoStoreResult::getCode()const { return code_; } -void EditPhotoStoreResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/EditPhotosRequest.cc b/cloudphoto/src/model/EditPhotosRequest.cc index 07183003f..57bcd94e1 100644 --- a/cloudphoto/src/model/EditPhotosRequest.cc +++ b/cloudphoto/src/model/EditPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::EditPhotosRequest; EditPhotosRequest::EditPhotosRequest() : - CloudPhotoRequest("EditPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "EditPhotos") {} EditPhotosRequest::~EditPhotosRequest() diff --git a/cloudphoto/src/model/EditPhotosResult.cc b/cloudphoto/src/model/EditPhotosResult.cc index 18ef0cb21..b23cb77fd 100644 --- a/cloudphoto/src/model/EditPhotosResult.cc +++ b/cloudphoto/src/model/EditPhotosResult.cc @@ -43,15 +43,21 @@ void EditPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string EditPhotosResult::getAction()const return action_; } -void EditPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string EditPhotosResult::getMessage()const { return message_; } -void EditPhotosResult::setMessage(const std::string& message) +std::vector EditPhotosResult::getResults()const { - message_ = message; + return results_; } std::string EditPhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string EditPhotosResult::getCode()const return code_; } -void EditPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetDownloadUrlRequest.cc b/cloudphoto/src/model/GetDownloadUrlRequest.cc index 154da9b12..e7b5028bd 100644 --- a/cloudphoto/src/model/GetDownloadUrlRequest.cc +++ b/cloudphoto/src/model/GetDownloadUrlRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetDownloadUrlRequest; GetDownloadUrlRequest::GetDownloadUrlRequest() : - CloudPhotoRequest("GetDownloadUrl") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetDownloadUrl") {} GetDownloadUrlRequest::~GetDownloadUrlRequest() diff --git a/cloudphoto/src/model/GetDownloadUrlResult.cc b/cloudphoto/src/model/GetDownloadUrlResult.cc index ed3ffcda7..d807857b0 100644 --- a/cloudphoto/src/model/GetDownloadUrlResult.cc +++ b/cloudphoto/src/model/GetDownloadUrlResult.cc @@ -40,10 +40,14 @@ void GetDownloadUrlResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - downloadUrl_ = value["DownloadUrl"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["DownloadUrl"].isNull()) + downloadUrl_ = value["DownloadUrl"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -52,38 +56,18 @@ std::string GetDownloadUrlResult::getAction()const return action_; } -void GetDownloadUrlResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetDownloadUrlResult::getMessage()const { return message_; } -void GetDownloadUrlResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetDownloadUrlResult::getCode()const { return code_; } -void GetDownloadUrlResult::setCode(const std::string& code) -{ - code_ = code; -} - std::string GetDownloadUrlResult::getDownloadUrl()const { return downloadUrl_; } -void GetDownloadUrlResult::setDownloadUrl(const std::string& downloadUrl) -{ - downloadUrl_ = downloadUrl; -} - diff --git a/cloudphoto/src/model/GetDownloadUrlsRequest.cc b/cloudphoto/src/model/GetDownloadUrlsRequest.cc index 444312f21..2bf9d0a55 100644 --- a/cloudphoto/src/model/GetDownloadUrlsRequest.cc +++ b/cloudphoto/src/model/GetDownloadUrlsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetDownloadUrlsRequest; GetDownloadUrlsRequest::GetDownloadUrlsRequest() : - CloudPhotoRequest("GetDownloadUrls") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetDownloadUrls") {} GetDownloadUrlsRequest::~GetDownloadUrlsRequest() diff --git a/cloudphoto/src/model/GetDownloadUrlsResult.cc b/cloudphoto/src/model/GetDownloadUrlsResult.cc index cc627ffcd..2d70660c1 100644 --- a/cloudphoto/src/model/GetDownloadUrlsResult.cc +++ b/cloudphoto/src/model/GetDownloadUrlsResult.cc @@ -43,16 +43,23 @@ void GetDownloadUrlsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.downloadUrl = value["DownloadUrl"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["DownloadUrl"].isNull()) + resultsObject.downloadUrl = value["DownloadUrl"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,19 +68,14 @@ std::string GetDownloadUrlsResult::getAction()const return action_; } -void GetDownloadUrlsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetDownloadUrlsResult::getMessage()const { return message_; } -void GetDownloadUrlsResult::setMessage(const std::string& message) +std::vector GetDownloadUrlsResult::getResults()const { - message_ = message; + return results_; } std::string GetDownloadUrlsResult::getCode()const @@ -81,8 +83,3 @@ std::string GetDownloadUrlsResult::getCode()const return code_; } -void GetDownloadUrlsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc b/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc index 0b990dc86..529d08a44 100644 --- a/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc +++ b/cloudphoto/src/model/GetFramedPhotoUrlsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetFramedPhotoUrlsRequest; GetFramedPhotoUrlsRequest::GetFramedPhotoUrlsRequest() : - CloudPhotoRequest("GetFramedPhotoUrls") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetFramedPhotoUrls") {} GetFramedPhotoUrlsRequest::~GetFramedPhotoUrlsRequest() diff --git a/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc b/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc index 52f32a6ab..9b247d8d0 100644 --- a/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc +++ b/cloudphoto/src/model/GetFramedPhotoUrlsResult.cc @@ -43,16 +43,23 @@ void GetFramedPhotoUrlsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.framedPhotoUrl = value["FramedPhotoUrl"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["FramedPhotoUrl"].isNull()) + resultsObject.framedPhotoUrl = value["FramedPhotoUrl"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,19 +68,14 @@ std::string GetFramedPhotoUrlsResult::getAction()const return action_; } -void GetFramedPhotoUrlsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetFramedPhotoUrlsResult::getMessage()const { return message_; } -void GetFramedPhotoUrlsResult::setMessage(const std::string& message) +std::vector GetFramedPhotoUrlsResult::getResults()const { - message_ = message; + return results_; } std::string GetFramedPhotoUrlsResult::getCode()const @@ -81,8 +83,3 @@ std::string GetFramedPhotoUrlsResult::getCode()const return code_; } -void GetFramedPhotoUrlsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetLibraryRequest.cc b/cloudphoto/src/model/GetLibraryRequest.cc index 8450de71b..71c96e60b 100644 --- a/cloudphoto/src/model/GetLibraryRequest.cc +++ b/cloudphoto/src/model/GetLibraryRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetLibraryRequest; GetLibraryRequest::GetLibraryRequest() : - CloudPhotoRequest("GetLibrary") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetLibrary") {} GetLibraryRequest::~GetLibraryRequest() diff --git a/cloudphoto/src/model/GetLibraryResult.cc b/cloudphoto/src/model/GetLibraryResult.cc index 3f80c7d78..a1238f4be 100644 --- a/cloudphoto/src/model/GetLibraryResult.cc +++ b/cloudphoto/src/model/GetLibraryResult.cc @@ -48,29 +48,42 @@ void GetLibraryResult::parse(const std::string &payload) for (auto value : allQuota) { Library::Quota quotaObject; - quotaObject.totalQuota = std::stol(value["TotalQuota"].asString()); - quotaObject.totalTrashQuota = std::stol(value["TotalTrashQuota"].asString()); - quotaObject.facesCount = std::stoi(value["FacesCount"].asString()); - quotaObject.photosCount = std::stoi(value["PhotosCount"].asString()); - quotaObject.usedQuota = std::stol(value["UsedQuota"].asString()); - quotaObject.videosCount = std::stoi(value["VideosCount"].asString()); - quotaObject.activeSize = std::stol(value["ActiveSize"].asString()); - quotaObject.inactiveSize = std::stol(value["InactiveSize"].asString()); + if(!value["TotalQuota"].isNull()) + quotaObject.totalQuota = std::stol(value["TotalQuota"].asString()); + if(!value["TotalTrashQuota"].isNull()) + quotaObject.totalTrashQuota = std::stol(value["TotalTrashQuota"].asString()); + if(!value["FacesCount"].isNull()) + quotaObject.facesCount = std::stoi(value["FacesCount"].asString()); + if(!value["PhotosCount"].isNull()) + quotaObject.photosCount = std::stoi(value["PhotosCount"].asString()); + if(!value["UsedQuota"].isNull()) + quotaObject.usedQuota = std::stol(value["UsedQuota"].asString()); + if(!value["VideosCount"].isNull()) + quotaObject.videosCount = std::stoi(value["VideosCount"].asString()); + if(!value["ActiveSize"].isNull()) + quotaObject.activeSize = std::stol(value["ActiveSize"].asString()); + if(!value["InactiveSize"].isNull()) + quotaObject.inactiveSize = std::stol(value["InactiveSize"].asString()); libraryObject.quota.push_back(quotaObject); } auto allAutoCleanConfig = value["AutoCleanConfig"]; for (auto value : allAutoCleanConfig) { Library::AutoCleanConfig autoCleanConfigObject; - autoCleanConfigObject.autoCleanEnabled = std::stoi(value["AutoCleanEnabled"].asString()); - autoCleanConfigObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); + if(!value["AutoCleanEnabled"].isNull()) + autoCleanConfigObject.autoCleanEnabled = value["AutoCleanEnabled"].asString() == "true"; + if(!value["AutoCleanDays"].isNull()) + autoCleanConfigObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); libraryObject.autoCleanConfig.push_back(autoCleanConfigObject); } library_.push_back(libraryObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -79,19 +92,14 @@ std::string GetLibraryResult::getAction()const return action_; } -void GetLibraryResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetLibraryResult::getMessage()const { return message_; } -void GetLibraryResult::setMessage(const std::string& message) +std::vector GetLibraryResult::getLibrary()const { - message_ = message; + return library_; } std::string GetLibraryResult::getCode()const @@ -99,8 +107,3 @@ std::string GetLibraryResult::getCode()const return code_; } -void GetLibraryResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetPhotoStoreRequest.cc b/cloudphoto/src/model/GetPhotoStoreRequest.cc index 3628552dd..c57b95bd0 100644 --- a/cloudphoto/src/model/GetPhotoStoreRequest.cc +++ b/cloudphoto/src/model/GetPhotoStoreRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetPhotoStoreRequest; GetPhotoStoreRequest::GetPhotoStoreRequest() : - CloudPhotoRequest("GetPhotoStore") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetPhotoStore") {} GetPhotoStoreRequest::~GetPhotoStoreRequest() diff --git a/cloudphoto/src/model/GetPhotoStoreResult.cc b/cloudphoto/src/model/GetPhotoStoreResult.cc index 796e26927..ffccf3361 100644 --- a/cloudphoto/src/model/GetPhotoStoreResult.cc +++ b/cloudphoto/src/model/GetPhotoStoreResult.cc @@ -44,30 +44,46 @@ void GetPhotoStoreResult::parse(const std::string &payload) for (auto value : allPhotoStore) { PhotoStore photoStoreObject; - photoStoreObject.id = std::stol(value["Id"].asString()); - photoStoreObject.name = value["Name"].asString(); - photoStoreObject.remark = value["Remark"].asString(); - photoStoreObject.autoCleanEnabled = std::stoi(value["AutoCleanEnabled"].asString()); - photoStoreObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); - photoStoreObject.defaultQuota = std::stol(value["DefaultQuota"].asString()); - photoStoreObject.defaultTrashQuota = std::stol(value["DefaultTrashQuota"].asString()); - photoStoreObject.ctime = std::stol(value["Ctime"].asString()); - photoStoreObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["Id"].isNull()) + photoStoreObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + photoStoreObject.name = value["Name"].asString(); + if(!value["Remark"].isNull()) + photoStoreObject.remark = value["Remark"].asString(); + if(!value["AutoCleanEnabled"].isNull()) + photoStoreObject.autoCleanEnabled = value["AutoCleanEnabled"].asString() == "true"; + if(!value["AutoCleanDays"].isNull()) + photoStoreObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); + if(!value["DefaultQuota"].isNull()) + photoStoreObject.defaultQuota = std::stol(value["DefaultQuota"].asString()); + if(!value["DefaultTrashQuota"].isNull()) + photoStoreObject.defaultTrashQuota = std::stol(value["DefaultTrashQuota"].asString()); + if(!value["Ctime"].isNull()) + photoStoreObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photoStoreObject.mtime = std::stol(value["Mtime"].asString()); auto allBuckets = value["Buckets"]["Bucket"]; for (auto value : allBuckets) { PhotoStore::Bucket bucketObject; - bucketObject.name = value["Name"].asString(); - bucketObject.region = value["Region"].asString(); - bucketObject.state = value["State"].asString(); - bucketObject.acl = value["Acl"].asString(); + if(!value["Name"].isNull()) + bucketObject.name = value["Name"].asString(); + if(!value["Region"].isNull()) + bucketObject.region = value["Region"].asString(); + if(!value["State"].isNull()) + bucketObject.state = value["State"].asString(); + if(!value["Acl"].isNull()) + bucketObject.acl = value["Acl"].asString(); photoStoreObject.buckets.push_back(bucketObject); } photoStore_.push_back(photoStoreObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -76,19 +92,14 @@ std::string GetPhotoStoreResult::getAction()const return action_; } -void GetPhotoStoreResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetPhotoStoreResult::getMessage()const { return message_; } -void GetPhotoStoreResult::setMessage(const std::string& message) +std::vector GetPhotoStoreResult::getPhotoStore()const { - message_ = message; + return photoStore_; } std::string GetPhotoStoreResult::getCode()const @@ -96,8 +107,3 @@ std::string GetPhotoStoreResult::getCode()const return code_; } -void GetPhotoStoreResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetPhotosByMd5sRequest.cc b/cloudphoto/src/model/GetPhotosByMd5sRequest.cc index d0de62385..5fc1d9a2e 100644 --- a/cloudphoto/src/model/GetPhotosByMd5sRequest.cc +++ b/cloudphoto/src/model/GetPhotosByMd5sRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetPhotosByMd5sRequest; GetPhotosByMd5sRequest::GetPhotosByMd5sRequest() : - CloudPhotoRequest("GetPhotosByMd5s") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetPhotosByMd5s") {} GetPhotosByMd5sRequest::~GetPhotosByMd5sRequest() diff --git a/cloudphoto/src/model/GetPhotosByMd5sResult.cc b/cloudphoto/src/model/GetPhotosByMd5sResult.cc index 9fee99c6b..bafa38ec7 100644 --- a/cloudphoto/src/model/GetPhotosByMd5sResult.cc +++ b/cloudphoto/src/model/GetPhotosByMd5sResult.cc @@ -43,57 +43,65 @@ void GetPhotosByMd5sResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector GetPhotosByMd5sResult::getPhotos()const +{ + return photos_; +} + std::string GetPhotosByMd5sResult::getAction()const { return action_; } -void GetPhotosByMd5sResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetPhotosByMd5sResult::getMessage()const { return message_; } -void GetPhotosByMd5sResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetPhotosByMd5sResult::getCode()const { return code_; } -void GetPhotosByMd5sResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetPhotosRequest.cc b/cloudphoto/src/model/GetPhotosRequest.cc index 5ac54d9b0..99b2c3994 100644 --- a/cloudphoto/src/model/GetPhotosRequest.cc +++ b/cloudphoto/src/model/GetPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetPhotosRequest; GetPhotosRequest::GetPhotosRequest() : - CloudPhotoRequest("GetPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetPhotos") {} GetPhotosRequest::~GetPhotosRequest() diff --git a/cloudphoto/src/model/GetPhotosResult.cc b/cloudphoto/src/model/GetPhotosResult.cc index dbf308a0f..de2fdd347 100644 --- a/cloudphoto/src/model/GetPhotosResult.cc +++ b/cloudphoto/src/model/GetPhotosResult.cc @@ -43,59 +43,69 @@ void GetPhotosResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.inactiveTime = std::stol(value["InactiveTime"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photoObject.like = std::stol(value["Like"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["InactiveTime"].isNull()) + photosObject.inactiveTime = std::stol(value["InactiveTime"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Like"].isNull()) + photosObject.like = std::stol(value["Like"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector GetPhotosResult::getPhotos()const +{ + return photos_; +} + std::string GetPhotosResult::getAction()const { return action_; } -void GetPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetPhotosResult::getMessage()const { return message_; } -void GetPhotosResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetPhotosResult::getCode()const { return code_; } -void GetPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc b/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc index 6582a78e1..3dfb6f8fc 100644 --- a/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc +++ b/cloudphoto/src/model/GetPrivateAccessUrlsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetPrivateAccessUrlsRequest; GetPrivateAccessUrlsRequest::GetPrivateAccessUrlsRequest() : - CloudPhotoRequest("GetPrivateAccessUrls") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetPrivateAccessUrls") {} GetPrivateAccessUrlsRequest::~GetPrivateAccessUrlsRequest() diff --git a/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc b/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc index 8fdbd5ab8..260b56099 100644 --- a/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc +++ b/cloudphoto/src/model/GetPrivateAccessUrlsResult.cc @@ -43,16 +43,23 @@ void GetPrivateAccessUrlsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.accessUrl = value["AccessUrl"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["AccessUrl"].isNull()) + resultsObject.accessUrl = value["AccessUrl"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,19 +68,14 @@ std::string GetPrivateAccessUrlsResult::getAction()const return action_; } -void GetPrivateAccessUrlsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetPrivateAccessUrlsResult::getMessage()const { return message_; } -void GetPrivateAccessUrlsResult::setMessage(const std::string& message) +std::vector GetPrivateAccessUrlsResult::getResults()const { - message_ = message; + return results_; } std::string GetPrivateAccessUrlsResult::getCode()const @@ -81,8 +83,3 @@ std::string GetPrivateAccessUrlsResult::getCode()const return code_; } -void GetPrivateAccessUrlsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc b/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc index 730f2705a..e65323707 100644 --- a/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc +++ b/cloudphoto/src/model/GetPublicAccessUrlsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetPublicAccessUrlsRequest; GetPublicAccessUrlsRequest::GetPublicAccessUrlsRequest() : - CloudPhotoRequest("GetPublicAccessUrls") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetPublicAccessUrls") {} GetPublicAccessUrlsRequest::~GetPublicAccessUrlsRequest() diff --git a/cloudphoto/src/model/GetPublicAccessUrlsResult.cc b/cloudphoto/src/model/GetPublicAccessUrlsResult.cc index 93e46346b..c7299258b 100644 --- a/cloudphoto/src/model/GetPublicAccessUrlsResult.cc +++ b/cloudphoto/src/model/GetPublicAccessUrlsResult.cc @@ -43,16 +43,23 @@ void GetPublicAccessUrlsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.accessUrl = value["AccessUrl"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["AccessUrl"].isNull()) + resultsObject.accessUrl = value["AccessUrl"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,19 +68,14 @@ std::string GetPublicAccessUrlsResult::getAction()const return action_; } -void GetPublicAccessUrlsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetPublicAccessUrlsResult::getMessage()const { return message_; } -void GetPublicAccessUrlsResult::setMessage(const std::string& message) +std::vector GetPublicAccessUrlsResult::getResults()const { - message_ = message; + return results_; } std::string GetPublicAccessUrlsResult::getCode()const @@ -81,8 +83,3 @@ std::string GetPublicAccessUrlsResult::getCode()const return code_; } -void GetPublicAccessUrlsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetQuotaRequest.cc b/cloudphoto/src/model/GetQuotaRequest.cc index e269824dc..176a108ee 100644 --- a/cloudphoto/src/model/GetQuotaRequest.cc +++ b/cloudphoto/src/model/GetQuotaRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetQuotaRequest; GetQuotaRequest::GetQuotaRequest() : - CloudPhotoRequest("GetQuota") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetQuota") {} GetQuotaRequest::~GetQuotaRequest() diff --git a/cloudphoto/src/model/GetQuotaResult.cc b/cloudphoto/src/model/GetQuotaResult.cc index fa3de6c56..adc6c0f32 100644 --- a/cloudphoto/src/model/GetQuotaResult.cc +++ b/cloudphoto/src/model/GetQuotaResult.cc @@ -44,16 +44,24 @@ void GetQuotaResult::parse(const std::string &payload) for (auto value : allQuota) { Quota quotaObject; - quotaObject.totalQuota = std::stol(value["TotalQuota"].asString()); - quotaObject.facesCount = std::stoi(value["FacesCount"].asString()); - quotaObject.photosCount = std::stoi(value["PhotosCount"].asString()); - quotaObject.usedQuota = std::stol(value["UsedQuota"].asString()); - quotaObject.videosCount = std::stoi(value["VideosCount"].asString()); + if(!value["TotalQuota"].isNull()) + quotaObject.totalQuota = std::stol(value["TotalQuota"].asString()); + if(!value["FacesCount"].isNull()) + quotaObject.facesCount = std::stoi(value["FacesCount"].asString()); + if(!value["PhotosCount"].isNull()) + quotaObject.photosCount = std::stoi(value["PhotosCount"].asString()); + if(!value["UsedQuota"].isNull()) + quotaObject.usedQuota = std::stol(value["UsedQuota"].asString()); + if(!value["VideosCount"].isNull()) + quotaObject.videosCount = std::stoi(value["VideosCount"].asString()); quota_.push_back(quotaObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -62,9 +70,9 @@ std::string GetQuotaResult::getAction()const return action_; } -void GetQuotaResult::setAction(const std::string& action) +std::vector GetQuotaResult::getQuota()const { - action_ = action; + return quota_; } std::string GetQuotaResult::getMessage()const @@ -72,18 +80,8 @@ std::string GetQuotaResult::getMessage()const return message_; } -void GetQuotaResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetQuotaResult::getCode()const { return code_; } -void GetQuotaResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetSimilarPhotosRequest.cc b/cloudphoto/src/model/GetSimilarPhotosRequest.cc index a3ec45826..ace530f9e 100644 --- a/cloudphoto/src/model/GetSimilarPhotosRequest.cc +++ b/cloudphoto/src/model/GetSimilarPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetSimilarPhotosRequest; GetSimilarPhotosRequest::GetSimilarPhotosRequest() : - CloudPhotoRequest("GetSimilarPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetSimilarPhotos") {} GetSimilarPhotosRequest::~GetSimilarPhotosRequest() diff --git a/cloudphoto/src/model/GetSimilarPhotosResult.cc b/cloudphoto/src/model/GetSimilarPhotosResult.cc index adf463fec..0d829f808 100644 --- a/cloudphoto/src/model/GetSimilarPhotosResult.cc +++ b/cloudphoto/src/model/GetSimilarPhotosResult.cc @@ -43,59 +43,69 @@ void GetSimilarPhotosResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.inactiveTime = std::stol(value["InactiveTime"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photoObject.like = std::stol(value["Like"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["InactiveTime"].isNull()) + photosObject.inactiveTime = std::stol(value["InactiveTime"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Like"].isNull()) + photosObject.like = std::stol(value["Like"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector GetSimilarPhotosResult::getPhotos()const +{ + return photos_; +} + std::string GetSimilarPhotosResult::getAction()const { return action_; } -void GetSimilarPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetSimilarPhotosResult::getMessage()const { return message_; } -void GetSimilarPhotosResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetSimilarPhotosResult::getCode()const { return code_; } -void GetSimilarPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetThumbnailRequest.cc b/cloudphoto/src/model/GetThumbnailRequest.cc index 5df82e97a..c0d37e0d5 100644 --- a/cloudphoto/src/model/GetThumbnailRequest.cc +++ b/cloudphoto/src/model/GetThumbnailRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetThumbnailRequest; GetThumbnailRequest::GetThumbnailRequest() : - CloudPhotoRequest("GetThumbnail") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetThumbnail") {} GetThumbnailRequest::~GetThumbnailRequest() diff --git a/cloudphoto/src/model/GetThumbnailResult.cc b/cloudphoto/src/model/GetThumbnailResult.cc index 8e64afd85..2f29f3cf1 100644 --- a/cloudphoto/src/model/GetThumbnailResult.cc +++ b/cloudphoto/src/model/GetThumbnailResult.cc @@ -40,10 +40,14 @@ void GetThumbnailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - thumbnailUrl_ = value["ThumbnailUrl"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["ThumbnailUrl"].isNull()) + thumbnailUrl_ = value["ThumbnailUrl"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -52,38 +56,18 @@ std::string GetThumbnailResult::getAction()const return action_; } -void GetThumbnailResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetThumbnailResult::getMessage()const { return message_; } -void GetThumbnailResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetThumbnailResult::getThumbnailUrl()const { return thumbnailUrl_; } -void GetThumbnailResult::setThumbnailUrl(const std::string& thumbnailUrl) -{ - thumbnailUrl_ = thumbnailUrl; -} - std::string GetThumbnailResult::getCode()const { return code_; } -void GetThumbnailResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetThumbnailsRequest.cc b/cloudphoto/src/model/GetThumbnailsRequest.cc index 1a4109210..4decf8224 100644 --- a/cloudphoto/src/model/GetThumbnailsRequest.cc +++ b/cloudphoto/src/model/GetThumbnailsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetThumbnailsRequest; GetThumbnailsRequest::GetThumbnailsRequest() : - CloudPhotoRequest("GetThumbnails") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetThumbnails") {} GetThumbnailsRequest::~GetThumbnailsRequest() diff --git a/cloudphoto/src/model/GetThumbnailsResult.cc b/cloudphoto/src/model/GetThumbnailsResult.cc index 8c1219a99..f91c755c6 100644 --- a/cloudphoto/src/model/GetThumbnailsResult.cc +++ b/cloudphoto/src/model/GetThumbnailsResult.cc @@ -43,16 +43,23 @@ void GetThumbnailsResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.thumbnailUrl = value["ThumbnailUrl"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["ThumbnailUrl"].isNull()) + resultsObject.thumbnailUrl = value["ThumbnailUrl"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,19 +68,14 @@ std::string GetThumbnailsResult::getAction()const return action_; } -void GetThumbnailsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetThumbnailsResult::getMessage()const { return message_; } -void GetThumbnailsResult::setMessage(const std::string& message) +std::vector GetThumbnailsResult::getResults()const { - message_ = message; + return results_; } std::string GetThumbnailsResult::getCode()const @@ -81,8 +83,3 @@ std::string GetThumbnailsResult::getCode()const return code_; } -void GetThumbnailsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/GetVideoCoverRequest.cc b/cloudphoto/src/model/GetVideoCoverRequest.cc index b3863040e..9935ad01e 100644 --- a/cloudphoto/src/model/GetVideoCoverRequest.cc +++ b/cloudphoto/src/model/GetVideoCoverRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::GetVideoCoverRequest; GetVideoCoverRequest::GetVideoCoverRequest() : - CloudPhotoRequest("GetVideoCover") + RpcServiceRequest("cloudphoto", "2017-07-11", "GetVideoCover") {} GetVideoCoverRequest::~GetVideoCoverRequest() diff --git a/cloudphoto/src/model/GetVideoCoverResult.cc b/cloudphoto/src/model/GetVideoCoverResult.cc index 82a82a912..73b4d93a9 100644 --- a/cloudphoto/src/model/GetVideoCoverResult.cc +++ b/cloudphoto/src/model/GetVideoCoverResult.cc @@ -40,10 +40,14 @@ void GetVideoCoverResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - videoCoverUrl_ = value["VideoCoverUrl"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["VideoCoverUrl"].isNull()) + videoCoverUrl_ = value["VideoCoverUrl"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -52,38 +56,18 @@ std::string GetVideoCoverResult::getAction()const return action_; } -void GetVideoCoverResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string GetVideoCoverResult::getMessage()const { return message_; } -void GetVideoCoverResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string GetVideoCoverResult::getVideoCoverUrl()const { return videoCoverUrl_; } -void GetVideoCoverResult::setVideoCoverUrl(const std::string& videoCoverUrl) -{ - videoCoverUrl_ = videoCoverUrl; -} - std::string GetVideoCoverResult::getCode()const { return code_; } -void GetVideoCoverResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/InactivatePhotosRequest.cc b/cloudphoto/src/model/InactivatePhotosRequest.cc index 10c056550..0a46ae91f 100644 --- a/cloudphoto/src/model/InactivatePhotosRequest.cc +++ b/cloudphoto/src/model/InactivatePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::InactivatePhotosRequest; InactivatePhotosRequest::InactivatePhotosRequest() : - CloudPhotoRequest("InactivatePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "InactivatePhotos") {} InactivatePhotosRequest::~InactivatePhotosRequest() diff --git a/cloudphoto/src/model/InactivatePhotosResult.cc b/cloudphoto/src/model/InactivatePhotosResult.cc index cfdc392b3..fdfd9d73f 100644 --- a/cloudphoto/src/model/InactivatePhotosResult.cc +++ b/cloudphoto/src/model/InactivatePhotosResult.cc @@ -43,15 +43,21 @@ void InactivatePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string InactivatePhotosResult::getAction()const return action_; } -void InactivatePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string InactivatePhotosResult::getMessage()const { return message_; } -void InactivatePhotosResult::setMessage(const std::string& message) +std::vector InactivatePhotosResult::getResults()const { - message_ = message; + return results_; } std::string InactivatePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string InactivatePhotosResult::getCode()const return code_; } -void InactivatePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/LikePhotoRequest.cc b/cloudphoto/src/model/LikePhotoRequest.cc index a4b612201..e8842eb70 100644 --- a/cloudphoto/src/model/LikePhotoRequest.cc +++ b/cloudphoto/src/model/LikePhotoRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::LikePhotoRequest; LikePhotoRequest::LikePhotoRequest() : - CloudPhotoRequest("LikePhoto") + RpcServiceRequest("cloudphoto", "2017-07-11", "LikePhoto") {} LikePhotoRequest::~LikePhotoRequest() diff --git a/cloudphoto/src/model/LikePhotoResult.cc b/cloudphoto/src/model/LikePhotoResult.cc index 426e52317..7fc60014b 100644 --- a/cloudphoto/src/model/LikePhotoResult.cc +++ b/cloudphoto/src/model/LikePhotoResult.cc @@ -40,9 +40,12 @@ void LikePhotoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string LikePhotoResult::getAction()const return action_; } -void LikePhotoResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string LikePhotoResult::getMessage()const { return message_; } -void LikePhotoResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string LikePhotoResult::getCode()const { return code_; } -void LikePhotoResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListAlbumPhotosRequest.cc b/cloudphoto/src/model/ListAlbumPhotosRequest.cc index b933cfd89..79cdd012d 100644 --- a/cloudphoto/src/model/ListAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/ListAlbumPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListAlbumPhotosRequest; ListAlbumPhotosRequest::ListAlbumPhotosRequest() : - CloudPhotoRequest("ListAlbumPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListAlbumPhotos") {} ListAlbumPhotosRequest::~ListAlbumPhotosRequest() diff --git a/cloudphoto/src/model/ListAlbumPhotosResult.cc b/cloudphoto/src/model/ListAlbumPhotosResult.cc index b7ef512fc..dda913219 100644 --- a/cloudphoto/src/model/ListAlbumPhotosResult.cc +++ b/cloudphoto/src/model/ListAlbumPhotosResult.cc @@ -43,16 +43,23 @@ void ListAlbumPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.state = value["State"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["State"].isNull()) + resultsObject.state = value["State"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,39 +68,24 @@ std::string ListAlbumPhotosResult::getNextCursor()const return nextCursor_; } -void ListAlbumPhotosResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListAlbumPhotosResult::getTotalCount()const { return totalCount_; } -void ListAlbumPhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListAlbumPhotosResult::getAction()const { return action_; } -void ListAlbumPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListAlbumPhotosResult::getMessage()const { return message_; } -void ListAlbumPhotosResult::setMessage(const std::string& message) +std::vector ListAlbumPhotosResult::getResults()const { - message_ = message; + return results_; } std::string ListAlbumPhotosResult::getCode()const @@ -101,8 +93,3 @@ std::string ListAlbumPhotosResult::getCode()const return code_; } -void ListAlbumPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListAlbumsRequest.cc b/cloudphoto/src/model/ListAlbumsRequest.cc index 19789dcc2..133b6f4a5 100644 --- a/cloudphoto/src/model/ListAlbumsRequest.cc +++ b/cloudphoto/src/model/ListAlbumsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListAlbumsRequest; ListAlbumsRequest::ListAlbumsRequest() : - CloudPhotoRequest("ListAlbums") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListAlbums") {} ListAlbumsRequest::~ListAlbumsRequest() diff --git a/cloudphoto/src/model/ListAlbumsResult.cc b/cloudphoto/src/model/ListAlbumsResult.cc index baaa246fb..8972f0b51 100644 --- a/cloudphoto/src/model/ListAlbumsResult.cc +++ b/cloudphoto/src/model/ListAlbumsResult.cc @@ -43,37 +43,59 @@ void ListAlbumsResult::parse(const std::string &payload) auto allAlbums = value["Albums"]["Album"]; for (auto value : allAlbums) { - Album albumObject; - albumObject.id = std::stol(value["Id"].asString()); - albumObject.name = value["Name"].asString(); - albumObject.state = value["State"].asString(); - albumObject.photosCount = std::stol(value["PhotosCount"].asString()); - albumObject.ctime = std::stol(value["Ctime"].asString()); - albumObject.mtime = std::stol(value["Mtime"].asString()); + Album albumsObject; + if(!value["Id"].isNull()) + albumsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + albumsObject.name = value["Name"].asString(); + if(!value["State"].isNull()) + albumsObject.state = value["State"].asString(); + if(!value["PhotosCount"].isNull()) + albumsObject.photosCount = std::stol(value["PhotosCount"].asString()); + if(!value["Ctime"].isNull()) + albumsObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + albumsObject.mtime = std::stol(value["Mtime"].asString()); auto allCover = value["Cover"]; for (auto value : allCover) { Album::Cover coverObject; - coverObject.id = std::stol(value["Id"].asString()); - coverObject.title = value["Title"].asString(); - coverObject.fileId = value["FileId"].asString(); - coverObject.state = value["State"].asString(); - coverObject.md5 = value["Md5"].asString(); - coverObject.isVideo = std::stoi(value["IsVideo"].asString()); - coverObject.remark = value["Remark"].asString(); - coverObject.width = std::stol(value["Width"].asString()); - coverObject.height = std::stol(value["Height"].asString()); - coverObject.ctime = std::stol(value["Ctime"].asString()); - coverObject.mtime = std::stol(value["Mtime"].asString()); - albumObject.cover.push_back(coverObject); + if(!value["Id"].isNull()) + coverObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + coverObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + coverObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + coverObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + coverObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + coverObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + coverObject.remark = value["Remark"].asString(); + if(!value["Width"].isNull()) + coverObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + coverObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + coverObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + coverObject.mtime = std::stol(value["Mtime"].asString()); + albumsObject.cover.push_back(coverObject); } - albums_.push_back(albumObject); + albums_.push_back(albumsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -82,48 +104,28 @@ std::string ListAlbumsResult::getNextCursor()const return nextCursor_; } -void ListAlbumsResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListAlbumsResult::getTotalCount()const { return totalCount_; } -void ListAlbumsResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListAlbumsResult::getAction()const { return action_; } -void ListAlbumsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListAlbumsResult::getMessage()const { return message_; } -void ListAlbumsResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListAlbumsResult::getCode()const { return code_; } -void ListAlbumsResult::setCode(const std::string& code) +std::vector ListAlbumsResult::getAlbums()const { - code_ = code; + return albums_; } diff --git a/cloudphoto/src/model/ListFacePhotosRequest.cc b/cloudphoto/src/model/ListFacePhotosRequest.cc index d8e1d7a6d..1dae93f28 100644 --- a/cloudphoto/src/model/ListFacePhotosRequest.cc +++ b/cloudphoto/src/model/ListFacePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListFacePhotosRequest; ListFacePhotosRequest::ListFacePhotosRequest() : - CloudPhotoRequest("ListFacePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListFacePhotos") {} ListFacePhotosRequest::~ListFacePhotosRequest() diff --git a/cloudphoto/src/model/ListFacePhotosResult.cc b/cloudphoto/src/model/ListFacePhotosResult.cc index e354976f5..2ad52adaf 100644 --- a/cloudphoto/src/model/ListFacePhotosResult.cc +++ b/cloudphoto/src/model/ListFacePhotosResult.cc @@ -43,16 +43,23 @@ void ListFacePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.state = value["State"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["State"].isNull()) + resultsObject.state = value["State"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,39 +68,24 @@ std::string ListFacePhotosResult::getNextCursor()const return nextCursor_; } -void ListFacePhotosResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListFacePhotosResult::getTotalCount()const { return totalCount_; } -void ListFacePhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListFacePhotosResult::getAction()const { return action_; } -void ListFacePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListFacePhotosResult::getMessage()const { return message_; } -void ListFacePhotosResult::setMessage(const std::string& message) +std::vector ListFacePhotosResult::getResults()const { - message_ = message; + return results_; } std::string ListFacePhotosResult::getCode()const @@ -101,8 +93,3 @@ std::string ListFacePhotosResult::getCode()const return code_; } -void ListFacePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListFacesRequest.cc b/cloudphoto/src/model/ListFacesRequest.cc index e1dc910cf..3685e0155 100644 --- a/cloudphoto/src/model/ListFacesRequest.cc +++ b/cloudphoto/src/model/ListFacesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListFacesRequest; ListFacesRequest::ListFacesRequest() : - CloudPhotoRequest("ListFaces") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListFaces") {} ListFacesRequest::~ListFacesRequest() diff --git a/cloudphoto/src/model/ListFacesResult.cc b/cloudphoto/src/model/ListFacesResult.cc index 2e657ae21..6adc874f9 100644 --- a/cloudphoto/src/model/ListFacesResult.cc +++ b/cloudphoto/src/model/ListFacesResult.cc @@ -43,41 +43,64 @@ void ListFacesResult::parse(const std::string &payload) auto allFaces = value["Faces"]["Face"]; for (auto value : allFaces) { - Face faceObject; - faceObject.id = std::stol(value["Id"].asString()); - faceObject.name = value["Name"].asString(); - faceObject.photosCount = std::stoi(value["PhotosCount"].asString()); - faceObject.state = value["State"].asString(); - faceObject.isMe = std::stoi(value["IsMe"].asString()); - faceObject.ctime = std::stol(value["Ctime"].asString()); - faceObject.mtime = std::stol(value["Mtime"].asString()); + Face facesObject; + if(!value["Id"].isNull()) + facesObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + facesObject.name = value["Name"].asString(); + if(!value["PhotosCount"].isNull()) + facesObject.photosCount = std::stoi(value["PhotosCount"].asString()); + if(!value["State"].isNull()) + facesObject.state = value["State"].asString(); + if(!value["IsMe"].isNull()) + facesObject.isMe = value["IsMe"].asString() == "true"; + if(!value["Ctime"].isNull()) + facesObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + facesObject.mtime = std::stol(value["Mtime"].asString()); auto allCover = value["Cover"]; for (auto value : allCover) { Face::Cover coverObject; - coverObject.id = std::stol(value["Id"].asString()); - coverObject.title = value["Title"].asString(); - coverObject.fileId = value["FileId"].asString(); - coverObject.state = value["State"].asString(); - coverObject.md5 = value["Md5"].asString(); - coverObject.isVideo = std::stoi(value["IsVideo"].asString()); - coverObject.width = std::stol(value["Width"].asString()); - coverObject.height = std::stol(value["Height"].asString()); - coverObject.ctime = std::stol(value["Ctime"].asString()); - coverObject.mtime = std::stol(value["Mtime"].asString()); - coverObject.remark = value["Remark"].asString(); - faceObject.cover.push_back(coverObject); + if(!value["Id"].isNull()) + coverObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + coverObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + coverObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + coverObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + coverObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + coverObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Width"].isNull()) + coverObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + coverObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + coverObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + coverObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["Remark"].isNull()) + coverObject.remark = value["Remark"].asString(); + facesObject.cover.push_back(coverObject); } auto allAxis = value["Axis"]["Axis"]; for (auto value : allAxis) - faceObject.axis.push_back(value.asString()); - faces_.push_back(faceObject); + facesObject.axis.push_back(value.asString()); + faces_.push_back(facesObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -86,48 +109,28 @@ std::string ListFacesResult::getNextCursor()const return nextCursor_; } -void ListFacesResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListFacesResult::getTotalCount()const { return totalCount_; } -void ListFacesResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListFacesResult::getAction()const { return action_; } -void ListFacesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListFacesResult::getMessage()const { return message_; } -void ListFacesResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListFacesResult::getCode()const { return code_; } -void ListFacesResult::setCode(const std::string& code) +std::vector ListFacesResult::getFaces()const { - code_ = code; + return faces_; } diff --git a/cloudphoto/src/model/ListMomentPhotosRequest.cc b/cloudphoto/src/model/ListMomentPhotosRequest.cc index 69b2a365f..45100a227 100644 --- a/cloudphoto/src/model/ListMomentPhotosRequest.cc +++ b/cloudphoto/src/model/ListMomentPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListMomentPhotosRequest; ListMomentPhotosRequest::ListMomentPhotosRequest() : - CloudPhotoRequest("ListMomentPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListMomentPhotos") {} ListMomentPhotosRequest::~ListMomentPhotosRequest() diff --git a/cloudphoto/src/model/ListMomentPhotosResult.cc b/cloudphoto/src/model/ListMomentPhotosResult.cc index adf6dc7ed..94dfb6572 100644 --- a/cloudphoto/src/model/ListMomentPhotosResult.cc +++ b/cloudphoto/src/model/ListMomentPhotosResult.cc @@ -43,16 +43,23 @@ void ListMomentPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.state = value["State"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["State"].isNull()) + resultsObject.state = value["State"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,39 +68,24 @@ std::string ListMomentPhotosResult::getNextCursor()const return nextCursor_; } -void ListMomentPhotosResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListMomentPhotosResult::getTotalCount()const { return totalCount_; } -void ListMomentPhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListMomentPhotosResult::getAction()const { return action_; } -void ListMomentPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListMomentPhotosResult::getMessage()const { return message_; } -void ListMomentPhotosResult::setMessage(const std::string& message) +std::vector ListMomentPhotosResult::getResults()const { - message_ = message; + return results_; } std::string ListMomentPhotosResult::getCode()const @@ -101,8 +93,3 @@ std::string ListMomentPhotosResult::getCode()const return code_; } -void ListMomentPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListMomentsRequest.cc b/cloudphoto/src/model/ListMomentsRequest.cc index 92cd37672..272f2ca51 100644 --- a/cloudphoto/src/model/ListMomentsRequest.cc +++ b/cloudphoto/src/model/ListMomentsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListMomentsRequest; ListMomentsRequest::ListMomentsRequest() : - CloudPhotoRequest("ListMoments") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListMoments") {} ListMomentsRequest::~ListMomentsRequest() diff --git a/cloudphoto/src/model/ListMomentsResult.cc b/cloudphoto/src/model/ListMomentsResult.cc index f41a5a92c..1586fe4cf 100644 --- a/cloudphoto/src/model/ListMomentsResult.cc +++ b/cloudphoto/src/model/ListMomentsResult.cc @@ -43,21 +43,33 @@ void ListMomentsResult::parse(const std::string &payload) auto allMoments = value["Moments"]["Moment"]; for (auto value : allMoments) { - Moment momentObject; - momentObject.id = std::stol(value["Id"].asString()); - momentObject.locationName = value["LocationName"].asString(); - momentObject.photosCount = std::stoi(value["PhotosCount"].asString()); - momentObject.state = value["State"].asString(); - momentObject.takenAt = std::stol(value["TakenAt"].asString()); - momentObject.ctime = std::stol(value["Ctime"].asString()); - momentObject.mtime = std::stol(value["Mtime"].asString()); - moments_.push_back(momentObject); + Moment momentsObject; + if(!value["Id"].isNull()) + momentsObject.id = std::stol(value["Id"].asString()); + if(!value["LocationName"].isNull()) + momentsObject.locationName = value["LocationName"].asString(); + if(!value["PhotosCount"].isNull()) + momentsObject.photosCount = std::stoi(value["PhotosCount"].asString()); + if(!value["State"].isNull()) + momentsObject.state = value["State"].asString(); + if(!value["TakenAt"].isNull()) + momentsObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["Ctime"].isNull()) + momentsObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + momentsObject.mtime = std::stol(value["Mtime"].asString()); + moments_.push_back(momentsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -66,39 +78,24 @@ std::string ListMomentsResult::getNextCursor()const return nextCursor_; } -void ListMomentsResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListMomentsResult::getTotalCount()const { return totalCount_; } -void ListMomentsResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListMomentsResult::getAction()const { return action_; } -void ListMomentsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListMomentsResult::getMessage()const { return message_; } -void ListMomentsResult::setMessage(const std::string& message) +std::vector ListMomentsResult::getMoments()const { - message_ = message; + return moments_; } std::string ListMomentsResult::getCode()const @@ -106,8 +103,3 @@ std::string ListMomentsResult::getCode()const return code_; } -void ListMomentsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListPhotoFacesRequest.cc b/cloudphoto/src/model/ListPhotoFacesRequest.cc index a9fa76516..2bb7cb6e0 100644 --- a/cloudphoto/src/model/ListPhotoFacesRequest.cc +++ b/cloudphoto/src/model/ListPhotoFacesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListPhotoFacesRequest; ListPhotoFacesRequest::ListPhotoFacesRequest() : - CloudPhotoRequest("ListPhotoFaces") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListPhotoFaces") {} ListPhotoFacesRequest::~ListPhotoFacesRequest() diff --git a/cloudphoto/src/model/ListPhotoFacesResult.cc b/cloudphoto/src/model/ListPhotoFacesResult.cc index 4a953e7e4..10316d549 100644 --- a/cloudphoto/src/model/ListPhotoFacesResult.cc +++ b/cloudphoto/src/model/ListPhotoFacesResult.cc @@ -43,17 +43,22 @@ void ListPhotoFacesResult::parse(const std::string &payload) auto allFaces = value["Faces"]["Face"]; for (auto value : allFaces) { - Face faceObject; - faceObject.faceId = std::stol(value["FaceId"].asString()); - faceObject.faceName = value["FaceName"].asString(); + Face facesObject; + if(!value["FaceId"].isNull()) + facesObject.faceId = std::stol(value["FaceId"].asString()); + if(!value["FaceName"].isNull()) + facesObject.faceName = value["FaceName"].asString(); auto allAxis = value["Axis"]["Axis"]; for (auto value : allAxis) - faceObject.axis.push_back(value.asString()); - faces_.push_back(faceObject); + facesObject.axis.push_back(value.asString()); + faces_.push_back(facesObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -62,28 +67,18 @@ std::string ListPhotoFacesResult::getAction()const return action_; } -void ListPhotoFacesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListPhotoFacesResult::getMessage()const { return message_; } -void ListPhotoFacesResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListPhotoFacesResult::getCode()const { return code_; } -void ListPhotoFacesResult::setCode(const std::string& code) +std::vector ListPhotoFacesResult::getFaces()const { - code_ = code; + return faces_; } diff --git a/cloudphoto/src/model/ListPhotoStoresRequest.cc b/cloudphoto/src/model/ListPhotoStoresRequest.cc index 6d26bcef6..bb9d3a78c 100644 --- a/cloudphoto/src/model/ListPhotoStoresRequest.cc +++ b/cloudphoto/src/model/ListPhotoStoresRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListPhotoStoresRequest; ListPhotoStoresRequest::ListPhotoStoresRequest() : - CloudPhotoRequest("ListPhotoStores") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListPhotoStores") {} ListPhotoStoresRequest::~ListPhotoStoresRequest() diff --git a/cloudphoto/src/model/ListPhotoStoresResult.cc b/cloudphoto/src/model/ListPhotoStoresResult.cc index 6e7413a9b..764c4496c 100644 --- a/cloudphoto/src/model/ListPhotoStoresResult.cc +++ b/cloudphoto/src/model/ListPhotoStoresResult.cc @@ -43,29 +43,43 @@ void ListPhotoStoresResult::parse(const std::string &payload) auto allPhotoStores = value["PhotoStores"]["PhotoStore"]; for (auto value : allPhotoStores) { - PhotoStore photoStoreObject; - photoStoreObject.id = std::stol(value["Id"].asString()); - photoStoreObject.name = value["Name"].asString(); - photoStoreObject.remark = value["Remark"].asString(); - photoStoreObject.autoCleanEnabled = std::stoi(value["AutoCleanEnabled"].asString()); - photoStoreObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); - photoStoreObject.defaultQuota = std::stol(value["DefaultQuota"].asString()); - photoStoreObject.ctime = std::stol(value["Ctime"].asString()); - photoStoreObject.mtime = std::stol(value["Mtime"].asString()); + PhotoStore photoStoresObject; + if(!value["Id"].isNull()) + photoStoresObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + photoStoresObject.name = value["Name"].asString(); + if(!value["Remark"].isNull()) + photoStoresObject.remark = value["Remark"].asString(); + if(!value["AutoCleanEnabled"].isNull()) + photoStoresObject.autoCleanEnabled = value["AutoCleanEnabled"].asString() == "true"; + if(!value["AutoCleanDays"].isNull()) + photoStoresObject.autoCleanDays = std::stoi(value["AutoCleanDays"].asString()); + if(!value["DefaultQuota"].isNull()) + photoStoresObject.defaultQuota = std::stol(value["DefaultQuota"].asString()); + if(!value["Ctime"].isNull()) + photoStoresObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photoStoresObject.mtime = std::stol(value["Mtime"].asString()); auto allBuckets = value["Buckets"]["Bucket"]; for (auto value : allBuckets) { - PhotoStore::Bucket bucketObject; - bucketObject.name = value["Name"].asString(); - bucketObject.region = value["Region"].asString(); - bucketObject.state = value["State"].asString(); - photoStoreObject.buckets.push_back(bucketObject); + PhotoStore::Bucket bucketsObject; + if(!value["Name"].isNull()) + bucketsObject.name = value["Name"].asString(); + if(!value["Region"].isNull()) + bucketsObject.region = value["Region"].asString(); + if(!value["State"].isNull()) + bucketsObject.state = value["State"].asString(); + photoStoresObject.buckets.push_back(bucketsObject); } - photoStores_.push_back(photoStoreObject); + photoStores_.push_back(photoStoresObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -74,19 +88,14 @@ std::string ListPhotoStoresResult::getAction()const return action_; } -void ListPhotoStoresResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListPhotoStoresResult::getMessage()const { return message_; } -void ListPhotoStoresResult::setMessage(const std::string& message) +std::vector ListPhotoStoresResult::getPhotoStores()const { - message_ = message; + return photoStores_; } std::string ListPhotoStoresResult::getCode()const @@ -94,8 +103,3 @@ std::string ListPhotoStoresResult::getCode()const return code_; } -void ListPhotoStoresResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListPhotoTagsRequest.cc b/cloudphoto/src/model/ListPhotoTagsRequest.cc index f51b7d6fa..cf3994324 100644 --- a/cloudphoto/src/model/ListPhotoTagsRequest.cc +++ b/cloudphoto/src/model/ListPhotoTagsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListPhotoTagsRequest; ListPhotoTagsRequest::ListPhotoTagsRequest() : - CloudPhotoRequest("ListPhotoTags") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListPhotoTags") {} ListPhotoTagsRequest::~ListPhotoTagsRequest() diff --git a/cloudphoto/src/model/ListPhotoTagsResult.cc b/cloudphoto/src/model/ListPhotoTagsResult.cc index 52ec47446..bbe16c450 100644 --- a/cloudphoto/src/model/ListPhotoTagsResult.cc +++ b/cloudphoto/src/model/ListPhotoTagsResult.cc @@ -43,16 +43,23 @@ void ListPhotoTagsResult::parse(const std::string &payload) auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { - Tag tagObject; - tagObject.id = std::stol(value["Id"].asString()); - tagObject.isSubTag = std::stoi(value["IsSubTag"].asString()); - tagObject.name = value["Name"].asString(); - tagObject.parentTag = value["ParentTag"].asString(); - tags_.push_back(tagObject); + Tag tagsObject; + if(!value["Id"].isNull()) + tagsObject.id = std::stol(value["Id"].asString()); + if(!value["IsSubTag"].isNull()) + tagsObject.isSubTag = value["IsSubTag"].asString() == "true"; + if(!value["Name"].isNull()) + tagsObject.name = value["Name"].asString(); + if(!value["ParentTag"].isNull()) + tagsObject.parentTag = value["ParentTag"].asString(); + tags_.push_back(tagsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,28 +68,18 @@ std::string ListPhotoTagsResult::getAction()const return action_; } -void ListPhotoTagsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListPhotoTagsResult::getMessage()const { return message_; } -void ListPhotoTagsResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListPhotoTagsResult::getCode()const { return code_; } -void ListPhotoTagsResult::setCode(const std::string& code) +std::vector ListPhotoTagsResult::getTags()const { - code_ = code; + return tags_; } diff --git a/cloudphoto/src/model/ListPhotosRequest.cc b/cloudphoto/src/model/ListPhotosRequest.cc index 106a2c93f..fa20cd73f 100644 --- a/cloudphoto/src/model/ListPhotosRequest.cc +++ b/cloudphoto/src/model/ListPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListPhotosRequest; ListPhotosRequest::ListPhotosRequest() : - CloudPhotoRequest("ListPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListPhotos") {} ListPhotosRequest::~ListPhotosRequest() diff --git a/cloudphoto/src/model/ListPhotosResult.cc b/cloudphoto/src/model/ListPhotosResult.cc index c2f04620d..a8f8cc514 100644 --- a/cloudphoto/src/model/ListPhotosResult.cc +++ b/cloudphoto/src/model/ListPhotosResult.cc @@ -43,80 +43,81 @@ void ListPhotosResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.inactiveTime = std::stol(value["InactiveTime"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["InactiveTime"].isNull()) + photosObject.inactiveTime = std::stol(value["InactiveTime"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector ListPhotosResult::getPhotos()const +{ + return photos_; +} + std::string ListPhotosResult::getNextCursor()const { return nextCursor_; } -void ListPhotosResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListPhotosResult::getTotalCount()const { return totalCount_; } -void ListPhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListPhotosResult::getAction()const { return action_; } -void ListPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListPhotosResult::getMessage()const { return message_; } -void ListPhotosResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListPhotosResult::getCode()const { return code_; } -void ListPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListRegisteredTagsRequest.cc b/cloudphoto/src/model/ListRegisteredTagsRequest.cc index 2d2d19e26..2b0d3ef72 100644 --- a/cloudphoto/src/model/ListRegisteredTagsRequest.cc +++ b/cloudphoto/src/model/ListRegisteredTagsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListRegisteredTagsRequest; ListRegisteredTagsRequest::ListRegisteredTagsRequest() : - CloudPhotoRequest("ListRegisteredTags") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListRegisteredTags") {} ListRegisteredTagsRequest::~ListRegisteredTagsRequest() diff --git a/cloudphoto/src/model/ListRegisteredTagsResult.cc b/cloudphoto/src/model/ListRegisteredTagsResult.cc index 532565bb6..eeafd3418 100644 --- a/cloudphoto/src/model/ListRegisteredTagsResult.cc +++ b/cloudphoto/src/model/ListRegisteredTagsResult.cc @@ -43,21 +43,27 @@ void ListRegisteredTagsResult::parse(const std::string &payload) auto allRegisteredTags = value["RegisteredTags"]["RegisteredTag"]; for (auto value : allRegisteredTags) { - RegisteredTag registeredTagObject; - registeredTagObject.tagKey = value["TagKey"].asString(); + RegisteredTag registeredTagsObject; + if(!value["TagKey"].isNull()) + registeredTagsObject.tagKey = value["TagKey"].asString(); auto allTagValues = value["TagValues"]["TagValue"]; for (auto value : allTagValues) { - RegisteredTag::TagValue tagValueObject; - tagValueObject.lang = value["Lang"].asString(); - tagValueObject.text = value["Text"].asString(); - registeredTagObject.tagValues.push_back(tagValueObject); + RegisteredTag::TagValue tagValuesObject; + if(!value["Lang"].isNull()) + tagValuesObject.lang = value["Lang"].asString(); + if(!value["Text"].isNull()) + tagValuesObject.text = value["Text"].asString(); + registeredTagsObject.tagValues.push_back(tagValuesObject); } - registeredTags_.push_back(registeredTagObject); + registeredTags_.push_back(registeredTagsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -66,19 +72,14 @@ std::string ListRegisteredTagsResult::getAction()const return action_; } -void ListRegisteredTagsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListRegisteredTagsResult::getMessage()const { return message_; } -void ListRegisteredTagsResult::setMessage(const std::string& message) +std::vector ListRegisteredTagsResult::getRegisteredTags()const { - message_ = message; + return registeredTags_; } std::string ListRegisteredTagsResult::getCode()const @@ -86,8 +87,3 @@ std::string ListRegisteredTagsResult::getCode()const return code_; } -void ListRegisteredTagsResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListTagPhotosRequest.cc b/cloudphoto/src/model/ListTagPhotosRequest.cc index a428c3357..29d1b8737 100644 --- a/cloudphoto/src/model/ListTagPhotosRequest.cc +++ b/cloudphoto/src/model/ListTagPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListTagPhotosRequest; ListTagPhotosRequest::ListTagPhotosRequest() : - CloudPhotoRequest("ListTagPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListTagPhotos") {} ListTagPhotosRequest::~ListTagPhotosRequest() diff --git a/cloudphoto/src/model/ListTagPhotosResult.cc b/cloudphoto/src/model/ListTagPhotosResult.cc index c4f466be8..ba250c128 100644 --- a/cloudphoto/src/model/ListTagPhotosResult.cc +++ b/cloudphoto/src/model/ListTagPhotosResult.cc @@ -43,16 +43,23 @@ void ListTagPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.photoId = std::stol(value["PhotoId"].asString()); - resultObject.state = value["State"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["PhotoId"].isNull()) + resultsObject.photoId = std::stol(value["PhotoId"].asString()); + if(!value["State"].isNull()) + resultsObject.state = value["State"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = value["NextCursor"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = value["NextCursor"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -61,39 +68,24 @@ std::string ListTagPhotosResult::getNextCursor()const return nextCursor_; } -void ListTagPhotosResult::setNextCursor(const std::string& nextCursor) -{ - nextCursor_ = nextCursor; -} - int ListTagPhotosResult::getTotalCount()const { return totalCount_; } -void ListTagPhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListTagPhotosResult::getAction()const { return action_; } -void ListTagPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListTagPhotosResult::getMessage()const { return message_; } -void ListTagPhotosResult::setMessage(const std::string& message) +std::vector ListTagPhotosResult::getResults()const { - message_ = message; + return results_; } std::string ListTagPhotosResult::getCode()const @@ -101,8 +93,3 @@ std::string ListTagPhotosResult::getCode()const return code_; } -void ListTagPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListTagsRequest.cc b/cloudphoto/src/model/ListTagsRequest.cc index d40232bc7..eda2532af 100644 --- a/cloudphoto/src/model/ListTagsRequest.cc +++ b/cloudphoto/src/model/ListTagsRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListTagsRequest; ListTagsRequest::ListTagsRequest() : - CloudPhotoRequest("ListTags") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListTags") {} ListTagsRequest::~ListTagsRequest() diff --git a/cloudphoto/src/model/ListTagsResult.cc b/cloudphoto/src/model/ListTagsResult.cc index 68030fa33..029debcb6 100644 --- a/cloudphoto/src/model/ListTagsResult.cc +++ b/cloudphoto/src/model/ListTagsResult.cc @@ -43,33 +43,51 @@ void ListTagsResult::parse(const std::string &payload) auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) { - Tag tagObject; - tagObject.id = std::stol(value["Id"].asString()); - tagObject.name = value["Name"].asString(); - tagObject.isSubTag = std::stoi(value["IsSubTag"].asString()); - tagObject.parentTag = value["ParentTag"].asString(); + Tag tagsObject; + if(!value["Id"].isNull()) + tagsObject.id = std::stol(value["Id"].asString()); + if(!value["Name"].isNull()) + tagsObject.name = value["Name"].asString(); + if(!value["IsSubTag"].isNull()) + tagsObject.isSubTag = value["IsSubTag"].asString() == "true"; + if(!value["ParentTag"].isNull()) + tagsObject.parentTag = value["ParentTag"].asString(); auto allCover = value["Cover"]; for (auto value : allCover) { Tag::Cover coverObject; - coverObject.id = std::stol(value["Id"].asString()); - coverObject.title = value["Title"].asString(); - coverObject.fileId = value["FileId"].asString(); - coverObject.state = value["State"].asString(); - coverObject.md5 = value["Md5"].asString(); - coverObject.isVideo = std::stoi(value["IsVideo"].asString()); - coverObject.remark = value["Remark"].asString(); - coverObject.width = std::stol(value["Width"].asString()); - coverObject.height = std::stol(value["Height"].asString()); - coverObject.ctime = std::stol(value["Ctime"].asString()); - coverObject.mtime = std::stol(value["Mtime"].asString()); - tagObject.cover.push_back(coverObject); + if(!value["Id"].isNull()) + coverObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + coverObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + coverObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + coverObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + coverObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + coverObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + coverObject.remark = value["Remark"].asString(); + if(!value["Width"].isNull()) + coverObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + coverObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + coverObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + coverObject.mtime = std::stol(value["Mtime"].asString()); + tagsObject.cover.push_back(coverObject); } - tags_.push_back(tagObject); + tags_.push_back(tagsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -78,28 +96,18 @@ std::string ListTagsResult::getAction()const return action_; } -void ListTagsResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListTagsResult::getMessage()const { return message_; } -void ListTagsResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListTagsResult::getCode()const { return code_; } -void ListTagsResult::setCode(const std::string& code) +std::vector ListTagsResult::getTags()const { - code_ = code; + return tags_; } diff --git a/cloudphoto/src/model/ListTimeLinePhotosRequest.cc b/cloudphoto/src/model/ListTimeLinePhotosRequest.cc index d02332209..a302d2923 100644 --- a/cloudphoto/src/model/ListTimeLinePhotosRequest.cc +++ b/cloudphoto/src/model/ListTimeLinePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListTimeLinePhotosRequest; ListTimeLinePhotosRequest::ListTimeLinePhotosRequest() : - CloudPhotoRequest("ListTimeLinePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListTimeLinePhotos") {} ListTimeLinePhotosRequest::~ListTimeLinePhotosRequest() diff --git a/cloudphoto/src/model/ListTimeLinePhotosResult.cc b/cloudphoto/src/model/ListTimeLinePhotosResult.cc index f7c2bf887..ec212154b 100644 --- a/cloudphoto/src/model/ListTimeLinePhotosResult.cc +++ b/cloudphoto/src/model/ListTimeLinePhotosResult.cc @@ -43,69 +43,74 @@ void ListTimeLinePhotosResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photoObject.like = std::stol(value["Like"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Like"].isNull()) + photosObject.like = std::stol(value["Like"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector ListTimeLinePhotosResult::getPhotos()const +{ + return photos_; +} + int ListTimeLinePhotosResult::getTotalCount()const { return totalCount_; } -void ListTimeLinePhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string ListTimeLinePhotosResult::getAction()const { return action_; } -void ListTimeLinePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListTimeLinePhotosResult::getMessage()const { return message_; } -void ListTimeLinePhotosResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListTimeLinePhotosResult::getCode()const { return code_; } -void ListTimeLinePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ListTimeLinesRequest.cc b/cloudphoto/src/model/ListTimeLinesRequest.cc index a7cb72bea..165c50652 100644 --- a/cloudphoto/src/model/ListTimeLinesRequest.cc +++ b/cloudphoto/src/model/ListTimeLinesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ListTimeLinesRequest; ListTimeLinesRequest::ListTimeLinesRequest() : - CloudPhotoRequest("ListTimeLines") + RpcServiceRequest("cloudphoto", "2017-07-11", "ListTimeLines") {} ListTimeLinesRequest::~ListTimeLinesRequest() diff --git a/cloudphoto/src/model/ListTimeLinesResult.cc b/cloudphoto/src/model/ListTimeLinesResult.cc index 28385db38..9a209402d 100644 --- a/cloudphoto/src/model/ListTimeLinesResult.cc +++ b/cloudphoto/src/model/ListTimeLinesResult.cc @@ -43,79 +43,88 @@ void ListTimeLinesResult::parse(const std::string &payload) auto allTimeLines = value["TimeLines"]["TimeLine"]; for (auto value : allTimeLines) { - TimeLine timeLineObject; - timeLineObject.startTime = std::stol(value["StartTime"].asString()); - timeLineObject.endTime = std::stol(value["EndTime"].asString()); - timeLineObject.totalCount = std::stoi(value["TotalCount"].asString()); - timeLineObject.photosCount = std::stoi(value["PhotosCount"].asString()); + TimeLine timeLinesObject; + if(!value["StartTime"].isNull()) + timeLinesObject.startTime = std::stol(value["StartTime"].asString()); + if(!value["EndTime"].isNull()) + timeLinesObject.endTime = std::stol(value["EndTime"].asString()); + if(!value["TotalCount"].isNull()) + timeLinesObject.totalCount = std::stoi(value["TotalCount"].asString()); + if(!value["PhotosCount"].isNull()) + timeLinesObject.photosCount = std::stoi(value["PhotosCount"].asString()); auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - TimeLine::Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photoObject.like = std::stol(value["Like"].asString()); - timeLineObject.photos.push_back(photoObject); + TimeLine::Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Remark"].isNull()) + photosObject.remark = value["Remark"].asString(); + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Like"].isNull()) + photosObject.like = std::stol(value["Like"].asString()); + timeLinesObject.photos.push_back(photosObject); } - timeLines_.push_back(timeLineObject); + timeLines_.push_back(timeLinesObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - nextCursor_ = std::stoi(value["NextCursor"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextCursor"].isNull()) + nextCursor_ = std::stoi(value["NextCursor"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector ListTimeLinesResult::getTimeLines()const +{ + return timeLines_; +} + int ListTimeLinesResult::getNextCursor()const { return nextCursor_; } -void ListTimeLinesResult::setNextCursor(int nextCursor) -{ - nextCursor_ = nextCursor; -} - std::string ListTimeLinesResult::getAction()const { return action_; } -void ListTimeLinesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ListTimeLinesResult::getMessage()const { return message_; } -void ListTimeLinesResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ListTimeLinesResult::getCode()const { return code_; } -void ListTimeLinesResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/MergeFacesRequest.cc b/cloudphoto/src/model/MergeFacesRequest.cc index 4ee9a04bf..fc73ad8f9 100644 --- a/cloudphoto/src/model/MergeFacesRequest.cc +++ b/cloudphoto/src/model/MergeFacesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::MergeFacesRequest; MergeFacesRequest::MergeFacesRequest() : - CloudPhotoRequest("MergeFaces") + RpcServiceRequest("cloudphoto", "2017-07-11", "MergeFaces") {} MergeFacesRequest::~MergeFacesRequest() diff --git a/cloudphoto/src/model/MergeFacesResult.cc b/cloudphoto/src/model/MergeFacesResult.cc index f9d2c24f8..f1cc928fc 100644 --- a/cloudphoto/src/model/MergeFacesResult.cc +++ b/cloudphoto/src/model/MergeFacesResult.cc @@ -43,15 +43,21 @@ void MergeFacesResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string MergeFacesResult::getAction()const return action_; } -void MergeFacesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string MergeFacesResult::getMessage()const { return message_; } -void MergeFacesResult::setMessage(const std::string& message) +std::vector MergeFacesResult::getResults()const { - message_ = message; + return results_; } std::string MergeFacesResult::getCode()const @@ -80,8 +81,3 @@ std::string MergeFacesResult::getCode()const return code_; } -void MergeFacesResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/MoveAlbumPhotosRequest.cc b/cloudphoto/src/model/MoveAlbumPhotosRequest.cc index 943b0e6d8..9ef823563 100644 --- a/cloudphoto/src/model/MoveAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/MoveAlbumPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::MoveAlbumPhotosRequest; MoveAlbumPhotosRequest::MoveAlbumPhotosRequest() : - CloudPhotoRequest("MoveAlbumPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "MoveAlbumPhotos") {} MoveAlbumPhotosRequest::~MoveAlbumPhotosRequest() diff --git a/cloudphoto/src/model/MoveAlbumPhotosResult.cc b/cloudphoto/src/model/MoveAlbumPhotosResult.cc index e4f458046..61956c290 100644 --- a/cloudphoto/src/model/MoveAlbumPhotosResult.cc +++ b/cloudphoto/src/model/MoveAlbumPhotosResult.cc @@ -43,15 +43,21 @@ void MoveAlbumPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string MoveAlbumPhotosResult::getAction()const return action_; } -void MoveAlbumPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string MoveAlbumPhotosResult::getMessage()const { return message_; } -void MoveAlbumPhotosResult::setMessage(const std::string& message) +std::vector MoveAlbumPhotosResult::getResults()const { - message_ = message; + return results_; } std::string MoveAlbumPhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string MoveAlbumPhotosResult::getCode()const return code_; } -void MoveAlbumPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/MoveFacePhotosRequest.cc b/cloudphoto/src/model/MoveFacePhotosRequest.cc index ab2ba117f..63657952b 100644 --- a/cloudphoto/src/model/MoveFacePhotosRequest.cc +++ b/cloudphoto/src/model/MoveFacePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::MoveFacePhotosRequest; MoveFacePhotosRequest::MoveFacePhotosRequest() : - CloudPhotoRequest("MoveFacePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "MoveFacePhotos") {} MoveFacePhotosRequest::~MoveFacePhotosRequest() diff --git a/cloudphoto/src/model/MoveFacePhotosResult.cc b/cloudphoto/src/model/MoveFacePhotosResult.cc index 143497250..f32e5ed38 100644 --- a/cloudphoto/src/model/MoveFacePhotosResult.cc +++ b/cloudphoto/src/model/MoveFacePhotosResult.cc @@ -43,15 +43,21 @@ void MoveFacePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string MoveFacePhotosResult::getAction()const return action_; } -void MoveFacePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string MoveFacePhotosResult::getMessage()const { return message_; } -void MoveFacePhotosResult::setMessage(const std::string& message) +std::vector MoveFacePhotosResult::getResults()const { - message_ = message; + return results_; } std::string MoveFacePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string MoveFacePhotosResult::getCode()const return code_; } -void MoveFacePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ReactivatePhotosRequest.cc b/cloudphoto/src/model/ReactivatePhotosRequest.cc index 79cb999ab..715f5d16a 100644 --- a/cloudphoto/src/model/ReactivatePhotosRequest.cc +++ b/cloudphoto/src/model/ReactivatePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ReactivatePhotosRequest; ReactivatePhotosRequest::ReactivatePhotosRequest() : - CloudPhotoRequest("ReactivatePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "ReactivatePhotos") {} ReactivatePhotosRequest::~ReactivatePhotosRequest() diff --git a/cloudphoto/src/model/ReactivatePhotosResult.cc b/cloudphoto/src/model/ReactivatePhotosResult.cc index 225e0f257..6777cacb0 100644 --- a/cloudphoto/src/model/ReactivatePhotosResult.cc +++ b/cloudphoto/src/model/ReactivatePhotosResult.cc @@ -43,15 +43,21 @@ void ReactivatePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string ReactivatePhotosResult::getAction()const return action_; } -void ReactivatePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ReactivatePhotosResult::getMessage()const { return message_; } -void ReactivatePhotosResult::setMessage(const std::string& message) +std::vector ReactivatePhotosResult::getResults()const { - message_ = message; + return results_; } std::string ReactivatePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string ReactivatePhotosResult::getCode()const return code_; } -void ReactivatePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RegisterPhotoRequest.cc b/cloudphoto/src/model/RegisterPhotoRequest.cc index dadc3a159..55a0320f9 100644 --- a/cloudphoto/src/model/RegisterPhotoRequest.cc +++ b/cloudphoto/src/model/RegisterPhotoRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RegisterPhotoRequest; RegisterPhotoRequest::RegisterPhotoRequest() : - CloudPhotoRequest("RegisterPhoto") + RpcServiceRequest("cloudphoto", "2017-07-11", "RegisterPhoto") {} RegisterPhotoRequest::~RegisterPhotoRequest() diff --git a/cloudphoto/src/model/RegisterPhotoResult.cc b/cloudphoto/src/model/RegisterPhotoResult.cc index b317bc128..e08b35506 100644 --- a/cloudphoto/src/model/RegisterPhotoResult.cc +++ b/cloudphoto/src/model/RegisterPhotoResult.cc @@ -44,26 +44,44 @@ void RegisterPhotoResult::parse(const std::string &payload) for (auto value : allPhoto) { Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.remark = value["Remark"].asString(); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + if(!value["Id"].isNull()) + photoObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photoObject.title = value["Title"].asString(); + if(!value["Location"].isNull()) + photoObject.location = value["Location"].asString(); + if(!value["FileId"].isNull()) + photoObject.fileId = value["FileId"].asString(); + if(!value["State"].isNull()) + photoObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photoObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photoObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Size"].isNull()) + photoObject.size = std::stol(value["Size"].asString()); + if(!value["Remark"].isNull()) + photoObject.remark = value["Remark"].asString(); + if(!value["Width"].isNull()) + photoObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photoObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photoObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photoObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photoObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); photo_.push_back(photoObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -72,19 +90,14 @@ std::string RegisterPhotoResult::getAction()const return action_; } -void RegisterPhotoResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RegisterPhotoResult::getMessage()const { return message_; } -void RegisterPhotoResult::setMessage(const std::string& message) +std::vector RegisterPhotoResult::getPhoto()const { - message_ = message; + return photo_; } std::string RegisterPhotoResult::getCode()const @@ -92,8 +105,3 @@ std::string RegisterPhotoResult::getCode()const return code_; } -void RegisterPhotoResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RegisterTagRequest.cc b/cloudphoto/src/model/RegisterTagRequest.cc index 56d5afbdf..e30484d46 100644 --- a/cloudphoto/src/model/RegisterTagRequest.cc +++ b/cloudphoto/src/model/RegisterTagRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RegisterTagRequest; RegisterTagRequest::RegisterTagRequest() : - CloudPhotoRequest("RegisterTag") + RpcServiceRequest("cloudphoto", "2017-07-11", "RegisterTag") {} RegisterTagRequest::~RegisterTagRequest() diff --git a/cloudphoto/src/model/RegisterTagResult.cc b/cloudphoto/src/model/RegisterTagResult.cc index 1aa7e4203..c1be35688 100644 --- a/cloudphoto/src/model/RegisterTagResult.cc +++ b/cloudphoto/src/model/RegisterTagResult.cc @@ -40,9 +40,12 @@ void RegisterTagResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string RegisterTagResult::getAction()const return action_; } -void RegisterTagResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RegisterTagResult::getMessage()const { return message_; } -void RegisterTagResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string RegisterTagResult::getCode()const { return code_; } -void RegisterTagResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc b/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc index 5cd5342c4..116701c8e 100644 --- a/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc +++ b/cloudphoto/src/model/RemoveAlbumPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RemoveAlbumPhotosRequest; RemoveAlbumPhotosRequest::RemoveAlbumPhotosRequest() : - CloudPhotoRequest("RemoveAlbumPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "RemoveAlbumPhotos") {} RemoveAlbumPhotosRequest::~RemoveAlbumPhotosRequest() diff --git a/cloudphoto/src/model/RemoveAlbumPhotosResult.cc b/cloudphoto/src/model/RemoveAlbumPhotosResult.cc index cf50bd518..4c630d63f 100644 --- a/cloudphoto/src/model/RemoveAlbumPhotosResult.cc +++ b/cloudphoto/src/model/RemoveAlbumPhotosResult.cc @@ -43,15 +43,21 @@ void RemoveAlbumPhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string RemoveAlbumPhotosResult::getAction()const return action_; } -void RemoveAlbumPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RemoveAlbumPhotosResult::getMessage()const { return message_; } -void RemoveAlbumPhotosResult::setMessage(const std::string& message) +std::vector RemoveAlbumPhotosResult::getResults()const { - message_ = message; + return results_; } std::string RemoveAlbumPhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string RemoveAlbumPhotosResult::getCode()const return code_; } -void RemoveAlbumPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RemoveFacePhotosRequest.cc b/cloudphoto/src/model/RemoveFacePhotosRequest.cc index 1eca8a3bc..cb10226b8 100644 --- a/cloudphoto/src/model/RemoveFacePhotosRequest.cc +++ b/cloudphoto/src/model/RemoveFacePhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RemoveFacePhotosRequest; RemoveFacePhotosRequest::RemoveFacePhotosRequest() : - CloudPhotoRequest("RemoveFacePhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "RemoveFacePhotos") {} RemoveFacePhotosRequest::~RemoveFacePhotosRequest() diff --git a/cloudphoto/src/model/RemoveFacePhotosResult.cc b/cloudphoto/src/model/RemoveFacePhotosResult.cc index 1414b6b52..ceda8ef03 100644 --- a/cloudphoto/src/model/RemoveFacePhotosResult.cc +++ b/cloudphoto/src/model/RemoveFacePhotosResult.cc @@ -43,15 +43,21 @@ void RemoveFacePhotosResult::parse(const std::string &payload) auto allResults = value["Results"]["Result"]; for (auto value : allResults) { - Result resultObject; - resultObject.id = std::stol(value["Id"].asString()); - resultObject.code = value["Code"].asString(); - resultObject.message = value["Message"].asString(); - results_.push_back(resultObject); + Result resultsObject; + if(!value["Id"].isNull()) + resultsObject.id = std::stol(value["Id"].asString()); + if(!value["Code"].isNull()) + resultsObject.code = value["Code"].asString(); + if(!value["Message"].isNull()) + resultsObject.message = value["Message"].asString(); + results_.push_back(resultsObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -60,19 +66,14 @@ std::string RemoveFacePhotosResult::getAction()const return action_; } -void RemoveFacePhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RemoveFacePhotosResult::getMessage()const { return message_; } -void RemoveFacePhotosResult::setMessage(const std::string& message) +std::vector RemoveFacePhotosResult::getResults()const { - message_ = message; + return results_; } std::string RemoveFacePhotosResult::getCode()const @@ -80,8 +81,3 @@ std::string RemoveFacePhotosResult::getCode()const return code_; } -void RemoveFacePhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RenameAlbumRequest.cc b/cloudphoto/src/model/RenameAlbumRequest.cc index cc3492cf3..bc82854c5 100644 --- a/cloudphoto/src/model/RenameAlbumRequest.cc +++ b/cloudphoto/src/model/RenameAlbumRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RenameAlbumRequest; RenameAlbumRequest::RenameAlbumRequest() : - CloudPhotoRequest("RenameAlbum") + RpcServiceRequest("cloudphoto", "2017-07-11", "RenameAlbum") {} RenameAlbumRequest::~RenameAlbumRequest() diff --git a/cloudphoto/src/model/RenameAlbumResult.cc b/cloudphoto/src/model/RenameAlbumResult.cc index 2e903a671..2d472864b 100644 --- a/cloudphoto/src/model/RenameAlbumResult.cc +++ b/cloudphoto/src/model/RenameAlbumResult.cc @@ -40,9 +40,12 @@ void RenameAlbumResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string RenameAlbumResult::getAction()const return action_; } -void RenameAlbumResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RenameAlbumResult::getMessage()const { return message_; } -void RenameAlbumResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string RenameAlbumResult::getCode()const { return code_; } -void RenameAlbumResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/RenameFaceRequest.cc b/cloudphoto/src/model/RenameFaceRequest.cc index 571545c1c..1982639e5 100644 --- a/cloudphoto/src/model/RenameFaceRequest.cc +++ b/cloudphoto/src/model/RenameFaceRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::RenameFaceRequest; RenameFaceRequest::RenameFaceRequest() : - CloudPhotoRequest("RenameFace") + RpcServiceRequest("cloudphoto", "2017-07-11", "RenameFace") {} RenameFaceRequest::~RenameFaceRequest() diff --git a/cloudphoto/src/model/RenameFaceResult.cc b/cloudphoto/src/model/RenameFaceResult.cc index 4041362fb..22d018b55 100644 --- a/cloudphoto/src/model/RenameFaceResult.cc +++ b/cloudphoto/src/model/RenameFaceResult.cc @@ -40,9 +40,12 @@ void RenameFaceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string RenameFaceResult::getAction()const return action_; } -void RenameFaceResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string RenameFaceResult::getMessage()const { return message_; } -void RenameFaceResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string RenameFaceResult::getCode()const { return code_; } -void RenameFaceResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/SearchPhotosRequest.cc b/cloudphoto/src/model/SearchPhotosRequest.cc index cae252ad5..b5f1edd9e 100644 --- a/cloudphoto/src/model/SearchPhotosRequest.cc +++ b/cloudphoto/src/model/SearchPhotosRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::SearchPhotosRequest; SearchPhotosRequest::SearchPhotosRequest() : - CloudPhotoRequest("SearchPhotos") + RpcServiceRequest("cloudphoto", "2017-07-11", "SearchPhotos") {} SearchPhotosRequest::~SearchPhotosRequest() diff --git a/cloudphoto/src/model/SearchPhotosResult.cc b/cloudphoto/src/model/SearchPhotosResult.cc index e67743b92..f2a8bdf18 100644 --- a/cloudphoto/src/model/SearchPhotosResult.cc +++ b/cloudphoto/src/model/SearchPhotosResult.cc @@ -43,67 +43,70 @@ void SearchPhotosResult::parse(const std::string &payload) auto allPhotos = value["Photos"]["Photo"]; for (auto value : allPhotos) { - Photo photoObject; - photoObject.id = std::stol(value["Id"].asString()); - photoObject.title = value["Title"].asString(); - photoObject.fileId = value["FileId"].asString(); - photoObject.location = value["Location"].asString(); - photoObject.state = value["State"].asString(); - photoObject.md5 = value["Md5"].asString(); - photoObject.isVideo = std::stoi(value["IsVideo"].asString()); - photoObject.size = std::stol(value["Size"].asString()); - photoObject.width = std::stol(value["Width"].asString()); - photoObject.height = std::stol(value["Height"].asString()); - photoObject.ctime = std::stol(value["Ctime"].asString()); - photoObject.mtime = std::stol(value["Mtime"].asString()); - photoObject.takenAt = std::stol(value["TakenAt"].asString()); - photoObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); - photos_.push_back(photoObject); + Photo photosObject; + if(!value["Id"].isNull()) + photosObject.id = std::stol(value["Id"].asString()); + if(!value["Title"].isNull()) + photosObject.title = value["Title"].asString(); + if(!value["FileId"].isNull()) + photosObject.fileId = value["FileId"].asString(); + if(!value["Location"].isNull()) + photosObject.location = value["Location"].asString(); + if(!value["State"].isNull()) + photosObject.state = value["State"].asString(); + if(!value["Md5"].isNull()) + photosObject.md5 = value["Md5"].asString(); + if(!value["IsVideo"].isNull()) + photosObject.isVideo = value["IsVideo"].asString() == "true"; + if(!value["Size"].isNull()) + photosObject.size = std::stol(value["Size"].asString()); + if(!value["Width"].isNull()) + photosObject.width = std::stol(value["Width"].asString()); + if(!value["Height"].isNull()) + photosObject.height = std::stol(value["Height"].asString()); + if(!value["Ctime"].isNull()) + photosObject.ctime = std::stol(value["Ctime"].asString()); + if(!value["Mtime"].isNull()) + photosObject.mtime = std::stol(value["Mtime"].asString()); + if(!value["TakenAt"].isNull()) + photosObject.takenAt = std::stol(value["TakenAt"].asString()); + if(!value["ShareExpireTime"].isNull()) + photosObject.shareExpireTime = std::stol(value["ShareExpireTime"].asString()); + photos_.push_back(photosObject); } - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - totalCount_ = std::stoi(value["TotalCount"].asString()); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } +std::vector SearchPhotosResult::getPhotos()const +{ + return photos_; +} + int SearchPhotosResult::getTotalCount()const { return totalCount_; } -void SearchPhotosResult::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; -} - std::string SearchPhotosResult::getAction()const { return action_; } -void SearchPhotosResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string SearchPhotosResult::getMessage()const { return message_; } -void SearchPhotosResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string SearchPhotosResult::getCode()const { return code_; } -void SearchPhotosResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/SetAlbumCoverRequest.cc b/cloudphoto/src/model/SetAlbumCoverRequest.cc index 094217008..37457899f 100644 --- a/cloudphoto/src/model/SetAlbumCoverRequest.cc +++ b/cloudphoto/src/model/SetAlbumCoverRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::SetAlbumCoverRequest; SetAlbumCoverRequest::SetAlbumCoverRequest() : - CloudPhotoRequest("SetAlbumCover") + RpcServiceRequest("cloudphoto", "2017-07-11", "SetAlbumCover") {} SetAlbumCoverRequest::~SetAlbumCoverRequest() diff --git a/cloudphoto/src/model/SetAlbumCoverResult.cc b/cloudphoto/src/model/SetAlbumCoverResult.cc index cda1cedd1..9eab067d9 100644 --- a/cloudphoto/src/model/SetAlbumCoverResult.cc +++ b/cloudphoto/src/model/SetAlbumCoverResult.cc @@ -40,9 +40,12 @@ void SetAlbumCoverResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string SetAlbumCoverResult::getAction()const return action_; } -void SetAlbumCoverResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string SetAlbumCoverResult::getMessage()const { return message_; } -void SetAlbumCoverResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string SetAlbumCoverResult::getCode()const { return code_; } -void SetAlbumCoverResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/SetFaceCoverRequest.cc b/cloudphoto/src/model/SetFaceCoverRequest.cc index 1de028bbd..262cd8dde 100644 --- a/cloudphoto/src/model/SetFaceCoverRequest.cc +++ b/cloudphoto/src/model/SetFaceCoverRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::SetFaceCoverRequest; SetFaceCoverRequest::SetFaceCoverRequest() : - CloudPhotoRequest("SetFaceCover") + RpcServiceRequest("cloudphoto", "2017-07-11", "SetFaceCover") {} SetFaceCoverRequest::~SetFaceCoverRequest() diff --git a/cloudphoto/src/model/SetFaceCoverResult.cc b/cloudphoto/src/model/SetFaceCoverResult.cc index d0701f9b3..bd4a61e12 100644 --- a/cloudphoto/src/model/SetFaceCoverResult.cc +++ b/cloudphoto/src/model/SetFaceCoverResult.cc @@ -40,9 +40,12 @@ void SetFaceCoverResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string SetFaceCoverResult::getAction()const return action_; } -void SetFaceCoverResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string SetFaceCoverResult::getMessage()const { return message_; } -void SetFaceCoverResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string SetFaceCoverResult::getCode()const { return code_; } -void SetFaceCoverResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/SetMeRequest.cc b/cloudphoto/src/model/SetMeRequest.cc index e389c7c0f..029237d84 100644 --- a/cloudphoto/src/model/SetMeRequest.cc +++ b/cloudphoto/src/model/SetMeRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::SetMeRequest; SetMeRequest::SetMeRequest() : - CloudPhotoRequest("SetMe") + RpcServiceRequest("cloudphoto", "2017-07-11", "SetMe") {} SetMeRequest::~SetMeRequest() diff --git a/cloudphoto/src/model/SetMeResult.cc b/cloudphoto/src/model/SetMeResult.cc index 55f974c0a..0b5b6b2b7 100644 --- a/cloudphoto/src/model/SetMeResult.cc +++ b/cloudphoto/src/model/SetMeResult.cc @@ -40,9 +40,12 @@ void SetMeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string SetMeResult::getAction()const return action_; } -void SetMeResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string SetMeResult::getMessage()const { return message_; } -void SetMeResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string SetMeResult::getCode()const { return code_; } -void SetMeResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/SetQuotaRequest.cc b/cloudphoto/src/model/SetQuotaRequest.cc index b125c3547..c844ad173 100644 --- a/cloudphoto/src/model/SetQuotaRequest.cc +++ b/cloudphoto/src/model/SetQuotaRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::SetQuotaRequest; SetQuotaRequest::SetQuotaRequest() : - CloudPhotoRequest("SetQuota") + RpcServiceRequest("cloudphoto", "2017-07-11", "SetQuota") {} SetQuotaRequest::~SetQuotaRequest() diff --git a/cloudphoto/src/model/SetQuotaResult.cc b/cloudphoto/src/model/SetQuotaResult.cc index d130755aa..bd866ce68 100644 --- a/cloudphoto/src/model/SetQuotaResult.cc +++ b/cloudphoto/src/model/SetQuotaResult.cc @@ -40,9 +40,12 @@ void SetQuotaResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string SetQuotaResult::getAction()const return action_; } -void SetQuotaResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string SetQuotaResult::getMessage()const { return message_; } -void SetQuotaResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string SetQuotaResult::getCode()const { return code_; } -void SetQuotaResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/TagPhotoRequest.cc b/cloudphoto/src/model/TagPhotoRequest.cc index 67429d534..d4b911c3c 100644 --- a/cloudphoto/src/model/TagPhotoRequest.cc +++ b/cloudphoto/src/model/TagPhotoRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::TagPhotoRequest; TagPhotoRequest::TagPhotoRequest() : - CloudPhotoRequest("TagPhoto") + RpcServiceRequest("cloudphoto", "2017-07-11", "TagPhoto") {} TagPhotoRequest::~TagPhotoRequest() diff --git a/cloudphoto/src/model/TagPhotoResult.cc b/cloudphoto/src/model/TagPhotoResult.cc index 9b63096d9..4e6afea64 100644 --- a/cloudphoto/src/model/TagPhotoResult.cc +++ b/cloudphoto/src/model/TagPhotoResult.cc @@ -40,9 +40,12 @@ void TagPhotoResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string TagPhotoResult::getAction()const return action_; } -void TagPhotoResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string TagPhotoResult::getMessage()const { return message_; } -void TagPhotoResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string TagPhotoResult::getCode()const { return code_; } -void TagPhotoResult::setCode(const std::string& code) -{ - code_ = code; -} - diff --git a/cloudphoto/src/model/ToggleFeaturesRequest.cc b/cloudphoto/src/model/ToggleFeaturesRequest.cc index bdb6b1378..cb9f09fdf 100644 --- a/cloudphoto/src/model/ToggleFeaturesRequest.cc +++ b/cloudphoto/src/model/ToggleFeaturesRequest.cc @@ -16,11 +16,10 @@ #include -using namespace AlibabaCloud::CloudPhoto; -using namespace AlibabaCloud::CloudPhoto::Model; +using AlibabaCloud::CloudPhoto::Model::ToggleFeaturesRequest; ToggleFeaturesRequest::ToggleFeaturesRequest() : - CloudPhotoRequest("ToggleFeatures") + RpcServiceRequest("cloudphoto", "2017-07-11", "ToggleFeatures") {} ToggleFeaturesRequest::~ToggleFeaturesRequest() diff --git a/cloudphoto/src/model/ToggleFeaturesResult.cc b/cloudphoto/src/model/ToggleFeaturesResult.cc index 8e786239e..3df1e65db 100644 --- a/cloudphoto/src/model/ToggleFeaturesResult.cc +++ b/cloudphoto/src/model/ToggleFeaturesResult.cc @@ -40,9 +40,12 @@ void ToggleFeaturesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - code_ = value["Code"].asString(); - message_ = value["Message"].asString(); - action_ = value["Action"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); } @@ -51,28 +54,13 @@ std::string ToggleFeaturesResult::getAction()const return action_; } -void ToggleFeaturesResult::setAction(const std::string& action) -{ - action_ = action; -} - std::string ToggleFeaturesResult::getMessage()const { return message_; } -void ToggleFeaturesResult::setMessage(const std::string& message) -{ - message_ = message; -} - std::string ToggleFeaturesResult::getCode()const { return code_; } -void ToggleFeaturesResult::setCode(const std::string& code) -{ - code_ = code; -} -