Fix BdsColdStorage.
This commit is contained in:
@@ -39,34 +39,48 @@ 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::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getColdStorageUsePercent()const
|
||||
{
|
||||
return coldStorageUsePercent_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getColdStorageUseAmount()const
|
||||
{
|
||||
return coldStorageUseAmount_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getColdStorageType()const
|
||||
{
|
||||
return coldStorageType_;
|
||||
}
|
||||
|
||||
std::string DescribeColdStorageResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
Reference in New Issue
Block a user