Sync cdn APIs.
This commit is contained in:
128
dcdn/src/model/BatchAddDcdnDomainRequest.cc
Normal file
128
dcdn/src/model/BatchAddDcdnDomainRequest.cc
Normal file
@@ -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 <alibabacloud/dcdn/model/BatchAddDcdnDomainRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
dcdn/src/model/BatchAddDcdnDomainResult.cc
Normal file
44
dcdn/src/model/BatchAddDcdnDomainResult.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/dcdn/model/BatchAddDcdnDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
128
dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc
Normal file
128
dcdn/src/model/BatchSetDcdnDomainCertificateRequest.cc
Normal file
@@ -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 <alibabacloud/dcdn/model/BatchSetDcdnDomainCertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
44
dcdn/src/model/BatchSetDcdnDomainCertificateResult.cc
Normal file
44
dcdn/src/model/BatchSetDcdnDomainCertificateResult.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/dcdn/model/BatchSetDcdnDomainCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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::Tag> TagDcdnResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
|
||||
@@ -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<std::string> UntagDcdnResourcesRequest::getResourceId()const
|
||||
|
||||
Reference in New Issue
Block a user