From 111ecd0032802bf11e72f3542a41873d29eb328e Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 6 May 2021 03:22:27 +0000 Subject: [PATCH] Support DescribePolarSQLCollectorPolicy. --- CHANGELOG | 3 + VERSION | 2 +- .../2017-08-01/DescribeDBClusterAttribute.xml | 2 +- .../2017-08-01/DescribeDBClusterEndpoints.xml | 2 +- .../2017-08-01/DescribeDBClusterVersion.xml | 2 +- polardb/2017-08-01/DescribeParameterGroup.xml | 2 +- .../2017-08-01/DescribeParameterGroups.xml | 2 +- .../2017-08-01/DescribeParameterTemplates.xml | 2 +- .../DescribePolarSQLCollectorPolicy.xml | 1 + .../2017-08-01/DescribeSQLExplorerPolicy.xml | 2 +- .../DescribeSQLExplorerRetention.xml | 2 +- polardb/2017-08-01/DescribeSQLLogRecords.xml | 2 +- .../2017-08-01/DescribeSQLLogTemplates.xml | 2 +- polardb/2017-08-01/DescribeScheduleTasks.xml | 2 +- .../ModifyDBClusterAccessWhitelist.xml | 2 +- .../2017-08-01/ModifyDBClusterParameters.xml | 2 +- polardb/CMakeLists.txt | 24 +- .../alibabacloud/polardb/PolardbClient.h | 48 +-- .../model/DescribeDBClusterAttributeResult.h | 18 +- .../model/DescribeDBClusterEndpointsResult.h | 8 +- .../model/DescribeDBClusterVersionResult.h | 8 + .../model/DescribeParameterGroupsResult.h | 1 - ....h => DescribeParameterTemplatesRequest.h} | 24 +- .../model/DescribeParameterTemplatesResult.h | 68 ++++ ... DescribePolarSQLCollectorPolicyRequest.h} | 18 +- ...> DescribePolarSQLCollectorPolicyResult.h} | 14 +- .../DescribeSQLExplorerRetentionResult.h | 55 --- .../model/DescribeSQLLogRecordsRequest.h | 132 ------- .../model/DescribeSQLLogRecordsResult.h | 90 ----- .../model/DescribeSQLLogTemplatesRequest.h | 108 ------ .../model/DescribeSQLLogTemplatesResult.h | 87 ----- .../model/ModifyDBClusterParametersRequest.h | 3 - polardb/src/PolardbClient.cc | 216 ++++------- .../model/DescribeDBClusterAttributeResult.cc | 149 ++++---- .../model/DescribeDBClusterEndpointsResult.cc | 40 +- .../model/DescribeDBClusterVersionResult.cc | 44 ++- .../model/DescribeParameterGroupsResult.cc | 2 - .../DescribeParameterTemplatesRequest.cc | 117 ++++++ .../model/DescribeParameterTemplatesResult.cc | 95 +++++ .../DescribePolarSQLCollectorPolicyRequest.cc | 95 +++++ ... DescribePolarSQLCollectorPolicyResult.cc} | 12 +- .../model/DescribeSQLExplorerPolicyRequest.cc | 95 ----- .../DescribeSQLExplorerRetentionRequest.cc | 117 ------ .../DescribeSQLExplorerRetentionResult.cc | 65 ---- .../src/model/DescribeSQLLogRecordsRequest.cc | 348 ------------------ .../src/model/DescribeSQLLogRecordsResult.cc | 160 -------- .../model/DescribeSQLLogTemplatesRequest.cc | 260 ------------- .../model/DescribeSQLLogTemplatesResult.cc | 154 -------- .../model/ModifyDBClusterParametersRequest.cc | 11 - polardb/version-2017-08-01.xml | 2 +- 50 files changed, 680 insertions(+), 2040 deletions(-) create mode 100644 polardb/2017-08-01/DescribePolarSQLCollectorPolicy.xml rename polardb/include/alibabacloud/polardb/model/{DescribeSQLExplorerRetentionRequest.h => DescribeParameterTemplatesRequest.h} (69%) create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesResult.h rename polardb/include/alibabacloud/polardb/model/{DescribeSQLExplorerPolicyRequest.h => DescribePolarSQLCollectorPolicyRequest.h} (72%) rename polardb/include/alibabacloud/polardb/model/{DescribeSQLExplorerPolicyResult.h => DescribePolarSQLCollectorPolicyResult.h} (67%) delete mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h delete mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsRequest.h delete mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h delete mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h delete mode 100644 polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h create mode 100644 polardb/src/model/DescribeParameterTemplatesRequest.cc create mode 100644 polardb/src/model/DescribeParameterTemplatesResult.cc create mode 100644 polardb/src/model/DescribePolarSQLCollectorPolicyRequest.cc rename polardb/src/model/{DescribeSQLExplorerPolicyResult.cc => DescribePolarSQLCollectorPolicyResult.cc} (67%) delete mode 100644 polardb/src/model/DescribeSQLExplorerPolicyRequest.cc delete mode 100644 polardb/src/model/DescribeSQLExplorerRetentionRequest.cc delete mode 100644 polardb/src/model/DescribeSQLExplorerRetentionResult.cc delete mode 100644 polardb/src/model/DescribeSQLLogRecordsRequest.cc delete mode 100644 polardb/src/model/DescribeSQLLogRecordsResult.cc delete mode 100644 polardb/src/model/DescribeSQLLogTemplatesRequest.cc delete mode 100644 polardb/src/model/DescribeSQLLogTemplatesResult.cc diff --git a/CHANGELOG b/CHANGELOG index cb1dab91b..3142ed013 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-05-06 Version: 1.36.709 +- Support DescribePolarSQLCollectorPolicy. + 2021-04-30 Version: 1.36.708 - Add OpenArmsServiceSecondVersion. diff --git a/VERSION b/VERSION index fcc8ae4ee..3c07515d9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.708 \ No newline at end of file +1.36.709 \ No newline at end of file diff --git a/polardb/2017-08-01/DescribeDBClusterAttribute.xml b/polardb/2017-08-01/DescribeDBClusterAttribute.xml index df80017cf..eef1ad9bd 100644 --- a/polardb/2017-08-01/DescribeDBClusterAttribute.xml +++ b/polardb/2017-08-01/DescribeDBClusterAttribute.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeDBClusterEndpoints.xml b/polardb/2017-08-01/DescribeDBClusterEndpoints.xml index 79b083e8f..443447b96 100644 --- a/polardb/2017-08-01/DescribeDBClusterEndpoints.xml +++ b/polardb/2017-08-01/DescribeDBClusterEndpoints.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeDBClusterVersion.xml b/polardb/2017-08-01/DescribeDBClusterVersion.xml index 55b846bc9..36f462179 100644 --- a/polardb/2017-08-01/DescribeDBClusterVersion.xml +++ b/polardb/2017-08-01/DescribeDBClusterVersion.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeParameterGroup.xml b/polardb/2017-08-01/DescribeParameterGroup.xml index 5f4c8cb1d..9b9bb2d30 100644 --- a/polardb/2017-08-01/DescribeParameterGroup.xml +++ b/polardb/2017-08-01/DescribeParameterGroup.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeParameterGroups.xml b/polardb/2017-08-01/DescribeParameterGroups.xml index dcfdb8693..92f8cc2c7 100644 --- a/polardb/2017-08-01/DescribeParameterGroups.xml +++ b/polardb/2017-08-01/DescribeParameterGroups.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeParameterTemplates.xml b/polardb/2017-08-01/DescribeParameterTemplates.xml index 15f214500..9501decf1 100644 --- a/polardb/2017-08-01/DescribeParameterTemplates.xml +++ b/polardb/2017-08-01/DescribeParameterTemplates.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribePolarSQLCollectorPolicy.xml b/polardb/2017-08-01/DescribePolarSQLCollectorPolicy.xml new file mode 100644 index 000000000..d23ec589d --- /dev/null +++ b/polardb/2017-08-01/DescribePolarSQLCollectorPolicy.xml @@ -0,0 +1 @@ + diff --git a/polardb/2017-08-01/DescribeSQLExplorerPolicy.xml b/polardb/2017-08-01/DescribeSQLExplorerPolicy.xml index 6970261bc..74358b481 100644 --- a/polardb/2017-08-01/DescribeSQLExplorerPolicy.xml +++ b/polardb/2017-08-01/DescribeSQLExplorerPolicy.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeSQLExplorerRetention.xml b/polardb/2017-08-01/DescribeSQLExplorerRetention.xml index 27a512f40..8a526e945 100644 --- a/polardb/2017-08-01/DescribeSQLExplorerRetention.xml +++ b/polardb/2017-08-01/DescribeSQLExplorerRetention.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeSQLLogRecords.xml b/polardb/2017-08-01/DescribeSQLLogRecords.xml index 74e0bc69d..22f591402 100644 --- a/polardb/2017-08-01/DescribeSQLLogRecords.xml +++ b/polardb/2017-08-01/DescribeSQLLogRecords.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeSQLLogTemplates.xml b/polardb/2017-08-01/DescribeSQLLogTemplates.xml index 7df5c722d..e5df4c34a 100644 --- a/polardb/2017-08-01/DescribeSQLLogTemplates.xml +++ b/polardb/2017-08-01/DescribeSQLLogTemplates.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/DescribeScheduleTasks.xml b/polardb/2017-08-01/DescribeScheduleTasks.xml index e0a42a6d8..8b22f7b35 100644 --- a/polardb/2017-08-01/DescribeScheduleTasks.xml +++ b/polardb/2017-08-01/DescribeScheduleTasks.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/ModifyDBClusterAccessWhitelist.xml b/polardb/2017-08-01/ModifyDBClusterAccessWhitelist.xml index c63dcf1d1..97276db7e 100644 --- a/polardb/2017-08-01/ModifyDBClusterAccessWhitelist.xml +++ b/polardb/2017-08-01/ModifyDBClusterAccessWhitelist.xml @@ -1 +1 @@ - + diff --git a/polardb/2017-08-01/ModifyDBClusterParameters.xml b/polardb/2017-08-01/ModifyDBClusterParameters.xml index 62c6f25ff..97b8eecdc 100644 --- a/polardb/2017-08-01/ModifyDBClusterParameters.xml +++ b/polardb/2017-08-01/ModifyDBClusterParameters.xml @@ -1 +1 @@ - + diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt index 47042ab0f..89ae31e15 100644 --- a/polardb/CMakeLists.txt +++ b/polardb/CMakeLists.txt @@ -127,20 +127,16 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeParameterGroupResult.h include/alibabacloud/polardb/model/DescribeParameterGroupsRequest.h include/alibabacloud/polardb/model/DescribeParameterGroupsResult.h + include/alibabacloud/polardb/model/DescribeParameterTemplatesRequest.h + include/alibabacloud/polardb/model/DescribeParameterTemplatesResult.h include/alibabacloud/polardb/model/DescribePendingMaintenanceActionRequest.h include/alibabacloud/polardb/model/DescribePendingMaintenanceActionResult.h include/alibabacloud/polardb/model/DescribePendingMaintenanceActionsRequest.h include/alibabacloud/polardb/model/DescribePendingMaintenanceActionsResult.h + include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h + include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.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/DescribeSQLLogRecordsRequest.h - include/alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h - include/alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h - include/alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h @@ -318,20 +314,16 @@ set(polardb_src src/model/DescribeParameterGroupResult.cc src/model/DescribeParameterGroupsRequest.cc src/model/DescribeParameterGroupsResult.cc + src/model/DescribeParameterTemplatesRequest.cc + src/model/DescribeParameterTemplatesResult.cc src/model/DescribePendingMaintenanceActionRequest.cc src/model/DescribePendingMaintenanceActionResult.cc src/model/DescribePendingMaintenanceActionsRequest.cc src/model/DescribePendingMaintenanceActionsResult.cc + src/model/DescribePolarSQLCollectorPolicyRequest.cc + src/model/DescribePolarSQLCollectorPolicyResult.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/DescribeSQLLogRecordsRequest.cc - src/model/DescribeSQLLogRecordsResult.cc - src/model/DescribeSQLLogTemplatesRequest.cc - src/model/DescribeSQLLogTemplatesResult.cc src/model/DescribeScheduleTasksRequest.cc src/model/DescribeScheduleTasksResult.cc src/model/DescribeSlowLogRecordsRequest.cc diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h index 11cc26c3f..2113be0ee 100644 --- a/polardb/include/alibabacloud/polardb/PolardbClient.h +++ b/polardb/include/alibabacloud/polardb/PolardbClient.h @@ -128,20 +128,16 @@ #include "model/DescribeParameterGroupResult.h" #include "model/DescribeParameterGroupsRequest.h" #include "model/DescribeParameterGroupsResult.h" +#include "model/DescribeParameterTemplatesRequest.h" +#include "model/DescribeParameterTemplatesResult.h" #include "model/DescribePendingMaintenanceActionRequest.h" #include "model/DescribePendingMaintenanceActionResult.h" #include "model/DescribePendingMaintenanceActionsRequest.h" #include "model/DescribePendingMaintenanceActionsResult.h" +#include "model/DescribePolarSQLCollectorPolicyRequest.h" +#include "model/DescribePolarSQLCollectorPolicyResult.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/DescribeSQLLogRecordsRequest.h" -#include "model/DescribeSQLLogRecordsResult.h" -#include "model/DescribeSQLLogTemplatesRequest.h" -#include "model/DescribeSQLLogTemplatesResult.h" #include "model/DescribeScheduleTasksRequest.h" #include "model/DescribeScheduleTasksResult.h" #include "model/DescribeSlowLogRecordsRequest.h" @@ -378,27 +374,21 @@ namespace AlibabaCloud typedef Outcome DescribeParameterGroupsOutcome; typedef std::future DescribeParameterGroupsOutcomeCallable; typedef std::function&)> DescribeParameterGroupsAsyncHandler; + typedef Outcome DescribeParameterTemplatesOutcome; + typedef std::future DescribeParameterTemplatesOutcomeCallable; + typedef std::function&)> DescribeParameterTemplatesAsyncHandler; typedef Outcome DescribePendingMaintenanceActionOutcome; typedef std::future DescribePendingMaintenanceActionOutcomeCallable; typedef std::function&)> DescribePendingMaintenanceActionAsyncHandler; typedef Outcome DescribePendingMaintenanceActionsOutcome; typedef std::future DescribePendingMaintenanceActionsOutcomeCallable; typedef std::function&)> DescribePendingMaintenanceActionsAsyncHandler; + typedef Outcome DescribePolarSQLCollectorPolicyOutcome; + typedef std::future DescribePolarSQLCollectorPolicyOutcomeCallable; + typedef std::function&)> DescribePolarSQLCollectorPolicyAsyncHandler; 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 DescribeSQLLogRecordsOutcome; - typedef std::future DescribeSQLLogRecordsOutcomeCallable; - typedef std::function&)> DescribeSQLLogRecordsAsyncHandler; - typedef Outcome DescribeSQLLogTemplatesOutcome; - typedef std::future DescribeSQLLogTemplatesOutcomeCallable; - typedef std::function&)> DescribeSQLLogTemplatesAsyncHandler; typedef Outcome DescribeScheduleTasksOutcome; typedef std::future DescribeScheduleTasksOutcomeCallable; typedef std::function&)> DescribeScheduleTasksAsyncHandler; @@ -665,27 +655,21 @@ namespace AlibabaCloud DescribeParameterGroupsOutcome describeParameterGroups(const Model::DescribeParameterGroupsRequest &request)const; void describeParameterGroupsAsync(const Model::DescribeParameterGroupsRequest& request, const DescribeParameterGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParameterGroupsOutcomeCallable describeParameterGroupsCallable(const Model::DescribeParameterGroupsRequest& request) const; + DescribeParameterTemplatesOutcome describeParameterTemplates(const Model::DescribeParameterTemplatesRequest &request)const; + void describeParameterTemplatesAsync(const Model::DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeParameterTemplatesOutcomeCallable describeParameterTemplatesCallable(const Model::DescribeParameterTemplatesRequest& request) const; DescribePendingMaintenanceActionOutcome describePendingMaintenanceAction(const Model::DescribePendingMaintenanceActionRequest &request)const; void describePendingMaintenanceActionAsync(const Model::DescribePendingMaintenanceActionRequest& request, const DescribePendingMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePendingMaintenanceActionOutcomeCallable describePendingMaintenanceActionCallable(const Model::DescribePendingMaintenanceActionRequest& request) const; DescribePendingMaintenanceActionsOutcome describePendingMaintenanceActions(const Model::DescribePendingMaintenanceActionsRequest &request)const; void describePendingMaintenanceActionsAsync(const Model::DescribePendingMaintenanceActionsRequest& request, const DescribePendingMaintenanceActionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePendingMaintenanceActionsOutcomeCallable describePendingMaintenanceActionsCallable(const Model::DescribePendingMaintenanceActionsRequest& request) const; + DescribePolarSQLCollectorPolicyOutcome describePolarSQLCollectorPolicy(const Model::DescribePolarSQLCollectorPolicyRequest &request)const; + void describePolarSQLCollectorPolicyAsync(const Model::DescribePolarSQLCollectorPolicyRequest& request, const DescribePolarSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePolarSQLCollectorPolicyOutcomeCallable describePolarSQLCollectorPolicyCallable(const Model::DescribePolarSQLCollectorPolicyRequest& request) const; 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; - DescribeSQLLogRecordsOutcome describeSQLLogRecords(const Model::DescribeSQLLogRecordsRequest &request)const; - void describeSQLLogRecordsAsync(const Model::DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogRecordsOutcomeCallable describeSQLLogRecordsCallable(const Model::DescribeSQLLogRecordsRequest& request) const; - DescribeSQLLogTemplatesOutcome describeSQLLogTemplates(const Model::DescribeSQLLogTemplatesRequest &request)const; - void describeSQLLogTemplatesAsync(const Model::DescribeSQLLogTemplatesRequest& request, const DescribeSQLLogTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSQLLogTemplatesOutcomeCallable describeSQLLogTemplatesCallable(const Model::DescribeSQLLogTemplatesRequest& 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; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h index b7394b396..f6b467206 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h @@ -32,16 +32,11 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeResult : public ServiceResult { public: - struct Tag - { - std::string value; - std::string key; - }; struct DBNode { std::string dBNodeStatus; - std::string zoneId; int maxConnections; + std::string zoneId; std::string dBNodeRole; std::string creationTime; std::string dBNodeId; @@ -49,6 +44,11 @@ namespace AlibabaCloud std::string dBNodeClass; int maxIOPS; }; + struct Tag + { + std::string value; + std::string key; + }; DescribeDBClusterAttributeResult(); @@ -74,10 +74,11 @@ namespace AlibabaCloud std::string getVSwitchId()const; std::string getDBClusterDescription()const; std::string getExpired()const; - std::string getPayType()const; std::string getLockMode()const; + std::string getPayType()const; long getStorageUsed()const; std::string getDBVersionStatus()const; + std::string getSubCategory()const; std::string getCreationTime()const; std::string getRegionId()const; long getSQLSize()const; @@ -106,10 +107,11 @@ namespace AlibabaCloud std::string vSwitchId_; std::string dBClusterDescription_; std::string expired_; - std::string payType_; std::string lockMode_; + std::string payType_; long storageUsed_; std::string dBVersionStatus_; + std::string subCategory_; std::string creationTime_; std::string regionId_; long sQLSize_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h index 5673ec323..dfd7ffe41 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string port; std::string vSwitchId; std::string vpcInstanceId; - std::string connectionString; std::string iPAddress; + std::string connectionString; std::string netType; }; std::string dBEndpointId; @@ -50,10 +50,10 @@ namespace AlibabaCloud std::string autoAddNewNodes; std::string endpointType; std::vector addressItems; - std::string nodes; - std::string readWriteMode; - std::string endpointConfig; std::string dBEndpointDescription; + std::string endpointConfig; + std::string readWriteMode; + std::string nodes; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h index 6cd23d20c..5fbe5282a 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h @@ -37,22 +37,30 @@ namespace AlibabaCloud DescribeDBClusterVersionResult(); explicit DescribeDBClusterVersionResult(const std::string &payload); ~DescribeDBClusterVersionResult(); + std::string getProxyVersionStatus()const; std::string getIsLatestVersion()const; std::string getDBVersion()const; std::string getDBRevisionVersion()const; std::string getDBVersionStatus()const; std::string getDBClusterId()const; + std::string getDBLatestVersion()const; + std::string getProxyRevisionVersion()const; std::string getDBMinorVersion()const; + std::string getProxyLatestVersion()const; protected: void parse(const std::string &payload); private: + std::string proxyVersionStatus_; std::string isLatestVersion_; std::string dBVersion_; std::string dBRevisionVersion_; std::string dBVersionStatus_; std::string dBClusterId_; + std::string dBLatestVersion_; + std::string proxyRevisionVersion_; std::string dBMinorVersion_; + std::string proxyLatestVersion_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupsResult.h index 281600460..9be0e4089 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupsResult.h @@ -36,7 +36,6 @@ namespace AlibabaCloud { std::string dBVersion; std::string parameterGroupId; - std::string digitalId; std::string forceRestart; std::string parameterGroupName; std::string createTime; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesRequest.h similarity index 69% rename from polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h rename to polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesRequest.h index 92488c321..7844896d1 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_ +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ #include #include @@ -28,42 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerRetentionRequest : public RpcServiceRequest + class ALIBABACLOUD_POLARDB_EXPORT DescribeParameterTemplatesRequest : public RpcServiceRequest { public: - DescribeSQLExplorerRetentionRequest(); - ~DescribeSQLExplorerRetentionRequest(); + DescribeParameterTemplatesRequest(); + ~DescribeParameterTemplatesRequest(); 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); + std::string getDBType()const; + void setDBType(const std::string& dBType); + std::string getDBVersion()const; + void setDBVersion(const std::string& dBVersion); private: long resourceOwnerId_; std::string accessKeyId_; - std::string securityToken_; std::string regionId_; - std::string dBInstanceId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string dBType_; + std::string dBVersion_; }; } } } -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPARAMETERTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesResult.h new file mode 100644 index 000000000..82f95f17c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeParameterTemplatesResult.h @@ -0,0 +1,68 @@ +/* + * 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_DESCRIBEPARAMETERTEMPLATESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeParameterTemplatesResult : public ServiceResult + { + public: + struct TemplateRecord + { + std::string forceModify; + std::string checkingCode; + std::string parameterValue; + std::string forceRestart; + std::string parameterName; + std::string parameterDescription; + }; + + + DescribeParameterTemplatesResult(); + explicit DescribeParameterTemplatesResult(const std::string &payload); + ~DescribeParameterTemplatesResult(); + std::string getParameterCount()const; + std::string getDBVersion()const; + std::vector getParameters()const; + std::string getDBType()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::string parameterCount_; + std::string dBVersion_; + std::vector parameters_; + std::string dBType_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPARAMETERTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h similarity index 72% rename from polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h rename to polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h index 58f26b8f2..c07dcf607 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_ +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerPolicyRequest : public RpcServiceRequest + class ALIBABACLOUD_POLARDB_EXPORT DescribePolarSQLCollectorPolicyRequest : public RpcServiceRequest { public: - DescribeSQLExplorerPolicyRequest(); - ~DescribeSQLExplorerPolicyRequest(); + DescribePolarSQLCollectorPolicyRequest(); + ~DescribePolarSQLCollectorPolicyRequest(); 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 getDBClusterId()const; + void setDBClusterId(const std::string& dBClusterId); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; @@ -51,8 +51,8 @@ namespace AlibabaCloud private: long resourceOwnerId_; std::string accessKeyId_; - std::string dBInstanceId_; std::string resourceOwnerAccount_; + std::string dBClusterId_; std::string ownerAccount_; long ownerId_; @@ -60,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h b/polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.h similarity index 67% rename from polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h rename to polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.h index 3d9a881f3..5e6218689 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerPolicyResult : public ServiceResult + class ALIBABACLOUD_POLARDB_EXPORT DescribePolarSQLCollectorPolicyResult : public ServiceResult { public: - DescribeSQLExplorerPolicyResult(); - explicit DescribeSQLExplorerPolicyResult(const std::string &payload); - ~DescribeSQLExplorerPolicyResult(); + DescribePolarSQLCollectorPolicyResult(); + explicit DescribePolarSQLCollectorPolicyResult(const std::string &payload); + ~DescribePolarSQLCollectorPolicyResult(); std::string getSQLCollectorStatus()const; protected: @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEPOLARSQLCOLLECTORPOLICYRESULT_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 deleted file mode 100644 index 3fa99ed71..000000000 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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/DescribeSQLLogRecordsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsRequest.h deleted file mode 100644 index 96412c822..000000000 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsRequest.h +++ /dev/null @@ -1,132 +0,0 @@ -/* - * 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_DESCRIBESQLLOGRECORDSREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLLogRecordsRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogRecordsRequest(); - ~DescribeSQLLogRecordsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getAccountName()const; - void setAccountName(const std::string& accountName); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getState()const; - void setState(const std::string& state); - long getMinConsume()const; - void setMinConsume(long minConsume); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getLogicalOperator()const; - void setLogicalOperator(const std::string& logicalOperator); - std::string getDBName()const; - void setDBName(const std::string& dBName); - long getMinScanRows()const; - void setMinScanRows(long minScanRows); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getHostAddress()const; - void setHostAddress(const std::string& hostAddress); - std::string getSortKey()const; - void setSortKey(const std::string& sortKey); - int getPageNumbers()const; - void setPageNumbers(int pageNumbers); - std::string getPagingID()const; - void setPagingID(const std::string& pagingID); - std::string getDBInstanceId()const; - void setDBInstanceId(const std::string& dBInstanceId); - std::string getTableName()const; - void setTableName(const std::string& tableName); - std::string getSqlType()const; - void setSqlType(const std::string& sqlType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getMaxRecordsPerPage()const; - void setMaxRecordsPerPage(int maxRecordsPerPage); - std::string getQueryKeyword()const; - void setQueryKeyword(const std::string& queryKeyword); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getMaxConsume()const; - void setMaxConsume(long maxConsume); - std::string getThreadID()const; - void setThreadID(const std::string& threadID); - std::string getChildDBInstanceIDs()const; - void setChildDBInstanceIDs(const std::string& childDBInstanceIDs); - std::string getSortMethod()const; - void setSortMethod(const std::string& sortMethod); - long getMaxScanRows()const; - void setMaxScanRows(long maxScanRows); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string jobId_; - std::string accountName_; - std::string securityToken_; - std::string state_; - long minConsume_; - long ownerId_; - std::string logicalOperator_; - std::string dBName_; - long minScanRows_; - std::string accessKeyId_; - std::string hostAddress_; - std::string sortKey_; - int pageNumbers_; - std::string pagingID_; - std::string dBInstanceId_; - std::string tableName_; - std::string sqlType_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int maxRecordsPerPage_; - std::string queryKeyword_; - std::string endTime_; - long maxConsume_; - std::string threadID_; - std::string childDBInstanceIDs_; - std::string sortMethod_; - long maxScanRows_; - - }; - } - } -} -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h deleted file mode 100644 index 1e3bf7720..000000000 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogRecordsResult.h +++ /dev/null @@ -1,90 +0,0 @@ -/* - * 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_DESCRIBESQLLOGRECORDSRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLLogRecordsResult : public ServiceResult - { - public: - struct SQLLogRecord - { - std::string executeTime; - std::string insName; - std::string hostAddress; - long updateRows; - std::string sQLText; - std::string originTime; - long consume; - long scanRows; - int threadID; - std::string state; - std::string dBName; - std::string sqlType; - std::string vip; - std::string accountName; - }; - - - DescribeSQLLogRecordsResult(); - explicit DescribeSQLLogRecordsResult(const std::string &payload); - ~DescribeSQLLogRecordsResult(); - int getMaxRecordsPerPage()const; - int getItemsNumbers()const; - std::string getEndTime()const; - std::string getDBInstanceID()const; - std::string getStartTime()const; - int getTotalRecords()const; - std::vector getItems()const; - std::string getFinish()const; - int getPageNumbers()const; - std::string getJobId()const; - std::string getPagingID()const; - std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: - int maxRecordsPerPage_; - int itemsNumbers_; - std::string endTime_; - std::string dBInstanceID_; - std::string startTime_; - int totalRecords_; - std::vector items_; - std::string finish_; - int pageNumbers_; - std::string jobId_; - std::string pagingID_; - std::string dBInstanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h deleted file mode 100644 index a05295036..000000000 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesRequest.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * 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_DESCRIBESQLLOGTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLLogTemplatesRequest : public RpcServiceRequest - { - - public: - DescribeSQLLogTemplatesRequest(); - ~DescribeSQLLogTemplatesRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getSortKey()const; - void setSortKey(const std::string& sortKey); - float getMinAvgScanRows()const; - void setMinAvgScanRows(float minAvgScanRows); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - int getPageNumbers()const; - void setPageNumbers(int pageNumbers); - std::string getPagingId()const; - void setPagingId(const std::string& pagingId); - std::string getDBInstanceId()const; - void setDBInstanceId(const std::string& dBInstanceId); - float getMaxAvgScanRows()const; - void setMaxAvgScanRows(float maxAvgScanRows); - std::string getSqlType()const; - void setSqlType(const std::string& sqlType); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - float getMinAvgConsume()const; - void setMinAvgConsume(float minAvgConsume); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getMaxRecordsPerPage()const; - void setMaxRecordsPerPage(int maxRecordsPerPage); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - float getMaxAvgConsume()const; - void setMaxAvgConsume(float maxAvgConsume); - std::string getChildDBInstanceIDs()const; - void setChildDBInstanceIDs(const std::string& childDBInstanceIDs); - std::string getSortMethod()const; - void setSortMethod(const std::string& sortMethod); - - private: - long resourceOwnerId_; - std::string startTime_; - std::string accessKeyId_; - std::string jobId_; - std::string sortKey_; - float minAvgScanRows_; - std::string securityToken_; - int pageNumbers_; - std::string pagingId_; - std::string dBInstanceId_; - float maxAvgScanRows_; - std::string sqlType_; - std::string resourceOwnerAccount_; - float minAvgConsume_; - std::string ownerAccount_; - int maxRecordsPerPage_; - std::string endTime_; - long ownerId_; - float maxAvgConsume_; - std::string childDBInstanceIDs_; - std::string sortMethod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTEMPLATESREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h deleted file mode 100644 index bba131830..000000000 --- a/polardb/include/alibabacloud/polardb/model/DescribeSQLLogTemplatesResult.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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_DESCRIBESQLLOGTEMPLATESRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTEMPLATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Polardb - { - namespace Model - { - class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLLogTemplatesResult : public ServiceResult - { - public: - struct _Template - { - float avgScanRows; - std::string templateHash; - float avgConsume; - std::string _template; - long totalScanRows; - long totalUpdateRows; - long totalCounts; - std::string sqlType; - float avgUpdateRows; - int itemID; - long totalConsume; - }; - - - DescribeSQLLogTemplatesResult(); - explicit DescribeSQLLogTemplatesResult(const std::string &payload); - ~DescribeSQLLogTemplatesResult(); - int getMaxRecordsPerPage()const; - int getItemsNumbers()const; - std::string getEndTime()const; - int getDBInstanceID()const; - std::string getStartTime()const; - int getTotalRecords()const; - std::vector<_Template> getItems()const; - std::string getFinish()const; - int getPageNumbers()const; - std::string getJobId()const; - std::string getPagingID()const; - std::string getDBInstanceName()const; - - protected: - void parse(const std::string &payload); - private: - int maxRecordsPerPage_; - int itemsNumbers_; - std::string endTime_; - int dBInstanceID_; - std::string startTime_; - int totalRecords_; - std::vector<_Template> items_; - std::string finish_; - int pageNumbers_; - std::string jobId_; - std::string pagingID_; - std::string dBInstanceName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h index e651b106e..8fdf9e3d2 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h @@ -41,8 +41,6 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getParameterGroupId()const; void setParameterGroupId(const std::string& parameterGroupId); - std::string getEffectiveTime()const; - void setEffectiveTime(const std::string& effectiveTime); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getDBClusterId()const; @@ -58,7 +56,6 @@ namespace AlibabaCloud long resourceOwnerId_; std::string accessKeyId_; std::string parameterGroupId_; - std::string effectiveTime_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc index 664ec4efa..3cfa7e2ca 100644 --- a/polardb/src/PolardbClient.cc +++ b/polardb/src/PolardbClient.cc @@ -1959,6 +1959,42 @@ PolardbClient::DescribeParameterGroupsOutcomeCallable PolardbClient::describePar return task->get_future(); } +PolardbClient::DescribeParameterTemplatesOutcome PolardbClient::describeParameterTemplates(const DescribeParameterTemplatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeParameterTemplatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeParameterTemplatesOutcome(DescribeParameterTemplatesResult(outcome.result())); + else + return DescribeParameterTemplatesOutcome(outcome.error()); +} + +void PolardbClient::describeParameterTemplatesAsync(const DescribeParameterTemplatesRequest& request, const DescribeParameterTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeParameterTemplates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeParameterTemplatesOutcomeCallable PolardbClient::describeParameterTemplatesCallable(const DescribeParameterTemplatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeParameterTemplates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribePendingMaintenanceActionOutcome PolardbClient::describePendingMaintenanceAction(const DescribePendingMaintenanceActionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2067,42 @@ PolardbClient::DescribePendingMaintenanceActionsOutcomeCallable PolardbClient::d return task->get_future(); } +PolardbClient::DescribePolarSQLCollectorPolicyOutcome PolardbClient::describePolarSQLCollectorPolicy(const DescribePolarSQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePolarSQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePolarSQLCollectorPolicyOutcome(DescribePolarSQLCollectorPolicyResult(outcome.result())); + else + return DescribePolarSQLCollectorPolicyOutcome(outcome.error()); +} + +void PolardbClient::describePolarSQLCollectorPolicyAsync(const DescribePolarSQLCollectorPolicyRequest& request, const DescribePolarSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePolarSQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribePolarSQLCollectorPolicyOutcomeCallable PolardbClient::describePolarSQLCollectorPolicyCallable(const DescribePolarSQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePolarSQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeRegionsOutcome PolardbClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,150 +2139,6 @@ 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::DescribeSQLLogRecordsOutcome PolardbClient::describeSQLLogRecords(const DescribeSQLLogRecordsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogRecordsOutcome(DescribeSQLLogRecordsResult(outcome.result())); - else - return DescribeSQLLogRecordsOutcome(outcome.error()); -} - -void PolardbClient::describeSQLLogRecordsAsync(const DescribeSQLLogRecordsRequest& request, const DescribeSQLLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogRecords(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -PolardbClient::DescribeSQLLogRecordsOutcomeCallable PolardbClient::describeSQLLogRecordsCallable(const DescribeSQLLogRecordsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogRecords(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -PolardbClient::DescribeSQLLogTemplatesOutcome PolardbClient::describeSQLLogTemplates(const DescribeSQLLogTemplatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSQLLogTemplatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSQLLogTemplatesOutcome(DescribeSQLLogTemplatesResult(outcome.result())); - else - return DescribeSQLLogTemplatesOutcome(outcome.error()); -} - -void PolardbClient::describeSQLLogTemplatesAsync(const DescribeSQLLogTemplatesRequest& request, const DescribeSQLLogTemplatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSQLLogTemplates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -PolardbClient::DescribeSQLLogTemplatesOutcomeCallable PolardbClient::describeSQLLogTemplatesCallable(const DescribeSQLLogTemplatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSQLLogTemplates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - PolardbClient::DescribeScheduleTasksOutcome PolardbClient::describeScheduleTasks(const DescribeScheduleTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/polardb/src/model/DescribeDBClusterAttributeResult.cc b/polardb/src/model/DescribeDBClusterAttributeResult.cc index 26e538277..9c585814a 100644 --- a/polardb/src/model/DescribeDBClusterAttributeResult.cc +++ b/polardb/src/model/DescribeDBClusterAttributeResult.cc @@ -39,92 +39,94 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allTagsNode = value["Tags"]["Tag"]; - for (auto valueTagsTag : allTagsNode) - { - Tag tagsObject; - if(!valueTagsTag["Key"].isNull()) - tagsObject.key = valueTagsTag["Key"].asString(); - if(!valueTagsTag["Value"].isNull()) - tagsObject.value = valueTagsTag["Value"].asString(); - tags_.push_back(tagsObject); - } auto allDBNodesNode = value["DBNodes"]["DBNode"]; for (auto valueDBNodesDBNode : allDBNodesNode) { DBNode dBNodesObject; - if(!valueDBNodesDBNode["DBNodeId"].isNull()) - dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString(); - if(!valueDBNodesDBNode["ZoneId"].isNull()) - dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString(); if(!valueDBNodesDBNode["DBNodeStatus"].isNull()) dBNodesObject.dBNodeStatus = valueDBNodesDBNode["DBNodeStatus"].asString(); - if(!valueDBNodesDBNode["CreationTime"].isNull()) - dBNodesObject.creationTime = valueDBNodesDBNode["CreationTime"].asString(); - if(!valueDBNodesDBNode["DBNodeClass"].isNull()) - dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString(); - if(!valueDBNodesDBNode["DBNodeRole"].isNull()) - dBNodesObject.dBNodeRole = valueDBNodesDBNode["DBNodeRole"].asString(); - if(!valueDBNodesDBNode["MaxIOPS"].isNull()) - dBNodesObject.maxIOPS = std::stoi(valueDBNodesDBNode["MaxIOPS"].asString()); if(!valueDBNodesDBNode["MaxConnections"].isNull()) dBNodesObject.maxConnections = std::stoi(valueDBNodesDBNode["MaxConnections"].asString()); + if(!valueDBNodesDBNode["ZoneId"].isNull()) + dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString(); + if(!valueDBNodesDBNode["DBNodeRole"].isNull()) + dBNodesObject.dBNodeRole = valueDBNodesDBNode["DBNodeRole"].asString(); + if(!valueDBNodesDBNode["CreationTime"].isNull()) + dBNodesObject.creationTime = valueDBNodesDBNode["CreationTime"].asString(); + if(!valueDBNodesDBNode["DBNodeId"].isNull()) + dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString(); if(!valueDBNodesDBNode["FailoverPriority"].isNull()) dBNodesObject.failoverPriority = std::stoi(valueDBNodesDBNode["FailoverPriority"].asString()); + if(!valueDBNodesDBNode["DBNodeClass"].isNull()) + dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString(); + if(!valueDBNodesDBNode["MaxIOPS"].isNull()) + dBNodesObject.maxIOPS = std::stoi(valueDBNodesDBNode["MaxIOPS"].asString()); dBNodes_.push_back(dBNodesObject); } - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["DBClusterNetworkType"].isNull()) - dBClusterNetworkType_ = value["DBClusterNetworkType"].asString(); - if(!value["VPCId"].isNull()) - vPCId_ = value["VPCId"].asString(); - if(!value["VSwitchId"].isNull()) - vSwitchId_ = value["VSwitchId"].asString(); - if(!value["PayType"].isNull()) - payType_ = value["PayType"].asString(); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["DBClusterStatus"].isNull()) - dBClusterStatus_ = value["DBClusterStatus"].asString(); - if(!value["DBClusterDescription"].isNull()) - dBClusterDescription_ = value["DBClusterDescription"].asString(); - if(!value["Engine"].isNull()) - engine_ = value["Engine"].asString(); - if(!value["DBType"].isNull()) - dBType_ = value["DBType"].asString(); - if(!value["DBVersion"].isNull()) - dBVersion_ = value["DBVersion"].asString(); - if(!value["LockMode"].isNull()) - lockMode_ = value["LockMode"].asString(); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + tags_.push_back(tagsObject); + } if(!value["DeletionLock"].isNull()) deletionLock_ = std::stoi(value["DeletionLock"].asString()); - if(!value["CreationTime"].isNull()) - creationTime_ = value["CreationTime"].asString(); - if(!value["ExpireTime"].isNull()) - expireTime_ = value["ExpireTime"].asString(); - if(!value["Expired"].isNull()) - expired_ = value["Expired"].asString(); - if(!value["MaintainTime"].isNull()) - maintainTime_ = value["MaintainTime"].asString(); - if(!value["StorageUsed"].isNull()) - storageUsed_ = std::stol(value["StorageUsed"].asString()); - if(!value["StorageMax"].isNull()) - storageMax_ = std::stol(value["StorageMax"].asString()); - if(!value["ZoneIds"].isNull()) - zoneIds_ = value["ZoneIds"].asString(); - if(!value["SQLSize"].isNull()) - sQLSize_ = std::stol(value["SQLSize"].asString()); - if(!value["IsLatestVersion"].isNull()) - isLatestVersion_ = value["IsLatestVersion"].asString() == "true"; + if(!value["Category"].isNull()) + category_ = value["Category"].asString(); if(!value["ResourceGroupId"].isNull()) resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["DataLevel1BackupChainSize"].isNull()) dataLevel1BackupChainSize_ = std::stol(value["DataLevel1BackupChainSize"].asString()); - if(!value["Category"].isNull()) - category_ = value["Category"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBClusterNetworkType"].isNull()) + dBClusterNetworkType_ = value["DBClusterNetworkType"].asString(); + if(!value["DBType"].isNull()) + dBType_ = value["DBType"].asString(); + if(!value["IsLatestVersion"].isNull()) + isLatestVersion_ = value["IsLatestVersion"].asString() == "true"; + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["StorageMax"].isNull()) + storageMax_ = std::stol(value["StorageMax"].asString()); + if(!value["ZoneIds"].isNull()) + zoneIds_ = value["ZoneIds"].asString(); + if(!value["MaintainTime"].isNull()) + maintainTime_ = value["MaintainTime"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["VPCId"].isNull()) + vPCId_ = value["VPCId"].asString(); + if(!value["DBClusterStatus"].isNull()) + dBClusterStatus_ = value["DBClusterStatus"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["DBClusterDescription"].isNull()) + dBClusterDescription_ = value["DBClusterDescription"].asString(); + if(!value["Expired"].isNull()) + expired_ = value["Expired"].asString(); + if(!value["LockMode"].isNull()) + lockMode_ = value["LockMode"].asString(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + if(!value["StorageUsed"].isNull()) + storageUsed_ = std::stol(value["StorageUsed"].asString()); if(!value["DBVersionStatus"].isNull()) dBVersionStatus_ = value["DBVersionStatus"].asString(); + if(!value["SubCategory"].isNull()) + subCategory_ = value["SubCategory"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["SQLSize"].isNull()) + sQLSize_ = std::stol(value["SQLSize"].asString()); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); } @@ -228,16 +230,16 @@ std::string DescribeDBClusterAttributeResult::getExpired()const return expired_; } -std::string DescribeDBClusterAttributeResult::getPayType()const -{ - return payType_; -} - std::string DescribeDBClusterAttributeResult::getLockMode()const { return lockMode_; } +std::string DescribeDBClusterAttributeResult::getPayType()const +{ + return payType_; +} + long DescribeDBClusterAttributeResult::getStorageUsed()const { return storageUsed_; @@ -248,6 +250,11 @@ std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const return dBVersionStatus_; } +std::string DescribeDBClusterAttributeResult::getSubCategory()const +{ + return subCategory_; +} + std::string DescribeDBClusterAttributeResult::getCreationTime()const { return creationTime_; diff --git a/polardb/src/model/DescribeDBClusterEndpointsResult.cc b/polardb/src/model/DescribeDBClusterEndpointsResult.cc index 4410a3f93..b7581ecc9 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsResult.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsResult.cc @@ -45,40 +45,40 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) DBEndpoint itemsObject; if(!valueItemsDBEndpoint["DBEndpointId"].isNull()) itemsObject.dBEndpointId = valueItemsDBEndpoint["DBEndpointId"].asString(); - if(!valueItemsDBEndpoint["EndpointType"].isNull()) - itemsObject.endpointType = valueItemsDBEndpoint["EndpointType"].asString(); - if(!valueItemsDBEndpoint["Nodes"].isNull()) - itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString(); - if(!valueItemsDBEndpoint["ReadWriteMode"].isNull()) - itemsObject.readWriteMode = valueItemsDBEndpoint["ReadWriteMode"].asString(); - if(!valueItemsDBEndpoint["AutoAddNewNodes"].isNull()) - itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString(); - if(!valueItemsDBEndpoint["EndpointConfig"].isNull()) - itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString(); if(!valueItemsDBEndpoint["NodeWithRoles"].isNull()) itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString(); + if(!valueItemsDBEndpoint["AutoAddNewNodes"].isNull()) + itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString(); + if(!valueItemsDBEndpoint["EndpointType"].isNull()) + itemsObject.endpointType = valueItemsDBEndpoint["EndpointType"].asString(); if(!valueItemsDBEndpoint["DBEndpointDescription"].isNull()) itemsObject.dBEndpointDescription = valueItemsDBEndpoint["DBEndpointDescription"].asString(); + if(!valueItemsDBEndpoint["EndpointConfig"].isNull()) + itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString(); + if(!valueItemsDBEndpoint["ReadWriteMode"].isNull()) + itemsObject.readWriteMode = valueItemsDBEndpoint["ReadWriteMode"].asString(); + if(!valueItemsDBEndpoint["Nodes"].isNull()) + itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString(); auto allAddressItemsNode = valueItemsDBEndpoint["AddressItems"]["Address"]; for (auto valueItemsDBEndpointAddressItemsAddress : allAddressItemsNode) { DBEndpoint::Address addressItemsObject; - if(!valueItemsDBEndpointAddressItemsAddress["ConnectionString"].isNull()) - addressItemsObject.connectionString = valueItemsDBEndpointAddressItemsAddress["ConnectionString"].asString(); - if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull()) - addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString(); - if(!valueItemsDBEndpointAddressItemsAddress["NetType"].isNull()) - addressItemsObject.netType = valueItemsDBEndpointAddressItemsAddress["NetType"].asString(); - if(!valueItemsDBEndpointAddressItemsAddress["Port"].isNull()) - addressItemsObject.port = valueItemsDBEndpointAddressItemsAddress["Port"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].isNull()) + addressItemsObject.privateZoneConnectionString = valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].asString(); if(!valueItemsDBEndpointAddressItemsAddress["VPCId"].isNull()) addressItemsObject.vPCId = valueItemsDBEndpointAddressItemsAddress["VPCId"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["Port"].isNull()) + addressItemsObject.port = valueItemsDBEndpointAddressItemsAddress["Port"].asString(); if(!valueItemsDBEndpointAddressItemsAddress["VSwitchId"].isNull()) addressItemsObject.vSwitchId = valueItemsDBEndpointAddressItemsAddress["VSwitchId"].asString(); if(!valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].isNull()) addressItemsObject.vpcInstanceId = valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].asString(); - if(!valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].isNull()) - addressItemsObject.privateZoneConnectionString = valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull()) + addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["ConnectionString"].isNull()) + addressItemsObject.connectionString = valueItemsDBEndpointAddressItemsAddress["ConnectionString"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["NetType"].isNull()) + addressItemsObject.netType = valueItemsDBEndpointAddressItemsAddress["NetType"].asString(); itemsObject.addressItems.push_back(addressItemsObject); } items_.push_back(itemsObject); diff --git a/polardb/src/model/DescribeDBClusterVersionResult.cc b/polardb/src/model/DescribeDBClusterVersionResult.cc index 5ade15279..858ab610d 100644 --- a/polardb/src/model/DescribeDBClusterVersionResult.cc +++ b/polardb/src/model/DescribeDBClusterVersionResult.cc @@ -39,21 +39,34 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DBClusterId"].isNull()) - dBClusterId_ = value["DBClusterId"].asString(); - if(!value["DBVersion"].isNull()) - dBVersion_ = value["DBVersion"].asString(); - if(!value["DBMinorVersion"].isNull()) - dBMinorVersion_ = value["DBMinorVersion"].asString(); - if(!value["DBVersionStatus"].isNull()) - dBVersionStatus_ = value["DBVersionStatus"].asString(); + if(!value["ProxyVersionStatus"].isNull()) + proxyVersionStatus_ = value["ProxyVersionStatus"].asString(); if(!value["IsLatestVersion"].isNull()) isLatestVersion_ = value["IsLatestVersion"].asString(); + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); if(!value["DBRevisionVersion"].isNull()) dBRevisionVersion_ = value["DBRevisionVersion"].asString(); + if(!value["DBVersionStatus"].isNull()) + dBVersionStatus_ = value["DBVersionStatus"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBLatestVersion"].isNull()) + dBLatestVersion_ = value["DBLatestVersion"].asString(); + if(!value["ProxyRevisionVersion"].isNull()) + proxyRevisionVersion_ = value["ProxyRevisionVersion"].asString(); + if(!value["DBMinorVersion"].isNull()) + dBMinorVersion_ = value["DBMinorVersion"].asString(); + if(!value["ProxyLatestVersion"].isNull()) + proxyLatestVersion_ = value["ProxyLatestVersion"].asString(); } +std::string DescribeDBClusterVersionResult::getProxyVersionStatus()const +{ + return proxyVersionStatus_; +} + std::string DescribeDBClusterVersionResult::getIsLatestVersion()const { return isLatestVersion_; @@ -79,8 +92,23 @@ std::string DescribeDBClusterVersionResult::getDBClusterId()const return dBClusterId_; } +std::string DescribeDBClusterVersionResult::getDBLatestVersion()const +{ + return dBLatestVersion_; +} + +std::string DescribeDBClusterVersionResult::getProxyRevisionVersion()const +{ + return proxyRevisionVersion_; +} + std::string DescribeDBClusterVersionResult::getDBMinorVersion()const { return dBMinorVersion_; } +std::string DescribeDBClusterVersionResult::getProxyLatestVersion()const +{ + return proxyLatestVersion_; +} + diff --git a/polardb/src/model/DescribeParameterGroupsResult.cc b/polardb/src/model/DescribeParameterGroupsResult.cc index 3e0df5bff..bf2617c3b 100644 --- a/polardb/src/model/DescribeParameterGroupsResult.cc +++ b/polardb/src/model/DescribeParameterGroupsResult.cc @@ -47,8 +47,6 @@ void DescribeParameterGroupsResult::parse(const std::string &payload) parameterGroupsObject.dBVersion = valueParameterGroupsParameterGroupsItem["DBVersion"].asString(); if(!valueParameterGroupsParameterGroupsItem["ParameterGroupId"].isNull()) parameterGroupsObject.parameterGroupId = valueParameterGroupsParameterGroupsItem["ParameterGroupId"].asString(); - if(!valueParameterGroupsParameterGroupsItem["DigitalId"].isNull()) - parameterGroupsObject.digitalId = valueParameterGroupsParameterGroupsItem["DigitalId"].asString(); if(!valueParameterGroupsParameterGroupsItem["ForceRestart"].isNull()) parameterGroupsObject.forceRestart = valueParameterGroupsParameterGroupsItem["ForceRestart"].asString(); if(!valueParameterGroupsParameterGroupsItem["ParameterGroupName"].isNull()) diff --git a/polardb/src/model/DescribeParameterTemplatesRequest.cc b/polardb/src/model/DescribeParameterTemplatesRequest.cc new file mode 100644 index 000000000..f4dd05b61 --- /dev/null +++ b/polardb/src/model/DescribeParameterTemplatesRequest.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::DescribeParameterTemplatesRequest; + +DescribeParameterTemplatesRequest::DescribeParameterTemplatesRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeParameterTemplates") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeParameterTemplatesRequest::~DescribeParameterTemplatesRequest() +{} + +long DescribeParameterTemplatesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeParameterTemplatesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeParameterTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeParameterTemplatesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeParameterTemplatesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeParameterTemplatesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeParameterTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeParameterTemplatesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeParameterTemplatesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeParameterTemplatesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeParameterTemplatesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeParameterTemplatesRequest::getDBType()const +{ + return dBType_; +} + +void DescribeParameterTemplatesRequest::setDBType(const std::string& dBType) +{ + dBType_ = dBType; + setParameter("DBType", dBType); +} + +std::string DescribeParameterTemplatesRequest::getDBVersion()const +{ + return dBVersion_; +} + +void DescribeParameterTemplatesRequest::setDBVersion(const std::string& dBVersion) +{ + dBVersion_ = dBVersion; + setParameter("DBVersion", dBVersion); +} + diff --git a/polardb/src/model/DescribeParameterTemplatesResult.cc b/polardb/src/model/DescribeParameterTemplatesResult.cc new file mode 100644 index 000000000..a94f22753 --- /dev/null +++ b/polardb/src/model/DescribeParameterTemplatesResult.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 +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult() : + ServiceResult() +{} + +DescribeParameterTemplatesResult::DescribeParameterTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeParameterTemplatesResult::~DescribeParameterTemplatesResult() +{} + +void DescribeParameterTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allParametersNode = value["Parameters"]["TemplateRecord"]; + for (auto valueParametersTemplateRecord : allParametersNode) + { + TemplateRecord parametersObject; + if(!valueParametersTemplateRecord["ForceModify"].isNull()) + parametersObject.forceModify = valueParametersTemplateRecord["ForceModify"].asString(); + if(!valueParametersTemplateRecord["CheckingCode"].isNull()) + parametersObject.checkingCode = valueParametersTemplateRecord["CheckingCode"].asString(); + if(!valueParametersTemplateRecord["ParameterValue"].isNull()) + parametersObject.parameterValue = valueParametersTemplateRecord["ParameterValue"].asString(); + if(!valueParametersTemplateRecord["ForceRestart"].isNull()) + parametersObject.forceRestart = valueParametersTemplateRecord["ForceRestart"].asString(); + if(!valueParametersTemplateRecord["ParameterName"].isNull()) + parametersObject.parameterName = valueParametersTemplateRecord["ParameterName"].asString(); + if(!valueParametersTemplateRecord["ParameterDescription"].isNull()) + parametersObject.parameterDescription = valueParametersTemplateRecord["ParameterDescription"].asString(); + parameters_.push_back(parametersObject); + } + if(!value["ParameterCount"].isNull()) + parameterCount_ = value["ParameterCount"].asString(); + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["DBType"].isNull()) + dBType_ = value["DBType"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + +} + +std::string DescribeParameterTemplatesResult::getParameterCount()const +{ + return parameterCount_; +} + +std::string DescribeParameterTemplatesResult::getDBVersion()const +{ + return dBVersion_; +} + +std::vector DescribeParameterTemplatesResult::getParameters()const +{ + return parameters_; +} + +std::string DescribeParameterTemplatesResult::getDBType()const +{ + return dBType_; +} + +std::string DescribeParameterTemplatesResult::getEngine()const +{ + return engine_; +} + diff --git a/polardb/src/model/DescribePolarSQLCollectorPolicyRequest.cc b/polardb/src/model/DescribePolarSQLCollectorPolicyRequest.cc new file mode 100644 index 000000000..4e0507385 --- /dev/null +++ b/polardb/src/model/DescribePolarSQLCollectorPolicyRequest.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::DescribePolarSQLCollectorPolicyRequest; + +DescribePolarSQLCollectorPolicyRequest::DescribePolarSQLCollectorPolicyRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribePolarSQLCollectorPolicy") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribePolarSQLCollectorPolicyRequest::~DescribePolarSQLCollectorPolicyRequest() +{} + +long DescribePolarSQLCollectorPolicyRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribePolarSQLCollectorPolicyRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribePolarSQLCollectorPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribePolarSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribePolarSQLCollectorPolicyRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribePolarSQLCollectorPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribePolarSQLCollectorPolicyRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void DescribePolarSQLCollectorPolicyRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string DescribePolarSQLCollectorPolicyRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribePolarSQLCollectorPolicyRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribePolarSQLCollectorPolicyRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribePolarSQLCollectorPolicyRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeSQLExplorerPolicyResult.cc b/polardb/src/model/DescribePolarSQLCollectorPolicyResult.cc similarity index 67% rename from polardb/src/model/DescribeSQLExplorerPolicyResult.cc rename to polardb/src/model/DescribePolarSQLCollectorPolicyResult.cc index a7e7d7f18..b94cadb1d 100644 --- a/polardb/src/model/DescribeSQLExplorerPolicyResult.cc +++ b/polardb/src/model/DescribePolarSQLCollectorPolicyResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Polardb; using namespace AlibabaCloud::Polardb::Model; -DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult() : +DescribePolarSQLCollectorPolicyResult::DescribePolarSQLCollectorPolicyResult() : ServiceResult() {} -DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult(const std::string &payload) : +DescribePolarSQLCollectorPolicyResult::DescribePolarSQLCollectorPolicyResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeSQLExplorerPolicyResult::~DescribeSQLExplorerPolicyResult() +DescribePolarSQLCollectorPolicyResult::~DescribePolarSQLCollectorPolicyResult() {} -void DescribeSQLExplorerPolicyResult::parse(const std::string &payload) +void DescribePolarSQLCollectorPolicyResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -44,7 +44,7 @@ void DescribeSQLExplorerPolicyResult::parse(const std::string &payload) } -std::string DescribeSQLExplorerPolicyResult::getSQLCollectorStatus()const +std::string DescribePolarSQLCollectorPolicyResult::getSQLCollectorStatus()const { return sQLCollectorStatus_; } diff --git a/polardb/src/model/DescribeSQLExplorerPolicyRequest.cc b/polardb/src/model/DescribeSQLExplorerPolicyRequest.cc deleted file mode 100644 index cac53b5a3..000000000 --- a/polardb/src/model/DescribeSQLExplorerPolicyRequest.cc +++ /dev/null @@ -1,95 +0,0 @@ -/* - * 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/DescribeSQLExplorerRetentionRequest.cc b/polardb/src/model/DescribeSQLExplorerRetentionRequest.cc deleted file mode 100644 index e91cced8a..000000000 --- a/polardb/src/model/DescribeSQLExplorerRetentionRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * 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 deleted file mode 100644 index 79be99073..000000000 --- a/polardb/src/model/DescribeSQLExplorerRetentionResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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/DescribeSQLLogRecordsRequest.cc b/polardb/src/model/DescribeSQLLogRecordsRequest.cc deleted file mode 100644 index 39be4a829..000000000 --- a/polardb/src/model/DescribeSQLLogRecordsRequest.cc +++ /dev/null @@ -1,348 +0,0 @@ -/* - * 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::DescribeSQLLogRecordsRequest; - -DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLLogRecords") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() -{} - -long DescribeSQLLogRecordsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeSQLLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeSQLLogRecordsRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeSQLLogRecordsRequest::getJobId()const -{ - return jobId_; -} - -void DescribeSQLLogRecordsRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string DescribeSQLLogRecordsRequest::getAccountName()const -{ - return accountName_; -} - -void DescribeSQLLogRecordsRequest::setAccountName(const std::string& accountName) -{ - accountName_ = accountName; - setParameter("AccountName", accountName); -} - -std::string DescribeSQLLogRecordsRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeSQLLogRecordsRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string DescribeSQLLogRecordsRequest::getState()const -{ - return state_; -} - -void DescribeSQLLogRecordsRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); -} - -long DescribeSQLLogRecordsRequest::getMinConsume()const -{ - return minConsume_; -} - -void DescribeSQLLogRecordsRequest::setMinConsume(long minConsume) -{ - minConsume_ = minConsume; - setParameter("MinConsume", std::to_string(minConsume)); -} - -long DescribeSQLLogRecordsRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSQLLogRecordsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeSQLLogRecordsRequest::getLogicalOperator()const -{ - return logicalOperator_; -} - -void DescribeSQLLogRecordsRequest::setLogicalOperator(const std::string& logicalOperator) -{ - logicalOperator_ = logicalOperator; - setParameter("LogicalOperator", logicalOperator); -} - -std::string DescribeSQLLogRecordsRequest::getDBName()const -{ - return dBName_; -} - -void DescribeSQLLogRecordsRequest::setDBName(const std::string& dBName) -{ - dBName_ = dBName; - setParameter("DBName", dBName); -} - -long DescribeSQLLogRecordsRequest::getMinScanRows()const -{ - return minScanRows_; -} - -void DescribeSQLLogRecordsRequest::setMinScanRows(long minScanRows) -{ - minScanRows_ = minScanRows; - setParameter("MinScanRows", std::to_string(minScanRows)); -} - -std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeSQLLogRecordsRequest::getHostAddress()const -{ - return hostAddress_; -} - -void DescribeSQLLogRecordsRequest::setHostAddress(const std::string& hostAddress) -{ - hostAddress_ = hostAddress; - setParameter("HostAddress", hostAddress); -} - -std::string DescribeSQLLogRecordsRequest::getSortKey()const -{ - return sortKey_; -} - -void DescribeSQLLogRecordsRequest::setSortKey(const std::string& sortKey) -{ - sortKey_ = sortKey; - setParameter("SortKey", sortKey); -} - -int DescribeSQLLogRecordsRequest::getPageNumbers()const -{ - return pageNumbers_; -} - -void DescribeSQLLogRecordsRequest::setPageNumbers(int pageNumbers) -{ - pageNumbers_ = pageNumbers; - setParameter("PageNumbers", std::to_string(pageNumbers)); -} - -std::string DescribeSQLLogRecordsRequest::getPagingID()const -{ - return pagingID_; -} - -void DescribeSQLLogRecordsRequest::setPagingID(const std::string& pagingID) -{ - pagingID_ = pagingID; - setParameter("PagingID", pagingID); -} - -std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const -{ - return dBInstanceId_; -} - -void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) -{ - dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); -} - -std::string DescribeSQLLogRecordsRequest::getTableName()const -{ - return tableName_; -} - -void DescribeSQLLogRecordsRequest::setTableName(const std::string& tableName) -{ - tableName_ = tableName; - setParameter("TableName", tableName); -} - -std::string DescribeSQLLogRecordsRequest::getSqlType()const -{ - return sqlType_; -} - -void DescribeSQLLogRecordsRequest::setSqlType(const std::string& sqlType) -{ - sqlType_ = sqlType; - setParameter("SqlType", sqlType); -} - -std::string DescribeSQLLogRecordsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeSQLLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeSQLLogRecordsRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeSQLLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -int DescribeSQLLogRecordsRequest::getMaxRecordsPerPage()const -{ - return maxRecordsPerPage_; -} - -void DescribeSQLLogRecordsRequest::setMaxRecordsPerPage(int maxRecordsPerPage) -{ - maxRecordsPerPage_ = maxRecordsPerPage; - setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage)); -} - -std::string DescribeSQLLogRecordsRequest::getQueryKeyword()const -{ - return queryKeyword_; -} - -void DescribeSQLLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword) -{ - queryKeyword_ = queryKeyword; - setParameter("QueryKeyword", queryKeyword); -} - -std::string DescribeSQLLogRecordsRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeSQLLogRecordsRequest::getMaxConsume()const -{ - return maxConsume_; -} - -void DescribeSQLLogRecordsRequest::setMaxConsume(long maxConsume) -{ - maxConsume_ = maxConsume; - setParameter("MaxConsume", std::to_string(maxConsume)); -} - -std::string DescribeSQLLogRecordsRequest::getThreadID()const -{ - return threadID_; -} - -void DescribeSQLLogRecordsRequest::setThreadID(const std::string& threadID) -{ - threadID_ = threadID; - setParameter("ThreadID", threadID); -} - -std::string DescribeSQLLogRecordsRequest::getChildDBInstanceIDs()const -{ - return childDBInstanceIDs_; -} - -void DescribeSQLLogRecordsRequest::setChildDBInstanceIDs(const std::string& childDBInstanceIDs) -{ - childDBInstanceIDs_ = childDBInstanceIDs; - setParameter("ChildDBInstanceIDs", childDBInstanceIDs); -} - -std::string DescribeSQLLogRecordsRequest::getSortMethod()const -{ - return sortMethod_; -} - -void DescribeSQLLogRecordsRequest::setSortMethod(const std::string& sortMethod) -{ - sortMethod_ = sortMethod; - setParameter("SortMethod", sortMethod); -} - -long DescribeSQLLogRecordsRequest::getMaxScanRows()const -{ - return maxScanRows_; -} - -void DescribeSQLLogRecordsRequest::setMaxScanRows(long maxScanRows) -{ - maxScanRows_ = maxScanRows; - setParameter("MaxScanRows", std::to_string(maxScanRows)); -} - diff --git a/polardb/src/model/DescribeSQLLogRecordsResult.cc b/polardb/src/model/DescribeSQLLogRecordsResult.cc deleted file mode 100644 index 7e000d103..000000000 --- a/polardb/src/model/DescribeSQLLogRecordsResult.cc +++ /dev/null @@ -1,160 +0,0 @@ -/* - * 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; - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult() : - ServiceResult() -{} - -DescribeSQLLogRecordsResult::DescribeSQLLogRecordsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogRecordsResult::~DescribeSQLLogRecordsResult() -{} - -void DescribeSQLLogRecordsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["SQLLogRecord"]; - for (auto valueItemsSQLLogRecord : allItemsNode) - { - SQLLogRecord itemsObject; - if(!valueItemsSQLLogRecord["ExecuteTime"].isNull()) - itemsObject.executeTime = valueItemsSQLLogRecord["ExecuteTime"].asString(); - if(!valueItemsSQLLogRecord["InsName"].isNull()) - itemsObject.insName = valueItemsSQLLogRecord["InsName"].asString(); - if(!valueItemsSQLLogRecord["HostAddress"].isNull()) - itemsObject.hostAddress = valueItemsSQLLogRecord["HostAddress"].asString(); - if(!valueItemsSQLLogRecord["UpdateRows"].isNull()) - itemsObject.updateRows = std::stol(valueItemsSQLLogRecord["UpdateRows"].asString()); - if(!valueItemsSQLLogRecord["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSQLLogRecord["SQLText"].asString(); - if(!valueItemsSQLLogRecord["OriginTime"].isNull()) - itemsObject.originTime = valueItemsSQLLogRecord["OriginTime"].asString(); - if(!valueItemsSQLLogRecord["Consume"].isNull()) - itemsObject.consume = std::stol(valueItemsSQLLogRecord["Consume"].asString()); - if(!valueItemsSQLLogRecord["ScanRows"].isNull()) - itemsObject.scanRows = std::stol(valueItemsSQLLogRecord["ScanRows"].asString()); - if(!valueItemsSQLLogRecord["ThreadID"].isNull()) - itemsObject.threadID = std::stoi(valueItemsSQLLogRecord["ThreadID"].asString()); - if(!valueItemsSQLLogRecord["State"].isNull()) - itemsObject.state = valueItemsSQLLogRecord["State"].asString(); - if(!valueItemsSQLLogRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSQLLogRecord["DBName"].asString(); - if(!valueItemsSQLLogRecord["SqlType"].isNull()) - itemsObject.sqlType = valueItemsSQLLogRecord["SqlType"].asString(); - if(!valueItemsSQLLogRecord["Vip"].isNull()) - itemsObject.vip = valueItemsSQLLogRecord["Vip"].asString(); - if(!valueItemsSQLLogRecord["AccountName"].isNull()) - itemsObject.accountName = valueItemsSQLLogRecord["AccountName"].asString(); - items_.push_back(itemsObject); - } - if(!value["MaxRecordsPerPage"].isNull()) - maxRecordsPerPage_ = std::stoi(value["MaxRecordsPerPage"].asString()); - if(!value["ItemsNumbers"].isNull()) - itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["DBInstanceID"].isNull()) - dBInstanceID_ = value["DBInstanceID"].asString(); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["TotalRecords"].isNull()) - totalRecords_ = std::stoi(value["TotalRecords"].asString()); - if(!value["Finish"].isNull()) - finish_ = value["Finish"].asString(); - if(!value["PageNumbers"].isNull()) - pageNumbers_ = std::stoi(value["PageNumbers"].asString()); - if(!value["JobId"].isNull()) - jobId_ = value["JobId"].asString(); - if(!value["PagingID"].isNull()) - pagingID_ = value["PagingID"].asString(); - if(!value["DBInstanceName"].isNull()) - dBInstanceName_ = value["DBInstanceName"].asString(); - -} - -int DescribeSQLLogRecordsResult::getMaxRecordsPerPage()const -{ - return maxRecordsPerPage_; -} - -int DescribeSQLLogRecordsResult::getItemsNumbers()const -{ - return itemsNumbers_; -} - -std::string DescribeSQLLogRecordsResult::getEndTime()const -{ - return endTime_; -} - -std::string DescribeSQLLogRecordsResult::getDBInstanceID()const -{ - return dBInstanceID_; -} - -std::string DescribeSQLLogRecordsResult::getStartTime()const -{ - return startTime_; -} - -int DescribeSQLLogRecordsResult::getTotalRecords()const -{ - return totalRecords_; -} - -std::vector DescribeSQLLogRecordsResult::getItems()const -{ - return items_; -} - -std::string DescribeSQLLogRecordsResult::getFinish()const -{ - return finish_; -} - -int DescribeSQLLogRecordsResult::getPageNumbers()const -{ - return pageNumbers_; -} - -std::string DescribeSQLLogRecordsResult::getJobId()const -{ - return jobId_; -} - -std::string DescribeSQLLogRecordsResult::getPagingID()const -{ - return pagingID_; -} - -std::string DescribeSQLLogRecordsResult::getDBInstanceName()const -{ - return dBInstanceName_; -} - diff --git a/polardb/src/model/DescribeSQLLogTemplatesRequest.cc b/polardb/src/model/DescribeSQLLogTemplatesRequest.cc deleted file mode 100644 index f0f557f20..000000000 --- a/polardb/src/model/DescribeSQLLogTemplatesRequest.cc +++ /dev/null @@ -1,260 +0,0 @@ -/* - * 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::DescribeSQLLogTemplatesRequest; - -DescribeSQLLogTemplatesRequest::DescribeSQLLogTemplatesRequest() : - RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLLogTemplates") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSQLLogTemplatesRequest::~DescribeSQLLogTemplatesRequest() -{} - -long DescribeSQLLogTemplatesRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeSQLLogTemplatesRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeSQLLogTemplatesRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeSQLLogTemplatesRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string DescribeSQLLogTemplatesRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeSQLLogTemplatesRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeSQLLogTemplatesRequest::getJobId()const -{ - return jobId_; -} - -void DescribeSQLLogTemplatesRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); -} - -std::string DescribeSQLLogTemplatesRequest::getSortKey()const -{ - return sortKey_; -} - -void DescribeSQLLogTemplatesRequest::setSortKey(const std::string& sortKey) -{ - sortKey_ = sortKey; - setParameter("SortKey", sortKey); -} - -float DescribeSQLLogTemplatesRequest::getMinAvgScanRows()const -{ - return minAvgScanRows_; -} - -void DescribeSQLLogTemplatesRequest::setMinAvgScanRows(float minAvgScanRows) -{ - minAvgScanRows_ = minAvgScanRows; - setParameter("MinAvgScanRows", std::to_string(minAvgScanRows)); -} - -std::string DescribeSQLLogTemplatesRequest::getSecurityToken()const -{ - return securityToken_; -} - -void DescribeSQLLogTemplatesRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -int DescribeSQLLogTemplatesRequest::getPageNumbers()const -{ - return pageNumbers_; -} - -void DescribeSQLLogTemplatesRequest::setPageNumbers(int pageNumbers) -{ - pageNumbers_ = pageNumbers; - setParameter("PageNumbers", std::to_string(pageNumbers)); -} - -std::string DescribeSQLLogTemplatesRequest::getPagingId()const -{ - return pagingId_; -} - -void DescribeSQLLogTemplatesRequest::setPagingId(const std::string& pagingId) -{ - pagingId_ = pagingId; - setParameter("PagingId", pagingId); -} - -std::string DescribeSQLLogTemplatesRequest::getDBInstanceId()const -{ - return dBInstanceId_; -} - -void DescribeSQLLogTemplatesRequest::setDBInstanceId(const std::string& dBInstanceId) -{ - dBInstanceId_ = dBInstanceId; - setParameter("DBInstanceId", dBInstanceId); -} - -float DescribeSQLLogTemplatesRequest::getMaxAvgScanRows()const -{ - return maxAvgScanRows_; -} - -void DescribeSQLLogTemplatesRequest::setMaxAvgScanRows(float maxAvgScanRows) -{ - maxAvgScanRows_ = maxAvgScanRows; - setParameter("MaxAvgScanRows", std::to_string(maxAvgScanRows)); -} - -std::string DescribeSQLLogTemplatesRequest::getSqlType()const -{ - return sqlType_; -} - -void DescribeSQLLogTemplatesRequest::setSqlType(const std::string& sqlType) -{ - sqlType_ = sqlType; - setParameter("SqlType", sqlType); -} - -std::string DescribeSQLLogTemplatesRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeSQLLogTemplatesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -float DescribeSQLLogTemplatesRequest::getMinAvgConsume()const -{ - return minAvgConsume_; -} - -void DescribeSQLLogTemplatesRequest::setMinAvgConsume(float minAvgConsume) -{ - minAvgConsume_ = minAvgConsume; - setParameter("MinAvgConsume", std::to_string(minAvgConsume)); -} - -std::string DescribeSQLLogTemplatesRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeSQLLogTemplatesRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -int DescribeSQLLogTemplatesRequest::getMaxRecordsPerPage()const -{ - return maxRecordsPerPage_; -} - -void DescribeSQLLogTemplatesRequest::setMaxRecordsPerPage(int maxRecordsPerPage) -{ - maxRecordsPerPage_ = maxRecordsPerPage; - setParameter("MaxRecordsPerPage", std::to_string(maxRecordsPerPage)); -} - -std::string DescribeSQLLogTemplatesRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeSQLLogTemplatesRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -long DescribeSQLLogTemplatesRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeSQLLogTemplatesRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -float DescribeSQLLogTemplatesRequest::getMaxAvgConsume()const -{ - return maxAvgConsume_; -} - -void DescribeSQLLogTemplatesRequest::setMaxAvgConsume(float maxAvgConsume) -{ - maxAvgConsume_ = maxAvgConsume; - setParameter("MaxAvgConsume", std::to_string(maxAvgConsume)); -} - -std::string DescribeSQLLogTemplatesRequest::getChildDBInstanceIDs()const -{ - return childDBInstanceIDs_; -} - -void DescribeSQLLogTemplatesRequest::setChildDBInstanceIDs(const std::string& childDBInstanceIDs) -{ - childDBInstanceIDs_ = childDBInstanceIDs; - setParameter("ChildDBInstanceIDs", childDBInstanceIDs); -} - -std::string DescribeSQLLogTemplatesRequest::getSortMethod()const -{ - return sortMethod_; -} - -void DescribeSQLLogTemplatesRequest::setSortMethod(const std::string& sortMethod) -{ - sortMethod_ = sortMethod; - setParameter("SortMethod", sortMethod); -} - diff --git a/polardb/src/model/DescribeSQLLogTemplatesResult.cc b/polardb/src/model/DescribeSQLLogTemplatesResult.cc deleted file mode 100644 index 79bd4e824..000000000 --- a/polardb/src/model/DescribeSQLLogTemplatesResult.cc +++ /dev/null @@ -1,154 +0,0 @@ -/* - * 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; - -DescribeSQLLogTemplatesResult::DescribeSQLLogTemplatesResult() : - ServiceResult() -{} - -DescribeSQLLogTemplatesResult::DescribeSQLLogTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSQLLogTemplatesResult::~DescribeSQLLogTemplatesResult() -{} - -void DescribeSQLLogTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allItemsNode = value["Items"]["Template"]; - for (auto valueItemsTemplate : allItemsNode) - { - _Template itemsObject; - if(!valueItemsTemplate["AvgScanRows"].isNull()) - itemsObject.avgScanRows = std::stof(valueItemsTemplate["AvgScanRows"].asString()); - if(!valueItemsTemplate["TemplateHash"].isNull()) - itemsObject.templateHash = valueItemsTemplate["TemplateHash"].asString(); - if(!valueItemsTemplate["AvgConsume"].isNull()) - itemsObject.avgConsume = std::stof(valueItemsTemplate["AvgConsume"].asString()); - if(!valueItemsTemplate["TotalScanRows"].isNull()) - itemsObject.totalScanRows = std::stol(valueItemsTemplate["TotalScanRows"].asString()); - if(!valueItemsTemplate["TotalUpdateRows"].isNull()) - itemsObject.totalUpdateRows = std::stol(valueItemsTemplate["TotalUpdateRows"].asString()); - if(!valueItemsTemplate["TotalCounts"].isNull()) - itemsObject.totalCounts = std::stol(valueItemsTemplate["TotalCounts"].asString()); - if(!valueItemsTemplate["SqlType"].isNull()) - itemsObject.sqlType = valueItemsTemplate["SqlType"].asString(); - if(!valueItemsTemplate["AvgUpdateRows"].isNull()) - itemsObject.avgUpdateRows = std::stof(valueItemsTemplate["AvgUpdateRows"].asString()); - if(!valueItemsTemplate["ItemID"].isNull()) - itemsObject.itemID = std::stoi(valueItemsTemplate["ItemID"].asString()); - if(!valueItemsTemplate["Template"].isNull()) - itemsObject._template = valueItemsTemplate["Template"].asString(); - if(!valueItemsTemplate["TotalConsume"].isNull()) - itemsObject.totalConsume = std::stol(valueItemsTemplate["TotalConsume"].asString()); - items_.push_back(itemsObject); - } - if(!value["MaxRecordsPerPage"].isNull()) - maxRecordsPerPage_ = std::stoi(value["MaxRecordsPerPage"].asString()); - if(!value["ItemsNumbers"].isNull()) - itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["DBInstanceID"].isNull()) - dBInstanceID_ = std::stoi(value["DBInstanceID"].asString()); - if(!value["StartTime"].isNull()) - startTime_ = value["StartTime"].asString(); - if(!value["TotalRecords"].isNull()) - totalRecords_ = std::stoi(value["TotalRecords"].asString()); - if(!value["Finish"].isNull()) - finish_ = value["Finish"].asString(); - if(!value["PageNumbers"].isNull()) - pageNumbers_ = std::stoi(value["PageNumbers"].asString()); - if(!value["JobId"].isNull()) - jobId_ = value["JobId"].asString(); - if(!value["PagingID"].isNull()) - pagingID_ = value["PagingID"].asString(); - if(!value["DBInstanceName"].isNull()) - dBInstanceName_ = value["DBInstanceName"].asString(); - -} - -int DescribeSQLLogTemplatesResult::getMaxRecordsPerPage()const -{ - return maxRecordsPerPage_; -} - -int DescribeSQLLogTemplatesResult::getItemsNumbers()const -{ - return itemsNumbers_; -} - -std::string DescribeSQLLogTemplatesResult::getEndTime()const -{ - return endTime_; -} - -int DescribeSQLLogTemplatesResult::getDBInstanceID()const -{ - return dBInstanceID_; -} - -std::string DescribeSQLLogTemplatesResult::getStartTime()const -{ - return startTime_; -} - -int DescribeSQLLogTemplatesResult::getTotalRecords()const -{ - return totalRecords_; -} - -std::vector DescribeSQLLogTemplatesResult::getItems()const -{ - return items_; -} - -std::string DescribeSQLLogTemplatesResult::getFinish()const -{ - return finish_; -} - -int DescribeSQLLogTemplatesResult::getPageNumbers()const -{ - return pageNumbers_; -} - -std::string DescribeSQLLogTemplatesResult::getJobId()const -{ - return jobId_; -} - -std::string DescribeSQLLogTemplatesResult::getPagingID()const -{ - return pagingID_; -} - -std::string DescribeSQLLogTemplatesResult::getDBInstanceName()const -{ - return dBInstanceName_; -} - diff --git a/polardb/src/model/ModifyDBClusterParametersRequest.cc b/polardb/src/model/ModifyDBClusterParametersRequest.cc index 884f2b46c..14c7382a4 100644 --- a/polardb/src/model/ModifyDBClusterParametersRequest.cc +++ b/polardb/src/model/ModifyDBClusterParametersRequest.cc @@ -60,17 +60,6 @@ void ModifyDBClusterParametersRequest::setParameterGroupId(const std::string& pa setParameter("ParameterGroupId", parameterGroupId); } -std::string ModifyDBClusterParametersRequest::getEffectiveTime()const -{ - return effectiveTime_; -} - -void ModifyDBClusterParametersRequest::setEffectiveTime(const std::string& effectiveTime) -{ - effectiveTime_ = effectiveTime; - setParameter("EffectiveTime", effectiveTime); -} - std::string ModifyDBClusterParametersRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; diff --git a/polardb/version-2017-08-01.xml b/polardb/version-2017-08-01.xml index b6fcc5dc9..17118dff1 100644 --- a/polardb/version-2017-08-01.xml +++ b/polardb/version-2017-08-01.xml @@ -1 +1 @@ - +