From 3c00b7ee89c9ee83047f785739a3d23999388ba1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 7 Dec 2020 02:18:29 +0000 Subject: [PATCH] Remove DescribeSubscriptionObjectModifyStatus. --- CHANGELOG | 3 + dts/CMakeLists.txt | 4 - dts/include/alibabacloud/dts/DtsClient.h | 8 -- ...ibeSubscriptionObjectModifyStatusRequest.h | 60 ------------ ...ribeSubscriptionObjectModifyStatusResult.h | 68 ------------- dts/src/DtsClient.cc | 36 ------- ...beSubscriptionObjectModifyStatusRequest.cc | 84 ---------------- ...ibeSubscriptionObjectModifyStatusResult.cc | 98 ------------------- 8 files changed, 3 insertions(+), 358 deletions(-) delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h delete mode 100644 dts/src/model/DescribeSubscriptionObjectModifyStatusRequest.cc delete mode 100644 dts/src/model/DescribeSubscriptionObjectModifyStatusResult.cc diff --git a/CHANGELOG b/CHANGELOG index 2dba7e4bd..d00195a0c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-12-07 Version: patch +- Remove DescribeSubscriptionObjectModifyStatus. + 2020-12-04 Version: patch - Supported broker demand. diff --git a/dts/CMakeLists.txt b/dts/CMakeLists.txt index 4f46d46e6..35e832389 100644 --- a/dts/CMakeLists.txt +++ b/dts/CMakeLists.txt @@ -71,8 +71,6 @@ set(dts_public_header_model include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h - include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h - include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h include/alibabacloud/dts/model/DescribeSynchronizationJobAlertResult.h include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h @@ -172,8 +170,6 @@ set(dts_src src/model/DescribeSubscriptionInstanceStatusResult.cc src/model/DescribeSubscriptionInstancesRequest.cc src/model/DescribeSubscriptionInstancesResult.cc - src/model/DescribeSubscriptionObjectModifyStatusRequest.cc - src/model/DescribeSubscriptionObjectModifyStatusResult.cc src/model/DescribeSynchronizationJobAlertRequest.cc src/model/DescribeSynchronizationJobAlertResult.cc src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc diff --git a/dts/include/alibabacloud/dts/DtsClient.h b/dts/include/alibabacloud/dts/DtsClient.h index 0d7df8c13..675ec619e 100644 --- a/dts/include/alibabacloud/dts/DtsClient.h +++ b/dts/include/alibabacloud/dts/DtsClient.h @@ -72,8 +72,6 @@ #include "model/DescribeSubscriptionInstanceStatusResult.h" #include "model/DescribeSubscriptionInstancesRequest.h" #include "model/DescribeSubscriptionInstancesResult.h" -#include "model/DescribeSubscriptionObjectModifyStatusRequest.h" -#include "model/DescribeSubscriptionObjectModifyStatusResult.h" #include "model/DescribeSynchronizationJobAlertRequest.h" #include "model/DescribeSynchronizationJobAlertResult.h" #include "model/DescribeSynchronizationJobReplicatorCompareRequest.h" @@ -204,9 +202,6 @@ namespace AlibabaCloud typedef Outcome DescribeSubscriptionInstancesOutcome; typedef std::future DescribeSubscriptionInstancesOutcomeCallable; typedef std::function&)> DescribeSubscriptionInstancesAsyncHandler; - typedef Outcome DescribeSubscriptionObjectModifyStatusOutcome; - typedef std::future DescribeSubscriptionObjectModifyStatusOutcomeCallable; - typedef std::function&)> DescribeSubscriptionObjectModifyStatusAsyncHandler; typedef Outcome DescribeSynchronizationJobAlertOutcome; typedef std::future DescribeSynchronizationJobAlertOutcomeCallable; typedef std::function&)> DescribeSynchronizationJobAlertAsyncHandler; @@ -356,9 +351,6 @@ namespace AlibabaCloud DescribeSubscriptionInstancesOutcome describeSubscriptionInstances(const Model::DescribeSubscriptionInstancesRequest &request)const; void describeSubscriptionInstancesAsync(const Model::DescribeSubscriptionInstancesRequest& request, const DescribeSubscriptionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSubscriptionInstancesOutcomeCallable describeSubscriptionInstancesCallable(const Model::DescribeSubscriptionInstancesRequest& request) const; - DescribeSubscriptionObjectModifyStatusOutcome describeSubscriptionObjectModifyStatus(const Model::DescribeSubscriptionObjectModifyStatusRequest &request)const; - void describeSubscriptionObjectModifyStatusAsync(const Model::DescribeSubscriptionObjectModifyStatusRequest& request, const DescribeSubscriptionObjectModifyStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSubscriptionObjectModifyStatusOutcomeCallable describeSubscriptionObjectModifyStatusCallable(const Model::DescribeSubscriptionObjectModifyStatusRequest& request) const; DescribeSynchronizationJobAlertOutcome describeSynchronizationJobAlert(const Model::DescribeSynchronizationJobAlertRequest &request)const; void describeSynchronizationJobAlertAsync(const Model::DescribeSynchronizationJobAlertRequest& request, const DescribeSynchronizationJobAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSynchronizationJobAlertOutcomeCallable describeSynchronizationJobAlertCallable(const Model::DescribeSynchronizationJobAlertRequest& request) const; diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h deleted file mode 100644 index 83a7edbb4..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionObjectModifyStatusRequest : public RpcServiceRequest - { - - public: - DescribeSubscriptionObjectModifyStatusRequest(); - ~DescribeSubscriptionObjectModifyStatusRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getSubscriptionInstanceId()const; - void setSubscriptionInstanceId(const std::string& subscriptionInstanceId); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getAccountId()const; - void setAccountId(const std::string& accountId); - - private: - std::string clientToken_; - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSREQUEST_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h deleted file mode 100644 index 650d04b36..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionObjectModifyStatusResult : public ServiceResult - { - public: - struct CheckItem - { - std::string repairMethod; - std::string checkStatus; - std::string itemName; - std::string errorMessage; - }; - - - DescribeSubscriptionObjectModifyStatusResult(); - explicit DescribeSubscriptionObjectModifyStatusResult(const std::string &payload); - ~DescribeSubscriptionObjectModifyStatusResult(); - std::string getStatus()const; - std::string getPercent()const; - std::string getErrMessage()const; - std::vector getDetail()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - std::string percent_; - std::string errMessage_; - std::vector detail_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/src/DtsClient.cc b/dts/src/DtsClient.cc index 122ea7273..856652ce4 100644 --- a/dts/src/DtsClient.cc +++ b/dts/src/DtsClient.cc @@ -951,42 +951,6 @@ DtsClient::DescribeSubscriptionInstancesOutcomeCallable DtsClient::describeSubsc return task->get_future(); } -DtsClient::DescribeSubscriptionObjectModifyStatusOutcome DtsClient::describeSubscriptionObjectModifyStatus(const DescribeSubscriptionObjectModifyStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSubscriptionObjectModifyStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSubscriptionObjectModifyStatusOutcome(DescribeSubscriptionObjectModifyStatusResult(outcome.result())); - else - return DescribeSubscriptionObjectModifyStatusOutcome(outcome.error()); -} - -void DtsClient::describeSubscriptionObjectModifyStatusAsync(const DescribeSubscriptionObjectModifyStatusRequest& request, const DescribeSubscriptionObjectModifyStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSubscriptionObjectModifyStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSubscriptionObjectModifyStatusOutcomeCallable DtsClient::describeSubscriptionObjectModifyStatusCallable(const DescribeSubscriptionObjectModifyStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSubscriptionObjectModifyStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DescribeSynchronizationJobAlertOutcome DtsClient::describeSynchronizationJobAlert(const DescribeSynchronizationJobAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dts/src/model/DescribeSubscriptionObjectModifyStatusRequest.cc b/dts/src/model/DescribeSubscriptionObjectModifyStatusRequest.cc deleted file mode 100644 index 184420153..000000000 --- a/dts/src/model/DescribeSubscriptionObjectModifyStatusRequest.cc +++ /dev/null @@ -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 - -using AlibabaCloud::Dts::Model::DescribeSubscriptionObjectModifyStatusRequest; - -DescribeSubscriptionObjectModifyStatusRequest::DescribeSubscriptionObjectModifyStatusRequest() : - RpcServiceRequest("dts", "2020-01-01", "DescribeSubscriptionObjectModifyStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSubscriptionObjectModifyStatusRequest::~DescribeSubscriptionObjectModifyStatusRequest() -{} - -std::string DescribeSubscriptionObjectModifyStatusRequest::getClientToken()const -{ - return clientToken_; -} - -void DescribeSubscriptionObjectModifyStatusRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string DescribeSubscriptionObjectModifyStatusRequest::getSubscriptionInstanceId()const -{ - return subscriptionInstanceId_; -} - -void DescribeSubscriptionObjectModifyStatusRequest::setSubscriptionInstanceId(const std::string& subscriptionInstanceId) -{ - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter("SubscriptionInstanceId", subscriptionInstanceId); -} - -std::string DescribeSubscriptionObjectModifyStatusRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSubscriptionObjectModifyStatusRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); -} - -std::string DescribeSubscriptionObjectModifyStatusRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeSubscriptionObjectModifyStatusRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeSubscriptionObjectModifyStatusRequest::getAccountId()const -{ - return accountId_; -} - -void DescribeSubscriptionObjectModifyStatusRequest::setAccountId(const std::string& accountId) -{ - accountId_ = accountId; - setParameter("AccountId", accountId); -} - diff --git a/dts/src/model/DescribeSubscriptionObjectModifyStatusResult.cc b/dts/src/model/DescribeSubscriptionObjectModifyStatusResult.cc deleted file mode 100644 index b638af9f3..000000000 --- a/dts/src/model/DescribeSubscriptionObjectModifyStatusResult.cc +++ /dev/null @@ -1,98 +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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSubscriptionObjectModifyStatusResult::DescribeSubscriptionObjectModifyStatusResult() : - ServiceResult() -{} - -DescribeSubscriptionObjectModifyStatusResult::DescribeSubscriptionObjectModifyStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSubscriptionObjectModifyStatusResult::~DescribeSubscriptionObjectModifyStatusResult() -{} - -void DescribeSubscriptionObjectModifyStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDetailNode = value["Detail"]["CheckItem"]; - for (auto valueDetailCheckItem : allDetailNode) - { - CheckItem detailObject; - if(!valueDetailCheckItem["CheckStatus"].isNull()) - detailObject.checkStatus = valueDetailCheckItem["CheckStatus"].asString(); - if(!valueDetailCheckItem["ErrorMessage"].isNull()) - detailObject.errorMessage = valueDetailCheckItem["ErrorMessage"].asString(); - if(!valueDetailCheckItem["ItemName"].isNull()) - detailObject.itemName = valueDetailCheckItem["ItemName"].asString(); - if(!valueDetailCheckItem["RepairMethod"].isNull()) - detailObject.repairMethod = valueDetailCheckItem["RepairMethod"].asString(); - detail_.push_back(detailObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Percent"].isNull()) - percent_ = value["Percent"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - -} - -std::string DescribeSubscriptionObjectModifyStatusResult::getStatus()const -{ - return status_; -} - -std::string DescribeSubscriptionObjectModifyStatusResult::getPercent()const -{ - return percent_; -} - -std::string DescribeSubscriptionObjectModifyStatusResult::getErrMessage()const -{ - return errMessage_; -} - -std::vector DescribeSubscriptionObjectModifyStatusResult::getDetail()const -{ - return detail_; -} - -std::string DescribeSubscriptionObjectModifyStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSubscriptionObjectModifyStatusResult::getErrCode()const -{ - return errCode_; -} -