From 9c94805a97aca5448438f82e95eb9c71fac5dbc1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 26 Jan 2021 09:39:00 +0000 Subject: [PATCH] Support ModifyDBClusterPrimaryZone timer task. --- CHANGELOG | 3 + polardb/CMakeLists.txt | 24 ++- .../alibabacloud/polardb/PolardbClient.h | 40 ++++ .../polardb/model/CreateDBClusterRequest.h | 3 + .../model/DescribeDBClusterAttributeResult.h | 2 + .../DescribeGlobalDatabaseNetworksRequest.h | 3 + .../model/DescribeSQLExplorerPolicyRequest.h | 63 ++++++ .../model/DescribeSQLExplorerPolicyResult.h | 51 +++++ .../DescribeSQLExplorerRetentionRequest.h | 69 +++++++ .../DescribeSQLExplorerRetentionResult.h | 55 ++++++ .../model/DescribeSQLExplorerVersionRequest.h | 66 +++++++ .../model/DescribeSQLExplorerVersionResult.h | 55 ++++++ .../model/DescribeScheduleTasksRequest.h | 9 + .../model/DescribeScheduleTasksResult.h | 45 +++-- .../model/DescribeSqlLogTrialStatusRequest.h | 66 +++++++ .../model/DescribeSqlLogTrialStatusResult.h | 59 ++++++ .../model/ModifyDBClusterPrimaryZoneRequest.h | 9 + .../UpgradeDBClusterMinorVersionRequest.h | 3 - .../model/UpgradeDBClusterVersionRequest.h | 72 +++++++ .../model/UpgradeDBClusterVersionResult.h | 49 +++++ polardb/src/PolardbClient.cc | 180 ++++++++++++++++++ polardb/src/model/CreateDBClusterRequest.cc | 11 ++ .../model/DescribeDBClusterAttributeResult.cc | 7 + .../DescribeGlobalDatabaseNetworksRequest.cc | 11 ++ .../DescribeGlobalDatabaseNetworksResult.cc | 20 +- .../model/DescribeSQLExplorerPolicyRequest.cc | 95 +++++++++ .../model/DescribeSQLExplorerPolicyResult.cc | 51 +++++ .../DescribeSQLExplorerRetentionRequest.cc | 117 ++++++++++++ .../DescribeSQLExplorerRetentionResult.cc | 65 +++++++ .../DescribeSQLExplorerVersionRequest.cc | 106 +++++++++++ .../model/DescribeSQLExplorerVersionResult.cc | 65 +++++++ .../src/model/DescribeScheduleTasksRequest.cc | 33 ++++ .../src/model/DescribeScheduleTasksResult.cc | 88 ++++----- .../model/DescribeSqlLogTrialStatusRequest.cc | 106 +++++++++++ .../model/DescribeSqlLogTrialStatusResult.cc | 79 ++++++++ .../ModifyDBClusterPrimaryZoneRequest.cc | 33 ++++ .../UpgradeDBClusterMinorVersionRequest.cc | 11 -- .../model/UpgradeDBClusterVersionRequest.cc | 128 +++++++++++++ .../model/UpgradeDBClusterVersionResult.cc | 44 +++++ 39 files changed, 1897 insertions(+), 99 deletions(-) create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h create mode 100644 polardb/src/model/DescribeSQLExplorerPolicyRequest.cc create mode 100644 polardb/src/model/DescribeSQLExplorerPolicyResult.cc create mode 100644 polardb/src/model/DescribeSQLExplorerRetentionRequest.cc create mode 100644 polardb/src/model/DescribeSQLExplorerRetentionResult.cc create mode 100644 polardb/src/model/DescribeSQLExplorerVersionRequest.cc create mode 100644 polardb/src/model/DescribeSQLExplorerVersionResult.cc create mode 100644 polardb/src/model/DescribeSqlLogTrialStatusRequest.cc create mode 100644 polardb/src/model/DescribeSqlLogTrialStatusResult.cc create mode 100644 polardb/src/model/UpgradeDBClusterVersionRequest.cc create mode 100644 polardb/src/model/UpgradeDBClusterVersionResult.cc diff --git a/CHANGELOG b/CHANGELOG index d8f627e41..05ee8d9ee 100644 --- a/CHANGELOG +++ b/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. diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt index 8e3d6845c..c60fce543 100644 --- a/polardb/CMakeLists.txt +++ b/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} diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h index b7260d70b..070db6953 100644 --- a/polardb/include/alibabacloud/polardb/PolardbClient.h +++ b/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 DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeSQLExplorerPolicyOutcome; + typedef std::future DescribeSQLExplorerPolicyOutcomeCallable; + typedef std::function&)> DescribeSQLExplorerPolicyAsyncHandler; + typedef Outcome DescribeSQLExplorerRetentionOutcome; + typedef std::future DescribeSQLExplorerRetentionOutcomeCallable; + typedef std::function&)> DescribeSQLExplorerRetentionAsyncHandler; + typedef Outcome DescribeSQLExplorerVersionOutcome; + typedef std::future DescribeSQLExplorerVersionOutcomeCallable; + typedef std::function&)> DescribeSQLExplorerVersionAsyncHandler; typedef Outcome DescribeScheduleTasksOutcome; typedef std::future DescribeScheduleTasksOutcomeCallable; typedef std::function&)> DescribeScheduleTasksAsyncHandler; typedef Outcome DescribeSlowLogRecordsOutcome; typedef std::future DescribeSlowLogRecordsOutcomeCallable; typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; + typedef Outcome DescribeSqlLogTrialStatusOutcome; + typedef std::future DescribeSqlLogTrialStatusOutcomeCallable; + typedef std::function&)> DescribeSqlLogTrialStatusAsyncHandler; typedef Outcome DescribeTasksOutcome; typedef std::future DescribeTasksOutcomeCallable; typedef std::function&)> DescribeTasksAsyncHandler; @@ -456,6 +478,9 @@ namespace AlibabaCloud typedef Outcome UpgradeDBClusterMinorVersionOutcome; typedef std::future UpgradeDBClusterMinorVersionOutcomeCallable; typedef std::function&)> UpgradeDBClusterMinorVersionAsyncHandler; + typedef Outcome UpgradeDBClusterVersionOutcome; + typedef std::future UpgradeDBClusterVersionOutcomeCallable; + typedef std::function&)> UpgradeDBClusterVersionAsyncHandler; PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration); PolardbClient(const std::shared_ptr &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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; + UpgradeDBClusterVersionOutcomeCallable upgradeDBClusterVersionCallable(const Model::UpgradeDBClusterVersionRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h index 93c62ad47..9466c7e9b 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h +++ b/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_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h index ebe49d0ec..b7394b396 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h +++ b/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_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h index 2b6ec5300..6220f970f 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h +++ b/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_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h new file mode 100644 index 000000000..58f26b8f2 --- /dev/null +++ b/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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h new file mode 100644 index 000000000..3d9a881f3 --- /dev/null +++ b/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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h new file mode 100644 index 000000000..92488c321 --- /dev/null +++ b/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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h new file mode 100644 index 000000000..3fa99ed71 --- /dev/null +++ b/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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h new file mode 100644 index 000000000..713394609 --- /dev/null +++ b/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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h new file mode 100644 index 000000000..30f078a77 --- /dev/null +++ b/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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h index 590536c80..584081242 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h +++ b/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_; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h index ec63daf77..4376f45d4 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h +++ b/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 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 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 data_; + Data data_; std::string code_; bool success_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h new file mode 100644 index 000000000..dfcafc434 --- /dev/null +++ b/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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h new file mode 100644 index 000000000..d42b3c83c --- /dev/null +++ b/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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h index cebce5070..b9887bf5f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterPrimaryZoneRequest.h +++ b/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_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h index b35822b26..fde9dd99c 100644 --- a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h +++ b/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_; diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h new file mode 100644 index 000000000..8a2dfb6df --- /dev/null +++ b/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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h new file mode 100644 index 000000000..7391f3839 --- /dev/null +++ b/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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc index 5857c0caa..ecb8b3c51 100644 --- a/polardb/src/PolardbClient.cc +++ b/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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [this, request]() + { + return this->upgradeDBClusterVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/polardb/src/model/CreateDBClusterRequest.cc b/polardb/src/model/CreateDBClusterRequest.cc index 4d6e54874..5f6a863ea 100644 --- a/polardb/src/model/CreateDBClusterRequest.cc +++ b/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_; diff --git a/polardb/src/model/DescribeDBClusterAttributeResult.cc b/polardb/src/model/DescribeDBClusterAttributeResult.cc index f41cecce7..26e538277 100644 --- a/polardb/src/model/DescribeDBClusterAttributeResult.cc +++ b/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_; diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc b/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc index ec6c4a356..90652110f 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc +++ b/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_; diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc b/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc index cdc4b324e..c21127725 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc +++ b/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["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(); - if(!valueItemsGlobalDatabaseNetwork["DBVersion"].isNull()) - itemsObject.dBVersion = valueItemsGlobalDatabaseNetwork["DBVersion"].asString(); - if(!valueItemsGlobalDatabaseNetwork["CreateTime"].isNull()) - itemsObject.createTime = valueItemsGlobalDatabaseNetwork["CreateTime"].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()); } diff --git a/polardb/src/model/DescribeSQLExplorerPolicyRequest.cc b/polardb/src/model/DescribeSQLExplorerPolicyRequest.cc new file mode 100644 index 000000000..cac53b5a3 --- /dev/null +++ b/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 + +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)); +} + diff --git a/polardb/src/model/DescribeSQLExplorerPolicyResult.cc b/polardb/src/model/DescribeSQLExplorerPolicyResult.cc new file mode 100644 index 000000000..a7e7d7f18 --- /dev/null +++ b/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 +#include + +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_; +} + diff --git a/polardb/src/model/DescribeSQLExplorerRetentionRequest.cc b/polardb/src/model/DescribeSQLExplorerRetentionRequest.cc new file mode 100644 index 000000000..e91cced8a --- /dev/null +++ b/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 + +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)); +} + diff --git a/polardb/src/model/DescribeSQLExplorerRetentionResult.cc b/polardb/src/model/DescribeSQLExplorerRetentionResult.cc new file mode 100644 index 000000000..79be99073 --- /dev/null +++ b/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 +#include + +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_; +} + diff --git a/polardb/src/model/DescribeSQLExplorerVersionRequest.cc b/polardb/src/model/DescribeSQLExplorerVersionRequest.cc new file mode 100644 index 000000000..01a1ae5f5 --- /dev/null +++ b/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 + +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)); +} + diff --git a/polardb/src/model/DescribeSQLExplorerVersionResult.cc b/polardb/src/model/DescribeSQLExplorerVersionResult.cc new file mode 100644 index 000000000..1e6bb0592 --- /dev/null +++ b/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 +#include + +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_; +} + diff --git a/polardb/src/model/DescribeScheduleTasksRequest.cc b/polardb/src/model/DescribeScheduleTasksRequest.cc index 74d8a38f0..dbdefb991 100644 --- a/polardb/src/model/DescribeScheduleTasksRequest.cc +++ b/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_; diff --git a/polardb/src/model/DescribeScheduleTasksResult.cc b/polardb/src/model/DescribeScheduleTasksResult.cc index 5da7c1b94..304e29b9f 100644 --- a/polardb/src/model/DescribeScheduleTasksResult.cc +++ b/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::getData()const +DescribeScheduleTasksResult::Data DescribeScheduleTasksResult::getData()const { return data_; } diff --git a/polardb/src/model/DescribeSqlLogTrialStatusRequest.cc b/polardb/src/model/DescribeSqlLogTrialStatusRequest.cc new file mode 100644 index 000000000..4c17a0838 --- /dev/null +++ b/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 + +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)); +} + diff --git a/polardb/src/model/DescribeSqlLogTrialStatusResult.cc b/polardb/src/model/DescribeSqlLogTrialStatusResult.cc new file mode 100644 index 000000000..4e61da33c --- /dev/null +++ b/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 +#include + +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_; +} + diff --git a/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc b/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc index 48d7d3a71..e8648e6b5 100644 --- a/polardb/src/model/ModifyDBClusterPrimaryZoneRequest.cc +++ b/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"); +} + diff --git a/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc b/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc index 9af1db3ad..44a8a12f7 100644 --- a/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc +++ b/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_; diff --git a/polardb/src/model/UpgradeDBClusterVersionRequest.cc b/polardb/src/model/UpgradeDBClusterVersionRequest.cc new file mode 100644 index 000000000..748415496 --- /dev/null +++ b/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 + +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"); +} + diff --git a/polardb/src/model/UpgradeDBClusterVersionResult.cc b/polardb/src/model/UpgradeDBClusterVersionResult.cc new file mode 100644 index 000000000..3cb71127e --- /dev/null +++ b/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 +#include + +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()); + +} +