Compare commits

...

5 Commits

Author SHA1 Message Date
sdk-team
9bf214bc2c Add. 2021-02-19 07:52:20 +00:00
sdk-team
9bdc7d4fa5 Generated 2019-01-01 for Cassandra. 2021-02-19 07:51:13 +00:00
sdk-team
80f230d35a Supported API for GTM. 2021-02-19 07:50:09 +00:00
sdk-team
0faf3e6ffa Support CPP and Go and PHP. 2021-02-19 07:48:16 +00:00
sdk-team
3dcd83a4f3 Support some MergeRequest API. 2021-02-19 07:44:26 +00:00
12 changed files with 107 additions and 18 deletions

View File

@@ -1,3 +1,18 @@
2021-02-19 Version: patch
- Add.
2021-02-19 Version: patch
- Generated 2019-01-01 for `Cassandra`.
2021-02-19 Version: patch
- Supported API for GTM.
2021-02-19 Version: patch
- Support CPP and Go and PHP.
2021-02-19 Version: patch
- Support some MergeRequest API.
2021-02-08 Version: patch
- Fix IoT Studio BatchBindDevicesIntoProject API return datatype.
- Fix IoT Studio BatchBindProductsIntoProject API return datatype.

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
DescribeDNSSLBSubDomainsRequest();
~DescribeDNSSLBSubDomainsRequest();
std::string getRr()const;
void setRr(const std::string& rr);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
long getPageNumber()const;
@@ -49,6 +51,7 @@ namespace AlibabaCloud
void setLang(const std::string& lang);
private:
std::string rr_;
std::string domainName_;
long pageNumber_;
std::string accessKeyId_;

View File

@@ -34,8 +34,14 @@ namespace AlibabaCloud
public:
struct SlbSubDomain
{
struct LineAlgorithm
{
std::string line;
bool open;
};
std::string subDomain;
std::string type;
std::vector<SlbSubDomain::LineAlgorithm> lineAlgorithms;
long recordCount;
bool open;
};

View File

@@ -65,8 +65,11 @@ namespace AlibabaCloud
~DescribeDnsGtmAccessStrategyAvailableConfigResult();
std::vector<Ipv4AddrPool> getIpv4AddrPools()const;
std::vector<DomainAddrPool> getDomainAddrPools()const;
std::vector<std::string> getSelectedDomainLines()const;
std::vector<std::string> getSelectedIpv4Lines()const;
std::vector<Ipv6AddrPool> getIpv6AddrPools()const;
std::vector<Line> getLines()const;
std::vector<std::string> getSelectedIpv6Lines()const;
bool getSuggestSetDefaultLine()const;
protected:
@@ -74,8 +77,11 @@ namespace AlibabaCloud
private:
std::vector<Ipv4AddrPool> ipv4AddrPools_;
std::vector<DomainAddrPool> domainAddrPools_;
std::vector<std::string> selectedDomainLines_;
std::vector<std::string> selectedIpv4Lines_;
std::vector<Ipv6AddrPool> ipv6AddrPools_;
std::vector<Line> lines_;
std::vector<std::string> selectedIpv6Lines_;
bool suggestSetDefaultLine_;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
SetDNSSLBStatusRequest();
~SetDNSSLBStatusRequest();
std::string getLine()const;
void setLine(const std::string& line);
std::string getDomainName()const;
void setDomainName(const std::string& domainName);
std::string getType()const;
@@ -51,6 +53,7 @@ namespace AlibabaCloud
void setOpen(bool open);
private:
std::string line_;
std::string domainName_;
std::string type_;
std::string accessKeyId_;

View File

@@ -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_;

View File

@@ -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())

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -48,16 +48,16 @@ void DescribeClusterDashboardResult::parse(const std::string &payload)
Dashboard::DataCenter dataCenterObject;
if(!dashboardNodeDataCentersDataCenter["DataCenterId"].isNull())
dataCenterObject.dataCenterId = dashboardNodeDataCentersDataCenter["DataCenterId"].asString();
auto allNodesNode = allDataCentersNode["Nodes"]["Node"];
for (auto allDataCentersNodeNodesNode : allNodesNode)
auto allNodesNode = dashboardNodeDataCentersDataCenter["Nodes"]["Node"];
for (auto dashboardNodeDataCentersDataCenterNodesNode : allNodesNode)
{
Dashboard::DataCenter::Node nodesObject;
if(!allDataCentersNodeNodesNode["Address"].isNull())
nodesObject.address = allDataCentersNodeNodesNode["Address"].asString();
if(!allDataCentersNodeNodesNode["Status"].isNull())
nodesObject.status = allDataCentersNodeNodesNode["Status"].asString();
if(!allDataCentersNodeNodesNode["Load"].isNull())
nodesObject.load = allDataCentersNodeNodesNode["Load"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Address"].isNull())
nodesObject.address = dashboardNodeDataCentersDataCenterNodesNode["Address"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Status"].isNull())
nodesObject.status = dashboardNodeDataCentersDataCenterNodesNode["Status"].asString();
if(!dashboardNodeDataCentersDataCenterNodesNode["Load"].isNull())
nodesObject.load = dashboardNodeDataCentersDataCenterNodesNode["Load"].asString();
dataCenterObject.nodes.push_back(nodesObject);
}
dashboard_.dataCenters.push_back(dataCenterObject);

View File

@@ -67,14 +67,14 @@ void DescribeClustersResult::parse(const std::string &payload)
clustersObject.autoRenewal = valueClustersCluster["AutoRenewal"].asString() == "true";
if(!valueClustersCluster["AutoRenewPeriod"].isNull())
clustersObject.autoRenewPeriod = std::stoi(valueClustersCluster["AutoRenewPeriod"].asString());
auto allTagsNode = allClustersNode["Tags"]["Tag"];
for (auto allClustersNodeTagsTag : allTagsNode)
auto allTagsNode = valueClustersCluster["Tags"]["Tag"];
for (auto valueClustersClusterTagsTag : allTagsNode)
{
Cluster::Tag tagsObject;
if(!allClustersNodeTagsTag["Key"].isNull())
tagsObject.key = allClustersNodeTagsTag["Key"].asString();
if(!allClustersNodeTagsTag["Value"].isNull())
tagsObject.value = allClustersNodeTagsTag["Value"].asString();
if(!valueClustersClusterTagsTag["Key"].isNull())
tagsObject.key = valueClustersClusterTagsTag["Key"].asString();
if(!valueClustersClusterTagsTag["Value"].isNull())
tagsObject.value = valueClustersClusterTagsTag["Value"].asString();
clustersObject.tags.push_back(tagsObject);
}
clusters_.push_back(clustersObject);

View File

@@ -49,12 +49,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
auto allZonesNode = allRegionsNode["Zones"]["Zone"];
for (auto allRegionsNodeZonesZone : allZonesNode)
auto allZonesNode = valueRegionsRegion["Zones"]["Zone"];
for (auto valueRegionsRegionZonesZone : allZonesNode)
{
Region::Zone zonesObject;
if(!allRegionsNodeZonesZone["Id"].isNull())
zonesObject.id = allRegionsNodeZonesZone["Id"].asString();
if(!valueRegionsRegionZonesZone["Id"].isNull())
zonesObject.id = valueRegionsRegionZonesZone["Id"].asString();
regionsObject.zones.push_back(zonesObject);
}
regions_.push_back(regionsObject);