Răsfoiți Sursa

Update some parameters.

sdk-team 3 ani în urmă
părinte
comite
4ec6eb47bf

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1567
+1.36.1568

+ 4 - 0
polardb/CMakeLists.txt

@@ -261,6 +261,8 @@ set(polardb_public_header_model
 	include/alibabacloud/polardb/model/RemoveDBClusterFromGDNResult.h
 	include/alibabacloud/polardb/model/ResetAccountRequest.h
 	include/alibabacloud/polardb/model/ResetAccountResult.h
+	include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkRequest.h
+	include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkResult.h
 	include/alibabacloud/polardb/model/RestartDBNodeRequest.h
 	include/alibabacloud/polardb/model/RestartDBNodeResult.h
 	include/alibabacloud/polardb/model/RestoreTableRequest.h
@@ -524,6 +526,8 @@ set(polardb_src
 	src/model/RemoveDBClusterFromGDNResult.cc
 	src/model/ResetAccountRequest.cc
 	src/model/ResetAccountResult.cc
+	src/model/ResetGlobalDatabaseNetworkRequest.cc
+	src/model/ResetGlobalDatabaseNetworkResult.cc
 	src/model/RestartDBNodeRequest.cc
 	src/model/RestartDBNodeResult.cc
 	src/model/RestoreTableRequest.cc

+ 8 - 0
polardb/include/alibabacloud/polardb/PolardbClient.h

@@ -262,6 +262,8 @@
 #include "model/RemoveDBClusterFromGDNResult.h"
 #include "model/ResetAccountRequest.h"
 #include "model/ResetAccountResult.h"
+#include "model/ResetGlobalDatabaseNetworkRequest.h"
+#include "model/ResetGlobalDatabaseNetworkResult.h"
 #include "model/RestartDBNodeRequest.h"
 #include "model/RestartDBNodeResult.h"
 #include "model/RestoreTableRequest.h"
@@ -651,6 +653,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::ResetAccountResult> ResetAccountOutcome;
 			typedef std::future<ResetAccountOutcome> ResetAccountOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::ResetAccountRequest&, const ResetAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetAccountAsyncHandler;
+			typedef Outcome<Error, Model::ResetGlobalDatabaseNetworkResult> ResetGlobalDatabaseNetworkOutcome;
+			typedef std::future<ResetGlobalDatabaseNetworkOutcome> ResetGlobalDatabaseNetworkOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::ResetGlobalDatabaseNetworkRequest&, const ResetGlobalDatabaseNetworkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetGlobalDatabaseNetworkAsyncHandler;
 			typedef Outcome<Error, Model::RestartDBNodeResult> RestartDBNodeOutcome;
 			typedef std::future<RestartDBNodeOutcome> RestartDBNodeOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::RestartDBNodeRequest&, const RestartDBNodeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartDBNodeAsyncHandler;
@@ -1046,6 +1051,9 @@ namespace AlibabaCloud
 			ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const;
 			void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ResetAccountOutcomeCallable resetAccountCallable(const Model::ResetAccountRequest& request) const;
+			ResetGlobalDatabaseNetworkOutcome resetGlobalDatabaseNetwork(const Model::ResetGlobalDatabaseNetworkRequest &request)const;
+			void resetGlobalDatabaseNetworkAsync(const Model::ResetGlobalDatabaseNetworkRequest& request, const ResetGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			ResetGlobalDatabaseNetworkOutcomeCallable resetGlobalDatabaseNetworkCallable(const Model::ResetGlobalDatabaseNetworkRequest& request) const;
 			RestartDBNodeOutcome restartDBNode(const Model::RestartDBNodeRequest &request)const;
 			void restartDBNodeAsync(const Model::RestartDBNodeRequest& request, const RestartDBNodeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			RestartDBNodeOutcomeCallable restartDBNodeCallable(const Model::RestartDBNodeRequest& request) const;

+ 6 - 0
polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h

@@ -86,6 +86,8 @@ public:
 	void setLowerCaseTableNames(const std::string &lowerCaseTableNames);
 	std::string getScaleRoNumMax() const;
 	void setScaleRoNumMax(const std::string &scaleRoNumMax);
+	std::string getStandbyAZ() const;
+	void setStandbyAZ(const std::string &standbyAZ);
 	std::string getClientToken() const;
 	void setClientToken(const std::string &clientToken);
 	std::string getDefaultTimeZone() const;
@@ -118,6 +120,8 @@ public:
 	void setDBType(const std::string &dBType);
 	std::string getDBVersion() const;
 	void setDBVersion(const std::string &dBVersion);
+	std::string getStrictConsistency() const;
+	void setStrictConsistency(const std::string &strictConsistency);
 	std::string getCloneDataPoint() const;
 	void setCloneDataPoint(const std::string &cloneDataPoint);
 	std::string getPayType() const;
@@ -154,6 +158,7 @@ private:
 	std::string allowShutDown_;
 	std::string lowerCaseTableNames_;
 	std::string scaleRoNumMax_;
+	std::string standbyAZ_;
 	std::string clientToken_;
 	std::string defaultTimeZone_;
 	std::string accessKeyId_;
@@ -170,6 +175,7 @@ private:
 	std::string scaleRoNumMin_;
 	std::string dBType_;
 	std::string dBVersion_;
+	std::string strictConsistency_;
 	std::string cloneDataPoint_;
 	std::string payType_;
 	long storageSpace_;

+ 13 - 0
polardb/include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h

@@ -28,12 +28,20 @@ namespace Polardb {
 namespace Model {
 class ALIBABACLOUD_POLARDB_EXPORT CreateDBEndpointAddressRequest : public RpcServiceRequest {
 public:
+	struct ZoneInfo {
+		std::string vSwitchId;
+		std::string zoneId;
+	};
 	CreateDBEndpointAddressRequest();
 	~CreateDBEndpointAddressRequest();
 	long getResourceOwnerId() const;
 	void setResourceOwnerId(long resourceOwnerId);
 	std::string getConnectionStringPrefix() const;
 	void setConnectionStringPrefix(const std::string &connectionStringPrefix);
+	std::vector<ZoneInfo> getZoneInfo() const;
+	void setZoneInfo(const std::vector<ZoneInfo> &zoneInfo);
+	std::string getSecurityGroupId() const;
+	void setSecurityGroupId(const std::string &securityGroupId);
 	std::string getDBEndpointId() const;
 	void setDBEndpointId(const std::string &dBEndpointId);
 	std::string getAccessKeyId() const;
@@ -48,10 +56,14 @@ public:
 	void setOwnerId(long ownerId);
 	std::string getNetType() const;
 	void setNetType(const std::string &netType);
+	std::string getVPCId() const;
+	void setVPCId(const std::string &vPCId);
 
 private:
 	long resourceOwnerId_;
 	std::string connectionStringPrefix_;
+	std::vector<ZoneInfo> zoneInfo_;
+	std::string securityGroupId_;
 	std::string dBEndpointId_;
 	std::string accessKeyId_;
 	std::string resourceOwnerAccount_;
@@ -59,6 +71,7 @@ private:
 	std::string ownerAccount_;
 	long ownerId_;
 	std::string netType_;
+	std::string vPCId_;
 };
 } // namespace Model
 } // namespace Polardb

+ 2 - 0
polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h

@@ -99,6 +99,7 @@ namespace AlibabaCloud
 				std::string getProxyCpuCores()const;
 				std::string getPayType()const;
 				std::string getLockMode()const;
+				std::string getStrictConsistency()const;
 				long getStorageUsed()const;
 				long getInodeTotal()const;
 				bool getIsProxyLatestVersion()const;
@@ -148,6 +149,7 @@ namespace AlibabaCloud
 				std::string proxyCpuCores_;
 				std::string payType_;
 				std::string lockMode_;
+				std::string strictConsistency_;
 				long storageUsed_;
 				long inodeTotal_;
 				bool isProxyLatestVersion_;

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

@@ -34,6 +34,8 @@ public:
 	void setResourceOwnerId(long resourceOwnerId);
 	std::string getAccessKeyId() const;
 	void setAccessKeyId(const std::string &accessKeyId);
+	std::string getRequestType() const;
+	void setRequestType(const std::string &requestType);
 	std::string getResourceOwnerAccount() const;
 	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
 	std::string getDBClusterId() const;
@@ -46,6 +48,7 @@ public:
 private:
 	long resourceOwnerId_;
 	std::string accessKeyId_;
+	std::string requestType_;
 	std::string resourceOwnerAccount_;
 	std::string dBClusterId_;
 	std::string ownerAccount_;

+ 4 - 0
polardb/include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfResult.h

@@ -38,6 +38,7 @@ namespace AlibabaCloud
 				explicit DescribeDBClusterServerlessConfResult(const std::string &payload);
 				~DescribeDBClusterServerlessConfResult();
 				std::string getScaleRoNumMin()const;
+				std::string getDBMaxscaleId()const;
 				std::string getAllowShutDown()const;
 				std::string getScaleApRoNumMin()const;
 				std::string getScaleApRoNumMax()const;
@@ -46,11 +47,13 @@ namespace AlibabaCloud
 				std::string getScaleMin()const;
 				std::string getScaleMax()const;
 				std::string getSecondsUntilAutoPause()const;
+				std::string getSwitchs()const;
 
 			protected:
 				void parse(const std::string &payload);
 			private:
 				std::string scaleRoNumMin_;
+				std::string dBMaxscaleId_;
 				std::string allowShutDown_;
 				std::string scaleApRoNumMin_;
 				std::string scaleApRoNumMax_;
@@ -59,6 +62,7 @@ namespace AlibabaCloud
 				std::string scaleMin_;
 				std::string scaleMax_;
 				std::string secondsUntilAutoPause_;
+				std::string switchs_;
 
 			};
 		}

+ 2 - 0
polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h

@@ -45,6 +45,7 @@ namespace AlibabaCloud
 						std::string dBNodeRole;
 						std::string dBNodeId;
 						std::string regionId;
+						std::string serverless;
 						std::string dBNodeClass;
 					};
 					int deletionLock;
@@ -65,6 +66,7 @@ namespace AlibabaCloud
 					std::string expired;
 					std::string payType;
 					std::string lockMode;
+					std::string strictConsistency;
 					std::string dBNodeClass;
 					long storageUsed;
 					int dBNodeNumber;

+ 66 - 0
polardb/include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkRequest.h

@@ -0,0 +1,66 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKREQUEST_H_
+
+#include <alibabacloud/polardb/PolardbExport.h>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <string>
+#include <vector>
+#include <map>
+
+namespace AlibabaCloud {
+namespace Polardb {
+namespace Model {
+class ALIBABACLOUD_POLARDB_EXPORT ResetGlobalDatabaseNetworkRequest : public RpcServiceRequest {
+public:
+	ResetGlobalDatabaseNetworkRequest();
+	~ResetGlobalDatabaseNetworkRequest();
+	long getResourceOwnerId() const;
+	void setResourceOwnerId(long resourceOwnerId);
+	std::string getAccessKeyId() const;
+	void setAccessKeyId(const std::string &accessKeyId);
+	std::string getSecurityToken() const;
+	void setSecurityToken(const std::string &securityToken);
+	std::string getRegionId() const;
+	void setRegionId(const std::string &regionId);
+	std::string getGDNId() const;
+	void setGDNId(const std::string &gDNId);
+	std::string getResourceOwnerAccount() const;
+	void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
+	std::string getDBClusterId() const;
+	void setDBClusterId(const std::string &dBClusterId);
+	std::string getOwnerAccount() const;
+	void setOwnerAccount(const std::string &ownerAccount);
+	long getOwnerId() const;
+	void setOwnerId(long ownerId);
+
+private:
+	long resourceOwnerId_;
+	std::string accessKeyId_;
+	std::string securityToken_;
+	std::string regionId_;
+	std::string gDNId_;
+	std::string resourceOwnerAccount_;
+	std::string dBClusterId_;
+	std::string ownerAccount_;
+	long ownerId_;
+};
+} // namespace Model
+} // namespace Polardb
+} // namespace AlibabaCloud
+#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKREQUEST_H_

+ 49 - 0
polardb/include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkResult.h

@@ -0,0 +1,49 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT ResetGlobalDatabaseNetworkResult : public ServiceResult
+			{
+			public:
+
+
+				ResetGlobalDatabaseNetworkResult();
+				explicit ResetGlobalDatabaseNetworkResult(const std::string &payload);
+				~ResetGlobalDatabaseNetworkResult();
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETGLOBALDATABASENETWORKRESULT_H_

+ 36 - 0
polardb/src/PolardbClient.cc

@@ -4371,6 +4371,42 @@ PolardbClient::ResetAccountOutcomeCallable PolardbClient::resetAccountCallable(c
 	return task->get_future();
 }
 
+PolardbClient::ResetGlobalDatabaseNetworkOutcome PolardbClient::resetGlobalDatabaseNetwork(const ResetGlobalDatabaseNetworkRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return ResetGlobalDatabaseNetworkOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return ResetGlobalDatabaseNetworkOutcome(ResetGlobalDatabaseNetworkResult(outcome.result()));
+	else
+		return ResetGlobalDatabaseNetworkOutcome(outcome.error());
+}
+
+void PolardbClient::resetGlobalDatabaseNetworkAsync(const ResetGlobalDatabaseNetworkRequest& request, const ResetGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, resetGlobalDatabaseNetwork(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::ResetGlobalDatabaseNetworkOutcomeCallable PolardbClient::resetGlobalDatabaseNetworkCallable(const ResetGlobalDatabaseNetworkRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<ResetGlobalDatabaseNetworkOutcome()>>(
+			[this, request]()
+			{
+			return this->resetGlobalDatabaseNetwork(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 PolardbClient::RestartDBNodeOutcome PolardbClient::restartDBNode(const RestartDBNodeRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 18 - 0
polardb/src/model/CreateDBClusterRequest.cc

@@ -264,6 +264,15 @@ void CreateDBClusterRequest::setScaleRoNumMax(const std::string &scaleRoNumMax)
   setParameter(std::string("ScaleRoNumMax"), scaleRoNumMax);
 }
 
+std::string CreateDBClusterRequest::getStandbyAZ() const {
+  return standbyAZ_;
+}
+
+void CreateDBClusterRequest::setStandbyAZ(const std::string &standbyAZ) {
+  standbyAZ_ = standbyAZ;
+  setParameter(std::string("StandbyAZ"), standbyAZ);
+}
+
 std::string CreateDBClusterRequest::getClientToken() const {
   return clientToken_;
 }
@@ -408,6 +417,15 @@ void CreateDBClusterRequest::setDBVersion(const std::string &dBVersion) {
   setParameter(std::string("DBVersion"), dBVersion);
 }
 
+std::string CreateDBClusterRequest::getStrictConsistency() const {
+  return strictConsistency_;
+}
+
+void CreateDBClusterRequest::setStrictConsistency(const std::string &strictConsistency) {
+  strictConsistency_ = strictConsistency;
+  setParameter(std::string("StrictConsistency"), strictConsistency);
+}
+
 std::string CreateDBClusterRequest::getCloneDataPoint() const {
   return cloneDataPoint_;
 }

+ 32 - 0
polardb/src/model/CreateDBEndpointAddressRequest.cc

@@ -43,6 +43,29 @@ void CreateDBEndpointAddressRequest::setConnectionStringPrefix(const std::string
   setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix);
 }
 
+std::vector<CreateDBEndpointAddressRequest::ZoneInfo> CreateDBEndpointAddressRequest::getZoneInfo() const {
+  return zoneInfo_;
+}
+
+void CreateDBEndpointAddressRequest::setZoneInfo(const std::vector<CreateDBEndpointAddressRequest::ZoneInfo> &zoneInfo) {
+  zoneInfo_ = zoneInfo;
+  for(int dep1 = 0; dep1 != zoneInfo.size(); dep1++) {
+  auto zoneInfoObj = zoneInfo.at(dep1);
+  std::string zoneInfoObjStr = std::string("ZoneInfo") + "." + std::to_string(dep1 + 1);
+    setParameter(zoneInfoObjStr + ".VSwitchId", zoneInfoObj.vSwitchId);
+    setParameter(zoneInfoObjStr + ".ZoneId", zoneInfoObj.zoneId);
+  }
+}
+
+std::string CreateDBEndpointAddressRequest::getSecurityGroupId() const {
+  return securityGroupId_;
+}
+
+void CreateDBEndpointAddressRequest::setSecurityGroupId(const std::string &securityGroupId) {
+  securityGroupId_ = securityGroupId;
+  setParameter(std::string("SecurityGroupId"), securityGroupId);
+}
+
 std::string CreateDBEndpointAddressRequest::getDBEndpointId() const {
   return dBEndpointId_;
 }
@@ -106,3 +129,12 @@ void CreateDBEndpointAddressRequest::setNetType(const std::string &netType) {
   setParameter(std::string("NetType"), netType);
 }
 
+std::string CreateDBEndpointAddressRequest::getVPCId() const {
+  return vPCId_;
+}
+
+void CreateDBEndpointAddressRequest::setVPCId(const std::string &vPCId) {
+  vPCId_ = vPCId;
+  setParameter(std::string("VPCId"), vPCId);
+}
+

+ 7 - 0
polardb/src/model/DescribeDBClusterAttributeResult.cc

@@ -168,6 +168,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
 		storageType_ = value["StorageType"].asString();
 	if(!value["ServerlessType"].isNull())
 		serverlessType_ = value["ServerlessType"].asString();
+	if(!value["StrictConsistency"].isNull())
+		strictConsistency_ = value["StrictConsistency"].asString();
 	if(!value["ProxyCpuCores"].isNull())
 		proxyCpuCores_ = value["ProxyCpuCores"].asString();
 	if(!value["ProxyStandardCpuCores"].isNull())
@@ -338,6 +340,11 @@ std::string DescribeDBClusterAttributeResult::getLockMode()const
 	return lockMode_;
 }
 
+std::string DescribeDBClusterAttributeResult::getStrictConsistency()const
+{
+	return strictConsistency_;
+}
+
 long DescribeDBClusterAttributeResult::getStorageUsed()const
 {
 	return storageUsed_;

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

@@ -43,6 +43,15 @@ void DescribeDBClusterServerlessConfRequest::setAccessKeyId(const std::string &a
   setParameter(std::string("AccessKeyId"), accessKeyId);
 }
 
+std::string DescribeDBClusterServerlessConfRequest::getRequestType() const {
+  return requestType_;
+}
+
+void DescribeDBClusterServerlessConfRequest::setRequestType(const std::string &requestType) {
+  requestType_ = requestType;
+  setParameter(std::string("RequestType"), requestType);
+}
+
 std::string DescribeDBClusterServerlessConfRequest::getResourceOwnerAccount() const {
   return resourceOwnerAccount_;
 }

+ 14 - 0
polardb/src/model/DescribeDBClusterServerlessConfResult.cc

@@ -57,6 +57,10 @@ void DescribeDBClusterServerlessConfResult::parse(const std::string &payload)
 		scaleApRoNumMin_ = value["ScaleApRoNumMin"].asString();
 	if(!value["ScaleApRoNumMax"].isNull())
 		scaleApRoNumMax_ = value["ScaleApRoNumMax"].asString();
+	if(!value["Switchs"].isNull())
+		switchs_ = value["Switchs"].asString();
+	if(!value["DBMaxscaleId"].isNull())
+		dBMaxscaleId_ = value["DBMaxscaleId"].asString();
 
 }
 
@@ -65,6 +69,11 @@ std::string DescribeDBClusterServerlessConfResult::getScaleRoNumMin()const
 	return scaleRoNumMin_;
 }
 
+std::string DescribeDBClusterServerlessConfResult::getDBMaxscaleId()const
+{
+	return dBMaxscaleId_;
+}
+
 std::string DescribeDBClusterServerlessConfResult::getAllowShutDown()const
 {
 	return allowShutDown_;
@@ -105,3 +114,8 @@ std::string DescribeDBClusterServerlessConfResult::getSecondsUntilAutoPause()con
 	return secondsUntilAutoPause_;
 }
 
+std::string DescribeDBClusterServerlessConfResult::getSwitchs()const
+{
+	return switchs_;
+}
+

+ 4 - 0
polardb/src/model/DescribeDBClustersResult.cc

@@ -59,6 +59,8 @@ void DescribeDBClustersResult::parse(const std::string &payload)
 			itemsObject.storagePayType = valueItemsDBCluster["StoragePayType"].asString();
 		if(!valueItemsDBCluster["ServerlessType"].isNull())
 			itemsObject.serverlessType = valueItemsDBCluster["ServerlessType"].asString();
+		if(!valueItemsDBCluster["StrictConsistency"].isNull())
+			itemsObject.strictConsistency = valueItemsDBCluster["StrictConsistency"].asString();
 		if(!valueItemsDBCluster["DBNodeClass"].isNull())
 			itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString();
 		if(!valueItemsDBCluster["DBType"].isNull())
@@ -115,6 +117,8 @@ void DescribeDBClustersResult::parse(const std::string &payload)
 				dBNodesObject.dBNodeId = valueItemsDBClusterDBNodesDBNode["DBNodeId"].asString();
 			if(!valueItemsDBClusterDBNodesDBNode["RegionId"].isNull())
 				dBNodesObject.regionId = valueItemsDBClusterDBNodesDBNode["RegionId"].asString();
+			if(!valueItemsDBClusterDBNodesDBNode["Serverless"].isNull())
+				dBNodesObject.serverless = valueItemsDBClusterDBNodesDBNode["Serverless"].asString();
 			itemsObject.dBNodes.push_back(dBNodesObject);
 		}
 		items_.push_back(itemsObject);

+ 108 - 0
polardb/src/model/ResetGlobalDatabaseNetworkRequest.cc

@@ -0,0 +1,108 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/polardb/model/ResetGlobalDatabaseNetworkRequest.h>
+
+using AlibabaCloud::Polardb::Model::ResetGlobalDatabaseNetworkRequest;
+
+ResetGlobalDatabaseNetworkRequest::ResetGlobalDatabaseNetworkRequest()
+    : RpcServiceRequest("polardb", "2017-08-01", "ResetGlobalDatabaseNetwork") {
+  setMethod(HttpRequest::Method::Post);
+}
+
+ResetGlobalDatabaseNetworkRequest::~ResetGlobalDatabaseNetworkRequest() {}
+
+long ResetGlobalDatabaseNetworkRequest::getResourceOwnerId() const {
+  return resourceOwnerId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setResourceOwnerId(long resourceOwnerId) {
+  resourceOwnerId_ = resourceOwnerId;
+  setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getAccessKeyId() const {
+  return accessKeyId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setAccessKeyId(const std::string &accessKeyId) {
+  accessKeyId_ = accessKeyId;
+  setParameter(std::string("AccessKeyId"), accessKeyId);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getSecurityToken() const {
+  return securityToken_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setSecurityToken(const std::string &securityToken) {
+  securityToken_ = securityToken;
+  setParameter(std::string("SecurityToken"), securityToken);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getRegionId() const {
+  return regionId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setRegionId(const std::string &regionId) {
+  regionId_ = regionId;
+  setParameter(std::string("RegionId"), regionId);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getGDNId() const {
+  return gDNId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setGDNId(const std::string &gDNId) {
+  gDNId_ = gDNId;
+  setParameter(std::string("GDNId"), gDNId);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getResourceOwnerAccount() const {
+  return resourceOwnerAccount_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
+  resourceOwnerAccount_ = resourceOwnerAccount;
+  setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getDBClusterId() const {
+  return dBClusterId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setDBClusterId(const std::string &dBClusterId) {
+  dBClusterId_ = dBClusterId;
+  setParameter(std::string("DBClusterId"), dBClusterId);
+}
+
+std::string ResetGlobalDatabaseNetworkRequest::getOwnerAccount() const {
+  return ownerAccount_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setOwnerAccount(const std::string &ownerAccount) {
+  ownerAccount_ = ownerAccount;
+  setParameter(std::string("OwnerAccount"), ownerAccount);
+}
+
+long ResetGlobalDatabaseNetworkRequest::getOwnerId() const {
+  return ownerId_;
+}
+
+void ResetGlobalDatabaseNetworkRequest::setOwnerId(long ownerId) {
+  ownerId_ = ownerId;
+  setParameter(std::string("OwnerId"), std::to_string(ownerId));
+}
+

+ 44 - 0
polardb/src/model/ResetGlobalDatabaseNetworkResult.cc

@@ -0,0 +1,44 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/polardb/model/ResetGlobalDatabaseNetworkResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+ResetGlobalDatabaseNetworkResult::ResetGlobalDatabaseNetworkResult() :
+	ServiceResult()
+{}
+
+ResetGlobalDatabaseNetworkResult::ResetGlobalDatabaseNetworkResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+ResetGlobalDatabaseNetworkResult::~ResetGlobalDatabaseNetworkResult()
+{}
+
+void ResetGlobalDatabaseNetworkResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+
+}
+