sdk-team пре 4 година
родитељ
комит
2373071165

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-11-23 Version: 1.36.940
+- Fix BdsColdStorage.
+
 2021-11-23 Version: 1.36.939
 - Support the IP restrictions in ram policy.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.939
+1.36.940

+ 6 - 2
hbase/include/alibabacloud/hbase/model/DescribeColdStorageResult.h

@@ -37,18 +37,22 @@ namespace AlibabaCloud
 				DescribeColdStorageResult();
 				explicit DescribeColdStorageResult(const std::string &payload);
 				~DescribeColdStorageResult();
-				std::string getColdStorageSize()const;
 				std::string getColdStorageUsePercent()const;
+				std::string getColdStorageSize()const;
+				std::string getColdStorageUseAmount()const;
 				std::string getClusterId()const;
+				std::string getColdStorageType()const;
 				std::string getPayType()const;
 				std::string getOpenStatus()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
-				std::string coldStorageSize_;
 				std::string coldStorageUsePercent_;
+				std::string coldStorageSize_;
+				std::string coldStorageUseAmount_;
 				std::string clusterId_;
+				std::string coldStorageType_;
 				std::string payType_;
 				std::string openStatus_;
 

+ 22 - 8
hbase/src/model/DescribeColdStorageResult.cc

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