From d74432d35069cbf02351a38c2d5c3287f1073fd9 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 23 May 2024 03:04:29 +0000 Subject: [PATCH] Generated 2019-09-01 for OceanBasePro. --- VERSION | 2 +- oceanbasepro/CMakeLists.txt | 44 ++- .../oceanbasepro/OceanBaseProClient.h | 80 ++++ .../model/BatchKillProcessListRequest.h | 48 +++ .../model/BatchKillProcessListResult.h | 55 +++ .../model/CreateInstanceRequest.h | 3 + .../oceanbasepro/model/CreateProjectRequest.h | 26 +- .../oceanbasepro/model/CreateTagRequest.h | 45 +++ .../oceanbasepro/model/CreateTagResult.h | 51 +++ .../model/CreateTagValueRequest.h | 48 +++ .../oceanbasepro/model/CreateTagValueResult.h | 51 +++ .../oceanbasepro/model/CreateTenantRequest.h | 6 + .../oceanbasepro/model/DeleteTagRequest.h | 42 ++ .../oceanbasepro/model/DeleteTagResult.h | 51 +++ .../model/DeleteTagValueRequest.h | 45 +++ .../oceanbasepro/model/DeleteTagValueResult.h | 51 +++ .../model/DescribeAvailableZoneRequest.h | 9 +- .../model/DescribeAvailableZoneResult.h | 1 + .../model/DescribeInstanceResult.h | 2 + .../model/DescribeInstanceTopologyResult.h | 2 +- .../model/DescribeInstancesResult.h | 28 +- .../model/DescribeMetricsDataResult.h | 4 +- .../model/DescribeOasSQLPlansRequest.h | 6 + .../model/DescribeOasSlowSQLListResult.h | 14 +- .../model/DescribeOasTopSQLListResult.h | 4 +- .../DescribeProcessStatsCompositionRequest.h | 63 +++ .../DescribeProcessStatsCompositionResult.h | 105 +++++ .../model/DescribeSQLSamplesRequest.h | 3 + .../model/DescribeSQLSamplesResult.h | 1 + .../model/DescribeTagValuesRequest.h | 42 ++ .../model/DescribeTagValuesResult.h | 51 +++ .../oceanbasepro/model/DescribeTenantResult.h | 2 + .../oceanbasepro/model/DescribeZonesRequest.h | 3 + .../oceanbasepro/model/ModifyTagNameRequest.h | 45 +++ .../oceanbasepro/model/ModifyTagNameResult.h | 51 +++ .../model/ModifyTagValueNameRequest.h | 48 +++ .../model/ModifyTagValueNameResult.h | 51 +++ .../model/ModifyTenantPrimaryZoneRequest.h | 3 + .../model/UpdateProjectConfigRequest.h | 75 ++++ .../model/UpdateProjectConfigResult.h | 49 +++ oceanbasepro/src/OceanBaseProClient.cc | 360 ++++++++++++++++++ .../src/model/BatchKillProcessListRequest.cc | 54 +++ .../src/model/BatchKillProcessListResult.cc | 57 +++ .../src/model/CreateInstanceRequest.cc | 9 + .../src/model/CreateProjectRequest.cc | 30 ++ oceanbasepro/src/model/CreateTagRequest.cc | 45 +++ oceanbasepro/src/model/CreateTagResult.cc | 51 +++ .../src/model/CreateTagValueRequest.cc | 54 +++ .../src/model/CreateTagValueResult.cc | 51 +++ oceanbasepro/src/model/CreateTenantRequest.cc | 20 + oceanbasepro/src/model/DeleteTagRequest.cc | 36 ++ oceanbasepro/src/model/DeleteTagResult.cc | 51 +++ .../src/model/DeleteTagValueRequest.cc | 45 +++ .../src/model/DeleteTagValueResult.cc | 51 +++ .../src/model/DescribeAvailableZoneRequest.cc | 19 +- .../src/model/DescribeAvailableZoneResult.cc | 2 + .../src/model/DescribeInstanceResult.cc | 4 + .../model/DescribeInstanceTopologyResult.cc | 2 +- .../src/model/DescribeInstancesResult.cc | 28 +- .../src/model/DescribeMetricsDataResult.cc | 7 +- .../src/model/DescribeOasSQLPlansRequest.cc | 18 + .../src/model/DescribeOasSlowSQLListResult.cc | 14 +- .../src/model/DescribeOasTopSQLListResult.cc | 4 +- .../DescribeProcessStatsCompositionRequest.cc | 99 +++++ .../DescribeProcessStatsCompositionResult.cc | 142 +++++++ .../src/model/DescribeSQLSamplesRequest.cc | 9 + .../src/model/DescribeSQLSamplesResult.cc | 2 + .../src/model/DescribeTagValuesRequest.cc | 36 ++ .../src/model/DescribeTagValuesResult.cc | 51 +++ .../src/model/DescribeTenantResult.cc | 4 + .../src/model/DescribeZonesRequest.cc | 9 + .../src/model/ModifyTagNameRequest.cc | 45 +++ oceanbasepro/src/model/ModifyTagNameResult.cc | 51 +++ .../src/model/ModifyTagValueNameRequest.cc | 54 +++ .../src/model/ModifyTagValueNameResult.cc | 51 +++ .../model/ModifyTenantPrimaryZoneRequest.cc | 9 + .../src/model/UpdateProjectConfigRequest.cc | 82 ++++ .../src/model/UpdateProjectConfigResult.cc | 44 +++ 78 files changed, 2945 insertions(+), 65 deletions(-) create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.h create mode 100644 oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.h create mode 100644 oceanbasepro/src/model/BatchKillProcessListRequest.cc create mode 100644 oceanbasepro/src/model/BatchKillProcessListResult.cc create mode 100644 oceanbasepro/src/model/CreateTagRequest.cc create mode 100644 oceanbasepro/src/model/CreateTagResult.cc create mode 100644 oceanbasepro/src/model/CreateTagValueRequest.cc create mode 100644 oceanbasepro/src/model/CreateTagValueResult.cc create mode 100644 oceanbasepro/src/model/DeleteTagRequest.cc create mode 100644 oceanbasepro/src/model/DeleteTagResult.cc create mode 100644 oceanbasepro/src/model/DeleteTagValueRequest.cc create mode 100644 oceanbasepro/src/model/DeleteTagValueResult.cc create mode 100644 oceanbasepro/src/model/DescribeProcessStatsCompositionRequest.cc create mode 100644 oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc create mode 100644 oceanbasepro/src/model/DescribeTagValuesRequest.cc create mode 100644 oceanbasepro/src/model/DescribeTagValuesResult.cc create mode 100644 oceanbasepro/src/model/ModifyTagNameRequest.cc create mode 100644 oceanbasepro/src/model/ModifyTagNameResult.cc create mode 100644 oceanbasepro/src/model/ModifyTagValueNameRequest.cc create mode 100644 oceanbasepro/src/model/ModifyTagValueNameResult.cc create mode 100644 oceanbasepro/src/model/UpdateProjectConfigRequest.cc create mode 100644 oceanbasepro/src/model/UpdateProjectConfigResult.cc diff --git a/VERSION b/VERSION index f5d6e4357..bfbf7bd78 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1911 \ No newline at end of file +1.36.1912 \ No newline at end of file diff --git a/oceanbasepro/CMakeLists.txt b/oceanbasepro/CMakeLists.txt index f9f25c3fa..8f8a4e5aa 100644 --- a/oceanbasepro/CMakeLists.txt +++ b/oceanbasepro/CMakeLists.txt @@ -21,6 +21,8 @@ set(oceanbasepro_public_header include/alibabacloud/oceanbasepro/OceanBaseProExport.h ) set(oceanbasepro_public_header_model + include/alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.h + include/alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h include/alibabacloud/oceanbasepro/model/CancelProjectModifyRecordRequest.h include/alibabacloud/oceanbasepro/model/CancelProjectModifyRecordResult.h include/alibabacloud/oceanbasepro/model/CreateBackupSetDownloadLinkRequest.h @@ -45,6 +47,10 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/CreateRdsPostgreSQLDataSourceResult.h include/alibabacloud/oceanbasepro/model/CreateSecurityIpGroupRequest.h include/alibabacloud/oceanbasepro/model/CreateSecurityIpGroupResult.h + include/alibabacloud/oceanbasepro/model/CreateTagRequest.h + include/alibabacloud/oceanbasepro/model/CreateTagResult.h + include/alibabacloud/oceanbasepro/model/CreateTagValueRequest.h + include/alibabacloud/oceanbasepro/model/CreateTagValueResult.h include/alibabacloud/oceanbasepro/model/CreateTenantRequest.h include/alibabacloud/oceanbasepro/model/CreateTenantResult.h include/alibabacloud/oceanbasepro/model/CreateTenantReadOnlyConnectionRequest.h @@ -63,6 +69,10 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/DeleteProjectResult.h include/alibabacloud/oceanbasepro/model/DeleteSecurityIpGroupRequest.h include/alibabacloud/oceanbasepro/model/DeleteSecurityIpGroupResult.h + include/alibabacloud/oceanbasepro/model/DeleteTagRequest.h + include/alibabacloud/oceanbasepro/model/DeleteTagResult.h + include/alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h + include/alibabacloud/oceanbasepro/model/DeleteTagValueResult.h include/alibabacloud/oceanbasepro/model/DeleteTenantSecurityIpGroupRequest.h include/alibabacloud/oceanbasepro/model/DeleteTenantSecurityIpGroupResult.h include/alibabacloud/oceanbasepro/model/DeleteTenantUsersRequest.h @@ -125,6 +135,8 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/DescribeParametersResult.h include/alibabacloud/oceanbasepro/model/DescribeParametersHistoryRequest.h include/alibabacloud/oceanbasepro/model/DescribeParametersHistoryResult.h + include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.h + include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h include/alibabacloud/oceanbasepro/model/DescribeProjectRequest.h include/alibabacloud/oceanbasepro/model/DescribeProjectResult.h include/alibabacloud/oceanbasepro/model/DescribeProjectComponentsRequest.h @@ -153,6 +165,8 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/DescribeSlowSQLHistoryListResult.h include/alibabacloud/oceanbasepro/model/DescribeSlowSQLListRequest.h include/alibabacloud/oceanbasepro/model/DescribeSlowSQLListResult.h + include/alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h + include/alibabacloud/oceanbasepro/model/DescribeTagValuesResult.h include/alibabacloud/oceanbasepro/model/DescribeTenantRequest.h include/alibabacloud/oceanbasepro/model/DescribeTenantResult.h include/alibabacloud/oceanbasepro/model/DescribeTenantEncryptionRequest.h @@ -213,6 +227,10 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/ModifyParametersResult.h include/alibabacloud/oceanbasepro/model/ModifySecurityIpsRequest.h include/alibabacloud/oceanbasepro/model/ModifySecurityIpsResult.h + include/alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h + include/alibabacloud/oceanbasepro/model/ModifyTagNameResult.h + include/alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.h + include/alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.h include/alibabacloud/oceanbasepro/model/ModifyTenantEncryptionRequest.h include/alibabacloud/oceanbasepro/model/ModifyTenantEncryptionResult.h include/alibabacloud/oceanbasepro/model/ModifyTenantPrimaryZoneRequest.h @@ -250,10 +268,14 @@ set(oceanbasepro_public_header_model include/alibabacloud/oceanbasepro/model/StopProjectsByLabelRequest.h include/alibabacloud/oceanbasepro/model/StopProjectsByLabelResult.h include/alibabacloud/oceanbasepro/model/SwitchoverInstanceRequest.h - include/alibabacloud/oceanbasepro/model/SwitchoverInstanceResult.h ) + include/alibabacloud/oceanbasepro/model/SwitchoverInstanceResult.h + include/alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.h + include/alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.h ) set(oceanbasepro_src src/OceanBaseProClient.cc + src/model/BatchKillProcessListRequest.cc + src/model/BatchKillProcessListResult.cc src/model/CancelProjectModifyRecordRequest.cc src/model/CancelProjectModifyRecordResult.cc src/model/CreateBackupSetDownloadLinkRequest.cc @@ -278,6 +300,10 @@ set(oceanbasepro_src src/model/CreateRdsPostgreSQLDataSourceResult.cc src/model/CreateSecurityIpGroupRequest.cc src/model/CreateSecurityIpGroupResult.cc + src/model/CreateTagRequest.cc + src/model/CreateTagResult.cc + src/model/CreateTagValueRequest.cc + src/model/CreateTagValueResult.cc src/model/CreateTenantRequest.cc src/model/CreateTenantResult.cc src/model/CreateTenantReadOnlyConnectionRequest.cc @@ -296,6 +322,10 @@ set(oceanbasepro_src src/model/DeleteProjectResult.cc src/model/DeleteSecurityIpGroupRequest.cc src/model/DeleteSecurityIpGroupResult.cc + src/model/DeleteTagRequest.cc + src/model/DeleteTagResult.cc + src/model/DeleteTagValueRequest.cc + src/model/DeleteTagValueResult.cc src/model/DeleteTenantSecurityIpGroupRequest.cc src/model/DeleteTenantSecurityIpGroupResult.cc src/model/DeleteTenantUsersRequest.cc @@ -358,6 +388,8 @@ set(oceanbasepro_src src/model/DescribeParametersResult.cc src/model/DescribeParametersHistoryRequest.cc src/model/DescribeParametersHistoryResult.cc + src/model/DescribeProcessStatsCompositionRequest.cc + src/model/DescribeProcessStatsCompositionResult.cc src/model/DescribeProjectRequest.cc src/model/DescribeProjectResult.cc src/model/DescribeProjectComponentsRequest.cc @@ -386,6 +418,8 @@ set(oceanbasepro_src src/model/DescribeSlowSQLHistoryListResult.cc src/model/DescribeSlowSQLListRequest.cc src/model/DescribeSlowSQLListResult.cc + src/model/DescribeTagValuesRequest.cc + src/model/DescribeTagValuesResult.cc src/model/DescribeTenantRequest.cc src/model/DescribeTenantResult.cc src/model/DescribeTenantEncryptionRequest.cc @@ -446,6 +480,10 @@ set(oceanbasepro_src src/model/ModifyParametersResult.cc src/model/ModifySecurityIpsRequest.cc src/model/ModifySecurityIpsResult.cc + src/model/ModifyTagNameRequest.cc + src/model/ModifyTagNameResult.cc + src/model/ModifyTagValueNameRequest.cc + src/model/ModifyTagValueNameResult.cc src/model/ModifyTenantEncryptionRequest.cc src/model/ModifyTenantEncryptionResult.cc src/model/ModifyTenantPrimaryZoneRequest.cc @@ -483,7 +521,9 @@ set(oceanbasepro_src src/model/StopProjectsByLabelRequest.cc src/model/StopProjectsByLabelResult.cc src/model/SwitchoverInstanceRequest.cc - src/model/SwitchoverInstanceResult.cc ) + src/model/SwitchoverInstanceResult.cc + src/model/UpdateProjectConfigRequest.cc + src/model/UpdateProjectConfigResult.cc ) add_library(oceanbasepro ${LIB_TYPE} ${oceanbasepro_public_header} diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/OceanBaseProClient.h b/oceanbasepro/include/alibabacloud/oceanbasepro/OceanBaseProClient.h index 8c0d48a04..d7b8acb0e 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/OceanBaseProClient.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/OceanBaseProClient.h @@ -22,6 +22,8 @@ #include #include #include "OceanBaseProExport.h" +#include "model/BatchKillProcessListRequest.h" +#include "model/BatchKillProcessListResult.h" #include "model/CancelProjectModifyRecordRequest.h" #include "model/CancelProjectModifyRecordResult.h" #include "model/CreateBackupSetDownloadLinkRequest.h" @@ -46,6 +48,10 @@ #include "model/CreateRdsPostgreSQLDataSourceResult.h" #include "model/CreateSecurityIpGroupRequest.h" #include "model/CreateSecurityIpGroupResult.h" +#include "model/CreateTagRequest.h" +#include "model/CreateTagResult.h" +#include "model/CreateTagValueRequest.h" +#include "model/CreateTagValueResult.h" #include "model/CreateTenantRequest.h" #include "model/CreateTenantResult.h" #include "model/CreateTenantReadOnlyConnectionRequest.h" @@ -64,6 +70,10 @@ #include "model/DeleteProjectResult.h" #include "model/DeleteSecurityIpGroupRequest.h" #include "model/DeleteSecurityIpGroupResult.h" +#include "model/DeleteTagRequest.h" +#include "model/DeleteTagResult.h" +#include "model/DeleteTagValueRequest.h" +#include "model/DeleteTagValueResult.h" #include "model/DeleteTenantSecurityIpGroupRequest.h" #include "model/DeleteTenantSecurityIpGroupResult.h" #include "model/DeleteTenantUsersRequest.h" @@ -126,6 +136,8 @@ #include "model/DescribeParametersResult.h" #include "model/DescribeParametersHistoryRequest.h" #include "model/DescribeParametersHistoryResult.h" +#include "model/DescribeProcessStatsCompositionRequest.h" +#include "model/DescribeProcessStatsCompositionResult.h" #include "model/DescribeProjectRequest.h" #include "model/DescribeProjectResult.h" #include "model/DescribeProjectComponentsRequest.h" @@ -154,6 +166,8 @@ #include "model/DescribeSlowSQLHistoryListResult.h" #include "model/DescribeSlowSQLListRequest.h" #include "model/DescribeSlowSQLListResult.h" +#include "model/DescribeTagValuesRequest.h" +#include "model/DescribeTagValuesResult.h" #include "model/DescribeTenantRequest.h" #include "model/DescribeTenantResult.h" #include "model/DescribeTenantEncryptionRequest.h" @@ -214,6 +228,10 @@ #include "model/ModifyParametersResult.h" #include "model/ModifySecurityIpsRequest.h" #include "model/ModifySecurityIpsResult.h" +#include "model/ModifyTagNameRequest.h" +#include "model/ModifyTagNameResult.h" +#include "model/ModifyTagValueNameRequest.h" +#include "model/ModifyTagValueNameResult.h" #include "model/ModifyTenantEncryptionRequest.h" #include "model/ModifyTenantEncryptionResult.h" #include "model/ModifyTenantPrimaryZoneRequest.h" @@ -252,6 +270,8 @@ #include "model/StopProjectsByLabelResult.h" #include "model/SwitchoverInstanceRequest.h" #include "model/SwitchoverInstanceResult.h" +#include "model/UpdateProjectConfigRequest.h" +#include "model/UpdateProjectConfigResult.h" namespace AlibabaCloud @@ -261,6 +281,9 @@ namespace AlibabaCloud class ALIBABACLOUD_OCEANBASEPRO_EXPORT OceanBaseProClient : public RpcServiceClient { public: + typedef Outcome BatchKillProcessListOutcome; + typedef std::future BatchKillProcessListOutcomeCallable; + typedef std::function&)> BatchKillProcessListAsyncHandler; typedef Outcome CancelProjectModifyRecordOutcome; typedef std::future CancelProjectModifyRecordOutcomeCallable; typedef std::function&)> CancelProjectModifyRecordAsyncHandler; @@ -297,6 +320,12 @@ namespace AlibabaCloud typedef Outcome CreateSecurityIpGroupOutcome; typedef std::future CreateSecurityIpGroupOutcomeCallable; typedef std::function&)> CreateSecurityIpGroupAsyncHandler; + typedef Outcome CreateTagOutcome; + typedef std::future CreateTagOutcomeCallable; + typedef std::function&)> CreateTagAsyncHandler; + typedef Outcome CreateTagValueOutcome; + typedef std::future CreateTagValueOutcomeCallable; + typedef std::function&)> CreateTagValueAsyncHandler; typedef Outcome CreateTenantOutcome; typedef std::future CreateTenantOutcomeCallable; typedef std::function&)> CreateTenantAsyncHandler; @@ -324,6 +353,12 @@ namespace AlibabaCloud typedef Outcome DeleteSecurityIpGroupOutcome; typedef std::future DeleteSecurityIpGroupOutcomeCallable; typedef std::function&)> DeleteSecurityIpGroupAsyncHandler; + typedef Outcome DeleteTagOutcome; + typedef std::future DeleteTagOutcomeCallable; + typedef std::function&)> DeleteTagAsyncHandler; + typedef Outcome DeleteTagValueOutcome; + typedef std::future DeleteTagValueOutcomeCallable; + typedef std::function&)> DeleteTagValueAsyncHandler; typedef Outcome DeleteTenantSecurityIpGroupOutcome; typedef std::future DeleteTenantSecurityIpGroupOutcomeCallable; typedef std::function&)> DeleteTenantSecurityIpGroupAsyncHandler; @@ -417,6 +452,9 @@ namespace AlibabaCloud typedef Outcome DescribeParametersHistoryOutcome; typedef std::future DescribeParametersHistoryOutcomeCallable; typedef std::function&)> DescribeParametersHistoryAsyncHandler; + typedef Outcome DescribeProcessStatsCompositionOutcome; + typedef std::future DescribeProcessStatsCompositionOutcomeCallable; + typedef std::function&)> DescribeProcessStatsCompositionAsyncHandler; typedef Outcome DescribeProjectOutcome; typedef std::future DescribeProjectOutcomeCallable; typedef std::function&)> DescribeProjectAsyncHandler; @@ -459,6 +497,9 @@ namespace AlibabaCloud typedef Outcome DescribeSlowSQLListOutcome; typedef std::future DescribeSlowSQLListOutcomeCallable; typedef std::function&)> DescribeSlowSQLListAsyncHandler; + typedef Outcome DescribeTagValuesOutcome; + typedef std::future DescribeTagValuesOutcomeCallable; + typedef std::function&)> DescribeTagValuesAsyncHandler; typedef Outcome DescribeTenantOutcome; typedef std::future DescribeTenantOutcomeCallable; typedef std::function&)> DescribeTenantAsyncHandler; @@ -549,6 +590,12 @@ namespace AlibabaCloud typedef Outcome ModifySecurityIpsOutcome; typedef std::future ModifySecurityIpsOutcomeCallable; typedef std::function&)> ModifySecurityIpsAsyncHandler; + typedef Outcome ModifyTagNameOutcome; + typedef std::future ModifyTagNameOutcomeCallable; + typedef std::function&)> ModifyTagNameAsyncHandler; + typedef Outcome ModifyTagValueNameOutcome; + typedef std::future ModifyTagValueNameOutcomeCallable; + typedef std::function&)> ModifyTagValueNameAsyncHandler; typedef Outcome ModifyTenantEncryptionOutcome; typedef std::future ModifyTenantEncryptionOutcomeCallable; typedef std::function&)> ModifyTenantEncryptionAsyncHandler; @@ -606,11 +653,17 @@ namespace AlibabaCloud typedef Outcome SwitchoverInstanceOutcome; typedef std::future SwitchoverInstanceOutcomeCallable; typedef std::function&)> SwitchoverInstanceAsyncHandler; + typedef Outcome UpdateProjectConfigOutcome; + typedef std::future UpdateProjectConfigOutcomeCallable; + typedef std::function&)> UpdateProjectConfigAsyncHandler; OceanBaseProClient(const Credentials &credentials, const ClientConfiguration &configuration); OceanBaseProClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); OceanBaseProClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~OceanBaseProClient(); + BatchKillProcessListOutcome batchKillProcessList(const Model::BatchKillProcessListRequest &request)const; + void batchKillProcessListAsync(const Model::BatchKillProcessListRequest& request, const BatchKillProcessListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + BatchKillProcessListOutcomeCallable batchKillProcessListCallable(const Model::BatchKillProcessListRequest& request) const; CancelProjectModifyRecordOutcome cancelProjectModifyRecord(const Model::CancelProjectModifyRecordRequest &request)const; void cancelProjectModifyRecordAsync(const Model::CancelProjectModifyRecordRequest& request, const CancelProjectModifyRecordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelProjectModifyRecordOutcomeCallable cancelProjectModifyRecordCallable(const Model::CancelProjectModifyRecordRequest& request) const; @@ -647,6 +700,12 @@ namespace AlibabaCloud CreateSecurityIpGroupOutcome createSecurityIpGroup(const Model::CreateSecurityIpGroupRequest &request)const; void createSecurityIpGroupAsync(const Model::CreateSecurityIpGroupRequest& request, const CreateSecurityIpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSecurityIpGroupOutcomeCallable createSecurityIpGroupCallable(const Model::CreateSecurityIpGroupRequest& request) const; + CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; + void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; + CreateTagValueOutcome createTagValue(const Model::CreateTagValueRequest &request)const; + void createTagValueAsync(const Model::CreateTagValueRequest& request, const CreateTagValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagValueOutcomeCallable createTagValueCallable(const Model::CreateTagValueRequest& request) const; CreateTenantOutcome createTenant(const Model::CreateTenantRequest &request)const; void createTenantAsync(const Model::CreateTenantRequest& request, const CreateTenantAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTenantOutcomeCallable createTenantCallable(const Model::CreateTenantRequest& request) const; @@ -674,6 +733,12 @@ namespace AlibabaCloud DeleteSecurityIpGroupOutcome deleteSecurityIpGroup(const Model::DeleteSecurityIpGroupRequest &request)const; void deleteSecurityIpGroupAsync(const Model::DeleteSecurityIpGroupRequest& request, const DeleteSecurityIpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSecurityIpGroupOutcomeCallable deleteSecurityIpGroupCallable(const Model::DeleteSecurityIpGroupRequest& request) const; + DeleteTagOutcome deleteTag(const Model::DeleteTagRequest &request)const; + void deleteTagAsync(const Model::DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagOutcomeCallable deleteTagCallable(const Model::DeleteTagRequest& request) const; + DeleteTagValueOutcome deleteTagValue(const Model::DeleteTagValueRequest &request)const; + void deleteTagValueAsync(const Model::DeleteTagValueRequest& request, const DeleteTagValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagValueOutcomeCallable deleteTagValueCallable(const Model::DeleteTagValueRequest& request) const; DeleteTenantSecurityIpGroupOutcome deleteTenantSecurityIpGroup(const Model::DeleteTenantSecurityIpGroupRequest &request)const; void deleteTenantSecurityIpGroupAsync(const Model::DeleteTenantSecurityIpGroupRequest& request, const DeleteTenantSecurityIpGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTenantSecurityIpGroupOutcomeCallable deleteTenantSecurityIpGroupCallable(const Model::DeleteTenantSecurityIpGroupRequest& request) const; @@ -767,6 +832,9 @@ namespace AlibabaCloud DescribeParametersHistoryOutcome describeParametersHistory(const Model::DescribeParametersHistoryRequest &request)const; void describeParametersHistoryAsync(const Model::DescribeParametersHistoryRequest& request, const DescribeParametersHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParametersHistoryOutcomeCallable describeParametersHistoryCallable(const Model::DescribeParametersHistoryRequest& request) const; + DescribeProcessStatsCompositionOutcome describeProcessStatsComposition(const Model::DescribeProcessStatsCompositionRequest &request)const; + void describeProcessStatsCompositionAsync(const Model::DescribeProcessStatsCompositionRequest& request, const DescribeProcessStatsCompositionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProcessStatsCompositionOutcomeCallable describeProcessStatsCompositionCallable(const Model::DescribeProcessStatsCompositionRequest& request) const; DescribeProjectOutcome describeProject(const Model::DescribeProjectRequest &request)const; void describeProjectAsync(const Model::DescribeProjectRequest& request, const DescribeProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeProjectOutcomeCallable describeProjectCallable(const Model::DescribeProjectRequest& request) const; @@ -809,6 +877,9 @@ namespace AlibabaCloud DescribeSlowSQLListOutcome describeSlowSQLList(const Model::DescribeSlowSQLListRequest &request)const; void describeSlowSQLListAsync(const Model::DescribeSlowSQLListRequest& request, const DescribeSlowSQLListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSlowSQLListOutcomeCallable describeSlowSQLListCallable(const Model::DescribeSlowSQLListRequest& request) const; + DescribeTagValuesOutcome describeTagValues(const Model::DescribeTagValuesRequest &request)const; + void describeTagValuesAsync(const Model::DescribeTagValuesRequest& request, const DescribeTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagValuesOutcomeCallable describeTagValuesCallable(const Model::DescribeTagValuesRequest& request) const; DescribeTenantOutcome describeTenant(const Model::DescribeTenantRequest &request)const; void describeTenantAsync(const Model::DescribeTenantRequest& request, const DescribeTenantAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTenantOutcomeCallable describeTenantCallable(const Model::DescribeTenantRequest& request) const; @@ -899,6 +970,12 @@ namespace AlibabaCloud 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; + ModifyTagNameOutcome modifyTagName(const Model::ModifyTagNameRequest &request)const; + void modifyTagNameAsync(const Model::ModifyTagNameRequest& request, const ModifyTagNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTagNameOutcomeCallable modifyTagNameCallable(const Model::ModifyTagNameRequest& request) const; + ModifyTagValueNameOutcome modifyTagValueName(const Model::ModifyTagValueNameRequest &request)const; + void modifyTagValueNameAsync(const Model::ModifyTagValueNameRequest& request, const ModifyTagValueNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyTagValueNameOutcomeCallable modifyTagValueNameCallable(const Model::ModifyTagValueNameRequest& request) const; ModifyTenantEncryptionOutcome modifyTenantEncryption(const Model::ModifyTenantEncryptionRequest &request)const; void modifyTenantEncryptionAsync(const Model::ModifyTenantEncryptionRequest& request, const ModifyTenantEncryptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyTenantEncryptionOutcomeCallable modifyTenantEncryptionCallable(const Model::ModifyTenantEncryptionRequest& request) const; @@ -956,6 +1033,9 @@ namespace AlibabaCloud SwitchoverInstanceOutcome switchoverInstance(const Model::SwitchoverInstanceRequest &request)const; void switchoverInstanceAsync(const Model::SwitchoverInstanceRequest& request, const SwitchoverInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchoverInstanceOutcomeCallable switchoverInstanceCallable(const Model::SwitchoverInstanceRequest& request) const; + UpdateProjectConfigOutcome updateProjectConfig(const Model::UpdateProjectConfigRequest &request)const; + void updateProjectConfigAsync(const Model::UpdateProjectConfigRequest& request, const UpdateProjectConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectConfigOutcomeCallable updateProjectConfigCallable(const Model::UpdateProjectConfigRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.h new file mode 100644 index 000000000..b3edd88cf --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.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_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT BatchKillProcessListRequest : public RpcServiceRequest { +public: + BatchKillProcessListRequest(); + ~BatchKillProcessListRequest(); + std::string getSessionList() const; + void setSessionList(const std::string &sessionList); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTenantId() const; + void setTenantId(const std::string &tenantId); + +private: + std::string sessionList_; + std::string instanceId_; + std::string tenantId_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h new file mode 100644 index 000000000..edc1ada45 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT BatchKillProcessListResult : public ServiceResult + { + public: + struct DataItem + { + bool success; + }; + + + BatchKillProcessListResult(); + explicit BatchKillProcessListResult(const std::string &payload); + ~BatchKillProcessListResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateInstanceRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateInstanceRequest.h index 02b2d6257..dc275aad5 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateInstanceRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateInstanceRequest.h @@ -60,6 +60,8 @@ public: void setAutoRenew(bool autoRenew); std::string getSeries() const; void setSeries(const std::string &series); + std::string getCpuArch() const; + void setCpuArch(const std::string &cpuArch); std::string getPrimaryInstance() const; void setPrimaryInstance(const std::string &primaryInstance); std::string getPrimaryRegion() const; @@ -85,6 +87,7 @@ private: std::string replicaMode_; bool autoRenew_; std::string series_; + std::string cpuArch_; std::string primaryInstance_; std::string primaryRegion_; std::string chargeType_; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateProjectRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateProjectRequest.h index 17e155d5b..757dd0637 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateProjectRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateProjectRequest.h @@ -30,9 +30,13 @@ class ALIBABACLOUD_OCEANBASEPRO_EXPORT CreateProjectRequest : public RpcServiceR public: struct FullTransferConfig { bool nonePkUkTruncateDstTable; + int throttleRps; std::string fullVerifySpeedMode; + int writeWorkerNum; + int readWorkerNum; std::string fullTransferSpeedMode; bool allowDestTableNotEmpty; + int throttleIOPS; }; struct TransferMapping { std::string mode; @@ -252,14 +256,31 @@ public: std::string byteCharConvertStrategy; bool deferIndexCreation; }; - struct IncrTransferConfig { + struct ReverseIncrTransferConfig { + int throttleRps; bool enableSequencingWithinTxn; + std::string string; + std::vector supportDDLTypes; int storeLogKeptHour; std::string startTimestamp; std::string string; std::vector recordTypeWhiteList; int incrSyncConcurrency; bool enableIncrSyncStatistics; + int throttleIOPS; + }; + struct IncrTransferConfig { + int throttleRps; + bool enableSequencingWithinTxn; + std::string string; + std::vector supportDDLTypes; + int storeLogKeptHour; + std::string startTimestamp; + std::string string; + std::vector recordTypeWhiteList; + int incrSyncConcurrency; + bool enableIncrSyncStatistics; + int throttleIOPS; }; CreateProjectRequest(); ~CreateProjectRequest(); @@ -287,6 +308,8 @@ public: void setCommonTransferConfig(const CommonTransferConfig &commonTransferConfig); StructTransferConfig getStructTransferConfig() const; void setStructTransferConfig(const StructTransferConfig &structTransferConfig); + ReverseIncrTransferConfig getReverseIncrTransferConfig() const; + void setReverseIncrTransferConfig(const ReverseIncrTransferConfig &reverseIncrTransferConfig); bool getEnableIncrTransfer() const; void setEnableIncrTransfer(bool enableIncrTransfer); bool getEnableFullTransfer() const; @@ -315,6 +338,7 @@ private: std::string id_; CommonTransferConfig commonTransferConfig_; StructTransferConfig structTransferConfig_; + ReverseIncrTransferConfig reverseIncrTransferConfig_; bool enableIncrTransfer_; bool enableFullTransfer_; bool enableFullVerify_; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagRequest.h new file mode 100644 index 000000000..6e97b0c12 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT CreateTagRequest : public RpcServiceRequest { +public: + CreateTagRequest(); + ~CreateTagRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string clientToken_; + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagResult.h new file mode 100644 index 000000000..d4936183c --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagResult.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_OCEANBASEPRO_MODEL_CREATETAGRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT CreateTagResult : public ServiceResult + { + public: + + + CreateTagResult(); + explicit CreateTagResult(const std::string &payload); + ~CreateTagResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueRequest.h new file mode 100644 index 000000000..28e57b7b3 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueRequest.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_OCEANBASEPRO_MODEL_CREATETAGVALUEREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGVALUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT CreateTagValueRequest : public RpcServiceRequest { +public: + CreateTagValueRequest(); + ~CreateTagValueRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getValue() const; + void setValue(const std::string &value); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string clientToken_; + std::string value_; + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGVALUEREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueResult.h new file mode 100644 index 000000000..4f6c31be9 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTagValueResult.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_OCEANBASEPRO_MODEL_CREATETAGVALUERESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGVALUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT CreateTagValueResult : public ServiceResult + { + public: + + + CreateTagValueResult(); + explicit CreateTagValueResult(const std::string &payload); + ~CreateTagValueResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_CREATETAGVALUERESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTenantRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTenantRequest.h index 2add2ca1b..12da3cbcd 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTenantRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/CreateTenantRequest.h @@ -54,6 +54,10 @@ public: void setInstanceId(const std::string &instanceId); std::string getPrimaryZone() const; void setPrimaryZone(const std::string &primaryZone); + std::string getUserVpcOwnerId() const; + void setUserVpcOwnerId(const std::string &userVpcOwnerId); + std::map getCreateParams() const; + void setCreateParams(const std::map &createParams); std::string getTenantName() const; void setTenantName(const std::string &tenantName); std::string getReadOnlyZoneList() const; @@ -72,6 +76,8 @@ private: int unitNum_; std::string instanceId_; std::string primaryZone_; + std::string userVpcOwnerId_; + std::map createParams_; std::string tenantName_; std::string readOnlyZoneList_; }; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagRequest.h new file mode 100644 index 000000000..12395857c --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagRequest.h @@ -0,0 +1,42 @@ +/* + * 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_OCEANBASEPRO_MODEL_DELETETAGREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT DeleteTagRequest : public RpcServiceRequest { +public: + DeleteTagRequest(); + ~DeleteTagRequest(); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagResult.h new file mode 100644 index 000000000..32a835833 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagResult.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_OCEANBASEPRO_MODEL_DELETETAGRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT DeleteTagResult : public ServiceResult + { + public: + + + DeleteTagResult(); + explicit DeleteTagResult(const std::string &payload); + ~DeleteTagResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h new file mode 100644 index 000000000..b63f17d6e --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGVALUEREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGVALUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT DeleteTagValueRequest : public RpcServiceRequest { +public: + DeleteTagValueRequest(); + ~DeleteTagValueRequest(); + std::string getValue() const; + void setValue(const std::string &value); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string value_; + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGVALUEREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueResult.h new file mode 100644 index 000000000..f092abafa --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DeleteTagValueResult.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_OCEANBASEPRO_MODEL_DELETETAGVALUERESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGVALUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT DeleteTagValueResult : public ServiceResult + { + public: + + + DeleteTagValueResult(); + explicit DeleteTagValueResult(const std::string &payload); + ~DeleteTagValueResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DELETETAGVALUERESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneRequest.h index 4b89835fd..ee930bda0 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneRequest.h @@ -32,20 +32,23 @@ public: ~DescribeAvailableZoneRequest(); std::string getSpec() const; void setSpec(const std::string &spec); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); std::string getObVersion() const; void setObVersion(const std::string &obVersion); std::string getSeries() const; void setSeries(const std::string &series); - std::string getInstanceType() const; - void setInstanceType(const std::string &instanceType); + std::string getCpuArch() const; + void setCpuArch(const std::string &cpuArch); std::string getDeployType() const; void setDeployType(const std::string &deployType); private: std::string spec_; + std::string instanceType_; std::string obVersion_; std::string series_; - std::string instanceType_; + std::string cpuArch_; std::string deployType_; }; } // namespace Model diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneResult.h index 2d9a04494..8f715c98a 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeAvailableZoneResult.h @@ -62,6 +62,7 @@ namespace AlibabaCloud std::string channel; std::string region; std::string instanceType; + std::string cpuArch; std::string zones; }; std::vector availableZones; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceResult.h index 0b76ade79..78a399c23 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceResult.h @@ -156,6 +156,7 @@ namespace AlibabaCloud std::string dataMergeTime; bool inTempCapacityStatus; bool enableReadOnlyReplica; + std::string primaryInstance; bool isTrustEcs; std::string proxyClusterId; bool isLatestObVersion; @@ -175,6 +176,7 @@ namespace AlibabaCloud std::string status; bool autoUpgradeObVersion; std::string instanceId; + std::string primaryRegion; int exclusiveUnitNumLimit; std::string createTime; Resource resource; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceTopologyResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceTopologyResult.h index 8c6c4cb1f..fbef0f50b 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceTopologyResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstanceTopologyResult.h @@ -52,7 +52,7 @@ namespace AlibabaCloud bool manualMigrate; }; std::string tenantZoneRole; - std::string isPrimaryTenantZone; + bool isPrimaryTenantZone; std::string tenantZoneId; std::vector units; }; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstancesResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstancesResult.h index e31ff16f7..d944f8c30 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstancesResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeInstancesResult.h @@ -38,24 +38,24 @@ namespace AlibabaCloud { struct Cpu { - long unitCpu; - long totalCpu; - long usedCpu; - long originalTotalCpu; + double unitCpu; + double totalCpu; + double usedCpu; + double originalTotalCpu; }; struct Memory { long usedMemory; long unitMemory; - long totalMemory; - long originalTotalMemory; + double totalMemory; + double originalTotalMemory; }; struct DiskSize { - long originalTotalDiskSize; + double originalTotalDiskSize; long usedDiskSize; - long unitDiskSize; - long totalDiskSize; + double unitDiskSize; + double totalDiskSize; }; struct CapacityUnit { @@ -71,13 +71,13 @@ namespace AlibabaCloud }; struct DataDiskAutoScaleConfig { - long upperbound; - long scaleStepInNormal; - long upperMergeThreshold; - long scaleStepInMerge; + double upperbound; + double scaleStepInNormal; + double upperMergeThreshold; + double scaleStepInMerge; std::string upperScaleStrategy; long maxDiskSize; - long upperThreshold; + double upperThreshold; bool autoScale; }; std::string deployType; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeMetricsDataResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeMetricsDataResult.h index 3fa439c9b..3a40551d1 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeMetricsDataResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeMetricsDataResult.h @@ -37,12 +37,12 @@ namespace AlibabaCloud DescribeMetricsDataResult(); explicit DescribeMetricsDataResult(const std::string &payload); ~DescribeMetricsDataResult(); - std::string getData()const; + std::vector getData()const; protected: void parse(const std::string &payload); private: - std::string data_; + std::vector data_; }; } diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSQLPlansRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSQLPlansRequest.h index 12e5a382d..4f192362e 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSQLPlansRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSQLPlansRequest.h @@ -30,8 +30,12 @@ class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeOasSQLPlansRequest : public RpcSe public: DescribeOasSQLPlansRequest(); ~DescribeOasSQLPlansRequest(); + bool getReturnBriefInfo() const; + void setReturnBriefInfo(bool returnBriefInfo); std::string getStartTime() const; void setStartTime(const std::string &startTime); + std::string getPlanUnionHash() const; + void setPlanUnionHash(const std::string &planUnionHash); bool getDynamicSql() const; void setDynamicSql(bool dynamicSql); std::string getTenantId() const; @@ -48,7 +52,9 @@ public: void setAcceptLanguage(const std::string &acceptLanguage); private: + bool returnBriefInfo_; std::string startTime_; + std::string planUnionHash_; bool dynamicSql_; std::string tenantId_; std::string sqlId_; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSlowSQLListResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSlowSQLListResult.h index 22adc1483..b5aec76bb 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSlowSQLListResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasSlowSQLListResult.h @@ -124,15 +124,15 @@ namespace AlibabaCloud bool inner; double avgUserIoWaitTime; double retryCount; - long retCode6002Count; + double retCode6002Count; double missPlans; - long retCode5167Count; + double retCode5167Count; std::string sqlType; double avgLogicalReads; double execPs; double avgBlockCacheHit; double tableScanPercentage; - long retCode5217Count; + double retCode5217Count; double avgUsedWorkerCount; double maxElapsedTime; double localPlanPercentage; @@ -148,13 +148,13 @@ namespace AlibabaCloud double avgQueueTime; double maxCpuTime; double avgDiskReads; - long retCode5001Count; - long retCode5024Count; + double retCode5001Count; + double retCode5024Count; double sumLogicalReads; double avgCpuTime; double sumDbTime; double strongConsistencyPercentage; - long retCode4013Count; + double retCode4013Count; double avgConcurrencyWaitTime; double avgBlockIndexCacheHit; double sumElapsedTime; @@ -187,7 +187,7 @@ namespace AlibabaCloud double missPlanPercentage; std::string waitEvent; double totalWaitTime; - long retCode4012Count; + double retCode4012Count; double avgElapsedTime; double failPercentage; double maxReturnRows; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasTopSQLListResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasTopSQLListResult.h index 290e0ea42..9913f5aba 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasTopSQLListResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeOasTopSQLListResult.h @@ -36,7 +36,7 @@ namespace AlibabaCloud { struct SqlListItem { - double executions; + long executions; double avgRowCacheHit; double maxApplicationWaitTime; std::string server; @@ -115,7 +115,7 @@ namespace AlibabaCloud double sumWaitTime; long serverPort; }; - double executions; + long executions; double avgRowCacheHit; double maxApplicationWaitTime; std::string server; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.h new file mode 100644 index 000000000..e91f3038a --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.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_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeProcessStatsCompositionRequest : public RpcServiceRequest { +public: + DescribeProcessStatsCompositionRequest(); + ~DescribeProcessStatsCompositionRequest(); + std::string getUId() const; + void setUId(const std::string &uId); + std::string getSqlText() const; + void setSqlText(const std::string &sqlText); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + std::string getTenantId() const; + void setTenantId(const std::string &tenantId); + std::string getServerIp() const; + void setServerIp(const std::string &serverIp); + std::string getUsers() const; + void setUsers(const std::string &users); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string uId_; + std::string sqlText_; + std::string clientIp_; + std::string tenantId_; + std::string serverIp_; + std::string users_; + std::string instanceId_; + std::string status_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h new file mode 100644 index 000000000..e73af6904 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h @@ -0,0 +1,105 @@ +/* + * 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_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeProcessStatsCompositionResult : public ServiceResult + { + public: + struct DataItem + { + struct SessionStatistics + { + struct UserStatisticsItem + { + std::string metricValue; + long totalCount; + std::string type; + long activeCount; + }; + struct SourceStatisticsItem + { + std::string metricValue; + long totalCount; + std::string type; + long activeCount; + }; + struct DataBaseStatisticsItem + { + std::string metricValue; + long totalCount; + std::string type; + long activeCount; + }; + std::vector userStatistics; + std::vector dataBaseStatistics; + std::vector sourceStatistics; + }; + struct AllProcessListItem + { + std::string status; + std::string user; + long executeTime; + std::string proxySessId; + std::string serverIp; + std::string planId; + std::string sqlText; + long cpuTime; + std::string clientIp; + std::string sqlId; + std::string tenantId; + std::string command; + std::string database; + std::string traceId; + long sessionId; + }; + SessionStatistics sessionStatistics; + int totalSessionCount; + int activeSessionCount; + int idleSessionCount; + std::string obVersion; + std::vector allProcessList; + }; + + + DescribeProcessStatsCompositionResult(); + explicit DescribeProcessStatsCompositionResult(const std::string &payload); + ~DescribeProcessStatsCompositionResult(); + std::vector getData()const; + + protected: + void parse(const std::string &payload); + private: + std::vector data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesRequest.h index 9b664b834..f7d5b534b 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeSQLSamplesRequest : public RpcSer public: DescribeSQLSamplesRequest(); ~DescribeSQLSamplesRequest(); + bool getReturnSqlText() const; + void setReturnSqlText(bool returnSqlText); std::string getStartTime() const; void setStartTime(const std::string &startTime); std::string getTenantId() const; @@ -44,6 +46,7 @@ public: void setDbName(const std::string &dbName); private: + bool returnSqlText_; std::string startTime_; std::string tenantId_; std::string sqlId_; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesResult.h index 70dc231cc..be5399537 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeSQLSamplesResult.h @@ -81,6 +81,7 @@ namespace AlibabaCloud double rowCacheHit; double affectedRows; double usedWorkerCount; + std::string sqlText; double applicationWaitTime; std::string waitEvent; double userIoWaitTime; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h new file mode 100644 index 000000000..b7a3b8254 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h @@ -0,0 +1,42 @@ +/* + * 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_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeTagValuesRequest : public RpcServiceRequest { +public: + DescribeTagValuesRequest(); + ~DescribeTagValuesRequest(); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string resourceType_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesResult.h new file mode 100644 index 000000000..4c2908aaa --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTagValuesResult.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_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeTagValuesResult : public ServiceResult + { + public: + + + DescribeTagValuesResult(); + explicit DescribeTagValuesResult(const std::string &payload); + ~DescribeTagValuesResult(); + std::string getMap()const; + + protected: + void parse(const std::string &payload); + private: + std::string map_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBETAGVALUESRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTenantResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTenantResult.h index fcae4eb90..9c55a0135 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTenantResult.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeTenantResult.h @@ -154,10 +154,12 @@ namespace AlibabaCloud std::string diskType; std::string primaryZoneDeployType; std::string deployMode; + std::string version; std::vector tenantZones; std::string primaryZone; std::string instanceType; std::string tenantMode; + std::string lowerCaseTableNames; std::string status; bool enableClogService; std::string tenantName; diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeZonesRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeZonesRequest.h index 9e000b59a..1fd8796e4 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeZonesRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/DescribeZonesRequest.h @@ -32,11 +32,14 @@ public: ~DescribeZonesRequest(); std::string getSeries() const; void setSeries(const std::string &series); + std::string getCpuArch() const; + void setCpuArch(const std::string &cpuArch); std::string getDeployType() const; void setDeployType(const std::string &deployType); private: std::string series_; + std::string cpuArch_; std::string deployType_; }; } // namespace Model diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h new file mode 100644 index 000000000..f6242e535 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGNAMEREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT ModifyTagNameRequest : public RpcServiceRequest { +public: + ModifyTagNameRequest(); + ~ModifyTagNameRequest(); + std::string getNewKey() const; + void setNewKey(const std::string &newKey); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string newKey_; + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGNAMEREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameResult.h new file mode 100644 index 000000000..67679445a --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagNameResult.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_OCEANBASEPRO_MODEL_MODIFYTAGNAMERESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT ModifyTagNameResult : public ServiceResult + { + public: + + + ModifyTagNameResult(); + explicit ModifyTagNameResult(const std::string &payload); + ~ModifyTagNameResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGNAMERESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.h new file mode 100644 index 000000000..f45a3410a --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.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_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMEREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT ModifyTagValueNameRequest : public RpcServiceRequest { +public: + ModifyTagValueNameRequest(); + ~ModifyTagValueNameRequest(); + std::string getNewValue() const; + void setNewValue(const std::string &newValue); + std::string getValue() const; + void setValue(const std::string &value); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string newValue_; + std::string value_; + std::string key_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMEREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.h new file mode 100644 index 000000000..4d6416a59 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.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_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMERESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT ModifyTagValueNameResult : public ServiceResult + { + public: + + + ModifyTagValueNameResult(); + explicit ModifyTagValueNameResult(const std::string &payload); + ~ModifyTagValueNameResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_MODIFYTAGVALUENAMERESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTenantPrimaryZoneRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTenantPrimaryZoneRequest.h index 5a74364a2..83f5ff5a0 100644 --- a/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTenantPrimaryZoneRequest.h +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/ModifyTenantPrimaryZoneRequest.h @@ -46,6 +46,8 @@ public: void setPrimaryZone(const std::string &primaryZone); std::string getVpcId() const; void setVpcId(const std::string &vpcId); + std::string getUserVpcOwnerId() const; + void setUserVpcOwnerId(const std::string &userVpcOwnerId); std::string getUserDirectVSwitchId() const; void setUserDirectVSwitchId(const std::string &userDirectVSwitchId); @@ -58,6 +60,7 @@ private: std::string instanceId_; std::string primaryZone_; std::string vpcId_; + std::string userVpcOwnerId_; std::string userDirectVSwitchId_; }; } // namespace Model diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.h new file mode 100644 index 000000000..6b9f05d2c --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.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_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGREQUEST_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OceanBasePro { +namespace Model { +class ALIBABACLOUD_OCEANBASEPRO_EXPORT UpdateProjectConfigRequest : public RpcServiceRequest { +public: + struct ReverseIncrTransferConfig { + int throttleRps; + std::string string; + std::vector supportDDLTypes; + int throttleIOPS; + std::string string; + std::vector recordTypeWhiteList; + int incrSyncThreadCount; + }; + struct FullTransferConfig { + int throttleRps; + int writeWorkerNum; + int readWorkerNum; + int throttleIOPS; + }; + struct IncrTransferConfig { + int throttleRps; + std::string string; + std::vector supportDDLTypes; + int throttleIOPS; + std::string string; + std::vector recordTypeWhiteList; + int incrSyncThreadCount; + }; + UpdateProjectConfigRequest(); + ~UpdateProjectConfigRequest(); + ReverseIncrTransferConfig getReverseIncrTransferConfig() const; + void setReverseIncrTransferConfig(const ReverseIncrTransferConfig &reverseIncrTransferConfig); + FullTransferConfig getFullTransferConfig() const; + void setFullTransferConfig(const FullTransferConfig &fullTransferConfig); + std::string getId() const; + void setId(const std::string &id); + IncrTransferConfig getIncrTransferConfig() const; + void setIncrTransferConfig(const IncrTransferConfig &incrTransferConfig); + +private: + ReverseIncrTransferConfig reverseIncrTransferConfig_; + FullTransferConfig fullTransferConfig_; + std::string id_; + IncrTransferConfig incrTransferConfig_; +}; +} // namespace Model +} // namespace OceanBasePro +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGREQUEST_H_ diff --git a/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.h b/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.h new file mode 100644 index 000000000..7528ea5b3 --- /dev/null +++ b/oceanbasepro/include/alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.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_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGRESULT_H_ +#define ALIBABACLOUD_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OceanBasePro + { + namespace Model + { + class ALIBABACLOUD_OCEANBASEPRO_EXPORT UpdateProjectConfigResult : public ServiceResult + { + public: + + + UpdateProjectConfigResult(); + explicit UpdateProjectConfigResult(const std::string &payload); + ~UpdateProjectConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_UPDATEPROJECTCONFIGRESULT_H_ \ No newline at end of file diff --git a/oceanbasepro/src/OceanBaseProClient.cc b/oceanbasepro/src/OceanBaseProClient.cc index 112bbe1c5..356bb8258 100644 --- a/oceanbasepro/src/OceanBaseProClient.cc +++ b/oceanbasepro/src/OceanBaseProClient.cc @@ -51,6 +51,42 @@ OceanBaseProClient::OceanBaseProClient(const std::string & accessKeyId, const st OceanBaseProClient::~OceanBaseProClient() {} +OceanBaseProClient::BatchKillProcessListOutcome OceanBaseProClient::batchKillProcessList(const BatchKillProcessListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return BatchKillProcessListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return BatchKillProcessListOutcome(BatchKillProcessListResult(outcome.result())); + else + return BatchKillProcessListOutcome(outcome.error()); +} + +void OceanBaseProClient::batchKillProcessListAsync(const BatchKillProcessListRequest& request, const BatchKillProcessListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, batchKillProcessList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::BatchKillProcessListOutcomeCallable OceanBaseProClient::batchKillProcessListCallable(const BatchKillProcessListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->batchKillProcessList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::CancelProjectModifyRecordOutcome OceanBaseProClient::cancelProjectModifyRecord(const CancelProjectModifyRecordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +519,78 @@ OceanBaseProClient::CreateSecurityIpGroupOutcomeCallable OceanBaseProClient::cre return task->get_future(); } +OceanBaseProClient::CreateTagOutcome OceanBaseProClient::createTag(const CreateTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagOutcome(CreateTagResult(outcome.result())); + else + return CreateTagOutcome(outcome.error()); +} + +void OceanBaseProClient::createTagAsync(const CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::CreateTagOutcomeCallable OceanBaseProClient::createTagCallable(const CreateTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OceanBaseProClient::CreateTagValueOutcome OceanBaseProClient::createTagValue(const CreateTagValueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagValueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagValueOutcome(CreateTagValueResult(outcome.result())); + else + return CreateTagValueOutcome(outcome.error()); +} + +void OceanBaseProClient::createTagValueAsync(const CreateTagValueRequest& request, const CreateTagValueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagValue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::CreateTagValueOutcomeCallable OceanBaseProClient::createTagValueCallable(const CreateTagValueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagValue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::CreateTenantOutcome OceanBaseProClient::createTenant(const CreateTenantRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +915,78 @@ OceanBaseProClient::DeleteSecurityIpGroupOutcomeCallable OceanBaseProClient::del return task->get_future(); } +OceanBaseProClient::DeleteTagOutcome OceanBaseProClient::deleteTag(const DeleteTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagOutcome(DeleteTagResult(outcome.result())); + else + return DeleteTagOutcome(outcome.error()); +} + +void OceanBaseProClient::deleteTagAsync(const DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::DeleteTagOutcomeCallable OceanBaseProClient::deleteTagCallable(const DeleteTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OceanBaseProClient::DeleteTagValueOutcome OceanBaseProClient::deleteTagValue(const DeleteTagValueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagValueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagValueOutcome(DeleteTagValueResult(outcome.result())); + else + return DeleteTagValueOutcome(outcome.error()); +} + +void OceanBaseProClient::deleteTagValueAsync(const DeleteTagValueRequest& request, const DeleteTagValueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagValue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::DeleteTagValueOutcomeCallable OceanBaseProClient::deleteTagValueCallable(const DeleteTagValueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagValue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::DeleteTenantSecurityIpGroupOutcome OceanBaseProClient::deleteTenantSecurityIpGroup(const DeleteTenantSecurityIpGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +2103,42 @@ OceanBaseProClient::DescribeParametersHistoryOutcomeCallable OceanBaseProClient: return task->get_future(); } +OceanBaseProClient::DescribeProcessStatsCompositionOutcome OceanBaseProClient::describeProcessStatsComposition(const DescribeProcessStatsCompositionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProcessStatsCompositionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProcessStatsCompositionOutcome(DescribeProcessStatsCompositionResult(outcome.result())); + else + return DescribeProcessStatsCompositionOutcome(outcome.error()); +} + +void OceanBaseProClient::describeProcessStatsCompositionAsync(const DescribeProcessStatsCompositionRequest& request, const DescribeProcessStatsCompositionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProcessStatsComposition(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::DescribeProcessStatsCompositionOutcomeCallable OceanBaseProClient::describeProcessStatsCompositionCallable(const DescribeProcessStatsCompositionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProcessStatsComposition(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::DescribeProjectOutcome OceanBaseProClient::describeProject(const DescribeProjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2643,42 @@ OceanBaseProClient::DescribeSlowSQLListOutcomeCallable OceanBaseProClient::descr return task->get_future(); } +OceanBaseProClient::DescribeTagValuesOutcome OceanBaseProClient::describeTagValues(const DescribeTagValuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagValuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagValuesOutcome(DescribeTagValuesResult(outcome.result())); + else + return DescribeTagValuesOutcome(outcome.error()); +} + +void OceanBaseProClient::describeTagValuesAsync(const DescribeTagValuesRequest& request, const DescribeTagValuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTagValues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::DescribeTagValuesOutcomeCallable OceanBaseProClient::describeTagValuesCallable(const DescribeTagValuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTagValues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::DescribeTenantOutcome OceanBaseProClient::describeTenant(const DescribeTenantRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,6 +3759,78 @@ OceanBaseProClient::ModifySecurityIpsOutcomeCallable OceanBaseProClient::modifyS return task->get_future(); } +OceanBaseProClient::ModifyTagNameOutcome OceanBaseProClient::modifyTagName(const ModifyTagNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTagNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTagNameOutcome(ModifyTagNameResult(outcome.result())); + else + return ModifyTagNameOutcome(outcome.error()); +} + +void OceanBaseProClient::modifyTagNameAsync(const ModifyTagNameRequest& request, const ModifyTagNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTagName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::ModifyTagNameOutcomeCallable OceanBaseProClient::modifyTagNameCallable(const ModifyTagNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTagName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OceanBaseProClient::ModifyTagValueNameOutcome OceanBaseProClient::modifyTagValueName(const ModifyTagValueNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyTagValueNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyTagValueNameOutcome(ModifyTagValueNameResult(outcome.result())); + else + return ModifyTagValueNameOutcome(outcome.error()); +} + +void OceanBaseProClient::modifyTagValueNameAsync(const ModifyTagValueNameRequest& request, const ModifyTagValueNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyTagValueName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::ModifyTagValueNameOutcomeCallable OceanBaseProClient::modifyTagValueNameCallable(const ModifyTagValueNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyTagValueName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OceanBaseProClient::ModifyTenantEncryptionOutcome OceanBaseProClient::modifyTenantEncryption(const ModifyTenantEncryptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4191,3 +4515,39 @@ OceanBaseProClient::SwitchoverInstanceOutcomeCallable OceanBaseProClient::switch return task->get_future(); } +OceanBaseProClient::UpdateProjectConfigOutcome OceanBaseProClient::updateProjectConfig(const UpdateProjectConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectConfigOutcome(UpdateProjectConfigResult(outcome.result())); + else + return UpdateProjectConfigOutcome(outcome.error()); +} + +void OceanBaseProClient::updateProjectConfigAsync(const UpdateProjectConfigRequest& request, const UpdateProjectConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProjectConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OceanBaseProClient::UpdateProjectConfigOutcomeCallable OceanBaseProClient::updateProjectConfigCallable(const UpdateProjectConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProjectConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/oceanbasepro/src/model/BatchKillProcessListRequest.cc b/oceanbasepro/src/model/BatchKillProcessListRequest.cc new file mode 100644 index 000000000..671a890b9 --- /dev/null +++ b/oceanbasepro/src/model/BatchKillProcessListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OceanBasePro::Model::BatchKillProcessListRequest; + +BatchKillProcessListRequest::BatchKillProcessListRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "BatchKillProcessList") { + setMethod(HttpRequest::Method::Post); +} + +BatchKillProcessListRequest::~BatchKillProcessListRequest() {} + +std::string BatchKillProcessListRequest::getSessionList() const { + return sessionList_; +} + +void BatchKillProcessListRequest::setSessionList(const std::string &sessionList) { + sessionList_ = sessionList; + setBodyParameter(std::string("SessionList"), sessionList); +} + +std::string BatchKillProcessListRequest::getInstanceId() const { + return instanceId_; +} + +void BatchKillProcessListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setBodyParameter(std::string("InstanceId"), instanceId); +} + +std::string BatchKillProcessListRequest::getTenantId() const { + return tenantId_; +} + +void BatchKillProcessListRequest::setTenantId(const std::string &tenantId) { + tenantId_ = tenantId; + setBodyParameter(std::string("TenantId"), tenantId); +} + diff --git a/oceanbasepro/src/model/BatchKillProcessListResult.cc b/oceanbasepro/src/model/BatchKillProcessListResult.cc new file mode 100644 index 000000000..96c7bef35 --- /dev/null +++ b/oceanbasepro/src/model/BatchKillProcessListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +BatchKillProcessListResult::BatchKillProcessListResult() : + ServiceResult() +{} + +BatchKillProcessListResult::BatchKillProcessListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +BatchKillProcessListResult::~BatchKillProcessListResult() +{} + +void BatchKillProcessListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["Success"].isNull()) + dataObject.success = valueDataDataItem["Success"].asString() == "true"; + data_.push_back(dataObject); + } + +} + +std::vector BatchKillProcessListResult::getData()const +{ + return data_; +} + diff --git a/oceanbasepro/src/model/CreateInstanceRequest.cc b/oceanbasepro/src/model/CreateInstanceRequest.cc index c26773331..f902bdf6b 100644 --- a/oceanbasepro/src/model/CreateInstanceRequest.cc +++ b/oceanbasepro/src/model/CreateInstanceRequest.cc @@ -160,6 +160,15 @@ void CreateInstanceRequest::setSeries(const std::string &series) { setBodyParameter(std::string("Series"), series); } +std::string CreateInstanceRequest::getCpuArch() const { + return cpuArch_; +} + +void CreateInstanceRequest::setCpuArch(const std::string &cpuArch) { + cpuArch_ = cpuArch; + setBodyParameter(std::string("CpuArch"), cpuArch); +} + std::string CreateInstanceRequest::getPrimaryInstance() const { return primaryInstance_; } diff --git a/oceanbasepro/src/model/CreateProjectRequest.cc b/oceanbasepro/src/model/CreateProjectRequest.cc index 10f79c94e..cd88ed056 100644 --- a/oceanbasepro/src/model/CreateProjectRequest.cc +++ b/oceanbasepro/src/model/CreateProjectRequest.cc @@ -77,9 +77,13 @@ CreateProjectRequest::FullTransferConfig CreateProjectRequest::getFullTransferCo void CreateProjectRequest::setFullTransferConfig(const CreateProjectRequest::FullTransferConfig &fullTransferConfig) { fullTransferConfig_ = fullTransferConfig; setBodyParameter(std::string("FullTransferConfig") + ".NonePkUkTruncateDstTable", fullTransferConfig.nonePkUkTruncateDstTable ? "true" : "false"); + setBodyParameter(std::string("FullTransferConfig") + ".ThrottleRps", std::to_string(fullTransferConfig.throttleRps)); setBodyParameter(std::string("FullTransferConfig") + ".FullVerifySpeedMode", fullTransferConfig.fullVerifySpeedMode); + setBodyParameter(std::string("FullTransferConfig") + ".WriteWorkerNum", std::to_string(fullTransferConfig.writeWorkerNum)); + setBodyParameter(std::string("FullTransferConfig") + ".ReadWorkerNum", std::to_string(fullTransferConfig.readWorkerNum)); setBodyParameter(std::string("FullTransferConfig") + ".FullTransferSpeedMode", fullTransferConfig.fullTransferSpeedMode); setBodyParameter(std::string("FullTransferConfig") + ".AllowDestTableNotEmpty", fullTransferConfig.allowDestTableNotEmpty ? "true" : "false"); + setBodyParameter(std::string("FullTransferConfig") + ".ThrottleIOPS", std::to_string(fullTransferConfig.throttleIOPS)); } bool CreateProjectRequest::getEnableStructTransfer() const { @@ -333,6 +337,27 @@ void CreateProjectRequest::setStructTransferConfig(const CreateProjectRequest::S setBodyParameter(std::string("StructTransferConfig") + ".DeferIndexCreation", structTransferConfig.deferIndexCreation ? "true" : "false"); } +CreateProjectRequest::ReverseIncrTransferConfig CreateProjectRequest::getReverseIncrTransferConfig() const { + return reverseIncrTransferConfig_; +} + +void CreateProjectRequest::setReverseIncrTransferConfig(const CreateProjectRequest::ReverseIncrTransferConfig &reverseIncrTransferConfig) { + reverseIncrTransferConfig_ = reverseIncrTransferConfig; + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".ThrottleRps", std::to_string(reverseIncrTransferConfig.throttleRps)); + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".EnableSequencingWithinTxn", reverseIncrTransferConfig.enableSequencingWithinTxn ? "true" : "false"); + for(int dep1 = 0; dep1 != reverseIncrTransferConfig.supportDDLTypes.size(); dep1++) { + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".SupportDDLTypes." + std::to_string(dep1 + 1), reverseIncrTransferConfig.supportDDLTypes[dep1]); + } + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".StoreLogKeptHour", std::to_string(reverseIncrTransferConfig.storeLogKeptHour)); + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".StartTimestamp", reverseIncrTransferConfig.startTimestamp); + for(int dep1 = 0; dep1 != reverseIncrTransferConfig.recordTypeWhiteList.size(); dep1++) { + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".RecordTypeWhiteList." + std::to_string(dep1 + 1), reverseIncrTransferConfig.recordTypeWhiteList[dep1]); + } + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".IncrSyncConcurrency", std::to_string(reverseIncrTransferConfig.incrSyncConcurrency)); + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".EnableIncrSyncStatistics", reverseIncrTransferConfig.enableIncrSyncStatistics ? "true" : "false"); + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".ThrottleIOPS", std::to_string(reverseIncrTransferConfig.throttleIOPS)); +} + bool CreateProjectRequest::getEnableIncrTransfer() const { return enableIncrTransfer_; } @@ -386,7 +411,11 @@ CreateProjectRequest::IncrTransferConfig CreateProjectRequest::getIncrTransferCo void CreateProjectRequest::setIncrTransferConfig(const CreateProjectRequest::IncrTransferConfig &incrTransferConfig) { incrTransferConfig_ = incrTransferConfig; + setBodyParameter(std::string("IncrTransferConfig") + ".ThrottleRps", std::to_string(incrTransferConfig.throttleRps)); setBodyParameter(std::string("IncrTransferConfig") + ".EnableSequencingWithinTxn", incrTransferConfig.enableSequencingWithinTxn ? "true" : "false"); + for(int dep1 = 0; dep1 != incrTransferConfig.supportDDLTypes.size(); dep1++) { + setBodyParameter(std::string("IncrTransferConfig") + ".SupportDDLTypes." + std::to_string(dep1 + 1), incrTransferConfig.supportDDLTypes[dep1]); + } setBodyParameter(std::string("IncrTransferConfig") + ".StoreLogKeptHour", std::to_string(incrTransferConfig.storeLogKeptHour)); setBodyParameter(std::string("IncrTransferConfig") + ".StartTimestamp", incrTransferConfig.startTimestamp); for(int dep1 = 0; dep1 != incrTransferConfig.recordTypeWhiteList.size(); dep1++) { @@ -394,6 +423,7 @@ void CreateProjectRequest::setIncrTransferConfig(const CreateProjectRequest::Inc } setBodyParameter(std::string("IncrTransferConfig") + ".IncrSyncConcurrency", std::to_string(incrTransferConfig.incrSyncConcurrency)); setBodyParameter(std::string("IncrTransferConfig") + ".EnableIncrSyncStatistics", incrTransferConfig.enableIncrSyncStatistics ? "true" : "false"); + setBodyParameter(std::string("IncrTransferConfig") + ".ThrottleIOPS", std::to_string(incrTransferConfig.throttleIOPS)); } bool CreateProjectRequest::getEnableReverseIncrTransfer() const { diff --git a/oceanbasepro/src/model/CreateTagRequest.cc b/oceanbasepro/src/model/CreateTagRequest.cc new file mode 100644 index 000000000..8a8608410 --- /dev/null +++ b/oceanbasepro/src/model/CreateTagRequest.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 + +using AlibabaCloud::OceanBasePro::Model::CreateTagRequest; + +CreateTagRequest::CreateTagRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateTag") { + setMethod(HttpRequest::Method::Post); +} + +CreateTagRequest::~CreateTagRequest() {} + +std::string CreateTagRequest::getClientToken() const { + return clientToken_; +} + +void CreateTagRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateTagRequest::getKey() const { + return key_; +} + +void CreateTagRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/CreateTagResult.cc b/oceanbasepro/src/model/CreateTagResult.cc new file mode 100644 index 000000000..4221e754b --- /dev/null +++ b/oceanbasepro/src/model/CreateTagResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +CreateTagResult::CreateTagResult() : + ServiceResult() +{} + +CreateTagResult::CreateTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagResult::~CreateTagResult() +{} + +void CreateTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateTagResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/CreateTagValueRequest.cc b/oceanbasepro/src/model/CreateTagValueRequest.cc new file mode 100644 index 000000000..2c6ff479f --- /dev/null +++ b/oceanbasepro/src/model/CreateTagValueRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OceanBasePro::Model::CreateTagValueRequest; + +CreateTagValueRequest::CreateTagValueRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "CreateTagValue") { + setMethod(HttpRequest::Method::Post); +} + +CreateTagValueRequest::~CreateTagValueRequest() {} + +std::string CreateTagValueRequest::getClientToken() const { + return clientToken_; +} + +void CreateTagValueRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setBodyParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateTagValueRequest::getValue() const { + return value_; +} + +void CreateTagValueRequest::setValue(const std::string &value) { + value_ = value; + setBodyParameter(std::string("Value"), value); +} + +std::string CreateTagValueRequest::getKey() const { + return key_; +} + +void CreateTagValueRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/CreateTagValueResult.cc b/oceanbasepro/src/model/CreateTagValueResult.cc new file mode 100644 index 000000000..1a25c52e6 --- /dev/null +++ b/oceanbasepro/src/model/CreateTagValueResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +CreateTagValueResult::CreateTagValueResult() : + ServiceResult() +{} + +CreateTagValueResult::CreateTagValueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTagValueResult::~CreateTagValueResult() +{} + +void CreateTagValueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateTagValueResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/CreateTenantRequest.cc b/oceanbasepro/src/model/CreateTenantRequest.cc index fcb81ea89..71f00c721 100644 --- a/oceanbasepro/src/model/CreateTenantRequest.cc +++ b/oceanbasepro/src/model/CreateTenantRequest.cc @@ -133,6 +133,26 @@ void CreateTenantRequest::setPrimaryZone(const std::string &primaryZone) { setBodyParameter(std::string("PrimaryZone"), primaryZone); } +std::string CreateTenantRequest::getUserVpcOwnerId() const { + return userVpcOwnerId_; +} + +void CreateTenantRequest::setUserVpcOwnerId(const std::string &userVpcOwnerId) { + userVpcOwnerId_ = userVpcOwnerId; + setBodyParameter(std::string("UserVpcOwnerId"), userVpcOwnerId); +} + +std::map CreateTenantRequest::getCreateParams() const { + return createParams_; +} + +void CreateTenantRequest::setCreateParams(const std::map &createParams) { + createParams_ = createParams; + for(auto const &iter1 : createParams) { + setBodyParameter(std::string("CreateParams") + "." + iter1.first, iter1.second); + } +} + std::string CreateTenantRequest::getTenantName() const { return tenantName_; } diff --git a/oceanbasepro/src/model/DeleteTagRequest.cc b/oceanbasepro/src/model/DeleteTagRequest.cc new file mode 100644 index 000000000..896c5ad67 --- /dev/null +++ b/oceanbasepro/src/model/DeleteTagRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::OceanBasePro::Model::DeleteTagRequest; + +DeleteTagRequest::DeleteTagRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "DeleteTag") { + setMethod(HttpRequest::Method::Post); +} + +DeleteTagRequest::~DeleteTagRequest() {} + +std::string DeleteTagRequest::getKey() const { + return key_; +} + +void DeleteTagRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/DeleteTagResult.cc b/oceanbasepro/src/model/DeleteTagResult.cc new file mode 100644 index 000000000..c8d3dc8de --- /dev/null +++ b/oceanbasepro/src/model/DeleteTagResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +DeleteTagResult::DeleteTagResult() : + ServiceResult() +{} + +DeleteTagResult::DeleteTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagResult::~DeleteTagResult() +{} + +void DeleteTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteTagResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/DeleteTagValueRequest.cc b/oceanbasepro/src/model/DeleteTagValueRequest.cc new file mode 100644 index 000000000..0e0017e48 --- /dev/null +++ b/oceanbasepro/src/model/DeleteTagValueRequest.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 + +using AlibabaCloud::OceanBasePro::Model::DeleteTagValueRequest; + +DeleteTagValueRequest::DeleteTagValueRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "DeleteTagValue") { + setMethod(HttpRequest::Method::Post); +} + +DeleteTagValueRequest::~DeleteTagValueRequest() {} + +std::string DeleteTagValueRequest::getValue() const { + return value_; +} + +void DeleteTagValueRequest::setValue(const std::string &value) { + value_ = value; + setBodyParameter(std::string("Value"), value); +} + +std::string DeleteTagValueRequest::getKey() const { + return key_; +} + +void DeleteTagValueRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/DeleteTagValueResult.cc b/oceanbasepro/src/model/DeleteTagValueResult.cc new file mode 100644 index 000000000..b48ae13db --- /dev/null +++ b/oceanbasepro/src/model/DeleteTagValueResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +DeleteTagValueResult::DeleteTagValueResult() : + ServiceResult() +{} + +DeleteTagValueResult::DeleteTagValueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTagValueResult::~DeleteTagValueResult() +{} + +void DeleteTagValueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteTagValueResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/DescribeAvailableZoneRequest.cc b/oceanbasepro/src/model/DescribeAvailableZoneRequest.cc index 73c80f784..8d5f547c7 100644 --- a/oceanbasepro/src/model/DescribeAvailableZoneRequest.cc +++ b/oceanbasepro/src/model/DescribeAvailableZoneRequest.cc @@ -34,6 +34,15 @@ void DescribeAvailableZoneRequest::setSpec(const std::string &spec) { setBodyParameter(std::string("Spec"), spec); } +std::string DescribeAvailableZoneRequest::getInstanceType() const { + return instanceType_; +} + +void DescribeAvailableZoneRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setBodyParameter(std::string("InstanceType"), instanceType); +} + std::string DescribeAvailableZoneRequest::getObVersion() const { return obVersion_; } @@ -52,13 +61,13 @@ void DescribeAvailableZoneRequest::setSeries(const std::string &series) { setBodyParameter(std::string("Series"), series); } -std::string DescribeAvailableZoneRequest::getInstanceType() const { - return instanceType_; +std::string DescribeAvailableZoneRequest::getCpuArch() const { + return cpuArch_; } -void DescribeAvailableZoneRequest::setInstanceType(const std::string &instanceType) { - instanceType_ = instanceType; - setBodyParameter(std::string("InstanceType"), instanceType); +void DescribeAvailableZoneRequest::setCpuArch(const std::string &cpuArch) { + cpuArch_ = cpuArch; + setBodyParameter(std::string("CpuArch"), cpuArch); } std::string DescribeAvailableZoneRequest::getDeployType() const { diff --git a/oceanbasepro/src/model/DescribeAvailableZoneResult.cc b/oceanbasepro/src/model/DescribeAvailableZoneResult.cc index 8ece9a694..2df230b2e 100644 --- a/oceanbasepro/src/model/DescribeAvailableZoneResult.cc +++ b/oceanbasepro/src/model/DescribeAvailableZoneResult.cc @@ -56,6 +56,8 @@ void DescribeAvailableZoneResult::parse(const std::string &payload) availableZonesItemObject.instanceType = dataNodeAvailableZonesAvailableZonesItem["InstanceType"].asString(); if(!dataNodeAvailableZonesAvailableZonesItem["Series"].isNull()) availableZonesItemObject.series = dataNodeAvailableZonesAvailableZonesItem["Series"].asString(); + if(!dataNodeAvailableZonesAvailableZonesItem["CpuArch"].isNull()) + availableZonesItemObject.cpuArch = dataNodeAvailableZonesAvailableZonesItem["CpuArch"].asString(); auto allSupportSpecificationsNode = dataNodeAvailableZonesAvailableZonesItem["SupportSpecifications"]["SupportSpecificationsItem"]; for (auto dataNodeAvailableZonesAvailableZonesItemSupportSpecificationsSupportSpecificationsItem : allSupportSpecificationsNode) { diff --git a/oceanbasepro/src/model/DescribeInstanceResult.cc b/oceanbasepro/src/model/DescribeInstanceResult.cc index 28e5e18a3..20ad14137 100644 --- a/oceanbasepro/src/model/DescribeInstanceResult.cc +++ b/oceanbasepro/src/model/DescribeInstanceResult.cc @@ -112,6 +112,10 @@ void DescribeInstanceResult::parse(const std::string &payload) instance_.enableReadOnlyReplica = instanceNode["EnableReadOnlyReplica"].asString() == "true"; if(!instanceNode["EnableReadOnlyReplicaManagement"].isNull()) instance_.enableReadOnlyReplicaManagement = instanceNode["EnableReadOnlyReplicaManagement"].asString() == "true"; + if(!instanceNode["PrimaryInstance"].isNull()) + instance_.primaryInstance = instanceNode["PrimaryInstance"].asString(); + if(!instanceNode["PrimaryRegion"].isNull()) + instance_.primaryRegion = instanceNode["PrimaryRegion"].asString(); auto resourceNode = instanceNode["Resource"]; if(!resourceNode["UnitCount"].isNull()) instance_.resource.unitCount = std::stol(resourceNode["UnitCount"].asString()); diff --git a/oceanbasepro/src/model/DescribeInstanceTopologyResult.cc b/oceanbasepro/src/model/DescribeInstanceTopologyResult.cc index 5282a7cb7..b76aa6276 100644 --- a/oceanbasepro/src/model/DescribeInstanceTopologyResult.cc +++ b/oceanbasepro/src/model/DescribeInstanceTopologyResult.cc @@ -69,7 +69,7 @@ void DescribeInstanceTopologyResult::parse(const std::string &payload) if(!instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["TenantZoneRole"].isNull()) tenantZonesObject.tenantZoneRole = instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["TenantZoneRole"].asString(); if(!instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["IsPrimaryTenantZone"].isNull()) - tenantZonesObject.isPrimaryTenantZone = instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["IsPrimaryTenantZone"].asString(); + tenantZonesObject.isPrimaryTenantZone = instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["IsPrimaryTenantZone"].asString() == "true"; if(!instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["TenantZoneId"].isNull()) tenantZonesObject.tenantZoneId = instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["TenantZoneId"].asString(); auto allUnitsNode = instanceTopologyNodeTenantsTenantsItemTenantZonesTenantZonesItem["Units"]["UnitsItem"]; diff --git a/oceanbasepro/src/model/DescribeInstancesResult.cc b/oceanbasepro/src/model/DescribeInstancesResult.cc index d0995a771..70d6233df 100644 --- a/oceanbasepro/src/model/DescribeInstancesResult.cc +++ b/oceanbasepro/src/model/DescribeInstancesResult.cc @@ -102,31 +102,31 @@ void DescribeInstancesResult::parse(const std::string &payload) instancesObject.resource.unitCount = std::stol(resourceNode["UnitCount"].asString()); auto cpuNode = resourceNode["Cpu"]; if(!cpuNode["TotalCpu"].isNull()) - instancesObject.resource.cpu.totalCpu = std::stol(cpuNode["TotalCpu"].asString()); + instancesObject.resource.cpu.totalCpu = cpuNode["TotalCpu"].asString(); if(!cpuNode["UsedCpu"].isNull()) - instancesObject.resource.cpu.usedCpu = std::stol(cpuNode["UsedCpu"].asString()); + instancesObject.resource.cpu.usedCpu = cpuNode["UsedCpu"].asString(); if(!cpuNode["UnitCpu"].isNull()) - instancesObject.resource.cpu.unitCpu = std::stol(cpuNode["UnitCpu"].asString()); + instancesObject.resource.cpu.unitCpu = cpuNode["UnitCpu"].asString(); if(!cpuNode["OriginalTotalCpu"].isNull()) - instancesObject.resource.cpu.originalTotalCpu = std::stol(cpuNode["OriginalTotalCpu"].asString()); + instancesObject.resource.cpu.originalTotalCpu = cpuNode["OriginalTotalCpu"].asString(); auto memoryNode = resourceNode["Memory"]; if(!memoryNode["TotalMemory"].isNull()) - instancesObject.resource.memory.totalMemory = std::stol(memoryNode["TotalMemory"].asString()); + instancesObject.resource.memory.totalMemory = memoryNode["TotalMemory"].asString(); if(!memoryNode["UsedMemory"].isNull()) instancesObject.resource.memory.usedMemory = std::stol(memoryNode["UsedMemory"].asString()); if(!memoryNode["UnitMemory"].isNull()) instancesObject.resource.memory.unitMemory = std::stol(memoryNode["UnitMemory"].asString()); if(!memoryNode["OriginalTotalMemory"].isNull()) - instancesObject.resource.memory.originalTotalMemory = std::stol(memoryNode["OriginalTotalMemory"].asString()); + instancesObject.resource.memory.originalTotalMemory = memoryNode["OriginalTotalMemory"].asString(); auto diskSizeNode = resourceNode["DiskSize"]; if(!diskSizeNode["TotalDiskSize"].isNull()) - instancesObject.resource.diskSize.totalDiskSize = std::stol(diskSizeNode["TotalDiskSize"].asString()); + instancesObject.resource.diskSize.totalDiskSize = diskSizeNode["TotalDiskSize"].asString(); if(!diskSizeNode["UsedDiskSize"].isNull()) instancesObject.resource.diskSize.usedDiskSize = std::stol(diskSizeNode["UsedDiskSize"].asString()); if(!diskSizeNode["UnitDiskSize"].isNull()) - instancesObject.resource.diskSize.unitDiskSize = std::stol(diskSizeNode["UnitDiskSize"].asString()); + instancesObject.resource.diskSize.unitDiskSize = diskSizeNode["UnitDiskSize"].asString(); if(!diskSizeNode["OriginalTotalDiskSize"].isNull()) - instancesObject.resource.diskSize.originalTotalDiskSize = std::stol(diskSizeNode["OriginalTotalDiskSize"].asString()); + instancesObject.resource.diskSize.originalTotalDiskSize = diskSizeNode["OriginalTotalDiskSize"].asString(); auto capacityUnitNode = resourceNode["CapacityUnit"]; if(!capacityUnitNode["MaxCapacityUnit"].isNull()) instancesObject.resource.capacityUnit.maxCapacityUnit = std::stoi(capacityUnitNode["MaxCapacityUnit"].asString()); @@ -138,17 +138,17 @@ void DescribeInstancesResult::parse(const std::string &payload) if(!dataDiskAutoScaleConfigNode["AutoScale"].isNull()) instancesObject.dataDiskAutoScaleConfig.autoScale = dataDiskAutoScaleConfigNode["AutoScale"].asString() == "true"; if(!dataDiskAutoScaleConfigNode["Upperbound"].isNull()) - instancesObject.dataDiskAutoScaleConfig.upperbound = std::stol(dataDiskAutoScaleConfigNode["Upperbound"].asString()); + instancesObject.dataDiskAutoScaleConfig.upperbound = dataDiskAutoScaleConfigNode["Upperbound"].asString(); if(!dataDiskAutoScaleConfigNode["UpperThreshold"].isNull()) - instancesObject.dataDiskAutoScaleConfig.upperThreshold = std::stol(dataDiskAutoScaleConfigNode["UpperThreshold"].asString()); + instancesObject.dataDiskAutoScaleConfig.upperThreshold = dataDiskAutoScaleConfigNode["UpperThreshold"].asString(); if(!dataDiskAutoScaleConfigNode["UpperMergeThreshold"].isNull()) - instancesObject.dataDiskAutoScaleConfig.upperMergeThreshold = std::stol(dataDiskAutoScaleConfigNode["UpperMergeThreshold"].asString()); + instancesObject.dataDiskAutoScaleConfig.upperMergeThreshold = dataDiskAutoScaleConfigNode["UpperMergeThreshold"].asString(); if(!dataDiskAutoScaleConfigNode["MaxDiskSize"].isNull()) instancesObject.dataDiskAutoScaleConfig.maxDiskSize = std::stol(dataDiskAutoScaleConfigNode["MaxDiskSize"].asString()); if(!dataDiskAutoScaleConfigNode["ScaleStepInNormal"].isNull()) - instancesObject.dataDiskAutoScaleConfig.scaleStepInNormal = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInNormal"].asString()); + instancesObject.dataDiskAutoScaleConfig.scaleStepInNormal = dataDiskAutoScaleConfigNode["ScaleStepInNormal"].asString(); if(!dataDiskAutoScaleConfigNode["ScaleStepInMerge"].isNull()) - instancesObject.dataDiskAutoScaleConfig.scaleStepInMerge = std::stol(dataDiskAutoScaleConfigNode["ScaleStepInMerge"].asString()); + instancesObject.dataDiskAutoScaleConfig.scaleStepInMerge = dataDiskAutoScaleConfigNode["ScaleStepInMerge"].asString(); if(!dataDiskAutoScaleConfigNode["UpperScaleStrategy"].isNull()) instancesObject.dataDiskAutoScaleConfig.upperScaleStrategy = dataDiskAutoScaleConfigNode["UpperScaleStrategy"].asString(); auto allAvailableZones = value["AvailableZones"]["AvailableZones"]; diff --git a/oceanbasepro/src/model/DescribeMetricsDataResult.cc b/oceanbasepro/src/model/DescribeMetricsDataResult.cc index edb7774f2..0ed936a43 100644 --- a/oceanbasepro/src/model/DescribeMetricsDataResult.cc +++ b/oceanbasepro/src/model/DescribeMetricsDataResult.cc @@ -39,12 +39,13 @@ void DescribeMetricsDataResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); } -std::string DescribeMetricsDataResult::getData()const +std::vector DescribeMetricsDataResult::getData()const { return data_; } diff --git a/oceanbasepro/src/model/DescribeOasSQLPlansRequest.cc b/oceanbasepro/src/model/DescribeOasSQLPlansRequest.cc index a70aa519c..d856342a1 100644 --- a/oceanbasepro/src/model/DescribeOasSQLPlansRequest.cc +++ b/oceanbasepro/src/model/DescribeOasSQLPlansRequest.cc @@ -25,6 +25,15 @@ DescribeOasSQLPlansRequest::DescribeOasSQLPlansRequest() DescribeOasSQLPlansRequest::~DescribeOasSQLPlansRequest() {} +bool DescribeOasSQLPlansRequest::getReturnBriefInfo() const { + return returnBriefInfo_; +} + +void DescribeOasSQLPlansRequest::setReturnBriefInfo(bool returnBriefInfo) { + returnBriefInfo_ = returnBriefInfo; + setBodyParameter(std::string("ReturnBriefInfo"), returnBriefInfo ? "true" : "false"); +} + std::string DescribeOasSQLPlansRequest::getStartTime() const { return startTime_; } @@ -34,6 +43,15 @@ void DescribeOasSQLPlansRequest::setStartTime(const std::string &startTime) { setBodyParameter(std::string("StartTime"), startTime); } +std::string DescribeOasSQLPlansRequest::getPlanUnionHash() const { + return planUnionHash_; +} + +void DescribeOasSQLPlansRequest::setPlanUnionHash(const std::string &planUnionHash) { + planUnionHash_ = planUnionHash; + setBodyParameter(std::string("PlanUnionHash"), planUnionHash); +} + bool DescribeOasSQLPlansRequest::getDynamicSql() const { return dynamicSql_; } diff --git a/oceanbasepro/src/model/DescribeOasSlowSQLListResult.cc b/oceanbasepro/src/model/DescribeOasSlowSQLListResult.cc index b752ae816..2fa3f5a62 100644 --- a/oceanbasepro/src/model/DescribeOasSlowSQLListResult.cc +++ b/oceanbasepro/src/model/DescribeOasSlowSQLListResult.cc @@ -66,19 +66,19 @@ void DescribeOasSlowSQLListResult::parse(const std::string &payload) if(!valueDataDataItem["DbName"].isNull()) dataObject.dbName = valueDataDataItem["DbName"].asString(); if(!valueDataDataItem["RetCode4012Count"].isNull()) - dataObject.retCode4012Count = std::stol(valueDataDataItem["RetCode4012Count"].asString()); + dataObject.retCode4012Count = valueDataDataItem["RetCode4012Count"].asString(); if(!valueDataDataItem["RetCode4013Count"].isNull()) - dataObject.retCode4013Count = std::stol(valueDataDataItem["RetCode4013Count"].asString()); + dataObject.retCode4013Count = valueDataDataItem["RetCode4013Count"].asString(); if(!valueDataDataItem["RetCode5001Count"].isNull()) - dataObject.retCode5001Count = std::stol(valueDataDataItem["RetCode5001Count"].asString()); + dataObject.retCode5001Count = valueDataDataItem["RetCode5001Count"].asString(); if(!valueDataDataItem["RetCode5024Count"].isNull()) - dataObject.retCode5024Count = std::stol(valueDataDataItem["RetCode5024Count"].asString()); + dataObject.retCode5024Count = valueDataDataItem["RetCode5024Count"].asString(); if(!valueDataDataItem["RetCode5167Count"].isNull()) - dataObject.retCode5167Count = std::stol(valueDataDataItem["RetCode5167Count"].asString()); + dataObject.retCode5167Count = valueDataDataItem["RetCode5167Count"].asString(); if(!valueDataDataItem["RetCode5217Count"].isNull()) - dataObject.retCode5217Count = std::stol(valueDataDataItem["RetCode5217Count"].asString()); + dataObject.retCode5217Count = valueDataDataItem["RetCode5217Count"].asString(); if(!valueDataDataItem["RetCode6002Count"].isNull()) - dataObject.retCode6002Count = std::stol(valueDataDataItem["RetCode6002Count"].asString()); + dataObject.retCode6002Count = valueDataDataItem["RetCode6002Count"].asString(); if(!valueDataDataItem["FailPercentage"].isNull()) dataObject.failPercentage = valueDataDataItem["FailPercentage"].asString(); if(!valueDataDataItem["SumWaitTime"].isNull()) diff --git a/oceanbasepro/src/model/DescribeOasTopSQLListResult.cc b/oceanbasepro/src/model/DescribeOasTopSQLListResult.cc index 1a46a0377..6eaf67842 100644 --- a/oceanbasepro/src/model/DescribeOasTopSQLListResult.cc +++ b/oceanbasepro/src/model/DescribeOasTopSQLListResult.cc @@ -44,7 +44,7 @@ void DescribeOasTopSQLListResult::parse(const std::string &payload) { DataItem dataObject; if(!valueDataDataItem["Executions"].isNull()) - dataObject.executions = valueDataDataItem["Executions"].asString(); + dataObject.executions = std::stol(valueDataDataItem["Executions"].asString()); if(!valueDataDataItem["RpcCount"].isNull()) dataObject.rpcCount = valueDataDataItem["RpcCount"].asString(); if(!valueDataDataItem["RemotePlans"].isNull()) @@ -208,7 +208,7 @@ void DescribeOasTopSQLListResult::parse(const std::string &payload) { DataItem::SqlListItem sqlListObject; if(!valueDataDataItemSqlListSqlListItem["Executions"].isNull()) - sqlListObject.executions = valueDataDataItemSqlListSqlListItem["Executions"].asString(); + sqlListObject.executions = std::stol(valueDataDataItemSqlListSqlListItem["Executions"].asString()); if(!valueDataDataItemSqlListSqlListItem["RpcCount"].isNull()) sqlListObject.rpcCount = valueDataDataItemSqlListSqlListItem["RpcCount"].asString(); if(!valueDataDataItemSqlListSqlListItem["RemotePlans"].isNull()) diff --git a/oceanbasepro/src/model/DescribeProcessStatsCompositionRequest.cc b/oceanbasepro/src/model/DescribeProcessStatsCompositionRequest.cc new file mode 100644 index 000000000..57c195271 --- /dev/null +++ b/oceanbasepro/src/model/DescribeProcessStatsCompositionRequest.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 + +using AlibabaCloud::OceanBasePro::Model::DescribeProcessStatsCompositionRequest; + +DescribeProcessStatsCompositionRequest::DescribeProcessStatsCompositionRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeProcessStatsComposition") { + setMethod(HttpRequest::Method::Post); +} + +DescribeProcessStatsCompositionRequest::~DescribeProcessStatsCompositionRequest() {} + +std::string DescribeProcessStatsCompositionRequest::getUId() const { + return uId_; +} + +void DescribeProcessStatsCompositionRequest::setUId(const std::string &uId) { + uId_ = uId; + setBodyParameter(std::string("UId"), uId); +} + +std::string DescribeProcessStatsCompositionRequest::getSqlText() const { + return sqlText_; +} + +void DescribeProcessStatsCompositionRequest::setSqlText(const std::string &sqlText) { + sqlText_ = sqlText; + setBodyParameter(std::string("SqlText"), sqlText); +} + +std::string DescribeProcessStatsCompositionRequest::getClientIp() const { + return clientIp_; +} + +void DescribeProcessStatsCompositionRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setBodyParameter(std::string("ClientIp"), clientIp); +} + +std::string DescribeProcessStatsCompositionRequest::getTenantId() const { + return tenantId_; +} + +void DescribeProcessStatsCompositionRequest::setTenantId(const std::string &tenantId) { + tenantId_ = tenantId; + setBodyParameter(std::string("TenantId"), tenantId); +} + +std::string DescribeProcessStatsCompositionRequest::getServerIp() const { + return serverIp_; +} + +void DescribeProcessStatsCompositionRequest::setServerIp(const std::string &serverIp) { + serverIp_ = serverIp; + setBodyParameter(std::string("ServerIp"), serverIp); +} + +std::string DescribeProcessStatsCompositionRequest::getUsers() const { + return users_; +} + +void DescribeProcessStatsCompositionRequest::setUsers(const std::string &users) { + users_ = users; + setBodyParameter(std::string("Users"), users); +} + +std::string DescribeProcessStatsCompositionRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeProcessStatsCompositionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setBodyParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeProcessStatsCompositionRequest::getStatus() const { + return status_; +} + +void DescribeProcessStatsCompositionRequest::setStatus(const std::string &status) { + status_ = status; + setBodyParameter(std::string("Status"), status); +} + diff --git a/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc b/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc new file mode 100644 index 000000000..ae720cbb5 --- /dev/null +++ b/oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc @@ -0,0 +1,142 @@ +/* + * 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::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +DescribeProcessStatsCompositionResult::DescribeProcessStatsCompositionResult() : + ServiceResult() +{} + +DescribeProcessStatsCompositionResult::DescribeProcessStatsCompositionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProcessStatsCompositionResult::~DescribeProcessStatsCompositionResult() +{} + +void DescribeProcessStatsCompositionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["DataItem"]; + for (auto valueDataDataItem : allDataNode) + { + DataItem dataObject; + if(!valueDataDataItem["TotalSessionCount"].isNull()) + dataObject.totalSessionCount = std::stoi(valueDataDataItem["TotalSessionCount"].asString()); + if(!valueDataDataItem["ActiveSessionCount"].isNull()) + dataObject.activeSessionCount = std::stoi(valueDataDataItem["ActiveSessionCount"].asString()); + if(!valueDataDataItem["IdleSessionCount"].isNull()) + dataObject.idleSessionCount = std::stoi(valueDataDataItem["IdleSessionCount"].asString()); + if(!valueDataDataItem["ObVersion"].isNull()) + dataObject.obVersion = valueDataDataItem["ObVersion"].asString(); + auto allAllProcessListNode = valueDataDataItem["AllProcessList"]["AllProcessListItem"]; + for (auto valueDataDataItemAllProcessListAllProcessListItem : allAllProcessListNode) + { + DataItem::AllProcessListItem allProcessListObject; + if(!valueDataDataItemAllProcessListAllProcessListItem["SqlText"].isNull()) + allProcessListObject.sqlText = valueDataDataItemAllProcessListAllProcessListItem["SqlText"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["TenantId"].isNull()) + allProcessListObject.tenantId = valueDataDataItemAllProcessListAllProcessListItem["TenantId"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["Database"].isNull()) + allProcessListObject.database = valueDataDataItemAllProcessListAllProcessListItem["Database"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["User"].isNull()) + allProcessListObject.user = valueDataDataItemAllProcessListAllProcessListItem["User"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["ExecuteTime"].isNull()) + allProcessListObject.executeTime = std::stol(valueDataDataItemAllProcessListAllProcessListItem["ExecuteTime"].asString()); + if(!valueDataDataItemAllProcessListAllProcessListItem["CpuTime"].isNull()) + allProcessListObject.cpuTime = std::stol(valueDataDataItemAllProcessListAllProcessListItem["CpuTime"].asString()); + if(!valueDataDataItemAllProcessListAllProcessListItem["ServerIp"].isNull()) + allProcessListObject.serverIp = valueDataDataItemAllProcessListAllProcessListItem["ServerIp"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["ClientIp"].isNull()) + allProcessListObject.clientIp = valueDataDataItemAllProcessListAllProcessListItem["ClientIp"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["SessionId"].isNull()) + allProcessListObject.sessionId = std::stol(valueDataDataItemAllProcessListAllProcessListItem["SessionId"].asString()); + if(!valueDataDataItemAllProcessListAllProcessListItem["ProxySessId"].isNull()) + allProcessListObject.proxySessId = valueDataDataItemAllProcessListAllProcessListItem["ProxySessId"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["Command"].isNull()) + allProcessListObject.command = valueDataDataItemAllProcessListAllProcessListItem["Command"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["Status"].isNull()) + allProcessListObject.status = valueDataDataItemAllProcessListAllProcessListItem["Status"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["SqlId"].isNull()) + allProcessListObject.sqlId = valueDataDataItemAllProcessListAllProcessListItem["SqlId"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["TraceId"].isNull()) + allProcessListObject.traceId = valueDataDataItemAllProcessListAllProcessListItem["TraceId"].asString(); + if(!valueDataDataItemAllProcessListAllProcessListItem["PlanId"].isNull()) + allProcessListObject.planId = valueDataDataItemAllProcessListAllProcessListItem["PlanId"].asString(); + dataObject.allProcessList.push_back(allProcessListObject); + } + auto sessionStatisticsNode = value["SessionStatistics"]; + auto allUserStatisticsNode = sessionStatisticsNode["UserStatistics"]["UserStatisticsItem"]; + for (auto sessionStatisticsNodeUserStatisticsUserStatisticsItem : allUserStatisticsNode) + { + DataItem::SessionStatistics::UserStatisticsItem userStatisticsItemObject; + if(!sessionStatisticsNodeUserStatisticsUserStatisticsItem["MetricValue"].isNull()) + userStatisticsItemObject.metricValue = sessionStatisticsNodeUserStatisticsUserStatisticsItem["MetricValue"].asString(); + if(!sessionStatisticsNodeUserStatisticsUserStatisticsItem["ActiveCount"].isNull()) + userStatisticsItemObject.activeCount = std::stol(sessionStatisticsNodeUserStatisticsUserStatisticsItem["ActiveCount"].asString()); + if(!sessionStatisticsNodeUserStatisticsUserStatisticsItem["TotalCount"].isNull()) + userStatisticsItemObject.totalCount = std::stol(sessionStatisticsNodeUserStatisticsUserStatisticsItem["TotalCount"].asString()); + if(!sessionStatisticsNodeUserStatisticsUserStatisticsItem["Type"].isNull()) + userStatisticsItemObject.type = sessionStatisticsNodeUserStatisticsUserStatisticsItem["Type"].asString(); + dataObject.sessionStatistics.userStatistics.push_back(userStatisticsItemObject); + } + auto allSourceStatisticsNode = sessionStatisticsNode["SourceStatistics"]["SourceStatisticsItem"]; + for (auto sessionStatisticsNodeSourceStatisticsSourceStatisticsItem : allSourceStatisticsNode) + { + DataItem::SessionStatistics::SourceStatisticsItem sourceStatisticsItemObject; + if(!sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["MetricValue"].isNull()) + sourceStatisticsItemObject.metricValue = sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["MetricValue"].asString(); + if(!sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["ActiveCount"].isNull()) + sourceStatisticsItemObject.activeCount = std::stol(sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["ActiveCount"].asString()); + if(!sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["TotalCount"].isNull()) + sourceStatisticsItemObject.totalCount = std::stol(sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["TotalCount"].asString()); + if(!sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["Type"].isNull()) + sourceStatisticsItemObject.type = sessionStatisticsNodeSourceStatisticsSourceStatisticsItem["Type"].asString(); + dataObject.sessionStatistics.sourceStatistics.push_back(sourceStatisticsItemObject); + } + auto allDataBaseStatisticsNode = sessionStatisticsNode["DataBaseStatistics"]["DataBaseStatisticsItem"]; + for (auto sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem : allDataBaseStatisticsNode) + { + DataItem::SessionStatistics::DataBaseStatisticsItem dataBaseStatisticsItemObject; + if(!sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["MetricValue"].isNull()) + dataBaseStatisticsItemObject.metricValue = sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["MetricValue"].asString(); + if(!sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["ActiveCount"].isNull()) + dataBaseStatisticsItemObject.activeCount = std::stol(sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["ActiveCount"].asString()); + if(!sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["TotalCount"].isNull()) + dataBaseStatisticsItemObject.totalCount = std::stol(sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["TotalCount"].asString()); + if(!sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["Type"].isNull()) + dataBaseStatisticsItemObject.type = sessionStatisticsNodeDataBaseStatisticsDataBaseStatisticsItem["Type"].asString(); + dataObject.sessionStatistics.dataBaseStatistics.push_back(dataBaseStatisticsItemObject); + } + data_.push_back(dataObject); + } + +} + +std::vector DescribeProcessStatsCompositionResult::getData()const +{ + return data_; +} + diff --git a/oceanbasepro/src/model/DescribeSQLSamplesRequest.cc b/oceanbasepro/src/model/DescribeSQLSamplesRequest.cc index f2d0dfd82..685138746 100644 --- a/oceanbasepro/src/model/DescribeSQLSamplesRequest.cc +++ b/oceanbasepro/src/model/DescribeSQLSamplesRequest.cc @@ -25,6 +25,15 @@ DescribeSQLSamplesRequest::DescribeSQLSamplesRequest() DescribeSQLSamplesRequest::~DescribeSQLSamplesRequest() {} +bool DescribeSQLSamplesRequest::getReturnSqlText() const { + return returnSqlText_; +} + +void DescribeSQLSamplesRequest::setReturnSqlText(bool returnSqlText) { + returnSqlText_ = returnSqlText; + setBodyParameter(std::string("ReturnSqlText"), returnSqlText ? "true" : "false"); +} + std::string DescribeSQLSamplesRequest::getStartTime() const { return startTime_; } diff --git a/oceanbasepro/src/model/DescribeSQLSamplesResult.cc b/oceanbasepro/src/model/DescribeSQLSamplesResult.cc index e9e61b6da..deb8fe10c 100644 --- a/oceanbasepro/src/model/DescribeSQLSamplesResult.cc +++ b/oceanbasepro/src/model/DescribeSQLSamplesResult.cc @@ -147,6 +147,8 @@ void DescribeSQLSamplesResult::parse(const std::string &payload) dataObject.transHash = valueDataDataItem["TransHash"].asString(); if(!valueDataDataItem["FullSqlText"].isNull()) dataObject.fullSqlText = valueDataDataItem["FullSqlText"].asString(); + if(!valueDataDataItem["SqlText"].isNull()) + dataObject.sqlText = valueDataDataItem["SqlText"].asString(); data_.push_back(dataObject); } diff --git a/oceanbasepro/src/model/DescribeTagValuesRequest.cc b/oceanbasepro/src/model/DescribeTagValuesRequest.cc new file mode 100644 index 000000000..8090501b6 --- /dev/null +++ b/oceanbasepro/src/model/DescribeTagValuesRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::OceanBasePro::Model::DescribeTagValuesRequest; + +DescribeTagValuesRequest::DescribeTagValuesRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "DescribeTagValues") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTagValuesRequest::~DescribeTagValuesRequest() {} + +std::string DescribeTagValuesRequest::getResourceType() const { + return resourceType_; +} + +void DescribeTagValuesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + diff --git a/oceanbasepro/src/model/DescribeTagValuesResult.cc b/oceanbasepro/src/model/DescribeTagValuesResult.cc new file mode 100644 index 000000000..18b2d5d95 --- /dev/null +++ b/oceanbasepro/src/model/DescribeTagValuesResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +DescribeTagValuesResult::DescribeTagValuesResult() : + ServiceResult() +{} + +DescribeTagValuesResult::DescribeTagValuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagValuesResult::~DescribeTagValuesResult() +{} + +void DescribeTagValuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Map"].isNull()) + map_ = value["Map"].asString(); + +} + +std::string DescribeTagValuesResult::getMap()const +{ + return map_; +} + diff --git a/oceanbasepro/src/model/DescribeTenantResult.cc b/oceanbasepro/src/model/DescribeTenantResult.cc index 49b5694c3..4dd31b132 100644 --- a/oceanbasepro/src/model/DescribeTenantResult.cc +++ b/oceanbasepro/src/model/DescribeTenantResult.cc @@ -96,6 +96,10 @@ void DescribeTenantResult::parse(const std::string &payload) tenant_.dataMergeTime = tenantNode["DataMergeTime"].asString(); if(!tenantNode["EnableReadOnlyReplica"].isNull()) tenant_.enableReadOnlyReplica = tenantNode["EnableReadOnlyReplica"].asString() == "true"; + if(!tenantNode["LowerCaseTableNames"].isNull()) + tenant_.lowerCaseTableNames = tenantNode["LowerCaseTableNames"].asString(); + if(!tenantNode["Version"].isNull()) + tenant_.version = tenantNode["Version"].asString(); auto allTenantConnectionsNode = tenantNode["TenantConnections"]["TenantConnectionsItem"]; for (auto tenantNodeTenantConnectionsTenantConnectionsItem : allTenantConnectionsNode) { diff --git a/oceanbasepro/src/model/DescribeZonesRequest.cc b/oceanbasepro/src/model/DescribeZonesRequest.cc index 6104b3949..9d0ae6b60 100644 --- a/oceanbasepro/src/model/DescribeZonesRequest.cc +++ b/oceanbasepro/src/model/DescribeZonesRequest.cc @@ -34,6 +34,15 @@ void DescribeZonesRequest::setSeries(const std::string &series) { setBodyParameter(std::string("Series"), series); } +std::string DescribeZonesRequest::getCpuArch() const { + return cpuArch_; +} + +void DescribeZonesRequest::setCpuArch(const std::string &cpuArch) { + cpuArch_ = cpuArch; + setBodyParameter(std::string("CpuArch"), cpuArch); +} + std::string DescribeZonesRequest::getDeployType() const { return deployType_; } diff --git a/oceanbasepro/src/model/ModifyTagNameRequest.cc b/oceanbasepro/src/model/ModifyTagNameRequest.cc new file mode 100644 index 000000000..a06fc0c3d --- /dev/null +++ b/oceanbasepro/src/model/ModifyTagNameRequest.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 + +using AlibabaCloud::OceanBasePro::Model::ModifyTagNameRequest; + +ModifyTagNameRequest::ModifyTagNameRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "ModifyTagName") { + setMethod(HttpRequest::Method::Post); +} + +ModifyTagNameRequest::~ModifyTagNameRequest() {} + +std::string ModifyTagNameRequest::getNewKey() const { + return newKey_; +} + +void ModifyTagNameRequest::setNewKey(const std::string &newKey) { + newKey_ = newKey; + setBodyParameter(std::string("NewKey"), newKey); +} + +std::string ModifyTagNameRequest::getKey() const { + return key_; +} + +void ModifyTagNameRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/ModifyTagNameResult.cc b/oceanbasepro/src/model/ModifyTagNameResult.cc new file mode 100644 index 000000000..e81f319f3 --- /dev/null +++ b/oceanbasepro/src/model/ModifyTagNameResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +ModifyTagNameResult::ModifyTagNameResult() : + ServiceResult() +{} + +ModifyTagNameResult::ModifyTagNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTagNameResult::~ModifyTagNameResult() +{} + +void ModifyTagNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyTagNameResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/ModifyTagValueNameRequest.cc b/oceanbasepro/src/model/ModifyTagValueNameRequest.cc new file mode 100644 index 000000000..4a5fcdd26 --- /dev/null +++ b/oceanbasepro/src/model/ModifyTagValueNameRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OceanBasePro::Model::ModifyTagValueNameRequest; + +ModifyTagValueNameRequest::ModifyTagValueNameRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "ModifyTagValueName") { + setMethod(HttpRequest::Method::Post); +} + +ModifyTagValueNameRequest::~ModifyTagValueNameRequest() {} + +std::string ModifyTagValueNameRequest::getNewValue() const { + return newValue_; +} + +void ModifyTagValueNameRequest::setNewValue(const std::string &newValue) { + newValue_ = newValue; + setBodyParameter(std::string("NewValue"), newValue); +} + +std::string ModifyTagValueNameRequest::getValue() const { + return value_; +} + +void ModifyTagValueNameRequest::setValue(const std::string &value) { + value_ = value; + setBodyParameter(std::string("Value"), value); +} + +std::string ModifyTagValueNameRequest::getKey() const { + return key_; +} + +void ModifyTagValueNameRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + diff --git a/oceanbasepro/src/model/ModifyTagValueNameResult.cc b/oceanbasepro/src/model/ModifyTagValueNameResult.cc new file mode 100644 index 000000000..2bd5de738 --- /dev/null +++ b/oceanbasepro/src/model/ModifyTagValueNameResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +ModifyTagValueNameResult::ModifyTagValueNameResult() : + ServiceResult() +{} + +ModifyTagValueNameResult::ModifyTagValueNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyTagValueNameResult::~ModifyTagValueNameResult() +{} + +void ModifyTagValueNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyTagValueNameResult::getMessage()const +{ + return message_; +} + diff --git a/oceanbasepro/src/model/ModifyTenantPrimaryZoneRequest.cc b/oceanbasepro/src/model/ModifyTenantPrimaryZoneRequest.cc index 3688404f1..85d13cf4e 100644 --- a/oceanbasepro/src/model/ModifyTenantPrimaryZoneRequest.cc +++ b/oceanbasepro/src/model/ModifyTenantPrimaryZoneRequest.cc @@ -97,6 +97,15 @@ void ModifyTenantPrimaryZoneRequest::setVpcId(const std::string &vpcId) { setBodyParameter(std::string("VpcId"), vpcId); } +std::string ModifyTenantPrimaryZoneRequest::getUserVpcOwnerId() const { + return userVpcOwnerId_; +} + +void ModifyTenantPrimaryZoneRequest::setUserVpcOwnerId(const std::string &userVpcOwnerId) { + userVpcOwnerId_ = userVpcOwnerId; + setBodyParameter(std::string("UserVpcOwnerId"), userVpcOwnerId); +} + std::string ModifyTenantPrimaryZoneRequest::getUserDirectVSwitchId() const { return userDirectVSwitchId_; } diff --git a/oceanbasepro/src/model/UpdateProjectConfigRequest.cc b/oceanbasepro/src/model/UpdateProjectConfigRequest.cc new file mode 100644 index 000000000..dd188889f --- /dev/null +++ b/oceanbasepro/src/model/UpdateProjectConfigRequest.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::OceanBasePro::Model::UpdateProjectConfigRequest; + +UpdateProjectConfigRequest::UpdateProjectConfigRequest() + : RpcServiceRequest("oceanbasepro", "2019-09-01", "UpdateProjectConfig") { + setMethod(HttpRequest::Method::Post); +} + +UpdateProjectConfigRequest::~UpdateProjectConfigRequest() {} + +UpdateProjectConfigRequest::ReverseIncrTransferConfig UpdateProjectConfigRequest::getReverseIncrTransferConfig() const { + return reverseIncrTransferConfig_; +} + +void UpdateProjectConfigRequest::setReverseIncrTransferConfig(const UpdateProjectConfigRequest::ReverseIncrTransferConfig &reverseIncrTransferConfig) { + reverseIncrTransferConfig_ = reverseIncrTransferConfig; + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".ThrottleRps", std::to_string(reverseIncrTransferConfig.throttleRps)); + for(int dep1 = 0; dep1 != reverseIncrTransferConfig.supportDDLTypes.size(); dep1++) { + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".SupportDDLTypes." + std::to_string(dep1 + 1), reverseIncrTransferConfig.supportDDLTypes[dep1]); + } + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".ThrottleIOPS", std::to_string(reverseIncrTransferConfig.throttleIOPS)); + for(int dep1 = 0; dep1 != reverseIncrTransferConfig.recordTypeWhiteList.size(); dep1++) { + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".RecordTypeWhiteList." + std::to_string(dep1 + 1), reverseIncrTransferConfig.recordTypeWhiteList[dep1]); + } + setBodyParameter(std::string("ReverseIncrTransferConfig") + ".IncrSyncThreadCount", std::to_string(reverseIncrTransferConfig.incrSyncThreadCount)); +} + +UpdateProjectConfigRequest::FullTransferConfig UpdateProjectConfigRequest::getFullTransferConfig() const { + return fullTransferConfig_; +} + +void UpdateProjectConfigRequest::setFullTransferConfig(const UpdateProjectConfigRequest::FullTransferConfig &fullTransferConfig) { + fullTransferConfig_ = fullTransferConfig; + setBodyParameter(std::string("FullTransferConfig") + ".ThrottleRps", std::to_string(fullTransferConfig.throttleRps)); + setBodyParameter(std::string("FullTransferConfig") + ".WriteWorkerNum", std::to_string(fullTransferConfig.writeWorkerNum)); + setBodyParameter(std::string("FullTransferConfig") + ".ReadWorkerNum", std::to_string(fullTransferConfig.readWorkerNum)); + setBodyParameter(std::string("FullTransferConfig") + ".ThrottleIOPS", std::to_string(fullTransferConfig.throttleIOPS)); +} + +std::string UpdateProjectConfigRequest::getId() const { + return id_; +} + +void UpdateProjectConfigRequest::setId(const std::string &id) { + id_ = id; + setBodyParameter(std::string("Id"), id); +} + +UpdateProjectConfigRequest::IncrTransferConfig UpdateProjectConfigRequest::getIncrTransferConfig() const { + return incrTransferConfig_; +} + +void UpdateProjectConfigRequest::setIncrTransferConfig(const UpdateProjectConfigRequest::IncrTransferConfig &incrTransferConfig) { + incrTransferConfig_ = incrTransferConfig; + setBodyParameter(std::string("IncrTransferConfig") + ".ThrottleRps", std::to_string(incrTransferConfig.throttleRps)); + for(int dep1 = 0; dep1 != incrTransferConfig.supportDDLTypes.size(); dep1++) { + setBodyParameter(std::string("IncrTransferConfig") + ".SupportDDLTypes." + std::to_string(dep1 + 1), incrTransferConfig.supportDDLTypes[dep1]); + } + setBodyParameter(std::string("IncrTransferConfig") + ".ThrottleIOPS", std::to_string(incrTransferConfig.throttleIOPS)); + for(int dep1 = 0; dep1 != incrTransferConfig.recordTypeWhiteList.size(); dep1++) { + setBodyParameter(std::string("IncrTransferConfig") + ".RecordTypeWhiteList." + std::to_string(dep1 + 1), incrTransferConfig.recordTypeWhiteList[dep1]); + } + setBodyParameter(std::string("IncrTransferConfig") + ".IncrSyncThreadCount", std::to_string(incrTransferConfig.incrSyncThreadCount)); +} + diff --git a/oceanbasepro/src/model/UpdateProjectConfigResult.cc b/oceanbasepro/src/model/UpdateProjectConfigResult.cc new file mode 100644 index 000000000..be3193eed --- /dev/null +++ b/oceanbasepro/src/model/UpdateProjectConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OceanBasePro; +using namespace AlibabaCloud::OceanBasePro::Model; + +UpdateProjectConfigResult::UpdateProjectConfigResult() : + ServiceResult() +{} + +UpdateProjectConfigResult::UpdateProjectConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectConfigResult::~UpdateProjectConfigResult() +{} + +void UpdateProjectConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +