Remove legacy APIs.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-01-05 Version: patch
|
||||
- Remove legacy APIs.
|
||||
|
||||
2021-01-05 Version: patch
|
||||
- Add DescribeBackupTasks API.
|
||||
|
||||
|
||||
@@ -25,10 +25,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CompareImageFacesResult.h
|
||||
include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h
|
||||
include/alibabacloud/imm/model/ConvertOfficeFormatResult.h
|
||||
include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateCADConversionTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateDocIndexTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateGrabFrameTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateGrabFrameTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h
|
||||
@@ -55,8 +51,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CreateVideoProduceTaskResult.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkRequest.h
|
||||
include/alibabacloud/imm/model/DecodeBlindWatermarkResult.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexRequest.h
|
||||
include/alibabacloud/imm/model/DeleteDocIndexResult.h
|
||||
include/alibabacloud/imm/model/DeleteImageRequest.h
|
||||
include/alibabacloud/imm/model/DeleteImageResult.h
|
||||
include/alibabacloud/imm/model/DeleteImageJobRequest.h
|
||||
@@ -83,8 +77,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/DetectImageQRCodesResult.h
|
||||
include/alibabacloud/imm/model/DetectImageTagsRequest.h
|
||||
include/alibabacloud/imm/model/DetectImageTagsResult.h
|
||||
include/alibabacloud/imm/model/DetectImageTextsRequest.h
|
||||
include/alibabacloud/imm/model/DetectImageTextsResult.h
|
||||
include/alibabacloud/imm/model/DetectQRCodesRequest.h
|
||||
include/alibabacloud/imm/model/DetectQRCodesResult.h
|
||||
include/alibabacloud/imm/model/EncodeBlindWatermarkRequest.h
|
||||
@@ -97,16 +89,10 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/GetContentKeyResult.h
|
||||
include/alibabacloud/imm/model/GetDRMLicenseRequest.h
|
||||
include/alibabacloud/imm/model/GetDRMLicenseResult.h
|
||||
include/alibabacloud/imm/model/GetDocIndexRequest.h
|
||||
include/alibabacloud/imm/model/GetDocIndexResult.h
|
||||
include/alibabacloud/imm/model/GetDocIndexTaskRequest.h
|
||||
include/alibabacloud/imm/model/GetDocIndexTaskResult.h
|
||||
include/alibabacloud/imm/model/GetImageRequest.h
|
||||
include/alibabacloud/imm/model/GetImageResult.h
|
||||
include/alibabacloud/imm/model/GetImageCroppingSuggestionsRequest.h
|
||||
include/alibabacloud/imm/model/GetImageCroppingSuggestionsResult.h
|
||||
include/alibabacloud/imm/model/GetImageJobRequest.h
|
||||
include/alibabacloud/imm/model/GetImageJobResult.h
|
||||
include/alibabacloud/imm/model/GetImageQualityRequest.h
|
||||
include/alibabacloud/imm/model/GetImageQualityResult.h
|
||||
include/alibabacloud/imm/model/GetMediaMetaRequest.h
|
||||
@@ -133,8 +119,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/IndexVideoResult.h
|
||||
include/alibabacloud/imm/model/ListFaceGroupsRequest.h
|
||||
include/alibabacloud/imm/model/ListFaceGroupsResult.h
|
||||
include/alibabacloud/imm/model/ListImageJobsRequest.h
|
||||
include/alibabacloud/imm/model/ListImageJobsResult.h
|
||||
include/alibabacloud/imm/model/ListImagesRequest.h
|
||||
include/alibabacloud/imm/model/ListImagesResult.h
|
||||
include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h
|
||||
@@ -165,12 +149,6 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/RefreshOfficePreviewTokenResult.h
|
||||
include/alibabacloud/imm/model/RefreshWebofficeTokenRequest.h
|
||||
include/alibabacloud/imm/model/RefreshWebofficeTokenResult.h
|
||||
include/alibabacloud/imm/model/SearchDocIndexRequest.h
|
||||
include/alibabacloud/imm/model/SearchDocIndexResult.h
|
||||
include/alibabacloud/imm/model/StopStreamAnalyseTaskRequest.h
|
||||
include/alibabacloud/imm/model/StopStreamAnalyseTaskResult.h
|
||||
include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h
|
||||
include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h
|
||||
include/alibabacloud/imm/model/UpdateFaceGroupRequest.h
|
||||
include/alibabacloud/imm/model/UpdateFaceGroupResult.h
|
||||
include/alibabacloud/imm/model/UpdateImageRequest.h
|
||||
@@ -178,9 +156,7 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/UpdateProjectRequest.h
|
||||
include/alibabacloud/imm/model/UpdateProjectResult.h
|
||||
include/alibabacloud/imm/model/UpdateSetRequest.h
|
||||
include/alibabacloud/imm/model/UpdateSetResult.h
|
||||
include/alibabacloud/imm/model/VideoAnalyseFeedbackRequest.h
|
||||
include/alibabacloud/imm/model/VideoAnalyseFeedbackResult.h )
|
||||
include/alibabacloud/imm/model/UpdateSetResult.h )
|
||||
|
||||
set(imm_src
|
||||
src/ImmClient.cc
|
||||
@@ -188,10 +164,6 @@ set(imm_src
|
||||
src/model/CompareImageFacesResult.cc
|
||||
src/model/ConvertOfficeFormatRequest.cc
|
||||
src/model/ConvertOfficeFormatResult.cc
|
||||
src/model/CreateCADConversionTaskRequest.cc
|
||||
src/model/CreateCADConversionTaskResult.cc
|
||||
src/model/CreateDocIndexTaskRequest.cc
|
||||
src/model/CreateDocIndexTaskResult.cc
|
||||
src/model/CreateGrabFrameTaskRequest.cc
|
||||
src/model/CreateGrabFrameTaskResult.cc
|
||||
src/model/CreateGroupFacesJobRequest.cc
|
||||
@@ -218,8 +190,6 @@ set(imm_src
|
||||
src/model/CreateVideoProduceTaskResult.cc
|
||||
src/model/DecodeBlindWatermarkRequest.cc
|
||||
src/model/DecodeBlindWatermarkResult.cc
|
||||
src/model/DeleteDocIndexRequest.cc
|
||||
src/model/DeleteDocIndexResult.cc
|
||||
src/model/DeleteImageRequest.cc
|
||||
src/model/DeleteImageResult.cc
|
||||
src/model/DeleteImageJobRequest.cc
|
||||
@@ -246,8 +216,6 @@ set(imm_src
|
||||
src/model/DetectImageQRCodesResult.cc
|
||||
src/model/DetectImageTagsRequest.cc
|
||||
src/model/DetectImageTagsResult.cc
|
||||
src/model/DetectImageTextsRequest.cc
|
||||
src/model/DetectImageTextsResult.cc
|
||||
src/model/DetectQRCodesRequest.cc
|
||||
src/model/DetectQRCodesResult.cc
|
||||
src/model/EncodeBlindWatermarkRequest.cc
|
||||
@@ -260,16 +228,10 @@ set(imm_src
|
||||
src/model/GetContentKeyResult.cc
|
||||
src/model/GetDRMLicenseRequest.cc
|
||||
src/model/GetDRMLicenseResult.cc
|
||||
src/model/GetDocIndexRequest.cc
|
||||
src/model/GetDocIndexResult.cc
|
||||
src/model/GetDocIndexTaskRequest.cc
|
||||
src/model/GetDocIndexTaskResult.cc
|
||||
src/model/GetImageRequest.cc
|
||||
src/model/GetImageResult.cc
|
||||
src/model/GetImageCroppingSuggestionsRequest.cc
|
||||
src/model/GetImageCroppingSuggestionsResult.cc
|
||||
src/model/GetImageJobRequest.cc
|
||||
src/model/GetImageJobResult.cc
|
||||
src/model/GetImageQualityRequest.cc
|
||||
src/model/GetImageQualityResult.cc
|
||||
src/model/GetMediaMetaRequest.cc
|
||||
@@ -296,8 +258,6 @@ set(imm_src
|
||||
src/model/IndexVideoResult.cc
|
||||
src/model/ListFaceGroupsRequest.cc
|
||||
src/model/ListFaceGroupsResult.cc
|
||||
src/model/ListImageJobsRequest.cc
|
||||
src/model/ListImageJobsResult.cc
|
||||
src/model/ListImagesRequest.cc
|
||||
src/model/ListImagesResult.cc
|
||||
src/model/ListOfficeConversionTaskRequest.cc
|
||||
@@ -328,12 +288,6 @@ set(imm_src
|
||||
src/model/RefreshOfficePreviewTokenResult.cc
|
||||
src/model/RefreshWebofficeTokenRequest.cc
|
||||
src/model/RefreshWebofficeTokenResult.cc
|
||||
src/model/SearchDocIndexRequest.cc
|
||||
src/model/SearchDocIndexResult.cc
|
||||
src/model/StopStreamAnalyseTaskRequest.cc
|
||||
src/model/StopStreamAnalyseTaskResult.cc
|
||||
src/model/UpdateDocIndexMetaRequest.cc
|
||||
src/model/UpdateDocIndexMetaResult.cc
|
||||
src/model/UpdateFaceGroupRequest.cc
|
||||
src/model/UpdateFaceGroupResult.cc
|
||||
src/model/UpdateImageRequest.cc
|
||||
@@ -341,9 +295,7 @@ set(imm_src
|
||||
src/model/UpdateProjectRequest.cc
|
||||
src/model/UpdateProjectResult.cc
|
||||
src/model/UpdateSetRequest.cc
|
||||
src/model/UpdateSetResult.cc
|
||||
src/model/VideoAnalyseFeedbackRequest.cc
|
||||
src/model/VideoAnalyseFeedbackResult.cc )
|
||||
src/model/UpdateSetResult.cc )
|
||||
|
||||
add_library(imm ${LIB_TYPE}
|
||||
${imm_public_header}
|
||||
|
||||
@@ -26,10 +26,6 @@
|
||||
#include "model/CompareImageFacesResult.h"
|
||||
#include "model/ConvertOfficeFormatRequest.h"
|
||||
#include "model/ConvertOfficeFormatResult.h"
|
||||
#include "model/CreateCADConversionTaskRequest.h"
|
||||
#include "model/CreateCADConversionTaskResult.h"
|
||||
#include "model/CreateDocIndexTaskRequest.h"
|
||||
#include "model/CreateDocIndexTaskResult.h"
|
||||
#include "model/CreateGrabFrameTaskRequest.h"
|
||||
#include "model/CreateGrabFrameTaskResult.h"
|
||||
#include "model/CreateGroupFacesJobRequest.h"
|
||||
@@ -56,8 +52,6 @@
|
||||
#include "model/CreateVideoProduceTaskResult.h"
|
||||
#include "model/DecodeBlindWatermarkRequest.h"
|
||||
#include "model/DecodeBlindWatermarkResult.h"
|
||||
#include "model/DeleteDocIndexRequest.h"
|
||||
#include "model/DeleteDocIndexResult.h"
|
||||
#include "model/DeleteImageRequest.h"
|
||||
#include "model/DeleteImageResult.h"
|
||||
#include "model/DeleteImageJobRequest.h"
|
||||
@@ -84,8 +78,6 @@
|
||||
#include "model/DetectImageQRCodesResult.h"
|
||||
#include "model/DetectImageTagsRequest.h"
|
||||
#include "model/DetectImageTagsResult.h"
|
||||
#include "model/DetectImageTextsRequest.h"
|
||||
#include "model/DetectImageTextsResult.h"
|
||||
#include "model/DetectQRCodesRequest.h"
|
||||
#include "model/DetectQRCodesResult.h"
|
||||
#include "model/EncodeBlindWatermarkRequest.h"
|
||||
@@ -98,16 +90,10 @@
|
||||
#include "model/GetContentKeyResult.h"
|
||||
#include "model/GetDRMLicenseRequest.h"
|
||||
#include "model/GetDRMLicenseResult.h"
|
||||
#include "model/GetDocIndexRequest.h"
|
||||
#include "model/GetDocIndexResult.h"
|
||||
#include "model/GetDocIndexTaskRequest.h"
|
||||
#include "model/GetDocIndexTaskResult.h"
|
||||
#include "model/GetImageRequest.h"
|
||||
#include "model/GetImageResult.h"
|
||||
#include "model/GetImageCroppingSuggestionsRequest.h"
|
||||
#include "model/GetImageCroppingSuggestionsResult.h"
|
||||
#include "model/GetImageJobRequest.h"
|
||||
#include "model/GetImageJobResult.h"
|
||||
#include "model/GetImageQualityRequest.h"
|
||||
#include "model/GetImageQualityResult.h"
|
||||
#include "model/GetMediaMetaRequest.h"
|
||||
@@ -134,8 +120,6 @@
|
||||
#include "model/IndexVideoResult.h"
|
||||
#include "model/ListFaceGroupsRequest.h"
|
||||
#include "model/ListFaceGroupsResult.h"
|
||||
#include "model/ListImageJobsRequest.h"
|
||||
#include "model/ListImageJobsResult.h"
|
||||
#include "model/ListImagesRequest.h"
|
||||
#include "model/ListImagesResult.h"
|
||||
#include "model/ListOfficeConversionTaskRequest.h"
|
||||
@@ -166,12 +150,6 @@
|
||||
#include "model/RefreshOfficePreviewTokenResult.h"
|
||||
#include "model/RefreshWebofficeTokenRequest.h"
|
||||
#include "model/RefreshWebofficeTokenResult.h"
|
||||
#include "model/SearchDocIndexRequest.h"
|
||||
#include "model/SearchDocIndexResult.h"
|
||||
#include "model/StopStreamAnalyseTaskRequest.h"
|
||||
#include "model/StopStreamAnalyseTaskResult.h"
|
||||
#include "model/UpdateDocIndexMetaRequest.h"
|
||||
#include "model/UpdateDocIndexMetaResult.h"
|
||||
#include "model/UpdateFaceGroupRequest.h"
|
||||
#include "model/UpdateFaceGroupResult.h"
|
||||
#include "model/UpdateImageRequest.h"
|
||||
@@ -180,8 +158,6 @@
|
||||
#include "model/UpdateProjectResult.h"
|
||||
#include "model/UpdateSetRequest.h"
|
||||
#include "model/UpdateSetResult.h"
|
||||
#include "model/VideoAnalyseFeedbackRequest.h"
|
||||
#include "model/VideoAnalyseFeedbackResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -197,12 +173,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ConvertOfficeFormatResult> ConvertOfficeFormatOutcome;
|
||||
typedef std::future<ConvertOfficeFormatOutcome> ConvertOfficeFormatOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ConvertOfficeFormatRequest&, const ConvertOfficeFormatOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConvertOfficeFormatAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCADConversionTaskResult> CreateCADConversionTaskOutcome;
|
||||
typedef std::future<CreateCADConversionTaskOutcome> CreateCADConversionTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateCADConversionTaskRequest&, const CreateCADConversionTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCADConversionTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDocIndexTaskResult> CreateDocIndexTaskOutcome;
|
||||
typedef std::future<CreateDocIndexTaskOutcome> CreateDocIndexTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateDocIndexTaskRequest&, const CreateDocIndexTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDocIndexTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateGrabFrameTaskResult> CreateGrabFrameTaskOutcome;
|
||||
typedef std::future<CreateGrabFrameTaskOutcome> CreateGrabFrameTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateGrabFrameTaskRequest&, const CreateGrabFrameTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateGrabFrameTaskAsyncHandler;
|
||||
@@ -242,9 +212,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DecodeBlindWatermarkResult> DecodeBlindWatermarkOutcome;
|
||||
typedef std::future<DecodeBlindWatermarkOutcome> DecodeBlindWatermarkOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DecodeBlindWatermarkRequest&, const DecodeBlindWatermarkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DecodeBlindWatermarkAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDocIndexResult> DeleteDocIndexOutcome;
|
||||
typedef std::future<DeleteDocIndexOutcome> DeleteDocIndexOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteDocIndexRequest&, const DeleteDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDocIndexAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteImageResult> DeleteImageOutcome;
|
||||
typedef std::future<DeleteImageOutcome> DeleteImageOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DeleteImageRequest&, const DeleteImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteImageAsyncHandler;
|
||||
@@ -284,9 +251,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectImageTagsResult> DetectImageTagsOutcome;
|
||||
typedef std::future<DetectImageTagsOutcome> DetectImageTagsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectImageTagsRequest&, const DetectImageTagsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectImageTagsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectImageTextsResult> DetectImageTextsOutcome;
|
||||
typedef std::future<DetectImageTextsOutcome> DetectImageTextsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectImageTextsRequest&, const DetectImageTextsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectImageTextsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectQRCodesResult> DetectQRCodesOutcome;
|
||||
typedef std::future<DetectQRCodesOutcome> DetectQRCodesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::DetectQRCodesRequest&, const DetectQRCodesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectQRCodesAsyncHandler;
|
||||
@@ -305,21 +269,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDRMLicenseResult> GetDRMLicenseOutcome;
|
||||
typedef std::future<GetDRMLicenseOutcome> GetDRMLicenseOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetDRMLicenseRequest&, const GetDRMLicenseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDRMLicenseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDocIndexResult> GetDocIndexOutcome;
|
||||
typedef std::future<GetDocIndexOutcome> GetDocIndexOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetDocIndexRequest&, const GetDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocIndexAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDocIndexTaskResult> GetDocIndexTaskOutcome;
|
||||
typedef std::future<GetDocIndexTaskOutcome> GetDocIndexTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetDocIndexTaskRequest&, const GetDocIndexTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDocIndexTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageResult> GetImageOutcome;
|
||||
typedef std::future<GetImageOutcome> GetImageOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageRequest&, const GetImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageCroppingSuggestionsResult> GetImageCroppingSuggestionsOutcome;
|
||||
typedef std::future<GetImageCroppingSuggestionsOutcome> GetImageCroppingSuggestionsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageCroppingSuggestionsRequest&, const GetImageCroppingSuggestionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageCroppingSuggestionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageJobResult> GetImageJobOutcome;
|
||||
typedef std::future<GetImageJobOutcome> GetImageJobOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageJobRequest&, const GetImageJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetImageQualityResult> GetImageQualityOutcome;
|
||||
typedef std::future<GetImageQualityOutcome> GetImageQualityOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::GetImageQualityRequest&, const GetImageQualityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetImageQualityAsyncHandler;
|
||||
@@ -359,9 +314,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListFaceGroupsResult> ListFaceGroupsOutcome;
|
||||
typedef std::future<ListFaceGroupsOutcome> ListFaceGroupsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListFaceGroupsRequest&, const ListFaceGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListImageJobsResult> ListImageJobsOutcome;
|
||||
typedef std::future<ListImageJobsOutcome> ListImageJobsOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListImageJobsRequest&, const ListImageJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListImageJobsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListImagesResult> ListImagesOutcome;
|
||||
typedef std::future<ListImagesOutcome> ListImagesOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::ListImagesRequest&, const ListImagesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListImagesAsyncHandler;
|
||||
@@ -407,15 +359,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RefreshWebofficeTokenResult> RefreshWebofficeTokenOutcome;
|
||||
typedef std::future<RefreshWebofficeTokenOutcome> RefreshWebofficeTokenOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::RefreshWebofficeTokenRequest&, const RefreshWebofficeTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshWebofficeTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchDocIndexResult> SearchDocIndexOutcome;
|
||||
typedef std::future<SearchDocIndexOutcome> SearchDocIndexOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::SearchDocIndexRequest&, const SearchDocIndexOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDocIndexAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopStreamAnalyseTaskResult> StopStreamAnalyseTaskOutcome;
|
||||
typedef std::future<StopStreamAnalyseTaskOutcome> StopStreamAnalyseTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::StopStreamAnalyseTaskRequest&, const StopStreamAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopStreamAnalyseTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateDocIndexMetaResult> UpdateDocIndexMetaOutcome;
|
||||
typedef std::future<UpdateDocIndexMetaOutcome> UpdateDocIndexMetaOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::UpdateDocIndexMetaRequest&, const UpdateDocIndexMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDocIndexMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateFaceGroupResult> UpdateFaceGroupOutcome;
|
||||
typedef std::future<UpdateFaceGroupOutcome> UpdateFaceGroupOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::UpdateFaceGroupRequest&, const UpdateFaceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceGroupAsyncHandler;
|
||||
@@ -428,9 +371,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateSetResult> UpdateSetOutcome;
|
||||
typedef std::future<UpdateSetOutcome> UpdateSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::UpdateSetRequest&, const UpdateSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::VideoAnalyseFeedbackResult> VideoAnalyseFeedbackOutcome;
|
||||
typedef std::future<VideoAnalyseFeedbackOutcome> VideoAnalyseFeedbackOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::VideoAnalyseFeedbackRequest&, const VideoAnalyseFeedbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VideoAnalyseFeedbackAsyncHandler;
|
||||
|
||||
ImmClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ImmClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -442,12 +382,6 @@ namespace AlibabaCloud
|
||||
ConvertOfficeFormatOutcome convertOfficeFormat(const Model::ConvertOfficeFormatRequest &request)const;
|
||||
void convertOfficeFormatAsync(const Model::ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConvertOfficeFormatOutcomeCallable convertOfficeFormatCallable(const Model::ConvertOfficeFormatRequest& request) const;
|
||||
CreateCADConversionTaskOutcome createCADConversionTask(const Model::CreateCADConversionTaskRequest &request)const;
|
||||
void createCADConversionTaskAsync(const Model::CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCADConversionTaskOutcomeCallable createCADConversionTaskCallable(const Model::CreateCADConversionTaskRequest& request) const;
|
||||
CreateDocIndexTaskOutcome createDocIndexTask(const Model::CreateDocIndexTaskRequest &request)const;
|
||||
void createDocIndexTaskAsync(const Model::CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDocIndexTaskOutcomeCallable createDocIndexTaskCallable(const Model::CreateDocIndexTaskRequest& request) const;
|
||||
CreateGrabFrameTaskOutcome createGrabFrameTask(const Model::CreateGrabFrameTaskRequest &request)const;
|
||||
void createGrabFrameTaskAsync(const Model::CreateGrabFrameTaskRequest& request, const CreateGrabFrameTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateGrabFrameTaskOutcomeCallable createGrabFrameTaskCallable(const Model::CreateGrabFrameTaskRequest& request) const;
|
||||
@@ -487,9 +421,6 @@ namespace AlibabaCloud
|
||||
DecodeBlindWatermarkOutcome decodeBlindWatermark(const Model::DecodeBlindWatermarkRequest &request)const;
|
||||
void decodeBlindWatermarkAsync(const Model::DecodeBlindWatermarkRequest& request, const DecodeBlindWatermarkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DecodeBlindWatermarkOutcomeCallable decodeBlindWatermarkCallable(const Model::DecodeBlindWatermarkRequest& request) const;
|
||||
DeleteDocIndexOutcome deleteDocIndex(const Model::DeleteDocIndexRequest &request)const;
|
||||
void deleteDocIndexAsync(const Model::DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDocIndexOutcomeCallable deleteDocIndexCallable(const Model::DeleteDocIndexRequest& request) const;
|
||||
DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const;
|
||||
void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const;
|
||||
@@ -529,9 +460,6 @@ namespace AlibabaCloud
|
||||
DetectImageTagsOutcome detectImageTags(const Model::DetectImageTagsRequest &request)const;
|
||||
void detectImageTagsAsync(const Model::DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectImageTagsOutcomeCallable detectImageTagsCallable(const Model::DetectImageTagsRequest& request) const;
|
||||
DetectImageTextsOutcome detectImageTexts(const Model::DetectImageTextsRequest &request)const;
|
||||
void detectImageTextsAsync(const Model::DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectImageTextsOutcomeCallable detectImageTextsCallable(const Model::DetectImageTextsRequest& request) const;
|
||||
DetectQRCodesOutcome detectQRCodes(const Model::DetectQRCodesRequest &request)const;
|
||||
void detectQRCodesAsync(const Model::DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectQRCodesOutcomeCallable detectQRCodesCallable(const Model::DetectQRCodesRequest& request) const;
|
||||
@@ -550,21 +478,12 @@ namespace AlibabaCloud
|
||||
GetDRMLicenseOutcome getDRMLicense(const Model::GetDRMLicenseRequest &request)const;
|
||||
void getDRMLicenseAsync(const Model::GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDRMLicenseOutcomeCallable getDRMLicenseCallable(const Model::GetDRMLicenseRequest& request) const;
|
||||
GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const;
|
||||
void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocIndexOutcomeCallable getDocIndexCallable(const Model::GetDocIndexRequest& request) const;
|
||||
GetDocIndexTaskOutcome getDocIndexTask(const Model::GetDocIndexTaskRequest &request)const;
|
||||
void getDocIndexTaskAsync(const Model::GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDocIndexTaskOutcomeCallable getDocIndexTaskCallable(const Model::GetDocIndexTaskRequest& request) const;
|
||||
GetImageOutcome getImage(const Model::GetImageRequest &request)const;
|
||||
void getImageAsync(const Model::GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageOutcomeCallable getImageCallable(const Model::GetImageRequest& request) const;
|
||||
GetImageCroppingSuggestionsOutcome getImageCroppingSuggestions(const Model::GetImageCroppingSuggestionsRequest &request)const;
|
||||
void getImageCroppingSuggestionsAsync(const Model::GetImageCroppingSuggestionsRequest& request, const GetImageCroppingSuggestionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageCroppingSuggestionsOutcomeCallable getImageCroppingSuggestionsCallable(const Model::GetImageCroppingSuggestionsRequest& request) const;
|
||||
GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const;
|
||||
void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const;
|
||||
GetImageQualityOutcome getImageQuality(const Model::GetImageQualityRequest &request)const;
|
||||
void getImageQualityAsync(const Model::GetImageQualityRequest& request, const GetImageQualityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetImageQualityOutcomeCallable getImageQualityCallable(const Model::GetImageQualityRequest& request) const;
|
||||
@@ -604,9 +523,6 @@ namespace AlibabaCloud
|
||||
ListFaceGroupsOutcome listFaceGroups(const Model::ListFaceGroupsRequest &request)const;
|
||||
void listFaceGroupsAsync(const Model::ListFaceGroupsRequest& request, const ListFaceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFaceGroupsOutcomeCallable listFaceGroupsCallable(const Model::ListFaceGroupsRequest& request) const;
|
||||
ListImageJobsOutcome listImageJobs(const Model::ListImageJobsRequest &request)const;
|
||||
void listImageJobsAsync(const Model::ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListImageJobsOutcomeCallable listImageJobsCallable(const Model::ListImageJobsRequest& request) const;
|
||||
ListImagesOutcome listImages(const Model::ListImagesRequest &request)const;
|
||||
void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const;
|
||||
@@ -652,15 +568,6 @@ namespace AlibabaCloud
|
||||
RefreshWebofficeTokenOutcome refreshWebofficeToken(const Model::RefreshWebofficeTokenRequest &request)const;
|
||||
void refreshWebofficeTokenAsync(const Model::RefreshWebofficeTokenRequest& request, const RefreshWebofficeTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefreshWebofficeTokenOutcomeCallable refreshWebofficeTokenCallable(const Model::RefreshWebofficeTokenRequest& request) const;
|
||||
SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const;
|
||||
void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const;
|
||||
StopStreamAnalyseTaskOutcome stopStreamAnalyseTask(const Model::StopStreamAnalyseTaskRequest &request)const;
|
||||
void stopStreamAnalyseTaskAsync(const Model::StopStreamAnalyseTaskRequest& request, const StopStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopStreamAnalyseTaskOutcomeCallable stopStreamAnalyseTaskCallable(const Model::StopStreamAnalyseTaskRequest& request) const;
|
||||
UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const;
|
||||
void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateDocIndexMetaOutcomeCallable updateDocIndexMetaCallable(const Model::UpdateDocIndexMetaRequest& request) const;
|
||||
UpdateFaceGroupOutcome updateFaceGroup(const Model::UpdateFaceGroupRequest &request)const;
|
||||
void updateFaceGroupAsync(const Model::UpdateFaceGroupRequest& request, const UpdateFaceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateFaceGroupOutcomeCallable updateFaceGroupCallable(const Model::UpdateFaceGroupRequest& request) const;
|
||||
@@ -673,9 +580,6 @@ namespace AlibabaCloud
|
||||
UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const;
|
||||
void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const;
|
||||
VideoAnalyseFeedbackOutcome videoAnalyseFeedback(const Model::VideoAnalyseFeedbackRequest &request)const;
|
||||
void videoAnalyseFeedbackAsync(const Model::VideoAnalyseFeedbackRequest& request, const VideoAnalyseFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VideoAnalyseFeedbackOutcomeCallable videoAnalyseFeedbackCallable(const Model::VideoAnalyseFeedbackRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCADConversionTaskRequest();
|
||||
~CreateCADConversionTaskRequest();
|
||||
|
||||
std::string getSrcType()const;
|
||||
void setSrcType(const std::string& srcType);
|
||||
int getBaseRow()const;
|
||||
void setBaseRow(int baseRow);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
int getZoomFactor()const;
|
||||
void setZoomFactor(int zoomFactor);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
int getBaseCol()const;
|
||||
void setBaseCol(int baseCol);
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
long getUnitWidth()const;
|
||||
void setUnitWidth(long unitWidth);
|
||||
int getZoomLevel()const;
|
||||
void setZoomLevel(int zoomLevel);
|
||||
std::string getModelId()const;
|
||||
void setModelId(const std::string& modelId);
|
||||
std::string getTgtType()const;
|
||||
void setTgtType(const std::string& tgtType);
|
||||
long getUnitHeight()const;
|
||||
void setUnitHeight(long unitHeight);
|
||||
std::string getSrcUri()const;
|
||||
void setSrcUri(const std::string& srcUri);
|
||||
bool getThumbnails()const;
|
||||
void setThumbnails(bool thumbnails);
|
||||
std::string getTgtUri()const;
|
||||
void setTgtUri(const std::string& tgtUri);
|
||||
|
||||
private:
|
||||
std::string srcType_;
|
||||
int baseRow_;
|
||||
std::string project_;
|
||||
int zoomFactor_;
|
||||
std::string accessKeyId_;
|
||||
std::string notifyEndpoint_;
|
||||
int baseCol_;
|
||||
std::string notifyTopicName_;
|
||||
long unitWidth_;
|
||||
int zoomLevel_;
|
||||
std::string modelId_;
|
||||
std::string tgtType_;
|
||||
long unitHeight_;
|
||||
std::string srcUri_;
|
||||
bool thumbnails_;
|
||||
std::string tgtUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateCADConversionTaskResult();
|
||||
explicit CreateCADConversionTaskResult(const std::string &payload);
|
||||
~CreateCADConversionTaskResult();
|
||||
std::string getStatus()const;
|
||||
std::string getTaskId()const;
|
||||
int getPercent()const;
|
||||
std::string getTgtLoc()const;
|
||||
std::string getCreateTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string taskId_;
|
||||
int percent_;
|
||||
std::string tgtLoc_;
|
||||
std::string createTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDocIndexTaskRequest();
|
||||
~CreateDocIndexTaskRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getUniqueId()const;
|
||||
void setUniqueId(const std::string& uniqueId);
|
||||
std::string getCustomKey1()const;
|
||||
void setCustomKey1(const std::string& customKey1);
|
||||
std::string getSet()const;
|
||||
void setSet(const std::string& set);
|
||||
std::string getCustomKey5()const;
|
||||
void setCustomKey5(const std::string& customKey5);
|
||||
std::string getCustomKey4()const;
|
||||
void setCustomKey4(const std::string& customKey4);
|
||||
std::string getCustomKey3()const;
|
||||
void setCustomKey3(const std::string& customKey3);
|
||||
std::string getCustomKey2()const;
|
||||
void setCustomKey2(const std::string& customKey2);
|
||||
std::string getCustomKey6()const;
|
||||
void setCustomKey6(const std::string& customKey6);
|
||||
std::string getContentType()const;
|
||||
void setContentType(const std::string& contentType);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getSrcUri()const;
|
||||
void setSrcUri(const std::string& srcUri);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string uniqueId_;
|
||||
std::string customKey1_;
|
||||
std::string set_;
|
||||
std::string customKey5_;
|
||||
std::string customKey4_;
|
||||
std::string customKey3_;
|
||||
std::string customKey2_;
|
||||
std::string customKey6_;
|
||||
std::string contentType_;
|
||||
std::string name_;
|
||||
std::string srcUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_
|
||||
@@ -1,55 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDocIndexTaskResult();
|
||||
explicit CreateDocIndexTaskResult(const std::string &payload);
|
||||
~CreateDocIndexTaskResult();
|
||||
std::string getStatus()const;
|
||||
std::string getTaskId()const;
|
||||
std::string getCreateTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string taskId_;
|
||||
std::string createTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDocIndexRequest();
|
||||
~DeleteDocIndexRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getUniqueId()const;
|
||||
void setUniqueId(const std::string& uniqueId);
|
||||
std::string getSet()const;
|
||||
void setSet(const std::string& set);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string uniqueId_;
|
||||
std::string set_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDocIndexResult();
|
||||
explicit DeleteDocIndexResult(const std::string &payload);
|
||||
~DeleteDocIndexResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DetectImageTextsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectImageTextsRequest();
|
||||
~DetectImageTextsRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string imageUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT DetectImageTextsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct OCRItem
|
||||
{
|
||||
struct OCRBoundary
|
||||
{
|
||||
int left;
|
||||
int top;
|
||||
int height;
|
||||
int width;
|
||||
};
|
||||
OCRBoundary oCRBoundary;
|
||||
float oCRConfidence;
|
||||
std::string oCRContents;
|
||||
};
|
||||
|
||||
|
||||
DetectImageTextsResult();
|
||||
explicit DetectImageTextsResult(const std::string &payload);
|
||||
~DetectImageTextsResult();
|
||||
std::string getImageUri()const;
|
||||
std::vector<OCRItem> getOCR()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string imageUri_;
|
||||
std::vector<OCRItem> oCR_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetDocIndexRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDocIndexRequest();
|
||||
~GetDocIndexRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getUniqueId()const;
|
||||
void setUniqueId(const std::string& uniqueId);
|
||||
std::string getSet()const;
|
||||
void setSet(const std::string& set);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string uniqueId_;
|
||||
std::string set_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetDocIndexResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetDocIndexResult();
|
||||
explicit GetDocIndexResult(const std::string &payload);
|
||||
~GetDocIndexResult();
|
||||
std::string getCustomKey4()const;
|
||||
std::string getUniqueId()const;
|
||||
std::string getCustomKey5()const;
|
||||
std::string getCustomKey2()const;
|
||||
std::string getCustomKey3()const;
|
||||
std::string getContentType()const;
|
||||
long getPageNum()const;
|
||||
std::string getCustomKey1()const;
|
||||
long getSize()const;
|
||||
std::string getIndexModifiedTime()const;
|
||||
std::string getIndexCreatedTime()const;
|
||||
std::string getCustomKey6()const;
|
||||
std::string getName()const;
|
||||
std::string getLastModified()const;
|
||||
std::string getSrcUri()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string customKey4_;
|
||||
std::string uniqueId_;
|
||||
std::string customKey5_;
|
||||
std::string customKey2_;
|
||||
std::string customKey3_;
|
||||
std::string contentType_;
|
||||
long pageNum_;
|
||||
std::string customKey1_;
|
||||
long size_;
|
||||
std::string indexModifiedTime_;
|
||||
std::string indexCreatedTime_;
|
||||
std::string customKey6_;
|
||||
std::string name_;
|
||||
std::string lastModified_;
|
||||
std::string srcUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetDocIndexTaskRequest();
|
||||
~GetDocIndexTaskRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct FailDetail
|
||||
{
|
||||
std::string code;
|
||||
};
|
||||
|
||||
|
||||
GetDocIndexTaskResult();
|
||||
explicit GetDocIndexTaskResult(const std::string &payload);
|
||||
~GetDocIndexTaskResult();
|
||||
std::string getStatus()const;
|
||||
FailDetail getFailDetail()const;
|
||||
std::string getTaskId()const;
|
||||
std::string getFinishTime()const;
|
||||
std::string getCreateTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
FailDetail failDetail_;
|
||||
std::string taskId_;
|
||||
std::string finishTime_;
|
||||
std::string createTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_
|
||||
@@ -1,57 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetImageJobRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetImageJobRequest();
|
||||
~GetImageJobRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getJobId()const;
|
||||
void setJobId(const std::string& jobId);
|
||||
std::string getJobType()const;
|
||||
void setJobType(const std::string& jobType);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string jobId_;
|
||||
std::string jobType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_
|
||||
@@ -1,71 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT GetImageJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetImageJobResult();
|
||||
explicit GetImageJobResult(const std::string &payload);
|
||||
~GetImageJobResult();
|
||||
std::string getStatus()const;
|
||||
std::string getNotifyEndpoint()const;
|
||||
int getProgress()const;
|
||||
std::string getJobType()const;
|
||||
std::string getParameters()const;
|
||||
std::string getEndTime()const;
|
||||
std::string getStartTime()const;
|
||||
std::string getNotifyTopicName()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getJobId()const;
|
||||
std::string getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string status_;
|
||||
std::string notifyEndpoint_;
|
||||
int progress_;
|
||||
std::string jobType_;
|
||||
std::string parameters_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
std::string notifyTopicName_;
|
||||
std::string errorMessage_;
|
||||
std::string jobId_;
|
||||
std::string result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT ListImageJobsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListImageJobsRequest();
|
||||
~ListImageJobsRequest();
|
||||
|
||||
int getMaxKeys()const;
|
||||
void setMaxKeys(int maxKeys);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getJobType()const;
|
||||
void setJobType(const std::string& jobType);
|
||||
std::string getMarker()const;
|
||||
void setMarker(const std::string& marker);
|
||||
|
||||
private:
|
||||
int maxKeys_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string jobType_;
|
||||
std::string marker_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT ListImageJobsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobsItem
|
||||
{
|
||||
std::string status;
|
||||
std::string notifyEndpoint;
|
||||
int progress;
|
||||
std::string jobType;
|
||||
std::string parameters;
|
||||
std::string endTime;
|
||||
std::string startTime;
|
||||
std::string notifyTopicName;
|
||||
std::string errorMessage;
|
||||
std::string jobId;
|
||||
std::string result;
|
||||
};
|
||||
|
||||
|
||||
ListImageJobsResult();
|
||||
explicit ListImageJobsResult(const std::string &payload);
|
||||
~ListImageJobsResult();
|
||||
std::vector<JobsItem> getJobs()const;
|
||||
std::string getNextMarker()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<JobsItem> jobs_;
|
||||
std::string nextMarker_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_
|
||||
@@ -1,105 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT SearchDocIndexRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchDocIndexRequest();
|
||||
~SearchDocIndexRequest();
|
||||
|
||||
int getModifiedTimeEnd()const;
|
||||
void setModifiedTimeEnd(int modifiedTimeEnd);
|
||||
int getSizeLimitEnd()const;
|
||||
void setSizeLimitEnd(int sizeLimitEnd);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
int getModifiedTimeStart()const;
|
||||
void setModifiedTimeStart(int modifiedTimeStart);
|
||||
int getPageNumLimitStart()const;
|
||||
void setPageNumLimitStart(int pageNumLimitStart);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
int getSizeLimitStart()const;
|
||||
void setSizeLimitStart(int sizeLimitStart);
|
||||
int getLimit()const;
|
||||
void setLimit(int limit);
|
||||
std::string getCustomKey1()const;
|
||||
void setCustomKey1(const std::string& customKey1);
|
||||
std::string getSet()const;
|
||||
void setSet(const std::string& set);
|
||||
std::string getCustomKey5()const;
|
||||
void setCustomKey5(const std::string& customKey5);
|
||||
int getOffset()const;
|
||||
void setOffset(int offset);
|
||||
std::string getCustomKey4()const;
|
||||
void setCustomKey4(const std::string& customKey4);
|
||||
std::string getCustomKey3()const;
|
||||
void setCustomKey3(const std::string& customKey3);
|
||||
std::string getCustomKey2()const;
|
||||
void setCustomKey2(const std::string& customKey2);
|
||||
std::string getCustomKey6()const;
|
||||
void setCustomKey6(const std::string& customKey6);
|
||||
int getPageNumLimitEnd()const;
|
||||
void setPageNumLimitEnd(int pageNumLimitEnd);
|
||||
std::string getContentType()const;
|
||||
void setContentType(const std::string& contentType);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
int modifiedTimeEnd_;
|
||||
int sizeLimitEnd_;
|
||||
std::string project_;
|
||||
int modifiedTimeStart_;
|
||||
int pageNumLimitStart_;
|
||||
std::string content_;
|
||||
std::string accessKeyId_;
|
||||
int sizeLimitStart_;
|
||||
int limit_;
|
||||
std::string customKey1_;
|
||||
std::string set_;
|
||||
std::string customKey5_;
|
||||
int offset_;
|
||||
std::string customKey4_;
|
||||
std::string customKey3_;
|
||||
std::string customKey2_;
|
||||
std::string customKey6_;
|
||||
int pageNumLimitEnd_;
|
||||
std::string contentType_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_
|
||||
@@ -1,67 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT SearchDocIndexResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DocInfosItem
|
||||
{
|
||||
std::string customKey4;
|
||||
std::string uniqueId;
|
||||
std::string customKey5;
|
||||
std::string customKey2;
|
||||
std::string customKey3;
|
||||
std::string contentType;
|
||||
int pageNum;
|
||||
std::string customKey1;
|
||||
int size;
|
||||
std::string customKey6;
|
||||
std::string name;
|
||||
std::string lastModified;
|
||||
std::string srcUri;
|
||||
};
|
||||
|
||||
|
||||
SearchDocIndexResult();
|
||||
explicit SearchDocIndexResult(const std::string &payload);
|
||||
~SearchDocIndexResult();
|
||||
std::vector<DocInfosItem> getDocInfos()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DocInfosItem> docInfos_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT StopStreamAnalyseTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopStreamAnalyseTaskRequest();
|
||||
~StopStreamAnalyseTaskRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKREQUEST_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT StopStreamAnalyseTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopStreamAnalyseTaskResult();
|
||||
explicit StopStreamAnalyseTaskResult(const std::string &payload);
|
||||
~StopStreamAnalyseTaskResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_STOPSTREAMANALYSETASKRESULT_H_
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateDocIndexMetaRequest();
|
||||
~UpdateDocIndexMetaRequest();
|
||||
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getUniqueId()const;
|
||||
void setUniqueId(const std::string& uniqueId);
|
||||
std::string getCustomKey1()const;
|
||||
void setCustomKey1(const std::string& customKey1);
|
||||
std::string getSet()const;
|
||||
void setSet(const std::string& set);
|
||||
std::string getCustomKey5()const;
|
||||
void setCustomKey5(const std::string& customKey5);
|
||||
std::string getCustomKey4()const;
|
||||
void setCustomKey4(const std::string& customKey4);
|
||||
std::string getCustomKey3()const;
|
||||
void setCustomKey3(const std::string& customKey3);
|
||||
std::string getCustomKey2()const;
|
||||
void setCustomKey2(const std::string& customKey2);
|
||||
std::string getCustomKey6()const;
|
||||
void setCustomKey6(const std::string& customKey6);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string uniqueId_;
|
||||
std::string customKey1_;
|
||||
std::string set_;
|
||||
std::string customKey5_;
|
||||
std::string customKey4_;
|
||||
std::string customKey3_;
|
||||
std::string customKey2_;
|
||||
std::string customKey6_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateDocIndexMetaResult();
|
||||
explicit UpdateDocIndexMetaResult(const std::string &payload);
|
||||
~UpdateDocIndexMetaResult();
|
||||
std::string getIndexModifiedTime()const;
|
||||
std::string getIndexCreatedTime()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string indexModifiedTime_;
|
||||
std::string indexCreatedTime_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT VideoAnalyseFeedbackRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VideoAnalyseFeedbackRequest();
|
||||
~VideoAnalyseFeedbackRequest();
|
||||
|
||||
std::string getNote()const;
|
||||
void setNote(const std::string& note);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
std::string getFrames()const;
|
||||
void setFrames(const std::string& frames);
|
||||
std::string getSuggestion()const;
|
||||
void setSuggestion(const std::string& suggestion);
|
||||
std::string getUri()const;
|
||||
void setUri(const std::string& uri);
|
||||
std::string getScenes()const;
|
||||
void setScenes(const std::string& scenes);
|
||||
|
||||
private:
|
||||
std::string note_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string taskId_;
|
||||
std::string frames_;
|
||||
std::string suggestion_;
|
||||
std::string uri_;
|
||||
std::string scenes_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT VideoAnalyseFeedbackResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
VideoAnalyseFeedbackResult();
|
||||
explicit VideoAnalyseFeedbackResult(const std::string &payload);
|
||||
~VideoAnalyseFeedbackResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_VIDEOANALYSEFEEDBACKRESULT_H_
|
||||
@@ -31,21 +31,21 @@ ImmClient::ImmClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imm");
|
||||
}
|
||||
|
||||
ImmClient::ImmClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imm");
|
||||
}
|
||||
|
||||
ImmClient::ImmClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "imm");
|
||||
}
|
||||
|
||||
ImmClient::~ImmClient()
|
||||
@@ -123,78 +123,6 @@ ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateCADConversionTaskOutcome ImmClient::createCADConversionTask(const CreateCADConversionTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCADConversionTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCADConversionTaskOutcome(CreateCADConversionTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateCADConversionTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createCADConversionTaskAsync(const CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCADConversionTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateCADConversionTaskOutcomeCallable ImmClient::createCADConversionTaskCallable(const CreateCADConversionTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCADConversionTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCADConversionTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateDocIndexTaskOutcome ImmClient::createDocIndexTask(const CreateDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDocIndexTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDocIndexTaskOutcome(CreateDocIndexTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateDocIndexTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createDocIndexTaskAsync(const CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDocIndexTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateDocIndexTaskOutcomeCallable ImmClient::createDocIndexTaskCallable(const CreateDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDocIndexTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDocIndexTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateGrabFrameTaskOutcome ImmClient::createGrabFrameTask(const CreateGrabFrameTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -663,42 +591,6 @@ ImmClient::DecodeBlindWatermarkOutcomeCallable ImmClient::decodeBlindWatermarkCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeleteDocIndexOutcome ImmClient::deleteDocIndex(const DeleteDocIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDocIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDocIndexOutcome(DeleteDocIndexResult(outcome.result()));
|
||||
else
|
||||
return DeleteDocIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::deleteDocIndexAsync(const DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDocIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DeleteDocIndexOutcomeCallable ImmClient::deleteDocIndexCallable(const DeleteDocIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDocIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDocIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DeleteImageOutcome ImmClient::deleteImage(const DeleteImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,42 +1059,6 @@ ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DetectImageTextsOutcome ImmClient::detectImageTexts(const DetectImageTextsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectImageTextsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectImageTextsOutcome(DetectImageTextsResult(outcome.result()));
|
||||
else
|
||||
return DetectImageTextsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::detectImageTextsAsync(const DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectImageTexts(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::DetectImageTextsOutcomeCallable ImmClient::detectImageTextsCallable(const DetectImageTextsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectImageTextsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectImageTexts(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,78 +1275,6 @@ ImmClient::GetDRMLicenseOutcomeCallable ImmClient::getDRMLicenseCallable(const G
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetDocIndexOutcome ImmClient::getDocIndex(const GetDocIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDocIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDocIndexOutcome(GetDocIndexResult(outcome.result()));
|
||||
else
|
||||
return GetDocIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getDocIndexAsync(const GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDocIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetDocIndexOutcomeCallable ImmClient::getDocIndexCallable(const GetDocIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDocIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDocIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetDocIndexTaskOutcome ImmClient::getDocIndexTask(const GetDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDocIndexTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDocIndexTaskOutcome(GetDocIndexTaskResult(outcome.result()));
|
||||
else
|
||||
return GetDocIndexTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getDocIndexTaskAsync(const GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDocIndexTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetDocIndexTaskOutcomeCallable ImmClient::getDocIndexTaskCallable(const GetDocIndexTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDocIndexTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDocIndexTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetImageOutcome ImmClient::getImage(const GetImageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,42 +1347,6 @@ ImmClient::GetImageCroppingSuggestionsOutcomeCallable ImmClient::getImageCroppin
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetImageJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetImageJobOutcome(GetImageJobResult(outcome.result()));
|
||||
else
|
||||
return GetImageJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getImageJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetImageJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getImageJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::GetImageQualityOutcome ImmClient::getImageQuality(const GetImageQualityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2067,42 +1815,6 @@ ImmClient::ListFaceGroupsOutcomeCallable ImmClient::listFaceGroupsCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListImageJobsOutcome ImmClient::listImageJobs(const ListImageJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListImageJobsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListImageJobsOutcome(ListImageJobsResult(outcome.result()));
|
||||
else
|
||||
return ListImageJobsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::listImageJobsAsync(const ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listImageJobs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::ListImageJobsOutcomeCallable ImmClient::listImageJobsCallable(const ListImageJobsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListImageJobsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listImageJobs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::ListImagesOutcome ImmClient::listImages(const ListImagesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2643,114 +2355,6 @@ ImmClient::RefreshWebofficeTokenOutcomeCallable ImmClient::refreshWebofficeToken
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::SearchDocIndexOutcome ImmClient::searchDocIndex(const SearchDocIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchDocIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchDocIndexOutcome(SearchDocIndexResult(outcome.result()));
|
||||
else
|
||||
return SearchDocIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::searchDocIndexAsync(const SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchDocIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::SearchDocIndexOutcomeCallable ImmClient::searchDocIndexCallable(const SearchDocIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchDocIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchDocIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::StopStreamAnalyseTaskOutcome ImmClient::stopStreamAnalyseTask(const StopStreamAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopStreamAnalyseTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopStreamAnalyseTaskOutcome(StopStreamAnalyseTaskResult(outcome.result()));
|
||||
else
|
||||
return StopStreamAnalyseTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::stopStreamAnalyseTaskAsync(const StopStreamAnalyseTaskRequest& request, const StopStreamAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopStreamAnalyseTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::StopStreamAnalyseTaskOutcomeCallable ImmClient::stopStreamAnalyseTaskCallable(const StopStreamAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopStreamAnalyseTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopStreamAnalyseTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::UpdateDocIndexMetaOutcome ImmClient::updateDocIndexMeta(const UpdateDocIndexMetaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateDocIndexMetaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateDocIndexMetaOutcome(UpdateDocIndexMetaResult(outcome.result()));
|
||||
else
|
||||
return UpdateDocIndexMetaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::updateDocIndexMetaAsync(const UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateDocIndexMeta(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::UpdateDocIndexMetaOutcomeCallable ImmClient::updateDocIndexMetaCallable(const UpdateDocIndexMetaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateDocIndexMetaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateDocIndexMeta(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::UpdateFaceGroupOutcome ImmClient::updateFaceGroup(const UpdateFaceGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2895,39 +2499,3 @@ ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSet
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::VideoAnalyseFeedbackOutcome ImmClient::videoAnalyseFeedback(const VideoAnalyseFeedbackRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VideoAnalyseFeedbackOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VideoAnalyseFeedbackOutcome(VideoAnalyseFeedbackResult(outcome.result()));
|
||||
else
|
||||
return VideoAnalyseFeedbackOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::videoAnalyseFeedbackAsync(const VideoAnalyseFeedbackRequest& request, const VideoAnalyseFeedbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, videoAnalyseFeedback(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::VideoAnalyseFeedbackOutcomeCallable ImmClient::videoAnalyseFeedbackCallable(const VideoAnalyseFeedbackRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VideoAnalyseFeedbackOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->videoAnalyseFeedback(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,205 +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 <alibabacloud/imm/model/CreateCADConversionTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateCADConversionTaskRequest;
|
||||
|
||||
CreateCADConversionTaskRequest::CreateCADConversionTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateCADConversionTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCADConversionTaskRequest::~CreateCADConversionTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getSrcType()const
|
||||
{
|
||||
return srcType_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setSrcType(const std::string& srcType)
|
||||
{
|
||||
srcType_ = srcType;
|
||||
setParameter("SrcType", srcType);
|
||||
}
|
||||
|
||||
int CreateCADConversionTaskRequest::getBaseRow()const
|
||||
{
|
||||
return baseRow_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setBaseRow(int baseRow)
|
||||
{
|
||||
baseRow_ = baseRow;
|
||||
setParameter("BaseRow", std::to_string(baseRow));
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
int CreateCADConversionTaskRequest::getZoomFactor()const
|
||||
{
|
||||
return zoomFactor_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setZoomFactor(int zoomFactor)
|
||||
{
|
||||
zoomFactor_ = zoomFactor;
|
||||
setParameter("ZoomFactor", std::to_string(zoomFactor));
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
int CreateCADConversionTaskRequest::getBaseCol()const
|
||||
{
|
||||
return baseCol_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setBaseCol(int baseCol)
|
||||
{
|
||||
baseCol_ = baseCol;
|
||||
setParameter("BaseCol", std::to_string(baseCol));
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
long CreateCADConversionTaskRequest::getUnitWidth()const
|
||||
{
|
||||
return unitWidth_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setUnitWidth(long unitWidth)
|
||||
{
|
||||
unitWidth_ = unitWidth;
|
||||
setParameter("UnitWidth", std::to_string(unitWidth));
|
||||
}
|
||||
|
||||
int CreateCADConversionTaskRequest::getZoomLevel()const
|
||||
{
|
||||
return zoomLevel_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setZoomLevel(int zoomLevel)
|
||||
{
|
||||
zoomLevel_ = zoomLevel;
|
||||
setParameter("ZoomLevel", std::to_string(zoomLevel));
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getTgtType()const
|
||||
{
|
||||
return tgtType_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setTgtType(const std::string& tgtType)
|
||||
{
|
||||
tgtType_ = tgtType;
|
||||
setParameter("TgtType", tgtType);
|
||||
}
|
||||
|
||||
long CreateCADConversionTaskRequest::getUnitHeight()const
|
||||
{
|
||||
return unitHeight_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setUnitHeight(long unitHeight)
|
||||
{
|
||||
unitHeight_ = unitHeight;
|
||||
setParameter("UnitHeight", std::to_string(unitHeight));
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getSrcUri()const
|
||||
{
|
||||
return srcUri_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setSrcUri(const std::string& srcUri)
|
||||
{
|
||||
srcUri_ = srcUri;
|
||||
setParameter("SrcUri", srcUri);
|
||||
}
|
||||
|
||||
bool CreateCADConversionTaskRequest::getThumbnails()const
|
||||
{
|
||||
return thumbnails_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setThumbnails(bool thumbnails)
|
||||
{
|
||||
thumbnails_ = thumbnails;
|
||||
setParameter("Thumbnails", thumbnails ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskRequest::getTgtUri()const
|
||||
{
|
||||
return tgtUri_;
|
||||
}
|
||||
|
||||
void CreateCADConversionTaskRequest::setTgtUri(const std::string& tgtUri)
|
||||
{
|
||||
tgtUri_ = tgtUri;
|
||||
setParameter("TgtUri", tgtUri);
|
||||
}
|
||||
|
||||
@@ -1,79 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateCADConversionTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateCADConversionTaskResult::CreateCADConversionTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCADConversionTaskResult::CreateCADConversionTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCADConversionTaskResult::~CreateCADConversionTaskResult()
|
||||
{}
|
||||
|
||||
void CreateCADConversionTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TgtLoc"].isNull())
|
||||
tgtLoc_ = value["TgtLoc"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["Percent"].isNull())
|
||||
percent_ = std::stoi(value["Percent"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
int CreateCADConversionTaskResult::getPercent()const
|
||||
{
|
||||
return percent_;
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskResult::getTgtLoc()const
|
||||
{
|
||||
return tgtLoc_;
|
||||
}
|
||||
|
||||
std::string CreateCADConversionTaskResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
@@ -1,161 +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 <alibabacloud/imm/model/CreateDocIndexTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateDocIndexTaskRequest;
|
||||
|
||||
CreateDocIndexTaskRequest::CreateDocIndexTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateDocIndexTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDocIndexTaskRequest::~CreateDocIndexTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getUniqueId()const
|
||||
{
|
||||
return uniqueId_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setUniqueId(const std::string& uniqueId)
|
||||
{
|
||||
uniqueId_ = uniqueId;
|
||||
setParameter("UniqueId", uniqueId);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey1()const
|
||||
{
|
||||
return customKey1_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey1(const std::string& customKey1)
|
||||
{
|
||||
customKey1_ = customKey1;
|
||||
setParameter("CustomKey1", customKey1);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getSet()const
|
||||
{
|
||||
return set_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setSet(const std::string& set)
|
||||
{
|
||||
set_ = set;
|
||||
setParameter("Set", set);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey5()const
|
||||
{
|
||||
return customKey5_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey5(const std::string& customKey5)
|
||||
{
|
||||
customKey5_ = customKey5;
|
||||
setParameter("CustomKey5", customKey5);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey4()const
|
||||
{
|
||||
return customKey4_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey4(const std::string& customKey4)
|
||||
{
|
||||
customKey4_ = customKey4;
|
||||
setParameter("CustomKey4", customKey4);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey3()const
|
||||
{
|
||||
return customKey3_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey3(const std::string& customKey3)
|
||||
{
|
||||
customKey3_ = customKey3;
|
||||
setParameter("CustomKey3", customKey3);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey2()const
|
||||
{
|
||||
return customKey2_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey2(const std::string& customKey2)
|
||||
{
|
||||
customKey2_ = customKey2;
|
||||
setParameter("CustomKey2", customKey2);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getCustomKey6()const
|
||||
{
|
||||
return customKey6_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setCustomKey6(const std::string& customKey6)
|
||||
{
|
||||
customKey6_ = customKey6;
|
||||
setParameter("CustomKey6", customKey6);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getContentType()const
|
||||
{
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setContentType(const std::string& contentType)
|
||||
{
|
||||
contentType_ = contentType;
|
||||
setParameter("ContentType", contentType);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskRequest::getSrcUri()const
|
||||
{
|
||||
return srcUri_;
|
||||
}
|
||||
|
||||
void CreateDocIndexTaskRequest::setSrcUri(const std::string& srcUri)
|
||||
{
|
||||
srcUri_ = srcUri;
|
||||
setParameter("SrcUri", srcUri);
|
||||
}
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/CreateDocIndexTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateDocIndexTaskResult::CreateDocIndexTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDocIndexTaskResult::CreateDocIndexTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDocIndexTaskResult::~CreateDocIndexTaskResult()
|
||||
{}
|
||||
|
||||
void CreateDocIndexTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateDocIndexTaskResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/DeleteDocIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::DeleteDocIndexRequest;
|
||||
|
||||
DeleteDocIndexRequest::DeleteDocIndexRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "DeleteDocIndex")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDocIndexRequest::~DeleteDocIndexRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDocIndexRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DeleteDocIndexRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DeleteDocIndexRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteDocIndexRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteDocIndexRequest::getUniqueId()const
|
||||
{
|
||||
return uniqueId_;
|
||||
}
|
||||
|
||||
void DeleteDocIndexRequest::setUniqueId(const std::string& uniqueId)
|
||||
{
|
||||
uniqueId_ = uniqueId;
|
||||
setParameter("UniqueId", uniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteDocIndexRequest::getSet()const
|
||||
{
|
||||
return set_;
|
||||
}
|
||||
|
||||
void DeleteDocIndexRequest::setSet(const std::string& set)
|
||||
{
|
||||
set_ = set;
|
||||
setParameter("Set", set);
|
||||
}
|
||||
|
||||
@@ -1,44 +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 <alibabacloud/imm/model/DeleteDocIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
DeleteDocIndexResult::DeleteDocIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDocIndexResult::DeleteDocIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDocIndexResult::~DeleteDocIndexResult()
|
||||
{}
|
||||
|
||||
void DeleteDocIndexResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,62 +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 <alibabacloud/imm/model/DetectImageTextsRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::DetectImageTextsRequest;
|
||||
|
||||
DetectImageTextsRequest::DetectImageTextsRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "DetectImageTexts")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectImageTextsRequest::~DetectImageTextsRequest()
|
||||
{}
|
||||
|
||||
std::string DetectImageTextsRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DetectImageTextsRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DetectImageTextsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DetectImageTextsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DetectImageTextsRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void DetectImageTextsRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/DetectImageTextsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
DetectImageTextsResult::DetectImageTextsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectImageTextsResult::DetectImageTextsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectImageTextsResult::~DetectImageTextsResult()
|
||||
{}
|
||||
|
||||
void DetectImageTextsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOCRNode = value["OCR"]["OCRItem"];
|
||||
for (auto valueOCROCRItem : allOCRNode)
|
||||
{
|
||||
OCRItem oCRObject;
|
||||
if(!valueOCROCRItem["OCRContents"].isNull())
|
||||
oCRObject.oCRContents = valueOCROCRItem["OCRContents"].asString();
|
||||
if(!valueOCROCRItem["OCRConfidence"].isNull())
|
||||
oCRObject.oCRConfidence = std::stof(valueOCROCRItem["OCRConfidence"].asString());
|
||||
auto oCRBoundaryNode = value["OCRBoundary"];
|
||||
if(!oCRBoundaryNode["Left"].isNull())
|
||||
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
|
||||
if(!oCRBoundaryNode["Top"].isNull())
|
||||
oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString());
|
||||
if(!oCRBoundaryNode["Width"].isNull())
|
||||
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
|
||||
if(!oCRBoundaryNode["Height"].isNull())
|
||||
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
|
||||
oCR_.push_back(oCRObject);
|
||||
}
|
||||
if(!value["ImageUri"].isNull())
|
||||
imageUri_ = value["ImageUri"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DetectImageTextsResult::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
std::vector<DetectImageTextsResult::OCRItem> DetectImageTextsResult::getOCR()const
|
||||
{
|
||||
return oCR_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetDocIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::GetDocIndexRequest;
|
||||
|
||||
GetDocIndexRequest::GetDocIndexRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "GetDocIndex")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDocIndexRequest::~GetDocIndexRequest()
|
||||
{}
|
||||
|
||||
std::string GetDocIndexRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void GetDocIndexRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string GetDocIndexRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetDocIndexRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetDocIndexRequest::getUniqueId()const
|
||||
{
|
||||
return uniqueId_;
|
||||
}
|
||||
|
||||
void GetDocIndexRequest::setUniqueId(const std::string& uniqueId)
|
||||
{
|
||||
uniqueId_ = uniqueId;
|
||||
setParameter("UniqueId", uniqueId);
|
||||
}
|
||||
|
||||
std::string GetDocIndexRequest::getSet()const
|
||||
{
|
||||
return set_;
|
||||
}
|
||||
|
||||
void GetDocIndexRequest::setSet(const std::string& set)
|
||||
{
|
||||
set_ = set;
|
||||
setParameter("Set", set);
|
||||
}
|
||||
|
||||
@@ -1,149 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetDocIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
GetDocIndexResult::GetDocIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDocIndexResult::GetDocIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDocIndexResult::~GetDocIndexResult()
|
||||
{}
|
||||
|
||||
void GetDocIndexResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IndexCreatedTime"].isNull())
|
||||
indexCreatedTime_ = value["IndexCreatedTime"].asString();
|
||||
if(!value["IndexModifiedTime"].isNull())
|
||||
indexModifiedTime_ = value["IndexModifiedTime"].asString();
|
||||
if(!value["UniqueId"].isNull())
|
||||
uniqueId_ = value["UniqueId"].asString();
|
||||
if(!value["SrcUri"].isNull())
|
||||
srcUri_ = value["SrcUri"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["ContentType"].isNull())
|
||||
contentType_ = value["ContentType"].asString();
|
||||
if(!value["LastModified"].isNull())
|
||||
lastModified_ = value["LastModified"].asString();
|
||||
if(!value["Size"].isNull())
|
||||
size_ = std::stol(value["Size"].asString());
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stol(value["PageNum"].asString());
|
||||
if(!value["CustomKey1"].isNull())
|
||||
customKey1_ = value["CustomKey1"].asString();
|
||||
if(!value["CustomKey2"].isNull())
|
||||
customKey2_ = value["CustomKey2"].asString();
|
||||
if(!value["CustomKey3"].isNull())
|
||||
customKey3_ = value["CustomKey3"].asString();
|
||||
if(!value["CustomKey4"].isNull())
|
||||
customKey4_ = value["CustomKey4"].asString();
|
||||
if(!value["CustomKey5"].isNull())
|
||||
customKey5_ = value["CustomKey5"].asString();
|
||||
if(!value["CustomKey6"].isNull())
|
||||
customKey6_ = value["CustomKey6"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey4()const
|
||||
{
|
||||
return customKey4_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getUniqueId()const
|
||||
{
|
||||
return uniqueId_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey5()const
|
||||
{
|
||||
return customKey5_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey2()const
|
||||
{
|
||||
return customKey2_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey3()const
|
||||
{
|
||||
return customKey3_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getContentType()const
|
||||
{
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
long GetDocIndexResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey1()const
|
||||
{
|
||||
return customKey1_;
|
||||
}
|
||||
|
||||
long GetDocIndexResult::getSize()const
|
||||
{
|
||||
return size_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getIndexModifiedTime()const
|
||||
{
|
||||
return indexModifiedTime_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getIndexCreatedTime()const
|
||||
{
|
||||
return indexCreatedTime_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getCustomKey6()const
|
||||
{
|
||||
return customKey6_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getLastModified()const
|
||||
{
|
||||
return lastModified_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexResult::getSrcUri()const
|
||||
{
|
||||
return srcUri_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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 <alibabacloud/imm/model/GetDocIndexTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::GetDocIndexTaskRequest;
|
||||
|
||||
GetDocIndexTaskRequest::GetDocIndexTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "GetDocIndexTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDocIndexTaskRequest::~GetDocIndexTaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetDocIndexTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void GetDocIndexTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetDocIndexTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void GetDocIndexTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
@@ -1,80 +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 <alibabacloud/imm/model/GetDocIndexTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
GetDocIndexTaskResult::GetDocIndexTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDocIndexTaskResult::GetDocIndexTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDocIndexTaskResult::~GetDocIndexTaskResult()
|
||||
{}
|
||||
|
||||
void GetDocIndexTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto failDetailNode = value["FailDetail"];
|
||||
if(!failDetailNode["Code"].isNull())
|
||||
failDetail_.code = failDetailNode["Code"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["FinishTime"].isNull())
|
||||
finishTime_ = value["FinishTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
GetDocIndexTaskResult::FailDetail GetDocIndexTaskResult::getFailDetail()const
|
||||
{
|
||||
return failDetail_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskResult::getFinishTime()const
|
||||
{
|
||||
return finishTime_;
|
||||
}
|
||||
|
||||
std::string GetDocIndexTaskResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetImageJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::GetImageJobRequest;
|
||||
|
||||
GetImageJobRequest::GetImageJobRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "GetImageJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageJobRequest::~GetImageJobRequest()
|
||||
{}
|
||||
|
||||
std::string GetImageJobRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void GetImageJobRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string GetImageJobRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetImageJobRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string GetImageJobRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
void GetImageJobRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
}
|
||||
|
||||
std::string GetImageJobRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void GetImageJobRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
@@ -1,121 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/GetImageJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
GetImageJobResult::GetImageJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageJobResult::GetImageJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageJobResult::~GetImageJobResult()
|
||||
{}
|
||||
|
||||
void GetImageJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobId"].isNull())
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["JobType"].isNull())
|
||||
jobType_ = value["JobType"].asString();
|
||||
if(!value["Parameters"].isNull())
|
||||
parameters_ = value["Parameters"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["NotifyEndpoint"].isNull())
|
||||
notifyEndpoint_ = value["NotifyEndpoint"].asString();
|
||||
if(!value["NotifyTopicName"].isNull())
|
||||
notifyTopicName_ = value["NotifyTopicName"].asString();
|
||||
if(!value["Progress"].isNull())
|
||||
progress_ = std::stoi(value["Progress"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
int GetImageJobResult::getProgress()const
|
||||
{
|
||||
return progress_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string GetImageJobResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,84 +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 <alibabacloud/imm/model/ListImageJobsRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::ListImageJobsRequest;
|
||||
|
||||
ListImageJobsRequest::ListImageJobsRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "ListImageJobs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListImageJobsRequest::~ListImageJobsRequest()
|
||||
{}
|
||||
|
||||
int ListImageJobsRequest::getMaxKeys()const
|
||||
{
|
||||
return maxKeys_;
|
||||
}
|
||||
|
||||
void ListImageJobsRequest::setMaxKeys(int maxKeys)
|
||||
{
|
||||
maxKeys_ = maxKeys;
|
||||
setParameter("MaxKeys", std::to_string(maxKeys));
|
||||
}
|
||||
|
||||
std::string ListImageJobsRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void ListImageJobsRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string ListImageJobsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ListImageJobsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ListImageJobsRequest::getJobType()const
|
||||
{
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void ListImageJobsRequest::setJobType(const std::string& jobType)
|
||||
{
|
||||
jobType_ = jobType;
|
||||
setParameter("JobType", jobType);
|
||||
}
|
||||
|
||||
std::string ListImageJobsRequest::getMarker()const
|
||||
{
|
||||
return marker_;
|
||||
}
|
||||
|
||||
void ListImageJobsRequest::setMarker(const std::string& marker)
|
||||
{
|
||||
marker_ = marker;
|
||||
setParameter("Marker", marker);
|
||||
}
|
||||
|
||||
@@ -1,84 +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 <alibabacloud/imm/model/ListImageJobsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
ListImageJobsResult::ListImageJobsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListImageJobsResult::ListImageJobsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListImageJobsResult::~ListImageJobsResult()
|
||||
{}
|
||||
|
||||
void ListImageJobsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allJobsNode = value["Jobs"]["JobsItem"];
|
||||
for (auto valueJobsJobsItem : allJobsNode)
|
||||
{
|
||||
JobsItem jobsObject;
|
||||
if(!valueJobsJobsItem["Status"].isNull())
|
||||
jobsObject.status = valueJobsJobsItem["Status"].asString();
|
||||
if(!valueJobsJobsItem["JobId"].isNull())
|
||||
jobsObject.jobId = valueJobsJobsItem["JobId"].asString();
|
||||
if(!valueJobsJobsItem["JobType"].isNull())
|
||||
jobsObject.jobType = valueJobsJobsItem["JobType"].asString();
|
||||
if(!valueJobsJobsItem["Parameters"].isNull())
|
||||
jobsObject.parameters = valueJobsJobsItem["Parameters"].asString();
|
||||
if(!valueJobsJobsItem["Result"].isNull())
|
||||
jobsObject.result = valueJobsJobsItem["Result"].asString();
|
||||
if(!valueJobsJobsItem["StartTime"].isNull())
|
||||
jobsObject.startTime = valueJobsJobsItem["StartTime"].asString();
|
||||
if(!valueJobsJobsItem["EndTime"].isNull())
|
||||
jobsObject.endTime = valueJobsJobsItem["EndTime"].asString();
|
||||
if(!valueJobsJobsItem["ErrorMessage"].isNull())
|
||||
jobsObject.errorMessage = valueJobsJobsItem["ErrorMessage"].asString();
|
||||
if(!valueJobsJobsItem["NotifyEndpoint"].isNull())
|
||||
jobsObject.notifyEndpoint = valueJobsJobsItem["NotifyEndpoint"].asString();
|
||||
if(!valueJobsJobsItem["NotifyTopicName"].isNull())
|
||||
jobsObject.notifyTopicName = valueJobsJobsItem["NotifyTopicName"].asString();
|
||||
if(!valueJobsJobsItem["Progress"].isNull())
|
||||
jobsObject.progress = std::stoi(valueJobsJobsItem["Progress"].asString());
|
||||
jobs_.push_back(jobsObject);
|
||||
}
|
||||
if(!value["NextMarker"].isNull())
|
||||
nextMarker_ = value["NextMarker"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListImageJobsResult::JobsItem> ListImageJobsResult::getJobs()const
|
||||
{
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
std::string ListImageJobsResult::getNextMarker()const
|
||||
{
|
||||
return nextMarker_;
|
||||
}
|
||||
|
||||
@@ -1,249 +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 <alibabacloud/imm/model/SearchDocIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::SearchDocIndexRequest;
|
||||
|
||||
SearchDocIndexRequest::SearchDocIndexRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "SearchDocIndex")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchDocIndexRequest::~SearchDocIndexRequest()
|
||||
{}
|
||||
|
||||
int SearchDocIndexRequest::getModifiedTimeEnd()const
|
||||
{
|
||||
return modifiedTimeEnd_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setModifiedTimeEnd(int modifiedTimeEnd)
|
||||
{
|
||||
modifiedTimeEnd_ = modifiedTimeEnd;
|
||||
setParameter("ModifiedTimeEnd", std::to_string(modifiedTimeEnd));
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getSizeLimitEnd()const
|
||||
{
|
||||
return sizeLimitEnd_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setSizeLimitEnd(int sizeLimitEnd)
|
||||
{
|
||||
sizeLimitEnd_ = sizeLimitEnd;
|
||||
setParameter("SizeLimitEnd", std::to_string(sizeLimitEnd));
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getModifiedTimeStart()const
|
||||
{
|
||||
return modifiedTimeStart_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setModifiedTimeStart(int modifiedTimeStart)
|
||||
{
|
||||
modifiedTimeStart_ = modifiedTimeStart;
|
||||
setParameter("ModifiedTimeStart", std::to_string(modifiedTimeStart));
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getPageNumLimitStart()const
|
||||
{
|
||||
return pageNumLimitStart_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setPageNumLimitStart(int pageNumLimitStart)
|
||||
{
|
||||
pageNumLimitStart_ = pageNumLimitStart;
|
||||
setParameter("PageNumLimitStart", std::to_string(pageNumLimitStart));
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getSizeLimitStart()const
|
||||
{
|
||||
return sizeLimitStart_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setSizeLimitStart(int sizeLimitStart)
|
||||
{
|
||||
sizeLimitStart_ = sizeLimitStart;
|
||||
setParameter("SizeLimitStart", std::to_string(sizeLimitStart));
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey1()const
|
||||
{
|
||||
return customKey1_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey1(const std::string& customKey1)
|
||||
{
|
||||
customKey1_ = customKey1;
|
||||
setParameter("CustomKey1", customKey1);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getSet()const
|
||||
{
|
||||
return set_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setSet(const std::string& set)
|
||||
{
|
||||
set_ = set;
|
||||
setParameter("Set", set);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey5()const
|
||||
{
|
||||
return customKey5_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey5(const std::string& customKey5)
|
||||
{
|
||||
customKey5_ = customKey5;
|
||||
setParameter("CustomKey5", customKey5);
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setOffset(int offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey4()const
|
||||
{
|
||||
return customKey4_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey4(const std::string& customKey4)
|
||||
{
|
||||
customKey4_ = customKey4;
|
||||
setParameter("CustomKey4", customKey4);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey3()const
|
||||
{
|
||||
return customKey3_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey3(const std::string& customKey3)
|
||||
{
|
||||
customKey3_ = customKey3;
|
||||
setParameter("CustomKey3", customKey3);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey2()const
|
||||
{
|
||||
return customKey2_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey2(const std::string& customKey2)
|
||||
{
|
||||
customKey2_ = customKey2;
|
||||
setParameter("CustomKey2", customKey2);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getCustomKey6()const
|
||||
{
|
||||
return customKey6_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setCustomKey6(const std::string& customKey6)
|
||||
{
|
||||
customKey6_ = customKey6;
|
||||
setParameter("CustomKey6", customKey6);
|
||||
}
|
||||
|
||||
int SearchDocIndexRequest::getPageNumLimitEnd()const
|
||||
{
|
||||
return pageNumLimitEnd_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setPageNumLimitEnd(int pageNumLimitEnd)
|
||||
{
|
||||
pageNumLimitEnd_ = pageNumLimitEnd;
|
||||
setParameter("PageNumLimitEnd", std::to_string(pageNumLimitEnd));
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getContentType()const
|
||||
{
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setContentType(const std::string& contentType)
|
||||
{
|
||||
contentType_ = contentType;
|
||||
setParameter("ContentType", contentType);
|
||||
}
|
||||
|
||||
std::string SearchDocIndexRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void SearchDocIndexRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/SearchDocIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
SearchDocIndexResult::SearchDocIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchDocIndexResult::SearchDocIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchDocIndexResult::~SearchDocIndexResult()
|
||||
{}
|
||||
|
||||
void SearchDocIndexResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDocInfosNode = value["DocInfos"]["DocInfosItem"];
|
||||
for (auto valueDocInfosDocInfosItem : allDocInfosNode)
|
||||
{
|
||||
DocInfosItem docInfosObject;
|
||||
if(!valueDocInfosDocInfosItem["UniqueId"].isNull())
|
||||
docInfosObject.uniqueId = valueDocInfosDocInfosItem["UniqueId"].asString();
|
||||
if(!valueDocInfosDocInfosItem["SrcUri"].isNull())
|
||||
docInfosObject.srcUri = valueDocInfosDocInfosItem["SrcUri"].asString();
|
||||
if(!valueDocInfosDocInfosItem["Name"].isNull())
|
||||
docInfosObject.name = valueDocInfosDocInfosItem["Name"].asString();
|
||||
if(!valueDocInfosDocInfosItem["ContentType"].isNull())
|
||||
docInfosObject.contentType = valueDocInfosDocInfosItem["ContentType"].asString();
|
||||
if(!valueDocInfosDocInfosItem["LastModified"].isNull())
|
||||
docInfosObject.lastModified = valueDocInfosDocInfosItem["LastModified"].asString();
|
||||
if(!valueDocInfosDocInfosItem["Size"].isNull())
|
||||
docInfosObject.size = std::stoi(valueDocInfosDocInfosItem["Size"].asString());
|
||||
if(!valueDocInfosDocInfosItem["PageNum"].isNull())
|
||||
docInfosObject.pageNum = std::stoi(valueDocInfosDocInfosItem["PageNum"].asString());
|
||||
if(!valueDocInfosDocInfosItem["CustomKey1"].isNull())
|
||||
docInfosObject.customKey1 = valueDocInfosDocInfosItem["CustomKey1"].asString();
|
||||
if(!valueDocInfosDocInfosItem["CustomKey2"].isNull())
|
||||
docInfosObject.customKey2 = valueDocInfosDocInfosItem["CustomKey2"].asString();
|
||||
if(!valueDocInfosDocInfosItem["CustomKey3"].isNull())
|
||||
docInfosObject.customKey3 = valueDocInfosDocInfosItem["CustomKey3"].asString();
|
||||
if(!valueDocInfosDocInfosItem["CustomKey4"].isNull())
|
||||
docInfosObject.customKey4 = valueDocInfosDocInfosItem["CustomKey4"].asString();
|
||||
if(!valueDocInfosDocInfosItem["CustomKey5"].isNull())
|
||||
docInfosObject.customKey5 = valueDocInfosDocInfosItem["CustomKey5"].asString();
|
||||
if(!valueDocInfosDocInfosItem["CustomKey6"].isNull())
|
||||
docInfosObject.customKey6 = valueDocInfosDocInfosItem["CustomKey6"].asString();
|
||||
docInfos_.push_back(docInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<SearchDocIndexResult::DocInfosItem> SearchDocIndexResult::getDocInfos()const
|
||||
{
|
||||
return docInfos_;
|
||||
}
|
||||
|
||||
@@ -1,62 +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 <alibabacloud/imm/model/StopStreamAnalyseTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::StopStreamAnalyseTaskRequest;
|
||||
|
||||
StopStreamAnalyseTaskRequest::StopStreamAnalyseTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "StopStreamAnalyseTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopStreamAnalyseTaskRequest::~StopStreamAnalyseTaskRequest()
|
||||
{}
|
||||
|
||||
std::string StopStreamAnalyseTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void StopStreamAnalyseTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string StopStreamAnalyseTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopStreamAnalyseTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StopStreamAnalyseTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void StopStreamAnalyseTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/StopStreamAnalyseTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
StopStreamAnalyseTaskResult::StopStreamAnalyseTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopStreamAnalyseTaskResult::StopStreamAnalyseTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopStreamAnalyseTaskResult::~StopStreamAnalyseTaskResult()
|
||||
{}
|
||||
|
||||
void StopStreamAnalyseTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopStreamAnalyseTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
@@ -1,150 +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 <alibabacloud/imm/model/UpdateDocIndexMetaRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::UpdateDocIndexMetaRequest;
|
||||
|
||||
UpdateDocIndexMetaRequest::UpdateDocIndexMetaRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "UpdateDocIndexMeta")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateDocIndexMetaRequest::~UpdateDocIndexMetaRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getUniqueId()const
|
||||
{
|
||||
return uniqueId_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setUniqueId(const std::string& uniqueId)
|
||||
{
|
||||
uniqueId_ = uniqueId;
|
||||
setParameter("UniqueId", uniqueId);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey1()const
|
||||
{
|
||||
return customKey1_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey1(const std::string& customKey1)
|
||||
{
|
||||
customKey1_ = customKey1;
|
||||
setParameter("CustomKey1", customKey1);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getSet()const
|
||||
{
|
||||
return set_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setSet(const std::string& set)
|
||||
{
|
||||
set_ = set;
|
||||
setParameter("Set", set);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey5()const
|
||||
{
|
||||
return customKey5_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey5(const std::string& customKey5)
|
||||
{
|
||||
customKey5_ = customKey5;
|
||||
setParameter("CustomKey5", customKey5);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey4()const
|
||||
{
|
||||
return customKey4_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey4(const std::string& customKey4)
|
||||
{
|
||||
customKey4_ = customKey4;
|
||||
setParameter("CustomKey4", customKey4);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey3()const
|
||||
{
|
||||
return customKey3_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey3(const std::string& customKey3)
|
||||
{
|
||||
customKey3_ = customKey3;
|
||||
setParameter("CustomKey3", customKey3);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey2()const
|
||||
{
|
||||
return customKey2_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey2(const std::string& customKey2)
|
||||
{
|
||||
customKey2_ = customKey2;
|
||||
setParameter("CustomKey2", customKey2);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getCustomKey6()const
|
||||
{
|
||||
return customKey6_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setCustomKey6(const std::string& customKey6)
|
||||
{
|
||||
customKey6_ = customKey6;
|
||||
setParameter("CustomKey6", customKey6);
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateDocIndexMetaRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/UpdateDocIndexMetaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
UpdateDocIndexMetaResult::UpdateDocIndexMetaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateDocIndexMetaResult::UpdateDocIndexMetaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateDocIndexMetaResult::~UpdateDocIndexMetaResult()
|
||||
{}
|
||||
|
||||
void UpdateDocIndexMetaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IndexCreatedTime"].isNull())
|
||||
indexCreatedTime_ = value["IndexCreatedTime"].asString();
|
||||
if(!value["IndexModifiedTime"].isNull())
|
||||
indexModifiedTime_ = value["IndexModifiedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaResult::getIndexModifiedTime()const
|
||||
{
|
||||
return indexModifiedTime_;
|
||||
}
|
||||
|
||||
std::string UpdateDocIndexMetaResult::getIndexCreatedTime()const
|
||||
{
|
||||
return indexCreatedTime_;
|
||||
}
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/imm/model/VideoAnalyseFeedbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::VideoAnalyseFeedbackRequest;
|
||||
|
||||
VideoAnalyseFeedbackRequest::VideoAnalyseFeedbackRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "VideoAnalyseFeedback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VideoAnalyseFeedbackRequest::~VideoAnalyseFeedbackRequest()
|
||||
{}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getNote()const
|
||||
{
|
||||
return note_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setNote(const std::string& note)
|
||||
{
|
||||
note_ = note;
|
||||
setParameter("Note", note);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getFrames()const
|
||||
{
|
||||
return frames_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setFrames(const std::string& frames)
|
||||
{
|
||||
frames_ = frames;
|
||||
setParameter("Frames", frames);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getSuggestion()const
|
||||
{
|
||||
return suggestion_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setSuggestion(const std::string& suggestion)
|
||||
{
|
||||
suggestion_ = suggestion;
|
||||
setParameter("Suggestion", suggestion);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getUri()const
|
||||
{
|
||||
return uri_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setUri(const std::string& uri)
|
||||
{
|
||||
uri_ = uri;
|
||||
setParameter("Uri", uri);
|
||||
}
|
||||
|
||||
std::string VideoAnalyseFeedbackRequest::getScenes()const
|
||||
{
|
||||
return scenes_;
|
||||
}
|
||||
|
||||
void VideoAnalyseFeedbackRequest::setScenes(const std::string& scenes)
|
||||
{
|
||||
scenes_ = scenes;
|
||||
setParameter("Scenes", scenes);
|
||||
}
|
||||
|
||||
@@ -1,44 +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 <alibabacloud/imm/model/VideoAnalyseFeedbackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
VideoAnalyseFeedbackResult::VideoAnalyseFeedbackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VideoAnalyseFeedbackResult::VideoAnalyseFeedbackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VideoAnalyseFeedbackResult::~VideoAnalyseFeedbackResult()
|
||||
{}
|
||||
|
||||
void VideoAnalyseFeedbackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user