Update new version.
This commit is contained in:
@@ -49,6 +49,17 @@ void DescribeRequestGraphRequest::setEndTimestamp(long endTimestamp)
|
||||
setParameter("EndTimestamp", std::to_string(endTimestamp));
|
||||
}
|
||||
|
||||
std::string DescribeRequestGraphRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void DescribeRequestGraphRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeRequestGraphRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
@@ -71,6 +82,17 @@ void DescribeRequestGraphRequest::setUserClientIp(const std::string& userClientI
|
||||
setParameter("UserClientIp", userClientIp);
|
||||
}
|
||||
|
||||
std::string DescribeRequestGraphRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void DescribeRequestGraphRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string DescribeRequestGraphRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
|
||||
@@ -47,6 +47,8 @@ void DescribeStatisticSummaryResult::parse(const std::string &payload)
|
||||
zoneRequestTopsObject.zoneName = valueZoneRequestTopsZoneRequestTop["ZoneName"].asString();
|
||||
if(!valueZoneRequestTopsZoneRequestTop["RequestCount"].isNull())
|
||||
zoneRequestTopsObject.requestCount = std::stol(valueZoneRequestTopsZoneRequestTop["RequestCount"].asString());
|
||||
if(!valueZoneRequestTopsZoneRequestTop["BizType"].isNull())
|
||||
zoneRequestTopsObject.bizType = valueZoneRequestTopsZoneRequestTop["BizType"].asString();
|
||||
zoneRequestTops_.push_back(zoneRequestTopsObject);
|
||||
}
|
||||
auto allVpcRequestTopsNode = value["VpcRequestTops"]["VpcRequestTop"];
|
||||
|
||||
@@ -75,14 +75,11 @@ void DescribeZoneInfoResult::parse(const std::string &payload)
|
||||
proxyPattern_ = value["ProxyPattern"].asString();
|
||||
if(!value["SlaveDns"].isNull())
|
||||
slaveDns_ = value["SlaveDns"].asString() == "true";
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
@@ -93,6 +90,11 @@ bool DescribeZoneInfoResult::getSlaveDns()const
|
||||
return slaveDns_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getProxyPattern()const
|
||||
{
|
||||
return proxyPattern_;
|
||||
@@ -103,6 +105,16 @@ std::string DescribeZoneInfoResult::getCreateTime()const
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
@@ -133,8 +145,3 @@ bool DescribeZoneInfoResult::getIsPtr()const
|
||||
return isPtr_;
|
||||
}
|
||||
|
||||
std::string DescribeZoneInfoResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,18 +61,18 @@ void DescribeZoneVpcTreeResult::parse(const std::string &payload)
|
||||
zonesObject.updateTimestamp = std::stol(valueZonesZone["UpdateTimestamp"].asString());
|
||||
if(!valueZonesZone["IsPtr"].isNull())
|
||||
zonesObject.isPtr = valueZonesZone["IsPtr"].asString() == "true";
|
||||
auto allVpcsNode = allZonesNode["Vpcs"]["Vpc"];
|
||||
for (auto allZonesNodeVpcsVpc : allVpcsNode)
|
||||
auto allVpcsNode = valueZonesZone["Vpcs"]["Vpc"];
|
||||
for (auto valueZonesZoneVpcsVpc : allVpcsNode)
|
||||
{
|
||||
Zone::Vpc vpcsObject;
|
||||
if(!allZonesNodeVpcsVpc["RegionId"].isNull())
|
||||
vpcsObject.regionId = allZonesNodeVpcsVpc["RegionId"].asString();
|
||||
if(!allZonesNodeVpcsVpc["RegionName"].isNull())
|
||||
vpcsObject.regionName = allZonesNodeVpcsVpc["RegionName"].asString();
|
||||
if(!allZonesNodeVpcsVpc["VpcId"].isNull())
|
||||
vpcsObject.vpcId = allZonesNodeVpcsVpc["VpcId"].asString();
|
||||
if(!allZonesNodeVpcsVpc["VpcName"].isNull())
|
||||
vpcsObject.vpcName = allZonesNodeVpcsVpc["VpcName"].asString();
|
||||
if(!valueZonesZoneVpcsVpc["RegionId"].isNull())
|
||||
vpcsObject.regionId = valueZonesZoneVpcsVpc["RegionId"].asString();
|
||||
if(!valueZonesZoneVpcsVpc["RegionName"].isNull())
|
||||
vpcsObject.regionName = valueZonesZoneVpcsVpc["RegionName"].asString();
|
||||
if(!valueZonesZoneVpcsVpc["VpcId"].isNull())
|
||||
vpcsObject.vpcId = valueZonesZoneVpcsVpc["VpcId"].asString();
|
||||
if(!valueZonesZoneVpcsVpc["VpcName"].isNull())
|
||||
vpcsObject.vpcName = valueZonesZoneVpcsVpc["VpcName"].asString();
|
||||
zonesObject.vpcs.push_back(vpcsObject);
|
||||
}
|
||||
zones_.push_back(zonesObject);
|
||||
|
||||
@@ -63,6 +63,8 @@ void DescribeZonesResult::parse(const std::string &payload)
|
||||
zonesObject.isPtr = valueZonesZone["IsPtr"].asString() == "true";
|
||||
if(!valueZonesZone["ProxyPattern"].isNull())
|
||||
zonesObject.proxyPattern = valueZonesZone["ProxyPattern"].asString();
|
||||
if(!valueZonesZone["ResourceGroupId"].isNull())
|
||||
zonesObject.resourceGroupId = valueZonesZone["ResourceGroupId"].asString();
|
||||
zones_.push_back(zonesObject);
|
||||
}
|
||||
if(!value["TotalItems"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user