Added batch drop list domain.

This commit is contained in:
sdk-team
2021-01-08 03:07:58 +00:00
parent 681409a561
commit 405237dd06
8 changed files with 264 additions and 0 deletions

View File

@@ -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.

View File

@@ -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

View File

@@ -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<Error, Model::SaveBatchTaskForModifyingDomainDnsResult> SaveBatchTaskForModifyingDomainDnsOutcome;
typedef std::future<SaveBatchTaskForModifyingDomainDnsOutcome> SaveBatchTaskForModifyingDomainDnsOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForModifyingDomainDnsRequest&, const SaveBatchTaskForModifyingDomainDnsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveBatchTaskForModifyingDomainDnsAsyncHandler;
typedef Outcome<Error, Model::SaveBatchTaskForReserveDropListDomainResult> SaveBatchTaskForReserveDropListDomainOutcome;
typedef std::future<SaveBatchTaskForReserveDropListDomainOutcome> SaveBatchTaskForReserveDropListDomainOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForReserveDropListDomainRequest&, const SaveBatchTaskForReserveDropListDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveBatchTaskForReserveDropListDomainAsyncHandler;
typedef Outcome<Error, Model::SaveBatchTaskForTransferProhibitionLockResult> SaveBatchTaskForTransferProhibitionLockOutcome;
typedef std::future<SaveBatchTaskForTransferProhibitionLockOutcome> SaveBatchTaskForTransferProhibitionLockOutcomeCallable;
typedef std::function<void(const DomainClient*, const Model::SaveBatchTaskForTransferProhibitionLockRequest&, const SaveBatchTaskForTransferProhibitionLockOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
SaveBatchTaskForTransferProhibitionLockOutcomeCallable saveBatchTaskForTransferProhibitionLockCallable(const Model::SaveBatchTaskForTransferProhibitionLockRequest& request) const;

View File

@@ -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 <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/domain/DomainExport.h>
namespace AlibabaCloud
{
namespace Domain
{
namespace Model
{
class ALIBABACLOUD_DOMAIN_EXPORT SaveBatchTaskForReserveDropListDomainRequest : public RpcServiceRequest
{
public:
struct Domains
{
std::string domainName;
};
public:
SaveBatchTaskForReserveDropListDomainRequest();
~SaveBatchTaskForReserveDropListDomainRequest();
std::vector<Domains> getDomains()const;
void setDomains(const std::vector<Domains>& domains);
std::string getContactTemplateId()const;
void setContactTemplateId(const std::string& contactTemplateId);
private:
std::vector<Domains> domains_;
std::string contactTemplateId_;
};
}
}
}
#endif // !ALIBABACLOUD_DOMAIN_MODEL_SAVEBATCHTASKFORRESERVEDROPLISTDOMAINREQUEST_H_

View File

@@ -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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/domain/DomainExport.h>
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_

View File

@@ -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<const AsyncCallerContext>& 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<std::packaged_task<SaveBatchTaskForReserveDropListDomainOutcome()>>(
[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();

View File

@@ -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 <alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainRequest.h>
using AlibabaCloud::Domain::Model::SaveBatchTaskForReserveDropListDomainRequest;
SaveBatchTaskForReserveDropListDomainRequest::SaveBatchTaskForReserveDropListDomainRequest() :
RpcServiceRequest("domain", "2018-01-29", "SaveBatchTaskForReserveDropListDomain")
{
setMethod(HttpRequest::Method::Post);
}
SaveBatchTaskForReserveDropListDomainRequest::~SaveBatchTaskForReserveDropListDomainRequest()
{}
std::vector<SaveBatchTaskForReserveDropListDomainRequest::Domains> SaveBatchTaskForReserveDropListDomainRequest::getDomains()const
{
return domains_;
}
void SaveBatchTaskForReserveDropListDomainRequest::setDomains(const std::vector<Domains>& 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);
}

View File

@@ -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 <alibabacloud/domain/model/SaveBatchTaskForReserveDropListDomainResult.h>
#include <json/json.h>
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_;
}