diff --git a/CHANGELOG b/CHANGELOG index 1c1780c8b..39e9da173 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-01-08 Version: patch +- Added batch drop list domain. + 2021-01-08 Version: patch - Add new API for configuration and report, generate SDK again. diff --git a/domain/CMakeLists.txt b/domain/CMakeLists.txt index 8f118bfd0..b98f728ae 100644 --- a/domain/CMakeLists.txt +++ b/domain/CMakeLists.txt @@ -185,6 +185,8 @@ set(domain_public_header_model include/alibabacloud/domain/model/SaveBatchTaskForDomainNameProxyServiceResult.h include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsRequest.h include/alibabacloud/domain/model/SaveBatchTaskForModifyingDomainDnsResult.h + include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h + include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockRequest.h include/alibabacloud/domain/model/SaveBatchTaskForTransferProhibitionLockResult.h include/alibabacloud/domain/model/SaveBatchTaskForUpdateProhibitionLockRequest.h @@ -442,6 +444,8 @@ set(domain_src src/model/SaveBatchTaskForDomainNameProxyServiceResult.cc src/model/SaveBatchTaskForModifyingDomainDnsRequest.cc src/model/SaveBatchTaskForModifyingDomainDnsResult.cc + src/model/SaveBatchTaskForReserveDropListDomainRequest.cc + src/model/SaveBatchTaskForReserveDropListDomainResult.cc src/model/SaveBatchTaskForTransferProhibitionLockRequest.cc src/model/SaveBatchTaskForTransferProhibitionLockResult.cc src/model/SaveBatchTaskForUpdateProhibitionLockRequest.cc diff --git a/domain/include/alibabacloud/domain/DomainClient.h b/domain/include/alibabacloud/domain/DomainClient.h index 286b44e8b..874df78a6 100644 --- a/domain/include/alibabacloud/domain/DomainClient.h +++ b/domain/include/alibabacloud/domain/DomainClient.h @@ -186,6 +186,8 @@ #include "model/SaveBatchTaskForDomainNameProxyServiceResult.h" #include "model/SaveBatchTaskForModifyingDomainDnsRequest.h" #include "model/SaveBatchTaskForModifyingDomainDnsResult.h" +#include "model/SaveBatchTaskForReserveDropListDomainRequest.h" +#include "model/SaveBatchTaskForReserveDropListDomainResult.h" #include "model/SaveBatchTaskForTransferProhibitionLockRequest.h" #include "model/SaveBatchTaskForTransferProhibitionLockResult.h" #include "model/SaveBatchTaskForUpdateProhibitionLockRequest.h" @@ -531,6 +533,9 @@ namespace AlibabaCloud typedef Outcome SaveBatchTaskForModifyingDomainDnsOutcome; typedef std::future SaveBatchTaskForModifyingDomainDnsOutcomeCallable; typedef std::function&)> SaveBatchTaskForModifyingDomainDnsAsyncHandler; + typedef Outcome SaveBatchTaskForReserveDropListDomainOutcome; + typedef std::future SaveBatchTaskForReserveDropListDomainOutcomeCallable; + typedef std::function&)> SaveBatchTaskForReserveDropListDomainAsyncHandler; typedef Outcome SaveBatchTaskForTransferProhibitionLockOutcome; typedef std::future SaveBatchTaskForTransferProhibitionLockOutcomeCallable; typedef std::function&)> SaveBatchTaskForTransferProhibitionLockAsyncHandler; @@ -917,6 +922,9 @@ namespace AlibabaCloud SaveBatchTaskForModifyingDomainDnsOutcome saveBatchTaskForModifyingDomainDns(const Model::SaveBatchTaskForModifyingDomainDnsRequest &request)const; void saveBatchTaskForModifyingDomainDnsAsync(const Model::SaveBatchTaskForModifyingDomainDnsRequest& request, const SaveBatchTaskForModifyingDomainDnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForModifyingDomainDnsOutcomeCallable saveBatchTaskForModifyingDomainDnsCallable(const Model::SaveBatchTaskForModifyingDomainDnsRequest& request) const; + SaveBatchTaskForReserveDropListDomainOutcome saveBatchTaskForReserveDropListDomain(const Model::SaveBatchTaskForReserveDropListDomainRequest &request)const; + void saveBatchTaskForReserveDropListDomainAsync(const Model::SaveBatchTaskForReserveDropListDomainRequest& request, const SaveBatchTaskForReserveDropListDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveBatchTaskForReserveDropListDomainOutcomeCallable saveBatchTaskForReserveDropListDomainCallable(const Model::SaveBatchTaskForReserveDropListDomainRequest& request) const; SaveBatchTaskForTransferProhibitionLockOutcome saveBatchTaskForTransferProhibitionLock(const Model::SaveBatchTaskForTransferProhibitionLockRequest &request)const; void saveBatchTaskForTransferProhibitionLockAsync(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request, const SaveBatchTaskForTransferProhibitionLockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SaveBatchTaskForTransferProhibitionLockOutcomeCallable saveBatchTaskForTransferProhibitionLockCallable(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request) const; diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h new file mode 100644 index 000000000..69bfb9105 --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h @@ -0,0 +1,56 @@ +/* + * 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_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINREQUEST_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForReserveDropListDomainRequest : public RpcServiceRequest + { + public: + struct Domains + { + std::string domainName; + }; + + public: + SaveBatchTaskForReserveDropListDomainRequest(); + ~SaveBatchTaskForReserveDropListDomainRequest(); + + std::vector getDomains()const; + void setDomains(const std::vector& domains); + std::string getContactTemplateId()const; + void setContactTemplateId(const std::string& contactTemplateId); + + private: + std::vector domains_; + std::string contactTemplateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINREQUEST_H_ \ No newline at end of file diff --git a/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h b/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h new file mode 100644 index 000000000..6dfd09e4f --- /dev/null +++ b/domain/include/alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h @@ -0,0 +1,51 @@ +/* + * 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_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINRESULT_H_ +#define ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Domain + { + namespace Model + { + class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForReserveDropListDomainResult : public ServiceResult + { + public: + + + SaveBatchTaskForReserveDropListDomainResult(); + explicit SaveBatchTaskForReserveDropListDomainResult(const std::string &payload); + ~SaveBatchTaskForReserveDropListDomainResult(); + std::string getTaskNo()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskNo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINRESULT_H_ \ No newline at end of file diff --git a/domain/src/DomainClient.cc b/domain/src/DomainClient.cc index 5086226d1..7e03d797d 100644 --- a/domain/src/DomainClient.cc +++ b/domain/src/DomainClient.cc @@ -3003,6 +3003,42 @@ DomainClient::SaveBatchTaskForModifyingDomainDnsOutcomeCallable DomainClient::sa return task->get_future(); } +DomainClient::SaveBatchTaskForReserveDropListDomainOutcome DomainClient::saveBatchTaskForReserveDropListDomain(const SaveBatchTaskForReserveDropListDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveBatchTaskForReserveDropListDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveBatchTaskForReserveDropListDomainOutcome(SaveBatchTaskForReserveDropListDomainResult(outcome.result())); + else + return SaveBatchTaskForReserveDropListDomainOutcome(outcome.error()); +} + +void DomainClient::saveBatchTaskForReserveDropListDomainAsync(const SaveBatchTaskForReserveDropListDomainRequest& request, const SaveBatchTaskForReserveDropListDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveBatchTaskForReserveDropListDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DomainClient::SaveBatchTaskForReserveDropListDomainOutcomeCallable DomainClient::saveBatchTaskForReserveDropListDomainCallable(const SaveBatchTaskForReserveDropListDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveBatchTaskForReserveDropListDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DomainClient::SaveBatchTaskForTransferProhibitionLockOutcome DomainClient::saveBatchTaskForTransferProhibitionLock(const SaveBatchTaskForTransferProhibitionLockRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/domain/src/model/SaveBatchTaskForReserveDropListDomainRequest.cc b/domain/src/model/SaveBatchTaskForReserveDropListDomainRequest.cc new file mode 100644 index 000000000..8e856c394 --- /dev/null +++ b/domain/src/model/SaveBatchTaskForReserveDropListDomainRequest.cc @@ -0,0 +1,55 @@ +/* + * 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::Domain::Model::SaveBatchTaskForReserveDropListDomainRequest; + +SaveBatchTaskForReserveDropListDomainRequest::SaveBatchTaskForReserveDropListDomainRequest() : + RpcServiceRequest("domain", "2018-01-29", "SaveBatchTaskForReserveDropListDomain") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveBatchTaskForReserveDropListDomainRequest::~SaveBatchTaskForReserveDropListDomainRequest() +{} + +std::vector SaveBatchTaskForReserveDropListDomainRequest::getDomains()const +{ + return domains_; +} + +void SaveBatchTaskForReserveDropListDomainRequest::setDomains(const std::vector& domains) +{ + domains_ = domains; + for(int dep1 = 0; dep1!= domains.size(); dep1++) { + auto domainsObj = domains.at(dep1); + std::string domainsObjStr = "Domains." + std::to_string(dep1 + 1); + setParameter(domainsObjStr + ".DomainName", domainsObj.domainName); + } +} + +std::string SaveBatchTaskForReserveDropListDomainRequest::getContactTemplateId()const +{ + return contactTemplateId_; +} + +void SaveBatchTaskForReserveDropListDomainRequest::setContactTemplateId(const std::string& contactTemplateId) +{ + contactTemplateId_ = contactTemplateId; + setParameter("ContactTemplateId", contactTemplateId); +} + diff --git a/domain/src/model/SaveBatchTaskForReserveDropListDomainResult.cc b/domain/src/model/SaveBatchTaskForReserveDropListDomainResult.cc new file mode 100644 index 000000000..096100cd5 --- /dev/null +++ b/domain/src/model/SaveBatchTaskForReserveDropListDomainResult.cc @@ -0,0 +1,51 @@ +/* + * 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::Domain; +using namespace AlibabaCloud::Domain::Model; + +SaveBatchTaskForReserveDropListDomainResult::SaveBatchTaskForReserveDropListDomainResult() : + ServiceResult() +{} + +SaveBatchTaskForReserveDropListDomainResult::SaveBatchTaskForReserveDropListDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveBatchTaskForReserveDropListDomainResult::~SaveBatchTaskForReserveDropListDomainResult() +{} + +void SaveBatchTaskForReserveDropListDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskNo"].isNull()) + taskNo_ = value["TaskNo"].asString(); + +} + +std::string SaveBatchTaskForReserveDropListDomainResult::getTaskNo()const +{ + return taskNo_; +} +