From d704ed0f337fea2d65fab300e061d37745d868dc Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 16 Oct 2020 01:38:46 +0000 Subject: [PATCH] Update cert API. --- CHANGELOG | 3 + dcdn/CMakeLists.txt | 20 ++- dcdn/include/alibabacloud/dcdn/DcdnClient.h | 32 ++++ ...eateDcdnCertificateSigningRequestRequest.h | 72 +++++++++ ...reateDcdnCertificateSigningRequestResult.h | 55 +++++++ .../model/DescribeDcdnVerifyContentRequest.h | 51 +++++++ .../model/DescribeDcdnVerifyContentResult.h | 51 +++++++ .../SetDcdnDomainCSRCertificateRequest.h | 54 +++++++ .../model/SetDcdnDomainCSRCertificateResult.h | 49 ++++++ .../dcdn/model/VerifyDcdnDomainOwnerRequest.h | 54 +++++++ .../dcdn/model/VerifyDcdnDomainOwnerResult.h | 51 +++++++ dcdn/src/DcdnClient.cc | 144 ++++++++++++++++++ ...ateDcdnCertificateSigningRequestRequest.cc | 128 ++++++++++++++++ ...eateDcdnCertificateSigningRequestResult.cc | 65 ++++++++ .../model/DescribeDcdnVerifyContentRequest.cc | 51 +++++++ .../model/DescribeDcdnVerifyContentResult.cc | 51 +++++++ .../SetDcdnDomainCSRCertificateRequest.cc | 62 ++++++++ .../SetDcdnDomainCSRCertificateResult.cc | 44 ++++++ .../src/model/VerifyDcdnDomainOwnerRequest.cc | 62 ++++++++ dcdn/src/model/VerifyDcdnDomainOwnerResult.cc | 51 +++++++ 20 files changed, 1148 insertions(+), 2 deletions(-) create mode 100644 dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h create mode 100644 dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.h create mode 100644 dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.cc create mode 100644 dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc create mode 100644 dcdn/src/model/DescribeDcdnVerifyContentRequest.cc create mode 100644 dcdn/src/model/DescribeDcdnVerifyContentResult.cc create mode 100644 dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc create mode 100644 dcdn/src/model/SetDcdnDomainCSRCertificateResult.cc create mode 100644 dcdn/src/model/VerifyDcdnDomainOwnerRequest.cc create mode 100644 dcdn/src/model/VerifyDcdnDomainOwnerResult.cc diff --git a/CHANGELOG b/CHANGELOG index 041938f9c..42ad148f2 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-16 Version: patch +- Update cert API. + 2020-10-15 Version: patch - Supported TAG APIs. diff --git a/dcdn/CMakeLists.txt b/dcdn/CMakeLists.txt index b9b5874f0..7b2c365f4 100644 --- a/dcdn/CMakeLists.txt +++ b/dcdn/CMakeLists.txt @@ -39,6 +39,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/BatchStartDcdnDomainResult.h include/alibabacloud/dcdn/model/BatchStopDcdnDomainRequest.h include/alibabacloud/dcdn/model/BatchStopDcdnDomainResult.h + include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h + include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h include/alibabacloud/dcdn/model/DeleteDcdnDomainRequest.h include/alibabacloud/dcdn/model/DeleteDcdnDomainResult.h include/alibabacloud/dcdn/model/DeleteDcdnIpaDomainRequest.h @@ -163,6 +165,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/DescribeDcdnUserResourcePackageResult.h include/alibabacloud/dcdn/model/DescribeDcdnUserTagsRequest.h include/alibabacloud/dcdn/model/DescribeDcdnUserTagsResult.h + include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h + include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.h include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusRequest.h include/alibabacloud/dcdn/model/DescribeUserDcdnIpaStatusResult.h include/alibabacloud/dcdn/model/DescribeUserDcdnStatusRequest.h @@ -179,6 +183,8 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/RollbackDcdnStagingConfigResult.h include/alibabacloud/dcdn/model/SetDcdnConfigOfVersionRequest.h include/alibabacloud/dcdn/model/SetDcdnConfigOfVersionResult.h + include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h + include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h include/alibabacloud/dcdn/model/SetDcdnDomainCertificateRequest.h include/alibabacloud/dcdn/model/SetDcdnDomainCertificateResult.h include/alibabacloud/dcdn/model/SetDcdnDomainStagingConfigRequest.h @@ -198,7 +204,9 @@ set(dcdn_public_header_model include/alibabacloud/dcdn/model/UpdateDcdnDomainRequest.h include/alibabacloud/dcdn/model/UpdateDcdnDomainResult.h include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainRequest.h - include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h ) + include/alibabacloud/dcdn/model/UpdateDcdnIpaDomainResult.h + include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h + include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.h ) set(dcdn_src src/DcdnClient.cc @@ -220,6 +228,8 @@ set(dcdn_src src/model/BatchStartDcdnDomainResult.cc src/model/BatchStopDcdnDomainRequest.cc src/model/BatchStopDcdnDomainResult.cc + src/model/CreateDcdnCertificateSigningRequestRequest.cc + src/model/CreateDcdnCertificateSigningRequestResult.cc src/model/DeleteDcdnDomainRequest.cc src/model/DeleteDcdnDomainResult.cc src/model/DeleteDcdnIpaDomainRequest.cc @@ -344,6 +354,8 @@ set(dcdn_src src/model/DescribeDcdnUserResourcePackageResult.cc src/model/DescribeDcdnUserTagsRequest.cc src/model/DescribeDcdnUserTagsResult.cc + src/model/DescribeDcdnVerifyContentRequest.cc + src/model/DescribeDcdnVerifyContentResult.cc src/model/DescribeUserDcdnIpaStatusRequest.cc src/model/DescribeUserDcdnIpaStatusResult.cc src/model/DescribeUserDcdnStatusRequest.cc @@ -360,6 +372,8 @@ set(dcdn_src src/model/RollbackDcdnStagingConfigResult.cc src/model/SetDcdnConfigOfVersionRequest.cc src/model/SetDcdnConfigOfVersionResult.cc + src/model/SetDcdnDomainCSRCertificateRequest.cc + src/model/SetDcdnDomainCSRCertificateResult.cc src/model/SetDcdnDomainCertificateRequest.cc src/model/SetDcdnDomainCertificateResult.cc src/model/SetDcdnDomainStagingConfigRequest.cc @@ -379,7 +393,9 @@ set(dcdn_src src/model/UpdateDcdnDomainRequest.cc src/model/UpdateDcdnDomainResult.cc src/model/UpdateDcdnIpaDomainRequest.cc - src/model/UpdateDcdnIpaDomainResult.cc ) + src/model/UpdateDcdnIpaDomainResult.cc + src/model/VerifyDcdnDomainOwnerRequest.cc + src/model/VerifyDcdnDomainOwnerResult.cc ) add_library(dcdn ${LIB_TYPE} ${dcdn_public_header} diff --git a/dcdn/include/alibabacloud/dcdn/DcdnClient.h b/dcdn/include/alibabacloud/dcdn/DcdnClient.h index ccf186c5f..039d2d19e 100644 --- a/dcdn/include/alibabacloud/dcdn/DcdnClient.h +++ b/dcdn/include/alibabacloud/dcdn/DcdnClient.h @@ -40,6 +40,8 @@ #include "model/BatchStartDcdnDomainResult.h" #include "model/BatchStopDcdnDomainRequest.h" #include "model/BatchStopDcdnDomainResult.h" +#include "model/CreateDcdnCertificateSigningRequestRequest.h" +#include "model/CreateDcdnCertificateSigningRequestResult.h" #include "model/DeleteDcdnDomainRequest.h" #include "model/DeleteDcdnDomainResult.h" #include "model/DeleteDcdnIpaDomainRequest.h" @@ -164,6 +166,8 @@ #include "model/DescribeDcdnUserResourcePackageResult.h" #include "model/DescribeDcdnUserTagsRequest.h" #include "model/DescribeDcdnUserTagsResult.h" +#include "model/DescribeDcdnVerifyContentRequest.h" +#include "model/DescribeDcdnVerifyContentResult.h" #include "model/DescribeUserDcdnIpaStatusRequest.h" #include "model/DescribeUserDcdnIpaStatusResult.h" #include "model/DescribeUserDcdnStatusRequest.h" @@ -180,6 +184,8 @@ #include "model/RollbackDcdnStagingConfigResult.h" #include "model/SetDcdnConfigOfVersionRequest.h" #include "model/SetDcdnConfigOfVersionResult.h" +#include "model/SetDcdnDomainCSRCertificateRequest.h" +#include "model/SetDcdnDomainCSRCertificateResult.h" #include "model/SetDcdnDomainCertificateRequest.h" #include "model/SetDcdnDomainCertificateResult.h" #include "model/SetDcdnDomainStagingConfigRequest.h" @@ -200,6 +206,8 @@ #include "model/UpdateDcdnDomainResult.h" #include "model/UpdateDcdnIpaDomainRequest.h" #include "model/UpdateDcdnIpaDomainResult.h" +#include "model/VerifyDcdnDomainOwnerRequest.h" +#include "model/VerifyDcdnDomainOwnerResult.h" namespace AlibabaCloud @@ -236,6 +244,9 @@ namespace AlibabaCloud typedef Outcome BatchStopDcdnDomainOutcome; typedef std::future BatchStopDcdnDomainOutcomeCallable; typedef std::function&)> BatchStopDcdnDomainAsyncHandler; + typedef Outcome CreateDcdnCertificateSigningRequestOutcome; + typedef std::future CreateDcdnCertificateSigningRequestOutcomeCallable; + typedef std::function&)> CreateDcdnCertificateSigningRequestAsyncHandler; typedef Outcome DeleteDcdnDomainOutcome; typedef std::future DeleteDcdnDomainOutcomeCallable; typedef std::function&)> DeleteDcdnDomainAsyncHandler; @@ -422,6 +433,9 @@ namespace AlibabaCloud typedef Outcome DescribeDcdnUserTagsOutcome; typedef std::future DescribeDcdnUserTagsOutcomeCallable; typedef std::function&)> DescribeDcdnUserTagsAsyncHandler; + typedef Outcome DescribeDcdnVerifyContentOutcome; + typedef std::future DescribeDcdnVerifyContentOutcomeCallable; + typedef std::function&)> DescribeDcdnVerifyContentAsyncHandler; typedef Outcome DescribeUserDcdnIpaStatusOutcome; typedef std::future DescribeUserDcdnIpaStatusOutcomeCallable; typedef std::function&)> DescribeUserDcdnIpaStatusAsyncHandler; @@ -446,6 +460,9 @@ namespace AlibabaCloud typedef Outcome SetDcdnConfigOfVersionOutcome; typedef std::future SetDcdnConfigOfVersionOutcomeCallable; typedef std::function&)> SetDcdnConfigOfVersionAsyncHandler; + typedef Outcome SetDcdnDomainCSRCertificateOutcome; + typedef std::future SetDcdnDomainCSRCertificateOutcomeCallable; + typedef std::function&)> SetDcdnDomainCSRCertificateAsyncHandler; typedef Outcome SetDcdnDomainCertificateOutcome; typedef std::future SetDcdnDomainCertificateOutcomeCallable; typedef std::function&)> SetDcdnDomainCertificateAsyncHandler; @@ -476,6 +493,9 @@ namespace AlibabaCloud typedef Outcome UpdateDcdnIpaDomainOutcome; typedef std::future UpdateDcdnIpaDomainOutcomeCallable; typedef std::function&)> UpdateDcdnIpaDomainAsyncHandler; + typedef Outcome VerifyDcdnDomainOwnerOutcome; + typedef std::future VerifyDcdnDomainOwnerOutcomeCallable; + typedef std::function&)> VerifyDcdnDomainOwnerAsyncHandler; DcdnClient(const Credentials &credentials, const ClientConfiguration &configuration); DcdnClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -508,6 +528,9 @@ namespace AlibabaCloud BatchStopDcdnDomainOutcome batchStopDcdnDomain(const Model::BatchStopDcdnDomainRequest &request)const; void batchStopDcdnDomainAsync(const Model::BatchStopDcdnDomainRequest& request, const BatchStopDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BatchStopDcdnDomainOutcomeCallable batchStopDcdnDomainCallable(const Model::BatchStopDcdnDomainRequest& request) const; + CreateDcdnCertificateSigningRequestOutcome createDcdnCertificateSigningRequest(const Model::CreateDcdnCertificateSigningRequestRequest &request)const; + void createDcdnCertificateSigningRequestAsync(const Model::CreateDcdnCertificateSigningRequestRequest& request, const CreateDcdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDcdnCertificateSigningRequestOutcomeCallable createDcdnCertificateSigningRequestCallable(const Model::CreateDcdnCertificateSigningRequestRequest& request) const; DeleteDcdnDomainOutcome deleteDcdnDomain(const Model::DeleteDcdnDomainRequest &request)const; void deleteDcdnDomainAsync(const Model::DeleteDcdnDomainRequest& request, const DeleteDcdnDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDcdnDomainOutcomeCallable deleteDcdnDomainCallable(const Model::DeleteDcdnDomainRequest& request) const; @@ -694,6 +717,9 @@ namespace AlibabaCloud DescribeDcdnUserTagsOutcome describeDcdnUserTags(const Model::DescribeDcdnUserTagsRequest &request)const; void describeDcdnUserTagsAsync(const Model::DescribeDcdnUserTagsRequest& request, const DescribeDcdnUserTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDcdnUserTagsOutcomeCallable describeDcdnUserTagsCallable(const Model::DescribeDcdnUserTagsRequest& request) const; + DescribeDcdnVerifyContentOutcome describeDcdnVerifyContent(const Model::DescribeDcdnVerifyContentRequest &request)const; + void describeDcdnVerifyContentAsync(const Model::DescribeDcdnVerifyContentRequest& request, const DescribeDcdnVerifyContentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDcdnVerifyContentOutcomeCallable describeDcdnVerifyContentCallable(const Model::DescribeDcdnVerifyContentRequest& request) const; DescribeUserDcdnIpaStatusOutcome describeUserDcdnIpaStatus(const Model::DescribeUserDcdnIpaStatusRequest &request)const; void describeUserDcdnIpaStatusAsync(const Model::DescribeUserDcdnIpaStatusRequest& request, const DescribeUserDcdnIpaStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserDcdnIpaStatusOutcomeCallable describeUserDcdnIpaStatusCallable(const Model::DescribeUserDcdnIpaStatusRequest& request) const; @@ -718,6 +744,9 @@ namespace AlibabaCloud SetDcdnConfigOfVersionOutcome setDcdnConfigOfVersion(const Model::SetDcdnConfigOfVersionRequest &request)const; void setDcdnConfigOfVersionAsync(const Model::SetDcdnConfigOfVersionRequest& request, const SetDcdnConfigOfVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDcdnConfigOfVersionOutcomeCallable setDcdnConfigOfVersionCallable(const Model::SetDcdnConfigOfVersionRequest& request) const; + SetDcdnDomainCSRCertificateOutcome setDcdnDomainCSRCertificate(const Model::SetDcdnDomainCSRCertificateRequest &request)const; + void setDcdnDomainCSRCertificateAsync(const Model::SetDcdnDomainCSRCertificateRequest& request, const SetDcdnDomainCSRCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDcdnDomainCSRCertificateOutcomeCallable setDcdnDomainCSRCertificateCallable(const Model::SetDcdnDomainCSRCertificateRequest& request) const; SetDcdnDomainCertificateOutcome setDcdnDomainCertificate(const Model::SetDcdnDomainCertificateRequest &request)const; void setDcdnDomainCertificateAsync(const Model::SetDcdnDomainCertificateRequest& request, const SetDcdnDomainCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetDcdnDomainCertificateOutcomeCallable setDcdnDomainCertificateCallable(const Model::SetDcdnDomainCertificateRequest& request) const; @@ -748,6 +777,9 @@ namespace AlibabaCloud UpdateDcdnIpaDomainOutcome updateDcdnIpaDomain(const Model::UpdateDcdnIpaDomainRequest &request)const; void updateDcdnIpaDomainAsync(const Model::UpdateDcdnIpaDomainRequest& request, const UpdateDcdnIpaDomainAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDcdnIpaDomainOutcomeCallable updateDcdnIpaDomainCallable(const Model::UpdateDcdnIpaDomainRequest& request) const; + VerifyDcdnDomainOwnerOutcome verifyDcdnDomainOwner(const Model::VerifyDcdnDomainOwnerRequest &request)const; + void verifyDcdnDomainOwnerAsync(const Model::VerifyDcdnDomainOwnerRequest& request, const VerifyDcdnDomainOwnerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + VerifyDcdnDomainOwnerOutcomeCallable verifyDcdnDomainOwnerCallable(const Model::VerifyDcdnDomainOwnerRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h b/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.h new file mode 100644 index 000000000..0112d4ca4 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestRequest.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_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT CreateDcdnCertificateSigningRequestRequest : public RpcServiceRequest + { + + public: + CreateDcdnCertificateSigningRequestRequest(); + ~CreateDcdnCertificateSigningRequestRequest(); + + std::string getCountry()const; + void setCountry(const std::string& country); + std::string getCity()const; + void setCity(const std::string& city); + std::string getCommonName()const; + void setCommonName(const std::string& commonName); + std::string getState()const; + void setState(const std::string& state); + std::string getEmail()const; + void setEmail(const std::string& email); + std::string getSANs()const; + void setSANs(const std::string& sANs); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getOrganization()const; + void setOrganization(const std::string& organization); + std::string getOrganizationUnit()const; + void setOrganizationUnit(const std::string& organizationUnit); + + private: + std::string country_; + std::string city_; + std::string commonName_; + std::string state_; + std::string email_; + std::string sANs_; + long ownerId_; + std::string organization_; + std::string organizationUnit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h b/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h new file mode 100644 index 000000000..a0d31b2c2 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/CreateDcdnCertificateSigningRequestResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT CreateDcdnCertificateSigningRequestResult : public ServiceResult + { + public: + + + CreateDcdnCertificateSigningRequestResult(); + explicit CreateDcdnCertificateSigningRequestResult(const std::string &payload); + ~CreateDcdnCertificateSigningRequestResult(); + std::string getCsr()const; + std::string getPubMd5()const; + std::string getCommonName()const; + + protected: + void parse(const std::string &payload); + private: + std::string csr_; + std::string pubMd5_; + std::string commonName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_CREATEDCDNCERTIFICATESIGNINGREQUESTRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.h new file mode 100644 index 000000000..afbf02376 --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentRequest.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_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnVerifyContentRequest : public RpcServiceRequest + { + + public: + DescribeDcdnVerifyContentRequest(); + ~DescribeDcdnVerifyContentRequest(); + + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.h b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.h new file mode 100644 index 000000000..9c303f2ef --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/DescribeDcdnVerifyContentResult.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_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT DescribeDcdnVerifyContentResult : public ServiceResult + { + public: + + + DescribeDcdnVerifyContentResult(); + explicit DescribeDcdnVerifyContentResult(const std::string &payload); + ~DescribeDcdnVerifyContentResult(); + std::string getContent()const; + + protected: + void parse(const std::string &payload); + private: + std::string content_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_DESCRIBEDCDNVERIFYCONTENTRESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h new file mode 100644 index 000000000..9b8435aec --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateRequest.h @@ -0,0 +1,54 @@ +/* + * 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_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT SetDcdnDomainCSRCertificateRequest : public RpcServiceRequest + { + + public: + SetDcdnDomainCSRCertificateRequest(); + ~SetDcdnDomainCSRCertificateRequest(); + + std::string getServerCertificate()const; + void setServerCertificate(const std::string& serverCertificate); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string serverCertificate_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.h new file mode 100644 index 000000000..63d9fb9be --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/SetDcdnDomainCSRCertificateResult.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_SETDCDNDOMAINCSRCERTIFICATERESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT SetDcdnDomainCSRCertificateResult : public ServiceResult + { + public: + + + SetDcdnDomainCSRCertificateResult(); + explicit SetDcdnDomainCSRCertificateResult(const std::string &payload); + ~SetDcdnDomainCSRCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_SETDCDNDOMAINCSRCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h b/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h new file mode 100644 index 000000000..b75a3002b --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerRequest.h @@ -0,0 +1,54 @@ +/* + * 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_VERIFYDCDNDOMAINOWNERREQUEST_H_ +#define ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT VerifyDcdnDomainOwnerRequest : public RpcServiceRequest + { + + public: + VerifyDcdnDomainOwnerRequest(); + ~VerifyDcdnDomainOwnerRequest(); + + std::string getVerifyType()const; + void setVerifyType(const std::string& verifyType); + std::string getDomainName()const; + void setDomainName(const std::string& domainName); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + std::string verifyType_; + std::string domainName_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERREQUEST_H_ \ No newline at end of file diff --git a/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.h b/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.h new file mode 100644 index 000000000..6537256ee --- /dev/null +++ b/dcdn/include/alibabacloud/dcdn/model/VerifyDcdnDomainOwnerResult.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_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_ +#define ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dcdn + { + namespace Model + { + class ALIBABACLOUD_DCDN_EXPORT VerifyDcdnDomainOwnerResult : public ServiceResult + { + public: + + + VerifyDcdnDomainOwnerResult(); + explicit VerifyDcdnDomainOwnerResult(const std::string &payload); + ~VerifyDcdnDomainOwnerResult(); + std::string getContent()const; + + protected: + void parse(const std::string &payload); + private: + std::string content_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DCDN_MODEL_VERIFYDCDNDOMAINOWNERRESULT_H_ \ No newline at end of file diff --git a/dcdn/src/DcdnClient.cc b/dcdn/src/DcdnClient.cc index a32710059..7a867327d 100644 --- a/dcdn/src/DcdnClient.cc +++ b/dcdn/src/DcdnClient.cc @@ -375,6 +375,42 @@ DcdnClient::BatchStopDcdnDomainOutcomeCallable DcdnClient::batchStopDcdnDomainCa return task->get_future(); } +DcdnClient::CreateDcdnCertificateSigningRequestOutcome DcdnClient::createDcdnCertificateSigningRequest(const CreateDcdnCertificateSigningRequestRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDcdnCertificateSigningRequestOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDcdnCertificateSigningRequestOutcome(CreateDcdnCertificateSigningRequestResult(outcome.result())); + else + return CreateDcdnCertificateSigningRequestOutcome(outcome.error()); +} + +void DcdnClient::createDcdnCertificateSigningRequestAsync(const CreateDcdnCertificateSigningRequestRequest& request, const CreateDcdnCertificateSigningRequestAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDcdnCertificateSigningRequest(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::CreateDcdnCertificateSigningRequestOutcomeCallable DcdnClient::createDcdnCertificateSigningRequestCallable(const CreateDcdnCertificateSigningRequestRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDcdnCertificateSigningRequest(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DeleteDcdnDomainOutcome DcdnClient::deleteDcdnDomain(const DeleteDcdnDomainRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +2643,42 @@ DcdnClient::DescribeDcdnUserTagsOutcomeCallable DcdnClient::describeDcdnUserTags return task->get_future(); } +DcdnClient::DescribeDcdnVerifyContentOutcome DcdnClient::describeDcdnVerifyContent(const DescribeDcdnVerifyContentRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDcdnVerifyContentOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDcdnVerifyContentOutcome(DescribeDcdnVerifyContentResult(outcome.result())); + else + return DescribeDcdnVerifyContentOutcome(outcome.error()); +} + +void DcdnClient::describeDcdnVerifyContentAsync(const DescribeDcdnVerifyContentRequest& request, const DescribeDcdnVerifyContentAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDcdnVerifyContent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::DescribeDcdnVerifyContentOutcomeCallable DcdnClient::describeDcdnVerifyContentCallable(const DescribeDcdnVerifyContentRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDcdnVerifyContent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::DescribeUserDcdnIpaStatusOutcome DcdnClient::describeUserDcdnIpaStatus(const DescribeUserDcdnIpaStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2895,6 +2967,42 @@ DcdnClient::SetDcdnConfigOfVersionOutcomeCallable DcdnClient::setDcdnConfigOfVer return task->get_future(); } +DcdnClient::SetDcdnDomainCSRCertificateOutcome DcdnClient::setDcdnDomainCSRCertificate(const SetDcdnDomainCSRCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDcdnDomainCSRCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDcdnDomainCSRCertificateOutcome(SetDcdnDomainCSRCertificateResult(outcome.result())); + else + return SetDcdnDomainCSRCertificateOutcome(outcome.error()); +} + +void DcdnClient::setDcdnDomainCSRCertificateAsync(const SetDcdnDomainCSRCertificateRequest& request, const SetDcdnDomainCSRCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDcdnDomainCSRCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::SetDcdnDomainCSRCertificateOutcomeCallable DcdnClient::setDcdnDomainCSRCertificateCallable(const SetDcdnDomainCSRCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDcdnDomainCSRCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + DcdnClient::SetDcdnDomainCertificateOutcome DcdnClient::setDcdnDomainCertificate(const SetDcdnDomainCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3255,3 +3363,39 @@ DcdnClient::UpdateDcdnIpaDomainOutcomeCallable DcdnClient::updateDcdnIpaDomainCa return task->get_future(); } +DcdnClient::VerifyDcdnDomainOwnerOutcome DcdnClient::verifyDcdnDomainOwner(const VerifyDcdnDomainOwnerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return VerifyDcdnDomainOwnerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return VerifyDcdnDomainOwnerOutcome(VerifyDcdnDomainOwnerResult(outcome.result())); + else + return VerifyDcdnDomainOwnerOutcome(outcome.error()); +} + +void DcdnClient::verifyDcdnDomainOwnerAsync(const VerifyDcdnDomainOwnerRequest& request, const VerifyDcdnDomainOwnerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, verifyDcdnDomainOwner(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +DcdnClient::VerifyDcdnDomainOwnerOutcomeCallable DcdnClient::verifyDcdnDomainOwnerCallable(const VerifyDcdnDomainOwnerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->verifyDcdnDomainOwner(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.cc b/dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.cc new file mode 100644 index 000000000..1b22d24d6 --- /dev/null +++ b/dcdn/src/model/CreateDcdnCertificateSigningRequestRequest.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::CreateDcdnCertificateSigningRequestRequest; + +CreateDcdnCertificateSigningRequestRequest::CreateDcdnCertificateSigningRequestRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "CreateDcdnCertificateSigningRequest") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateDcdnCertificateSigningRequestRequest::~CreateDcdnCertificateSigningRequestRequest() +{} + +std::string CreateDcdnCertificateSigningRequestRequest::getCountry()const +{ + return country_; +} + +void CreateDcdnCertificateSigningRequestRequest::setCountry(const std::string& country) +{ + country_ = country; + setParameter("Country", country); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getCity()const +{ + return city_; +} + +void CreateDcdnCertificateSigningRequestRequest::setCity(const std::string& city) +{ + city_ = city; + setParameter("City", city); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getCommonName()const +{ + return commonName_; +} + +void CreateDcdnCertificateSigningRequestRequest::setCommonName(const std::string& commonName) +{ + commonName_ = commonName; + setParameter("CommonName", commonName); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getState()const +{ + return state_; +} + +void CreateDcdnCertificateSigningRequestRequest::setState(const std::string& state) +{ + state_ = state; + setParameter("State", state); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getEmail()const +{ + return email_; +} + +void CreateDcdnCertificateSigningRequestRequest::setEmail(const std::string& email) +{ + email_ = email; + setParameter("Email", email); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getSANs()const +{ + return sANs_; +} + +void CreateDcdnCertificateSigningRequestRequest::setSANs(const std::string& sANs) +{ + sANs_ = sANs; + setParameter("SANs", sANs); +} + +long CreateDcdnCertificateSigningRequestRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDcdnCertificateSigningRequestRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getOrganization()const +{ + return organization_; +} + +void CreateDcdnCertificateSigningRequestRequest::setOrganization(const std::string& organization) +{ + organization_ = organization; + setParameter("Organization", organization); +} + +std::string CreateDcdnCertificateSigningRequestRequest::getOrganizationUnit()const +{ + return organizationUnit_; +} + +void CreateDcdnCertificateSigningRequestRequest::setOrganizationUnit(const std::string& organizationUnit) +{ + organizationUnit_ = organizationUnit; + setParameter("OrganizationUnit", organizationUnit); +} + diff --git a/dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc b/dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc new file mode 100644 index 000000000..87046f01c --- /dev/null +++ b/dcdn/src/model/CreateDcdnCertificateSigningRequestResult.cc @@ -0,0 +1,65 @@ +/* + * 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; + +CreateDcdnCertificateSigningRequestResult::CreateDcdnCertificateSigningRequestResult() : + ServiceResult() +{} + +CreateDcdnCertificateSigningRequestResult::CreateDcdnCertificateSigningRequestResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDcdnCertificateSigningRequestResult::~CreateDcdnCertificateSigningRequestResult() +{} + +void CreateDcdnCertificateSigningRequestResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CommonName"].isNull()) + commonName_ = value["CommonName"].asString(); + if(!value["Csr"].isNull()) + csr_ = value["Csr"].asString(); + if(!value["PubMd5"].isNull()) + pubMd5_ = value["PubMd5"].asString(); + +} + +std::string CreateDcdnCertificateSigningRequestResult::getCsr()const +{ + return csr_; +} + +std::string CreateDcdnCertificateSigningRequestResult::getPubMd5()const +{ + return pubMd5_; +} + +std::string CreateDcdnCertificateSigningRequestResult::getCommonName()const +{ + return commonName_; +} + diff --git a/dcdn/src/model/DescribeDcdnVerifyContentRequest.cc b/dcdn/src/model/DescribeDcdnVerifyContentRequest.cc new file mode 100644 index 000000000..d5b57d321 --- /dev/null +++ b/dcdn/src/model/DescribeDcdnVerifyContentRequest.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 + +using AlibabaCloud::Dcdn::Model::DescribeDcdnVerifyContentRequest; + +DescribeDcdnVerifyContentRequest::DescribeDcdnVerifyContentRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "DescribeDcdnVerifyContent") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDcdnVerifyContentRequest::~DescribeDcdnVerifyContentRequest() +{} + +std::string DescribeDcdnVerifyContentRequest::getDomainName()const +{ + return domainName_; +} + +void DescribeDcdnVerifyContentRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long DescribeDcdnVerifyContentRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDcdnVerifyContentRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/DescribeDcdnVerifyContentResult.cc b/dcdn/src/model/DescribeDcdnVerifyContentResult.cc new file mode 100644 index 000000000..f3a4ecdcc --- /dev/null +++ b/dcdn/src/model/DescribeDcdnVerifyContentResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +DescribeDcdnVerifyContentResult::DescribeDcdnVerifyContentResult() : + ServiceResult() +{} + +DescribeDcdnVerifyContentResult::DescribeDcdnVerifyContentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDcdnVerifyContentResult::~DescribeDcdnVerifyContentResult() +{} + +void DescribeDcdnVerifyContentResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Content"].isNull()) + content_ = value["Content"].asString(); + +} + +std::string DescribeDcdnVerifyContentResult::getContent()const +{ + return content_; +} + diff --git a/dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc b/dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc new file mode 100644 index 000000000..a5da0a175 --- /dev/null +++ b/dcdn/src/model/SetDcdnDomainCSRCertificateRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::SetDcdnDomainCSRCertificateRequest; + +SetDcdnDomainCSRCertificateRequest::SetDcdnDomainCSRCertificateRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "SetDcdnDomainCSRCertificate") +{ + setMethod(HttpRequest::Method::Post); +} + +SetDcdnDomainCSRCertificateRequest::~SetDcdnDomainCSRCertificateRequest() +{} + +std::string SetDcdnDomainCSRCertificateRequest::getServerCertificate()const +{ + return serverCertificate_; +} + +void SetDcdnDomainCSRCertificateRequest::setServerCertificate(const std::string& serverCertificate) +{ + serverCertificate_ = serverCertificate; + setParameter("ServerCertificate", serverCertificate); +} + +std::string SetDcdnDomainCSRCertificateRequest::getDomainName()const +{ + return domainName_; +} + +void SetDcdnDomainCSRCertificateRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long SetDcdnDomainCSRCertificateRequest::getOwnerId()const +{ + return ownerId_; +} + +void SetDcdnDomainCSRCertificateRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/SetDcdnDomainCSRCertificateResult.cc b/dcdn/src/model/SetDcdnDomainCSRCertificateResult.cc new file mode 100644 index 000000000..f4ed4ce6a --- /dev/null +++ b/dcdn/src/model/SetDcdnDomainCSRCertificateResult.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; + +SetDcdnDomainCSRCertificateResult::SetDcdnDomainCSRCertificateResult() : + ServiceResult() +{} + +SetDcdnDomainCSRCertificateResult::SetDcdnDomainCSRCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDcdnDomainCSRCertificateResult::~SetDcdnDomainCSRCertificateResult() +{} + +void SetDcdnDomainCSRCertificateResult::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/VerifyDcdnDomainOwnerRequest.cc b/dcdn/src/model/VerifyDcdnDomainOwnerRequest.cc new file mode 100644 index 000000000..19abfd2a9 --- /dev/null +++ b/dcdn/src/model/VerifyDcdnDomainOwnerRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::VerifyDcdnDomainOwnerRequest; + +VerifyDcdnDomainOwnerRequest::VerifyDcdnDomainOwnerRequest() : + RpcServiceRequest("dcdn", "2018-01-15", "VerifyDcdnDomainOwner") +{ + setMethod(HttpRequest::Method::Post); +} + +VerifyDcdnDomainOwnerRequest::~VerifyDcdnDomainOwnerRequest() +{} + +std::string VerifyDcdnDomainOwnerRequest::getVerifyType()const +{ + return verifyType_; +} + +void VerifyDcdnDomainOwnerRequest::setVerifyType(const std::string& verifyType) +{ + verifyType_ = verifyType; + setParameter("VerifyType", verifyType); +} + +std::string VerifyDcdnDomainOwnerRequest::getDomainName()const +{ + return domainName_; +} + +void VerifyDcdnDomainOwnerRequest::setDomainName(const std::string& domainName) +{ + domainName_ = domainName; + setParameter("DomainName", domainName); +} + +long VerifyDcdnDomainOwnerRequest::getOwnerId()const +{ + return ownerId_; +} + +void VerifyDcdnDomainOwnerRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/dcdn/src/model/VerifyDcdnDomainOwnerResult.cc b/dcdn/src/model/VerifyDcdnDomainOwnerResult.cc new file mode 100644 index 000000000..794f72c7f --- /dev/null +++ b/dcdn/src/model/VerifyDcdnDomainOwnerResult.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::Dcdn; +using namespace AlibabaCloud::Dcdn::Model; + +VerifyDcdnDomainOwnerResult::VerifyDcdnDomainOwnerResult() : + ServiceResult() +{} + +VerifyDcdnDomainOwnerResult::VerifyDcdnDomainOwnerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +VerifyDcdnDomainOwnerResult::~VerifyDcdnDomainOwnerResult() +{} + +void VerifyDcdnDomainOwnerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Content"].isNull()) + content_ = value["Content"].asString(); + +} + +std::string VerifyDcdnDomainOwnerResult::getContent()const +{ + return content_; +} +