Generated 2019-09-01 for OceanBasePro.
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#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<Error, Model::BatchKillProcessListResult> BatchKillProcessListOutcome;
|
||||
typedef std::future<BatchKillProcessListOutcome> BatchKillProcessListOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::BatchKillProcessListRequest&, const BatchKillProcessListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchKillProcessListAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelProjectModifyRecordResult> CancelProjectModifyRecordOutcome;
|
||||
typedef std::future<CancelProjectModifyRecordOutcome> CancelProjectModifyRecordOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::CancelProjectModifyRecordRequest&, const CancelProjectModifyRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelProjectModifyRecordAsyncHandler;
|
||||
@@ -297,6 +320,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateSecurityIpGroupResult> CreateSecurityIpGroupOutcome;
|
||||
typedef std::future<CreateSecurityIpGroupOutcome> CreateSecurityIpGroupOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::CreateSecurityIpGroupRequest&, const CreateSecurityIpGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSecurityIpGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTagResult> CreateTagOutcome;
|
||||
typedef std::future<CreateTagOutcome> CreateTagOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::CreateTagRequest&, const CreateTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTagValueResult> CreateTagValueOutcome;
|
||||
typedef std::future<CreateTagValueOutcome> CreateTagValueOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::CreateTagValueRequest&, const CreateTagValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagValueAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateTenantResult> CreateTenantOutcome;
|
||||
typedef std::future<CreateTenantOutcome> CreateTenantOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::CreateTenantRequest&, const CreateTenantOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTenantAsyncHandler;
|
||||
@@ -324,6 +353,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteSecurityIpGroupResult> DeleteSecurityIpGroupOutcome;
|
||||
typedef std::future<DeleteSecurityIpGroupOutcome> DeleteSecurityIpGroupOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DeleteSecurityIpGroupRequest&, const DeleteSecurityIpGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecurityIpGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTagResult> DeleteTagOutcome;
|
||||
typedef std::future<DeleteTagOutcome> DeleteTagOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DeleteTagRequest&, const DeleteTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTagValueResult> DeleteTagValueOutcome;
|
||||
typedef std::future<DeleteTagValueOutcome> DeleteTagValueOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DeleteTagValueRequest&, const DeleteTagValueOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTagValueAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteTenantSecurityIpGroupResult> DeleteTenantSecurityIpGroupOutcome;
|
||||
typedef std::future<DeleteTenantSecurityIpGroupOutcome> DeleteTenantSecurityIpGroupOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DeleteTenantSecurityIpGroupRequest&, const DeleteTenantSecurityIpGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTenantSecurityIpGroupAsyncHandler;
|
||||
@@ -417,6 +452,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeParametersHistoryResult> DescribeParametersHistoryOutcome;
|
||||
typedef std::future<DescribeParametersHistoryOutcome> DescribeParametersHistoryOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeParametersHistoryRequest&, const DescribeParametersHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParametersHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeProcessStatsCompositionResult> DescribeProcessStatsCompositionOutcome;
|
||||
typedef std::future<DescribeProcessStatsCompositionOutcome> DescribeProcessStatsCompositionOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeProcessStatsCompositionRequest&, const DescribeProcessStatsCompositionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProcessStatsCompositionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeProjectResult> DescribeProjectOutcome;
|
||||
typedef std::future<DescribeProjectOutcome> DescribeProjectOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeProjectRequest&, const DescribeProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeProjectAsyncHandler;
|
||||
@@ -459,6 +497,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSlowSQLListResult> DescribeSlowSQLListOutcome;
|
||||
typedef std::future<DescribeSlowSQLListOutcome> DescribeSlowSQLListOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeSlowSQLListRequest&, const DescribeSlowSQLListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowSQLListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTagValuesResult> DescribeTagValuesOutcome;
|
||||
typedef std::future<DescribeTagValuesOutcome> DescribeTagValuesOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeTagValuesRequest&, const DescribeTagValuesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTagValuesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTenantResult> DescribeTenantOutcome;
|
||||
typedef std::future<DescribeTenantOutcome> DescribeTenantOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::DescribeTenantRequest&, const DescribeTenantOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTenantAsyncHandler;
|
||||
@@ -549,6 +590,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifySecurityIpsResult> ModifySecurityIpsOutcome;
|
||||
typedef std::future<ModifySecurityIpsOutcome> ModifySecurityIpsOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::ModifySecurityIpsRequest&, const ModifySecurityIpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityIpsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyTagNameResult> ModifyTagNameOutcome;
|
||||
typedef std::future<ModifyTagNameOutcome> ModifyTagNameOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::ModifyTagNameRequest&, const ModifyTagNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTagNameAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyTagValueNameResult> ModifyTagValueNameOutcome;
|
||||
typedef std::future<ModifyTagValueNameOutcome> ModifyTagValueNameOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::ModifyTagValueNameRequest&, const ModifyTagValueNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTagValueNameAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyTenantEncryptionResult> ModifyTenantEncryptionOutcome;
|
||||
typedef std::future<ModifyTenantEncryptionOutcome> ModifyTenantEncryptionOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::ModifyTenantEncryptionRequest&, const ModifyTenantEncryptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTenantEncryptionAsyncHandler;
|
||||
@@ -606,11 +653,17 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SwitchoverInstanceResult> SwitchoverInstanceOutcome;
|
||||
typedef std::future<SwitchoverInstanceOutcome> SwitchoverInstanceOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::SwitchoverInstanceRequest&, const SwitchoverInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SwitchoverInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateProjectConfigResult> UpdateProjectConfigOutcome;
|
||||
typedef std::future<UpdateProjectConfigOutcome> UpdateProjectConfigOutcomeCallable;
|
||||
typedef std::function<void(const OceanBaseProClient*, const Model::UpdateProjectConfigRequest&, const UpdateProjectConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateProjectConfigAsyncHandler;
|
||||
|
||||
OceanBaseProClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
OceanBaseProClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateProjectConfigOutcomeCallable updateProjectConfigCallable(const Model::UpdateProjectConfigRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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<DataItem> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_BATCHKILLPROCESSLISTRESULT_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_;
|
||||
|
||||
@@ -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<std::string> supportDDLTypes;
|
||||
int storeLogKeptHour;
|
||||
std::string startTimestamp;
|
||||
std::string string;
|
||||
std::vector<std::string> recordTypeWhiteList;
|
||||
int incrSyncConcurrency;
|
||||
bool enableIncrSyncStatistics;
|
||||
int throttleIOPS;
|
||||
};
|
||||
struct IncrTransferConfig {
|
||||
int throttleRps;
|
||||
bool enableSequencingWithinTxn;
|
||||
std::string string;
|
||||
std::vector<std::string> supportDDLTypes;
|
||||
int storeLogKeptHour;
|
||||
std::string startTimestamp;
|
||||
std::string string;
|
||||
std::vector<std::string> 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_;
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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<std::string, std::string> getCreateParams() const;
|
||||
void setCreateParams(const std::map<std::string, std::string> &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<std::string, std::string> createParams_;
|
||||
std::string tenantName_;
|
||||
std::string readOnlyZoneList_;
|
||||
};
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace AlibabaCloud
|
||||
std::string channel;
|
||||
std::string region;
|
||||
std::string instanceType;
|
||||
std::string cpuArch;
|
||||
std::string zones;
|
||||
};
|
||||
std::vector<AvailableZonesItem> availableZones;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace AlibabaCloud
|
||||
bool manualMigrate;
|
||||
};
|
||||
std::string tenantZoneRole;
|
||||
std::string isPrimaryTenantZone;
|
||||
bool isPrimaryTenantZone;
|
||||
std::string tenantZoneId;
|
||||
std::vector<TenantZonesItem::UnitsItem> units;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace AlibabaCloud
|
||||
DescribeMetricsDataResult();
|
||||
explicit DescribeMetricsDataResult(const std::string &payload);
|
||||
~DescribeMetricsDataResult();
|
||||
std::string getData()const;
|
||||
std::vector<std::string> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
std::vector<std::string> data_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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<UserStatisticsItem> userStatistics;
|
||||
std::vector<DataBaseStatisticsItem> dataBaseStatistics;
|
||||
std::vector<SourceStatisticsItem> 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<DataItem::AllProcessListItem> allProcessList;
|
||||
};
|
||||
|
||||
|
||||
DescribeProcessStatsCompositionResult();
|
||||
explicit DescribeProcessStatsCompositionResult(const std::string &payload);
|
||||
~DescribeProcessStatsCompositionResult();
|
||||
std::vector<DataItem> getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DataItem> data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEPROCESSSTATSCOMPOSITIONRESULT_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_;
|
||||
|
||||
@@ -81,6 +81,7 @@ namespace AlibabaCloud
|
||||
double rowCacheHit;
|
||||
double affectedRows;
|
||||
double usedWorkerCount;
|
||||
std::string sqlText;
|
||||
double applicationWaitTime;
|
||||
std::string waitEvent;
|
||||
double userIoWaitTime;
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -154,10 +154,12 @@ namespace AlibabaCloud
|
||||
std::string diskType;
|
||||
std::string primaryZoneDeployType;
|
||||
std::string deployMode;
|
||||
std::string version;
|
||||
std::vector<TenantZonesItem> tenantZones;
|
||||
std::string primaryZone;
|
||||
std::string instanceType;
|
||||
std::string tenantMode;
|
||||
std::string lowerCaseTableNames;
|
||||
std::string status;
|
||||
bool enableClogService;
|
||||
std::string tenantName;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace OceanBasePro {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_OCEANBASEPRO_EXPORT UpdateProjectConfigRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ReverseIncrTransferConfig {
|
||||
int throttleRps;
|
||||
std::string string;
|
||||
std::vector<std::string> supportDDLTypes;
|
||||
int throttleIOPS;
|
||||
std::string string;
|
||||
std::vector<std::string> recordTypeWhiteList;
|
||||
int incrSyncThreadCount;
|
||||
};
|
||||
struct FullTransferConfig {
|
||||
int throttleRps;
|
||||
int writeWorkerNum;
|
||||
int readWorkerNum;
|
||||
int throttleIOPS;
|
||||
};
|
||||
struct IncrTransferConfig {
|
||||
int throttleRps;
|
||||
std::string string;
|
||||
std::vector<std::string> supportDDLTypes;
|
||||
int throttleIOPS;
|
||||
std::string string;
|
||||
std::vector<std::string> 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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
|
||||
|
||||
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_
|
||||
@@ -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<const AsyncCallerContext>& 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<std::packaged_task<BatchKillProcessListOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateTagOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<CreateTagValueOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteTagOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DeleteTagValueOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeProcessStatsCompositionOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeTagValuesOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ModifyTagNameOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<ModifyTagValueNameOutcome()>>(
|
||||
[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<const AsyncCallerContext>& 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<std::packaged_task<UpdateProjectConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateProjectConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
54
oceanbasepro/src/model/BatchKillProcessListRequest.cc
Normal file
54
oceanbasepro/src/model/BatchKillProcessListRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/BatchKillProcessListRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
57
oceanbasepro/src/model/BatchKillProcessListResult.cc
Normal file
57
oceanbasepro/src/model/BatchKillProcessListResult.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/BatchKillProcessListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataItem> BatchKillProcessListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
45
oceanbasepro/src/model/CreateTagRequest.cc
Normal file
45
oceanbasepro/src/model/CreateTagRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/CreateTagRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/CreateTagResult.cc
Normal file
51
oceanbasepro/src/model/CreateTagResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/CreateTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
54
oceanbasepro/src/model/CreateTagValueRequest.cc
Normal file
54
oceanbasepro/src/model/CreateTagValueRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/CreateTagValueRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/CreateTagValueResult.cc
Normal file
51
oceanbasepro/src/model/CreateTagValueResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/CreateTagValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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<std::string, std::string> CreateTenantRequest::getCreateParams() const {
|
||||
return createParams_;
|
||||
}
|
||||
|
||||
void CreateTenantRequest::setCreateParams(const std::map<std::string, std::string> &createParams) {
|
||||
createParams_ = createParams;
|
||||
for(auto const &iter1 : createParams) {
|
||||
setBodyParameter(std::string("CreateParams") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateTenantRequest::getTenantName() const {
|
||||
return tenantName_;
|
||||
}
|
||||
|
||||
36
oceanbasepro/src/model/DeleteTagRequest.cc
Normal file
36
oceanbasepro/src/model/DeleteTagRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/DeleteTagRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/DeleteTagResult.cc
Normal file
51
oceanbasepro/src/model/DeleteTagResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DeleteTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
45
oceanbasepro/src/model/DeleteTagValueRequest.cc
Normal file
45
oceanbasepro/src/model/DeleteTagValueRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/DeleteTagValueRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/DeleteTagValueResult.cc
Normal file
51
oceanbasepro/src/model/DeleteTagValueResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DeleteTagValueResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -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<std::string> DescribeMetricsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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 <alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
142
oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc
Normal file
142
oceanbasepro/src/model/DescribeProcessStatsCompositionResult.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/DescribeProcessStatsCompositionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::DataItem> DescribeProcessStatsCompositionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
36
oceanbasepro/src/model/DescribeTagValuesRequest.cc
Normal file
36
oceanbasepro/src/model/DescribeTagValuesRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/DescribeTagValuesRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/DescribeTagValuesResult.cc
Normal file
51
oceanbasepro/src/model/DescribeTagValuesResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/DescribeTagValuesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
45
oceanbasepro/src/model/ModifyTagNameRequest.cc
Normal file
45
oceanbasepro/src/model/ModifyTagNameRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/ModifyTagNameRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/ModifyTagNameResult.cc
Normal file
51
oceanbasepro/src/model/ModifyTagNameResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ModifyTagNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
54
oceanbasepro/src/model/ModifyTagValueNameRequest.cc
Normal file
54
oceanbasepro/src/model/ModifyTagValueNameRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/ModifyTagValueNameRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
51
oceanbasepro/src/model/ModifyTagValueNameResult.cc
Normal file
51
oceanbasepro/src/model/ModifyTagValueNameResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/ModifyTagValueNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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_;
|
||||
}
|
||||
|
||||
82
oceanbasepro/src/model/UpdateProjectConfigRequest.cc
Normal file
82
oceanbasepro/src/model/UpdateProjectConfigRequest.cc
Normal file
@@ -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 <alibabacloud/oceanbasepro/model/UpdateProjectConfigRequest.h>
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
44
oceanbasepro/src/model/UpdateProjectConfigResult.cc
Normal file
44
oceanbasepro/src/model/UpdateProjectConfigResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oceanbasepro/model/UpdateProjectConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user