Supported API for GTM.
This commit is contained in:
@@ -27,6 +27,17 @@ DescribeDNSSLBSubDomainsRequest::DescribeDNSSLBSubDomainsRequest() :
|
||||
DescribeDNSSLBSubDomainsRequest::~DescribeDNSSLBSubDomainsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDNSSLBSubDomainsRequest::getRr()const
|
||||
{
|
||||
return rr_;
|
||||
}
|
||||
|
||||
void DescribeDNSSLBSubDomainsRequest::setRr(const std::string& rr)
|
||||
{
|
||||
rr_ = rr;
|
||||
setParameter("Rr", rr);
|
||||
}
|
||||
|
||||
std::string DescribeDNSSLBSubDomainsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
@@ -51,6 +51,16 @@ void DescribeDNSSLBSubDomainsResult::parse(const std::string &payload)
|
||||
slbSubDomainsObject.open = valueSlbSubDomainsSlbSubDomain["Open"].asString() == "true";
|
||||
if(!valueSlbSubDomainsSlbSubDomain["Type"].isNull())
|
||||
slbSubDomainsObject.type = valueSlbSubDomainsSlbSubDomain["Type"].asString();
|
||||
auto allLineAlgorithmsNode = valueSlbSubDomainsSlbSubDomain["LineAlgorithms"]["LineAlgorithm"];
|
||||
for (auto valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm : allLineAlgorithmsNode)
|
||||
{
|
||||
SlbSubDomain::LineAlgorithm lineAlgorithmsObject;
|
||||
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].isNull())
|
||||
lineAlgorithmsObject.line = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Line"].asString();
|
||||
if(!valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].isNull())
|
||||
lineAlgorithmsObject.open = valueSlbSubDomainsSlbSubDomainLineAlgorithmsLineAlgorithm["Open"].asString() == "true";
|
||||
slbSubDomainsObject.lineAlgorithms.push_back(lineAlgorithmsObject);
|
||||
}
|
||||
slbSubDomains_.push_back(slbSubDomainsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -91,6 +91,15 @@ void DescribeDnsGtmAccessStrategyAvailableConfigResult::parse(const std::string
|
||||
domainAddrPoolsObject.addrCount = std::stoi(valueDomainAddrPoolsDomainAddrPool["AddrCount"].asString());
|
||||
domainAddrPools_.push_back(domainAddrPoolsObject);
|
||||
}
|
||||
auto allSelectedIpv4Lines = value["SelectedIpv4Lines"]["SelectedIpv4Line"];
|
||||
for (const auto &item : allSelectedIpv4Lines)
|
||||
selectedIpv4Lines_.push_back(item.asString());
|
||||
auto allSelectedIpv6Lines = value["SelectedIpv6Lines"]["SelectedIpv6Line"];
|
||||
for (const auto &item : allSelectedIpv6Lines)
|
||||
selectedIpv6Lines_.push_back(item.asString());
|
||||
auto allSelectedDomainLines = value["SelectedDomainLines"]["SelectedDomainLine"];
|
||||
for (const auto &item : allSelectedDomainLines)
|
||||
selectedDomainLines_.push_back(item.asString());
|
||||
if(!value["SuggestSetDefaultLine"].isNull())
|
||||
suggestSetDefaultLine_ = value["SuggestSetDefaultLine"].asString() == "true";
|
||||
|
||||
@@ -106,6 +115,16 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::DomainAddrPool> D
|
||||
return domainAddrPools_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedDomainLines()const
|
||||
{
|
||||
return selectedDomainLines_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv4Lines()const
|
||||
{
|
||||
return selectedIpv4Lines_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Ipv6AddrPool> DescribeDnsGtmAccessStrategyAvailableConfigResult::getIpv6AddrPools()const
|
||||
{
|
||||
return ipv6AddrPools_;
|
||||
@@ -116,6 +135,11 @@ std::vector<DescribeDnsGtmAccessStrategyAvailableConfigResult::Line> DescribeDns
|
||||
return lines_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeDnsGtmAccessStrategyAvailableConfigResult::getSelectedIpv6Lines()const
|
||||
{
|
||||
return selectedIpv6Lines_;
|
||||
}
|
||||
|
||||
bool DescribeDnsGtmAccessStrategyAvailableConfigResult::getSuggestSetDefaultLine()const
|
||||
{
|
||||
return suggestSetDefaultLine_;
|
||||
|
||||
@@ -27,6 +27,17 @@ SetDNSSLBStatusRequest::SetDNSSLBStatusRequest() :
|
||||
SetDNSSLBStatusRequest::~SetDNSSLBStatusRequest()
|
||||
{}
|
||||
|
||||
std::string SetDNSSLBStatusRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void SetDNSSLBStatusRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string SetDNSSLBStatusRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
|
||||
Reference in New Issue
Block a user