From 1e276056a29087b0558469aee65522300b03fc7f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 5 Jul 2023 05:50:15 +0000 Subject: [PATCH] Hidden ResumeBinding and StopBinding API. --- VERSION | 2 +- imm/CMakeLists.txt | 16 -- imm/include/alibabacloud/imm/ImmClient.h | 32 ---- .../imm/model/BatchGetFigureClusterResult.h | 3 +- .../imm/model/BatchGetFileMetaResult.h | 3 +- .../imm/model/CreateBatchRequest.h | 11 ++ .../imm/model/CreateTriggerRequest.h | 11 ++ .../alibabacloud/imm/model/FuzzyQueryResult.h | 3 +- .../imm/model/GenerateDRMLicenseRequest.h | 54 ------- .../imm/model/GenerateDRMLicenseResult.h | 55 ------- .../imm/model/GetDRMLicenseRequest.h | 54 ------- .../imm/model/GetDRMLicenseResult.h | 55 ------- .../imm/model/GetFigureClusterResult.h | 3 +- .../imm/model/GetFileMetaResult.h | 3 +- .../alibabacloud/imm/model/GetStoryResult.h | 6 +- .../imm/model/QueryFigureClustersResult.h | 3 +- .../imm/model/QueryStoriesResult.h | 6 +- .../imm/model/ResumeBindingRequest.h | 48 ------ .../imm/model/ResumeBindingResult.h | 49 ------ .../imm/model/SemanticQueryResult.h | 3 +- .../imm/model/SimpleQueryResult.h | 3 +- .../imm/model/StopBindingRequest.h | 51 ------- .../imm/model/StopBindingResult.h | 49 ------ imm/src/ImmClient.cc | 144 ------------------ imm/src/model/BatchGetFigureClusterResult.cc | 6 +- imm/src/model/BatchGetFileMetaResult.cc | 6 +- imm/src/model/CreateBatchRequest.cc | 5 + imm/src/model/CreateTriggerRequest.cc | 5 + imm/src/model/FuzzyQueryResult.cc | 6 +- imm/src/model/GenerateDRMLicenseRequest.cc | 72 --------- imm/src/model/GenerateDRMLicenseResult.cc | 65 -------- imm/src/model/GetDRMLicenseRequest.cc | 72 --------- imm/src/model/GetDRMLicenseResult.cc | 65 -------- imm/src/model/GetFigureClusterResult.cc | 6 +- imm/src/model/GetFileMetaResult.cc | 6 +- imm/src/model/GetStoryResult.cc | 12 +- imm/src/model/QueryFigureClustersResult.cc | 6 +- imm/src/model/QueryStoriesResult.cc | 12 +- imm/src/model/ResumeBindingRequest.cc | 54 ------- imm/src/model/ResumeBindingResult.cc | 44 ------ imm/src/model/SemanticQueryResult.cc | 6 +- imm/src/model/SimpleQueryResult.cc | 6 +- imm/src/model/StopBindingRequest.cc | 63 -------- imm/src/model/StopBindingResult.cc | 44 ------ 44 files changed, 69 insertions(+), 1159 deletions(-) delete mode 100644 imm/include/alibabacloud/imm/model/GenerateDRMLicenseRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GenerateDRMLicenseResult.h delete mode 100644 imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h delete mode 100644 imm/include/alibabacloud/imm/model/ResumeBindingRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/ResumeBindingResult.h delete mode 100644 imm/include/alibabacloud/imm/model/StopBindingRequest.h delete mode 100644 imm/include/alibabacloud/imm/model/StopBindingResult.h delete mode 100644 imm/src/model/GenerateDRMLicenseRequest.cc delete mode 100644 imm/src/model/GenerateDRMLicenseResult.cc delete mode 100644 imm/src/model/GetDRMLicenseRequest.cc delete mode 100644 imm/src/model/GetDRMLicenseResult.cc delete mode 100644 imm/src/model/ResumeBindingRequest.cc delete mode 100644 imm/src/model/ResumeBindingResult.cc delete mode 100644 imm/src/model/StopBindingRequest.cc delete mode 100644 imm/src/model/StopBindingResult.cc diff --git a/VERSION b/VERSION index afb1284db..9a0f95dc6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1633 \ No newline at end of file +1.36.1634 \ No newline at end of file diff --git a/imm/CMakeLists.txt b/imm/CMakeLists.txt index 051426c77..f8b536b01 100644 --- a/imm/CMakeLists.txt +++ b/imm/CMakeLists.txt @@ -125,8 +125,6 @@ set(imm_public_header_model include/alibabacloud/imm/model/ExtractDocumentTextResult.h include/alibabacloud/imm/model/FuzzyQueryRequest.h include/alibabacloud/imm/model/FuzzyQueryResult.h - include/alibabacloud/imm/model/GenerateDRMLicenseRequest.h - include/alibabacloud/imm/model/GenerateDRMLicenseResult.h include/alibabacloud/imm/model/GenerateVideoPlaylistRequest.h include/alibabacloud/imm/model/GenerateVideoPlaylistResult.h include/alibabacloud/imm/model/GenerateWebofficeTokenRequest.h @@ -135,8 +133,6 @@ set(imm_public_header_model include/alibabacloud/imm/model/GetBatchResult.h include/alibabacloud/imm/model/GetBindingRequest.h include/alibabacloud/imm/model/GetBindingResult.h - include/alibabacloud/imm/model/GetDRMLicenseRequest.h - include/alibabacloud/imm/model/GetDRMLicenseResult.h include/alibabacloud/imm/model/GetDatasetRequest.h include/alibabacloud/imm/model/GetDatasetResult.h include/alibabacloud/imm/model/GetFigureClusterRequest.h @@ -191,8 +187,6 @@ set(imm_public_header_model include/alibabacloud/imm/model/RemoveStoryFilesResult.h include/alibabacloud/imm/model/ResumeBatchRequest.h include/alibabacloud/imm/model/ResumeBatchResult.h - include/alibabacloud/imm/model/ResumeBindingRequest.h - include/alibabacloud/imm/model/ResumeBindingResult.h include/alibabacloud/imm/model/ResumeTriggerRequest.h include/alibabacloud/imm/model/ResumeTriggerResult.h include/alibabacloud/imm/model/SearchImageFigureClusterRequest.h @@ -201,8 +195,6 @@ set(imm_public_header_model include/alibabacloud/imm/model/SemanticQueryResult.h include/alibabacloud/imm/model/SimpleQueryRequest.h include/alibabacloud/imm/model/SimpleQueryResult.h - include/alibabacloud/imm/model/StopBindingRequest.h - include/alibabacloud/imm/model/StopBindingResult.h include/alibabacloud/imm/model/SuspendBatchRequest.h include/alibabacloud/imm/model/SuspendBatchResult.h include/alibabacloud/imm/model/SuspendTriggerRequest.h @@ -330,8 +322,6 @@ set(imm_src src/model/ExtractDocumentTextResult.cc src/model/FuzzyQueryRequest.cc src/model/FuzzyQueryResult.cc - src/model/GenerateDRMLicenseRequest.cc - src/model/GenerateDRMLicenseResult.cc src/model/GenerateVideoPlaylistRequest.cc src/model/GenerateVideoPlaylistResult.cc src/model/GenerateWebofficeTokenRequest.cc @@ -340,8 +330,6 @@ set(imm_src src/model/GetBatchResult.cc src/model/GetBindingRequest.cc src/model/GetBindingResult.cc - src/model/GetDRMLicenseRequest.cc - src/model/GetDRMLicenseResult.cc src/model/GetDatasetRequest.cc src/model/GetDatasetResult.cc src/model/GetFigureClusterRequest.cc @@ -396,8 +384,6 @@ set(imm_src src/model/RemoveStoryFilesResult.cc src/model/ResumeBatchRequest.cc src/model/ResumeBatchResult.cc - src/model/ResumeBindingRequest.cc - src/model/ResumeBindingResult.cc src/model/ResumeTriggerRequest.cc src/model/ResumeTriggerResult.cc src/model/SearchImageFigureClusterRequest.cc @@ -406,8 +392,6 @@ set(imm_src src/model/SemanticQueryResult.cc src/model/SimpleQueryRequest.cc src/model/SimpleQueryResult.cc - src/model/StopBindingRequest.cc - src/model/StopBindingResult.cc src/model/SuspendBatchRequest.cc src/model/SuspendBatchResult.cc src/model/SuspendTriggerRequest.cc diff --git a/imm/include/alibabacloud/imm/ImmClient.h b/imm/include/alibabacloud/imm/ImmClient.h index 8c2a446bb..8f87e5c97 100644 --- a/imm/include/alibabacloud/imm/ImmClient.h +++ b/imm/include/alibabacloud/imm/ImmClient.h @@ -126,8 +126,6 @@ #include "model/ExtractDocumentTextResult.h" #include "model/FuzzyQueryRequest.h" #include "model/FuzzyQueryResult.h" -#include "model/GenerateDRMLicenseRequest.h" -#include "model/GenerateDRMLicenseResult.h" #include "model/GenerateVideoPlaylistRequest.h" #include "model/GenerateVideoPlaylistResult.h" #include "model/GenerateWebofficeTokenRequest.h" @@ -136,8 +134,6 @@ #include "model/GetBatchResult.h" #include "model/GetBindingRequest.h" #include "model/GetBindingResult.h" -#include "model/GetDRMLicenseRequest.h" -#include "model/GetDRMLicenseResult.h" #include "model/GetDatasetRequest.h" #include "model/GetDatasetResult.h" #include "model/GetFigureClusterRequest.h" @@ -192,8 +188,6 @@ #include "model/RemoveStoryFilesResult.h" #include "model/ResumeBatchRequest.h" #include "model/ResumeBatchResult.h" -#include "model/ResumeBindingRequest.h" -#include "model/ResumeBindingResult.h" #include "model/ResumeTriggerRequest.h" #include "model/ResumeTriggerResult.h" #include "model/SearchImageFigureClusterRequest.h" @@ -202,8 +196,6 @@ #include "model/SemanticQueryResult.h" #include "model/SimpleQueryRequest.h" #include "model/SimpleQueryResult.h" -#include "model/StopBindingRequest.h" -#include "model/StopBindingResult.h" #include "model/SuspendBatchRequest.h" #include "model/SuspendBatchResult.h" #include "model/SuspendTriggerRequest.h" @@ -389,9 +381,6 @@ namespace AlibabaCloud typedef Outcome FuzzyQueryOutcome; typedef std::future FuzzyQueryOutcomeCallable; typedef std::function&)> FuzzyQueryAsyncHandler; - typedef Outcome GenerateDRMLicenseOutcome; - typedef std::future GenerateDRMLicenseOutcomeCallable; - typedef std::function&)> GenerateDRMLicenseAsyncHandler; typedef Outcome GenerateVideoPlaylistOutcome; typedef std::future GenerateVideoPlaylistOutcomeCallable; typedef std::function&)> GenerateVideoPlaylistAsyncHandler; @@ -404,9 +393,6 @@ namespace AlibabaCloud typedef Outcome GetBindingOutcome; typedef std::future GetBindingOutcomeCallable; typedef std::function&)> GetBindingAsyncHandler; - typedef Outcome GetDRMLicenseOutcome; - typedef std::future GetDRMLicenseOutcomeCallable; - typedef std::function&)> GetDRMLicenseAsyncHandler; typedef Outcome GetDatasetOutcome; typedef std::future GetDatasetOutcomeCallable; typedef std::function&)> GetDatasetAsyncHandler; @@ -488,9 +474,6 @@ namespace AlibabaCloud typedef Outcome ResumeBatchOutcome; typedef std::future ResumeBatchOutcomeCallable; typedef std::function&)> ResumeBatchAsyncHandler; - typedef Outcome ResumeBindingOutcome; - typedef std::future ResumeBindingOutcomeCallable; - typedef std::function&)> ResumeBindingAsyncHandler; typedef Outcome ResumeTriggerOutcome; typedef std::future ResumeTriggerOutcomeCallable; typedef std::function&)> ResumeTriggerAsyncHandler; @@ -503,9 +486,6 @@ namespace AlibabaCloud typedef Outcome SimpleQueryOutcome; typedef std::future SimpleQueryOutcomeCallable; typedef std::function&)> SimpleQueryAsyncHandler; - typedef Outcome StopBindingOutcome; - typedef std::future StopBindingOutcomeCallable; - typedef std::function&)> StopBindingAsyncHandler; typedef Outcome SuspendBatchOutcome; typedef std::future SuspendBatchOutcomeCallable; typedef std::function&)> SuspendBatchAsyncHandler; @@ -697,9 +677,6 @@ namespace AlibabaCloud FuzzyQueryOutcome fuzzyQuery(const Model::FuzzyQueryRequest &request)const; void fuzzyQueryAsync(const Model::FuzzyQueryRequest& request, const FuzzyQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FuzzyQueryOutcomeCallable fuzzyQueryCallable(const Model::FuzzyQueryRequest& request) const; - GenerateDRMLicenseOutcome generateDRMLicense(const Model::GenerateDRMLicenseRequest &request)const; - void generateDRMLicenseAsync(const Model::GenerateDRMLicenseRequest& request, const GenerateDRMLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GenerateDRMLicenseOutcomeCallable generateDRMLicenseCallable(const Model::GenerateDRMLicenseRequest& request) const; GenerateVideoPlaylistOutcome generateVideoPlaylist(const Model::GenerateVideoPlaylistRequest &request)const; void generateVideoPlaylistAsync(const Model::GenerateVideoPlaylistRequest& request, const GenerateVideoPlaylistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GenerateVideoPlaylistOutcomeCallable generateVideoPlaylistCallable(const Model::GenerateVideoPlaylistRequest& request) const; @@ -712,9 +689,6 @@ namespace AlibabaCloud GetBindingOutcome getBinding(const Model::GetBindingRequest &request)const; void getBindingAsync(const Model::GetBindingRequest& request, const GetBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetBindingOutcomeCallable getBindingCallable(const Model::GetBindingRequest& request) const; - GetDRMLicenseOutcome getDRMLicense(const Model::GetDRMLicenseRequest &request)const; - void getDRMLicenseAsync(const Model::GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetDRMLicenseOutcomeCallable getDRMLicenseCallable(const Model::GetDRMLicenseRequest& request) const; GetDatasetOutcome getDataset(const Model::GetDatasetRequest &request)const; void getDatasetAsync(const Model::GetDatasetRequest& request, const GetDatasetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDatasetOutcomeCallable getDatasetCallable(const Model::GetDatasetRequest& request) const; @@ -796,9 +770,6 @@ namespace AlibabaCloud ResumeBatchOutcome resumeBatch(const Model::ResumeBatchRequest &request)const; void resumeBatchAsync(const Model::ResumeBatchRequest& request, const ResumeBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeBatchOutcomeCallable resumeBatchCallable(const Model::ResumeBatchRequest& request) const; - ResumeBindingOutcome resumeBinding(const Model::ResumeBindingRequest &request)const; - void resumeBindingAsync(const Model::ResumeBindingRequest& request, const ResumeBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResumeBindingOutcomeCallable resumeBindingCallable(const Model::ResumeBindingRequest& request) const; ResumeTriggerOutcome resumeTrigger(const Model::ResumeTriggerRequest &request)const; void resumeTriggerAsync(const Model::ResumeTriggerRequest& request, const ResumeTriggerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResumeTriggerOutcomeCallable resumeTriggerCallable(const Model::ResumeTriggerRequest& request) const; @@ -811,9 +782,6 @@ namespace AlibabaCloud SimpleQueryOutcome simpleQuery(const Model::SimpleQueryRequest &request)const; void simpleQueryAsync(const Model::SimpleQueryRequest& request, const SimpleQueryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SimpleQueryOutcomeCallable simpleQueryCallable(const Model::SimpleQueryRequest& request) const; - StopBindingOutcome stopBinding(const Model::StopBindingRequest &request)const; - void stopBindingAsync(const Model::StopBindingRequest& request, const StopBindingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopBindingOutcomeCallable stopBindingCallable(const Model::StopBindingRequest& request) const; SuspendBatchOutcome suspendBatch(const Model::SuspendBatchRequest &request)const; void suspendBatchAsync(const Model::SuspendBatchRequest& request, const SuspendBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SuspendBatchOutcomeCallable suspendBatchCallable(const Model::SuspendBatchRequest& request) const; diff --git a/imm/include/alibabacloud/imm/model/BatchGetFigureClusterResult.h b/imm/include/alibabacloud/imm/model/BatchGetFigureClusterResult.h index 05af977ab..5559df7d1 100644 --- a/imm/include/alibabacloud/imm/model/BatchGetFigureClusterResult.h +++ b/imm/include/alibabacloud/imm/model/BatchGetFigureClusterResult.h @@ -250,7 +250,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -270,7 +269,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -300,6 +298,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h b/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h index 67012ec95..98c120f2f 100644 --- a/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h +++ b/imm/include/alibabacloud/imm/model/BatchGetFileMetaResult.h @@ -248,7 +248,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -268,7 +267,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -298,6 +296,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/CreateBatchRequest.h b/imm/include/alibabacloud/imm/model/CreateBatchRequest.h index 5a6924430..ea3f660d7 100644 --- a/imm/include/alibabacloud/imm/model/CreateBatchRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateBatchRequest.h @@ -30,6 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT CreateBatchRequest : public RpcServiceRequest { public: struct Notification { std::string endpoint; + struct MNS { + std::string endpoint; + std::string topicName; + }; + MNS mNS; + struct RocketMQ { + std::string endpoint; + std::string instanceId; + std::string topicName; + }; + RocketMQ rocketMQ; std::string topic; }; struct Input { diff --git a/imm/include/alibabacloud/imm/model/CreateTriggerRequest.h b/imm/include/alibabacloud/imm/model/CreateTriggerRequest.h index 8bf44cde3..b58c9526a 100644 --- a/imm/include/alibabacloud/imm/model/CreateTriggerRequest.h +++ b/imm/include/alibabacloud/imm/model/CreateTriggerRequest.h @@ -30,6 +30,17 @@ class ALIBABACLOUD_IMM_EXPORT CreateTriggerRequest : public RpcServiceRequest { public: struct Notification { std::string endpoint; + struct MNS { + std::string endpoint; + std::string topicName; + }; + MNS mNS; + struct RocketMQ { + std::string endpoint; + std::string instanceId; + std::string topicName; + }; + RocketMQ rocketMQ; std::string topic; }; struct Input { diff --git a/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h b/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h index e2adccba4..c0ce6a4d7 100644 --- a/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h +++ b/imm/include/alibabacloud/imm/model/FuzzyQueryResult.h @@ -248,7 +248,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -268,7 +267,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -298,6 +296,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/GenerateDRMLicenseRequest.h b/imm/include/alibabacloud/imm/model/GenerateDRMLicenseRequest.h deleted file mode 100644 index 82365c697..000000000 --- a/imm/include/alibabacloud/imm/model/GenerateDRMLicenseRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GENERATEDRMLICENSEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GENERATEDRMLICENSEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT GenerateDRMLicenseRequest : public RpcServiceRequest { -public: - GenerateDRMLicenseRequest(); - ~GenerateDRMLicenseRequest(); - std::string getProtectionSystem() const; - void setProtectionSystem(const std::string &protectionSystem); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - std::string getKeyId() const; - void setKeyId(const std::string &keyId); - -private: - std::string protectionSystem_; - std::string notifyEndpoint_; - std::string projectName_; - std::string notifyTopicName_; - std::string keyId_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GENERATEDRMLICENSEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GenerateDRMLicenseResult.h b/imm/include/alibabacloud/imm/model/GenerateDRMLicenseResult.h deleted file mode 100644 index dae1d7ff7..000000000 --- a/imm/include/alibabacloud/imm/model/GenerateDRMLicenseResult.h +++ /dev/null @@ -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_GENERATEDRMLICENSERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GENERATEDRMLICENSERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GenerateDRMLicenseResult : public ServiceResult - { - public: - - - GenerateDRMLicenseResult(); - explicit GenerateDRMLicenseResult(const std::string &payload); - ~GenerateDRMLicenseResult(); - long getStates()const; - std::string getLicense()const; - std::string getDeviceInfo()const; - - protected: - void parse(const std::string &payload); - private: - long states_; - std::string license_; - std::string deviceInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_GENERATEDRMLICENSERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h b/imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h deleted file mode 100644 index eee1dc6dd..000000000 --- a/imm/include/alibabacloud/imm/model/GetDRMLicenseRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseRequest : public RpcServiceRequest { -public: - GetDRMLicenseRequest(); - ~GetDRMLicenseRequest(); - std::string getProtectionSystem() const; - void setProtectionSystem(const std::string &protectionSystem); - std::string getNotifyEndpoint() const; - void setNotifyEndpoint(const std::string ¬ifyEndpoint); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getNotifyTopicName() const; - void setNotifyTopicName(const std::string ¬ifyTopicName); - std::string getKeyId() const; - void setKeyId(const std::string &keyId); - -private: - std::string protectionSystem_; - std::string notifyEndpoint_; - std::string projectName_; - std::string notifyTopicName_; - std::string keyId_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSEREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h b/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h deleted file mode 100644 index 6361a0178..000000000 --- a/imm/include/alibabacloud/imm/model/GetDRMLicenseResult.h +++ /dev/null @@ -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_GETDRMLICENSERESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT GetDRMLicenseResult : public ServiceResult - { - public: - - - GetDRMLicenseResult(); - explicit GetDRMLicenseResult(const std::string &payload); - ~GetDRMLicenseResult(); - long getStates()const; - std::string getLicense()const; - std::string getDeviceInfo()const; - - protected: - void parse(const std::string &payload); - private: - long states_; - std::string license_; - std::string deviceInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_GETDRMLICENSERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h b/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h index 7d93961e0..a2d244d55 100644 --- a/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h +++ b/imm/include/alibabacloud/imm/model/GetFigureClusterResult.h @@ -250,7 +250,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -270,7 +269,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -300,6 +298,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/GetFileMetaResult.h b/imm/include/alibabacloud/imm/model/GetFileMetaResult.h index 6db95d60b..1b5c01b59 100644 --- a/imm/include/alibabacloud/imm/model/GetFileMetaResult.h +++ b/imm/include/alibabacloud/imm/model/GetFileMetaResult.h @@ -248,7 +248,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -268,7 +267,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -298,6 +296,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/GetStoryResult.h b/imm/include/alibabacloud/imm/model/GetStoryResult.h index 83fbcec84..916cbf146 100644 --- a/imm/include/alibabacloud/imm/model/GetStoryResult.h +++ b/imm/include/alibabacloud/imm/model/GetStoryResult.h @@ -251,7 +251,6 @@ namespace AlibabaCloud std::string customLabels; long videoHeight; long imageWidth; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -269,7 +268,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -299,6 +297,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; @@ -529,7 +528,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -550,7 +548,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -580,6 +577,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h b/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h index bb21a1396..f8b4a5a87 100644 --- a/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h +++ b/imm/include/alibabacloud/imm/model/QueryFigureClustersResult.h @@ -250,7 +250,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -270,7 +269,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -300,6 +298,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/QueryStoriesResult.h b/imm/include/alibabacloud/imm/model/QueryStoriesResult.h index 9c2beec80..53a143b4b 100644 --- a/imm/include/alibabacloud/imm/model/QueryStoriesResult.h +++ b/imm/include/alibabacloud/imm/model/QueryStoriesResult.h @@ -251,7 +251,6 @@ namespace AlibabaCloud std::string customLabels; long videoHeight; long imageWidth; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -269,7 +268,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -299,6 +297,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; @@ -529,7 +528,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -550,7 +548,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -580,6 +577,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h b/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h deleted file mode 100644 index cd6cc2939..000000000 --- a/imm/include/alibabacloud/imm/model/ResumeBindingRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT ResumeBindingRequest : public RpcServiceRequest { -public: - ResumeBindingRequest(); - ~ResumeBindingRequest(); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getURI() const; - void setURI(const std::string &uRI); - -private: - std::string datasetName_; - std::string projectName_; - std::string uRI_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/ResumeBindingResult.h b/imm/include/alibabacloud/imm/model/ResumeBindingResult.h deleted file mode 100644 index 0bc9ad315..000000000 --- a/imm/include/alibabacloud/imm/model/ResumeBindingResult.h +++ /dev/null @@ -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_RESUMEBINDINGRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT ResumeBindingResult : public ServiceResult - { - public: - - - ResumeBindingResult(); - explicit ResumeBindingResult(const std::string &payload); - ~ResumeBindingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_RESUMEBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SemanticQueryResult.h b/imm/include/alibabacloud/imm/model/SemanticQueryResult.h index 705f5c64e..7aa2f7b41 100644 --- a/imm/include/alibabacloud/imm/model/SemanticQueryResult.h +++ b/imm/include/alibabacloud/imm/model/SemanticQueryResult.h @@ -248,7 +248,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -268,7 +267,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -298,6 +296,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/SimpleQueryResult.h b/imm/include/alibabacloud/imm/model/SimpleQueryResult.h index 098cfff1f..35971ea11 100644 --- a/imm/include/alibabacloud/imm/model/SimpleQueryResult.h +++ b/imm/include/alibabacloud/imm/model/SimpleQueryResult.h @@ -248,7 +248,6 @@ namespace AlibabaCloud long videoHeight; long imageWidth; std::vector subtitles; - std::string documentLanguage; std::string oSSStorageClass; std::string mediaType; std::string oSSDeleteMarker; @@ -268,7 +267,6 @@ namespace AlibabaCloud long figureCount; std::string eTag; std::string datasetName; - std::string documentContent; std::string fileHash; std::string cacheControl; std::string oSSVersionId; @@ -298,6 +296,7 @@ namespace AlibabaCloud std::string serverSideEncryptionCustomerAlgorithm; long bitrate; std::string albumArtist; + std::string documentText; std::string contentMd5; std::string contentDisposition; std::string customId; diff --git a/imm/include/alibabacloud/imm/model/StopBindingRequest.h b/imm/include/alibabacloud/imm/model/StopBindingRequest.h deleted file mode 100644 index 7407e2fc5..000000000 --- a/imm/include/alibabacloud/imm/model/StopBindingRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ -#define ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Imm { -namespace Model { -class ALIBABACLOUD_IMM_EXPORT StopBindingRequest : public RpcServiceRequest { -public: - StopBindingRequest(); - ~StopBindingRequest(); - std::string getReason() const; - void setReason(const std::string &reason); - std::string getDatasetName() const; - void setDatasetName(const std::string &datasetName); - std::string getProjectName() const; - void setProjectName(const std::string &projectName); - std::string getURI() const; - void setURI(const std::string &uRI); - -private: - std::string reason_; - std::string datasetName_; - std::string projectName_; - std::string uRI_; -}; -} // namespace Model -} // namespace Imm -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_IMM_MODEL_STOPBINDINGREQUEST_H_ diff --git a/imm/include/alibabacloud/imm/model/StopBindingResult.h b/imm/include/alibabacloud/imm/model/StopBindingResult.h deleted file mode 100644 index 02ef690d1..000000000 --- a/imm/include/alibabacloud/imm/model/StopBindingResult.h +++ /dev/null @@ -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_STOPBINDINGRESULT_H_ -#define ALIBABACLOUD_IMM_MODEL_STOPBINDINGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imm - { - namespace Model - { - class ALIBABACLOUD_IMM_EXPORT StopBindingResult : public ServiceResult - { - public: - - - StopBindingResult(); - explicit StopBindingResult(const std::string &payload); - ~StopBindingResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_IMM_MODEL_STOPBINDINGRESULT_H_ \ No newline at end of file diff --git a/imm/src/ImmClient.cc b/imm/src/ImmClient.cc index 5868fcfa0..840d3b9ca 100644 --- a/imm/src/ImmClient.cc +++ b/imm/src/ImmClient.cc @@ -1923,42 +1923,6 @@ ImmClient::FuzzyQueryOutcomeCallable ImmClient::fuzzyQueryCallable(const FuzzyQu return task->get_future(); } -ImmClient::GenerateDRMLicenseOutcome ImmClient::generateDRMLicense(const GenerateDRMLicenseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GenerateDRMLicenseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GenerateDRMLicenseOutcome(GenerateDRMLicenseResult(outcome.result())); - else - return GenerateDRMLicenseOutcome(outcome.error()); -} - -void ImmClient::generateDRMLicenseAsync(const GenerateDRMLicenseRequest& request, const GenerateDRMLicenseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, generateDRMLicense(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GenerateDRMLicenseOutcomeCallable ImmClient::generateDRMLicenseCallable(const GenerateDRMLicenseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->generateDRMLicense(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ImmClient::GenerateVideoPlaylistOutcome ImmClient::generateVideoPlaylist(const GenerateVideoPlaylistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2103,42 +2067,6 @@ ImmClient::GetBindingOutcomeCallable ImmClient::getBindingCallable(const GetBind return task->get_future(); } -ImmClient::GetDRMLicenseOutcome ImmClient::getDRMLicense(const GetDRMLicenseRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return GetDRMLicenseOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return GetDRMLicenseOutcome(GetDRMLicenseResult(outcome.result())); - else - return GetDRMLicenseOutcome(outcome.error()); -} - -void ImmClient::getDRMLicenseAsync(const GetDRMLicenseRequest& request, const GetDRMLicenseAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, getDRMLicense(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::GetDRMLicenseOutcomeCallable ImmClient::getDRMLicenseCallable(const GetDRMLicenseRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->getDRMLicense(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ImmClient::GetDatasetOutcome ImmClient::getDataset(const GetDatasetRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3111,42 +3039,6 @@ ImmClient::ResumeBatchOutcomeCallable ImmClient::resumeBatchCallable(const Resum return task->get_future(); } -ImmClient::ResumeBindingOutcome ImmClient::resumeBinding(const ResumeBindingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResumeBindingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResumeBindingOutcome(ResumeBindingResult(outcome.result())); - else - return ResumeBindingOutcome(outcome.error()); -} - -void ImmClient::resumeBindingAsync(const ResumeBindingRequest& request, const ResumeBindingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resumeBinding(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::ResumeBindingOutcomeCallable ImmClient::resumeBindingCallable(const ResumeBindingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resumeBinding(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ImmClient::ResumeTriggerOutcome ImmClient::resumeTrigger(const ResumeTriggerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3291,42 +3183,6 @@ ImmClient::SimpleQueryOutcomeCallable ImmClient::simpleQueryCallable(const Simpl return task->get_future(); } -ImmClient::StopBindingOutcome ImmClient::stopBinding(const StopBindingRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopBindingOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopBindingOutcome(StopBindingResult(outcome.result())); - else - return StopBindingOutcome(outcome.error()); -} - -void ImmClient::stopBindingAsync(const StopBindingRequest& request, const StopBindingAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopBinding(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -ImmClient::StopBindingOutcomeCallable ImmClient::stopBindingCallable(const StopBindingRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopBinding(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - ImmClient::SuspendBatchOutcome ImmClient::suspendBatch(const SuspendBatchRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/imm/src/model/BatchGetFigureClusterResult.cc b/imm/src/model/BatchGetFigureClusterResult.cc index 9f46017c5..0a923b4e7 100644 --- a/imm/src/model/BatchGetFigureClusterResult.cc +++ b/imm/src/model/BatchGetFigureClusterResult.cc @@ -150,12 +150,10 @@ void BatchGetFigureClusterResult::parse(const std::string &payload) figureClustersObject.cover.language = coverNode["Language"].asString(); if(!coverNode["Album"].isNull()) figureClustersObject.cover.album = coverNode["Album"].asString(); - if(!coverNode["DocumentLanguage"].isNull()) - figureClustersObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); if(!coverNode["PageCount"].isNull()) figureClustersObject.cover.pageCount = std::stol(coverNode["PageCount"].asString()); - if(!coverNode["DocumentContent"].isNull()) - figureClustersObject.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["DocumentText"].isNull()) + figureClustersObject.cover.documentText = coverNode["DocumentText"].asString(); if(!coverNode["ETag"].isNull()) figureClustersObject.cover.eTag = coverNode["ETag"].asString(); if(!coverNode["CacheControl"].isNull()) diff --git a/imm/src/model/BatchGetFileMetaResult.cc b/imm/src/model/BatchGetFileMetaResult.cc index 972e484af..b45cc4a8f 100644 --- a/imm/src/model/BatchGetFileMetaResult.cc +++ b/imm/src/model/BatchGetFileMetaResult.cc @@ -113,12 +113,10 @@ void BatchGetFileMetaResult::parse(const std::string &payload) filesObject.language = valueFilesFilesItem["Language"].asString(); if(!valueFilesFilesItem["Album"].isNull()) filesObject.album = valueFilesFilesItem["Album"].asString(); - if(!valueFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); if(!valueFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); - if(!valueFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueFilesFilesItem["DocumentText"].asString(); if(!valueFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueFilesFilesItem["ETag"].asString(); if(!valueFilesFilesItem["CacheControl"].isNull()) diff --git a/imm/src/model/CreateBatchRequest.cc b/imm/src/model/CreateBatchRequest.cc index 7ea2ca3da..b474ed046 100644 --- a/imm/src/model/CreateBatchRequest.cc +++ b/imm/src/model/CreateBatchRequest.cc @@ -32,6 +32,11 @@ CreateBatchRequest::Notification CreateBatchRequest::getNotification() const { void CreateBatchRequest::setNotification(const CreateBatchRequest::Notification ¬ification) { notification_ = notification; setBodyParameter(std::string("Notification") + ".Endpoint", notification.endpoint); + setBodyParameter(std::string("Notification") + ".MNS.Endpoint", notification.mNS.endpoint); + setBodyParameter(std::string("Notification") + ".MNS.TopicName", notification.mNS.topicName); + setBodyParameter(std::string("Notification") + ".RocketMQ.Endpoint", notification.rocketMQ.endpoint); + setBodyParameter(std::string("Notification") + ".RocketMQ.InstanceId", notification.rocketMQ.instanceId); + setBodyParameter(std::string("Notification") + ".RocketMQ.TopicName", notification.rocketMQ.topicName); setBodyParameter(std::string("Notification") + ".Topic", notification.topic); } diff --git a/imm/src/model/CreateTriggerRequest.cc b/imm/src/model/CreateTriggerRequest.cc index da80c187b..185003e6f 100644 --- a/imm/src/model/CreateTriggerRequest.cc +++ b/imm/src/model/CreateTriggerRequest.cc @@ -32,6 +32,11 @@ CreateTriggerRequest::Notification CreateTriggerRequest::getNotification() const void CreateTriggerRequest::setNotification(const CreateTriggerRequest::Notification ¬ification) { notification_ = notification; setBodyParameter(std::string("Notification") + ".Endpoint", notification.endpoint); + setBodyParameter(std::string("Notification") + ".MNS.Endpoint", notification.mNS.endpoint); + setBodyParameter(std::string("Notification") + ".MNS.TopicName", notification.mNS.topicName); + setBodyParameter(std::string("Notification") + ".RocketMQ.Endpoint", notification.rocketMQ.endpoint); + setBodyParameter(std::string("Notification") + ".RocketMQ.InstanceId", notification.rocketMQ.instanceId); + setBodyParameter(std::string("Notification") + ".RocketMQ.TopicName", notification.rocketMQ.topicName); setBodyParameter(std::string("Notification") + ".Topic", notification.topic); } diff --git a/imm/src/model/FuzzyQueryResult.cc b/imm/src/model/FuzzyQueryResult.cc index a9d22229d..077cfeeaf 100644 --- a/imm/src/model/FuzzyQueryResult.cc +++ b/imm/src/model/FuzzyQueryResult.cc @@ -113,12 +113,10 @@ void FuzzyQueryResult::parse(const std::string &payload) filesObject.language = valueFilesFilesItem["Language"].asString(); if(!valueFilesFilesItem["Album"].isNull()) filesObject.album = valueFilesFilesItem["Album"].asString(); - if(!valueFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); if(!valueFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); - if(!valueFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueFilesFilesItem["DocumentText"].asString(); if(!valueFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueFilesFilesItem["ETag"].asString(); if(!valueFilesFilesItem["CacheControl"].isNull()) diff --git a/imm/src/model/GenerateDRMLicenseRequest.cc b/imm/src/model/GenerateDRMLicenseRequest.cc deleted file mode 100644 index 3bfa10c28..000000000 --- a/imm/src/model/GenerateDRMLicenseRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Imm::Model::GenerateDRMLicenseRequest; - -GenerateDRMLicenseRequest::GenerateDRMLicenseRequest() - : RpcServiceRequest("imm", "2020-09-30", "GenerateDRMLicense") { - setMethod(HttpRequest::Method::Post); -} - -GenerateDRMLicenseRequest::~GenerateDRMLicenseRequest() {} - -std::string GenerateDRMLicenseRequest::getProtectionSystem() const { - return protectionSystem_; -} - -void GenerateDRMLicenseRequest::setProtectionSystem(const std::string &protectionSystem) { - protectionSystem_ = protectionSystem; - setParameter(std::string("ProtectionSystem"), protectionSystem); -} - -std::string GenerateDRMLicenseRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void GenerateDRMLicenseRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string GenerateDRMLicenseRequest::getProjectName() const { - return projectName_; -} - -void GenerateDRMLicenseRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string GenerateDRMLicenseRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void GenerateDRMLicenseRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string GenerateDRMLicenseRequest::getKeyId() const { - return keyId_; -} - -void GenerateDRMLicenseRequest::setKeyId(const std::string &keyId) { - keyId_ = keyId; - setParameter(std::string("KeyId"), keyId); -} - diff --git a/imm/src/model/GenerateDRMLicenseResult.cc b/imm/src/model/GenerateDRMLicenseResult.cc deleted file mode 100644 index 3f3665fba..000000000 --- a/imm/src/model/GenerateDRMLicenseResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GenerateDRMLicenseResult::GenerateDRMLicenseResult() : - ServiceResult() -{} - -GenerateDRMLicenseResult::GenerateDRMLicenseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GenerateDRMLicenseResult::~GenerateDRMLicenseResult() -{} - -void GenerateDRMLicenseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["License"].isNull()) - license_ = value["License"].asString(); - if(!value["States"].isNull()) - states_ = std::stol(value["States"].asString()); - if(!value["DeviceInfo"].isNull()) - deviceInfo_ = value["DeviceInfo"].asString(); - -} - -long GenerateDRMLicenseResult::getStates()const -{ - return states_; -} - -std::string GenerateDRMLicenseResult::getLicense()const -{ - return license_; -} - -std::string GenerateDRMLicenseResult::getDeviceInfo()const -{ - return deviceInfo_; -} - diff --git a/imm/src/model/GetDRMLicenseRequest.cc b/imm/src/model/GetDRMLicenseRequest.cc deleted file mode 100644 index 9ad6c8b46..000000000 --- a/imm/src/model/GetDRMLicenseRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Imm::Model::GetDRMLicenseRequest; - -GetDRMLicenseRequest::GetDRMLicenseRequest() - : RpcServiceRequest("imm", "2020-09-30", "GetDRMLicense") { - setMethod(HttpRequest::Method::Post); -} - -GetDRMLicenseRequest::~GetDRMLicenseRequest() {} - -std::string GetDRMLicenseRequest::getProtectionSystem() const { - return protectionSystem_; -} - -void GetDRMLicenseRequest::setProtectionSystem(const std::string &protectionSystem) { - protectionSystem_ = protectionSystem; - setParameter(std::string("ProtectionSystem"), protectionSystem); -} - -std::string GetDRMLicenseRequest::getNotifyEndpoint() const { - return notifyEndpoint_; -} - -void GetDRMLicenseRequest::setNotifyEndpoint(const std::string ¬ifyEndpoint) { - notifyEndpoint_ = notifyEndpoint; - setParameter(std::string("NotifyEndpoint"), notifyEndpoint); -} - -std::string GetDRMLicenseRequest::getProjectName() const { - return projectName_; -} - -void GetDRMLicenseRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string GetDRMLicenseRequest::getNotifyTopicName() const { - return notifyTopicName_; -} - -void GetDRMLicenseRequest::setNotifyTopicName(const std::string ¬ifyTopicName) { - notifyTopicName_ = notifyTopicName; - setParameter(std::string("NotifyTopicName"), notifyTopicName); -} - -std::string GetDRMLicenseRequest::getKeyId() const { - return keyId_; -} - -void GetDRMLicenseRequest::setKeyId(const std::string &keyId) { - keyId_ = keyId; - setParameter(std::string("KeyId"), keyId); -} - diff --git a/imm/src/model/GetDRMLicenseResult.cc b/imm/src/model/GetDRMLicenseResult.cc deleted file mode 100644 index 9fb405b4a..000000000 --- a/imm/src/model/GetDRMLicenseResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -GetDRMLicenseResult::GetDRMLicenseResult() : - ServiceResult() -{} - -GetDRMLicenseResult::GetDRMLicenseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetDRMLicenseResult::~GetDRMLicenseResult() -{} - -void GetDRMLicenseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["License"].isNull()) - license_ = value["License"].asString(); - if(!value["States"].isNull()) - states_ = std::stol(value["States"].asString()); - if(!value["DeviceInfo"].isNull()) - deviceInfo_ = value["DeviceInfo"].asString(); - -} - -long GetDRMLicenseResult::getStates()const -{ - return states_; -} - -std::string GetDRMLicenseResult::getLicense()const -{ - return license_; -} - -std::string GetDRMLicenseResult::getDeviceInfo()const -{ - return deviceInfo_; -} - diff --git a/imm/src/model/GetFigureClusterResult.cc b/imm/src/model/GetFigureClusterResult.cc index 9989251e1..e8958a7a9 100644 --- a/imm/src/model/GetFigureClusterResult.cc +++ b/imm/src/model/GetFigureClusterResult.cc @@ -147,12 +147,10 @@ void GetFigureClusterResult::parse(const std::string &payload) figureCluster_.cover.language = coverNode["Language"].asString(); if(!coverNode["Album"].isNull()) figureCluster_.cover.album = coverNode["Album"].asString(); - if(!coverNode["DocumentLanguage"].isNull()) - figureCluster_.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); if(!coverNode["PageCount"].isNull()) figureCluster_.cover.pageCount = std::stol(coverNode["PageCount"].asString()); - if(!coverNode["DocumentContent"].isNull()) - figureCluster_.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["DocumentText"].isNull()) + figureCluster_.cover.documentText = coverNode["DocumentText"].asString(); if(!coverNode["ETag"].isNull()) figureCluster_.cover.eTag = coverNode["ETag"].asString(); if(!coverNode["CacheControl"].isNull()) diff --git a/imm/src/model/GetFileMetaResult.cc b/imm/src/model/GetFileMetaResult.cc index 78e339994..eb047e1ee 100644 --- a/imm/src/model/GetFileMetaResult.cc +++ b/imm/src/model/GetFileMetaResult.cc @@ -113,12 +113,10 @@ void GetFileMetaResult::parse(const std::string &payload) filesObject.language = valueFilesFilesItem["Language"].asString(); if(!valueFilesFilesItem["Album"].isNull()) filesObject.album = valueFilesFilesItem["Album"].asString(); - if(!valueFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); if(!valueFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); - if(!valueFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueFilesFilesItem["DocumentText"].asString(); if(!valueFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueFilesFilesItem["ETag"].asString(); if(!valueFilesFilesItem["CacheControl"].isNull()) diff --git a/imm/src/model/GetStoryResult.cc b/imm/src/model/GetStoryResult.cc index ed7bf0741..4106d2256 100644 --- a/imm/src/model/GetStoryResult.cc +++ b/imm/src/model/GetStoryResult.cc @@ -142,12 +142,10 @@ void GetStoryResult::parse(const std::string &payload) filesItemObject.language = storyNodeFilesFilesItem["Language"].asString(); if(!storyNodeFilesFilesItem["Album"].isNull()) filesItemObject.album = storyNodeFilesFilesItem["Album"].asString(); - if(!storyNodeFilesFilesItem["DocumentLanguage"].isNull()) - filesItemObject.documentLanguage = storyNodeFilesFilesItem["DocumentLanguage"].asString(); if(!storyNodeFilesFilesItem["PageCount"].isNull()) filesItemObject.pageCount = std::stol(storyNodeFilesFilesItem["PageCount"].asString()); - if(!storyNodeFilesFilesItem["DocumentContent"].isNull()) - filesItemObject.documentContent = storyNodeFilesFilesItem["DocumentContent"].asString(); + if(!storyNodeFilesFilesItem["DocumentText"].isNull()) + filesItemObject.documentText = storyNodeFilesFilesItem["DocumentText"].asString(); if(!storyNodeFilesFilesItem["ETag"].isNull()) filesItemObject.eTag = storyNodeFilesFilesItem["ETag"].asString(); if(!storyNodeFilesFilesItem["CacheControl"].isNull()) @@ -641,12 +639,10 @@ void GetStoryResult::parse(const std::string &payload) story_.cover.language = coverNode["Language"].asString(); if(!coverNode["Album"].isNull()) story_.cover.album = coverNode["Album"].asString(); - if(!coverNode["DocumentLanguage"].isNull()) - story_.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); if(!coverNode["PageCount"].isNull()) story_.cover.pageCount = std::stol(coverNode["PageCount"].asString()); - if(!coverNode["DocumentContent"].isNull()) - story_.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["DocumentText"].isNull()) + story_.cover.documentText = coverNode["DocumentText"].asString(); if(!coverNode["ETag"].isNull()) story_.cover.eTag = coverNode["ETag"].asString(); if(!coverNode["CacheControl"].isNull()) diff --git a/imm/src/model/QueryFigureClustersResult.cc b/imm/src/model/QueryFigureClustersResult.cc index 704ffa13d..13f2c68aa 100644 --- a/imm/src/model/QueryFigureClustersResult.cc +++ b/imm/src/model/QueryFigureClustersResult.cc @@ -150,12 +150,10 @@ void QueryFigureClustersResult::parse(const std::string &payload) figureClustersObject.cover.language = coverNode["Language"].asString(); if(!coverNode["Album"].isNull()) figureClustersObject.cover.album = coverNode["Album"].asString(); - if(!coverNode["DocumentLanguage"].isNull()) - figureClustersObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); if(!coverNode["PageCount"].isNull()) figureClustersObject.cover.pageCount = std::stol(coverNode["PageCount"].asString()); - if(!coverNode["DocumentContent"].isNull()) - figureClustersObject.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["DocumentText"].isNull()) + figureClustersObject.cover.documentText = coverNode["DocumentText"].asString(); if(!coverNode["ETag"].isNull()) figureClustersObject.cover.eTag = coverNode["ETag"].asString(); if(!coverNode["CacheControl"].isNull()) diff --git a/imm/src/model/QueryStoriesResult.cc b/imm/src/model/QueryStoriesResult.cc index 577ae55a9..f878e9dba 100644 --- a/imm/src/model/QueryStoriesResult.cc +++ b/imm/src/model/QueryStoriesResult.cc @@ -145,12 +145,10 @@ void QueryStoriesResult::parse(const std::string &payload) filesObject.language = valueStoriesStoriesItemFilesFilesItem["Language"].asString(); if(!valueStoriesStoriesItemFilesFilesItem["Album"].isNull()) filesObject.album = valueStoriesStoriesItemFilesFilesItem["Album"].asString(); - if(!valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueStoriesStoriesItemFilesFilesItem["DocumentLanguage"].asString(); if(!valueStoriesStoriesItemFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueStoriesStoriesItemFilesFilesItem["PageCount"].asString()); - if(!valueStoriesStoriesItemFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueStoriesStoriesItemFilesFilesItem["DocumentContent"].asString(); + if(!valueStoriesStoriesItemFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueStoriesStoriesItemFilesFilesItem["DocumentText"].asString(); if(!valueStoriesStoriesItemFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueStoriesStoriesItemFilesFilesItem["ETag"].asString(); if(!valueStoriesStoriesItemFilesFilesItem["CacheControl"].isNull()) @@ -644,12 +642,10 @@ void QueryStoriesResult::parse(const std::string &payload) storiesObject.cover.language = coverNode["Language"].asString(); if(!coverNode["Album"].isNull()) storiesObject.cover.album = coverNode["Album"].asString(); - if(!coverNode["DocumentLanguage"].isNull()) - storiesObject.cover.documentLanguage = coverNode["DocumentLanguage"].asString(); if(!coverNode["PageCount"].isNull()) storiesObject.cover.pageCount = std::stol(coverNode["PageCount"].asString()); - if(!coverNode["DocumentContent"].isNull()) - storiesObject.cover.documentContent = coverNode["DocumentContent"].asString(); + if(!coverNode["DocumentText"].isNull()) + storiesObject.cover.documentText = coverNode["DocumentText"].asString(); if(!coverNode["ETag"].isNull()) storiesObject.cover.eTag = coverNode["ETag"].asString(); if(!coverNode["CacheControl"].isNull()) diff --git a/imm/src/model/ResumeBindingRequest.cc b/imm/src/model/ResumeBindingRequest.cc deleted file mode 100644 index 2eb86c054..000000000 --- a/imm/src/model/ResumeBindingRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Imm::Model::ResumeBindingRequest; - -ResumeBindingRequest::ResumeBindingRequest() - : RpcServiceRequest("imm", "2020-09-30", "ResumeBinding") { - setMethod(HttpRequest::Method::Post); -} - -ResumeBindingRequest::~ResumeBindingRequest() {} - -std::string ResumeBindingRequest::getDatasetName() const { - return datasetName_; -} - -void ResumeBindingRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - -std::string ResumeBindingRequest::getProjectName() const { - return projectName_; -} - -void ResumeBindingRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string ResumeBindingRequest::getURI() const { - return uRI_; -} - -void ResumeBindingRequest::setURI(const std::string &uRI) { - uRI_ = uRI; - setParameter(std::string("URI"), uRI); -} - diff --git a/imm/src/model/ResumeBindingResult.cc b/imm/src/model/ResumeBindingResult.cc deleted file mode 100644 index 227486f31..000000000 --- a/imm/src/model/ResumeBindingResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -ResumeBindingResult::ResumeBindingResult() : - ServiceResult() -{} - -ResumeBindingResult::ResumeBindingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResumeBindingResult::~ResumeBindingResult() -{} - -void ResumeBindingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/imm/src/model/SemanticQueryResult.cc b/imm/src/model/SemanticQueryResult.cc index a265af4d5..60e3345c2 100644 --- a/imm/src/model/SemanticQueryResult.cc +++ b/imm/src/model/SemanticQueryResult.cc @@ -113,12 +113,10 @@ void SemanticQueryResult::parse(const std::string &payload) filesObject.language = valueFilesFilesItem["Language"].asString(); if(!valueFilesFilesItem["Album"].isNull()) filesObject.album = valueFilesFilesItem["Album"].asString(); - if(!valueFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); if(!valueFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); - if(!valueFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueFilesFilesItem["DocumentText"].asString(); if(!valueFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueFilesFilesItem["ETag"].asString(); if(!valueFilesFilesItem["CacheControl"].isNull()) diff --git a/imm/src/model/SimpleQueryResult.cc b/imm/src/model/SimpleQueryResult.cc index 91ca53bfd..aa84f4efa 100644 --- a/imm/src/model/SimpleQueryResult.cc +++ b/imm/src/model/SimpleQueryResult.cc @@ -113,12 +113,10 @@ void SimpleQueryResult::parse(const std::string &payload) filesObject.language = valueFilesFilesItem["Language"].asString(); if(!valueFilesFilesItem["Album"].isNull()) filesObject.album = valueFilesFilesItem["Album"].asString(); - if(!valueFilesFilesItem["DocumentLanguage"].isNull()) - filesObject.documentLanguage = valueFilesFilesItem["DocumentLanguage"].asString(); if(!valueFilesFilesItem["PageCount"].isNull()) filesObject.pageCount = std::stol(valueFilesFilesItem["PageCount"].asString()); - if(!valueFilesFilesItem["DocumentContent"].isNull()) - filesObject.documentContent = valueFilesFilesItem["DocumentContent"].asString(); + if(!valueFilesFilesItem["DocumentText"].isNull()) + filesObject.documentText = valueFilesFilesItem["DocumentText"].asString(); if(!valueFilesFilesItem["ETag"].isNull()) filesObject.eTag = valueFilesFilesItem["ETag"].asString(); if(!valueFilesFilesItem["CacheControl"].isNull()) diff --git a/imm/src/model/StopBindingRequest.cc b/imm/src/model/StopBindingRequest.cc deleted file mode 100644 index 007315296..000000000 --- a/imm/src/model/StopBindingRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Imm::Model::StopBindingRequest; - -StopBindingRequest::StopBindingRequest() - : RpcServiceRequest("imm", "2020-09-30", "StopBinding") { - setMethod(HttpRequest::Method::Post); -} - -StopBindingRequest::~StopBindingRequest() {} - -std::string StopBindingRequest::getReason() const { - return reason_; -} - -void StopBindingRequest::setReason(const std::string &reason) { - reason_ = reason; - setParameter(std::string("Reason"), reason); -} - -std::string StopBindingRequest::getDatasetName() const { - return datasetName_; -} - -void StopBindingRequest::setDatasetName(const std::string &datasetName) { - datasetName_ = datasetName; - setParameter(std::string("DatasetName"), datasetName); -} - -std::string StopBindingRequest::getProjectName() const { - return projectName_; -} - -void StopBindingRequest::setProjectName(const std::string &projectName) { - projectName_ = projectName; - setParameter(std::string("ProjectName"), projectName); -} - -std::string StopBindingRequest::getURI() const { - return uRI_; -} - -void StopBindingRequest::setURI(const std::string &uRI) { - uRI_ = uRI; - setParameter(std::string("URI"), uRI); -} - diff --git a/imm/src/model/StopBindingResult.cc b/imm/src/model/StopBindingResult.cc deleted file mode 100644 index 74b57ddfd..000000000 --- a/imm/src/model/StopBindingResult.cc +++ /dev/null @@ -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 -#include - -using namespace AlibabaCloud::Imm; -using namespace AlibabaCloud::Imm::Model; - -StopBindingResult::StopBindingResult() : - ServiceResult() -{} - -StopBindingResult::StopBindingResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopBindingResult::~StopBindingResult() -{} - -void StopBindingResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} -