Просмотр исходного кода

Support ModifyDBClusterPrimaryZone timer task.

sdk-team 5 лет назад
Родитель
Сommit
9c94805a97
39 измененных файлов с 1897 добавлено и 99 удалено
  1. 3 0
      CHANGELOG
  2. 22 2
      polardb/CMakeLists.txt
  3. 40 0
      polardb/include/alibabacloud/polardb/PolardbClient.h
  4. 3 0
      polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h
  5. 2 0
      polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h
  6. 3 0
      polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h
  7. 63 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h
  8. 51 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h
  9. 69 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h
  10. 55 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h
  11. 66 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h
  12. 55 0
      polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h
  13. 9 0
      polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h
  14. 22 23
      polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h
  15. 66 0
      polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h
  16. 59 0
      polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h
  17. 9 0
      polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h
  18. 0 3
      polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h
  19. 72 0
      polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h
  20. 49 0
      polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h
  21. 180 0
      polardb/src/PolardbClient.cc
  22. 11 0
      polardb/src/model/CreateDBClusterRequest.cc
  23. 7 0
      polardb/src/model/DescribeDBClusterAttributeResult.cc
  24. 11 0
      polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc
  25. 10 10
      polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc
  26. 95 0
      polardb/src/model/DescribeSQLExplorerPolicyRequest.cc
  27. 51 0
      polardb/src/model/DescribeSQLExplorerPolicyResult.cc
  28. 117 0
      polardb/src/model/DescribeSQLExplorerRetentionRequest.cc
  29. 65 0
      polardb/src/model/DescribeSQLExplorerRetentionResult.cc
  30. 106 0
      polardb/src/model/DescribeSQLExplorerVersionRequest.cc
  31. 65 0
      polardb/src/model/DescribeSQLExplorerVersionResult.cc
  32. 33 0
      polardb/src/model/DescribeScheduleTasksRequest.cc
  33. 38 50
      polardb/src/model/DescribeScheduleTasksResult.cc
  34. 106 0
      polardb/src/model/DescribeSqlLogTrialStatusRequest.cc
  35. 79 0
      polardb/src/model/DescribeSqlLogTrialStatusResult.cc
  36. 33 0
      polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc
  37. 0 11
      polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc
  38. 128 0
      polardb/src/model/UpgradeDBClusterVersionRequest.cc
  39. 44 0
      polardb/src/model/UpgradeDBClusterVersionResult.cc

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-01-26 Version: patch
+- Support ModifyDBClusterPrimaryZone timer task.
+
 2021-01-25 Version: patch
 - Regenerate SDK to override list implement.
 

+ 22 - 2
polardb/CMakeLists.txt

