From 152b44dbed5e13545bcd9d7dab65f809dcd1ff8c Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 23 Sep 2020 02:50:08 +0000 Subject: [PATCH] Sync cdn APIs. --- CHANGELOG | 3 + dcdn/CMakeLists.txt | 8 ++ dcdn/include/alibabacloud/dcdn/DcdnClient.h | 16 +++ .../dcdn/model/BatchAddDcdnDomainRequest.h | 72 ++++++++++ .../dcdn/model/BatchAddDcdnDomainResult.h | 49 +++++++ .../BatchSetDcdnDomainCertificateRequest.h | 72 ++++++++++ .../BatchSetDcdnDomainCertificateResult.h | 49 +++++++ .../dcdn/model/TagDcdnResourcesRequest.h | 3 - .../dcdn/model/UntagDcdnResourcesRequest.h | 6 +- dcdn/src/DcdnClient.cc | 72 ++++++++++ dcdn/src/model/BatchAddDcdnDomainRequest.cc | 128 ++++++++++++++++++ dcdn/src/model/BatchAddDcdnDomainResult.cc | 44 ++++++ .../BatchSetDcdnDomainCertificateRequest.cc | 128 ++++++++++++++++++ .../BatchSetDcdnDomainCertificateResult.cc | 44 ++++++ dcdn/src/model/TagDcdnResourcesRequest.cc | 11 -- dcdn/src/model/UntagDcdnResourcesRequest.cc | 10 +- 16 files changed, 693 insertions(+), 22 deletions(-) create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h create mode 100644 dcdn/src/model/BatchAddDcdnDomainRequest.cc create mode 100644 dcdn/src/model/BatchAddDcdnDomainResult.cc create mode 100644 dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc create mode 100644 dcdn/src/model/BatchSetDcdnDomainCertificateResult.cc diff --git a/CHANGELOG b/CHANGELOG index 96fc58555..7fc65dd3b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-09-23 Version: patch +- Sync cdn APIs. + 2020-09-22 Version: patch - DescribePrice update amount type to string. diff --git a/dcdn/CMakeLists.txt b/dcdn/CMakeLists.txt index 14cb3d29a..b9b5874f0 100644 --- a/dcdn/CMakeLists.txt +++ b/dcdn/CMakeLists.txt @@ -25,8 +25,12 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/AddDcdnDomainResult.h include/alibabacloud/dcdn/model/AddDcdnIpaDomainRequest.h include/alibabacloud/dcdn/model/AddDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h + include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsRequest.h include/alibabacloud/dcdn/model/BatchDeleteDcdnDomainConfigsResult.h + include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h + include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsRequest.h include/alibabacloud/dcdn/model/BatchSetDcdnDomainConfigsResult.h include/alibabacloud/dcdn/model/BatchSetDcdnIpaDomainConfigsRequest.h @@ -202,8 +206,12 @@ set(dcdn_src src/model/AddDcdnDomainResult.cc src/model/AddDcdnIpaDomainRequest.cc src/model/AddDcdnIpaDomainResult.cc + src/model/BatchAddDcdnDomainRequest.cc + src/model/BatchAddDcdnDomainResult.cc src/model/BatchDeleteDcdnDomainConfigsRequest.cc src/model/BatchDeleteDcdnDomainConfigsResult.cc + src/model/BatchSetDcdnDomainCertificateRequest.cc + src/model/BatchSetDcdnDomainCertificateResult.cc src/model/BatchSetDcdnDomainConfigsRequest.cc src/model/BatchSetDcdnDomainConfigsResult.cc src/model/BatchSetDcdnIpaDomainConfigsRequest.cc diff --git a/dcdn/include/alibabacloud/dcdn/DcdnClient.h b/dcdn/include/alibabacloud/dcdn/DcdnClient.h index 08701f7de..ccf186c5f 100644 --- a/dcdn/include/alibabacloud/dcdn/DcdnClient.h +++ b/dcdn/include/alibabacloud/dcdn/DcdnClient.h @@ -26,8 +26,12 @@ #include "model/AddDcdnDomainResult.h" #include "model/AddDcdnIpaDomainRequest.h" #include "model/AddDcdnIpaDomainResult.h" +#include "model/BatchAddDcdnDomainRequest.h" +#include "model/BatchAddDcdnDomainResult.h" #include "model/BatchDeleteDcdnDomainConfigsRequest.h" #include "model/BatchDeleteDcdnDomainConfigsResult.h" +#include "model/BatchSetDcdnDomainCertificateRequest.h" +#include "model/BatchSetDcdnDomainCertificateResult.h" #include "model/BatchSetDcdnDomainConfigsRequest.h" #include "model/BatchSetDcdnDomainConfigsResult.h" #include "model/BatchSetDcdnIpaDomainConfigsRequest.h" @@ -211,9 +215,15 @@ namespace AlibabaCloud typedef Outcome AddDcdnIpaDomainOutcome; typedef std::future AddDcdnIpaDomainOutcomeCallable; typedef std::function&)> AddDcdnIpaDomainAsyncHandler; + typedef Outcome BatchAddDcdnDomainOutcome; + typedef std::future BatchAddDcdnDomainOutcomeCallable; + typedef std::function&)> BatchAddDcdnDomainAsyncHandler; typedef Outcome BatchDeleteDcdnDomainConfigsOutcome; typedef std::future BatchDeleteDcdnDomainConfigsOutcomeCallable; typedef std::function&)> BatchDeleteDcdnDomainConfigsAsyncHandler; + typedef Outcome BatchSetDcdnDomainCertificateOutcome; + typedef std::future BatchSetDcdnDomainCertificateOutcomeCallable; + typedef std::function&)> BatchSetDcdnDomainCertificateAsyncHandler; typedef Outcome BatchSetDcdnDomainConfigsOutcome; typedef std::future BatchSetDcdnDomainConfigsOutcomeCallable; typedef std::function&)> BatchSetDcdnDomainConfigsAsyncHandler; @@ -477,9 +487,15 @@ namespace AlibabaCloud AddDcdnIpaDomainOutcome addDcdnIpaDomain(const Model::AddDcdnIpaDomainRequest &request)const; void addDcdnIpaDomainAsync(const Model::AddDcdnIpaDomainRequest& request, const AddDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddDcdnIpaDomainOutcomeCallable addDcdnIpaDomainCallable(const Model::AddDcdnIpaDomainRequest& request) const; + BatchAddDcdnDomainOutcome batchAddDcdnDomain(const Model::BatchAddDcdnDomainRequest &request)const; + void batchAddDcdnDomainAsync(const Model::BatchAddDcdnDomainRequest& request, const BatchAddDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchAddDcdnDomainOutcomeCallable batchAddDcdnDomainCallable(const Model::BatchAddDcdnDomainRequest& request) const; BatchDeleteDcdnDomainConfigsOutcome batchDeleteDcdnDomainConfigs(const Model::BatchDeleteDcdnDomainConfigsRequest &request)const; void batchDeleteDcdnDomainConfigsAsync(const Model::BatchDeleteDcdnDomainConfigsRequest& request, const BatchDeleteDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchDeleteDcdnDomainConfigsOutcomeCallable batchDeleteDcdnDomainConfigsCallable(const Model::BatchDeleteDcdnDomainConfigsRequest& request) const; + BatchSetDcdnDomainCertificateOutcome batchSetDcdnDomainCertificate(const Model::BatchSetDcdnDomainCertificateRequest &request)const; + void batchSetDcdnDomainCertificateAsync(const Model::BatchSetDcdnDomainCertificateRequest& request, const BatchSetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchSetDcdnDomainCertificateOutcomeCallable batchSetDcdnDomainCertificateCallable(const Model::BatchSetDcdnDomainCertificateRequest& request) const; BatchSetDcdnDomainConfigsOutcome batchSetDcdnDomainConfigs(const Model::BatchSetDcdnDomainConfigsRequest &request)const; void batchSetDcdnDomainConfigsAsync(const Model::BatchSetDcdnDomainConfigsRequest& request, const BatchSetDcdnDomainConfigsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchSetDcdnDomainConfigsOutcomeCallable batchSetDcdnDomainConfigsCallable(const Model::BatchSetDcdnDomainConfigsRequest& request) const; diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h b/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h new file mode 100644 index 000000000..b19a05557 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchAddDcdnDomainRequest : public RpcServiceRequest + { + + public: + BatchAddDcdnDomainRequest(); + ~BatchAddDcdnDomainRequest(); + + std::string getSources()const; + void setSources(const std::string& sources); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getScope()const; + void setScope(const std::string& scope); + std::string getTopLevelDomain()const; + void setTopLevelDomain(const std::string& topLevelDomain); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getCheckUrl()const; + void setCheckUrl(const std::string& checkUrl); + + private: + std::string sources_; + std::string resourceGroupId_; + std::string securityToken_; + std::string scope_; + std::string topLevelDomain_; + std::string ownerAccount_; + std::string domainName_; + long ownerId_; + std::string checkUrl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h b/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h new file mode 100644 index 000000000..8a9d45370 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchAddDcdnDomainResult.h @@ -0,0 +1,49 @@ +/* + * 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_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchAddDcdnDomainResult : public ServiceResult + { + public: + + + BatchAddDcdnDomainResult(); + explicit BatchAddDcdnDomainResult(const std::string &payload); + ~BatchAddDcdnDomainResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHADDDCDNDOMAINRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h new file mode 100644 index 000000000..2f8a99172 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h @@ -0,0 +1,72 @@ +/* + * 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_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnDomainCertificateRequest : public RpcServiceRequest + { + + public: + BatchSetDcdnDomainCertificateRequest(); + ~BatchSetDcdnDomainCertificateRequest(); + + std::string getSSLProtocol()const; + void setSSLProtocol(const std::string& sSLProtocol); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getCertType()const; + void setCertType(const std::string& certType); + std::string getSSLPri()const; + void setSSLPri(const std::string& sSLPri); + std::string getCertName()const; + void setCertName(const std::string& certName); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getSSLPub()const; + void setSSLPub(const std::string& sSLPub); + std::string getRegion()const; + void setRegion(const std::string& region); + + private: + std::string sSLProtocol_; + std::string securityToken_; + std::string certType_; + std::string sSLPri_; + std::string certName_; + std::string domainName_; + long ownerId_; + std::string sSLPub_; + std::string region_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h new file mode 100644 index 000000000..89cafddb3 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateResult.h @@ -0,0 +1,49 @@ +/* + * 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_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT BatchSetDcdnDomainCertificateResult : public ServiceResult + { + public: + + + BatchSetDcdnDomainCertificateResult(); + explicit BatchSetDcdnDomainCertificateResult(const std::string &payload); + ~BatchSetDcdnDomainCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_BATCHSETDCDNDOMAINCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/TagDcdnResourcesRequest.h b/dcdn/include/alibabacloud/dcdn/model/TagDcdnResourcesRequest.h index f5347c0a7..18b2297a6 100644 --- a/dcdn/include/alibabacloud/dcdn/model/TagDcdnResourcesRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/TagDcdnResourcesRequest.h @@ -41,8 +41,6 @@ namespace AlibabaCloud TagDcdnResourcesRequest(); ~TagDcdnResourcesRequest(); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); std::vector getTag()const; void setTag(const std::vector& tag); std::vector getResourceId()const; @@ -53,7 +51,6 @@ namespace AlibabaCloud void setResourceType(const std::string& resourceType); private: - std::string regionId_; std::vector tag_; std::vector resourceId_; long ownerId_; diff --git a/dcdn/include/alibabacloud/dcdn/model/UntagDcdnResourcesRequest.h b/dcdn/include/alibabacloud/dcdn/model/UntagDcdnResourcesRequest.h index ab46acfea..a02b83a0f 100644 --- a/dcdn/include/alibabacloud/dcdn/model/UntagDcdnResourcesRequest.h +++ b/dcdn/include/alibabacloud/dcdn/model/UntagDcdnResourcesRequest.h @@ -35,8 +35,8 @@ namespace AlibabaCloud UntagDcdnResourcesRequest(); ~UntagDcdnResourcesRequest(); - std::string getRegionId()const; - void setRegionId(const std::string& regionId); + bool getAll()const; + void setAll(bool all); std::vector getResourceId()const; void setResourceId(const std::vector& resourceId); long getOwnerId()const; @@ -47,7 +47,7 @@ namespace AlibabaCloud void setTagKey(const std::vector& tagKey); private: - std::string regionId_; + bool all_; std::vector resourceId_; long ownerId_; std::string resourceType_; diff --git a/dcdn/src/DcdnClient.cc b/dcdn/src/DcdnClient.cc index 2944b5a3e..a32710059 100644 --- a/dcdn/src/DcdnClient.cc +++ b/dcdn/src/DcdnClient.cc @@ -123,6 +123,42 @@ DcdnClient::AddDcdnIpaDomainOutcomeCallable DcdnClient::addDcdnIpaDomainCallable return task->get_future(); } +DcdnClient::BatchAddDcdnDomainOutcome DcdnClient::batchAddDcdnDomain(const BatchAddDcdnDomainRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchAddDcdnDomainOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchAddDcdnDomainOutcome(BatchAddDcdnDomainResult(outcome.result())); + else + return BatchAddDcdnDomainOutcome(outcome.error()); +} + +void DcdnClient::batchAddDcdnDomainAsync(const BatchAddDcdnDomainRequest& request, const BatchAddDcdnDomainAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchAddDcdnDomain(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::BatchAddDcdnDomainOutcomeCallable DcdnClient::batchAddDcdnDomainCallable(const BatchAddDcdnDomainRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchAddDcdnDomain(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::BatchDeleteDcdnDomainConfigsOutcome DcdnClient::batchDeleteDcdnDomainConfigs(const BatchDeleteDcdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +195,42 @@ DcdnClient::BatchDeleteDcdnDomainConfigsOutcomeCallable DcdnClient::batchDeleteD return task->get_future(); } +DcdnClient::BatchSetDcdnDomainCertificateOutcome DcdnClient::batchSetDcdnDomainCertificate(const BatchSetDcdnDomainCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchSetDcdnDomainCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchSetDcdnDomainCertificateOutcome(BatchSetDcdnDomainCertificateResult(outcome.result())); + else + return BatchSetDcdnDomainCertificateOutcome(outcome.error()); +} + +void DcdnClient::batchSetDcdnDomainCertificateAsync(const BatchSetDcdnDomainCertificateRequest& request, const BatchSetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchSetDcdnDomainCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::BatchSetDcdnDomainCertificateOutcomeCallable DcdnClient::batchSetDcdnDomainCertificateCallable(const BatchSetDcdnDomainCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchSetDcdnDomainCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::BatchSetDcdnDomainConfigsOutcome DcdnClient::batchSetDcdnDomainConfigs(const BatchSetDcdnDomainConfigsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dcdn/src/model/BatchAddDcdnDomainRequest.cc b/dcdn/src/model/BatchAddDcdnDomainRequest.cc new file mode 100644 index 000000000..dd18d4b42 --- /dev/null +++ b/dcdn/src/model/BatchAddDcdnDomainRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Dcdn::Model::BatchAddDcdnDomainRequest; + +BatchAddDcdnDomainRequest::BatchAddDcdnDomainRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "BatchAddDcdnDomain") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchAddDcdnDomainRequest::~BatchAddDcdnDomainRequest() +{} + +std::string BatchAddDcdnDomainRequest::getSources()const +{ + return sources_; +} + +void BatchAddDcdnDomainRequest::setSources(const std::string& sources) +{ + sources_ = sources; + setParameter("Sources", sources); +} + +std::string BatchAddDcdnDomainRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void BatchAddDcdnDomainRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string BatchAddDcdnDomainRequest::getSecurityToken()const +{ + return securityToken_; +} + +void BatchAddDcdnDomainRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string BatchAddDcdnDomainRequest::getScope()const +{ + return scope_; +} + +void BatchAddDcdnDomainRequest::setScope(const std::string& scope) +{ + scope_ = scope; + setParameter("Scope", scope); +} + +std::string BatchAddDcdnDomainRequest::getTopLevelDomain()const +{ + return topLevelDomain_; +} + +void BatchAddDcdnDomainRequest::setTopLevelDomain(const std::string& topLevelDomain) +{ + topLevelDomain_ = topLevelDomain; + setParameter("TopLevelDomain", topLevelDomain); +} + +std::string BatchAddDcdnDomainRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void BatchAddDcdnDomainRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string BatchAddDcdnDomainRequest::getDomainName()const +{ + return domainName_; +} + +void BatchAddDcdnDomainRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long BatchAddDcdnDomainRequest::getOwnerId()const +{ + return ownerId_; +} + +void BatchAddDcdnDomainRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BatchAddDcdnDomainRequest::getCheckUrl()const +{ + return checkUrl_; +} + +void BatchAddDcdnDomainRequest::setCheckUrl(const std::string& checkUrl) +{ + checkUrl_ = checkUrl; + setParameter("CheckUrl", checkUrl); +} + diff --git a/dcdn/src/model/BatchAddDcdnDomainResult.cc b/dcdn/src/model/BatchAddDcdnDomainResult.cc new file mode 100644 index 000000000..1bb39c867 --- /dev/null +++ b/dcdn/src/model/BatchAddDcdnDomainResult.cc @@ -0,0 +1,44 @@ +/* + * 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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +BatchAddDcdnDomainResult::BatchAddDcdnDomainResult() : + ServiceResult() +{} + +BatchAddDcdnDomainResult::BatchAddDcdnDomainResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchAddDcdnDomainResult::~BatchAddDcdnDomainResult() +{} + +void BatchAddDcdnDomainResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc b/dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc new file mode 100644 index 000000000..6b34e7b2e --- /dev/null +++ b/dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::Dcdn::Model::BatchSetDcdnDomainCertificateRequest; + +BatchSetDcdnDomainCertificateRequest::BatchSetDcdnDomainCertificateRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "BatchSetDcdnDomainCertificate") +{ + setMethod(HttpRequest::Method::Post); +} + +BatchSetDcdnDomainCertificateRequest::~BatchSetDcdnDomainCertificateRequest() +{} + +std::string BatchSetDcdnDomainCertificateRequest::getSSLProtocol()const +{ + return sSLProtocol_; +} + +void BatchSetDcdnDomainCertificateRequest::setSSLProtocol(const std::string& sSLProtocol) +{ + sSLProtocol_ = sSLProtocol; + setParameter("SSLProtocol", sSLProtocol); +} + +std::string BatchSetDcdnDomainCertificateRequest::getSecurityToken()const +{ + return securityToken_; +} + +void BatchSetDcdnDomainCertificateRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string BatchSetDcdnDomainCertificateRequest::getCertType()const +{ + return certType_; +} + +void BatchSetDcdnDomainCertificateRequest::setCertType(const std::string& certType) +{ + certType_ = certType; + setParameter("CertType", certType); +} + +std::string BatchSetDcdnDomainCertificateRequest::getSSLPri()const +{ + return sSLPri_; +} + +void BatchSetDcdnDomainCertificateRequest::setSSLPri(const std::string& sSLPri) +{ + sSLPri_ = sSLPri; + setParameter("SSLPri", sSLPri); +} + +std::string BatchSetDcdnDomainCertificateRequest::getCertName()const +{ + return certName_; +} + +void BatchSetDcdnDomainCertificateRequest::setCertName(const std::string& certName) +{ + certName_ = certName; + setParameter("CertName", certName); +} + +std::string BatchSetDcdnDomainCertificateRequest::getDomainName()const +{ + return domainName_; +} + +void BatchSetDcdnDomainCertificateRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long BatchSetDcdnDomainCertificateRequest::getOwnerId()const +{ + return ownerId_; +} + +void BatchSetDcdnDomainCertificateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string BatchSetDcdnDomainCertificateRequest::getSSLPub()const +{ + return sSLPub_; +} + +void BatchSetDcdnDomainCertificateRequest::setSSLPub(const std::string& sSLPub) +{ + sSLPub_ = sSLPub; + setParameter("SSLPub", sSLPub); +} + +std::string BatchSetDcdnDomainCertificateRequest::getRegion()const +{ + return region_; +} + +void BatchSetDcdnDomainCertificateRequest::setRegion(const std::string& region) +{ + region_ = region; + setParameter("Region", region); +} + diff --git a/dcdn/src/model/BatchSetDcdnDomainCertificateResult.cc b/dcdn/src/model/BatchSetDcdnDomainCertificateResult.cc new file mode 100644 index 000000000..18586c21c --- /dev/null +++ b/dcdn/src/model/BatchSetDcdnDomainCertificateResult.cc @@ -0,0 +1,44 @@ +/* + * 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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +BatchSetDcdnDomainCertificateResult::BatchSetDcdnDomainCertificateResult() : + ServiceResult() +{} + +BatchSetDcdnDomainCertificateResult::BatchSetDcdnDomainCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchSetDcdnDomainCertificateResult::~BatchSetDcdnDomainCertificateResult() +{} + +void BatchSetDcdnDomainCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/dcdn/src/model/TagDcdnResourcesRequest.cc b/dcdn/src/model/TagDcdnResourcesRequest.cc index 89632844e..507158ca7 100644 --- a/dcdn/src/model/TagDcdnResourcesRequest.cc +++ b/dcdn/src/model/TagDcdnResourcesRequest.cc @@ -27,17 +27,6 @@ TagDcdnResourcesRequest::TagDcdnResourcesRequest() : TagDcdnResourcesRequest::~TagDcdnResourcesRequest() {} -std::string TagDcdnResourcesRequest::getRegionId()const -{ - return regionId_; -} - -void TagDcdnResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - std::vector TagDcdnResourcesRequest::getTag()const { return tag_; diff --git a/dcdn/src/model/UntagDcdnResourcesRequest.cc b/dcdn/src/model/UntagDcdnResourcesRequest.cc index db7a9c89c..0d8d0debb 100644 --- a/dcdn/src/model/UntagDcdnResourcesRequest.cc +++ b/dcdn/src/model/UntagDcdnResourcesRequest.cc @@ -27,15 +27,15 @@ UntagDcdnResourcesRequest::UntagDcdnResourcesRequest() : UntagDcdnResourcesRequest::~UntagDcdnResourcesRequest() {} -std::string UntagDcdnResourcesRequest::getRegionId()const +bool UntagDcdnResourcesRequest::getAll()const { - return regionId_; + return all_; } -void UntagDcdnResourcesRequest::setRegionId(const std::string& regionId) +void UntagDcdnResourcesRequest::setAll(bool all) { - regionId_ = regionId; - setParameter("RegionId", regionId); + all_ = all; + setParameter("All", all ? "true" : "false"); } std::vector UntagDcdnResourcesRequest::getResourceId()const