From 996c9b497a1e5f44b0d97b541222eeca82bdd899 Mon Sep 17 00:00:00 2001 From: "haowei.yao" Date: Thu, 14 Mar 2019 14:26:21 +0800 Subject: [PATCH] =?UTF-8?q?GPDB=20SDK=20Auto=20Released=20By=20shenshi,Ver?= =?UTF-8?q?sion=EF=BC=9A1.34.20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: haowei.yao --- CHANGELOG | 3 + CMakeLists.txt | 3 +- VERSION | 2 +- gpdb/CMakeLists.txt | 222 +++ gpdb/include/alibabacloud/gpdb/GpdbClient.h | 326 ++++ gpdb/include/alibabacloud/gpdb/GpdbExport.h | 32 + .../model/AddBuDBInstanceRelationRequest.h | 57 + .../model/AddBuDBInstanceRelationResult.h | 53 + .../AllocateInstancePublicConnectionRequest.h | 66 + .../AllocateInstancePublicConnectionResult.h | 49 + .../gpdb/model/CreateAccountRequest.h | 66 + .../gpdb/model/CreateAccountResult.h | 49 + .../gpdb/model/CreateDBInstanceRequest.h | 99 ++ .../gpdb/model/CreateDBInstanceResult.h | 57 + .../gpdb/model/DeleteDBInstanceRequest.h | 57 + .../gpdb/model/DeleteDBInstanceResult.h | 49 + .../gpdb/model/DeleteDatabaseRequest.h | 54 + .../gpdb/model/DeleteDatabaseResult.h | 49 + .../gpdb/model/DescribeAccountsRequest.h | 54 + .../gpdb/model/DescribeAccountsResult.h | 58 + .../DescribeDBInstanceAttributeRequest.h | 54 + .../model/DescribeDBInstanceAttributeResult.h | 92 ++ .../DescribeDBInstanceIPArrayListRequest.h | 51 + .../DescribeDBInstanceIPArrayListResult.h | 57 + .../model/DescribeDBInstanceNetInfoRequest.h | 51 + .../model/DescribeDBInstanceNetInfoResult.h | 62 + .../DescribeDBInstancePerformanceRequest.h | 60 + .../DescribeDBInstancePerformanceResult.h | 59 + .../gpdb/model/DescribeDBInstancesRequest.h | 77 + .../gpdb/model/DescribeDBInstancesResult.h | 83 ++ .../gpdb/model/DescribeRdsVSwitchsRequest.h | 72 + .../gpdb/model/DescribeRdsVSwitchsResult.h | 69 + .../gpdb/model/DescribeRdsVpcsRequest.h | 69 + .../gpdb/model/DescribeRdsVpcsResult.h | 80 + .../gpdb/model/DescribeRegionsRequest.h | 48 + .../gpdb/model/DescribeRegionsResult.h | 61 + .../gpdb/model/DescribeResourceUsageRequest.h | 51 + .../gpdb/model/DescribeResourceUsageResult.h | 61 + .../model/DescribeSQLCollectorPolicyRequest.h | 51 + .../model/DescribeSQLCollectorPolicyResult.h | 51 + .../gpdb/model/DescribeSQLLogFilesRequest.h | 60 + .../gpdb/model/DescribeSQLLogFilesResult.h | 66 + .../gpdb/model/DescribeSQLLogRecordsRequest.h | 75 + .../gpdb/model/DescribeSQLLogRecordsResult.h | 68 + .../model/DescribeSlowLogRecordsRequest.h | 69 + .../gpdb/model/DescribeSlowLogRecordsResult.h | 70 + .../gpdb/model/ListTagResourcesRequest.h | 80 + .../gpdb/model/ListTagResourcesResult.h | 60 + .../model/ModifyAccountDescriptionRequest.h | 57 + .../model/ModifyAccountDescriptionResult.h | 49 + .../ModifyDBInstanceConnectionModeRequest.h | 54 + .../ModifyDBInstanceConnectionModeResult.h | 49 + .../ModifyDBInstanceConnectionStringRequest.h | 60 + .../ModifyDBInstanceConnectionStringResult.h | 49 + .../ModifyDBInstanceDescriptionRequest.h | 54 + .../model/ModifyDBInstanceDescriptionResult.h | 49 + .../ModifyDBInstanceMaintainTimeRequest.h | 57 + .../ModifyDBInstanceMaintainTimeResult.h | 49 + .../ModifyDBInstanceNetworkTypeRequest.h | 63 + .../model/ModifyDBInstanceNetworkTypeResult.h | 49 + .../model/ModifySQLCollectorPolicyRequest.h | 54 + .../model/ModifySQLCollectorPolicyResult.h | 49 + .../gpdb/model/ModifySecurityIpsRequest.h | 60 + .../gpdb/model/ModifySecurityIpsResult.h | 49 + .../ReleaseInstancePublicConnectionRequest.h | 54 + .../ReleaseInstancePublicConnectionResult.h | 49 + .../gpdb/model/ResetAccountPasswordRequest.h | 57 + .../gpdb/model/ResetAccountPasswordResult.h | 49 + .../gpdb/model/RestartDBInstanceRequest.h | 54 + .../gpdb/model/RestartDBInstanceResult.h | 49 + .../model/SwitchDBInstanceNetTypeRequest.h | 57 + .../model/SwitchDBInstanceNetTypeResult.h | 49 + .../gpdb/model/TagResourcesRequest.h | 77 + .../gpdb/model/TagResourcesResult.h | 49 + .../gpdb/model/UntagResourcesRequest.h | 75 + .../gpdb/model/UntagResourcesResult.h | 49 + gpdb/src/GpdbClient.cc | 1313 +++++++++++++++++ .../model/AddBuDBInstanceRelationRequest.cc | 71 + .../model/AddBuDBInstanceRelationResult.cc | 59 + ...AllocateInstancePublicConnectionRequest.cc | 104 ++ .../AllocateInstancePublicConnectionResult.cc | 45 + gpdb/src/model/CreateAccountRequest.cc | 104 ++ gpdb/src/model/CreateAccountResult.cc | 45 + gpdb/src/model/CreateDBInstanceRequest.cc | 225 +++ gpdb/src/model/CreateDBInstanceResult.cc | 73 + gpdb/src/model/DeleteDBInstanceRequest.cc | 71 + gpdb/src/model/DeleteDBInstanceResult.cc | 45 + gpdb/src/model/DeleteDatabaseRequest.cc | 60 + gpdb/src/model/DeleteDatabaseResult.cc | 45 + gpdb/src/model/DescribeAccountsRequest.cc | 60 + gpdb/src/model/DescribeAccountsResult.cc | 64 + .../DescribeDBInstanceAttributeRequest.cc | 60 + .../DescribeDBInstanceAttributeResult.cc | 130 ++ .../DescribeDBInstanceIPArrayListRequest.cc | 49 + .../DescribeDBInstanceIPArrayListResult.cc | 62 + .../model/DescribeDBInstanceNetInfoRequest.cc | 49 + .../model/DescribeDBInstanceNetInfoResult.cc | 75 + .../DescribeDBInstancePerformanceRequest.cc | 82 + .../DescribeDBInstancePerformanceResult.cc | 81 + gpdb/src/model/DescribeDBInstancesRequest.cc | 132 ++ gpdb/src/model/DescribeDBInstancesResult.cc | 121 ++ gpdb/src/model/DescribeRdsVSwitchsRequest.cc | 126 ++ gpdb/src/model/DescribeRdsVSwitchsResult.cc | 79 + gpdb/src/model/DescribeRdsVpcsRequest.cc | 115 ++ gpdb/src/model/DescribeRdsVpcsResult.cc | 99 ++ gpdb/src/model/DescribeRegionsRequest.cc | 38 + gpdb/src/model/DescribeRegionsResult.cc | 68 + .../src/model/DescribeResourceUsageRequest.cc | 49 + gpdb/src/model/DescribeResourceUsageResult.cc | 87 ++ .../DescribeSQLCollectorPolicyRequest.cc | 49 + .../model/DescribeSQLCollectorPolicyResult.cc | 52 + gpdb/src/model/DescribeSQLLogFilesRequest.cc | 82 + gpdb/src/model/DescribeSQLLogFilesResult.cc | 89 ++ .../src/model/DescribeSQLLogRecordsRequest.cc | 137 ++ gpdb/src/model/DescribeSQLLogRecordsResult.cc | 93 ++ .../model/DescribeSlowLogRecordsRequest.cc | 115 ++ .../src/model/DescribeSlowLogRecordsResult.cc | 100 ++ gpdb/src/model/ListTagResourcesRequest.cc | 144 ++ gpdb/src/model/ListTagResourcesResult.cc | 71 + .../model/ModifyAccountDescriptionRequest.cc | 71 + .../model/ModifyAccountDescriptionResult.cc | 45 + .../ModifyDBInstanceConnectionModeRequest.cc | 60 + .../ModifyDBInstanceConnectionModeResult.cc | 45 + ...ModifyDBInstanceConnectionStringRequest.cc | 82 + .../ModifyDBInstanceConnectionStringResult.cc | 45 + .../ModifyDBInstanceDescriptionRequest.cc | 60 + .../ModifyDBInstanceDescriptionResult.cc | 45 + .../ModifyDBInstanceMaintainTimeRequest.cc | 71 + .../ModifyDBInstanceMaintainTimeResult.cc | 45 + .../ModifyDBInstanceNetworkTypeRequest.cc | 93 ++ .../ModifyDBInstanceNetworkTypeResult.cc | 45 + .../model/ModifySQLCollectorPolicyRequest.cc | 60 + .../model/ModifySQLCollectorPolicyResult.cc | 45 + gpdb/src/model/ModifySecurityIpsRequest.cc | 82 + gpdb/src/model/ModifySecurityIpsResult.cc | 45 + .../ReleaseInstancePublicConnectionRequest.cc | 60 + .../ReleaseInstancePublicConnectionResult.cc | 45 + gpdb/src/model/ResetAccountPasswordRequest.cc | 71 + gpdb/src/model/ResetAccountPasswordResult.cc | 45 + gpdb/src/model/RestartDBInstanceRequest.cc | 60 + gpdb/src/model/RestartDBInstanceResult.cc | 45 + .../model/SwitchDBInstanceNetTypeRequest.cc | 71 + .../model/SwitchDBInstanceNetTypeResult.cc | 45 + gpdb/src/model/TagResourcesRequest.cc | 133 ++ gpdb/src/model/TagResourcesResult.cc | 45 + gpdb/src/model/UntagResourcesRequest.cc | 139 ++ gpdb/src/model/UntagResourcesResult.cc | 45 + 147 files changed, 11290 insertions(+), 2 deletions(-) create mode 100644 gpdb/CMakeLists.txt create mode 100644 gpdb/include/alibabacloud/gpdb/GpdbClient.h create mode 100644 gpdb/include/alibabacloud/gpdb/GpdbExport.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/CreateAccountResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeAccountsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeAccountsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRegionsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeRegionsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ListTagResourcesRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ListTagResourcesResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/TagResourcesRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/TagResourcesResult.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/UntagResourcesRequest.h create mode 100644 gpdb/include/alibabacloud/gpdb/model/UntagResourcesResult.h create mode 100644 gpdb/src/GpdbClient.cc create mode 100644 gpdb/src/model/AddBuDBInstanceRelationRequest.cc create mode 100644 gpdb/src/model/AddBuDBInstanceRelationResult.cc create mode 100644 gpdb/src/model/AllocateInstancePublicConnectionRequest.cc create mode 100644 gpdb/src/model/AllocateInstancePublicConnectionResult.cc create mode 100644 gpdb/src/model/CreateAccountRequest.cc create mode 100644 gpdb/src/model/CreateAccountResult.cc create mode 100644 gpdb/src/model/CreateDBInstanceRequest.cc create mode 100644 gpdb/src/model/CreateDBInstanceResult.cc create mode 100644 gpdb/src/model/DeleteDBInstanceRequest.cc create mode 100644 gpdb/src/model/DeleteDBInstanceResult.cc create mode 100644 gpdb/src/model/DeleteDatabaseRequest.cc create mode 100644 gpdb/src/model/DeleteDatabaseResult.cc create mode 100644 gpdb/src/model/DescribeAccountsRequest.cc create mode 100644 gpdb/src/model/DescribeAccountsResult.cc create mode 100644 gpdb/src/model/DescribeDBInstanceAttributeRequest.cc create mode 100644 gpdb/src/model/DescribeDBInstanceAttributeResult.cc create mode 100644 gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc create mode 100644 gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc create mode 100644 gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc create mode 100644 gpdb/src/model/DescribeDBInstanceNetInfoResult.cc create mode 100644 gpdb/src/model/DescribeDBInstancePerformanceRequest.cc create mode 100644 gpdb/src/model/DescribeDBInstancePerformanceResult.cc create mode 100644 gpdb/src/model/DescribeDBInstancesRequest.cc create mode 100644 gpdb/src/model/DescribeDBInstancesResult.cc create mode 100644 gpdb/src/model/DescribeRdsVSwitchsRequest.cc create mode 100644 gpdb/src/model/DescribeRdsVSwitchsResult.cc create mode 100644 gpdb/src/model/DescribeRdsVpcsRequest.cc create mode 100644 gpdb/src/model/DescribeRdsVpcsResult.cc create mode 100644 gpdb/src/model/DescribeRegionsRequest.cc create mode 100644 gpdb/src/model/DescribeRegionsResult.cc create mode 100644 gpdb/src/model/DescribeResourceUsageRequest.cc create mode 100644 gpdb/src/model/DescribeResourceUsageResult.cc create mode 100644 gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc create mode 100644 gpdb/src/model/DescribeSQLCollectorPolicyResult.cc create mode 100644 gpdb/src/model/DescribeSQLLogFilesRequest.cc create mode 100644 gpdb/src/model/DescribeSQLLogFilesResult.cc create mode 100644 gpdb/src/model/DescribeSQLLogRecordsRequest.cc create mode 100644 gpdb/src/model/DescribeSQLLogRecordsResult.cc create mode 100644 gpdb/src/model/DescribeSlowLogRecordsRequest.cc create mode 100644 gpdb/src/model/DescribeSlowLogRecordsResult.cc create mode 100644 gpdb/src/model/ListTagResourcesRequest.cc create mode 100644 gpdb/src/model/ListTagResourcesResult.cc create mode 100644 gpdb/src/model/ModifyAccountDescriptionRequest.cc create mode 100644 gpdb/src/model/ModifyAccountDescriptionResult.cc create mode 100644 gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc create mode 100644 gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc create mode 100644 gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc create mode 100644 gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc create mode 100644 gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc create mode 100644 gpdb/src/model/ModifyDBInstanceDescriptionResult.cc create mode 100644 gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc create mode 100644 gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc create mode 100644 gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc create mode 100644 gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc create mode 100644 gpdb/src/model/ModifySQLCollectorPolicyRequest.cc create mode 100644 gpdb/src/model/ModifySQLCollectorPolicyResult.cc create mode 100644 gpdb/src/model/ModifySecurityIpsRequest.cc create mode 100644 gpdb/src/model/ModifySecurityIpsResult.cc create mode 100644 gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc create mode 100644 gpdb/src/model/ReleaseInstancePublicConnectionResult.cc create mode 100644 gpdb/src/model/ResetAccountPasswordRequest.cc create mode 100644 gpdb/src/model/ResetAccountPasswordResult.cc create mode 100644 gpdb/src/model/RestartDBInstanceRequest.cc create mode 100644 gpdb/src/model/RestartDBInstanceResult.cc create mode 100644 gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc create mode 100644 gpdb/src/model/SwitchDBInstanceNetTypeResult.cc create mode 100644 gpdb/src/model/TagResourcesRequest.cc create mode 100644 gpdb/src/model/TagResourcesResult.cc create mode 100644 gpdb/src/model/UntagResourcesRequest.cc create mode 100644 gpdb/src/model/UntagResourcesResult.cc diff --git a/CHANGELOG b/CHANGELOG index 82d61f10e..f85191f14 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-14 Version: 1.34.20 +1, Update Dependency + 2019-03-14 Version: 1.34.19 1, Update Dependency diff --git a/CMakeLists.txt b/CMakeLists.txt index f0ab4e927..8c4a931f9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -96,4 +96,5 @@ add_subdirectory(jarvis-public) add_subdirectory(cbn) add_subdirectory(emr) add_subdirectory(ram) -add_subdirectory(sts) \ No newline at end of file +add_subdirectory(sts) +add_subdirectory(gpdb) \ No newline at end of file diff --git a/VERSION b/VERSION index ccdfb8596..f7ba9c537 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.19 \ No newline at end of file +1.34.20 \ No newline at end of file diff --git a/gpdb/CMakeLists.txt b/gpdb/CMakeLists.txt new file mode 100644 index 000000000..213450316 --- /dev/null +++ b/gpdb/CMakeLists.txt @@ -0,0 +1,222 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(gpdb_public_header + include/alibabacloud/gpdb/GpdbClient.h + include/alibabacloud/gpdb/GpdbExport.h ) + +set(gpdb_public_header_model + include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h + include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h + include/alibabacloud/gpdb/model/ListTagResourcesRequest.h + include/alibabacloud/gpdb/model/ListTagResourcesResult.h + include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h + include/alibabacloud/gpdb/model/UntagResourcesRequest.h + include/alibabacloud/gpdb/model/UntagResourcesResult.h + include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h + include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h + include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h + include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h + include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h + include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h + include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h + include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h + include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h + include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h + include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h + include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h + include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h + include/alibabacloud/gpdb/model/CreateDBInstanceResult.h + include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h + include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h + include/alibabacloud/gpdb/model/DescribeRegionsRequest.h + include/alibabacloud/gpdb/model/DescribeRegionsResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h + include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h + include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h + include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h + include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h + include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h + include/alibabacloud/gpdb/model/RestartDBInstanceResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h + include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h + include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h + include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h + include/alibabacloud/gpdb/model/DescribeRdsVSwitchsResult.h + include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h + include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h + include/alibabacloud/gpdb/model/CreateAccountRequest.h + include/alibabacloud/gpdb/model/CreateAccountResult.h + include/alibabacloud/gpdb/model/DescribeAccountsRequest.h + include/alibabacloud/gpdb/model/DescribeAccountsResult.h + include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h + include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h + include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h + include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h + include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h + include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h + include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h + include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h + include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h + include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h + include/alibabacloud/gpdb/model/TagResourcesRequest.h + include/alibabacloud/gpdb/model/TagResourcesResult.h + include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h + include/alibabacloud/gpdb/model/DeleteDatabaseResult.h + include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h + include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h ) + +set(gpdb_src + src/GpdbClient.cc + src/model/ModifyDBInstanceMaintainTimeRequest.cc + src/model/ModifyDBInstanceMaintainTimeResult.cc + src/model/ModifyDBInstanceDescriptionRequest.cc + src/model/ModifyDBInstanceDescriptionResult.cc + src/model/DescribeDBInstancePerformanceRequest.cc + src/model/DescribeDBInstancePerformanceResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/DescribeDBInstancesRequest.cc + src/model/DescribeDBInstancesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/SwitchDBInstanceNetTypeRequest.cc + src/model/SwitchDBInstanceNetTypeResult.cc + src/model/AllocateInstancePublicConnectionRequest.cc + src/model/AllocateInstancePublicConnectionResult.cc + src/model/DescribeDBInstanceAttributeRequest.cc + src/model/DescribeDBInstanceAttributeResult.cc + src/model/ModifyAccountDescriptionRequest.cc + src/model/ModifyAccountDescriptionResult.cc + src/model/DescribeResourceUsageRequest.cc + src/model/DescribeResourceUsageResult.cc + src/model/DescribeSQLCollectorPolicyRequest.cc + src/model/DescribeSQLCollectorPolicyResult.cc + src/model/ModifySQLCollectorPolicyRequest.cc + src/model/ModifySQLCollectorPolicyResult.cc + src/model/CreateDBInstanceRequest.cc + src/model/CreateDBInstanceResult.cc + src/model/DescribeRdsVpcsRequest.cc + src/model/DescribeRdsVpcsResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/ModifyDBInstanceConnectionStringRequest.cc + src/model/ModifyDBInstanceConnectionStringResult.cc + src/model/DeleteDBInstanceRequest.cc + src/model/DeleteDBInstanceResult.cc + src/model/DescribeSlowLogRecordsRequest.cc + src/model/DescribeSlowLogRecordsResult.cc + src/model/ModifyDBInstanceConnectionModeRequest.cc + src/model/ModifyDBInstanceConnectionModeResult.cc + src/model/RestartDBInstanceRequest.cc + src/model/RestartDBInstanceResult.cc + src/model/DescribeDBInstanceNetInfoRequest.cc + src/model/DescribeDBInstanceNetInfoResult.cc + src/model/AddBuDBInstanceRelationRequest.cc + src/model/AddBuDBInstanceRelationResult.cc + src/model/DescribeRdsVSwitchsRequest.cc + src/model/DescribeRdsVSwitchsResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/CreateAccountRequest.cc + src/model/CreateAccountResult.cc + src/model/DescribeAccountsRequest.cc + src/model/DescribeAccountsResult.cc + src/model/DescribeSQLLogRecordsRequest.cc + src/model/DescribeSQLLogRecordsResult.cc + src/model/ModifySecurityIpsRequest.cc + src/model/ModifySecurityIpsResult.cc + src/model/ReleaseInstancePublicConnectionRequest.cc + src/model/ReleaseInstancePublicConnectionResult.cc + src/model/DescribeSQLLogFilesRequest.cc + src/model/DescribeSQLLogFilesResult.cc + src/model/ModifyDBInstanceNetworkTypeRequest.cc + src/model/ModifyDBInstanceNetworkTypeResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/DeleteDatabaseRequest.cc + src/model/DeleteDatabaseResult.cc + src/model/DescribeDBInstanceIPArrayListRequest.cc + src/model/DescribeDBInstanceIPArrayListResult.cc ) + +add_library(gpdb ${LIB_TYPE} + ${gpdb_public_header} + ${gpdb_public_header_model} + ${gpdb_src}) + +set_target_properties(gpdb + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}gpdb + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(gpdb + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_GPDB_LIBRARY) +endif() + +target_include_directories(gpdb + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(gpdb + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(gpdb + jsoncpp) + target_include_directories(gpdb + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(gpdb + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(gpdb + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(gpdb + PRIVATE /usr/include/jsoncpp) + target_link_libraries(gpdb + jsoncpp) +endif() + +install(FILES ${gpdb_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/gpdb) +install(FILES ${gpdb_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/gpdb/model) +install(TARGETS gpdb + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/GpdbClient.h b/gpdb/include/alibabacloud/gpdb/GpdbClient.h new file mode 100644 index 000000000..5adcf8aa6 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/GpdbClient.h @@ -0,0 +1,326 @@ +/* + * 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_GPDB_GPDBCLIENT_H_ +#define ALIBABACLOUD_GPDB_GPDBCLIENT_H_ + +#include +#include +#include +#include +#include "GpdbExport.h" +#include "model/ModifyDBInstanceMaintainTimeRequest.h" +#include "model/ModifyDBInstanceMaintainTimeResult.h" +#include "model/ModifyDBInstanceDescriptionRequest.h" +#include "model/ModifyDBInstanceDescriptionResult.h" +#include "model/DescribeDBInstancePerformanceRequest.h" +#include "model/DescribeDBInstancePerformanceResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/DescribeDBInstancesRequest.h" +#include "model/DescribeDBInstancesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/SwitchDBInstanceNetTypeRequest.h" +#include "model/SwitchDBInstanceNetTypeResult.h" +#include "model/AllocateInstancePublicConnectionRequest.h" +#include "model/AllocateInstancePublicConnectionResult.h" +#include "model/DescribeDBInstanceAttributeRequest.h" +#include "model/DescribeDBInstanceAttributeResult.h" +#include "model/ModifyAccountDescriptionRequest.h" +#include "model/ModifyAccountDescriptionResult.h" +#include "model/DescribeResourceUsageRequest.h" +#include "model/DescribeResourceUsageResult.h" +#include "model/DescribeSQLCollectorPolicyRequest.h" +#include "model/DescribeSQLCollectorPolicyResult.h" +#include "model/ModifySQLCollectorPolicyRequest.h" +#include "model/ModifySQLCollectorPolicyResult.h" +#include "model/CreateDBInstanceRequest.h" +#include "model/CreateDBInstanceResult.h" +#include "model/DescribeRdsVpcsRequest.h" +#include "model/DescribeRdsVpcsResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/ModifyDBInstanceConnectionStringRequest.h" +#include "model/ModifyDBInstanceConnectionStringResult.h" +#include "model/DeleteDBInstanceRequest.h" +#include "model/DeleteDBInstanceResult.h" +#include "model/DescribeSlowLogRecordsRequest.h" +#include "model/DescribeSlowLogRecordsResult.h" +#include "model/ModifyDBInstanceConnectionModeRequest.h" +#include "model/ModifyDBInstanceConnectionModeResult.h" +#include "model/RestartDBInstanceRequest.h" +#include "model/RestartDBInstanceResult.h" +#include "model/DescribeDBInstanceNetInfoRequest.h" +#include "model/DescribeDBInstanceNetInfoResult.h" +#include "model/AddBuDBInstanceRelationRequest.h" +#include "model/AddBuDBInstanceRelationResult.h" +#include "model/DescribeRdsVSwitchsRequest.h" +#include "model/DescribeRdsVSwitchsResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" +#include "model/CreateAccountRequest.h" +#include "model/CreateAccountResult.h" +#include "model/DescribeAccountsRequest.h" +#include "model/DescribeAccountsResult.h" +#include "model/DescribeSQLLogRecordsRequest.h" +#include "model/DescribeSQLLogRecordsResult.h" +#include "model/ModifySecurityIpsRequest.h" +#include "model/ModifySecurityIpsResult.h" +#include "model/ReleaseInstancePublicConnectionRequest.h" +#include "model/ReleaseInstancePublicConnectionResult.h" +#include "model/DescribeSQLLogFilesRequest.h" +#include "model/DescribeSQLLogFilesResult.h" +#include "model/ModifyDBInstanceNetworkTypeRequest.h" +#include "model/ModifyDBInstanceNetworkTypeResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/DeleteDatabaseRequest.h" +#include "model/DeleteDatabaseResult.h" +#include "model/DescribeDBInstanceIPArrayListRequest.h" +#include "model/DescribeDBInstanceIPArrayListResult.h" + + +namespace AlibabaCloud +{ + namespace Gpdb + { + class ALIBABACLOUD_GPDB_EXPORT GpdbClient : public RpcServiceClient + { + public: + typedef Outcome ModifyDBInstanceMaintainTimeOutcome; + typedef std::future ModifyDBInstanceMaintainTimeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceMaintainTimeAsyncHandler; + typedef Outcome ModifyDBInstanceDescriptionOutcome; + typedef std::future ModifyDBInstanceDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBInstanceDescriptionAsyncHandler; + typedef Outcome DescribeDBInstancePerformanceOutcome; + typedef std::future DescribeDBInstancePerformanceOutcomeCallable; + typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome DescribeDBInstancesOutcome; + typedef std::future DescribeDBInstancesOutcomeCallable; + typedef std::function&)> DescribeDBInstancesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome SwitchDBInstanceNetTypeOutcome; + typedef std::future SwitchDBInstanceNetTypeOutcomeCallable; + typedef std::function&)> SwitchDBInstanceNetTypeAsyncHandler; + typedef Outcome AllocateInstancePublicConnectionOutcome; + typedef std::future AllocateInstancePublicConnectionOutcomeCallable; + typedef std::function&)> AllocateInstancePublicConnectionAsyncHandler; + typedef Outcome DescribeDBInstanceAttributeOutcome; + typedef std::future DescribeDBInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeDBInstanceAttributeAsyncHandler; + typedef Outcome ModifyAccountDescriptionOutcome; + typedef std::future ModifyAccountDescriptionOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome DescribeResourceUsageOutcome; + typedef std::future DescribeResourceUsageOutcomeCallable; + typedef std::function&)> DescribeResourceUsageAsyncHandler; + typedef Outcome DescribeSQLCollectorPolicyOutcome; + typedef std::future DescribeSQLCollectorPolicyOutcomeCallable; + typedef std::function&)> DescribeSQLCollectorPolicyAsyncHandler; + typedef Outcome ModifySQLCollectorPolicyOutcome; + typedef std::future ModifySQLCollectorPolicyOutcomeCallable; + typedef std::function&)> ModifySQLCollectorPolicyAsyncHandler; + typedef Outcome CreateDBInstanceOutcome; + typedef std::future CreateDBInstanceOutcomeCallable; + typedef std::function&)> CreateDBInstanceAsyncHandler; + typedef Outcome DescribeRdsVpcsOutcome; + typedef std::future DescribeRdsVpcsOutcomeCallable; + typedef std::function&)> DescribeRdsVpcsAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionStringOutcome; + typedef std::future ModifyDBInstanceConnectionStringOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionStringAsyncHandler; + typedef Outcome DeleteDBInstanceOutcome; + typedef std::future DeleteDBInstanceOutcomeCallable; + typedef std::function&)> DeleteDBInstanceAsyncHandler; + typedef Outcome DescribeSlowLogRecordsOutcome; + typedef std::future DescribeSlowLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSlowLogRecordsAsyncHandler; + typedef Outcome ModifyDBInstanceConnectionModeOutcome; + typedef std::future ModifyDBInstanceConnectionModeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceConnectionModeAsyncHandler; + typedef Outcome RestartDBInstanceOutcome; + typedef std::future RestartDBInstanceOutcomeCallable; + typedef std::function&)> RestartDBInstanceAsyncHandler; + typedef Outcome DescribeDBInstanceNetInfoOutcome; + typedef std::future DescribeDBInstanceNetInfoOutcomeCallable; + typedef std::function&)> DescribeDBInstanceNetInfoAsyncHandler; + typedef Outcome AddBuDBInstanceRelationOutcome; + typedef std::future AddBuDBInstanceRelationOutcomeCallable; + typedef std::function&)> AddBuDBInstanceRelationAsyncHandler; + typedef Outcome DescribeRdsVSwitchsOutcome; + typedef std::future DescribeRdsVSwitchsOutcomeCallable; + typedef std::function&)> DescribeRdsVSwitchsAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; + typedef Outcome CreateAccountOutcome; + typedef std::future CreateAccountOutcomeCallable; + typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome DescribeAccountsOutcome; + typedef std::future DescribeAccountsOutcomeCallable; + typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeSQLLogRecordsOutcome; + typedef std::future DescribeSQLLogRecordsOutcomeCallable; + typedef std::function&)> DescribeSQLLogRecordsAsyncHandler; + typedef Outcome ModifySecurityIpsOutcome; + typedef std::future ModifySecurityIpsOutcomeCallable; + typedef std::function&)> ModifySecurityIpsAsyncHandler; + typedef Outcome ReleaseInstancePublicConnectionOutcome; + typedef std::future ReleaseInstancePublicConnectionOutcomeCallable; + typedef std::function&)> ReleaseInstancePublicConnectionAsyncHandler; + typedef Outcome DescribeSQLLogFilesOutcome; + typedef std::future DescribeSQLLogFilesOutcomeCallable; + typedef std::function&)> DescribeSQLLogFilesAsyncHandler; + typedef Outcome ModifyDBInstanceNetworkTypeOutcome; + typedef std::future ModifyDBInstanceNetworkTypeOutcomeCallable; + typedef std::function&)> ModifyDBInstanceNetworkTypeAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome DeleteDatabaseOutcome; + typedef std::future DeleteDatabaseOutcomeCallable; + typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome DescribeDBInstanceIPArrayListOutcome; + typedef std::future DescribeDBInstanceIPArrayListOutcomeCallable; + typedef std::function&)> DescribeDBInstanceIPArrayListAsyncHandler; + + GpdbClient(const Credentials &credentials, const ClientConfiguration &configuration); + GpdbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + GpdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~GpdbClient(); + ModifyDBInstanceMaintainTimeOutcome modifyDBInstanceMaintainTime(const Model::ModifyDBInstanceMaintainTimeRequest &request)const; + void modifyDBInstanceMaintainTimeAsync(const Model::ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceMaintainTimeOutcomeCallable modifyDBInstanceMaintainTimeCallable(const Model::ModifyDBInstanceMaintainTimeRequest& request) const; + ModifyDBInstanceDescriptionOutcome modifyDBInstanceDescription(const Model::ModifyDBInstanceDescriptionRequest &request)const; + void modifyDBInstanceDescriptionAsync(const Model::ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceDescriptionOutcomeCallable modifyDBInstanceDescriptionCallable(const Model::ModifyDBInstanceDescriptionRequest& request) const; + DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; + void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancePerformanceOutcomeCallable describeDBInstancePerformanceCallable(const Model::DescribeDBInstancePerformanceRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + DescribeDBInstancesOutcome describeDBInstances(const Model::DescribeDBInstancesRequest &request)const; + void describeDBInstancesAsync(const Model::DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancesOutcomeCallable describeDBInstancesCallable(const Model::DescribeDBInstancesRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; + SwitchDBInstanceNetTypeOutcome switchDBInstanceNetType(const Model::SwitchDBInstanceNetTypeRequest &request)const; + void switchDBInstanceNetTypeAsync(const Model::SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchDBInstanceNetTypeOutcomeCallable switchDBInstanceNetTypeCallable(const Model::SwitchDBInstanceNetTypeRequest& request) const; + AllocateInstancePublicConnectionOutcome allocateInstancePublicConnection(const Model::AllocateInstancePublicConnectionRequest &request)const; + void allocateInstancePublicConnectionAsync(const Model::AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AllocateInstancePublicConnectionOutcomeCallable allocateInstancePublicConnectionCallable(const Model::AllocateInstancePublicConnectionRequest& request) const; + DescribeDBInstanceAttributeOutcome describeDBInstanceAttribute(const Model::DescribeDBInstanceAttributeRequest &request)const; + void describeDBInstanceAttributeAsync(const Model::DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceAttributeOutcomeCallable describeDBInstanceAttributeCallable(const Model::DescribeDBInstanceAttributeRequest& request) const; + ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; + void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + DescribeResourceUsageOutcome describeResourceUsage(const Model::DescribeResourceUsageRequest &request)const; + void describeResourceUsageAsync(const Model::DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourceUsageOutcomeCallable describeResourceUsageCallable(const Model::DescribeResourceUsageRequest& request) const; + DescribeSQLCollectorPolicyOutcome describeSQLCollectorPolicy(const Model::DescribeSQLCollectorPolicyRequest &request)const; + void describeSQLCollectorPolicyAsync(const Model::DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLCollectorPolicyOutcomeCallable describeSQLCollectorPolicyCallable(const Model::DescribeSQLCollectorPolicyRequest& request) const; + ModifySQLCollectorPolicyOutcome modifySQLCollectorPolicy(const Model::ModifySQLCollectorPolicyRequest &request)const; + void modifySQLCollectorPolicyAsync(const Model::ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySQLCollectorPolicyOutcomeCallable modifySQLCollectorPolicyCallable(const Model::ModifySQLCollectorPolicyRequest& request) const; + CreateDBInstanceOutcome createDBInstance(const Model::CreateDBInstanceRequest &request)const; + void createDBInstanceAsync(const Model::CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBInstanceOutcomeCallable createDBInstanceCallable(const Model::CreateDBInstanceRequest& request) const; + DescribeRdsVpcsOutcome describeRdsVpcs(const Model::DescribeRdsVpcsRequest &request)const; + void describeRdsVpcsAsync(const Model::DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVpcsOutcomeCallable describeRdsVpcsCallable(const Model::DescribeRdsVpcsRequest& 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; + ModifyDBInstanceConnectionStringOutcome modifyDBInstanceConnectionString(const Model::ModifyDBInstanceConnectionStringRequest &request)const; + void modifyDBInstanceConnectionStringAsync(const Model::ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionStringOutcomeCallable modifyDBInstanceConnectionStringCallable(const Model::ModifyDBInstanceConnectionStringRequest& request) const; + DeleteDBInstanceOutcome deleteDBInstance(const Model::DeleteDBInstanceRequest &request)const; + void deleteDBInstanceAsync(const Model::DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBInstanceOutcomeCallable deleteDBInstanceCallable(const Model::DeleteDBInstanceRequest& request) const; + DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const; + void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const; + ModifyDBInstanceConnectionModeOutcome modifyDBInstanceConnectionMode(const Model::ModifyDBInstanceConnectionModeRequest &request)const; + void modifyDBInstanceConnectionModeAsync(const Model::ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceConnectionModeOutcomeCallable modifyDBInstanceConnectionModeCallable(const Model::ModifyDBInstanceConnectionModeRequest& request) const; + RestartDBInstanceOutcome restartDBInstance(const Model::RestartDBInstanceRequest &request)const; + void restartDBInstanceAsync(const Model::RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBInstanceOutcomeCallable restartDBInstanceCallable(const Model::RestartDBInstanceRequest& request) const; + DescribeDBInstanceNetInfoOutcome describeDBInstanceNetInfo(const Model::DescribeDBInstanceNetInfoRequest &request)const; + void describeDBInstanceNetInfoAsync(const Model::DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceNetInfoOutcomeCallable describeDBInstanceNetInfoCallable(const Model::DescribeDBInstanceNetInfoRequest& request) const; + AddBuDBInstanceRelationOutcome addBuDBInstanceRelation(const Model::AddBuDBInstanceRelationRequest &request)const; + void addBuDBInstanceRelationAsync(const Model::AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddBuDBInstanceRelationOutcomeCallable addBuDBInstanceRelationCallable(const Model::AddBuDBInstanceRelationRequest& request) const; + DescribeRdsVSwitchsOutcome describeRdsVSwitchs(const Model::DescribeRdsVSwitchsRequest &request)const; + void describeRdsVSwitchsAsync(const Model::DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVSwitchsOutcomeCallable describeRdsVSwitchsCallable(const Model::DescribeRdsVSwitchsRequest& request) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; + CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; + void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; + void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& 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; + ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const; + void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySecurityIpsOutcomeCallable modifySecurityIpsCallable(const Model::ModifySecurityIpsRequest& request) const; + ReleaseInstancePublicConnectionOutcome releaseInstancePublicConnection(const Model::ReleaseInstancePublicConnectionRequest &request)const; + void releaseInstancePublicConnectionAsync(const Model::ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReleaseInstancePublicConnectionOutcomeCallable releaseInstancePublicConnectionCallable(const Model::ReleaseInstancePublicConnectionRequest& request) const; + DescribeSQLLogFilesOutcome describeSQLLogFiles(const Model::DescribeSQLLogFilesRequest &request)const; + void describeSQLLogFilesAsync(const Model::DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLLogFilesOutcomeCallable describeSQLLogFilesCallable(const Model::DescribeSQLLogFilesRequest& request) const; + ModifyDBInstanceNetworkTypeOutcome modifyDBInstanceNetworkType(const Model::ModifyDBInstanceNetworkTypeRequest &request)const; + void modifyDBInstanceNetworkTypeAsync(const Model::ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBInstanceNetworkTypeOutcomeCallable modifyDBInstanceNetworkTypeCallable(const Model::ModifyDBInstanceNetworkTypeRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; + void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + DescribeDBInstanceIPArrayListOutcome describeDBInstanceIPArrayList(const Model::DescribeDBInstanceIPArrayListRequest &request)const; + void describeDBInstanceIPArrayListAsync(const Model::DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstanceIPArrayListOutcomeCallable describeDBInstanceIPArrayListCallable(const Model::DescribeDBInstanceIPArrayListRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_GPDB_GPDBCLIENT_H_ diff --git a/gpdb/include/alibabacloud/gpdb/GpdbExport.h b/gpdb/include/alibabacloud/gpdb/GpdbExport.h new file mode 100644 index 000000000..6b80bd0fd --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/GpdbExport.h @@ -0,0 +1,32 @@ +/* + * 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_GPDB_GPDBEXPORT_H_ +#define ALIBABACLOUD_GPDB_GPDBEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_GPDB_LIBRARY) +# define ALIBABACLOUD_GPDB_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_GPDB_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_GPDB_EXPORT +#endif + +#endif // !ALIBABACLOUD_GPDB_GPDBEXPORT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h b/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h new file mode 100644 index 000000000..49da717b1 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT AddBuDBInstanceRelationRequest : public RpcServiceRequest + { + + public: + AddBuDBInstanceRelationRequest(); + ~AddBuDBInstanceRelationRequest(); + + std::string getBusinessUnit()const; + void setBusinessUnit(const std::string& businessUnit); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string businessUnit_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h b/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h new file mode 100644 index 000000000..11e0c87c6 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/AddBuDBInstanceRelationResult.h @@ -0,0 +1,53 @@ +/* + * 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_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT AddBuDBInstanceRelationResult : public ServiceResult + { + public: + + + AddBuDBInstanceRelationResult(); + explicit AddBuDBInstanceRelationResult(const std::string &payload); + ~AddBuDBInstanceRelationResult(); + std::string getBusinessUnit()const; + std::string getDBInstanceName()const; + + protected: + void parse(const std::string &payload); + private: + std::string businessUnit_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_ADDBUDBINSTANCERELATIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h new file mode 100644 index 000000000..16e866a5f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT AllocateInstancePublicConnectionRequest : public RpcServiceRequest + { + + public: + AllocateInstancePublicConnectionRequest(); + ~AllocateInstancePublicConnectionRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getPort()const; + void setPort(const std::string& port); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string resourceOwnerAccount_; + std::string port_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h b/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h new file mode 100644 index 000000000..146647df5 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/AllocateInstancePublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT AllocateInstancePublicConnectionResult : public ServiceResult + { + public: + + + AllocateInstancePublicConnectionResult(); + explicit AllocateInstancePublicConnectionResult(const std::string &payload); + ~AllocateInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_ALLOCATEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h new file mode 100644 index 000000000..877eb7a6f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateAccountRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateAccountRequest : public RpcServiceRequest + { + + public: + CreateAccountRequest(); + ~CreateAccountRequest(); + + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDatabaseName()const; + void setDatabaseName(const std::string& databaseName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccountDescription()const; + void setAccountDescription(const std::string& accountDescription); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accountPassword_; + std::string accountName_; + std::string databaseName_; + std::string dBInstanceId_; + long ownerId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateAccountResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateAccountResult.h new file mode 100644 index 000000000..e3edb0046 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateAccountResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateAccountResult : public ServiceResult + { + public: + + + CreateAccountResult(); + explicit CreateAccountResult(const std::string &payload); + ~CreateAccountResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEACCOUNTRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h new file mode 100644 index 000000000..d7c30c12e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceRequest.h @@ -0,0 +1,99 @@ +/* + * 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_GPDB_MODEL_CREATEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateDBInstanceRequest(); + ~CreateDBInstanceRequest(); + + std::string getDBInstanceGroupCount()const; + void setDBInstanceGroupCount(const std::string& dBInstanceGroupCount); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getEngineVersion()const; + void setEngineVersion(const std::string& engineVersion); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getUsedTime()const; + void setUsedTime(const std::string& usedTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDBInstanceClass()const; + void setDBInstanceClass(const std::string& dBInstanceClass); + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getEngine()const; + void setEngine(const std::string& engine); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + + private: + std::string dBInstanceGroupCount_; + std::string period_; + std::string clientToken_; + std::string engineVersion_; + long ownerId_; + std::string usedTime_; + std::string accessKeyId_; + std::string dBInstanceClass_; + std::string securityIPList_; + std::string vSwitchId_; + std::string privateIpAddress_; + std::string regionId_; + std::string engine_; + std::string vPCId_; + std::string zoneId_; + std::string dBInstanceDescription_; + std::string payType_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceResult.h new file mode 100644 index 000000000..a9e20ec88 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/CreateDBInstanceResult.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_CREATEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT CreateDBInstanceResult : public ServiceResult + { + public: + + + CreateDBInstanceResult(); + explicit CreateDBInstanceResult(const std::string &payload); + ~CreateDBInstanceResult(); + std::string getDBInstanceId()const; + std::string getPort()const; + std::string getOrderId()const; + std::string getConnectionString()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBInstanceId_; + std::string port_; + std::string orderId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_CREATEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h new file mode 100644 index 000000000..970f700ae --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_DELETEDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteDBInstanceRequest : public RpcServiceRequest + { + + public: + DeleteDBInstanceRequest(); + ~DeleteDBInstanceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clientToken_; + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h new file mode 100644 index 000000000..9cc22b7c2 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteDBInstanceResult : public ServiceResult + { + public: + + + DeleteDBInstanceResult(); + explicit DeleteDBInstanceResult(const std::string &payload); + ~DeleteDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h new file mode 100644 index 000000000..41edb1dbd --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_DELETEDATABASEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDATABASEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteDatabaseRequest : public RpcServiceRequest + { + + public: + DeleteDatabaseRequest(); + ~DeleteDatabaseRequest(); + + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBName_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDATABASEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h b/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h new file mode 100644 index 000000000..2c7661149 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DeleteDatabaseResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DeleteDatabaseResult : public ServiceResult + { + public: + + + DeleteDatabaseResult(); + explicit DeleteDatabaseResult(const std::string &payload); + ~DeleteDatabaseResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DELETEDATABASERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsRequest.h new file mode 100644 index 000000000..b9f057449 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeAccountsRequest : public RpcServiceRequest + { + + public: + DescribeAccountsRequest(); + ~DescribeAccountsRequest(); + + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accountName_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEACCOUNTSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsResult.h new file mode 100644 index 000000000..f0e7a5db2 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeAccountsResult.h @@ -0,0 +1,58 @@ +/* + * 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_GPDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeAccountsResult : public ServiceResult + { + public: + struct DBInstanceAccount + { + std::string accountDescription; + std::string accountStatus; + std::string dBInstanceId; + std::string accountName; + }; + + + DescribeAccountsResult(); + explicit DescribeAccountsResult(const std::string &payload); + ~DescribeAccountsResult(); + std::vector getAccounts()const; + + protected: + void parse(const std::string &payload); + private: + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEACCOUNTSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h new file mode 100644 index 000000000..c3e5f8e90 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceAttributeRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceAttributeRequest(); + ~DescribeDBInstanceAttributeRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h new file mode 100644 index 000000000..b8a49d4f0 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceAttributeResult.h @@ -0,0 +1,92 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceAttributeResult : public ServiceResult + { + public: + struct DBInstanceAttribute + { + struct Tag + { + std::string value; + std::string key; + }; + long dBInstanceMemory; + std::string dBInstanceNetType; + std::string port; + std::string dBInstanceGroupCount; + std::string instanceNetworkType; + std::string dBInstanceClassType; + std::string hostType; + std::string maintainEndTime; + std::string dBInstanceId; + std::string securityIPList; + long dBInstanceStorage; + std::string lockReason; + std::string availabilityValue; + std::vector tags; + std::string engine; + std::string dBInstanceDescription; + std::string maintainStartTime; + long dBInstanceDiskMBPS; + std::string engineVersion; + std::string dBInstanceStatus; + int maxConnections; + std::string zoneId; + std::string dBInstanceClass; + int dBInstanceCpuCores; + std::string payType; + std::string lockMode; + std::string vpcId; + std::string readDelayTime; + std::string creationTime; + std::string connectionMode; + std::string regionId; + std::string connectionString; + std::string expireTime; + }; + + + DescribeDBInstanceAttributeResult(); + explicit DescribeDBInstanceAttributeResult(const std::string &payload); + ~DescribeDBInstanceAttributeResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h new file mode 100644 index 000000000..0e0a4d8fa --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceIPArrayListRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceIPArrayListRequest(); + ~DescribeDBInstanceIPArrayListRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h new file mode 100644 index 000000000..3f45312d5 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceIPArrayListResult.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceIPArrayListResult : public ServiceResult + { + public: + struct DBInstanceIPArray + { + std::string dBInstanceIPArrayAttribute; + std::string securityIPList; + std::string dBInstanceIPArrayName; + }; + + + DescribeDBInstanceIPArrayListResult(); + explicit DescribeDBInstanceIPArrayListResult(const std::string &payload); + ~DescribeDBInstanceIPArrayListResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEIPARRAYLISTRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h new file mode 100644 index 000000000..0df1c407e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceNetInfoRequest : public RpcServiceRequest + { + + public: + DescribeDBInstanceNetInfoRequest(); + ~DescribeDBInstanceNetInfoRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCENETINFOREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h new file mode 100644 index 000000000..7a61bba31 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstanceNetInfoResult.h @@ -0,0 +1,62 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstanceNetInfoResult : public ServiceResult + { + public: + struct DBInstanceNetInfo + { + std::string iPType; + std::string vPCId; + std::string port; + std::string vSwitchId; + std::string connectionString; + std::string iPAddress; + }; + + + DescribeDBInstanceNetInfoResult(); + explicit DescribeDBInstanceNetInfoResult(const std::string &payload); + ~DescribeDBInstanceNetInfoResult(); + std::vector getDBInstanceNetInfos()const; + std::string getInstanceNetworkType()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dBInstanceNetInfos_; + std::string instanceNetworkType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCENETINFORESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h new file mode 100644 index 000000000..9497e1077 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceRequest.h @@ -0,0 +1,60 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancePerformanceRequest : public RpcServiceRequest + { + + public: + DescribeDBInstancePerformanceRequest(); + ~DescribeDBInstancePerformanceRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getKey()const; + void setKey(const std::string& key); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string key_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h new file mode 100644 index 000000000..2668af720 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancePerformanceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult + { + public: + + + DescribeDBInstancePerformanceResult(); + explicit DescribeDBInstancePerformanceResult(const std::string &payload); + ~DescribeDBInstancePerformanceResult(); + std::vector getPerformanceKeys()const; + std::string getEndTime()const; + std::string getDBInstanceId()const; + std::string getStartTime()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h new file mode 100644 index 000000000..3be21579d --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesRequest.h @@ -0,0 +1,77 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + DescribeDBInstancesRequest(); + ~DescribeDBInstancesRequest(); + + std::string getDBInstanceIds()const; + void setDBInstanceIds(const std::string& dBInstanceIds); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceIds_; + std::string regionId_; + int pageSize_; + std::string dBInstanceDescription_; + std::vector tag_; + long ownerId_; + std::string instanceNetworkType_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h new file mode 100644 index 000000000..a8c90a2ed --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeDBInstancesResult.h @@ -0,0 +1,83 @@ +/* + * 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_GPDB_MODEL_DESCRIBEDBINSTANCESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeDBInstancesResult : public ServiceResult + { + public: + struct DBInstance + { + struct Tag + { + std::string value; + std::string key; + }; + std::string engineVersion; + std::string zoneId; + std::string dBInstanceStatus; + std::string dBInstanceNetType; + std::string createTime; + std::string vSwitchId; + std::string payType; + std::string lockMode; + std::string instanceNetworkType; + std::string vpcId; + std::string dBInstanceId; + std::string connectionMode; + std::string regionId; + std::string expireTime; + std::string lockReason; + std::vector tags; + std::string dBInstanceDescription; + std::string engine; + }; + + + DescribeDBInstancesResult(); + explicit DescribeDBInstancesResult(const std::string &payload); + ~DescribeDBInstancesResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEDBINSTANCESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h new file mode 100644 index 000000000..560a64962 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRdsVSwitchsRequest : public RpcServiceRequest + { + + public: + DescribeRdsVSwitchsRequest(); + ~DescribeRdsVSwitchsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getVpcId()const; + void setVpcId(const std::string& vpcId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string vpcId_; + std::string zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsResult.h new file mode 100644 index 000000000..40d15bc06 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVSwitchsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRdsVSwitchsResult : public ServiceResult + { + public: + struct VSwitches + { + struct VSwitchItem + { + bool isDefault; + std::string status; + std::string izNo; + std::string regionNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + std::string bid; + std::string aliUid; + }; + std::vector vSwitch; + }; + + + DescribeRdsVSwitchsResult(); + explicit DescribeRdsVSwitchsResult(const std::string &payload); + ~DescribeRdsVSwitchsResult(); + VSwitches getVSwitches()const; + + protected: + void parse(const std::string &payload); + private: + VSwitches vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h new file mode 100644 index 000000000..4ac0cd06d --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRdsVpcsRequest : public RpcServiceRequest + { + + public: + DescribeRdsVpcsRequest(); + ~DescribeRdsVpcsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::string zoneId_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h new file mode 100644 index 000000000..73e15e19a --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRdsVpcsResult.h @@ -0,0 +1,80 @@ +/* + * 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_GPDB_MODEL_DESCRIBERDSVPCSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRdsVpcsResult : public ServiceResult + { + public: + struct Vpcs + { + struct VpcItem + { + struct VSwitch + { + bool isDefault; + std::string status; + std::string izNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + }; + bool isDefault; + std::string status; + std::vector vSwitchs; + std::string regionNo; + std::string gmtCreate; + std::string vpcId; + std::string gmtModified; + std::string cidrBlock; + std::string vpcName; + std::string bid; + std::string aliUid; + }; + std::vector vpc; + }; + + + DescribeRdsVpcsResult(); + explicit DescribeRdsVpcsResult(const std::string &payload); + ~DescribeRdsVpcsResult(); + Vpcs getVpcs()const; + + protected: + void parse(const std::string &payload); + private: + Vpcs vpcs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERDSVPCSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..403cb73ad --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsRequest.h @@ -0,0 +1,48 @@ +/* + * 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_GPDB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsResult.h new file mode 100644 index 000000000..4058983c2 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeRegionsResult.h @@ -0,0 +1,61 @@ +/* + * 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_GPDB_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + struct Zone + { + bool vpcEnabled; + std::string zoneId; + }; + std::string regionId; + std::vector zones; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h new file mode 100644 index 000000000..65345b84f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeResourceUsageRequest : public RpcServiceRequest + { + + public: + DescribeResourceUsageRequest(); + ~DescribeResourceUsageRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h new file mode 100644 index 000000000..18dde44cd --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeResourceUsageResult.h @@ -0,0 +1,61 @@ +/* + * 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_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeResourceUsageResult : public ServiceResult + { + public: + + + DescribeResourceUsageResult(); + explicit DescribeResourceUsageResult(const std::string &payload); + ~DescribeResourceUsageResult(); + long getLogSize()const; + std::string getDBInstanceId()const; + long getDataSize()const; + long getBackupSize()const; + long getDiskUsed()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + long logSize_; + std::string dBInstanceId_; + long dataSize_; + long backupSize_; + long diskUsed_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBERESOURCEUSAGERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h new file mode 100644 index 000000000..e98e6048d --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLCollectorPolicyRequest : public RpcServiceRequest + { + + public: + DescribeSQLCollectorPolicyRequest(); + ~DescribeSQLCollectorPolicyRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h new file mode 100644 index 000000000..634913db1 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLCollectorPolicyResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLCollectorPolicyResult : public ServiceResult + { + public: + + + DescribeSQLCollectorPolicyResult(); + explicit DescribeSQLCollectorPolicyResult(const std::string &payload); + ~DescribeSQLCollectorPolicyResult(); + std::string getSQLCollectorStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string sQLCollectorStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h new file mode 100644 index 000000000..b626f5c9c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesRequest.h @@ -0,0 +1,60 @@ +/* + * 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_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogFilesRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogFilesRequest(); + ~DescribeSQLLogFilesRequest(); + + std::string getFileName()const; + void setFileName(const std::string& fileName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string fileName_; + int pageSize_; + std::string dBInstanceId_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h new file mode 100644 index 000000000..68a335ae1 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogFilesResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogFilesResult : public ServiceResult + { + public: + struct LogFile + { + std::string logStatus; + std::string logStartTime; + std::string logSize; + std::string logDownloadURL; + std::string fileID; + std::string logEndTime; + }; + + + DescribeSQLLogFilesResult(); + explicit DescribeSQLLogFilesResult(const std::string &payload); + ~DescribeSQLLogFilesResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGFILESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h new file mode 100644 index 000000000..d2ef65454 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsRequest.h @@ -0,0 +1,75 @@ +/* + * 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_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeSQLLogRecordsRequest(); + ~DescribeSQLLogRecordsRequest(); + + std::string getDatabase()const; + void setDatabase(const std::string& database); + std::string getForm()const; + void setForm(const std::string& form); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getUser()const; + void setUser(const std::string& user); + std::string getQueryKeywords()const; + void setQueryKeywords(const std::string& queryKeywords); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string database_; + std::string form_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string user_; + std::string queryKeywords_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.h new file mode 100644 index 000000000..d2af0e38e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSQLLogRecordsResult.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_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSQLLogRecordsResult : public ServiceResult + { + public: + struct SQLRecord + { + std::string executeTime; + std::string threadID; + long returnRowCounts; + std::string dBName; + long totalExecutionTimes; + std::string hostAddress; + std::string accountName; + std::string sQLText; + }; + + + DescribeSQLLogRecordsResult(); + explicit DescribeSQLLogRecordsResult(const std::string &payload); + ~DescribeSQLLogRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESQLLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h new file mode 100644 index 000000000..b38c88f9b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSlowLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeSlowLogRecordsRequest(); + ~DescribeSlowLogRecordsRequest(); + + long getSQLId()const; + void setSQLId(long sQLId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long sQLId_; + std::string dBName_; + int pageSize_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h b/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h new file mode 100644 index 000000000..5517bdb41 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/DescribeSlowLogRecordsResult.h @@ -0,0 +1,70 @@ +/* + * 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_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT DescribeSlowLogRecordsResult : public ServiceResult + { + public: + struct SQLSlowRecord + { + long queryTimes; + std::string executionStartTime; + long returnRowCounts; + long lockTimes; + std::string dBName; + long parseRowCounts; + std::string hostAddress; + std::string sQLText; + }; + + + DescribeSlowLogRecordsResult(); + explicit DescribeSlowLogRecordsResult(const std::string &payload); + ~DescribeSlowLogRecordsResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_DESCRIBESLOWLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesRequest.h b/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..4cab47125 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesRequest.h @@ -0,0 +1,80 @@ +/* + * 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_GPDB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string nextToken_; + std::string ownerAccount_; + std::vector tag_; + long ownerId_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesResult.h b/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesResult.h new file mode 100644 index 000000000..afbb64767 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ListTagResourcesResult.h @@ -0,0 +1,60 @@ +/* + * 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_GPDB_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h new file mode 100644 index 000000000..52e3849da --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyAccountDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyAccountDescriptionRequest(); + ~ModifyAccountDescriptionRequest(); + + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccountDescription()const; + void setAccountDescription(const std::string& accountDescription); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accountName_; + std::string dBInstanceId_; + std::string accountDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h new file mode 100644 index 000000000..6569febe5 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyAccountDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyAccountDescriptionResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionResult(); + explicit ModifyAccountDescriptionResult(const std::string &payload); + ~ModifyAccountDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYACCOUNTDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h new file mode 100644 index 000000000..e52e13a14 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionModeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceConnectionModeRequest(); + ~ModifyDBInstanceConnectionModeRequest(); + + std::string getConnectionMode()const; + void setConnectionMode(const std::string& connectionMode); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string connectionMode_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h new file mode 100644 index 000000000..6f8618267 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionModeResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionModeResult(); + explicit ModifyDBInstanceConnectionModeResult(const std::string &payload); + ~ModifyDBInstanceConnectionModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONMODERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h new file mode 100644 index 000000000..c5536d280 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringRequest.h @@ -0,0 +1,60 @@ +/* + * 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_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionStringRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceConnectionStringRequest(); + ~ModifyDBInstanceConnectionStringRequest(); + + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getPort()const; + void setPort(const std::string& port); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getCurrentConnectionString()const; + void setCurrentConnectionString(const std::string& currentConnectionString); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string connectionStringPrefix_; + std::string port_; + std::string dBInstanceId_; + std::string currentConnectionString_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h new file mode 100644 index 000000000..493c1bf08 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceConnectionStringResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceConnectionStringResult : public ServiceResult + { + public: + + + ModifyDBInstanceConnectionStringResult(); + explicit ModifyDBInstanceConnectionStringResult(const std::string &payload); + ~ModifyDBInstanceConnectionStringResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCECONNECTIONSTRINGRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h new file mode 100644 index 000000000..bdc270c92 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceDescriptionRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceDescriptionRequest(); + ~ModifyDBInstanceDescriptionRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getDBInstanceDescription()const; + void setDBInstanceDescription(const std::string& dBInstanceDescription); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string dBInstanceDescription_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h new file mode 100644 index 000000000..62f86cf16 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceDescriptionResult : public ServiceResult + { + public: + + + ModifyDBInstanceDescriptionResult(); + explicit ModifyDBInstanceDescriptionResult(const std::string &payload); + ~ModifyDBInstanceDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h new file mode 100644 index 000000000..68a5665a5 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceMaintainTimeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceMaintainTimeRequest(); + ~ModifyDBInstanceMaintainTimeRequest(); + + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h new file mode 100644 index 000000000..d33c53c7e --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceMaintainTimeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceMaintainTimeResult : public ServiceResult + { + public: + + + ModifyDBInstanceMaintainTimeResult(); + explicit ModifyDBInstanceMaintainTimeResult(const std::string &payload); + ~ModifyDBInstanceMaintainTimeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCEMAINTAINTIMERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h new file mode 100644 index 000000000..a5bf8523c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceNetworkTypeRequest : public RpcServiceRequest + { + + public: + ModifyDBInstanceNetworkTypeRequest(); + ~ModifyDBInstanceNetworkTypeRequest(); + + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getPrivateIpAddress()const; + void setPrivateIpAddress(const std::string& privateIpAddress); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getInstanceNetworkType()const; + void setInstanceNetworkType(const std::string& instanceNetworkType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string vSwitchId_; + std::string privateIpAddress_; + std::string vPCId_; + std::string dBInstanceId_; + std::string instanceNetworkType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h new file mode 100644 index 000000000..9af087fef --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifyDBInstanceNetworkTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifyDBInstanceNetworkTypeResult : public ServiceResult + { + public: + + + ModifyDBInstanceNetworkTypeResult(); + explicit ModifyDBInstanceNetworkTypeResult(const std::string &payload); + ~ModifyDBInstanceNetworkTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYDBINSTANCENETWORKTYPERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h new file mode 100644 index 000000000..d06a97eb4 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifySQLCollectorPolicyRequest : public RpcServiceRequest + { + + public: + ModifySQLCollectorPolicyRequest(); + ~ModifySQLCollectorPolicyRequest(); + + std::string getSQLCollectorStatus()const; + void setSQLCollectorStatus(const std::string& sQLCollectorStatus); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string sQLCollectorStatus_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h new file mode 100644 index 000000000..2c08b0dd4 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifySQLCollectorPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifySQLCollectorPolicyResult : public ServiceResult + { + public: + + + ModifySQLCollectorPolicyResult(); + explicit ModifySQLCollectorPolicyResult(const std::string &payload); + ~ModifySQLCollectorPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYSQLCOLLECTORPOLICYRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h new file mode 100644 index 000000000..cd6399f5c --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsRequest.h @@ -0,0 +1,60 @@ +/* + * 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_GPDB_MODEL_MODIFYSECURITYIPSREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYSECURITYIPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifySecurityIpsRequest : public RpcServiceRequest + { + + public: + ModifySecurityIpsRequest(); + ~ModifySecurityIpsRequest(); + + std::string getSecurityIPList()const; + void setSecurityIPList(const std::string& securityIPList); + std::string getDBInstanceIPArrayName()const; + void setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName); + std::string getDBInstanceIPArrayAttribute()const; + void setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string securityIPList_; + std::string dBInstanceIPArrayName_; + std::string dBInstanceIPArrayAttribute_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYSECURITYIPSREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h new file mode 100644 index 000000000..473e5ec82 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ModifySecurityIpsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_MODIFYSECURITYIPSRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_MODIFYSECURITYIPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ModifySecurityIpsResult : public ServiceResult + { + public: + + + ModifySecurityIpsResult(); + explicit ModifySecurityIpsResult(const std::string &payload); + ~ModifySecurityIpsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_MODIFYSECURITYIPSRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h b/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h new file mode 100644 index 000000000..5e332ccd0 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ReleaseInstancePublicConnectionRequest : public RpcServiceRequest + { + + public: + ReleaseInstancePublicConnectionRequest(); + ~ReleaseInstancePublicConnectionRequest(); + + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getCurrentConnectionString()const; + void setCurrentConnectionString(const std::string& currentConnectionString); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string dBInstanceId_; + std::string currentConnectionString_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h b/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h new file mode 100644 index 000000000..21f4e16dc --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ReleaseInstancePublicConnectionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ReleaseInstancePublicConnectionResult : public ServiceResult + { + public: + + + ReleaseInstancePublicConnectionResult(); + explicit ReleaseInstancePublicConnectionResult(const std::string &payload); + ~ReleaseInstancePublicConnectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RELEASEINSTANCEPUBLICCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h b/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..20efe7b2b --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest + { + + public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + + std::string getAccountPassword()const; + void setAccountPassword(const std::string& accountPassword); + std::string getAccountName()const; + void setAccountName(const std::string& accountName); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string accountPassword_; + std::string accountName_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h b/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..92d0075e8 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/ResetAccountPasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h b/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h new file mode 100644 index 000000000..ecb38334f --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceRequest.h @@ -0,0 +1,54 @@ +/* + * 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_GPDB_MODEL_RESTARTDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESTARTDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT RestartDBInstanceRequest : public RpcServiceRequest + { + + public: + RestartDBInstanceRequest(); + ~RestartDBInstanceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string clientToken_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RESTARTDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceResult.h b/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceResult.h new file mode 100644 index 000000000..2b87a2db0 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/RestartDBInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_RESTARTDBINSTANCERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_RESTARTDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT RestartDBInstanceResult : public ServiceResult + { + public: + + + RestartDBInstanceResult(); + explicit RestartDBInstanceResult(const std::string &payload); + ~RestartDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_RESTARTDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h b/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h new file mode 100644 index 000000000..89eec33d7 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeRequest.h @@ -0,0 +1,57 @@ +/* + * 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_GPDB_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT SwitchDBInstanceNetTypeRequest : public RpcServiceRequest + { + + public: + SwitchDBInstanceNetTypeRequest(); + ~SwitchDBInstanceNetTypeRequest(); + + std::string getConnectionStringPrefix()const; + void setConnectionStringPrefix(const std::string& connectionStringPrefix); + std::string getPort()const; + void setPort(const std::string& port); + std::string getDBInstanceId()const; + void setDBInstanceId(const std::string& dBInstanceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string connectionStringPrefix_; + std::string port_; + std::string dBInstanceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_SWITCHDBINSTANCENETTYPEREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h b/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h new file mode 100644 index 000000000..cbabab1b6 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/SwitchDBInstanceNetTypeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT SwitchDBInstanceNetTypeResult : public ServiceResult + { + public: + + + SwitchDBInstanceNetTypeResult(); + explicit SwitchDBInstanceNetTypeResult(const std::string &payload); + ~SwitchDBInstanceNetTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_SWITCHDBINSTANCENETTYPERESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/TagResourcesRequest.h b/gpdb/include/alibabacloud/gpdb/model/TagResourcesRequest.h new file mode 100644 index 000000000..9121922ea --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/TagResourcesRequest.h @@ -0,0 +1,77 @@ +/* + * 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_GPDB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT TagResourcesRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::vector getTag()const; + void setTag(const std::vector& tag); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + std::vector tag_; + long ownerId_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/TagResourcesResult.h b/gpdb/include/alibabacloud/gpdb/model/TagResourcesResult.h new file mode 100644 index 000000000..0bc01f95a --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/TagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UntagResourcesRequest.h b/gpdb/include/alibabacloud/gpdb/model/UntagResourcesRequest.h new file mode 100644 index 000000000..7ff219e52 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UntagResourcesRequest.h @@ -0,0 +1,75 @@ +/* + * 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_GPDB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_GPDB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + bool all_; + long resourceOwnerId_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string regionId_; + std::string ownerAccount_; + long ownerId_; + std::vector tagKey_; + std::string resourceType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/gpdb/include/alibabacloud/gpdb/model/UntagResourcesResult.h b/gpdb/include/alibabacloud/gpdb/model/UntagResourcesResult.h new file mode 100644 index 000000000..53088e4a9 --- /dev/null +++ b/gpdb/include/alibabacloud/gpdb/model/UntagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_GPDB_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_GPDB_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Gpdb + { + namespace Model + { + class ALIBABACLOUD_GPDB_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_GPDB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/gpdb/src/GpdbClient.cc b/gpdb/src/GpdbClient.cc new file mode 100644 index 000000000..bf6d21d8a --- /dev/null +++ b/gpdb/src/GpdbClient.cc @@ -0,0 +1,1313 @@ +/* + * 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; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +namespace +{ + const std::string SERVICE_NAME = "gpdb"; +} + +GpdbClient::GpdbClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "gpdb"); +} + +GpdbClient::GpdbClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "gpdb"); +} + +GpdbClient::GpdbClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "gpdb"); +} + +GpdbClient::~GpdbClient() +{} + +GpdbClient::ModifyDBInstanceMaintainTimeOutcome GpdbClient::modifyDBInstanceMaintainTime(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceMaintainTimeOutcome(ModifyDBInstanceMaintainTimeResult(outcome.result())); + else + return ModifyDBInstanceMaintainTimeOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceMaintainTimeAsync(const ModifyDBInstanceMaintainTimeRequest& request, const ModifyDBInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceMaintainTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceMaintainTimeOutcomeCallable GpdbClient::modifyDBInstanceMaintainTimeCallable(const ModifyDBInstanceMaintainTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceMaintainTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifyDBInstanceDescriptionOutcome GpdbClient::modifyDBInstanceDescription(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceDescriptionOutcome(ModifyDBInstanceDescriptionResult(outcome.result())); + else + return ModifyDBInstanceDescriptionOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceDescriptionAsync(const ModifyDBInstanceDescriptionRequest& request, const ModifyDBInstanceDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceDescriptionOutcomeCallable GpdbClient::modifyDBInstanceDescriptionCallable(const ModifyDBInstanceDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstancePerformanceOutcome GpdbClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(DescribeDBInstancePerformanceResult(outcome.result())); + else + return DescribeDBInstancePerformanceOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstancePerformanceAsync(const DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstancePerformanceOutcomeCallable GpdbClient::describeDBInstancePerformanceCallable(const DescribeDBInstancePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ListTagResourcesOutcome GpdbClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void GpdbClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ListTagResourcesOutcomeCallable GpdbClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstancesOutcome GpdbClient::describeDBInstances(const DescribeDBInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancesOutcome(DescribeDBInstancesResult(outcome.result())); + else + return DescribeDBInstancesOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstancesAsync(const DescribeDBInstancesRequest& request, const DescribeDBInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstancesOutcomeCallable GpdbClient::describeDBInstancesCallable(const DescribeDBInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::UntagResourcesOutcome GpdbClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void GpdbClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::UntagResourcesOutcomeCallable GpdbClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::SwitchDBInstanceNetTypeOutcome GpdbClient::switchDBInstanceNetType(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchDBInstanceNetTypeOutcome(SwitchDBInstanceNetTypeResult(outcome.result())); + else + return SwitchDBInstanceNetTypeOutcome(outcome.error()); +} + +void GpdbClient::switchDBInstanceNetTypeAsync(const SwitchDBInstanceNetTypeRequest& request, const SwitchDBInstanceNetTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchDBInstanceNetType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::SwitchDBInstanceNetTypeOutcomeCallable GpdbClient::switchDBInstanceNetTypeCallable(const SwitchDBInstanceNetTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchDBInstanceNetType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::AllocateInstancePublicConnectionOutcome GpdbClient::allocateInstancePublicConnection(const AllocateInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AllocateInstancePublicConnectionOutcome(AllocateInstancePublicConnectionResult(outcome.result())); + else + return AllocateInstancePublicConnectionOutcome(outcome.error()); +} + +void GpdbClient::allocateInstancePublicConnectionAsync(const AllocateInstancePublicConnectionRequest& request, const AllocateInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, allocateInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::AllocateInstancePublicConnectionOutcomeCallable GpdbClient::allocateInstancePublicConnectionCallable(const AllocateInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->allocateInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceAttributeOutcome GpdbClient::describeDBInstanceAttribute(const DescribeDBInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceAttributeOutcome(DescribeDBInstanceAttributeResult(outcome.result())); + else + return DescribeDBInstanceAttributeOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceAttributeAsync(const DescribeDBInstanceAttributeRequest& request, const DescribeDBInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceAttributeOutcomeCallable GpdbClient::describeDBInstanceAttributeCallable(const DescribeDBInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifyAccountDescriptionOutcome GpdbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionOutcome(ModifyAccountDescriptionResult(outcome.result())); + else + return ModifyAccountDescriptionOutcome(outcome.error()); +} + +void GpdbClient::modifyAccountDescriptionAsync(const ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyAccountDescriptionOutcomeCallable GpdbClient::modifyAccountDescriptionCallable(const ModifyAccountDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeResourceUsageOutcome GpdbClient::describeResourceUsage(const DescribeResourceUsageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourceUsageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourceUsageOutcome(DescribeResourceUsageResult(outcome.result())); + else + return DescribeResourceUsageOutcome(outcome.error()); +} + +void GpdbClient::describeResourceUsageAsync(const DescribeResourceUsageRequest& request, const DescribeResourceUsageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourceUsage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeResourceUsageOutcomeCallable GpdbClient::describeResourceUsageCallable(const DescribeResourceUsageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourceUsage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeSQLCollectorPolicyOutcome GpdbClient::describeSQLCollectorPolicy(const DescribeSQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLCollectorPolicyOutcome(DescribeSQLCollectorPolicyResult(outcome.result())); + else + return DescribeSQLCollectorPolicyOutcome(outcome.error()); +} + +void GpdbClient::describeSQLCollectorPolicyAsync(const DescribeSQLCollectorPolicyRequest& request, const DescribeSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeSQLCollectorPolicyOutcomeCallable GpdbClient::describeSQLCollectorPolicyCallable(const DescribeSQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifySQLCollectorPolicyOutcome GpdbClient::modifySQLCollectorPolicy(const ModifySQLCollectorPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySQLCollectorPolicyOutcome(ModifySQLCollectorPolicyResult(outcome.result())); + else + return ModifySQLCollectorPolicyOutcome(outcome.error()); +} + +void GpdbClient::modifySQLCollectorPolicyAsync(const ModifySQLCollectorPolicyRequest& request, const ModifySQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySQLCollectorPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifySQLCollectorPolicyOutcomeCallable GpdbClient::modifySQLCollectorPolicyCallable(const ModifySQLCollectorPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySQLCollectorPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::CreateDBInstanceOutcome GpdbClient::createDBInstance(const CreateDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBInstanceOutcome(CreateDBInstanceResult(outcome.result())); + else + return CreateDBInstanceOutcome(outcome.error()); +} + +void GpdbClient::createDBInstanceAsync(const CreateDBInstanceRequest& request, const CreateDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateDBInstanceOutcomeCallable GpdbClient::createDBInstanceCallable(const CreateDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeRdsVpcsOutcome GpdbClient::describeRdsVpcs(const DescribeRdsVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVpcsOutcome(DescribeRdsVpcsResult(outcome.result())); + else + return DescribeRdsVpcsOutcome(outcome.error()); +} + +void GpdbClient::describeRdsVpcsAsync(const DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeRdsVpcsOutcomeCallable GpdbClient::describeRdsVpcsCallable(const DescribeRdsVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeRegionsOutcome GpdbClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void GpdbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeRegionsOutcomeCallable GpdbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifyDBInstanceConnectionStringOutcome GpdbClient::modifyDBInstanceConnectionString(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionStringOutcome(ModifyDBInstanceConnectionStringResult(outcome.result())); + else + return ModifyDBInstanceConnectionStringOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceConnectionStringAsync(const ModifyDBInstanceConnectionStringRequest& request, const ModifyDBInstanceConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionString(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceConnectionStringOutcomeCallable GpdbClient::modifyDBInstanceConnectionStringCallable(const ModifyDBInstanceConnectionStringRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionString(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteDBInstanceOutcome GpdbClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBInstanceOutcome(DeleteDBInstanceResult(outcome.result())); + else + return DeleteDBInstanceOutcome(outcome.error()); +} + +void GpdbClient::deleteDBInstanceAsync(const DeleteDBInstanceRequest& request, const DeleteDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteDBInstanceOutcomeCallable GpdbClient::deleteDBInstanceCallable(const DeleteDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeSlowLogRecordsOutcome GpdbClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSlowLogRecordsOutcome(DescribeSlowLogRecordsResult(outcome.result())); + else + return DescribeSlowLogRecordsOutcome(outcome.error()); +} + +void GpdbClient::describeSlowLogRecordsAsync(const DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSlowLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeSlowLogRecordsOutcomeCallable GpdbClient::describeSlowLogRecordsCallable(const DescribeSlowLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSlowLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifyDBInstanceConnectionModeOutcome GpdbClient::modifyDBInstanceConnectionMode(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceConnectionModeOutcome(ModifyDBInstanceConnectionModeResult(outcome.result())); + else + return ModifyDBInstanceConnectionModeOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceConnectionModeAsync(const ModifyDBInstanceConnectionModeRequest& request, const ModifyDBInstanceConnectionModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceConnectionMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceConnectionModeOutcomeCallable GpdbClient::modifyDBInstanceConnectionModeCallable(const ModifyDBInstanceConnectionModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceConnectionMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::RestartDBInstanceOutcome GpdbClient::restartDBInstance(const RestartDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBInstanceOutcome(RestartDBInstanceResult(outcome.result())); + else + return RestartDBInstanceOutcome(outcome.error()); +} + +void GpdbClient::restartDBInstanceAsync(const RestartDBInstanceRequest& request, const RestartDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::RestartDBInstanceOutcomeCallable GpdbClient::restartDBInstanceCallable(const RestartDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceNetInfoOutcome GpdbClient::describeDBInstanceNetInfo(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceNetInfoOutcome(DescribeDBInstanceNetInfoResult(outcome.result())); + else + return DescribeDBInstanceNetInfoOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceNetInfoAsync(const DescribeDBInstanceNetInfoRequest& request, const DescribeDBInstanceNetInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceNetInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceNetInfoOutcomeCallable GpdbClient::describeDBInstanceNetInfoCallable(const DescribeDBInstanceNetInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceNetInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::AddBuDBInstanceRelationOutcome GpdbClient::addBuDBInstanceRelation(const AddBuDBInstanceRelationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddBuDBInstanceRelationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddBuDBInstanceRelationOutcome(AddBuDBInstanceRelationResult(outcome.result())); + else + return AddBuDBInstanceRelationOutcome(outcome.error()); +} + +void GpdbClient::addBuDBInstanceRelationAsync(const AddBuDBInstanceRelationRequest& request, const AddBuDBInstanceRelationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addBuDBInstanceRelation(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::AddBuDBInstanceRelationOutcomeCallable GpdbClient::addBuDBInstanceRelationCallable(const AddBuDBInstanceRelationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addBuDBInstanceRelation(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeRdsVSwitchsOutcome GpdbClient::describeRdsVSwitchs(const DescribeRdsVSwitchsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(DescribeRdsVSwitchsResult(outcome.result())); + else + return DescribeRdsVSwitchsOutcome(outcome.error()); +} + +void GpdbClient::describeRdsVSwitchsAsync(const DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVSwitchs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeRdsVSwitchsOutcomeCallable GpdbClient::describeRdsVSwitchsCallable(const DescribeRdsVSwitchsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVSwitchs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ResetAccountPasswordOutcome GpdbClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void GpdbClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ResetAccountPasswordOutcomeCallable GpdbClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::CreateAccountOutcome GpdbClient::createAccount(const CreateAccountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountOutcome(CreateAccountResult(outcome.result())); + else + return CreateAccountOutcome(outcome.error()); +} + +void GpdbClient::createAccountAsync(const CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::CreateAccountOutcomeCallable GpdbClient::createAccountCallable(const CreateAccountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeAccountsOutcome GpdbClient::describeAccounts(const DescribeAccountsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsOutcome(DescribeAccountsResult(outcome.result())); + else + return DescribeAccountsOutcome(outcome.error()); +} + +void GpdbClient::describeAccountsAsync(const DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccounts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeAccountsOutcomeCallable GpdbClient::describeAccountsCallable(const DescribeAccountsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccounts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeSQLLogRecordsOutcome GpdbClient::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 GpdbClient::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)); +} + +GpdbClient::DescribeSQLLogRecordsOutcomeCallable GpdbClient::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(); +} + +GpdbClient::ModifySecurityIpsOutcome GpdbClient::modifySecurityIps(const ModifySecurityIpsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySecurityIpsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySecurityIpsOutcome(ModifySecurityIpsResult(outcome.result())); + else + return ModifySecurityIpsOutcome(outcome.error()); +} + +void GpdbClient::modifySecurityIpsAsync(const ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySecurityIps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifySecurityIpsOutcomeCallable GpdbClient::modifySecurityIpsCallable(const ModifySecurityIpsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySecurityIps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ReleaseInstancePublicConnectionOutcome GpdbClient::releaseInstancePublicConnection(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReleaseInstancePublicConnectionOutcome(ReleaseInstancePublicConnectionResult(outcome.result())); + else + return ReleaseInstancePublicConnectionOutcome(outcome.error()); +} + +void GpdbClient::releaseInstancePublicConnectionAsync(const ReleaseInstancePublicConnectionRequest& request, const ReleaseInstancePublicConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, releaseInstancePublicConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ReleaseInstancePublicConnectionOutcomeCallable GpdbClient::releaseInstancePublicConnectionCallable(const ReleaseInstancePublicConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->releaseInstancePublicConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeSQLLogFilesOutcome GpdbClient::describeSQLLogFiles(const DescribeSQLLogFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLLogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLLogFilesOutcome(DescribeSQLLogFilesResult(outcome.result())); + else + return DescribeSQLLogFilesOutcome(outcome.error()); +} + +void GpdbClient::describeSQLLogFilesAsync(const DescribeSQLLogFilesRequest& request, const DescribeSQLLogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLLogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeSQLLogFilesOutcomeCallable GpdbClient::describeSQLLogFilesCallable(const DescribeSQLLogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLLogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::ModifyDBInstanceNetworkTypeOutcome GpdbClient::modifyDBInstanceNetworkType(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBInstanceNetworkTypeOutcome(ModifyDBInstanceNetworkTypeResult(outcome.result())); + else + return ModifyDBInstanceNetworkTypeOutcome(outcome.error()); +} + +void GpdbClient::modifyDBInstanceNetworkTypeAsync(const ModifyDBInstanceNetworkTypeRequest& request, const ModifyDBInstanceNetworkTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBInstanceNetworkType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::ModifyDBInstanceNetworkTypeOutcomeCallable GpdbClient::modifyDBInstanceNetworkTypeCallable(const ModifyDBInstanceNetworkTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBInstanceNetworkType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::TagResourcesOutcome GpdbClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void GpdbClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::TagResourcesOutcomeCallable GpdbClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DeleteDatabaseOutcome GpdbClient::deleteDatabase(const DeleteDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseOutcome(DeleteDatabaseResult(outcome.result())); + else + return DeleteDatabaseOutcome(outcome.error()); +} + +void GpdbClient::deleteDatabaseAsync(const DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DeleteDatabaseOutcomeCallable GpdbClient::deleteDatabaseCallable(const DeleteDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +GpdbClient::DescribeDBInstanceIPArrayListOutcome GpdbClient::describeDBInstanceIPArrayList(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstanceIPArrayListOutcome(DescribeDBInstanceIPArrayListResult(outcome.result())); + else + return DescribeDBInstanceIPArrayListOutcome(outcome.error()); +} + +void GpdbClient::describeDBInstanceIPArrayListAsync(const DescribeDBInstanceIPArrayListRequest& request, const DescribeDBInstanceIPArrayListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstanceIPArrayList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +GpdbClient::DescribeDBInstanceIPArrayListOutcomeCallable GpdbClient::describeDBInstanceIPArrayListCallable(const DescribeDBInstanceIPArrayListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstanceIPArrayList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/gpdb/src/model/AddBuDBInstanceRelationRequest.cc b/gpdb/src/model/AddBuDBInstanceRelationRequest.cc new file mode 100644 index 000000000..5ac08dede --- /dev/null +++ b/gpdb/src/model/AddBuDBInstanceRelationRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::AddBuDBInstanceRelationRequest; + +AddBuDBInstanceRelationRequest::AddBuDBInstanceRelationRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "AddBuDBInstanceRelation") +{} + +AddBuDBInstanceRelationRequest::~AddBuDBInstanceRelationRequest() +{} + +std::string AddBuDBInstanceRelationRequest::getBusinessUnit()const +{ + return businessUnit_; +} + +void AddBuDBInstanceRelationRequest::setBusinessUnit(const std::string& businessUnit) +{ + businessUnit_ = businessUnit; + setParameter("BusinessUnit", businessUnit); +} + +std::string AddBuDBInstanceRelationRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AddBuDBInstanceRelationRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long AddBuDBInstanceRelationRequest::getOwnerId()const +{ + return ownerId_; +} + +void AddBuDBInstanceRelationRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AddBuDBInstanceRelationRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AddBuDBInstanceRelationRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/AddBuDBInstanceRelationResult.cc b/gpdb/src/model/AddBuDBInstanceRelationResult.cc new file mode 100644 index 000000000..9de710828 --- /dev/null +++ b/gpdb/src/model/AddBuDBInstanceRelationResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult() : + ServiceResult() +{} + +AddBuDBInstanceRelationResult::AddBuDBInstanceRelationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddBuDBInstanceRelationResult::~AddBuDBInstanceRelationResult() +{} + +void AddBuDBInstanceRelationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["BusinessUnit"].isNull()) + businessUnit_ = value["BusinessUnit"].asString(); + if(!value["DBInstanceName"].isNull()) + dBInstanceName_ = value["DBInstanceName"].asString(); + +} + +std::string AddBuDBInstanceRelationResult::getBusinessUnit()const +{ + return businessUnit_; +} + +std::string AddBuDBInstanceRelationResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + diff --git a/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc b/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc new file mode 100644 index 000000000..3ec3d0f2a --- /dev/null +++ b/gpdb/src/model/AllocateInstancePublicConnectionRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::Gpdb::Model::AllocateInstancePublicConnectionRequest; + +AllocateInstancePublicConnectionRequest::AllocateInstancePublicConnectionRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "AllocateInstancePublicConnection") +{} + +AllocateInstancePublicConnectionRequest::~AllocateInstancePublicConnectionRequest() +{} + +long AllocateInstancePublicConnectionRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void AllocateInstancePublicConnectionRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string AllocateInstancePublicConnectionRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void AllocateInstancePublicConnectionRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string AllocateInstancePublicConnectionRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void AllocateInstancePublicConnectionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string AllocateInstancePublicConnectionRequest::getPort()const +{ + return port_; +} + +void AllocateInstancePublicConnectionRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string AllocateInstancePublicConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void AllocateInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long AllocateInstancePublicConnectionRequest::getOwnerId()const +{ + return ownerId_; +} + +void AllocateInstancePublicConnectionRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string AllocateInstancePublicConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void AllocateInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/AllocateInstancePublicConnectionResult.cc b/gpdb/src/model/AllocateInstancePublicConnectionResult.cc new file mode 100644 index 000000000..70901d793 --- /dev/null +++ b/gpdb/src/model/AllocateInstancePublicConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult() : + ServiceResult() +{} + +AllocateInstancePublicConnectionResult::AllocateInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AllocateInstancePublicConnectionResult::~AllocateInstancePublicConnectionResult() +{} + +void AllocateInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/CreateAccountRequest.cc b/gpdb/src/model/CreateAccountRequest.cc new file mode 100644 index 000000000..95933c99d --- /dev/null +++ b/gpdb/src/model/CreateAccountRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::Gpdb::Model::CreateAccountRequest; + +CreateAccountRequest::CreateAccountRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "CreateAccount") +{} + +CreateAccountRequest::~CreateAccountRequest() +{} + +std::string CreateAccountRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void CreateAccountRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string CreateAccountRequest::getAccountName()const +{ + return accountName_; +} + +void CreateAccountRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string CreateAccountRequest::getDatabaseName()const +{ + return databaseName_; +} + +void CreateAccountRequest::setDatabaseName(const std::string& databaseName) +{ + databaseName_ = databaseName; + setParameter("DatabaseName", databaseName); +} + +std::string CreateAccountRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void CreateAccountRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long CreateAccountRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateAccountRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateAccountRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void CreateAccountRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setParameter("AccountDescription", accountDescription); +} + +std::string CreateAccountRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateAccountRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/CreateAccountResult.cc b/gpdb/src/model/CreateAccountResult.cc new file mode 100644 index 000000000..c1d1a563f --- /dev/null +++ b/gpdb/src/model/CreateAccountResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +CreateAccountResult::CreateAccountResult() : + ServiceResult() +{} + +CreateAccountResult::CreateAccountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountResult::~CreateAccountResult() +{} + +void CreateAccountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/CreateDBInstanceRequest.cc b/gpdb/src/model/CreateDBInstanceRequest.cc new file mode 100644 index 000000000..607ba41a2 --- /dev/null +++ b/gpdb/src/model/CreateDBInstanceRequest.cc @@ -0,0 +1,225 @@ +/* + * 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::Gpdb::Model::CreateDBInstanceRequest; + +CreateDBInstanceRequest::CreateDBInstanceRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "CreateDBInstance") +{} + +CreateDBInstanceRequest::~CreateDBInstanceRequest() +{} + +std::string CreateDBInstanceRequest::getDBInstanceGroupCount()const +{ + return dBInstanceGroupCount_; +} + +void CreateDBInstanceRequest::setDBInstanceGroupCount(const std::string& dBInstanceGroupCount) +{ + dBInstanceGroupCount_ = dBInstanceGroupCount; + setParameter("DBInstanceGroupCount", dBInstanceGroupCount); +} + +std::string CreateDBInstanceRequest::getPeriod()const +{ + return period_; +} + +void CreateDBInstanceRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string CreateDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateDBInstanceRequest::getEngineVersion()const +{ + return engineVersion_; +} + +void CreateDBInstanceRequest::setEngineVersion(const std::string& engineVersion) +{ + engineVersion_ = engineVersion; + setParameter("EngineVersion", engineVersion); +} + +long CreateDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateDBInstanceRequest::getUsedTime()const +{ + return usedTime_; +} + +void CreateDBInstanceRequest::setUsedTime(const std::string& usedTime) +{ + usedTime_ = usedTime; + setParameter("UsedTime", usedTime); +} + +std::string CreateDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateDBInstanceRequest::getDBInstanceClass()const +{ + return dBInstanceClass_; +} + +void CreateDBInstanceRequest::setDBInstanceClass(const std::string& dBInstanceClass) +{ + dBInstanceClass_ = dBInstanceClass; + setParameter("DBInstanceClass", dBInstanceClass); +} + +std::string CreateDBInstanceRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void CreateDBInstanceRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setParameter("SecurityIPList", securityIPList); +} + +std::string CreateDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateDBInstanceRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void CreateDBInstanceRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string CreateDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateDBInstanceRequest::getEngine()const +{ + return engine_; +} + +void CreateDBInstanceRequest::setEngine(const std::string& engine) +{ + engine_ = engine; + setParameter("Engine", engine); +} + +std::string CreateDBInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateDBInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CreateDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateDBInstanceRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void CreateDBInstanceRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string CreateDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void CreateDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CreateDBInstanceRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void CreateDBInstanceRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + diff --git a/gpdb/src/model/CreateDBInstanceResult.cc b/gpdb/src/model/CreateDBInstanceResult.cc new file mode 100644 index 000000000..309bbcf75 --- /dev/null +++ b/gpdb/src/model/CreateDBInstanceResult.cc @@ -0,0 +1,73 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +CreateDBInstanceResult::CreateDBInstanceResult() : + ServiceResult() +{} + +CreateDBInstanceResult::CreateDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBInstanceResult::~CreateDBInstanceResult() +{} + +void CreateDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["ConnectionString"].isNull()) + connectionString_ = value["ConnectionString"].asString(); + if(!value["Port"].isNull()) + port_ = value["Port"].asString(); + +} + +std::string CreateDBInstanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string CreateDBInstanceResult::getPort()const +{ + return port_; +} + +std::string CreateDBInstanceResult::getOrderId()const +{ + return orderId_; +} + +std::string CreateDBInstanceResult::getConnectionString()const +{ + return connectionString_; +} + diff --git a/gpdb/src/model/DeleteDBInstanceRequest.cc b/gpdb/src/model/DeleteDBInstanceRequest.cc new file mode 100644 index 000000000..6fa883ab5 --- /dev/null +++ b/gpdb/src/model/DeleteDBInstanceRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::DeleteDBInstanceRequest; + +DeleteDBInstanceRequest::DeleteDBInstanceRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DeleteDBInstance") +{} + +DeleteDBInstanceRequest::~DeleteDBInstanceRequest() +{} + +std::string DeleteDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void DeleteDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string DeleteDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DeleteDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DeleteDBInstanceResult.cc b/gpdb/src/model/DeleteDBInstanceResult.cc new file mode 100644 index 000000000..aae9011ff --- /dev/null +++ b/gpdb/src/model/DeleteDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteDBInstanceResult::DeleteDBInstanceResult() : + ServiceResult() +{} + +DeleteDBInstanceResult::DeleteDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBInstanceResult::~DeleteDBInstanceResult() +{} + +void DeleteDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/DeleteDatabaseRequest.cc b/gpdb/src/model/DeleteDatabaseRequest.cc new file mode 100644 index 000000000..f4d8c0bee --- /dev/null +++ b/gpdb/src/model/DeleteDatabaseRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::DeleteDatabaseRequest; + +DeleteDatabaseRequest::DeleteDatabaseRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DeleteDatabase") +{} + +DeleteDatabaseRequest::~DeleteDatabaseRequest() +{} + +std::string DeleteDatabaseRequest::getDBName()const +{ + return dBName_; +} + +void DeleteDatabaseRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string DeleteDatabaseRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DeleteDatabaseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteDatabaseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DeleteDatabaseResult.cc b/gpdb/src/model/DeleteDatabaseResult.cc new file mode 100644 index 000000000..670ec8563 --- /dev/null +++ b/gpdb/src/model/DeleteDatabaseResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DeleteDatabaseResult::DeleteDatabaseResult() : + ServiceResult() +{} + +DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseResult::~DeleteDatabaseResult() +{} + +void DeleteDatabaseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/DescribeAccountsRequest.cc b/gpdb/src/model/DescribeAccountsRequest.cc new file mode 100644 index 000000000..a32687b2f --- /dev/null +++ b/gpdb/src/model/DescribeAccountsRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::DescribeAccountsRequest; + +DescribeAccountsRequest::DescribeAccountsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeAccounts") +{} + +DescribeAccountsRequest::~DescribeAccountsRequest() +{} + +std::string DescribeAccountsRequest::getAccountName()const +{ + return accountName_; +} + +void DescribeAccountsRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string DescribeAccountsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeAccountsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeAccountsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAccountsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeAccountsResult.cc b/gpdb/src/model/DescribeAccountsResult.cc new file mode 100644 index 000000000..92f08f070 --- /dev/null +++ b/gpdb/src/model/DescribeAccountsResult.cc @@ -0,0 +1,64 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeAccountsResult::DescribeAccountsResult() : + ServiceResult() +{} + +DescribeAccountsResult::DescribeAccountsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsResult::~DescribeAccountsResult() +{} + +void DescribeAccountsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAccounts = value["Accounts"]["DBInstanceAccount"]; + for (auto value : allAccounts) + { + DBInstanceAccount accountsObject; + if(!value["DBInstanceId"].isNull()) + accountsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["AccountName"].isNull()) + accountsObject.accountName = value["AccountName"].asString(); + if(!value["AccountStatus"].isNull()) + accountsObject.accountStatus = value["AccountStatus"].asString(); + if(!value["AccountDescription"].isNull()) + accountsObject.accountDescription = value["AccountDescription"].asString(); + accounts_.push_back(accountsObject); + } + +} + +std::vector DescribeAccountsResult::getAccounts()const +{ + return accounts_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc new file mode 100644 index 000000000..76fffbf7b --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceAttributeRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::DescribeDBInstanceAttributeRequest; + +DescribeDBInstanceAttributeRequest::DescribeDBInstanceAttributeRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceAttribute") +{} + +DescribeDBInstanceAttributeRequest::~DescribeDBInstanceAttributeRequest() +{} + +std::string DescribeDBInstanceAttributeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceAttributeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +long DescribeDBInstanceAttributeRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstanceAttributeRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstanceAttributeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceAttributeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeDBInstanceAttributeResult.cc b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc new file mode 100644 index 000000000..e40e16c8b --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceAttributeResult.cc @@ -0,0 +1,130 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult() : + ServiceResult() +{} + +DescribeDBInstanceAttributeResult::DescribeDBInstanceAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceAttributeResult::~DescribeDBInstanceAttributeResult() +{} + +void DescribeDBInstanceAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceAttribute"]; + for (auto value : allItems) + { + DBInstanceAttribute itemsObject; + if(!value["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["PayType"].isNull()) + itemsObject.payType = value["PayType"].asString(); + if(!value["DBInstanceClassType"].isNull()) + itemsObject.dBInstanceClassType = value["DBInstanceClassType"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + if(!value["ConnectionString"].isNull()) + itemsObject.connectionString = value["ConnectionString"].asString(); + if(!value["Port"].isNull()) + itemsObject.port = value["Port"].asString(); + if(!value["Engine"].isNull()) + itemsObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + itemsObject.engineVersion = value["EngineVersion"].asString(); + if(!value["DBInstanceClass"].isNull()) + itemsObject.dBInstanceClass = value["DBInstanceClass"].asString(); + if(!value["DBInstanceCpuCores"].isNull()) + itemsObject.dBInstanceCpuCores = std::stoi(value["DBInstanceCpuCores"].asString()); + if(!value["DBInstanceMemory"].isNull()) + itemsObject.dBInstanceMemory = std::stol(value["DBInstanceMemory"].asString()); + if(!value["DBInstanceStorage"].isNull()) + itemsObject.dBInstanceStorage = std::stol(value["DBInstanceStorage"].asString()); + if(!value["DBInstanceDiskMBPS"].isNull()) + itemsObject.dBInstanceDiskMBPS = std::stol(value["DBInstanceDiskMBPS"].asString()); + if(!value["HostType"].isNull()) + itemsObject.hostType = value["HostType"].asString(); + if(!value["DBInstanceGroupCount"].isNull()) + itemsObject.dBInstanceGroupCount = value["DBInstanceGroupCount"].asString(); + if(!value["DBInstanceNetType"].isNull()) + itemsObject.dBInstanceNetType = value["DBInstanceNetType"].asString(); + if(!value["DBInstanceStatus"].isNull()) + itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["DBInstanceDescription"].isNull()) + itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["LockMode"].isNull()) + itemsObject.lockMode = value["LockMode"].asString(); + if(!value["LockReason"].isNull()) + itemsObject.lockReason = value["LockReason"].asString(); + if(!value["ReadDelayTime"].isNull()) + itemsObject.readDelayTime = value["ReadDelayTime"].asString(); + if(!value["CreationTime"].isNull()) + itemsObject.creationTime = value["CreationTime"].asString(); + if(!value["ExpireTime"].isNull()) + itemsObject.expireTime = value["ExpireTime"].asString(); + if(!value["MaintainStartTime"].isNull()) + itemsObject.maintainStartTime = value["MaintainStartTime"].asString(); + if(!value["MaintainEndTime"].isNull()) + itemsObject.maintainEndTime = value["MaintainEndTime"].asString(); + if(!value["AvailabilityValue"].isNull()) + itemsObject.availabilityValue = value["AvailabilityValue"].asString(); + if(!value["MaxConnections"].isNull()) + itemsObject.maxConnections = std::stoi(value["MaxConnections"].asString()); + if(!value["SecurityIPList"].isNull()) + itemsObject.securityIPList = value["SecurityIPList"].asString(); + if(!value["ZoneId"].isNull()) + itemsObject.zoneId = value["ZoneId"].asString(); + if(!value["InstanceNetworkType"].isNull()) + itemsObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + if(!value["VpcId"].isNull()) + itemsObject.vpcId = value["VpcId"].asString(); + if(!value["ConnectionMode"].isNull()) + itemsObject.connectionMode = value["ConnectionMode"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + DBInstanceAttribute::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + itemsObject.tags.push_back(tagsObject); + } + items_.push_back(itemsObject); + } + +} + +std::vector DescribeDBInstanceAttributeResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc new file mode 100644 index 000000000..29c999793 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceIPArrayListRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeDBInstanceIPArrayListRequest; + +DescribeDBInstanceIPArrayListRequest::DescribeDBInstanceIPArrayListRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceIPArrayList") +{} + +DescribeDBInstanceIPArrayListRequest::~DescribeDBInstanceIPArrayListRequest() +{} + +std::string DescribeDBInstanceIPArrayListRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceIPArrayListRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstanceIPArrayListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceIPArrayListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc b/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc new file mode 100644 index 000000000..dfb5c88a2 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceIPArrayListResult.cc @@ -0,0 +1,62 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult() : + ServiceResult() +{} + +DescribeDBInstanceIPArrayListResult::DescribeDBInstanceIPArrayListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceIPArrayListResult::~DescribeDBInstanceIPArrayListResult() +{} + +void DescribeDBInstanceIPArrayListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstanceIPArray"]; + for (auto value : allItems) + { + DBInstanceIPArray itemsObject; + if(!value["DBInstanceIPArrayName"].isNull()) + itemsObject.dBInstanceIPArrayName = value["DBInstanceIPArrayName"].asString(); + if(!value["DBInstanceIPArrayAttribute"].isNull()) + itemsObject.dBInstanceIPArrayAttribute = value["DBInstanceIPArrayAttribute"].asString(); + if(!value["SecurityIPList"].isNull()) + itemsObject.securityIPList = value["SecurityIPList"].asString(); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeDBInstanceIPArrayListResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc new file mode 100644 index 000000000..5421990cd --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceNetInfoRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeDBInstanceNetInfoRequest; + +DescribeDBInstanceNetInfoRequest::DescribeDBInstanceNetInfoRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstanceNetInfo") +{} + +DescribeDBInstanceNetInfoRequest::~DescribeDBInstanceNetInfoRequest() +{} + +std::string DescribeDBInstanceNetInfoRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstanceNetInfoRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstanceNetInfoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstanceNetInfoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc b/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc new file mode 100644 index 000000000..4bfbbac37 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstanceNetInfoResult.cc @@ -0,0 +1,75 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult() : + ServiceResult() +{} + +DescribeDBInstanceNetInfoResult::DescribeDBInstanceNetInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstanceNetInfoResult::~DescribeDBInstanceNetInfoResult() +{} + +void DescribeDBInstanceNetInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDBInstanceNetInfos = value["DBInstanceNetInfos"]["DBInstanceNetInfo"]; + for (auto value : allDBInstanceNetInfos) + { + DBInstanceNetInfo dBInstanceNetInfosObject; + if(!value["ConnectionString"].isNull()) + dBInstanceNetInfosObject.connectionString = value["ConnectionString"].asString(); + if(!value["IPAddress"].isNull()) + dBInstanceNetInfosObject.iPAddress = value["IPAddress"].asString(); + if(!value["IPType"].isNull()) + dBInstanceNetInfosObject.iPType = value["IPType"].asString(); + if(!value["Port"].isNull()) + dBInstanceNetInfosObject.port = value["Port"].asString(); + if(!value["VPCId"].isNull()) + dBInstanceNetInfosObject.vPCId = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + dBInstanceNetInfosObject.vSwitchId = value["VSwitchId"].asString(); + dBInstanceNetInfos_.push_back(dBInstanceNetInfosObject); + } + if(!value["InstanceNetworkType"].isNull()) + instanceNetworkType_ = value["InstanceNetworkType"].asString(); + +} + +std::vector DescribeDBInstanceNetInfoResult::getDBInstanceNetInfos()const +{ + return dBInstanceNetInfos_; +} + +std::string DescribeDBInstanceNetInfoResult::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + diff --git a/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc new file mode 100644 index 000000000..dc9acd252 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancePerformanceRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::Gpdb::Model::DescribeDBInstancePerformanceRequest; + +DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstancePerformance") +{} + +DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() +{} + +std::string DescribeDBInstancePerformanceRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeDBInstancePerformanceRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeDBInstancePerformanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeDBInstancePerformanceRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeDBInstancePerformanceRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeDBInstancePerformanceRequest::getKey()const +{ + return key_; +} + +void DescribeDBInstancePerformanceRequest::setKey(const std::string& key) +{ + key_ = key; + setParameter("Key", key); +} + +std::string DescribeDBInstancePerformanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeDBInstancePerformanceResult.cc b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc new file mode 100644 index 000000000..2367a3e4e --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancePerformanceResult.cc @@ -0,0 +1,81 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() +{} + +void DescribeDBInstancePerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeys = value["PerformanceKeys"]["PerformanceKey"]; + for (const auto &item : allPerformanceKeys) + performanceKeys_.push_back(item.asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::vector DescribeDBInstancePerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeDBInstancePerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDBInstancePerformanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeDBInstancePerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDBInstancePerformanceResult::getEngine()const +{ + return engine_; +} + diff --git a/gpdb/src/model/DescribeDBInstancesRequest.cc b/gpdb/src/model/DescribeDBInstancesRequest.cc new file mode 100644 index 000000000..14ac99fe0 --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancesRequest.cc @@ -0,0 +1,132 @@ +/* + * 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::Gpdb::Model::DescribeDBInstancesRequest; + +DescribeDBInstancesRequest::DescribeDBInstancesRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeDBInstances") +{} + +DescribeDBInstancesRequest::~DescribeDBInstancesRequest() +{} + +std::string DescribeDBInstancesRequest::getDBInstanceIds()const +{ + return dBInstanceIds_; +} + +void DescribeDBInstancesRequest::setDBInstanceIds(const std::string& dBInstanceIds) +{ + dBInstanceIds_ = dBInstanceIds; + setParameter("DBInstanceIds", dBInstanceIds); +} + +std::string DescribeDBInstancesRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeDBInstancesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeDBInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeDBInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeDBInstancesRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void DescribeDBInstancesRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::vector DescribeDBInstancesRequest::getTag()const +{ + return tag_; +} + +void DescribeDBInstancesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + +long DescribeDBInstancesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBInstancesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeDBInstancesRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void DescribeDBInstancesRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + +int DescribeDBInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeDBInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeDBInstancesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBInstancesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeDBInstancesResult.cc b/gpdb/src/model/DescribeDBInstancesResult.cc new file mode 100644 index 000000000..5d4e6644b --- /dev/null +++ b/gpdb/src/model/DescribeDBInstancesResult.cc @@ -0,0 +1,121 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeDBInstancesResult::DescribeDBInstancesResult() : + ServiceResult() +{} + +DescribeDBInstancesResult::DescribeDBInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancesResult::~DescribeDBInstancesResult() +{} + +void DescribeDBInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["DBInstance"]; + for (auto value : allItems) + { + DBInstance itemsObject; + if(!value["DBInstanceId"].isNull()) + itemsObject.dBInstanceId = value["DBInstanceId"].asString(); + if(!value["DBInstanceDescription"].isNull()) + itemsObject.dBInstanceDescription = value["DBInstanceDescription"].asString(); + if(!value["PayType"].isNull()) + itemsObject.payType = value["PayType"].asString(); + if(!value["InstanceNetworkType"].isNull()) + itemsObject.instanceNetworkType = value["InstanceNetworkType"].asString(); + if(!value["ConnectionMode"].isNull()) + itemsObject.connectionMode = value["ConnectionMode"].asString(); + if(!value["RegionId"].isNull()) + itemsObject.regionId = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + itemsObject.zoneId = value["ZoneId"].asString(); + if(!value["ExpireTime"].isNull()) + itemsObject.expireTime = value["ExpireTime"].asString(); + if(!value["DBInstanceStatus"].isNull()) + itemsObject.dBInstanceStatus = value["DBInstanceStatus"].asString(); + if(!value["Engine"].isNull()) + itemsObject.engine = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + itemsObject.engineVersion = value["EngineVersion"].asString(); + if(!value["DBInstanceNetType"].isNull()) + itemsObject.dBInstanceNetType = value["DBInstanceNetType"].asString(); + if(!value["LockMode"].isNull()) + itemsObject.lockMode = value["LockMode"].asString(); + if(!value["LockReason"].isNull()) + itemsObject.lockReason = value["LockReason"].asString(); + if(!value["CreateTime"].isNull()) + itemsObject.createTime = value["CreateTime"].asString(); + if(!value["VpcId"].isNull()) + itemsObject.vpcId = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + itemsObject.vSwitchId = value["VSwitchId"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + { + DBInstance::Tag tagsObject; + if(!value["Key"].isNull()) + tagsObject.key = value["Key"].asString(); + if(!value["Value"].isNull()) + tagsObject.value = value["Value"].asString(); + itemsObject.tags.push_back(tagsObject); + } + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeDBInstancesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeDBInstancesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeDBInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeDBInstancesResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeRdsVSwitchsRequest.cc b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc new file mode 100644 index 000000000..28b71d50d --- /dev/null +++ b/gpdb/src/model/DescribeRdsVSwitchsRequest.cc @@ -0,0 +1,126 @@ +/* + * 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::Gpdb::Model::DescribeRdsVSwitchsRequest; + +DescribeRdsVSwitchsRequest::DescribeRdsVSwitchsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeRdsVSwitchs") +{} + +DescribeRdsVSwitchsRequest::~DescribeRdsVSwitchsRequest() +{} + +long DescribeRdsVSwitchsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVSwitchsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRdsVSwitchsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRdsVSwitchsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRdsVSwitchsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRdsVSwitchsRequest::getVpcId()const +{ + return vpcId_; +} + +void DescribeRdsVSwitchsRequest::setVpcId(const std::string& vpcId) +{ + vpcId_ = vpcId; + setParameter("VpcId", vpcId); +} + +std::string DescribeRdsVSwitchsRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeRdsVSwitchsRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +long DescribeRdsVSwitchsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRdsVSwitchsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeRdsVSwitchsResult.cc b/gpdb/src/model/DescribeRdsVSwitchsResult.cc new file mode 100644 index 000000000..0fb88f51f --- /dev/null +++ b/gpdb/src/model/DescribeRdsVSwitchsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult() : + ServiceResult() +{} + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() +{} + +void DescribeRdsVSwitchsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto vSwitchesNode = value["VSwitches"]; + auto allVSwitch = value["VSwitch"]["VSwitchItem"]; + for (auto value : allVSwitch) + { + VSwitches::VSwitchItem vSwitchItemObject; + if(!value["VSwitchId"].isNull()) + vSwitchItemObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchItemObject.vSwitchName = value["VSwitchName"].asString(); + if(!value["IzNo"].isNull()) + vSwitchItemObject.izNo = value["IzNo"].asString(); + if(!value["Bid"].isNull()) + vSwitchItemObject.bid = value["Bid"].asString(); + if(!value["AliUid"].isNull()) + vSwitchItemObject.aliUid = value["AliUid"].asString(); + if(!value["RegionNo"].isNull()) + vSwitchItemObject.regionNo = value["RegionNo"].asString(); + if(!value["CidrBlock"].isNull()) + vSwitchItemObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vSwitchItemObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vSwitchItemObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vSwitchItemObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vSwitchItemObject.gmtModified = value["GmtModified"].asString(); + vSwitches_.vSwitch.push_back(vSwitchItemObject); + } + +} + +DescribeRdsVSwitchsResult::VSwitches DescribeRdsVSwitchsResult::getVSwitches()const +{ + return vSwitches_; +} + diff --git a/gpdb/src/model/DescribeRdsVpcsRequest.cc b/gpdb/src/model/DescribeRdsVpcsRequest.cc new file mode 100644 index 000000000..026ddd010 --- /dev/null +++ b/gpdb/src/model/DescribeRdsVpcsRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::Gpdb::Model::DescribeRdsVpcsRequest; + +DescribeRdsVpcsRequest::DescribeRdsVpcsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeRdsVpcs") +{} + +DescribeRdsVpcsRequest::~DescribeRdsVpcsRequest() +{} + +long DescribeRdsVpcsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVpcsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRdsVpcsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeRdsVpcsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRdsVpcsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeRdsVpcsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeRdsVpcsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRdsVpcsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeRdsVpcsRequest::getZoneId()const +{ + return zoneId_; +} + +void DescribeRdsVpcsRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +long DescribeRdsVpcsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRdsVpcsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRdsVpcsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRdsVpcsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeRdsVpcsResult.cc b/gpdb/src/model/DescribeRdsVpcsResult.cc new file mode 100644 index 000000000..62baf1450 --- /dev/null +++ b/gpdb/src/model/DescribeRdsVpcsResult.cc @@ -0,0 +1,99 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeRdsVpcsResult::DescribeRdsVpcsResult() : + ServiceResult() +{} + +DescribeRdsVpcsResult::DescribeRdsVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVpcsResult::~DescribeRdsVpcsResult() +{} + +void DescribeRdsVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto vpcsNode = value["Vpcs"]; + auto allVpc = value["Vpc"]["VpcItem"]; + for (auto value : allVpc) + { + Vpcs::VpcItem vpcItemObject; + if(!value["VpcId"].isNull()) + vpcItemObject.vpcId = value["VpcId"].asString(); + if(!value["VpcName"].isNull()) + vpcItemObject.vpcName = value["VpcName"].asString(); + if(!value["Bid"].isNull()) + vpcItemObject.bid = value["Bid"].asString(); + if(!value["AliUid"].isNull()) + vpcItemObject.aliUid = value["AliUid"].asString(); + if(!value["RegionNo"].isNull()) + vpcItemObject.regionNo = value["RegionNo"].asString(); + if(!value["CidrBlock"].isNull()) + vpcItemObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vpcItemObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vpcItemObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vpcItemObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vpcItemObject.gmtModified = value["GmtModified"].asString(); + auto allVSwitchs = value["VSwitchs"]["VSwitch"]; + for (auto value : allVSwitchs) + { + Vpcs::VpcItem::VSwitch vSwitchsObject; + if(!value["VSwitchId"].isNull()) + vSwitchsObject.vSwitchId = value["VSwitchId"].asString(); + if(!value["VSwitchName"].isNull()) + vSwitchsObject.vSwitchName = value["VSwitchName"].asString(); + if(!value["IzNo"].isNull()) + vSwitchsObject.izNo = value["IzNo"].asString(); + if(!value["CidrBlock"].isNull()) + vSwitchsObject.cidrBlock = value["CidrBlock"].asString(); + if(!value["IsDefault"].isNull()) + vSwitchsObject.isDefault = value["IsDefault"].asString() == "true"; + if(!value["Status"].isNull()) + vSwitchsObject.status = value["Status"].asString(); + if(!value["GmtCreate"].isNull()) + vSwitchsObject.gmtCreate = value["GmtCreate"].asString(); + if(!value["GmtModified"].isNull()) + vSwitchsObject.gmtModified = value["GmtModified"].asString(); + vpcItemObject.vSwitchs.push_back(vSwitchsObject); + } + vpcs_.vpc.push_back(vpcItemObject); + } + +} + +DescribeRdsVpcsResult::Vpcs DescribeRdsVpcsResult::getVpcs()const +{ + return vpcs_; +} + diff --git a/gpdb/src/model/DescribeRegionsRequest.cc b/gpdb/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..cf52276a5 --- /dev/null +++ b/gpdb/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,38 @@ +/* + * 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::Gpdb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +std::string DescribeRegionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeRegionsResult.cc b/gpdb/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..c828f8777 --- /dev/null +++ b/gpdb/src/model/DescribeRegionsResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionsObject; + if(!value["RegionId"].isNull()) + regionsObject.regionId = value["RegionId"].asString(); + auto allZones = value["Zones"]["Zone"]; + for (auto value : allZones) + { + Region::Zone zonesObject; + if(!value["ZoneId"].isNull()) + zonesObject.zoneId = value["ZoneId"].asString(); + if(!value["VpcEnabled"].isNull()) + zonesObject.vpcEnabled = value["VpcEnabled"].asString() == "true"; + regionsObject.zones.push_back(zonesObject); + } + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/gpdb/src/model/DescribeResourceUsageRequest.cc b/gpdb/src/model/DescribeResourceUsageRequest.cc new file mode 100644 index 000000000..e59937438 --- /dev/null +++ b/gpdb/src/model/DescribeResourceUsageRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeResourceUsageRequest; + +DescribeResourceUsageRequest::DescribeResourceUsageRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeResourceUsage") +{} + +DescribeResourceUsageRequest::~DescribeResourceUsageRequest() +{} + +std::string DescribeResourceUsageRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeResourceUsageRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeResourceUsageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeResourceUsageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeResourceUsageResult.cc b/gpdb/src/model/DescribeResourceUsageResult.cc new file mode 100644 index 000000000..147396a22 --- /dev/null +++ b/gpdb/src/model/DescribeResourceUsageResult.cc @@ -0,0 +1,87 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeResourceUsageResult::DescribeResourceUsageResult() : + ServiceResult() +{} + +DescribeResourceUsageResult::DescribeResourceUsageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourceUsageResult::~DescribeResourceUsageResult() +{} + +void DescribeResourceUsageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["DiskUsed"].isNull()) + diskUsed_ = std::stol(value["DiskUsed"].asString()); + if(!value["DataSize"].isNull()) + dataSize_ = std::stol(value["DataSize"].asString()); + if(!value["LogSize"].isNull()) + logSize_ = std::stol(value["LogSize"].asString()); + if(!value["BackupSize"].isNull()) + backupSize_ = std::stol(value["BackupSize"].asString()); + +} + +long DescribeResourceUsageResult::getLogSize()const +{ + return logSize_; +} + +std::string DescribeResourceUsageResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +long DescribeResourceUsageResult::getDataSize()const +{ + return dataSize_; +} + +long DescribeResourceUsageResult::getBackupSize()const +{ + return backupSize_; +} + +long DescribeResourceUsageResult::getDiskUsed()const +{ + return diskUsed_; +} + +std::string DescribeResourceUsageResult::getEngine()const +{ + return engine_; +} + diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc b/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc new file mode 100644 index 000000000..e166ef554 --- /dev/null +++ b/gpdb/src/model/DescribeSQLCollectorPolicyRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Gpdb::Model::DescribeSQLCollectorPolicyRequest; + +DescribeSQLCollectorPolicyRequest::DescribeSQLCollectorPolicyRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLCollectorPolicy") +{} + +DescribeSQLCollectorPolicyRequest::~DescribeSQLCollectorPolicyRequest() +{} + +std::string DescribeSQLCollectorPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLCollectorPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc b/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc new file mode 100644 index 000000000..97766ef6b --- /dev/null +++ b/gpdb/src/model/DescribeSQLCollectorPolicyResult.cc @@ -0,0 +1,52 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult() : + ServiceResult() +{} + +DescribeSQLCollectorPolicyResult::DescribeSQLCollectorPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLCollectorPolicyResult::~DescribeSQLCollectorPolicyResult() +{} + +void DescribeSQLCollectorPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["SQLCollectorStatus"].isNull()) + sQLCollectorStatus_ = value["SQLCollectorStatus"].asString(); + +} + +std::string DescribeSQLCollectorPolicyResult::getSQLCollectorStatus()const +{ + return sQLCollectorStatus_; +} + diff --git a/gpdb/src/model/DescribeSQLLogFilesRequest.cc b/gpdb/src/model/DescribeSQLLogFilesRequest.cc new file mode 100644 index 000000000..30dc4ca48 --- /dev/null +++ b/gpdb/src/model/DescribeSQLLogFilesRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::Gpdb::Model::DescribeSQLLogFilesRequest; + +DescribeSQLLogFilesRequest::DescribeSQLLogFilesRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogFiles") +{} + +DescribeSQLLogFilesRequest::~DescribeSQLLogFilesRequest() +{} + +std::string DescribeSQLLogFilesRequest::getFileName()const +{ + return fileName_; +} + +void DescribeSQLLogFilesRequest::setFileName(const std::string& fileName) +{ + fileName_ = fileName; + setParameter("FileName", fileName); +} + +int DescribeSQLLogFilesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogFilesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogFilesRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogFilesRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +int DescribeSQLLogFilesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogFilesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogFilesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogFilesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeSQLLogFilesResult.cc b/gpdb/src/model/DescribeSQLLogFilesResult.cc new file mode 100644 index 000000000..70298a398 --- /dev/null +++ b/gpdb/src/model/DescribeSQLLogFilesResult.cc @@ -0,0 +1,89 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult() : + ServiceResult() +{} + +DescribeSQLLogFilesResult::DescribeSQLLogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLLogFilesResult::~DescribeSQLLogFilesResult() +{} + +void DescribeSQLLogFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["LogFile"]; + for (auto value : allItems) + { + LogFile itemsObject; + if(!value["FileID"].isNull()) + itemsObject.fileID = value["FileID"].asString(); + if(!value["LogStatus"].isNull()) + itemsObject.logStatus = value["LogStatus"].asString(); + if(!value["LogDownloadURL"].isNull()) + itemsObject.logDownloadURL = value["LogDownloadURL"].asString(); + if(!value["LogSize"].isNull()) + itemsObject.logSize = value["LogSize"].asString(); + if(!value["LogStartTime"].isNull()) + itemsObject.logStartTime = value["LogStartTime"].asString(); + if(!value["LogEndTime"].isNull()) + itemsObject.logEndTime = value["LogEndTime"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLLogFilesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeSQLLogFilesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeSQLLogFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSQLLogFilesResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeSQLLogRecordsRequest.cc b/gpdb/src/model/DescribeSQLLogRecordsRequest.cc new file mode 100644 index 000000000..ed6a433c8 --- /dev/null +++ b/gpdb/src/model/DescribeSQLLogRecordsRequest.cc @@ -0,0 +1,137 @@ +/* + * 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::Gpdb::Model::DescribeSQLLogRecordsRequest; + +DescribeSQLLogRecordsRequest::DescribeSQLLogRecordsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeSQLLogRecords") +{} + +DescribeSQLLogRecordsRequest::~DescribeSQLLogRecordsRequest() +{} + +std::string DescribeSQLLogRecordsRequest::getDatabase()const +{ + return database_; +} + +void DescribeSQLLogRecordsRequest::setDatabase(const std::string& database) +{ + database_ = database; + setParameter("Database", database); +} + +std::string DescribeSQLLogRecordsRequest::getForm()const +{ + return form_; +} + +void DescribeSQLLogRecordsRequest::setForm(const std::string& form) +{ + form_ = form; + setParameter("Form", form); +} + +int DescribeSQLLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSQLLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSQLLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSQLLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSQLLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSQLLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSQLLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSQLLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string DescribeSQLLogRecordsRequest::getUser()const +{ + return user_; +} + +void DescribeSQLLogRecordsRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + +std::string DescribeSQLLogRecordsRequest::getQueryKeywords()const +{ + return queryKeywords_; +} + +void DescribeSQLLogRecordsRequest::setQueryKeywords(const std::string& queryKeywords) +{ + queryKeywords_ = queryKeywords; + setParameter("QueryKeywords", queryKeywords); +} + +int DescribeSQLLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSQLLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSQLLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSQLLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeSQLLogRecordsResult.cc b/gpdb/src/model/DescribeSQLLogRecordsResult.cc new file mode 100644 index 000000000..c74c278e7 --- /dev/null +++ b/gpdb/src/model/DescribeSQLLogRecordsResult.cc @@ -0,0 +1,93 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::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 allItems = value["Items"]["SQLRecord"]; + for (auto value : allItems) + { + SQLRecord itemsObject; + if(!value["DBName"].isNull()) + itemsObject.dBName = value["DBName"].asString(); + if(!value["AccountName"].isNull()) + itemsObject.accountName = value["AccountName"].asString(); + if(!value["HostAddress"].isNull()) + itemsObject.hostAddress = value["HostAddress"].asString(); + if(!value["SQLText"].isNull()) + itemsObject.sQLText = value["SQLText"].asString(); + if(!value["TotalExecutionTimes"].isNull()) + itemsObject.totalExecutionTimes = std::stol(value["TotalExecutionTimes"].asString()); + if(!value["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + if(!value["ExecuteTime"].isNull()) + itemsObject.executeTime = value["ExecuteTime"].asString(); + if(!value["ThreadID"].isNull()) + itemsObject.threadID = value["ThreadID"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSQLLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeSQLLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeSQLLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSQLLogRecordsResult::getItems()const +{ + return items_; +} + diff --git a/gpdb/src/model/DescribeSlowLogRecordsRequest.cc b/gpdb/src/model/DescribeSlowLogRecordsRequest.cc new file mode 100644 index 000000000..d9afa6b1c --- /dev/null +++ b/gpdb/src/model/DescribeSlowLogRecordsRequest.cc @@ -0,0 +1,115 @@ +/* + * 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::Gpdb::Model::DescribeSlowLogRecordsRequest; + +DescribeSlowLogRecordsRequest::DescribeSlowLogRecordsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "DescribeSlowLogRecords") +{} + +DescribeSlowLogRecordsRequest::~DescribeSlowLogRecordsRequest() +{} + +long DescribeSlowLogRecordsRequest::getSQLId()const +{ + return sQLId_; +} + +void DescribeSlowLogRecordsRequest::setSQLId(long sQLId) +{ + sQLId_ = sQLId; + setParameter("SQLId", std::to_string(sQLId)); +} + +std::string DescribeSlowLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeSlowLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +int DescribeSlowLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSlowLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSlowLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string DescribeSlowLogRecordsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void DescribeSlowLogRecordsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string DescribeSlowLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSlowLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int DescribeSlowLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSlowLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeSlowLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeSlowLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/DescribeSlowLogRecordsResult.cc b/gpdb/src/model/DescribeSlowLogRecordsResult.cc new file mode 100644 index 000000000..1976e610e --- /dev/null +++ b/gpdb/src/model/DescribeSlowLogRecordsResult.cc @@ -0,0 +1,100 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult() : + ServiceResult() +{} + +DescribeSlowLogRecordsResult::DescribeSlowLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSlowLogRecordsResult::~DescribeSlowLogRecordsResult() +{} + +void DescribeSlowLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allItems = value["Items"]["SQLSlowRecord"]; + for (auto value : allItems) + { + SQLSlowRecord itemsObject; + if(!value["HostAddress"].isNull()) + itemsObject.hostAddress = value["HostAddress"].asString(); + if(!value["DBName"].isNull()) + itemsObject.dBName = value["DBName"].asString(); + if(!value["SQLText"].isNull()) + itemsObject.sQLText = value["SQLText"].asString(); + if(!value["QueryTimes"].isNull()) + itemsObject.queryTimes = std::stol(value["QueryTimes"].asString()); + if(!value["LockTimes"].isNull()) + itemsObject.lockTimes = std::stol(value["LockTimes"].asString()); + if(!value["ParseRowCounts"].isNull()) + itemsObject.parseRowCounts = std::stol(value["ParseRowCounts"].asString()); + if(!value["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(value["ReturnRowCounts"].asString()); + if(!value["ExecutionStartTime"].isNull()) + itemsObject.executionStartTime = value["ExecutionStartTime"].asString(); + items_.push_back(itemsObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + +} + +int DescribeSlowLogRecordsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeSlowLogRecordsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeSlowLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeSlowLogRecordsResult::getItems()const +{ + return items_; +} + +std::string DescribeSlowLogRecordsResult::getEngine()const +{ + return engine_; +} + diff --git a/gpdb/src/model/ListTagResourcesRequest.cc b/gpdb/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..665a05f0d --- /dev/null +++ b/gpdb/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,144 @@ +/* + * 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::Gpdb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ListTagResources") +{} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +long ListTagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string ListTagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::string ListTagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + +long ListTagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void ListTagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ListTagResourcesResult.cc b/gpdb/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..6324ac377 --- /dev/null +++ b/gpdb/src/model/ListTagResourcesResult.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTagResources = value["TagResources"]["TagResource"]; + for (auto value : allTagResources) + { + TagResource tagResourcesObject; + if(!value["TagKey"].isNull()) + tagResourcesObject.tagKey = value["TagKey"].asString(); + if(!value["TagValue"].isNull()) + tagResourcesObject.tagValue = value["TagValue"].asString(); + if(!value["ResourceType"].isNull()) + tagResourcesObject.resourceType = value["ResourceType"].asString(); + if(!value["ResourceId"].isNull()) + tagResourcesObject.resourceId = value["ResourceId"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/gpdb/src/model/ModifyAccountDescriptionRequest.cc b/gpdb/src/model/ModifyAccountDescriptionRequest.cc new file mode 100644 index 000000000..29c1aa789 --- /dev/null +++ b/gpdb/src/model/ModifyAccountDescriptionRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::ModifyAccountDescriptionRequest; + +ModifyAccountDescriptionRequest::ModifyAccountDescriptionRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyAccountDescription") +{} + +ModifyAccountDescriptionRequest::~ModifyAccountDescriptionRequest() +{} + +std::string ModifyAccountDescriptionRequest::getAccountName()const +{ + return accountName_; +} + +void ModifyAccountDescriptionRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ModifyAccountDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyAccountDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyAccountDescriptionRequest::getAccountDescription()const +{ + return accountDescription_; +} + +void ModifyAccountDescriptionRequest::setAccountDescription(const std::string& accountDescription) +{ + accountDescription_ = accountDescription; + setParameter("AccountDescription", accountDescription); +} + +std::string ModifyAccountDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAccountDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyAccountDescriptionResult.cc b/gpdb/src/model/ModifyAccountDescriptionResult.cc new file mode 100644 index 000000000..25e739eba --- /dev/null +++ b/gpdb/src/model/ModifyAccountDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult() : + ServiceResult() +{} + +ModifyAccountDescriptionResult::ModifyAccountDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionResult::~ModifyAccountDescriptionResult() +{} + +void ModifyAccountDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc b/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc new file mode 100644 index 000000000..b67e8e3da --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConnectionModeRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::ModifyDBInstanceConnectionModeRequest; + +ModifyDBInstanceConnectionModeRequest::ModifyDBInstanceConnectionModeRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConnectionMode") +{} + +ModifyDBInstanceConnectionModeRequest::~ModifyDBInstanceConnectionModeRequest() +{} + +std::string ModifyDBInstanceConnectionModeRequest::getConnectionMode()const +{ + return connectionMode_; +} + +void ModifyDBInstanceConnectionModeRequest::setConnectionMode(const std::string& connectionMode) +{ + connectionMode_ = connectionMode; + setParameter("ConnectionMode", connectionMode); +} + +std::string ModifyDBInstanceConnectionModeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceConnectionModeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceConnectionModeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceConnectionModeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc b/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc new file mode 100644 index 000000000..734d11aa8 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConnectionModeResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionModeResult::ModifyDBInstanceConnectionModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionModeResult::~ModifyDBInstanceConnectionModeResult() +{} + +void ModifyDBInstanceConnectionModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc b/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc new file mode 100644 index 000000000..b3a9c3cc2 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConnectionStringRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::Gpdb::Model::ModifyDBInstanceConnectionStringRequest; + +ModifyDBInstanceConnectionStringRequest::ModifyDBInstanceConnectionStringRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceConnectionString") +{} + +ModifyDBInstanceConnectionStringRequest::~ModifyDBInstanceConnectionStringRequest() +{} + +std::string ModifyDBInstanceConnectionStringRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void ModifyDBInstanceConnectionStringRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string ModifyDBInstanceConnectionStringRequest::getPort()const +{ + return port_; +} + +void ModifyDBInstanceConnectionStringRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string ModifyDBInstanceConnectionStringRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceConnectionStringRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceConnectionStringRequest::getCurrentConnectionString()const +{ + return currentConnectionString_; +} + +void ModifyDBInstanceConnectionStringRequest::setCurrentConnectionString(const std::string& currentConnectionString) +{ + currentConnectionString_ = currentConnectionString; + setParameter("CurrentConnectionString", currentConnectionString); +} + +std::string ModifyDBInstanceConnectionStringRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceConnectionStringRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc b/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc new file mode 100644 index 000000000..033af65f3 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceConnectionStringResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult() : + ServiceResult() +{} + +ModifyDBInstanceConnectionStringResult::ModifyDBInstanceConnectionStringResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceConnectionStringResult::~ModifyDBInstanceConnectionStringResult() +{} + +void ModifyDBInstanceConnectionStringResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc new file mode 100644 index 000000000..6c9db6406 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceDescriptionRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::ModifyDBInstanceDescriptionRequest; + +ModifyDBInstanceDescriptionRequest::ModifyDBInstanceDescriptionRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceDescription") +{} + +ModifyDBInstanceDescriptionRequest::~ModifyDBInstanceDescriptionRequest() +{} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceDescriptionRequest::getDBInstanceDescription()const +{ + return dBInstanceDescription_; +} + +void ModifyDBInstanceDescriptionRequest::setDBInstanceDescription(const std::string& dBInstanceDescription) +{ + dBInstanceDescription_ = dBInstanceDescription; + setParameter("DBInstanceDescription", dBInstanceDescription); +} + +std::string ModifyDBInstanceDescriptionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceDescriptionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc b/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc new file mode 100644 index 000000000..fb32a8a9f --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceDescriptionResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult() : + ServiceResult() +{} + +ModifyDBInstanceDescriptionResult::ModifyDBInstanceDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceDescriptionResult::~ModifyDBInstanceDescriptionResult() +{} + +void ModifyDBInstanceDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc new file mode 100644 index 000000000..2a59ad071 --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceMaintainTimeRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::ModifyDBInstanceMaintainTimeRequest; + +ModifyDBInstanceMaintainTimeRequest::ModifyDBInstanceMaintainTimeRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceMaintainTime") +{} + +ModifyDBInstanceMaintainTimeRequest::~ModifyDBInstanceMaintainTimeRequest() +{} + +std::string ModifyDBInstanceMaintainTimeRequest::getEndTime()const +{ + return endTime_; +} + +void ModifyDBInstanceMaintainTimeRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getStartTime()const +{ + return startTime_; +} + +void ModifyDBInstanceMaintainTimeRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string ModifyDBInstanceMaintainTimeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceMaintainTimeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc b/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc new file mode 100644 index 000000000..3fe95c3ba --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceMaintainTimeResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult() : + ServiceResult() +{} + +ModifyDBInstanceMaintainTimeResult::ModifyDBInstanceMaintainTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceMaintainTimeResult::~ModifyDBInstanceMaintainTimeResult() +{} + +void ModifyDBInstanceMaintainTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc b/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc new file mode 100644 index 000000000..89de8877d --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceNetworkTypeRequest.cc @@ -0,0 +1,93 @@ +/* + * 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::Gpdb::Model::ModifyDBInstanceNetworkTypeRequest; + +ModifyDBInstanceNetworkTypeRequest::ModifyDBInstanceNetworkTypeRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifyDBInstanceNetworkType") +{} + +ModifyDBInstanceNetworkTypeRequest::~ModifyDBInstanceNetworkTypeRequest() +{} + +std::string ModifyDBInstanceNetworkTypeRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getPrivateIpAddress()const +{ + return privateIpAddress_; +} + +void ModifyDBInstanceNetworkTypeRequest::setPrivateIpAddress(const std::string& privateIpAddress) +{ + privateIpAddress_ = privateIpAddress; + setParameter("PrivateIpAddress", privateIpAddress); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getVPCId()const +{ + return vPCId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getInstanceNetworkType()const +{ + return instanceNetworkType_; +} + +void ModifyDBInstanceNetworkTypeRequest::setInstanceNetworkType(const std::string& instanceNetworkType) +{ + instanceNetworkType_ = instanceNetworkType; + setParameter("InstanceNetworkType", instanceNetworkType); +} + +std::string ModifyDBInstanceNetworkTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBInstanceNetworkTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc b/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc new file mode 100644 index 000000000..82d4729aa --- /dev/null +++ b/gpdb/src/model/ModifyDBInstanceNetworkTypeResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult() : + ServiceResult() +{} + +ModifyDBInstanceNetworkTypeResult::ModifyDBInstanceNetworkTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBInstanceNetworkTypeResult::~ModifyDBInstanceNetworkTypeResult() +{} + +void ModifyDBInstanceNetworkTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc b/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc new file mode 100644 index 000000000..49b731c82 --- /dev/null +++ b/gpdb/src/model/ModifySQLCollectorPolicyRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::ModifySQLCollectorPolicyRequest; + +ModifySQLCollectorPolicyRequest::ModifySQLCollectorPolicyRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifySQLCollectorPolicy") +{} + +ModifySQLCollectorPolicyRequest::~ModifySQLCollectorPolicyRequest() +{} + +std::string ModifySQLCollectorPolicyRequest::getSQLCollectorStatus()const +{ + return sQLCollectorStatus_; +} + +void ModifySQLCollectorPolicyRequest::setSQLCollectorStatus(const std::string& sQLCollectorStatus) +{ + sQLCollectorStatus_ = sQLCollectorStatus; + setParameter("SQLCollectorStatus", sQLCollectorStatus); +} + +std::string ModifySQLCollectorPolicyRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifySQLCollectorPolicyRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifySQLCollectorPolicyRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySQLCollectorPolicyRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifySQLCollectorPolicyResult.cc b/gpdb/src/model/ModifySQLCollectorPolicyResult.cc new file mode 100644 index 000000000..b572f36ad --- /dev/null +++ b/gpdb/src/model/ModifySQLCollectorPolicyResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult() : + ServiceResult() +{} + +ModifySQLCollectorPolicyResult::ModifySQLCollectorPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySQLCollectorPolicyResult::~ModifySQLCollectorPolicyResult() +{} + +void ModifySQLCollectorPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ModifySecurityIpsRequest.cc b/gpdb/src/model/ModifySecurityIpsRequest.cc new file mode 100644 index 000000000..0cc931bdb --- /dev/null +++ b/gpdb/src/model/ModifySecurityIpsRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::Gpdb::Model::ModifySecurityIpsRequest; + +ModifySecurityIpsRequest::ModifySecurityIpsRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ModifySecurityIps") +{} + +ModifySecurityIpsRequest::~ModifySecurityIpsRequest() +{} + +std::string ModifySecurityIpsRequest::getSecurityIPList()const +{ + return securityIPList_; +} + +void ModifySecurityIpsRequest::setSecurityIPList(const std::string& securityIPList) +{ + securityIPList_ = securityIPList; + setParameter("SecurityIPList", securityIPList); +} + +std::string ModifySecurityIpsRequest::getDBInstanceIPArrayName()const +{ + return dBInstanceIPArrayName_; +} + +void ModifySecurityIpsRequest::setDBInstanceIPArrayName(const std::string& dBInstanceIPArrayName) +{ + dBInstanceIPArrayName_ = dBInstanceIPArrayName; + setParameter("DBInstanceIPArrayName", dBInstanceIPArrayName); +} + +std::string ModifySecurityIpsRequest::getDBInstanceIPArrayAttribute()const +{ + return dBInstanceIPArrayAttribute_; +} + +void ModifySecurityIpsRequest::setDBInstanceIPArrayAttribute(const std::string& dBInstanceIPArrayAttribute) +{ + dBInstanceIPArrayAttribute_ = dBInstanceIPArrayAttribute; + setParameter("DBInstanceIPArrayAttribute", dBInstanceIPArrayAttribute); +} + +std::string ModifySecurityIpsRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ModifySecurityIpsRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ModifySecurityIpsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifySecurityIpsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ModifySecurityIpsResult.cc b/gpdb/src/model/ModifySecurityIpsResult.cc new file mode 100644 index 000000000..a2685e20d --- /dev/null +++ b/gpdb/src/model/ModifySecurityIpsResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ModifySecurityIpsResult::ModifySecurityIpsResult() : + ServiceResult() +{} + +ModifySecurityIpsResult::ModifySecurityIpsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySecurityIpsResult::~ModifySecurityIpsResult() +{} + +void ModifySecurityIpsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc b/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc new file mode 100644 index 000000000..068073a15 --- /dev/null +++ b/gpdb/src/model/ReleaseInstancePublicConnectionRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::ReleaseInstancePublicConnectionRequest; + +ReleaseInstancePublicConnectionRequest::ReleaseInstancePublicConnectionRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ReleaseInstancePublicConnection") +{} + +ReleaseInstancePublicConnectionRequest::~ReleaseInstancePublicConnectionRequest() +{} + +std::string ReleaseInstancePublicConnectionRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ReleaseInstancePublicConnectionRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ReleaseInstancePublicConnectionRequest::getCurrentConnectionString()const +{ + return currentConnectionString_; +} + +void ReleaseInstancePublicConnectionRequest::setCurrentConnectionString(const std::string& currentConnectionString) +{ + currentConnectionString_ = currentConnectionString; + setParameter("CurrentConnectionString", currentConnectionString); +} + +std::string ReleaseInstancePublicConnectionRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ReleaseInstancePublicConnectionRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc b/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc new file mode 100644 index 000000000..12d2815b7 --- /dev/null +++ b/gpdb/src/model/ReleaseInstancePublicConnectionResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult() : + ServiceResult() +{} + +ReleaseInstancePublicConnectionResult::ReleaseInstancePublicConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReleaseInstancePublicConnectionResult::~ReleaseInstancePublicConnectionResult() +{} + +void ReleaseInstancePublicConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/ResetAccountPasswordRequest.cc b/gpdb/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..55f1b5c4e --- /dev/null +++ b/gpdb/src/model/ResetAccountPasswordRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "ResetAccountPassword") +{} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() +{} + +std::string ResetAccountPasswordRequest::getAccountPassword()const +{ + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string& accountPassword) +{ + accountPassword_ = accountPassword; + setParameter("AccountPassword", accountPassword); +} + +std::string ResetAccountPasswordRequest::getAccountName()const +{ + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string& accountName) +{ + accountName_ = accountName; + setParameter("AccountName", accountName); +} + +std::string ResetAccountPasswordRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void ResetAccountPasswordRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string ResetAccountPasswordRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ResetAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/ResetAccountPasswordResult.cc b/gpdb/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..c45f58fdb --- /dev/null +++ b/gpdb/src/model/ResetAccountPasswordResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/RestartDBInstanceRequest.cc b/gpdb/src/model/RestartDBInstanceRequest.cc new file mode 100644 index 000000000..8264679fe --- /dev/null +++ b/gpdb/src/model/RestartDBInstanceRequest.cc @@ -0,0 +1,60 @@ +/* + * 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::Gpdb::Model::RestartDBInstanceRequest; + +RestartDBInstanceRequest::RestartDBInstanceRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "RestartDBInstance") +{} + +RestartDBInstanceRequest::~RestartDBInstanceRequest() +{} + +std::string RestartDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void RestartDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string RestartDBInstanceRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void RestartDBInstanceRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string RestartDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestartDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/RestartDBInstanceResult.cc b/gpdb/src/model/RestartDBInstanceResult.cc new file mode 100644 index 000000000..efc634b05 --- /dev/null +++ b/gpdb/src/model/RestartDBInstanceResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +RestartDBInstanceResult::RestartDBInstanceResult() : + ServiceResult() +{} + +RestartDBInstanceResult::RestartDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBInstanceResult::~RestartDBInstanceResult() +{} + +void RestartDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc b/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc new file mode 100644 index 000000000..0e71f705d --- /dev/null +++ b/gpdb/src/model/SwitchDBInstanceNetTypeRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::Gpdb::Model::SwitchDBInstanceNetTypeRequest; + +SwitchDBInstanceNetTypeRequest::SwitchDBInstanceNetTypeRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "SwitchDBInstanceNetType") +{} + +SwitchDBInstanceNetTypeRequest::~SwitchDBInstanceNetTypeRequest() +{} + +std::string SwitchDBInstanceNetTypeRequest::getConnectionStringPrefix()const +{ + return connectionStringPrefix_; +} + +void SwitchDBInstanceNetTypeRequest::setConnectionStringPrefix(const std::string& connectionStringPrefix) +{ + connectionStringPrefix_ = connectionStringPrefix; + setParameter("ConnectionStringPrefix", connectionStringPrefix); +} + +std::string SwitchDBInstanceNetTypeRequest::getPort()const +{ + return port_; +} + +void SwitchDBInstanceNetTypeRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + +std::string SwitchDBInstanceNetTypeRequest::getDBInstanceId()const +{ + return dBInstanceId_; +} + +void SwitchDBInstanceNetTypeRequest::setDBInstanceId(const std::string& dBInstanceId) +{ + dBInstanceId_ = dBInstanceId; + setParameter("DBInstanceId", dBInstanceId); +} + +std::string SwitchDBInstanceNetTypeRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchDBInstanceNetTypeRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc b/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc new file mode 100644 index 000000000..4137cbc76 --- /dev/null +++ b/gpdb/src/model/SwitchDBInstanceNetTypeResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult() : + ServiceResult() +{} + +SwitchDBInstanceNetTypeResult::SwitchDBInstanceNetTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchDBInstanceNetTypeResult::~SwitchDBInstanceNetTypeResult() +{} + +void SwitchDBInstanceNetTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/TagResourcesRequest.cc b/gpdb/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..6d936c7b2 --- /dev/null +++ b/gpdb/src/model/TagResourcesRequest.cc @@ -0,0 +1,133 @@ +/* + * 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::Gpdb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "TagResources") +{} + +TagResourcesRequest::~TagResourcesRequest() +{} + +long TagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string TagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string TagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + int i = 0; + for(int i = 0; i!= tag.size(); i++) { + auto obj = tag.at(i); + std::string str ="Tag."+ std::to_string(i); + setParameter(str + ".Value", obj.value); + setParameter(str + ".Key", obj.key); + } +} + +long TagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void TagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void TagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/TagResourcesResult.cc b/gpdb/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..669205c07 --- /dev/null +++ b/gpdb/src/model/TagResourcesResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} + diff --git a/gpdb/src/model/UntagResourcesRequest.cc b/gpdb/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..42bf7e0c4 --- /dev/null +++ b/gpdb/src/model/UntagResourcesRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::Gpdb::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("gpdb", "2016-05-03", "UntagResources") +{} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", std::to_string(all)); +} + +long UntagResourcesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int i = 0; i!= resourceId.size(); i++) + setParameter("ResourceId."+ std::to_string(i), resourceId.at(i)); +} + +std::string UntagResourcesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UntagResourcesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UntagResourcesRequest::getOwnerId()const +{ + return ownerId_; +} + +void UntagResourcesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int i = 0; i!= tagKey.size(); i++) + setParameter("TagKey."+ std::to_string(i), tagKey.at(i)); +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UntagResourcesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/gpdb/src/model/UntagResourcesResult.cc b/gpdb/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..0d6112596 --- /dev/null +++ b/gpdb/src/model/UntagResourcesResult.cc @@ -0,0 +1,45 @@ +/* + * 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::Gpdb; +using namespace AlibabaCloud::Gpdb::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + +} +