Update default endpoints.
This commit is contained in:
62
alidns/src/model/DescribeDomainDnssecInfoRequest.cc
Normal file
62
alidns/src/model/DescribeDomainDnssecInfoRequest.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/alidns/model/DescribeDomainDnssecInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::DescribeDomainDnssecInfoRequest;
|
||||
|
||||
DescribeDomainDnssecInfoRequest::DescribeDomainDnssecInfoRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "DescribeDomainDnssecInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDomainDnssecInfoRequest::~DescribeDomainDnssecInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDomainDnssecInfoRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
107
alidns/src/model/DescribeDomainDnssecInfoResult.cc
Normal file
107
alidns/src/model/DescribeDomainDnssecInfoResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/alidns/model/DescribeDomainDnssecInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
DescribeDomainDnssecInfoResult::DescribeDomainDnssecInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainDnssecInfoResult::DescribeDomainDnssecInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainDnssecInfoResult::~DescribeDomainDnssecInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainDnssecInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["DsRecord"].isNull())
|
||||
dsRecord_ = value["DsRecord"].asString();
|
||||
if(!value["Digest"].isNull())
|
||||
digest_ = value["Digest"].asString();
|
||||
if(!value["DigestType"].isNull())
|
||||
digestType_ = value["DigestType"].asString();
|
||||
if(!value["Algorithm"].isNull())
|
||||
algorithm_ = value["Algorithm"].asString();
|
||||
if(!value["PublicKey"].isNull())
|
||||
publicKey_ = value["PublicKey"].asString();
|
||||
if(!value["KeyTag"].isNull())
|
||||
keyTag_ = value["KeyTag"].asString();
|
||||
if(!value["Flags"].isNull())
|
||||
flags_ = value["Flags"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDigest()const
|
||||
{
|
||||
return digest_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getPublicKey()const
|
||||
{
|
||||
return publicKey_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDsRecord()const
|
||||
{
|
||||
return dsRecord_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getDigestType()const
|
||||
{
|
||||
return digestType_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getKeyTag()const
|
||||
{
|
||||
return keyTag_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getFlags()const
|
||||
{
|
||||
return flags_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainDnssecInfoResult::getAlgorithm()const
|
||||
{
|
||||
return algorithm_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeDomainsRequest::DescribeDomainsRequest() :
|
||||
DescribeDomainsRequest::~DescribeDomainsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainsRequest::getStartDate()const
|
||||
{
|
||||
return startDate_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setStartDate(const std::string& startDate)
|
||||
{
|
||||
startDate_ = startDate;
|
||||
setCoreParameter("StartDate", startDate);
|
||||
}
|
||||
|
||||
long DescribeDomainsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -126,6 +137,17 @@ void DescribeDomainsRequest::setOrderBy(const std::string& orderBy)
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getEndDate()const
|
||||
{
|
||||
return endDate_;
|
||||
}
|
||||
|
||||
void DescribeDomainsRequest::setEndDate(const std::string& endDate)
|
||||
{
|
||||
endDate_ = endDate;
|
||||
setCoreParameter("EndDate", endDate);
|
||||
}
|
||||
|
||||
std::string DescribeDomainsRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
|
||||
@@ -73,6 +73,10 @@ void DescribeDomainsResult::parse(const std::string &payload)
|
||||
domainsObject.instanceExpired = valueDomainsDomain["InstanceExpired"].asString() == "true";
|
||||
if(!valueDomainsDomain["Starmark"].isNull())
|
||||
domainsObject.starmark = valueDomainsDomain["Starmark"].asString() == "true";
|
||||
if(!valueDomainsDomain["CreateTime"].isNull())
|
||||
domainsObject.createTime = valueDomainsDomain["CreateTime"].asString();
|
||||
if(!valueDomainsDomain["CreateTimestamp"].isNull())
|
||||
domainsObject.createTimestamp = std::stol(valueDomainsDomain["CreateTimestamp"].asString());
|
||||
auto allDnsServers = value["DnsServers"]["DnsServer"];
|
||||
for (auto value : allDnsServers)
|
||||
domainsObject.dnsServers.push_back(value.asString());
|
||||
|
||||
73
alidns/src/model/SetDomainDnssecStatusRequest.cc
Normal file
73
alidns/src/model/SetDomainDnssecStatusRequest.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/alidns/model/SetDomainDnssecStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Alidns::Model::SetDomainDnssecStatusRequest;
|
||||
|
||||
SetDomainDnssecStatusRequest::SetDomainDnssecStatusRequest() :
|
||||
RpcServiceRequest("alidns", "2015-01-09", "SetDomainDnssecStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetDomainDnssecStatusRequest::~SetDomainDnssecStatusRequest()
|
||||
{}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getUserClientIp()const
|
||||
{
|
||||
return userClientIp_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setUserClientIp(const std::string& userClientIp)
|
||||
{
|
||||
userClientIp_ = userClientIp;
|
||||
setCoreParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setCoreParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string SetDomainDnssecStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetDomainDnssecStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
44
alidns/src/model/SetDomainDnssecStatusResult.cc
Normal file
44
alidns/src/model/SetDomainDnssecStatusResult.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/alidns/model/SetDomainDnssecStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alidns;
|
||||
using namespace AlibabaCloud::Alidns::Model;
|
||||
|
||||
SetDomainDnssecStatusResult::SetDomainDnssecStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetDomainDnssecStatusResult::SetDomainDnssecStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetDomainDnssecStatusResult::~SetDomainDnssecStatusResult()
|
||||
{}
|
||||
|
||||
void SetDomainDnssecStatusResult::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