Add SetCdnDomainSMCertificate.
This commit is contained in:
62
cdn/src/model/DescribeCdnSMCertificateDetailRequest.cc
Normal file
62
cdn/src/model/DescribeCdnSMCertificateDetailRequest.cc
Normal file
@@ -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 <alibabacloud/cdn/model/DescribeCdnSMCertificateDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnSMCertificateDetailRequest;
|
||||
|
||||
DescribeCdnSMCertificateDetailRequest::DescribeCdnSMCertificateDetailRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnSMCertificateDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnSMCertificateDetailRequest::~DescribeCdnSMCertificateDetailRequest()
|
||||
{}
|
||||
|
||||
long DescribeCdnSMCertificateDetailRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateDetailRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateDetailRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailRequest::getCertIdentifier()const
|
||||
{
|
||||
return certIdentifier_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateDetailRequest::setCertIdentifier(const std::string& certIdentifier)
|
||||
{
|
||||
certIdentifier_ = certIdentifier;
|
||||
setParameter("CertIdentifier", certIdentifier);
|
||||
}
|
||||
|
||||
72
cdn/src/model/DescribeCdnSMCertificateDetailResult.cc
Normal file
72
cdn/src/model/DescribeCdnSMCertificateDetailResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnSMCertificateDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnSMCertificateDetailResult::DescribeCdnSMCertificateDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnSMCertificateDetailResult::DescribeCdnSMCertificateDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnSMCertificateDetailResult::~DescribeCdnSMCertificateDetailResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnSMCertificateDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SignCertificate"].isNull())
|
||||
signCertificate_ = value["SignCertificate"].asString();
|
||||
if(!value["EncryptCertificate"].isNull())
|
||||
encryptCertificate_ = value["EncryptCertificate"].asString();
|
||||
if(!value["CertIdentifier"].isNull())
|
||||
certIdentifier_ = value["CertIdentifier"].asString();
|
||||
if(!value["CertName"].isNull())
|
||||
certName_ = value["CertName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertIdentifier()const
|
||||
{
|
||||
return certIdentifier_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getSignCertificate()const
|
||||
{
|
||||
return signCertificate_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateDetailResult::getEncryptCertificate()const
|
||||
{
|
||||
return encryptCertificate_;
|
||||
}
|
||||
|
||||
62
cdn/src/model/DescribeCdnSMCertificateListRequest.cc
Normal file
62
cdn/src/model/DescribeCdnSMCertificateListRequest.cc
Normal file
@@ -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 <alibabacloud/cdn/model/DescribeCdnSMCertificateListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnSMCertificateListRequest;
|
||||
|
||||
DescribeCdnSMCertificateListRequest::DescribeCdnSMCertificateListRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "DescribeCdnSMCertificateList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCdnSMCertificateListRequest::~DescribeCdnSMCertificateListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnSMCertificateListRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateListRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeCdnSMCertificateListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCdnSMCertificateListRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeCdnSMCertificateListRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
66
cdn/src/model/DescribeCdnSMCertificateListResult.cc
Normal file
66
cdn/src/model/DescribeCdnSMCertificateListResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/cdn/model/DescribeCdnSMCertificateListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnSMCertificateListResult::DescribeCdnSMCertificateListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnSMCertificateListResult::DescribeCdnSMCertificateListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnSMCertificateListResult::~DescribeCdnSMCertificateListResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnSMCertificateListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto certificateListModelNode = value["CertificateListModel"];
|
||||
if(!certificateListModelNode["Count"].isNull())
|
||||
certificateListModel_.count = std::stoi(certificateListModelNode["Count"].asString());
|
||||
auto allCertListNode = certificateListModelNode["CertList"]["Cert"];
|
||||
for (auto certificateListModelNodeCertListCert : allCertListNode)
|
||||
{
|
||||
CertificateListModel::Cert certObject;
|
||||
if(!certificateListModelNodeCertListCert["CertName"].isNull())
|
||||
certObject.certName = certificateListModelNodeCertListCert["CertName"].asString();
|
||||
if(!certificateListModelNodeCertListCert["CertIdentifier"].isNull())
|
||||
certObject.certIdentifier = certificateListModelNodeCertListCert["CertIdentifier"].asString();
|
||||
if(!certificateListModelNodeCertListCert["Common"].isNull())
|
||||
certObject.common = certificateListModelNodeCertListCert["Common"].asString();
|
||||
if(!certificateListModelNodeCertListCert["Issuer"].isNull())
|
||||
certObject.issuer = certificateListModelNodeCertListCert["Issuer"].asString();
|
||||
certificateListModel_.certList.push_back(certObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeCdnSMCertificateListResult::CertificateListModel DescribeCdnSMCertificateListResult::getCertificateListModel()const
|
||||
{
|
||||
return certificateListModel_;
|
||||
}
|
||||
|
||||
@@ -49,3 +49,14 @@ void DescribeCdnUserResourcePackageRequest::setSecurityToken(const std::string&
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeCdnUserResourcePackageRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeCdnUserResourcePackageRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
73
cdn/src/model/SetCdnDomainSMCertificateRequest.cc
Normal file
73
cdn/src/model/SetCdnDomainSMCertificateRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/cdn/model/SetCdnDomainSMCertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::SetCdnDomainSMCertificateRequest;
|
||||
|
||||
SetCdnDomainSMCertificateRequest::SetCdnDomainSMCertificateRequest() :
|
||||
RpcServiceRequest("cdn", "2018-05-10", "SetCdnDomainSMCertificate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetCdnDomainSMCertificateRequest::~SetCdnDomainSMCertificateRequest()
|
||||
{}
|
||||
|
||||
std::string SetCdnDomainSMCertificateRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetCdnDomainSMCertificateRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long SetCdnDomainSMCertificateRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void SetCdnDomainSMCertificateRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string SetCdnDomainSMCertificateRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void SetCdnDomainSMCertificateRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string SetCdnDomainSMCertificateRequest::getCertIdentifier()const
|
||||
{
|
||||
return certIdentifier_;
|
||||
}
|
||||
|
||||
void SetCdnDomainSMCertificateRequest::setCertIdentifier(const std::string& certIdentifier)
|
||||
{
|
||||
certIdentifier_ = certIdentifier;
|
||||
setParameter("CertIdentifier", certIdentifier);
|
||||
}
|
||||
|
||||
44
cdn/src/model/SetCdnDomainSMCertificateResult.cc
Normal file
44
cdn/src/model/SetCdnDomainSMCertificateResult.cc
Normal file
@@ -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 <alibabacloud/cdn/model/SetCdnDomainSMCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
SetCdnDomainSMCertificateResult::SetCdnDomainSMCertificateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetCdnDomainSMCertificateResult::SetCdnDomainSMCertificateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetCdnDomainSMCertificateResult::~SetCdnDomainSMCertificateResult()
|
||||
{}
|
||||
|
||||
void SetCdnDomainSMCertificateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user