From 74ea14dac41f07e07cabde6648708e7c7a9f4c37 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 28 Jun 2023 02:15:09 +0000 Subject: [PATCH] DescribeClassList support masterHa. --- VERSION | 2 +- .../polardb/model/DescribeClassListRequest.h | 3 +++ .../alibabacloud/polardb/model/DescribeClassListResult.h | 1 + .../polardb/model/ModifyDBClusterPrimaryZoneRequest.h | 3 +++ polardb/src/model/DescribeClassListRequest.cc | 9 +++++++++ polardb/src/model/DescribeClassListResult.cc | 2 ++ polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc | 9 +++++++++ 7 files changed, 28 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d461d904a..b8e785bc8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1618 \ No newline at end of file +1.36.1619 \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeClassListRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeClassListRequest.h index 10d743dd2..4dd63b37b 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeClassListRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeClassListRequest.h @@ -46,6 +46,8 @@ public: void setCommodityCode(const std::string &commodityCode); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getMasterHa() const; + void setMasterHa(const std::string &masterHa); std::string getOrderType() const; void setOrderType(const std::string &orderType); @@ -58,6 +60,7 @@ private: std::string ownerAccount_; std::string commodityCode_; long ownerId_; + std::string masterHa_; std::string orderType_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h b/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h index fd4014e67..c12c3a47a 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud std::string classGroup; std::string psl5MaxIOPS; std::string pl1MaxIOPS; + std::string referenceExtPrice; std::string memoryClass; std::string maxStorageCapacity; }; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h index 4a7accd80..5e8336448 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h @@ -48,6 +48,8 @@ public: void setVSwitchId(const std::string &vSwitchId); std::string getPlannedStartTime() const; void setPlannedStartTime(const std::string &plannedStartTime); + std::string getVPCId() const; + void setVPCId(const std::string &vPCId); std::string getZoneId() const; void setZoneId(const std::string &zoneId); bool getFromTimeService() const; @@ -63,6 +65,7 @@ private: long ownerId_; std::string vSwitchId_; std::string plannedStartTime_; + std::string vPCId_; std::string zoneId_; bool fromTimeService_; }; diff --git a/polardb/src/model/DescribeClassListRequest.cc b/polardb/src/model/DescribeClassListRequest.cc index a5efd00a1..974055d76 100644 --- a/polardb/src/model/DescribeClassListRequest.cc +++ b/polardb/src/model/DescribeClassListRequest.cc @@ -97,6 +97,15 @@ void DescribeClassListRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeClassListRequest::getMasterHa() const { + return masterHa_; +} + +void DescribeClassListRequest::setMasterHa(const std::string &masterHa) { + masterHa_ = masterHa; + setParameter(std::string("MasterHa"), masterHa); +} + std::string DescribeClassListRequest::getOrderType() const { return orderType_; } diff --git a/polardb/src/model/DescribeClassListResult.cc b/polardb/src/model/DescribeClassListResult.cc index d2f9ef187..a8ebc4f41 100644 --- a/polardb/src/model/DescribeClassListResult.cc +++ b/polardb/src/model/DescribeClassListResult.cc @@ -51,6 +51,8 @@ void DescribeClassListResult::parse(const std::string &payload) itemsObject.cpu = valueItemsItemsItem["Cpu"].asString(); if(!valueItemsItemsItem["ReferencePrice"].isNull()) itemsObject.referencePrice = valueItemsItemsItem["ReferencePrice"].asString(); + if(!valueItemsItemsItem["ReferenceExtPrice"].isNull()) + itemsObject.referenceExtPrice = valueItemsItemsItem["ReferenceExtPrice"].asString(); if(!valueItemsItemsItem["MaxConnections"].isNull()) itemsObject.maxConnections = valueItemsItemsItem["MaxConnections"].asString(); if(!valueItemsItemsItem["MemoryClass"].isNull()) diff --git a/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc b/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc index 45ab1c8a1..17e0a0a22 100644 --- a/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc +++ b/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc @@ -106,6 +106,15 @@ void ModifyDBClusterPrimaryZoneRequest::setPlannedStartTime(const std::string &p setParameter(std::string("PlannedStartTime"), plannedStartTime); } +std::string ModifyDBClusterPrimaryZoneRequest::getVPCId() const { + return vPCId_; +} + +void ModifyDBClusterPrimaryZoneRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + std::string ModifyDBClusterPrimaryZoneRequest::getZoneId() const { return zoneId_; }