Browse Source

Support new feature.

sdk-team 3 years ago
parent
commit
9c0b9836df

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1684
+1.36.1685

+ 3 - 0
polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionRequest.h

@@ -32,6 +32,8 @@ public:
 	~DescribeDBClusterVersionRequest();
 	long getResourceOwnerId() const;
 	void setResourceOwnerId(long resourceOwnerId);
+	std::string getDescribeType() const;
+	void setDescribeType(const std::string &describeType);
 	std::string getAccessKeyId() const;
 	void setAccessKeyId(const std::string &accessKeyId);
 	std::string getResourceOwnerAccount() const;
@@ -45,6 +47,7 @@ public:
 
 private:
 	long resourceOwnerId_;
+	std::string describeType_;
 	std::string accessKeyId_;
 	std::string resourceOwnerAccount_;
 	std::string dBClusterId_;

+ 9 - 0
polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h

@@ -32,6 +32,13 @@ namespace AlibabaCloud
 			class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterVersionResult : public ServiceResult
 			{
 			public:
+				struct DBRevisionVersionListItem
+				{
+					std::string releaseType;
+					std::string revisionVersionName;
+					std::string releaseNote;
+					std::string revisionVersionCode;
+				};
 
 
 				DescribeDBClusterVersionResult();
@@ -47,6 +54,7 @@ namespace AlibabaCloud
 				std::string getProxyRevisionVersion()const;
 				std::string getDBLatestVersion()const;
 				std::string getDBMinorVersion()const;
+				std::vector<DBRevisionVersionListItem> getDBRevisionVersionList()const;
 				std::string getProxyLatestVersion()const;
 
 			protected:
@@ -62,6 +70,7 @@ namespace AlibabaCloud
 				std::string proxyRevisionVersion_;
 				std::string dBLatestVersion_;
 				std::string dBMinorVersion_;
+				std::vector<DBRevisionVersionListItem> dBRevisionVersionList_;
 				std::string proxyLatestVersion_;
 
 			};

+ 3 - 0
polardb/include/alibabacloud/polardb/model/OpenAITaskRequest.h

@@ -34,6 +34,8 @@ public:
 	void setResourceOwnerId(long resourceOwnerId);
 	std::string getNodeType() const;
 	void setNodeType(const std::string &nodeType);
+	std::string getDescribeType() const;
+	void setDescribeType(const std::string &describeType);
 	std::string getAccessKeyId() const;
 	void setAccessKeyId(const std::string &accessKeyId);
 	std::string getResourceGroupId() const;
@@ -56,6 +58,7 @@ public:
 private:
 	long resourceOwnerId_;
 	std::string nodeType_;
+	std::string describeType_;
 	std::string accessKeyId_;
 	std::string resourceGroupId_;
 	std::string password_;

+ 3 - 0
polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h

@@ -50,6 +50,8 @@ public:
 	void setOwnerId(long ownerId);
 	std::string getPlannedStartTime() const;
 	void setPlannedStartTime(const std::string &plannedStartTime);
+	std::string getTargetDBRevisionVersionCode() const;
+	void setTargetDBRevisionVersionCode(const std::string &targetDBRevisionVersionCode);
 	std::string getUpgradePolicy() const;
 	void setUpgradePolicy(const std::string &upgradePolicy);
 	bool getFromTimeService() const;
@@ -66,6 +68,7 @@ private:
 	std::string ownerAccount_;
 	long ownerId_;
 	std::string plannedStartTime_;
+	std::string targetDBRevisionVersionCode_;
 	std::string upgradePolicy_;
 	bool fromTimeService_;
 };

+ 9 - 0
polardb/src/model/DescribeDBClusterVersionRequest.cc

@@ -34,6 +34,15 @@ void DescribeDBClusterVersionRequest::setResourceOwnerId(long resourceOwnerId) {
   setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
 }
 
+std::string DescribeDBClusterVersionRequest::getDescribeType() const {
+  return describeType_;
+}
+
+void DescribeDBClusterVersionRequest::setDescribeType(const std::string &describeType) {
+  describeType_ = describeType;
+  setParameter(std::string("DescribeType"), describeType);
+}
+
 std::string DescribeDBClusterVersionRequest::getAccessKeyId() const {
   return accessKeyId_;
 }

+ 19 - 0
polardb/src/model/DescribeDBClusterVersionResult.cc

@@ -39,6 +39,20 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload)
 	Json::Value value;
 	reader.parse(payload, value);
 	setRequestId(value["RequestId"].asString());
+	auto allDBRevisionVersionListNode = value["DBRevisionVersionList"]["DBRevisionVersionListItem"];
+	for (auto valueDBRevisionVersionListDBRevisionVersionListItem : allDBRevisionVersionListNode)
+	{
+		DBRevisionVersionListItem dBRevisionVersionListObject;
+		if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].isNull())
+			dBRevisionVersionListObject.releaseType = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].asString();
+		if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].isNull())
+			dBRevisionVersionListObject.revisionVersionCode = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].asString();
+		if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].isNull())
+			dBRevisionVersionListObject.revisionVersionName = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].asString();
+		if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].isNull())
+			dBRevisionVersionListObject.releaseNote = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].asString();
+		dBRevisionVersionList_.push_back(dBRevisionVersionListObject);
+	}
 	if(!value["IsLatestVersion"].isNull())
 		isLatestVersion_ = value["IsLatestVersion"].asString();
 	if(!value["IsProxyLatestVersion"].isNull())
@@ -114,6 +128,11 @@ std::string DescribeDBClusterVersionResult::getDBMinorVersion()const
 	return dBMinorVersion_;
 }
 
+std::vector<DescribeDBClusterVersionResult::DBRevisionVersionListItem> DescribeDBClusterVersionResult::getDBRevisionVersionList()const
+{
+	return dBRevisionVersionList_;
+}
+
 std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const
 {
 	return proxyLatestVersion_;

+ 9 - 0
polardb/src/model/OpenAITaskRequest.cc

@@ -43,6 +43,15 @@ void OpenAITaskRequest::setNodeType(const std::string &nodeType) {
   setParameter(std::string("NodeType"), nodeType);
 }
 
+std::string OpenAITaskRequest::getDescribeType() const {
+  return describeType_;
+}
+
+void OpenAITaskRequest::setDescribeType(const std::string &describeType) {
+  describeType_ = describeType;
+  setParameter(std::string("DescribeType"), describeType);
+}
+
 std::string OpenAITaskRequest::getAccessKeyId() const {
   return accessKeyId_;
 }

+ 9 - 0
polardb/src/model/UpgradeDBClusterVersionRequest.cc

@@ -115,6 +115,15 @@ void UpgradeDBClusterVersionRequest::setPlannedStartTime(const std::string &plan
   setParameter(std::string("PlannedStartTime"), plannedStartTime);
 }
 
+std::string UpgradeDBClusterVersionRequest::getTargetDBRevisionVersionCode() const {
+  return targetDBRevisionVersionCode_;
+}
+
+void UpgradeDBClusterVersionRequest::setTargetDBRevisionVersionCode(const std::string &targetDBRevisionVersionCode) {
+  targetDBRevisionVersionCode_ = targetDBRevisionVersionCode;
+  setParameter(std::string("TargetDBRevisionVersionCode"), targetDBRevisionVersionCode);
+}
+
 std::string UpgradeDBClusterVersionRequest::getUpgradePolicy() const {
   return upgradePolicy_;
 }