@@ -125,10 +125,18 @@ set(polardb_public_header_model
 	include/alibabacloud/polardb/model/DescribePendingMaintenanceActionsResult.h
 	include/alibabacloud/polardb/model/DescribeRegionsRequest.h
 	include/alibabacloud/polardb/model/DescribeRegionsResult.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h
+	include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h
 	include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h
 	include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h
 	include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h
 	include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h
+	include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h
+	include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h
 	include/alibabacloud/polardb/model/DescribeTasksRequest.h
 	include/alibabacloud/polardb/model/DescribeTasksResult.h
 	include/alibabacloud/polardb/model/FailoverDBClusterRequest.h
@@ -190,7 +198,9 @@ set(polardb_public_header_model
 	include/alibabacloud/polardb/model/UntagResourcesRequest.h
 	include/alibabacloud/polardb/model/UntagResourcesResult.h
 	include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h
-	include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h )
+	include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h
+	include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h
+	include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h )
 
 set(polardb_src 
 	src/PolardbClient.cc
@@ -298,10 +308,18 @@ set(polardb_src
 	src/model/DescribePendingMaintenanceActionsResult.cc
 	src/model/DescribeRegionsRequest.cc
 	src/model/DescribeRegionsResult.cc
+	src/model/DescribeSQLExplorerPolicyRequest.cc
+	src/model/DescribeSQLExplorerPolicyResult.cc
+	src/model/DescribeSQLExplorerRetentionRequest.cc
+	src/model/DescribeSQLExplorerRetentionResult.cc
+	src/model/DescribeSQLExplorerVersionRequest.cc
+	src/model/DescribeSQLExplorerVersionResult.cc
 	src/model/DescribeScheduleTasksRequest.cc
 	src/model/DescribeScheduleTasksResult.cc
 	src/model/DescribeSlowLogRecordsRequest.cc
 	src/model/DescribeSlowLogRecordsResult.cc
+	src/model/DescribeSqlLogTrialStatusRequest.cc
+	src/model/DescribeSqlLogTrialStatusResult.cc
 	src/model/DescribeTasksRequest.cc
 	src/model/DescribeTasksResult.cc
 	src/model/FailoverDBClusterRequest.cc
@@ -363,7 +381,9 @@ set(polardb_src
 	src/model/UntagResourcesRequest.cc
 	src/model/UntagResourcesResult.cc
 	src/model/UpgradeDBClusterMinorVersionRequest.cc
-	src/model/UpgradeDBClusterMinorVersionResult.cc )
+	src/model/UpgradeDBClusterMinorVersionResult.cc
+	src/model/UpgradeDBClusterVersionRequest.cc
+	src/model/UpgradeDBClusterVersionResult.cc )
 
 add_library(polardb ${LIB_TYPE}
 	${polardb_public_header}

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

@@ -126,10 +126,18 @@
 #include "model/DescribePendingMaintenanceActionsResult.h"
 #include "model/DescribeRegionsRequest.h"
 #include "model/DescribeRegionsResult.h"
+#include "model/DescribeSQLExplorerPolicyRequest.h"
+#include "model/DescribeSQLExplorerPolicyResult.h"
+#include "model/DescribeSQLExplorerRetentionRequest.h"
+#include "model/DescribeSQLExplorerRetentionResult.h"
+#include "model/DescribeSQLExplorerVersionRequest.h"
+#include "model/DescribeSQLExplorerVersionResult.h"
 #include "model/DescribeScheduleTasksRequest.h"
 #include "model/DescribeScheduleTasksResult.h"
 #include "model/DescribeSlowLogRecordsRequest.h"
 #include "model/DescribeSlowLogRecordsResult.h"
+#include "model/DescribeSqlLogTrialStatusRequest.h"
+#include "model/DescribeSqlLogTrialStatusResult.h"
 #include "model/DescribeTasksRequest.h"
 #include "model/DescribeTasksResult.h"
 #include "model/FailoverDBClusterRequest.h"
@@ -192,6 +200,8 @@
 #include "model/UntagResourcesResult.h"
 #include "model/UpgradeDBClusterMinorVersionRequest.h"
 #include "model/UpgradeDBClusterMinorVersionResult.h"
+#include "model/UpgradeDBClusterVersionRequest.h"
+#include "model/UpgradeDBClusterVersionResult.h"
 
 
 namespace AlibabaCloud
@@ -357,12 +367,24 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
 			typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
+			typedef Outcome<Error, Model::DescribeSQLExplorerPolicyResult> DescribeSQLExplorerPolicyOutcome;
+			typedef std::future<DescribeSQLExplorerPolicyOutcome> DescribeSQLExplorerPolicyOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerPolicyRequest&, const DescribeSQLExplorerPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerPolicyAsyncHandler;
+			typedef Outcome<Error, Model::DescribeSQLExplorerRetentionResult> DescribeSQLExplorerRetentionOutcome;
+			typedef std::future<DescribeSQLExplorerRetentionOutcome> DescribeSQLExplorerRetentionOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerRetentionRequest&, const DescribeSQLExplorerRetentionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerRetentionAsyncHandler;
+			typedef Outcome<Error, Model::DescribeSQLExplorerVersionResult> DescribeSQLExplorerVersionOutcome;
+			typedef std::future<DescribeSQLExplorerVersionOutcome> DescribeSQLExplorerVersionOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerVersionRequest&, const DescribeSQLExplorerVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerVersionAsyncHandler;
 			typedef Outcome<Error, Model::DescribeScheduleTasksResult> DescribeScheduleTasksOutcome;
 			typedef std::future<DescribeScheduleTasksOutcome> DescribeScheduleTasksOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::DescribeScheduleTasksRequest&, const DescribeScheduleTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScheduleTasksAsyncHandler;
 			typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
 			typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
+			typedef Outcome<Error, Model::DescribeSqlLogTrialStatusResult> DescribeSqlLogTrialStatusOutcome;
+			typedef std::future<DescribeSqlLogTrialStatusOutcome> DescribeSqlLogTrialStatusOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::DescribeSqlLogTrialStatusRequest&, const DescribeSqlLogTrialStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSqlLogTrialStatusAsyncHandler;
 			typedef Outcome<Error, Model::DescribeTasksResult> DescribeTasksOutcome;
 			typedef std::future<DescribeTasksOutcome> DescribeTasksOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::DescribeTasksRequest&, const DescribeTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTasksAsyncHandler;
@@ -456,6 +478,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::UpgradeDBClusterMinorVersionResult> UpgradeDBClusterMinorVersionOutcome;
 			typedef std::future<UpgradeDBClusterMinorVersionOutcome> UpgradeDBClusterMinorVersionOutcomeCallable;
 			typedef std::function<void(const PolardbClient*, const Model::UpgradeDBClusterMinorVersionRequest&, const UpgradeDBClusterMinorVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeDBClusterMinorVersionAsyncHandler;
+			typedef Outcome<Error, Model::UpgradeDBClusterVersionResult> UpgradeDBClusterVersionOutcome;
+			typedef std::future<UpgradeDBClusterVersionOutcome> UpgradeDBClusterVersionOutcomeCallable;
+			typedef std::function<void(const PolardbClient*, const Model::UpgradeDBClusterVersionRequest&, const UpgradeDBClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeDBClusterVersionAsyncHandler;
 
 			PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration);
 			PolardbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -617,12 +642,24 @@ namespace AlibabaCloud
 			DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
 			void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
+			DescribeSQLExplorerPolicyOutcome describeSQLExplorerPolicy(const Model::DescribeSQLExplorerPolicyRequest &request)const;
+			void describeSQLExplorerPolicyAsync(const Model::DescribeSQLExplorerPolicyRequest& request, const DescribeSQLExplorerPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeSQLExplorerPolicyOutcomeCallable describeSQLExplorerPolicyCallable(const Model::DescribeSQLExplorerPolicyRequest& request) const;
+			DescribeSQLExplorerRetentionOutcome describeSQLExplorerRetention(const Model::DescribeSQLExplorerRetentionRequest &request)const;
+			void describeSQLExplorerRetentionAsync(const Model::DescribeSQLExplorerRetentionRequest& request, const DescribeSQLExplorerRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeSQLExplorerRetentionOutcomeCallable describeSQLExplorerRetentionCallable(const Model::DescribeSQLExplorerRetentionRequest& request) const;
+			DescribeSQLExplorerVersionOutcome describeSQLExplorerVersion(const Model::DescribeSQLExplorerVersionRequest &request)const;
+			void describeSQLExplorerVersionAsync(const Model::DescribeSQLExplorerVersionRequest& request, const DescribeSQLExplorerVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeSQLExplorerVersionOutcomeCallable describeSQLExplorerVersionCallable(const Model::DescribeSQLExplorerVersionRequest& request) const;
 			DescribeScheduleTasksOutcome describeScheduleTasks(const Model::DescribeScheduleTasksRequest &request)const;
 			void describeScheduleTasksAsync(const Model::DescribeScheduleTasksRequest& request, const DescribeScheduleTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeScheduleTasksOutcomeCallable describeScheduleTasksCallable(const Model::DescribeScheduleTasksRequest& request) const;
 			DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
 			void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
+			DescribeSqlLogTrialStatusOutcome describeSqlLogTrialStatus(const Model::DescribeSqlLogTrialStatusRequest &request)const;
+			void describeSqlLogTrialStatusAsync(const Model::DescribeSqlLogTrialStatusRequest& request, const DescribeSqlLogTrialStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			DescribeSqlLogTrialStatusOutcomeCallable describeSqlLogTrialStatusCallable(const Model::DescribeSqlLogTrialStatusRequest& request) const;
 			DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const;
 			void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const;
@@ -716,6 +753,9 @@ namespace AlibabaCloud
 			UpgradeDBClusterMinorVersionOutcome upgradeDBClusterMinorVersion(const Model::UpgradeDBClusterMinorVersionRequest &request)const;
 			void upgradeDBClusterMinorVersionAsync(const Model::UpgradeDBClusterMinorVersionRequest& request, const UpgradeDBClusterMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			UpgradeDBClusterMinorVersionOutcomeCallable upgradeDBClusterMinorVersionCallable(const Model::UpgradeDBClusterMinorVersionRequest& request) const;
+			UpgradeDBClusterVersionOutcome upgradeDBClusterVersion(const Model::UpgradeDBClusterVersionRequest &request)const;
+			void upgradeDBClusterVersionAsync(const Model::UpgradeDBClusterVersionRequest& request, const UpgradeDBClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			UpgradeDBClusterVersionOutcomeCallable upgradeDBClusterVersionCallable(const Model::UpgradeDBClusterVersionRequest& request) const;
 	
 		private:
 			std::shared_ptr<EndpointProvider> endpointProvider_;

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

@@ -59,6 +59,8 @@ namespace AlibabaCloud
 				void setVSwitchId(const std::string& vSwitchId);
 				std::string getSecurityIPList()const;
 				void setSecurityIPList(const std::string& securityIPList);
+				std::string getDBMinorVersion()const;
+				void setDBMinorVersion(const std::string& dBMinorVersion);
 				bool getAutoRenew()const;
 				void setAutoRenew(bool autoRenew);
 				std::string getZoneId()const;
@@ -109,6 +111,7 @@ namespace AlibabaCloud
 				long ownerId_;
 				std::string vSwitchId_;
 				std::string securityIPList_;
+				std::string dBMinorVersion_;
 				bool autoRenew_;
 				std::string zoneId_;
 				bool tDEStatus_;

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

@@ -77,6 +77,7 @@ namespace AlibabaCloud
 				std::string getPayType()const;
 				std::string getLockMode()const;
 				long getStorageUsed()const;
+				std::string getDBVersionStatus()const;
 				std::string getCreationTime()const;
 				std::string getRegionId()const;
 				long getSQLSize()const;
@@ -108,6 +109,7 @@ namespace AlibabaCloud
 				std::string payType_;
 				std::string lockMode_;
 				long storageUsed_;
+				std::string dBVersionStatus_;
 				std::string creationTime_;
 				std::string regionId_;
 				long sQLSize_;

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

@@ -43,6 +43,8 @@ namespace AlibabaCloud
 				void setSecurityToken(const std::string& securityToken);
 				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;
@@ -53,6 +55,7 @@ namespace AlibabaCloud
 				std::string accessKeyId_;
 				std::string securityToken_;
 				std::string resourceOwnerAccount_;
+				std::string dBClusterId_;
 				std::string ownerAccount_;
 				long ownerId_;
 

+ 63 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h

@@ -0,0 +1,63 @@
+/*
+ * 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_DESCRIBESQLEXPLORERPOLICYREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerPolicyRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeSQLExplorerPolicyRequest();
+				~DescribeSQLExplorerPolicyRequest();
+
+				long getResourceOwnerId()const;
+				void setResourceOwnerId(long resourceOwnerId);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
+				std::string getDBInstanceId()const;
+				void setDBInstanceId(const std::string& dBInstanceId);
+				std::string getResourceOwnerAccount()const;
+				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
+				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 dBInstanceId_;
+				std::string resourceOwnerAccount_;
+				std::string ownerAccount_;
+				long ownerId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_

+ 51 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h

@@ -0,0 +1,51 @@
+/*
+ * 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_DESCRIBESQLEXPLORERPOLICYRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_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 DescribeSQLExplorerPolicyResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeSQLExplorerPolicyResult();
+				explicit DescribeSQLExplorerPolicyResult(const std::string &payload);
+				~DescribeSQLExplorerPolicyResult();
+				std::string getSQLCollectorStatus()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string sQLCollectorStatus_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_

+ 69 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h

@@ -0,0 +1,69 @@
+/*
+ * 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_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerRetentionRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeSQLExplorerRetentionRequest();
+				~DescribeSQLExplorerRetentionRequest();
+
+				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 getDBInstanceId()const;
+				void setDBInstanceId(const std::string& dBInstanceId);
+				std::string getResourceOwnerAccount()const;
+				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
+				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 dBInstanceId_;
+				std::string resourceOwnerAccount_;
+				std::string ownerAccount_;
+				long ownerId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_

+ 55 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h

@@ -0,0 +1,55 @@
+/*
+ * 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_DESCRIBESQLEXPLORERRETENTIONRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONRESULT_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 DescribeSQLExplorerRetentionResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeSQLExplorerRetentionResult();
+				explicit DescribeSQLExplorerRetentionResult(const std::string &payload);
+				~DescribeSQLExplorerRetentionResult();
+				std::string getConfigValue()const;
+				int getDBInstanceID()const;
+				std::string getDBInstanceName()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string configValue_;
+				int dBInstanceID_;
+				std::string dBInstanceName_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONRESULT_H_

+ 66 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.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_DESCRIBESQLEXPLORERVERSIONREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerVersionRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeSQLExplorerVersionRequest();
+				~DescribeSQLExplorerVersionRequest();
+
+				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 getDBInstanceId()const;
+				void setDBInstanceId(const std::string& dBInstanceId);
+				std::string getResourceOwnerAccount()const;
+				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
+				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 dBInstanceId_;
+				std::string resourceOwnerAccount_;
+				std::string ownerAccount_;
+				long ownerId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONREQUEST_H_

+ 55 - 0
polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h

@@ -0,0 +1,55 @@
+/*
+ * 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_DESCRIBESQLEXPLORERVERSIONRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONRESULT_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 DescribeSQLExplorerVersionResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeSQLExplorerVersionResult();
+				explicit DescribeSQLExplorerVersionResult(const std::string &payload);
+				~DescribeSQLExplorerVersionResult();
+				std::string getConfigValue()const;
+				int getDBInstanceID()const;
+				std::string getDBInstanceName()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string configValue_;
+				int dBInstanceID_;
+				std::string dBInstanceName_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONRESULT_H_

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

@@ -37,10 +37,14 @@ namespace AlibabaCloud
 
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
+				int getPageNumber()const;
+				void setPageNumber(int pageNumber);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getRegionId()const;
 				void setRegionId(const std::string& regionId);
+				int getPageSize()const;
+				void setPageSize(int pageSize);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
 				std::string getDBClusterId()const;
@@ -49,17 +53,22 @@ namespace AlibabaCloud
 				void setOwnerAccount(const std::string& ownerAccount);
 				long getOwnerId()const;
 				void setOwnerId(long ownerId);
+				std::string getTaskAction()const;
+				void setTaskAction(const std::string& taskAction);
 				std::string getStatus()const;
 				void setStatus(const std::string& status);
 
             private:
 				long resourceOwnerId_;
+				int pageNumber_;
 				std::string accessKeyId_;
 				std::string regionId_;
+				int pageSize_;
 				std::string resourceOwnerAccount_;
 				std::string dBClusterId_;
 				std::string ownerAccount_;
 				long ownerId_;
+				std::string taskAction_;
 				std::string status_;
 
 			};

+ 22 - 23
polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h

@@ -32,26 +32,27 @@ namespace AlibabaCloud
 			class ALIBABACLOUD_POLARDB_EXPORT DescribeScheduleTasksResult : public ServiceResult
 			{
 			public:
-				struct Items
+				struct Data
 				{
-					int maxRetryTime;
-					std::string status;
-					std::string action;
-					std::string args;
-					long plannedTime;
-					std::string taskId;
-					std::string productCode;
-					long gmtModified;
-					std::string dBClusterId;
-					long plannedStartTime;
-					std::string mutex;
-					std::string orderId;
-					std::string response;
-					long gmtCreate;
-					int type;
-					std::string region;
-					int retryTime;
-					long plannedEndTime;
+					struct TimerInfosItem
+					{
+						std::string status;
+						long gmtCreate;
+						std::string action;
+						std::string taskId;
+						std::string plannedTime;
+						std::string plannedStartTime;
+						std::string dBClusterId;
+						long gmtModified;
+						std::string region;
+						std::string orderId;
+						std::string plannedEndTime;
+						int aliUid;
+					};
+					std::vector<TimerInfosItem> timerInfos;
+					int totalRecordCount;
+					int pageSize;
+					int pageNumber;
 				};
 
 
@@ -59,8 +60,7 @@ namespace AlibabaCloud
 				explicit DescribeScheduleTasksResult(const std::string &payload);
 				~DescribeScheduleTasksResult();
 				std::string getMessage()const;
-				int getHttpStatusCode()const;
-				std::vector<Items> getData()const;
+				Data getData()const;
 				std::string getCode()const;
 				bool getSuccess()const;
 
@@ -68,8 +68,7 @@ namespace AlibabaCloud
 				void parse(const std::string &payload);
 			private:
 				std::string message_;
-				int httpStatusCode_;
-				std::vector<Items> data_;
+				Data data_;
 				std::string code_;
 				bool success_;
 

+ 66 - 0
polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.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_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT DescribeSqlLogTrialStatusRequest : public RpcServiceRequest
+			{
+
+			public:
+				DescribeSqlLogTrialStatusRequest();
+				~DescribeSqlLogTrialStatusRequest();
+
+				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 getDBInstanceId()const;
+				void setDBInstanceId(const std::string& dBInstanceId);
+				std::string getResourceOwnerAccount()const;
+				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
+				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 dBInstanceId_;
+				std::string resourceOwnerAccount_;
+				std::string ownerAccount_;
+				long ownerId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_

+ 59 - 0
polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h

@@ -0,0 +1,59 @@
+/*
+ * 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_DESCRIBESQLLOGTRIALSTATUSRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSRESULT_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 DescribeSqlLogTrialStatusResult : public ServiceResult
+			{
+			public:
+
+
+				DescribeSqlLogTrialStatusResult();
+				explicit DescribeSqlLogTrialStatusResult(const std::string &payload);
+				~DescribeSqlLogTrialStatusResult();
+				std::string getEverTrialed()const;
+				std::string getOpenTrial()const;
+				std::string getRemainDays()const;
+				std::string getUsedDays()const;
+				std::string getDBInstanceName()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				std::string everTrialed_;
+				std::string openTrial_;
+				std::string remainDays_;
+				std::string usedDays_;
+				std::string dBInstanceName_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSRESULT_H_

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

@@ -37,6 +37,8 @@ namespace AlibabaCloud
 
 				long getResourceOwnerId()const;
 				void setResourceOwnerId(long resourceOwnerId);
+				std::string getPlannedEndTime()const;
+				void setPlannedEndTime(const std::string& plannedEndTime);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
 				std::string getResourceOwnerAccount()const;
@@ -49,18 +51,25 @@ namespace AlibabaCloud
 				void setOwnerId(long ownerId);
 				std::string getVSwitchId()const;
 				void setVSwitchId(const std::string& vSwitchId);
+				std::string getPlannedStartTime()const;
+				void setPlannedStartTime(const std::string& plannedStartTime);
 				std::string getZoneId()const;
 				void setZoneId(const std::string& zoneId);
+				bool getFromTimeService()const;
+				void setFromTimeService(bool fromTimeService);
 
             private:
 				long resourceOwnerId_;
+				std::string plannedEndTime_;
 				std::string accessKeyId_;
 				std::string resourceOwnerAccount_;
 				std::string dBClusterId_;
 				std::string ownerAccount_;
 				long ownerId_;
 				std::string vSwitchId_;
+				std::string plannedStartTime_;
 				std::string zoneId_;
+				bool fromTimeService_;
 
 			};
 		}

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

@@ -41,8 +41,6 @@ namespace AlibabaCloud
 				void setPlannedEndTime(const std::string& plannedEndTime);
 				std::string getAccessKeyId()const;
 				void setAccessKeyId(const std::string& accessKeyId);
-				std::string getSwitchTimeMode()const;
-				void setSwitchTimeMode(const std::string& switchTimeMode);
 				std::string getResourceOwnerAccount()const;
 				void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
 				std::string getDBClusterId()const;
@@ -60,7 +58,6 @@ namespace AlibabaCloud
 				long resourceOwnerId_;
 				std::string plannedEndTime_;
 				std::string accessKeyId_;
-				std::string switchTimeMode_;
 				std::string resourceOwnerAccount_;
 				std::string dBClusterId_;
 				std::string ownerAccount_;

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

@@ -0,0 +1,72 @@
+/*
+ * 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_UPGRADEDBCLUSTERVERSIONREQUEST_H_
+#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/polardb/PolardbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Polardb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterVersionRequest : public RpcServiceRequest
+			{
+
+			public:
+				UpgradeDBClusterVersionRequest();
+				~UpgradeDBClusterVersionRequest();
+
+				long getResourceOwnerId()const;
+				void setResourceOwnerId(long resourceOwnerId);
+				std::string getPlannedEndTime()const;
+				void setPlannedEndTime(const std::string& plannedEndTime);
+				std::string getAccessKeyId()const;
+				void setAccessKeyId(const std::string& accessKeyId);
+				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);
+				std::string getPlannedStartTime()const;
+				void setPlannedStartTime(const std::string& plannedStartTime);
+				bool getFromTimeService()const;
+				void setFromTimeService(bool fromTimeService);
+
+            private:
+				long resourceOwnerId_;
+				std::string plannedEndTime_;
+				std::string accessKeyId_;
+				std::string resourceOwnerAccount_;
+				std::string dBClusterId_;
+				std::string ownerAccount_;
+				long ownerId_;
+				std::string plannedStartTime_;
+				bool fromTimeService_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONREQUEST_H_

+ 49 - 0
polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.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_UPGRADEDBCLUSTERVERSIONRESULT_H_
+#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONRESULT_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 UpgradeDBClusterVersionResult : public ServiceResult
+			{
+			public:
+
+
+				UpgradeDBClusterVersionResult();
+				explicit UpgradeDBClusterVersionResult(const std::string &payload);
+				~UpgradeDBClusterVersionResult();
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONRESULT_H_

+ 180 - 0
polardb/src/PolardbClient.cc

@@ -1923,6 +1923,114 @@ PolardbClient::DescribeRegionsOutcomeCallable PolardbClient::describeRegionsCall
 	return task->get_future();
 }
 
+PolardbClient::DescribeSQLExplorerPolicyOutcome PolardbClient::describeSQLExplorerPolicy(const DescribeSQLExplorerPolicyRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeSQLExplorerPolicyOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeSQLExplorerPolicyOutcome(DescribeSQLExplorerPolicyResult(outcome.result()));
+	else
+		return DescribeSQLExplorerPolicyOutcome(outcome.error());
+}
+
+void PolardbClient::describeSQLExplorerPolicyAsync(const DescribeSQLExplorerPolicyRequest& request, const DescribeSQLExplorerPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeSQLExplorerPolicy(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::DescribeSQLExplorerPolicyOutcomeCallable PolardbClient::describeSQLExplorerPolicyCallable(const DescribeSQLExplorerPolicyRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerPolicyOutcome()>>(
+			[this, request]()
+			{
+			return this->describeSQLExplorerPolicy(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+PolardbClient::DescribeSQLExplorerRetentionOutcome PolardbClient::describeSQLExplorerRetention(const DescribeSQLExplorerRetentionRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeSQLExplorerRetentionOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeSQLExplorerRetentionOutcome(DescribeSQLExplorerRetentionResult(outcome.result()));
+	else
+		return DescribeSQLExplorerRetentionOutcome(outcome.error());
+}
+
+void PolardbClient::describeSQLExplorerRetentionAsync(const DescribeSQLExplorerRetentionRequest& request, const DescribeSQLExplorerRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeSQLExplorerRetention(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::DescribeSQLExplorerRetentionOutcomeCallable PolardbClient::describeSQLExplorerRetentionCallable(const DescribeSQLExplorerRetentionRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerRetentionOutcome()>>(
+			[this, request]()
+			{
+			return this->describeSQLExplorerRetention(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
+PolardbClient::DescribeSQLExplorerVersionOutcome PolardbClient::describeSQLExplorerVersion(const DescribeSQLExplorerVersionRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeSQLExplorerVersionOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeSQLExplorerVersionOutcome(DescribeSQLExplorerVersionResult(outcome.result()));
+	else
+		return DescribeSQLExplorerVersionOutcome(outcome.error());
+}
+
+void PolardbClient::describeSQLExplorerVersionAsync(const DescribeSQLExplorerVersionRequest& request, const DescribeSQLExplorerVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeSQLExplorerVersion(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::DescribeSQLExplorerVersionOutcomeCallable PolardbClient::describeSQLExplorerVersionCallable(const DescribeSQLExplorerVersionRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerVersionOutcome()>>(
+			[this, request]()
+			{
+			return this->describeSQLExplorerVersion(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 PolardbClient::DescribeScheduleTasksOutcome PolardbClient::describeScheduleTasks(const DescribeScheduleTasksRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1995,6 +2103,42 @@ PolardbClient::DescribeSlowLogRecordsOutcomeCallable PolardbClient::describeSlow
 	return task->get_future();
 }
 
+PolardbClient::DescribeSqlLogTrialStatusOutcome PolardbClient::describeSqlLogTrialStatus(const DescribeSqlLogTrialStatusRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return DescribeSqlLogTrialStatusOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return DescribeSqlLogTrialStatusOutcome(DescribeSqlLogTrialStatusResult(outcome.result()));
+	else
+		return DescribeSqlLogTrialStatusOutcome(outcome.error());
+}
+
+void PolardbClient::describeSqlLogTrialStatusAsync(const DescribeSqlLogTrialStatusRequest& request, const DescribeSqlLogTrialStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, describeSqlLogTrialStatus(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::DescribeSqlLogTrialStatusOutcomeCallable PolardbClient::describeSqlLogTrialStatusCallable(const DescribeSqlLogTrialStatusRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<DescribeSqlLogTrialStatusOutcome()>>(
+			[this, request]()
+			{
+			return this->describeSqlLogTrialStatus(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 PolardbClient::DescribeTasksOutcome PolardbClient::describeTasks(const DescribeTasksRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3111,3 +3255,39 @@ PolardbClient::UpgradeDBClusterMinorVersionOutcomeCallable PolardbClient::upgrad
 	return task->get_future();
 }
 
+PolardbClient::UpgradeDBClusterVersionOutcome PolardbClient::upgradeDBClusterVersion(const UpgradeDBClusterVersionRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return UpgradeDBClusterVersionOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return UpgradeDBClusterVersionOutcome(UpgradeDBClusterVersionResult(outcome.result()));
+	else
+		return UpgradeDBClusterVersionOutcome(outcome.error());
+}
+
+void PolardbClient::upgradeDBClusterVersionAsync(const UpgradeDBClusterVersionRequest& request, const UpgradeDBClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, upgradeDBClusterVersion(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+PolardbClient::UpgradeDBClusterVersionOutcomeCallable PolardbClient::upgradeDBClusterVersionCallable(const UpgradeDBClusterVersionRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<UpgradeDBClusterVersionOutcome()>>(
+			[this, request]()
+			{
+			return this->upgradeDBClusterVersion(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+

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

@@ -159,6 +159,17 @@ void CreateDBClusterRequest::setSecurityIPList(const std::string& securityIPList
 	setParameter("SecurityIPList", securityIPList);
 }
 
+std::string CreateDBClusterRequest::getDBMinorVersion()const
+{
+	return dBMinorVersion_;
+}
+
+void CreateDBClusterRequest::setDBMinorVersion(const std::string& dBMinorVersion)
+{
+	dBMinorVersion_ = dBMinorVersion;
+	setParameter("DBMinorVersion", dBMinorVersion);
+}
+
 bool CreateDBClusterRequest::getAutoRenew()const
 {
 	return autoRenew_;

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

@@ -123,6 +123,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
 		dataLevel1BackupChainSize_ = std::stol(value["DataLevel1BackupChainSize"].asString());
 	if(!value["Category"].isNull())
 		category_ = value["Category"].asString();
+	if(!value["DBVersionStatus"].isNull())
+		dBVersionStatus_ = value["DBVersionStatus"].asString();
 
 }
 
@@ -241,6 +243,11 @@ long DescribeDBClusterAttributeResult::getStorageUsed()const
 	return storageUsed_;
 }
 
+std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const
+{
+	return dBVersionStatus_;
+}
+
 std::string DescribeDBClusterAttributeResult::getCreationTime()const
 {
 	return creationTime_;

+ 11 - 0
polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc

@@ -71,6 +71,17 @@ void DescribeGlobalDatabaseNetworksRequest::setResourceOwnerAccount(const std::s
 	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
 }
 
+std::string DescribeGlobalDatabaseNetworksRequest::getDBClusterId()const
+{
+	return dBClusterId_;
+}
+
+void DescribeGlobalDatabaseNetworksRequest::setDBClusterId(const std::string& dBClusterId)
+{
+	dBClusterId_ = dBClusterId;
+	setParameter("DBClusterId", dBClusterId);
+}
+
 std::string DescribeGlobalDatabaseNetworksRequest::getOwnerAccount()const
 {
 	return ownerAccount_;

+ 10 - 10
polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc

@@ -43,38 +43,38 @@ void DescribeGlobalDatabaseNetworksResult::parse(const std::string &payload)
 	for (auto valueItemsGlobalDatabaseNetwork : allItemsNode)
 	{
 		GlobalDatabaseNetwork itemsObject;
-		if(!valueItemsGlobalDatabaseNetwork["GDNId"].isNull())
-			itemsObject.gDNId = valueItemsGlobalDatabaseNetwork["GDNId"].asString();
 		if(!valueItemsGlobalDatabaseNetwork["GDNStatus"].isNull())
 			itemsObject.gDNStatus = valueItemsGlobalDatabaseNetwork["GDNStatus"].asString();
-		if(!valueItemsGlobalDatabaseNetwork["GDNDescription"].isNull())
-			itemsObject.gDNDescription = valueItemsGlobalDatabaseNetwork["GDNDescription"].asString();
-		if(!valueItemsGlobalDatabaseNetwork["DBType"].isNull())
-			itemsObject.dBType = valueItemsGlobalDatabaseNetwork["DBType"].asString();
 		if(!valueItemsGlobalDatabaseNetwork["DBVersion"].isNull())
 			itemsObject.dBVersion = valueItemsGlobalDatabaseNetwork["DBVersion"].asString();
+		if(!valueItemsGlobalDatabaseNetwork["GDNId"].isNull())
+			itemsObject.gDNId = valueItemsGlobalDatabaseNetwork["GDNId"].asString();
 		if(!valueItemsGlobalDatabaseNetwork["CreateTime"].isNull())
 			itemsObject.createTime = valueItemsGlobalDatabaseNetwork["CreateTime"].asString();
+		if(!valueItemsGlobalDatabaseNetwork["GDNDescription"].isNull())
+			itemsObject.gDNDescription = valueItemsGlobalDatabaseNetwork["GDNDescription"].asString();
+		if(!valueItemsGlobalDatabaseNetwork["DBType"].isNull())
+			itemsObject.dBType = valueItemsGlobalDatabaseNetwork["DBType"].asString();
 		auto allDBClustersNode = valueItemsGlobalDatabaseNetwork["DBClusters"]["DBCluster"];
 		for (auto valueItemsGlobalDatabaseNetworkDBClustersDBCluster : allDBClustersNode)
 		{
 			GlobalDatabaseNetwork::DBCluster dBClustersObject;
+			if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].isNull())
+				dBClustersObject.role = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].asString();
 			if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["DBClusterId"].isNull())
 				dBClustersObject.dBClusterId = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["DBClusterId"].asString();
 			if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["RegionId"].isNull())
 				dBClustersObject.regionId = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["RegionId"].asString();
-			if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].isNull())
-				dBClustersObject.role = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].asString();
 			itemsObject.dBClusters.push_back(dBClustersObject);
 		}
 		items_.push_back(itemsObject);
 	}
-	if(!value["PageNumber"].isNull())
-		pageNumber_ = std::stoi(value["PageNumber"].asString());
 	if(!value["TotalRecordCount"].isNull())
 		totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
 	if(!value["PageRecordCount"].isNull())
 		pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
+	if(!value["PageNumber"].isNull())
+		pageNumber_ = std::stoi(value["PageNumber"].asString());
 
 }
 

+ 95 - 0
polardb/src/model/DescribeSQLExplorerPolicyRequest.cc

@@ -0,0 +1,95 @@
+/*
+ * 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/DescribeSQLExplorerPolicyRequest.h>
+
+using AlibabaCloud::Polardb::Model::DescribeSQLExplorerPolicyRequest;
+
+DescribeSQLExplorerPolicyRequest::DescribeSQLExplorerPolicyRequest() :
+	RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerPolicy")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeSQLExplorerPolicyRequest::~DescribeSQLExplorerPolicyRequest()
+{}
+
+long DescribeSQLExplorerPolicyRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string DescribeSQLExplorerPolicyRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string DescribeSQLExplorerPolicyRequest::getDBInstanceId()const
+{
+	return dBInstanceId_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
+{
+	dBInstanceId_ = dBInstanceId;
+	setParameter("DBInstanceId", dBInstanceId);
+}
+
+std::string DescribeSQLExplorerPolicyRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string DescribeSQLExplorerPolicyRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long DescribeSQLExplorerPolicyRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void DescribeSQLExplorerPolicyRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+

+ 51 - 0
polardb/src/model/DescribeSQLExplorerPolicyResult.cc

@@ -0,0 +1,51 @@
+/*
+ * 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/DescribeSQLExplorerPolicyResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult() :
+	ServiceResult()
+{}
+
+DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeSQLExplorerPolicyResult::~DescribeSQLExplorerPolicyResult()
+{}
+
+void DescribeSQLExplorerPolicyResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["SQLCollectorStatus"].isNull())
+		sQLCollectorStatus_ = value["SQLCollectorStatus"].asString();
+
+}
+
+std::string DescribeSQLExplorerPolicyResult::getSQLCollectorStatus()const
+{
+	return sQLCollectorStatus_;
+}
+

+ 117 - 0
polardb/src/model/DescribeSQLExplorerRetentionRequest.cc

@@ -0,0 +1,117 @@
+/*
+ * 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/DescribeSQLExplorerRetentionRequest.h>
+
+using AlibabaCloud::Polardb::Model::DescribeSQLExplorerRetentionRequest;
+
+DescribeSQLExplorerRetentionRequest::DescribeSQLExplorerRetentionRequest() :
+	RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerRetention")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeSQLExplorerRetentionRequest::~DescribeSQLExplorerRetentionRequest()
+{}
+
+long DescribeSQLExplorerRetentionRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getSecurityToken()const
+{
+	return securityToken_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setSecurityToken(const std::string& securityToken)
+{
+	securityToken_ = securityToken;
+	setParameter("SecurityToken", securityToken);
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getRegionId()const
+{
+	return regionId_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setRegionId(const std::string& regionId)
+{
+	regionId_ = regionId;
+	setParameter("RegionId", regionId);
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getDBInstanceId()const
+{
+	return dBInstanceId_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
+{
+	dBInstanceId_ = dBInstanceId;
+	setParameter("DBInstanceId", dBInstanceId);
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string DescribeSQLExplorerRetentionRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long DescribeSQLExplorerRetentionRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void DescribeSQLExplorerRetentionRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+

+ 65 - 0
polardb/src/model/DescribeSQLExplorerRetentionResult.cc

@@ -0,0 +1,65 @@
+/*
+ * 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/DescribeSQLExplorerRetentionResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult() :
+	ServiceResult()
+{}
+
+DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeSQLExplorerRetentionResult::~DescribeSQLExplorerRetentionResult()
+{}
+
+void DescribeSQLExplorerRetentionResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["ConfigValue"].isNull())
+		configValue_ = value["ConfigValue"].asString();
+	if(!value["DBInstanceID"].isNull())
+		dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
+	if(!value["DBInstanceName"].isNull())
+		dBInstanceName_ = value["DBInstanceName"].asString();
+
+}
+
+std::string DescribeSQLExplorerRetentionResult::getConfigValue()const
+{
+	return configValue_;
+}
+
+int DescribeSQLExplorerRetentionResult::getDBInstanceID()const
+{
+	return dBInstanceID_;
+}
+
+std::string DescribeSQLExplorerRetentionResult::getDBInstanceName()const
+{
+	return dBInstanceName_;
+}
+

+ 106 - 0
polardb/src/model/DescribeSQLExplorerVersionRequest.cc

@@ -0,0 +1,106 @@
+/*
+ * 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/DescribeSQLExplorerVersionRequest.h>
+
+using AlibabaCloud::Polardb::Model::DescribeSQLExplorerVersionRequest;
+
+DescribeSQLExplorerVersionRequest::DescribeSQLExplorerVersionRequest() :
+	RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerVersion")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeSQLExplorerVersionRequest::~DescribeSQLExplorerVersionRequest()
+{}
+
+long DescribeSQLExplorerVersionRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void DescribeSQLExplorerVersionRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string DescribeSQLExplorerVersionRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void DescribeSQLExplorerVersionRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string DescribeSQLExplorerVersionRequest::getSecurityToken()const
+{
+	return securityToken_;
+}
+
+void DescribeSQLExplorerVersionRequest::setSecurityToken(const std::string& securityToken)
+{
+	securityToken_ = securityToken;
+	setParameter("SecurityToken", securityToken);
+}
+
+std::string DescribeSQLExplorerVersionRequest::getDBInstanceId()const
+{
+	return dBInstanceId_;
+}
+
+void DescribeSQLExplorerVersionRequest::setDBInstanceId(const std::string& dBInstanceId)
+{
+	dBInstanceId_ = dBInstanceId;
+	setParameter("DBInstanceId", dBInstanceId);
+}
+
+std::string DescribeSQLExplorerVersionRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void DescribeSQLExplorerVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string DescribeSQLExplorerVersionRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void DescribeSQLExplorerVersionRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long DescribeSQLExplorerVersionRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void DescribeSQLExplorerVersionRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+

+ 65 - 0
polardb/src/model/DescribeSQLExplorerVersionResult.cc

@@ -0,0 +1,65 @@
+/*
+ * 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/DescribeSQLExplorerVersionResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+DescribeSQLExplorerVersionResult::DescribeSQLExplorerVersionResult() :
+	ServiceResult()
+{}
+
+DescribeSQLExplorerVersionResult::DescribeSQLExplorerVersionResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeSQLExplorerVersionResult::~DescribeSQLExplorerVersionResult()
+{}
+
+void DescribeSQLExplorerVersionResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["ConfigValue"].isNull())
+		configValue_ = value["ConfigValue"].asString();
+	if(!value["DBInstanceID"].isNull())
+		dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
+	if(!value["DBInstanceName"].isNull())
+		dBInstanceName_ = value["DBInstanceName"].asString();
+
+}
+
+std::string DescribeSQLExplorerVersionResult::getConfigValue()const
+{
+	return configValue_;
+}
+
+int DescribeSQLExplorerVersionResult::getDBInstanceID()const
+{
+	return dBInstanceID_;
+}
+
+std::string DescribeSQLExplorerVersionResult::getDBInstanceName()const
+{
+	return dBInstanceName_;
+}
+

+ 33 - 0
polardb/src/model/DescribeScheduleTasksRequest.cc

@@ -38,6 +38,17 @@ void DescribeScheduleTasksRequest::setResourceOwnerId(long resourceOwnerId)
 	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
 }
 
+int DescribeScheduleTasksRequest::getPageNumber()const
+{
+	return pageNumber_;
+}
+
+void DescribeScheduleTasksRequest::setPageNumber(int pageNumber)
+{
+	pageNumber_ = pageNumber;
+	setParameter("PageNumber", std::to_string(pageNumber));
+}
+
 std::string DescribeScheduleTasksRequest::getAccessKeyId()const
 {
 	return accessKeyId_;
@@ -60,6 +71,17 @@ void DescribeScheduleTasksRequest::setRegionId(const std::string& regionId)
 	setParameter("RegionId", regionId);
 }
 
+int DescribeScheduleTasksRequest::getPageSize()const
+{
+	return pageSize_;
+}
+
+void DescribeScheduleTasksRequest::setPageSize(int pageSize)
+{
+	pageSize_ = pageSize;
+	setParameter("PageSize", std::to_string(pageSize));
+}
+
 std::string DescribeScheduleTasksRequest::getResourceOwnerAccount()const
 {
 	return resourceOwnerAccount_;
@@ -104,6 +126,17 @@ void DescribeScheduleTasksRequest::setOwnerId(long ownerId)
 	setParameter("OwnerId", std::to_string(ownerId));
 }
 
+std::string DescribeScheduleTasksRequest::getTaskAction()const
+{
+	return taskAction_;
+}
+
+void DescribeScheduleTasksRequest::setTaskAction(const std::string& taskAction)
+{
+	taskAction_ = taskAction;
+	setParameter("TaskAction", taskAction);
+}
+
 std::string DescribeScheduleTasksRequest::getStatus()const
 {
 	return status_;

+ 38 - 50
polardb/src/model/DescribeScheduleTasksResult.cc

@@ -39,54 +39,47 @@ void DescribeScheduleTasksResult::parse(const std::string &payload)
 	Json::Value value;
 	reader.parse(payload, value);
 	setRequestId(value["RequestId"].asString());
-	auto allDataNode = value["Data"]["items"];
-	for (auto valueDataitems : allDataNode)
+	auto dataNode = value["Data"];
+	if(!dataNode["TotalRecordCount"].isNull())
+		data_.totalRecordCount = std::stoi(dataNode["TotalRecordCount"].asString());
+	if(!dataNode["PageSize"].isNull())
+		data_.pageSize = std::stoi(dataNode["PageSize"].asString());
+	if(!dataNode["PageNumber"].isNull())
+		data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
+	auto allTimerInfosNode = dataNode["TimerInfos"]["timerInfosItem"];
+	for (auto dataNodeTimerInfostimerInfosItem : allTimerInfosNode)
 	{
-		Items dataObject;
-		if(!valueDataitems["Action"].isNull())
-			dataObject.action = valueDataitems["Action"].asString();
-		if(!valueDataitems["Args"].isNull())
-			dataObject.args = valueDataitems["Args"].asString();
-		if(!valueDataitems["GmtCreate"].isNull())
-			dataObject.gmtCreate = std::stol(valueDataitems["GmtCreate"].asString());
-		if(!valueDataitems["GmtModified"].isNull())
-			dataObject.gmtModified = std::stol(valueDataitems["GmtModified"].asString());
-		if(!valueDataitems["DBClusterId"].isNull())
-			dataObject.dBClusterId = valueDataitems["DBClusterId"].asString();
-		if(!valueDataitems["MaxRetryTime"].isNull())
-			dataObject.maxRetryTime = std::stoi(valueDataitems["MaxRetryTime"].asString());
-		if(!valueDataitems["Mutex"].isNull())
-			dataObject.mutex = valueDataitems["Mutex"].asString();
-		if(!valueDataitems["OrderId"].isNull())
-			dataObject.orderId = valueDataitems["OrderId"].asString();
-		if(!valueDataitems["PlannedEndTime"].isNull())
-			dataObject.plannedEndTime = std::stol(valueDataitems["PlannedEndTime"].asString());
-		if(!valueDataitems["PlannedStartTime"].isNull())
-			dataObject.plannedStartTime = std::stol(valueDataitems["PlannedStartTime"].asString());
-		if(!valueDataitems["PlannedTime"].isNull())
-			dataObject.plannedTime = std::stol(valueDataitems["PlannedTime"].asString());
-		if(!valueDataitems["ProductCode"].isNull())
-			dataObject.productCode = valueDataitems["ProductCode"].asString();
-		if(!valueDataitems["Region"].isNull())
-			dataObject.region = valueDataitems["Region"].asString();
-		if(!valueDataitems["Response"].isNull())
-			dataObject.response = valueDataitems["Response"].asString();
-		if(!valueDataitems["RetryTime"].isNull())
-			dataObject.retryTime = std::stoi(valueDataitems["RetryTime"].asString());
-		if(!valueDataitems["Status"].isNull())
-			dataObject.status = valueDataitems["Status"].asString();
-		if(!valueDataitems["TaskId"].isNull())
-			dataObject.taskId = valueDataitems["TaskId"].asString();
-		if(!valueDataitems["Type"].isNull())
-			dataObject.type = std::stoi(valueDataitems["Type"].asString());
-		data_.push_back(dataObject);
+		Data::TimerInfosItem timerInfosItemObject;
+		if(!dataNodeTimerInfostimerInfosItem["Status"].isNull())
+			timerInfosItemObject.status = dataNodeTimerInfostimerInfosItem["Status"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["GmtCreate"].isNull())
+			timerInfosItemObject.gmtCreate = std::stol(dataNodeTimerInfostimerInfosItem["GmtCreate"].asString());
+		if(!dataNodeTimerInfostimerInfosItem["Action"].isNull())
+			timerInfosItemObject.action = dataNodeTimerInfostimerInfosItem["Action"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["TaskId"].isNull())
+			timerInfosItemObject.taskId = dataNodeTimerInfostimerInfosItem["TaskId"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["PlannedTime"].isNull())
+			timerInfosItemObject.plannedTime = dataNodeTimerInfostimerInfosItem["PlannedTime"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["PlannedStartTime"].isNull())
+			timerInfosItemObject.plannedStartTime = dataNodeTimerInfostimerInfosItem["PlannedStartTime"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["DBClusterId"].isNull())
+			timerInfosItemObject.dBClusterId = dataNodeTimerInfostimerInfosItem["DBClusterId"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["GmtModified"].isNull())
+			timerInfosItemObject.gmtModified = std::stol(dataNodeTimerInfostimerInfosItem["GmtModified"].asString());
+		if(!dataNodeTimerInfostimerInfosItem["Region"].isNull())
+			timerInfosItemObject.region = dataNodeTimerInfostimerInfosItem["Region"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["OrderId"].isNull())
+			timerInfosItemObject.orderId = dataNodeTimerInfostimerInfosItem["OrderId"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["PlannedEndTime"].isNull())
+			timerInfosItemObject.plannedEndTime = dataNodeTimerInfostimerInfosItem["PlannedEndTime"].asString();
+		if(!dataNodeTimerInfostimerInfosItem["AliUid"].isNull())
+			timerInfosItemObject.aliUid = std::stoi(dataNodeTimerInfostimerInfosItem["AliUid"].asString());
+		data_.timerInfos.push_back(timerInfosItemObject);
 	}
-	if(!value["Code"].isNull())
-		code_ = value["Code"].asString();
-	if(!value["HttpStatusCode"].isNull())
-		httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
 	if(!value["Message"].isNull())
 		message_ = value["Message"].asString();
+	if(!value["Code"].isNull())
+		code_ = value["Code"].asString();
 	if(!value["Success"].isNull())
 		success_ = value["Success"].asString() == "true";
 
@@ -97,12 +90,7 @@ std::string DescribeScheduleTasksResult::getMessage()const
 	return message_;
 }
 
-int DescribeScheduleTasksResult::getHttpStatusCode()const
-{
-	return httpStatusCode_;
-}
-
-std::vector<DescribeScheduleTasksResult::Items> DescribeScheduleTasksResult::getData()const
+DescribeScheduleTasksResult::Data DescribeScheduleTasksResult::getData()const
 {
 	return data_;
 }

+ 106 - 0
polardb/src/model/DescribeSqlLogTrialStatusRequest.cc

@@ -0,0 +1,106 @@
+/*
+ * 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/DescribeSqlLogTrialStatusRequest.h>
+
+using AlibabaCloud::Polardb::Model::DescribeSqlLogTrialStatusRequest;
+
+DescribeSqlLogTrialStatusRequest::DescribeSqlLogTrialStatusRequest() :
+	RpcServiceRequest("polardb", "2017-08-01", "DescribeSqlLogTrialStatus")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+DescribeSqlLogTrialStatusRequest::~DescribeSqlLogTrialStatusRequest()
+{}
+
+long DescribeSqlLogTrialStatusRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string DescribeSqlLogTrialStatusRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string DescribeSqlLogTrialStatusRequest::getSecurityToken()const
+{
+	return securityToken_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setSecurityToken(const std::string& securityToken)
+{
+	securityToken_ = securityToken;
+	setParameter("SecurityToken", securityToken);
+}
+
+std::string DescribeSqlLogTrialStatusRequest::getDBInstanceId()const
+{
+	return dBInstanceId_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setDBInstanceId(const std::string& dBInstanceId)
+{
+	dBInstanceId_ = dBInstanceId;
+	setParameter("DBInstanceId", dBInstanceId);
+}
+
+std::string DescribeSqlLogTrialStatusRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string DescribeSqlLogTrialStatusRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long DescribeSqlLogTrialStatusRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void DescribeSqlLogTrialStatusRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+

+ 79 - 0
polardb/src/model/DescribeSqlLogTrialStatusResult.cc

@@ -0,0 +1,79 @@
+/*
+ * 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/DescribeSqlLogTrialStatusResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+DescribeSqlLogTrialStatusResult::DescribeSqlLogTrialStatusResult() :
+	ServiceResult()
+{}
+
+DescribeSqlLogTrialStatusResult::DescribeSqlLogTrialStatusResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+DescribeSqlLogTrialStatusResult::~DescribeSqlLogTrialStatusResult()
+{}
+
+void DescribeSqlLogTrialStatusResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["EverTrialed"].isNull())
+		everTrialed_ = value["EverTrialed"].asString();
+	if(!value["OpenTrial"].isNull())
+		openTrial_ = value["OpenTrial"].asString();
+	if(!value["RemainDays"].isNull())
+		remainDays_ = value["RemainDays"].asString();
+	if(!value["UsedDays"].isNull())
+		usedDays_ = value["UsedDays"].asString();
+	if(!value["DBInstanceName"].isNull())
+		dBInstanceName_ = value["DBInstanceName"].asString();
+
+}
+
+std::string DescribeSqlLogTrialStatusResult::getEverTrialed()const
+{
+	return everTrialed_;
+}
+
+std::string DescribeSqlLogTrialStatusResult::getOpenTrial()const
+{
+	return openTrial_;
+}
+
+std::string DescribeSqlLogTrialStatusResult::getRemainDays()const
+{
+	return remainDays_;
+}
+
+std::string DescribeSqlLogTrialStatusResult::getUsedDays()const
+{
+	return usedDays_;
+}
+
+std::string DescribeSqlLogTrialStatusResult::getDBInstanceName()const
+{
+	return dBInstanceName_;
+}
+

+ 33 - 0
polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc

@@ -38,6 +38,17 @@ void ModifyDBClusterPrimaryZoneRequest::setResourceOwnerId(long resourceOwnerId)
 	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
 }
 
+std::string ModifyDBClusterPrimaryZoneRequest::getPlannedEndTime()const
+{
+	return plannedEndTime_;
+}
+
+void ModifyDBClusterPrimaryZoneRequest::setPlannedEndTime(const std::string& plannedEndTime)
+{
+	plannedEndTime_ = plannedEndTime;
+	setParameter("PlannedEndTime", plannedEndTime);
+}
+
 std::string ModifyDBClusterPrimaryZoneRequest::getAccessKeyId()const
 {
 	return accessKeyId_;
@@ -104,6 +115,17 @@ void ModifyDBClusterPrimaryZoneRequest::setVSwitchId(const std::string& vSwitchI
 	setParameter("VSwitchId", vSwitchId);
 }
 
+std::string ModifyDBClusterPrimaryZoneRequest::getPlannedStartTime()const
+{
+	return plannedStartTime_;
+}
+
+void ModifyDBClusterPrimaryZoneRequest::setPlannedStartTime(const std::string& plannedStartTime)
+{
+	plannedStartTime_ = plannedStartTime;
+	setParameter("PlannedStartTime", plannedStartTime);
+}
+
 std::string ModifyDBClusterPrimaryZoneRequest::getZoneId()const
 {
 	return zoneId_;
@@ -115,3 +137,14 @@ void ModifyDBClusterPrimaryZoneRequest::setZoneId(const std::string& zoneId)
 	setParameter("ZoneId", zoneId);
 }
 
+bool ModifyDBClusterPrimaryZoneRequest::getFromTimeService()const
+{
+	return fromTimeService_;
+}
+
+void ModifyDBClusterPrimaryZoneRequest::setFromTimeService(bool fromTimeService)
+{
+	fromTimeService_ = fromTimeService;
+	setParameter("FromTimeService", fromTimeService ? "true" : "false");
+}
+

+ 0 - 11
polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc

@@ -60,17 +60,6 @@ void UpgradeDBClusterMinorVersionRequest::setAccessKeyId(const std::string& acce
 	setParameter("AccessKeyId", accessKeyId);
 }
 
-std::string UpgradeDBClusterMinorVersionRequest::getSwitchTimeMode()const
-{
-	return switchTimeMode_;
-}
-
-void UpgradeDBClusterMinorVersionRequest::setSwitchTimeMode(const std::string& switchTimeMode)
-{
-	switchTimeMode_ = switchTimeMode;
-	setParameter("SwitchTimeMode", switchTimeMode);
-}
-
 std::string UpgradeDBClusterMinorVersionRequest::getResourceOwnerAccount()const
 {
 	return resourceOwnerAccount_;

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

@@ -0,0 +1,128 @@
+/*
+ * 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/UpgradeDBClusterVersionRequest.h>
+
+using AlibabaCloud::Polardb::Model::UpgradeDBClusterVersionRequest;
+
+UpgradeDBClusterVersionRequest::UpgradeDBClusterVersionRequest() :
+	RpcServiceRequest("polardb", "2017-08-01", "UpgradeDBClusterVersion")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+UpgradeDBClusterVersionRequest::~UpgradeDBClusterVersionRequest()
+{}
+
+long UpgradeDBClusterVersionRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void UpgradeDBClusterVersionRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string UpgradeDBClusterVersionRequest::getPlannedEndTime()const
+{
+	return plannedEndTime_;
+}
+
+void UpgradeDBClusterVersionRequest::setPlannedEndTime(const std::string& plannedEndTime)
+{
+	plannedEndTime_ = plannedEndTime;
+	setParameter("PlannedEndTime", plannedEndTime);
+}
+
+std::string UpgradeDBClusterVersionRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void UpgradeDBClusterVersionRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string UpgradeDBClusterVersionRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void UpgradeDBClusterVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string UpgradeDBClusterVersionRequest::getDBClusterId()const
+{
+	return dBClusterId_;
+}
+
+void UpgradeDBClusterVersionRequest::setDBClusterId(const std::string& dBClusterId)
+{
+	dBClusterId_ = dBClusterId;
+	setParameter("DBClusterId", dBClusterId);
+}
+
+std::string UpgradeDBClusterVersionRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void UpgradeDBClusterVersionRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long UpgradeDBClusterVersionRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void UpgradeDBClusterVersionRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+
+std::string UpgradeDBClusterVersionRequest::getPlannedStartTime()const
+{
+	return plannedStartTime_;
+}
+
+void UpgradeDBClusterVersionRequest::setPlannedStartTime(const std::string& plannedStartTime)
+{
+	plannedStartTime_ = plannedStartTime;
+	setParameter("PlannedStartTime", plannedStartTime);
+}
+
+bool UpgradeDBClusterVersionRequest::getFromTimeService()const
+{
+	return fromTimeService_;
+}
+
+void UpgradeDBClusterVersionRequest::setFromTimeService(bool fromTimeService)
+{
+	fromTimeService_ = fromTimeService;
+	setParameter("FromTimeService", fromTimeService ? "true" : "false");
+}
+

+ 44 - 0
polardb/src/model/UpgradeDBClusterVersionResult.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/UpgradeDBClusterVersionResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Polardb;
+using namespace AlibabaCloud::Polardb::Model;
+
+UpgradeDBClusterVersionResult::UpgradeDBClusterVersionResult() :
+	ServiceResult()
+{}
+
+UpgradeDBClusterVersionResult::UpgradeDBClusterVersionResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+UpgradeDBClusterVersionResult::~UpgradeDBClusterVersionResult()
+{}
+
+void UpgradeDBClusterVersionResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+
+}
+