Jelajahi Sumber

Remove DescribeSubscriptionObjectModifyStatus.

sdk-team 5 tahun lalu
induk
melakukan
3c00b7ee89

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2020-12-07 Version: patch
+- Remove DescribeSubscriptionObjectModifyStatus.
+
 2020-12-04 Version: patch
 - Supported broker demand.
 

+ 0 - 4
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

+ 0 - 8
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<Error, Model::DescribeSubscriptionInstancesResult> DescribeSubscriptionInstancesOutcome;
 			typedef std::future<DescribeSubscriptionInstancesOutcome> DescribeSubscriptionInstancesOutcomeCallable;
 			typedef std::function<void(const DtsClient*, const Model::DescribeSubscriptionInstancesRequest&, const DescribeSubscriptionInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubscriptionInstancesAsyncHandler;
-			typedef Outcome<Error, Model::DescribeSubscriptionObjectModifyStatusResult> DescribeSubscriptionObjectModifyStatusOutcome;
-			typedef std::future<DescribeSubscriptionObjectModifyStatusOutcome> DescribeSubscriptionObjectModifyStatusOutcomeCallable;
-			typedef std::function<void(const DtsClient*, const Model::DescribeSubscriptionObjectModifyStatusRequest&, const DescribeSubscriptionObjectModifyStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubscriptionObjectModifyStatusAsyncHandler;
 			typedef Outcome<Error, Model::DescribeSynchronizationJobAlertResult> DescribeSynchronizationJobAlertOutcome;
 			typedef std::future<DescribeSynchronizationJobAlertOutcome> DescribeSynchronizationJobAlertOutcomeCallable;
 			typedef std::function<void(const DtsClient*, const Model::DescribeSynchronizationJobAlertRequest&, const DescribeSynchronizationJobAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
 			DescribeSynchronizationJobAlertOutcomeCallable describeSynchronizationJobAlertCallable(const Model::DescribeSynchronizationJobAlertRequest& request) const;

+ 0 - 60
dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h

@@ -1,60 +0,0 @@
-/*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSREQUEST_H_
-#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSREQUEST_H_
-
-#include <string>
-#include <vector>
-#include <alibabacloud/core/RpcServiceRequest.h>
-#include <alibabacloud/dts/DtsExport.h>
-
-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_

+ 0 - 68
dts/include/alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h

@@ -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 <string>
-#include <vector>
-#include <utility>
-#include <alibabacloud/core/ServiceResult.h>
-#include <alibabacloud/dts/DtsExport.h>
-
-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<CheckItem> 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<CheckItem> detail_;
-				std::string success_;
-				std::string errCode_;
-
-			};
-		}
-	}
-}
-#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONOBJECTMODIFYSTATUSRESULT_H_

+ 0 - 36
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<const AsyncCallerContext>& 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<std::packaged_task<DescribeSubscriptionObjectModifyStatusOutcome()>>(
-			[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();

+ 0 - 84
dts/src/model/DescribeSubscriptionObjectModifyStatusRequest.cc

@@ -1,84 +0,0 @@
-/*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *      http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusRequest.h>
-
-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);
-}
-

+ 0 - 98
dts/src/model/DescribeSubscriptionObjectModifyStatusResult.cc

@@ -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 <alibabacloud/dts/model/DescribeSubscriptionObjectModifyStatusResult.h>
-#include <json/json.h>
-
-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::CheckItem> DescribeSubscriptionObjectModifyStatusResult::getDetail()const
-{
-	return detail_;
-}
-
-std::string DescribeSubscriptionObjectModifyStatusResult::getSuccess()const
-{
-	return success_;
-}
-
-std::string DescribeSubscriptionObjectModifyStatusResult::getErrCode()const
-{
-	return errCode_;
-}
-