Generated 2019-01-01 for Cassandra.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-02-19 Version: patch
|
||||
- Generated 2019-01-01 for `Cassandra`.
|
||||
|
||||
2021-02-19 Version: patch
|
||||
- Supported API for GTM.
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user