|
|
@@ -39,17 +39,26 @@ void DescribeColdStorageResult::parse(const std::string &payload)
|
|
|
Json::Value value;
|
|
|
reader.parse(payload, value);
|
|
|
setRequestId(value["RequestId"].asString());
|
|
|
- if(!value["ClusterId"].isNull())
|
|
|
- clusterId_ = value["ClusterId"].asString();
|
|
|
if(!value["OpenStatus"].isNull())
|
|
|
openStatus_ = value["OpenStatus"].asString();
|
|
|
- if(!value["ColdStorageSize"].isNull())
|
|
|
- coldStorageSize_ = value["ColdStorageSize"].asString();
|
|
|
- if(!value["ColdStorageUsePercent"].isNull())
|
|
|
- coldStorageUsePercent_ = value["ColdStorageUsePercent"].asString();
|
|
|
if(!value["PayType"].isNull())
|
|
|
payType_ = value["PayType"].asString();
|
|
|
+ if(!value["ColdStorageUsePercent"].isNull())
|
|
|
+ coldStorageUsePercent_ = value["ColdStorageUsePercent"].asString();
|
|
|
+ if(!value["ColdStorageUseAmount"].isNull())
|
|
|
+ coldStorageUseAmount_ = value["ColdStorageUseAmount"].asString();
|
|
|
+ if(!value["ColdStorageSize"].isNull())
|
|
|
+ coldStorageSize_ = value["ColdStorageSize"].asString();
|
|
|
+ if(!value["ColdStorageType"].isNull())
|
|
|
+ coldStorageType_ = value["ColdStorageType"].asString();
|
|
|
+ if(!value["ClusterId"].isNull())
|
|
|
+ clusterId_ = value["ClusterId"].asString();
|
|
|
+
|
|
|
+}
|
|
|
|
|
|
+std::string DescribeColdStorageResult::getColdStorageUsePercent()const
|
|
|
+{
|
|
|
+ return coldStorageUsePercent_;
|
|
|
}
|
|
|
|
|
|
std::string DescribeColdStorageResult::getColdStorageSize()const
|
|
|
@@ -57,9 +66,9 @@ std::string DescribeColdStorageResult::getColdStorageSize()const
|
|
|
return coldStorageSize_;
|
|
|
}
|
|
|
|
|
|
-std::string DescribeColdStorageResult::getColdStorageUsePercent()const
|
|
|
+std::string DescribeColdStorageResult::getColdStorageUseAmount()const
|
|
|
{
|
|
|
- return coldStorageUsePercent_;
|
|
|
+ return coldStorageUseAmount_;
|
|
|
}
|
|
|
|
|
|
std::string DescribeColdStorageResult::getClusterId()const
|
|
|
@@ -67,6 +76,11 @@ std::string DescribeColdStorageResult::getClusterId()const
|
|
|
return clusterId_;
|
|
|
}
|
|
|
|
|
|
+std::string DescribeColdStorageResult::getColdStorageType()const
|
|
|
+{
|
|
|
+ return coldStorageType_;
|
|
|
+}
|
|
|
+
|
|
|
std::string DescribeColdStorageResult::getPayType()const
|
|
|
{
|
|
|
return payType_;
|