Supported ListDataImportSQLPreCheckDetail,GetDataImportSQL,ListDataImportSQLType API.
This commit is contained in:
@@ -41,6 +41,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ChangeLhDagOwnerResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h
|
||||
@@ -117,6 +119,10 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteStructSyncResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateItemRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetAuthorityTemplateItemResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h
|
||||
@@ -139,6 +145,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportDownloadURLResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataExportOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataImportSQLRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataImportSQLResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h
|
||||
@@ -203,6 +211,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/GetUserActiveTenantResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantTemplateAuthorityRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantTemplateAuthorityResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h
|
||||
@@ -223,6 +233,10 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataImportSQLPreCheckDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataImportSQLPreCheckDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataImportSQLTypeRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDataImportSQLTypeResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h
|
||||
@@ -331,6 +345,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ResumeTaskFlowInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeTemplateAuthorityRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeTemplateAuthorityResult.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h
|
||||
@@ -351,6 +367,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncInstanceMetaRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SyncInstanceMetaResult.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateAuthorityTemplateRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateAuthorityTemplateResult.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/UpdateSLARulesRequest.h
|
||||
@@ -410,6 +428,8 @@ set(dms-enterprise_src
|
||||
src/model/ChangeLhDagOwnerResult.cc
|
||||
src/model/CloseOrderRequest.cc
|
||||
src/model/CloseOrderResult.cc
|
||||
src/model/CreateAuthorityTemplateRequest.cc
|
||||
src/model/CreateAuthorityTemplateResult.cc
|
||||
src/model/CreateDataCorrectOrderRequest.cc
|
||||
src/model/CreateDataCorrectOrderResult.cc
|
||||
src/model/CreateDataCronClearOrderRequest.cc
|
||||
@@ -486,6 +506,10 @@ set(dms-enterprise_src
|
||||
src/model/ExecuteStructSyncResult.cc
|
||||
src/model/GetApprovalDetailRequest.cc
|
||||
src/model/GetApprovalDetailResult.cc
|
||||
src/model/GetAuthorityTemplateRequest.cc
|
||||
src/model/GetAuthorityTemplateResult.cc
|
||||
src/model/GetAuthorityTemplateItemRequest.cc
|
||||
src/model/GetAuthorityTemplateItemResult.cc
|
||||
src/model/GetDBTaskSQLJobLogRequest.cc
|
||||
src/model/GetDBTaskSQLJobLogResult.cc
|
||||
src/model/GetDBTopologyRequest.cc
|
||||
@@ -508,6 +532,8 @@ set(dms-enterprise_src
|
||||
src/model/GetDataExportDownloadURLResult.cc
|
||||
src/model/GetDataExportOrderDetailRequest.cc
|
||||
src/model/GetDataExportOrderDetailResult.cc
|
||||
src/model/GetDataImportSQLRequest.cc
|
||||
src/model/GetDataImportSQLResult.cc
|
||||
src/model/GetDatabaseRequest.cc
|
||||
src/model/GetDatabaseResult.cc
|
||||
src/model/GetInstanceRequest.cc
|
||||
@@ -572,6 +598,8 @@ set(dms-enterprise_src
|
||||
src/model/GetUserActiveTenantResult.cc
|
||||
src/model/GetUserUploadFileJobRequest.cc
|
||||
src/model/GetUserUploadFileJobResult.cc
|
||||
src/model/GrantTemplateAuthorityRequest.cc
|
||||
src/model/GrantTemplateAuthorityResult.cc
|
||||
src/model/GrantUserPermissionRequest.cc
|
||||
src/model/GrantUserPermissionResult.cc
|
||||
src/model/InspectProxyAccessSecretRequest.cc
|
||||
@@ -592,6 +620,10 @@ set(dms-enterprise_src
|
||||
src/model/ListDataCorrectPreCheckDBResult.cc
|
||||
src/model/ListDataCorrectPreCheckSQLRequest.cc
|
||||
src/model/ListDataCorrectPreCheckSQLResult.cc
|
||||
src/model/ListDataImportSQLPreCheckDetailRequest.cc
|
||||
src/model/ListDataImportSQLPreCheckDetailResult.cc
|
||||
src/model/ListDataImportSQLTypeRequest.cc
|
||||
src/model/ListDataImportSQLTypeResult.cc
|
||||
src/model/ListDatabaseUserPermssionsRequest.cc
|
||||
src/model/ListDatabaseUserPermssionsResult.cc
|
||||
src/model/ListDatabasesRequest.cc
|
||||
@@ -700,6 +732,8 @@ set(dms-enterprise_src
|
||||
src/model/ResumeTaskFlowInstanceResult.cc
|
||||
src/model/RetryDataCorrectPreCheckRequest.cc
|
||||
src/model/RetryDataCorrectPreCheckResult.cc
|
||||
src/model/RevokeTemplateAuthorityRequest.cc
|
||||
src/model/RevokeTemplateAuthorityResult.cc
|
||||
src/model/RevokeUserPermissionRequest.cc
|
||||
src/model/RevokeUserPermissionResult.cc
|
||||
src/model/SearchDatabaseRequest.cc
|
||||
@@ -720,6 +754,8 @@ set(dms-enterprise_src
|
||||
src/model/SyncDatabaseMetaResult.cc
|
||||
src/model/SyncInstanceMetaRequest.cc
|
||||
src/model/SyncInstanceMetaResult.cc
|
||||
src/model/UpdateAuthorityTemplateRequest.cc
|
||||
src/model/UpdateAuthorityTemplateResult.cc
|
||||
src/model/UpdateInstanceRequest.cc
|
||||
src/model/UpdateInstanceResult.cc
|
||||
src/model/UpdateSLARulesRequest.cc
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
#include "model/ChangeLhDagOwnerResult.h"
|
||||
#include "model/CloseOrderRequest.h"
|
||||
#include "model/CloseOrderResult.h"
|
||||
#include "model/CreateAuthorityTemplateRequest.h"
|
||||
#include "model/CreateAuthorityTemplateResult.h"
|
||||
#include "model/CreateDataCorrectOrderRequest.h"
|
||||
#include "model/CreateDataCorrectOrderResult.h"
|
||||
#include "model/CreateDataCronClearOrderRequest.h"
|
||||
@@ -118,6 +120,10 @@
|
||||
#include "model/ExecuteStructSyncResult.h"
|
||||
#include "model/GetApprovalDetailRequest.h"
|
||||
#include "model/GetApprovalDetailResult.h"
|
||||
#include "model/GetAuthorityTemplateRequest.h"
|
||||
#include "model/GetAuthorityTemplateResult.h"
|
||||
#include "model/GetAuthorityTemplateItemRequest.h"
|
||||
#include "model/GetAuthorityTemplateItemResult.h"
|
||||
#include "model/GetDBTaskSQLJobLogRequest.h"
|
||||
#include "model/GetDBTaskSQLJobLogResult.h"
|
||||
#include "model/GetDBTopologyRequest.h"
|
||||
@@ -140,6 +146,8 @@
|
||||
#include "model/GetDataExportDownloadURLResult.h"
|
||||
#include "model/GetDataExportOrderDetailRequest.h"
|
||||
#include "model/GetDataExportOrderDetailResult.h"
|
||||
#include "model/GetDataImportSQLRequest.h"
|
||||
#include "model/GetDataImportSQLResult.h"
|
||||
#include "model/GetDatabaseRequest.h"
|
||||
#include "model/GetDatabaseResult.h"
|
||||
#include "model/GetInstanceRequest.h"
|
||||
@@ -204,6 +212,8 @@
|
||||
#include "model/GetUserActiveTenantResult.h"
|
||||
#include "model/GetUserUploadFileJobRequest.h"
|
||||
#include "model/GetUserUploadFileJobResult.h"
|
||||
#include "model/GrantTemplateAuthorityRequest.h"
|
||||
#include "model/GrantTemplateAuthorityResult.h"
|
||||
#include "model/GrantUserPermissionRequest.h"
|
||||
#include "model/GrantUserPermissionResult.h"
|
||||
#include "model/InspectProxyAccessSecretRequest.h"
|
||||
@@ -224,6 +234,10 @@
|
||||
#include "model/ListDataCorrectPreCheckDBResult.h"
|
||||
#include "model/ListDataCorrectPreCheckSQLRequest.h"
|
||||
#include "model/ListDataCorrectPreCheckSQLResult.h"
|
||||
#include "model/ListDataImportSQLPreCheckDetailRequest.h"
|
||||
#include "model/ListDataImportSQLPreCheckDetailResult.h"
|
||||
#include "model/ListDataImportSQLTypeRequest.h"
|
||||
#include "model/ListDataImportSQLTypeResult.h"
|
||||
#include "model/ListDatabaseUserPermssionsRequest.h"
|
||||
#include "model/ListDatabaseUserPermssionsResult.h"
|
||||
#include "model/ListDatabasesRequest.h"
|
||||
@@ -332,6 +346,8 @@
|
||||
#include "model/ResumeTaskFlowInstanceResult.h"
|
||||
#include "model/RetryDataCorrectPreCheckRequest.h"
|
||||
#include "model/RetryDataCorrectPreCheckResult.h"
|
||||
#include "model/RevokeTemplateAuthorityRequest.h"
|
||||
#include "model/RevokeTemplateAuthorityResult.h"
|
||||
#include "model/RevokeUserPermissionRequest.h"
|
||||
#include "model/RevokeUserPermissionResult.h"
|
||||
#include "model/SearchDatabaseRequest.h"
|
||||
@@ -352,6 +368,8 @@
|
||||
#include "model/SyncDatabaseMetaResult.h"
|
||||
#include "model/SyncInstanceMetaRequest.h"
|
||||
#include "model/SyncInstanceMetaResult.h"
|
||||
#include "model/UpdateAuthorityTemplateRequest.h"
|
||||
#include "model/UpdateAuthorityTemplateResult.h"
|
||||
#include "model/UpdateInstanceRequest.h"
|
||||
#include "model/UpdateInstanceResult.h"
|
||||
#include "model/UpdateSLARulesRequest.h"
|
||||
@@ -427,6 +445,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
||||
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthorityTemplateResult> CreateAuthorityTemplateOutcome;
|
||||
typedef std::future<CreateAuthorityTemplateOutcome> CreateAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateAuthorityTemplateRequest&, const CreateAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataCorrectOrderResult> CreateDataCorrectOrderOutcome;
|
||||
typedef std::future<CreateDataCorrectOrderOutcome> CreateDataCorrectOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataCorrectOrderRequest&, const CreateDataCorrectOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataCorrectOrderAsyncHandler;
|
||||
@@ -541,6 +562,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetApprovalDetailResult> GetApprovalDetailOutcome;
|
||||
typedef std::future<GetApprovalDetailOutcome> GetApprovalDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetApprovalDetailRequest&, const GetApprovalDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetApprovalDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAuthorityTemplateResult> GetAuthorityTemplateOutcome;
|
||||
typedef std::future<GetAuthorityTemplateOutcome> GetAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetAuthorityTemplateRequest&, const GetAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAuthorityTemplateItemResult> GetAuthorityTemplateItemOutcome;
|
||||
typedef std::future<GetAuthorityTemplateItemOutcome> GetAuthorityTemplateItemOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetAuthorityTemplateItemRequest&, const GetAuthorityTemplateItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAuthorityTemplateItemAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDBTaskSQLJobLogResult> GetDBTaskSQLJobLogOutcome;
|
||||
typedef std::future<GetDBTaskSQLJobLogOutcome> GetDBTaskSQLJobLogOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDBTaskSQLJobLogRequest&, const GetDBTaskSQLJobLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBTaskSQLJobLogAsyncHandler;
|
||||
@@ -574,6 +601,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetDataExportOrderDetailResult> GetDataExportOrderDetailOutcome;
|
||||
typedef std::future<GetDataExportOrderDetailOutcome> GetDataExportOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataExportOrderDetailRequest&, const GetDataExportOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataExportOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataImportSQLResult> GetDataImportSQLOutcome;
|
||||
typedef std::future<GetDataImportSQLOutcome> GetDataImportSQLOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataImportSQLRequest&, const GetDataImportSQLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataImportSQLAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDatabaseResult> GetDatabaseOutcome;
|
||||
typedef std::future<GetDatabaseOutcome> GetDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDatabaseRequest&, const GetDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDatabaseAsyncHandler;
|
||||
@@ -670,6 +700,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetUserUploadFileJobResult> GetUserUploadFileJobOutcome;
|
||||
typedef std::future<GetUserUploadFileJobOutcome> GetUserUploadFileJobOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserUploadFileJobRequest&, const GetUserUploadFileJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserUploadFileJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantTemplateAuthorityResult> GrantTemplateAuthorityOutcome;
|
||||
typedef std::future<GrantTemplateAuthorityOutcome> GrantTemplateAuthorityOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GrantTemplateAuthorityRequest&, const GrantTemplateAuthorityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantTemplateAuthorityAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantUserPermissionResult> GrantUserPermissionOutcome;
|
||||
typedef std::future<GrantUserPermissionOutcome> GrantUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GrantUserPermissionRequest&, const GrantUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionAsyncHandler;
|
||||
@@ -700,6 +733,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListDataCorrectPreCheckSQLResult> ListDataCorrectPreCheckSQLOutcome;
|
||||
typedef std::future<ListDataCorrectPreCheckSQLOutcome> ListDataCorrectPreCheckSQLOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDataCorrectPreCheckSQLRequest&, const ListDataCorrectPreCheckSQLOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataCorrectPreCheckSQLAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDataImportSQLPreCheckDetailResult> ListDataImportSQLPreCheckDetailOutcome;
|
||||
typedef std::future<ListDataImportSQLPreCheckDetailOutcome> ListDataImportSQLPreCheckDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDataImportSQLPreCheckDetailRequest&, const ListDataImportSQLPreCheckDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataImportSQLPreCheckDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDataImportSQLTypeResult> ListDataImportSQLTypeOutcome;
|
||||
typedef std::future<ListDataImportSQLTypeOutcome> ListDataImportSQLTypeOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDataImportSQLTypeRequest&, const ListDataImportSQLTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDataImportSQLTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatabaseUserPermssionsResult> ListDatabaseUserPermssionsOutcome;
|
||||
typedef std::future<ListDatabaseUserPermssionsOutcome> ListDatabaseUserPermssionsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListDatabaseUserPermssionsRequest&, const ListDatabaseUserPermssionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatabaseUserPermssionsAsyncHandler;
|
||||
@@ -862,6 +901,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RetryDataCorrectPreCheckResult> RetryDataCorrectPreCheckOutcome;
|
||||
typedef std::future<RetryDataCorrectPreCheckOutcome> RetryDataCorrectPreCheckOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RetryDataCorrectPreCheckRequest&, const RetryDataCorrectPreCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetryDataCorrectPreCheckAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeTemplateAuthorityResult> RevokeTemplateAuthorityOutcome;
|
||||
typedef std::future<RevokeTemplateAuthorityOutcome> RevokeTemplateAuthorityOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RevokeTemplateAuthorityRequest&, const RevokeTemplateAuthorityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeTemplateAuthorityAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeUserPermissionResult> RevokeUserPermissionOutcome;
|
||||
typedef std::future<RevokeUserPermissionOutcome> RevokeUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::RevokeUserPermissionRequest&, const RevokeUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeUserPermissionAsyncHandler;
|
||||
@@ -892,6 +934,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SyncInstanceMetaResult> SyncInstanceMetaOutcome;
|
||||
typedef std::future<SyncInstanceMetaOutcome> SyncInstanceMetaOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SyncInstanceMetaRequest&, const SyncInstanceMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncInstanceMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAuthorityTemplateResult> UpdateAuthorityTemplateOutcome;
|
||||
typedef std::future<UpdateAuthorityTemplateOutcome> UpdateAuthorityTemplateOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::UpdateAuthorityTemplateRequest&, const UpdateAuthorityTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAuthorityTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateInstanceResult> UpdateInstanceOutcome;
|
||||
typedef std::future<UpdateInstanceOutcome> UpdateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::UpdateInstanceRequest&, const UpdateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAsyncHandler;
|
||||
@@ -981,6 +1026,9 @@ namespace AlibabaCloud
|
||||
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
||||
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
||||
CreateAuthorityTemplateOutcome createAuthorityTemplate(const Model::CreateAuthorityTemplateRequest &request)const;
|
||||
void createAuthorityTemplateAsync(const Model::CreateAuthorityTemplateRequest& request, const CreateAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthorityTemplateOutcomeCallable createAuthorityTemplateCallable(const Model::CreateAuthorityTemplateRequest& request) const;
|
||||
CreateDataCorrectOrderOutcome createDataCorrectOrder(const Model::CreateDataCorrectOrderRequest &request)const;
|
||||
void createDataCorrectOrderAsync(const Model::CreateDataCorrectOrderRequest& request, const CreateDataCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataCorrectOrderOutcomeCallable createDataCorrectOrderCallable(const Model::CreateDataCorrectOrderRequest& request) const;
|
||||
@@ -1095,6 +1143,12 @@ namespace AlibabaCloud
|
||||
GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const;
|
||||
void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const;
|
||||
GetAuthorityTemplateOutcome getAuthorityTemplate(const Model::GetAuthorityTemplateRequest &request)const;
|
||||
void getAuthorityTemplateAsync(const Model::GetAuthorityTemplateRequest& request, const GetAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAuthorityTemplateOutcomeCallable getAuthorityTemplateCallable(const Model::GetAuthorityTemplateRequest& request) const;
|
||||
GetAuthorityTemplateItemOutcome getAuthorityTemplateItem(const Model::GetAuthorityTemplateItemRequest &request)const;
|
||||
void getAuthorityTemplateItemAsync(const Model::GetAuthorityTemplateItemRequest& request, const GetAuthorityTemplateItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAuthorityTemplateItemOutcomeCallable getAuthorityTemplateItemCallable(const Model::GetAuthorityTemplateItemRequest& request) const;
|
||||
GetDBTaskSQLJobLogOutcome getDBTaskSQLJobLog(const Model::GetDBTaskSQLJobLogRequest &request)const;
|
||||
void getDBTaskSQLJobLogAsync(const Model::GetDBTaskSQLJobLogRequest& request, const GetDBTaskSQLJobLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDBTaskSQLJobLogOutcomeCallable getDBTaskSQLJobLogCallable(const Model::GetDBTaskSQLJobLogRequest& request) const;
|
||||
@@ -1128,6 +1182,9 @@ namespace AlibabaCloud
|
||||
GetDataExportOrderDetailOutcome getDataExportOrderDetail(const Model::GetDataExportOrderDetailRequest &request)const;
|
||||
void getDataExportOrderDetailAsync(const Model::GetDataExportOrderDetailRequest& request, const GetDataExportOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataExportOrderDetailOutcomeCallable getDataExportOrderDetailCallable(const Model::GetDataExportOrderDetailRequest& request) const;
|
||||
GetDataImportSQLOutcome getDataImportSQL(const Model::GetDataImportSQLRequest &request)const;
|
||||
void getDataImportSQLAsync(const Model::GetDataImportSQLRequest& request, const GetDataImportSQLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataImportSQLOutcomeCallable getDataImportSQLCallable(const Model::GetDataImportSQLRequest& request) const;
|
||||
GetDatabaseOutcome getDatabase(const Model::GetDatabaseRequest &request)const;
|
||||
void getDatabaseAsync(const Model::GetDatabaseRequest& request, const GetDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDatabaseOutcomeCallable getDatabaseCallable(const Model::GetDatabaseRequest& request) const;
|
||||
@@ -1224,6 +1281,9 @@ namespace AlibabaCloud
|
||||
GetUserUploadFileJobOutcome getUserUploadFileJob(const Model::GetUserUploadFileJobRequest &request)const;
|
||||
void getUserUploadFileJobAsync(const Model::GetUserUploadFileJobRequest& request, const GetUserUploadFileJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserUploadFileJobOutcomeCallable getUserUploadFileJobCallable(const Model::GetUserUploadFileJobRequest& request) const;
|
||||
GrantTemplateAuthorityOutcome grantTemplateAuthority(const Model::GrantTemplateAuthorityRequest &request)const;
|
||||
void grantTemplateAuthorityAsync(const Model::GrantTemplateAuthorityRequest& request, const GrantTemplateAuthorityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantTemplateAuthorityOutcomeCallable grantTemplateAuthorityCallable(const Model::GrantTemplateAuthorityRequest& request) const;
|
||||
GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const;
|
||||
void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const;
|
||||
@@ -1254,6 +1314,12 @@ namespace AlibabaCloud
|
||||
ListDataCorrectPreCheckSQLOutcome listDataCorrectPreCheckSQL(const Model::ListDataCorrectPreCheckSQLRequest &request)const;
|
||||
void listDataCorrectPreCheckSQLAsync(const Model::ListDataCorrectPreCheckSQLRequest& request, const ListDataCorrectPreCheckSQLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataCorrectPreCheckSQLOutcomeCallable listDataCorrectPreCheckSQLCallable(const Model::ListDataCorrectPreCheckSQLRequest& request) const;
|
||||
ListDataImportSQLPreCheckDetailOutcome listDataImportSQLPreCheckDetail(const Model::ListDataImportSQLPreCheckDetailRequest &request)const;
|
||||
void listDataImportSQLPreCheckDetailAsync(const Model::ListDataImportSQLPreCheckDetailRequest& request, const ListDataImportSQLPreCheckDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataImportSQLPreCheckDetailOutcomeCallable listDataImportSQLPreCheckDetailCallable(const Model::ListDataImportSQLPreCheckDetailRequest& request) const;
|
||||
ListDataImportSQLTypeOutcome listDataImportSQLType(const Model::ListDataImportSQLTypeRequest &request)const;
|
||||
void listDataImportSQLTypeAsync(const Model::ListDataImportSQLTypeRequest& request, const ListDataImportSQLTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDataImportSQLTypeOutcomeCallable listDataImportSQLTypeCallable(const Model::ListDataImportSQLTypeRequest& request) const;
|
||||
ListDatabaseUserPermssionsOutcome listDatabaseUserPermssions(const Model::ListDatabaseUserPermssionsRequest &request)const;
|
||||
void listDatabaseUserPermssionsAsync(const Model::ListDatabaseUserPermssionsRequest& request, const ListDatabaseUserPermssionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatabaseUserPermssionsOutcomeCallable listDatabaseUserPermssionsCallable(const Model::ListDatabaseUserPermssionsRequest& request) const;
|
||||
@@ -1416,6 +1482,9 @@ namespace AlibabaCloud
|
||||
RetryDataCorrectPreCheckOutcome retryDataCorrectPreCheck(const Model::RetryDataCorrectPreCheckRequest &request)const;
|
||||
void retryDataCorrectPreCheckAsync(const Model::RetryDataCorrectPreCheckRequest& request, const RetryDataCorrectPreCheckAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RetryDataCorrectPreCheckOutcomeCallable retryDataCorrectPreCheckCallable(const Model::RetryDataCorrectPreCheckRequest& request) const;
|
||||
RevokeTemplateAuthorityOutcome revokeTemplateAuthority(const Model::RevokeTemplateAuthorityRequest &request)const;
|
||||
void revokeTemplateAuthorityAsync(const Model::RevokeTemplateAuthorityRequest& request, const RevokeTemplateAuthorityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeTemplateAuthorityOutcomeCallable revokeTemplateAuthorityCallable(const Model::RevokeTemplateAuthorityRequest& request) const;
|
||||
RevokeUserPermissionOutcome revokeUserPermission(const Model::RevokeUserPermissionRequest &request)const;
|
||||
void revokeUserPermissionAsync(const Model::RevokeUserPermissionRequest& request, const RevokeUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RevokeUserPermissionOutcomeCallable revokeUserPermissionCallable(const Model::RevokeUserPermissionRequest& request) const;
|
||||
@@ -1446,6 +1515,9 @@ namespace AlibabaCloud
|
||||
SyncInstanceMetaOutcome syncInstanceMeta(const Model::SyncInstanceMetaRequest &request)const;
|
||||
void syncInstanceMetaAsync(const Model::SyncInstanceMetaRequest& request, const SyncInstanceMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SyncInstanceMetaOutcomeCallable syncInstanceMetaCallable(const Model::SyncInstanceMetaRequest& request) const;
|
||||
UpdateAuthorityTemplateOutcome updateAuthorityTemplate(const Model::UpdateAuthorityTemplateRequest &request)const;
|
||||
void updateAuthorityTemplateAsync(const Model::UpdateAuthorityTemplateRequest& request, const UpdateAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAuthorityTemplateOutcomeCallable updateAuthorityTemplateCallable(const Model::UpdateAuthorityTemplateRequest& request) const;
|
||||
UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const;
|
||||
void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const;
|
||||
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateAuthorityTemplateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateAuthorityTemplateRequest();
|
||||
~CreateAuthorityTemplateRequest();
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
long tid_;
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateAuthorityTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AuthorityTemplateView
|
||||
{
|
||||
std::string description;
|
||||
long creatorId;
|
||||
std::string createTime;
|
||||
long templateId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
CreateAuthorityTemplateResult();
|
||||
explicit CreateAuthorityTemplateResult(const std::string &payload);
|
||||
~CreateAuthorityTemplateResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
AuthorityTemplateView getAuthorityTemplateView()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
AuthorityTemplateView authorityTemplateView_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEAUTHORITYTEMPLATERESULT_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_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetAuthorityTemplateItemRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAuthorityTemplateItemRequest();
|
||||
~GetAuthorityTemplateItemRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long templateId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetAuthorityTemplateItemResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AuthorityTemplateItem
|
||||
{
|
||||
std::string tableName;
|
||||
long instanceId;
|
||||
std::string attribute;
|
||||
long dbId;
|
||||
std::string resourceType;
|
||||
long itemId;
|
||||
long templateId;
|
||||
long modifierId;
|
||||
};
|
||||
|
||||
|
||||
GetAuthorityTemplateItemResult();
|
||||
explicit GetAuthorityTemplateItemResult(const std::string &payload);
|
||||
~GetAuthorityTemplateItemResult();
|
||||
std::vector<AuthorityTemplateItem> getAuthorityTemplateItemList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AuthorityTemplateItem> authorityTemplateItemList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEITEMRESULT_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_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetAuthorityTemplateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetAuthorityTemplateRequest();
|
||||
~GetAuthorityTemplateRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long templateId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetAuthorityTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AuthorityTemplateView
|
||||
{
|
||||
struct AuthorityTemplateItem
|
||||
{
|
||||
std::string tableName;
|
||||
long instanceId;
|
||||
std::string attribute;
|
||||
long dbId;
|
||||
std::string resourceType;
|
||||
long itemId;
|
||||
long templateId;
|
||||
long modifierId;
|
||||
};
|
||||
std::string description;
|
||||
long creatorId;
|
||||
std::string createTime;
|
||||
std::vector<AuthorityTemplateItem> authorityTemplateItemList;
|
||||
long templateId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetAuthorityTemplateResult();
|
||||
explicit GetAuthorityTemplateResult(const std::string &payload);
|
||||
~GetAuthorityTemplateResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
AuthorityTemplateView getAuthorityTemplateView()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
AuthorityTemplateView authorityTemplateView_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETAUTHORITYTEMPLATERESULT_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_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataImportSQLRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDataImportSQLRequest();
|
||||
~GetDataImportSQLRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getSqlId() const;
|
||||
void setSqlId(long sqlId);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long sqlId_;
|
||||
long orderId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDataImportSQLResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct SQLDetail
|
||||
{
|
||||
std::string execSql;
|
||||
};
|
||||
|
||||
|
||||
GetDataImportSQLResult();
|
||||
explicit GetDataImportSQLResult(const std::string &payload);
|
||||
~GetDataImportSQLResult();
|
||||
SQLDetail getSQLDetail()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
SQLDetail sQLDetail_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATAIMPORTSQLRESULT_H_
|
||||
@@ -34,13 +34,10 @@ public:
|
||||
void setTid(long tid);
|
||||
long getProxyId() const;
|
||||
void setProxyId(long proxyId);
|
||||
long getInstanceId() const;
|
||||
void setInstanceId(long instanceId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long proxyId_;
|
||||
long instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
|
||||
@@ -47,6 +47,7 @@ namespace AlibabaCloud
|
||||
std::string getProtocolType()const;
|
||||
std::string getErrorCode()const;
|
||||
int getProtocolPort()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getPrivateEnable()const;
|
||||
std::string getCreatorName()const;
|
||||
@@ -65,6 +66,7 @@ namespace AlibabaCloud
|
||||
std::string protocolType_;
|
||||
std::string errorCode_;
|
||||
int protocolPort_;
|
||||
std::string regionId_;
|
||||
std::string errorMessage_;
|
||||
bool privateEnable_;
|
||||
std::string creatorName_;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantTemplateAuthorityRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GrantTemplateAuthorityRequest();
|
||||
~GrantTemplateAuthorityRequest();
|
||||
std::string getExpireDate() const;
|
||||
void setExpireDate(const std::string &expireDate);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
std::string getUserIds() const;
|
||||
void setUserIds(const std::string &userIds);
|
||||
std::string getComment() const;
|
||||
void setComment(const std::string &comment);
|
||||
|
||||
private:
|
||||
std::string expireDate_;
|
||||
long tid_;
|
||||
long templateId_;
|
||||
std::string userIds_;
|
||||
std::string comment_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GrantTemplateAuthorityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GrantTemplateAuthorityResult();
|
||||
explicit GrantTemplateAuthorityResult(const std::string &payload);
|
||||
~GrantTemplateAuthorityResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GRANTTEMPLATEAUTHORITYRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataImportSQLPreCheckDetailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListDataImportSQLPreCheckDetailRequest();
|
||||
~ListDataImportSQLPreCheckDetailRequest();
|
||||
long getPageNumer() const;
|
||||
void setPageNumer(long pageNumer);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getStatusCode() const;
|
||||
void setStatusCode(const std::string &statusCode);
|
||||
long getPageSize() const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getSqlType() const;
|
||||
void setSqlType(const std::string &sqlType);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
|
||||
private:
|
||||
long pageNumer_;
|
||||
long tid_;
|
||||
std::string statusCode_;
|
||||
long pageSize_;
|
||||
std::string sqlType_;
|
||||
long orderId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataImportSQLPreCheckDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PreCheckSQLDetail
|
||||
{
|
||||
bool skip;
|
||||
std::string sqlType;
|
||||
std::string statusCode;
|
||||
long sqlId;
|
||||
};
|
||||
|
||||
|
||||
ListDataImportSQLPreCheckDetailResult();
|
||||
explicit ListDataImportSQLPreCheckDetailResult(const std::string &payload);
|
||||
~ListDataImportSQLPreCheckDetailResult();
|
||||
long getTotalCount()const;
|
||||
std::vector<PreCheckSQLDetail> getPreCheckSQLDetailList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
std::vector<PreCheckSQLDetail> preCheckSQLDetailList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLPRECHECKDETAILRESULT_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_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataImportSQLTypeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ListDataImportSQLTypeRequest();
|
||||
~ListDataImportSQLTypeRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long orderId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPEREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataImportSQLTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListDataImportSQLTypeResult();
|
||||
explicit ListDataImportSQLTypeResult(const std::string &payload);
|
||||
~ListDataImportSQLTypeResult();
|
||||
std::vector<std::string> getSqlTypeResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> sqlTypeResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATAIMPORTSQLTYPERESULT_H_
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
long creatorId;
|
||||
std::string protocolType;
|
||||
int protocolPort;
|
||||
std::string regionId;
|
||||
bool privateEnable;
|
||||
std::string creatorName;
|
||||
bool publicEnable;
|
||||
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeTemplateAuthorityRequest : public RpcServiceRequest {
|
||||
public:
|
||||
RevokeTemplateAuthorityRequest();
|
||||
~RevokeTemplateAuthorityRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
std::string getUserIds() const;
|
||||
void setUserIds(const std::string &userIds);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long templateId_;
|
||||
std::string userIds_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RevokeTemplateAuthorityResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RevokeTemplateAuthorityResult();
|
||||
explicit RevokeTemplateAuthorityResult(const std::string &payload);
|
||||
~RevokeTemplateAuthorityResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_REVOKETEMPLATEAUTHORITYRESULT_H_
|
||||
@@ -45,6 +45,7 @@ namespace AlibabaCloud
|
||||
std::string dbaId;
|
||||
std::string alias;
|
||||
std::string datalinkName;
|
||||
std::string catalogName;
|
||||
std::vector<std::string> ownerNameList;
|
||||
bool logic;
|
||||
std::string schemaName;
|
||||
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dms_enterprise {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateAuthorityTemplateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdateAuthorityTemplateRequest();
|
||||
~UpdateAuthorityTemplateRequest();
|
||||
std::string getDescription() const;
|
||||
void setDescription(const std::string &description);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getTemplateId() const;
|
||||
void setTemplateId(long templateId);
|
||||
std::string getName() const;
|
||||
void setName(const std::string &name);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
long tid_;
|
||||
long templateId_;
|
||||
std::string name_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATEREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT UpdateAuthorityTemplateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AuthorityTemplateView
|
||||
{
|
||||
std::string description;
|
||||
long creatorId;
|
||||
long templateId;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
UpdateAuthorityTemplateResult();
|
||||
explicit UpdateAuthorityTemplateResult(const std::string &payload);
|
||||
~UpdateAuthorityTemplateResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
AuthorityTemplateView getAuthorityTemplateView()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
AuthorityTemplateView authorityTemplateView_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_UPDATEAUTHORITYTEMPLATERESULT_H_
|
||||
@@ -411,6 +411,42 @@ Dms_enterpriseClient::CloseOrderOutcomeCallable Dms_enterpriseClient::closeOrder
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateAuthorityTemplateOutcome Dms_enterpriseClient::createAuthorityTemplate(const CreateAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthorityTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthorityTemplateOutcome(CreateAuthorityTemplateResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthorityTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createAuthorityTemplateAsync(const CreateAuthorityTemplateRequest& request, const CreateAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthorityTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateAuthorityTemplateOutcomeCallable Dms_enterpriseClient::createAuthorityTemplateCallable(const CreateAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthorityTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthorityTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataCorrectOrderOutcome Dms_enterpriseClient::createDataCorrectOrder(const CreateDataCorrectOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1779,6 +1815,78 @@ Dms_enterpriseClient::GetApprovalDetailOutcomeCallable Dms_enterpriseClient::get
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetAuthorityTemplateOutcome Dms_enterpriseClient::getAuthorityTemplate(const GetAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAuthorityTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAuthorityTemplateOutcome(GetAuthorityTemplateResult(outcome.result()));
|
||||
else
|
||||
return GetAuthorityTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getAuthorityTemplateAsync(const GetAuthorityTemplateRequest& request, const GetAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAuthorityTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetAuthorityTemplateOutcomeCallable Dms_enterpriseClient::getAuthorityTemplateCallable(const GetAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAuthorityTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAuthorityTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetAuthorityTemplateItemOutcome Dms_enterpriseClient::getAuthorityTemplateItem(const GetAuthorityTemplateItemRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetAuthorityTemplateItemOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetAuthorityTemplateItemOutcome(GetAuthorityTemplateItemResult(outcome.result()));
|
||||
else
|
||||
return GetAuthorityTemplateItemOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getAuthorityTemplateItemAsync(const GetAuthorityTemplateItemRequest& request, const GetAuthorityTemplateItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getAuthorityTemplateItem(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetAuthorityTemplateItemOutcomeCallable Dms_enterpriseClient::getAuthorityTemplateItemCallable(const GetAuthorityTemplateItemRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetAuthorityTemplateItemOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getAuthorityTemplateItem(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDBTaskSQLJobLogOutcome Dms_enterpriseClient::getDBTaskSQLJobLog(const GetDBTaskSQLJobLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,6 +2283,42 @@ Dms_enterpriseClient::GetDataExportOrderDetailOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataImportSQLOutcome Dms_enterpriseClient::getDataImportSQL(const GetDataImportSQLRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDataImportSQLOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDataImportSQLOutcome(GetDataImportSQLResult(outcome.result()));
|
||||
else
|
||||
return GetDataImportSQLOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDataImportSQLAsync(const GetDataImportSQLRequest& request, const GetDataImportSQLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDataImportSQL(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataImportSQLOutcomeCallable Dms_enterpriseClient::getDataImportSQLCallable(const GetDataImportSQLRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDataImportSQLOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDataImportSQL(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDatabaseOutcome Dms_enterpriseClient::getDatabase(const GetDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3327,6 +3471,42 @@ Dms_enterpriseClient::GetUserUploadFileJobOutcomeCallable Dms_enterpriseClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GrantTemplateAuthorityOutcome Dms_enterpriseClient::grantTemplateAuthority(const GrantTemplateAuthorityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GrantTemplateAuthorityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GrantTemplateAuthorityOutcome(GrantTemplateAuthorityResult(outcome.result()));
|
||||
else
|
||||
return GrantTemplateAuthorityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::grantTemplateAuthorityAsync(const GrantTemplateAuthorityRequest& request, const GrantTemplateAuthorityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, grantTemplateAuthority(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GrantTemplateAuthorityOutcomeCallable Dms_enterpriseClient::grantTemplateAuthorityCallable(const GrantTemplateAuthorityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GrantTemplateAuthorityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->grantTemplateAuthority(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GrantUserPermissionOutcome Dms_enterpriseClient::grantUserPermission(const GrantUserPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3687,6 +3867,78 @@ Dms_enterpriseClient::ListDataCorrectPreCheckSQLOutcomeCallable Dms_enterpriseCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDataImportSQLPreCheckDetailOutcome Dms_enterpriseClient::listDataImportSQLPreCheckDetail(const ListDataImportSQLPreCheckDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDataImportSQLPreCheckDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDataImportSQLPreCheckDetailOutcome(ListDataImportSQLPreCheckDetailResult(outcome.result()));
|
||||
else
|
||||
return ListDataImportSQLPreCheckDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listDataImportSQLPreCheckDetailAsync(const ListDataImportSQLPreCheckDetailRequest& request, const ListDataImportSQLPreCheckDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDataImportSQLPreCheckDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDataImportSQLPreCheckDetailOutcomeCallable Dms_enterpriseClient::listDataImportSQLPreCheckDetailCallable(const ListDataImportSQLPreCheckDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDataImportSQLPreCheckDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDataImportSQLPreCheckDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDataImportSQLTypeOutcome Dms_enterpriseClient::listDataImportSQLType(const ListDataImportSQLTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDataImportSQLTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDataImportSQLTypeOutcome(ListDataImportSQLTypeResult(outcome.result()));
|
||||
else
|
||||
return ListDataImportSQLTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listDataImportSQLTypeAsync(const ListDataImportSQLTypeRequest& request, const ListDataImportSQLTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDataImportSQLType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDataImportSQLTypeOutcomeCallable Dms_enterpriseClient::listDataImportSQLTypeCallable(const ListDataImportSQLTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDataImportSQLTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDataImportSQLType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListDatabaseUserPermssionsOutcome Dms_enterpriseClient::listDatabaseUserPermssions(const ListDatabaseUserPermssionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5631,6 +5883,42 @@ Dms_enterpriseClient::RetryDataCorrectPreCheckOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::RevokeTemplateAuthorityOutcome Dms_enterpriseClient::revokeTemplateAuthority(const RevokeTemplateAuthorityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RevokeTemplateAuthorityOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RevokeTemplateAuthorityOutcome(RevokeTemplateAuthorityResult(outcome.result()));
|
||||
else
|
||||
return RevokeTemplateAuthorityOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::revokeTemplateAuthorityAsync(const RevokeTemplateAuthorityRequest& request, const RevokeTemplateAuthorityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, revokeTemplateAuthority(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::RevokeTemplateAuthorityOutcomeCallable Dms_enterpriseClient::revokeTemplateAuthorityCallable(const RevokeTemplateAuthorityRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RevokeTemplateAuthorityOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->revokeTemplateAuthority(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::RevokeUserPermissionOutcome Dms_enterpriseClient::revokeUserPermission(const RevokeUserPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5991,6 +6279,42 @@ Dms_enterpriseClient::SyncInstanceMetaOutcomeCallable Dms_enterpriseClient::sync
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::UpdateAuthorityTemplateOutcome Dms_enterpriseClient::updateAuthorityTemplate(const UpdateAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAuthorityTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAuthorityTemplateOutcome(UpdateAuthorityTemplateResult(outcome.result()));
|
||||
else
|
||||
return UpdateAuthorityTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::updateAuthorityTemplateAsync(const UpdateAuthorityTemplateRequest& request, const UpdateAuthorityTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAuthorityTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::UpdateAuthorityTemplateOutcomeCallable Dms_enterpriseClient::updateAuthorityTemplateCallable(const UpdateAuthorityTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAuthorityTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAuthorityTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::UpdateInstanceOutcome Dms_enterpriseClient::updateInstance(const UpdateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
54
dms-enterprise/src/model/CreateAuthorityTemplateRequest.cc
Normal file
54
dms-enterprise/src/model/CreateAuthorityTemplateRequest.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/dms-enterprise/model/CreateAuthorityTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateAuthorityTemplateRequest;
|
||||
|
||||
CreateAuthorityTemplateRequest::CreateAuthorityTemplateRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateAuthorityTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAuthorityTemplateRequest::~CreateAuthorityTemplateRequest() {}
|
||||
|
||||
std::string CreateAuthorityTemplateRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateAuthorityTemplateRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long CreateAuthorityTemplateRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateAuthorityTemplateRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string CreateAuthorityTemplateRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAuthorityTemplateRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
81
dms-enterprise/src/model/CreateAuthorityTemplateResult.cc
Normal file
81
dms-enterprise/src/model/CreateAuthorityTemplateResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateAuthorityTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateAuthorityTemplateResult::CreateAuthorityTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAuthorityTemplateResult::CreateAuthorityTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAuthorityTemplateResult::~CreateAuthorityTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateAuthorityTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto authorityTemplateViewNode = value["AuthorityTemplateView"];
|
||||
if(!authorityTemplateViewNode["TemplateId"].isNull())
|
||||
authorityTemplateView_.templateId = std::stol(authorityTemplateViewNode["TemplateId"].asString());
|
||||
if(!authorityTemplateViewNode["Name"].isNull())
|
||||
authorityTemplateView_.name = authorityTemplateViewNode["Name"].asString();
|
||||
if(!authorityTemplateViewNode["CreatorId"].isNull())
|
||||
authorityTemplateView_.creatorId = std::stol(authorityTemplateViewNode["CreatorId"].asString());
|
||||
if(!authorityTemplateViewNode["Description"].isNull())
|
||||
authorityTemplateView_.description = authorityTemplateViewNode["Description"].asString();
|
||||
if(!authorityTemplateViewNode["CreateTime"].isNull())
|
||||
authorityTemplateView_.createTime = authorityTemplateViewNode["CreateTime"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAuthorityTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateAuthorityTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateAuthorityTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
CreateAuthorityTemplateResult::AuthorityTemplateView CreateAuthorityTemplateResult::getAuthorityTemplateView()const
|
||||
{
|
||||
return authorityTemplateView_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/GetAuthorityTemplateItemRequest.cc
Normal file
45
dms-enterprise/src/model/GetAuthorityTemplateItemRequest.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/dms-enterprise/model/GetAuthorityTemplateItemRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetAuthorityTemplateItemRequest;
|
||||
|
||||
GetAuthorityTemplateItemRequest::GetAuthorityTemplateItemRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetAuthorityTemplateItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAuthorityTemplateItemRequest::~GetAuthorityTemplateItemRequest() {}
|
||||
|
||||
long GetAuthorityTemplateItemRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetAuthorityTemplateItemRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetAuthorityTemplateItemRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void GetAuthorityTemplateItemRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
92
dms-enterprise/src/model/GetAuthorityTemplateItemResult.cc
Normal file
92
dms-enterprise/src/model/GetAuthorityTemplateItemResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetAuthorityTemplateItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetAuthorityTemplateItemResult::GetAuthorityTemplateItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAuthorityTemplateItemResult::GetAuthorityTemplateItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAuthorityTemplateItemResult::~GetAuthorityTemplateItemResult()
|
||||
{}
|
||||
|
||||
void GetAuthorityTemplateItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAuthorityTemplateItemListNode = value["AuthorityTemplateItemList"]["AuthorityTemplateItem"];
|
||||
for (auto valueAuthorityTemplateItemListAuthorityTemplateItem : allAuthorityTemplateItemListNode)
|
||||
{
|
||||
AuthorityTemplateItem authorityTemplateItemListObject;
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["ItemId"].isNull())
|
||||
authorityTemplateItemListObject.itemId = std::stol(valueAuthorityTemplateItemListAuthorityTemplateItem["ItemId"].asString());
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["TemplateId"].isNull())
|
||||
authorityTemplateItemListObject.templateId = std::stol(valueAuthorityTemplateItemListAuthorityTemplateItem["TemplateId"].asString());
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["ModifierId"].isNull())
|
||||
authorityTemplateItemListObject.modifierId = std::stol(valueAuthorityTemplateItemListAuthorityTemplateItem["ModifierId"].asString());
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["ResourceType"].isNull())
|
||||
authorityTemplateItemListObject.resourceType = valueAuthorityTemplateItemListAuthorityTemplateItem["ResourceType"].asString();
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["InstanceId"].isNull())
|
||||
authorityTemplateItemListObject.instanceId = std::stol(valueAuthorityTemplateItemListAuthorityTemplateItem["InstanceId"].asString());
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["DbId"].isNull())
|
||||
authorityTemplateItemListObject.dbId = std::stol(valueAuthorityTemplateItemListAuthorityTemplateItem["DbId"].asString());
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["TableName"].isNull())
|
||||
authorityTemplateItemListObject.tableName = valueAuthorityTemplateItemListAuthorityTemplateItem["TableName"].asString();
|
||||
if(!valueAuthorityTemplateItemListAuthorityTemplateItem["Attribute"].isNull())
|
||||
authorityTemplateItemListObject.attribute = valueAuthorityTemplateItemListAuthorityTemplateItem["Attribute"].asString();
|
||||
authorityTemplateItemList_.push_back(authorityTemplateItemListObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetAuthorityTemplateItemResult::AuthorityTemplateItem> GetAuthorityTemplateItemResult::getAuthorityTemplateItemList()const
|
||||
{
|
||||
return authorityTemplateItemList_;
|
||||
}
|
||||
|
||||
std::string GetAuthorityTemplateItemResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetAuthorityTemplateItemResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetAuthorityTemplateItemResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/GetAuthorityTemplateRequest.cc
Normal file
45
dms-enterprise/src/model/GetAuthorityTemplateRequest.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/dms-enterprise/model/GetAuthorityTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetAuthorityTemplateRequest;
|
||||
|
||||
GetAuthorityTemplateRequest::GetAuthorityTemplateRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetAuthorityTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAuthorityTemplateRequest::~GetAuthorityTemplateRequest() {}
|
||||
|
||||
long GetAuthorityTemplateRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetAuthorityTemplateRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetAuthorityTemplateRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void GetAuthorityTemplateRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
103
dms-enterprise/src/model/GetAuthorityTemplateResult.cc
Normal file
103
dms-enterprise/src/model/GetAuthorityTemplateResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dms-enterprise/model/GetAuthorityTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetAuthorityTemplateResult::GetAuthorityTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAuthorityTemplateResult::GetAuthorityTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAuthorityTemplateResult::~GetAuthorityTemplateResult()
|
||||
{}
|
||||
|
||||
void GetAuthorityTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto authorityTemplateViewNode = value["AuthorityTemplateView"];
|
||||
if(!authorityTemplateViewNode["TemplateId"].isNull())
|
||||
authorityTemplateView_.templateId = std::stol(authorityTemplateViewNode["TemplateId"].asString());
|
||||
if(!authorityTemplateViewNode["CreatorId"].isNull())
|
||||
authorityTemplateView_.creatorId = std::stol(authorityTemplateViewNode["CreatorId"].asString());
|
||||
if(!authorityTemplateViewNode["Name"].isNull())
|
||||
authorityTemplateView_.name = authorityTemplateViewNode["Name"].asString();
|
||||
if(!authorityTemplateViewNode["Description"].isNull())
|
||||
authorityTemplateView_.description = authorityTemplateViewNode["Description"].asString();
|
||||
if(!authorityTemplateViewNode["CreateTime"].isNull())
|
||||
authorityTemplateView_.createTime = authorityTemplateViewNode["CreateTime"].asString();
|
||||
auto allAuthorityTemplateItemListNode = authorityTemplateViewNode["AuthorityTemplateItemList"]["AuthorityTemplateItem"];
|
||||
for (auto authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem : allAuthorityTemplateItemListNode)
|
||||
{
|
||||
AuthorityTemplateView::AuthorityTemplateItem authorityTemplateItemObject;
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ItemId"].isNull())
|
||||
authorityTemplateItemObject.itemId = std::stol(authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ItemId"].asString());
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["TemplateId"].isNull())
|
||||
authorityTemplateItemObject.templateId = std::stol(authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["TemplateId"].asString());
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ModifierId"].isNull())
|
||||
authorityTemplateItemObject.modifierId = std::stol(authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ModifierId"].asString());
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ResourceType"].isNull())
|
||||
authorityTemplateItemObject.resourceType = authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["ResourceType"].asString();
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["InstanceId"].isNull())
|
||||
authorityTemplateItemObject.instanceId = std::stol(authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["InstanceId"].asString());
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["DbId"].isNull())
|
||||
authorityTemplateItemObject.dbId = std::stol(authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["DbId"].asString());
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["TableName"].isNull())
|
||||
authorityTemplateItemObject.tableName = authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["TableName"].asString();
|
||||
if(!authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["Attribute"].isNull())
|
||||
authorityTemplateItemObject.attribute = authorityTemplateViewNodeAuthorityTemplateItemListAuthorityTemplateItem["Attribute"].asString();
|
||||
authorityTemplateView_.authorityTemplateItemList.push_back(authorityTemplateItemObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAuthorityTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetAuthorityTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetAuthorityTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetAuthorityTemplateResult::AuthorityTemplateView GetAuthorityTemplateResult::getAuthorityTemplateView()const
|
||||
{
|
||||
return authorityTemplateView_;
|
||||
}
|
||||
|
||||
54
dms-enterprise/src/model/GetDataImportSQLRequest.cc
Normal file
54
dms-enterprise/src/model/GetDataImportSQLRequest.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/dms-enterprise/model/GetDataImportSQLRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataImportSQLRequest;
|
||||
|
||||
GetDataImportSQLRequest::GetDataImportSQLRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataImportSQL") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataImportSQLRequest::~GetDataImportSQLRequest() {}
|
||||
|
||||
long GetDataImportSQLRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataImportSQLRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetDataImportSQLRequest::getSqlId() const {
|
||||
return sqlId_;
|
||||
}
|
||||
|
||||
void GetDataImportSQLRequest::setSqlId(long sqlId) {
|
||||
sqlId_ = sqlId;
|
||||
setParameter(std::string("SqlId"), std::to_string(sqlId));
|
||||
}
|
||||
|
||||
long GetDataImportSQLRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetDataImportSQLRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/GetDataImportSQLResult.cc
Normal file
73
dms-enterprise/src/model/GetDataImportSQLResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataImportSQLResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDataImportSQLResult::GetDataImportSQLResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataImportSQLResult::GetDataImportSQLResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataImportSQLResult::~GetDataImportSQLResult()
|
||||
{}
|
||||
|
||||
void GetDataImportSQLResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto sQLDetailNode = value["SQLDetail"];
|
||||
if(!sQLDetailNode["ExecSql"].isNull())
|
||||
sQLDetail_.execSql = sQLDetailNode["ExecSql"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetDataImportSQLResult::SQLDetail GetDataImportSQLResult::getSQLDetail()const
|
||||
{
|
||||
return sQLDetail_;
|
||||
}
|
||||
|
||||
std::string GetDataImportSQLResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetDataImportSQLResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetDataImportSQLResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,12 +43,3 @@ void GetProxyRequest::setProxyId(long proxyId) {
|
||||
setParameter(std::string("ProxyId"), std::to_string(proxyId));
|
||||
}
|
||||
|
||||
long GetProxyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetProxyRequest::setInstanceId(long instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,8 @@ void GetProxyResult::parse(const std::string &payload)
|
||||
protocolType_ = value["ProtocolType"].asString();
|
||||
if(!value["ProtocolPort"].isNull())
|
||||
protocolPort_ = std::stoi(value["ProtocolPort"].asString());
|
||||
if(!value["RegionId"].isNull())
|
||||
regionId_ = value["RegionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -120,6 +122,11 @@ int GetProxyResult::getProtocolPort()const
|
||||
return protocolPort_;
|
||||
}
|
||||
|
||||
std::string GetProxyResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string GetProxyResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
|
||||
72
dms-enterprise/src/model/GrantTemplateAuthorityRequest.cc
Normal file
72
dms-enterprise/src/model/GrantTemplateAuthorityRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GrantTemplateAuthorityRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GrantTemplateAuthorityRequest;
|
||||
|
||||
GrantTemplateAuthorityRequest::GrantTemplateAuthorityRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantTemplateAuthority") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GrantTemplateAuthorityRequest::~GrantTemplateAuthorityRequest() {}
|
||||
|
||||
std::string GrantTemplateAuthorityRequest::getExpireDate() const {
|
||||
return expireDate_;
|
||||
}
|
||||
|
||||
void GrantTemplateAuthorityRequest::setExpireDate(const std::string &expireDate) {
|
||||
expireDate_ = expireDate;
|
||||
setParameter(std::string("ExpireDate"), expireDate);
|
||||
}
|
||||
|
||||
long GrantTemplateAuthorityRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GrantTemplateAuthorityRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GrantTemplateAuthorityRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void GrantTemplateAuthorityRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string GrantTemplateAuthorityRequest::getUserIds() const {
|
||||
return userIds_;
|
||||
}
|
||||
|
||||
void GrantTemplateAuthorityRequest::setUserIds(const std::string &userIds) {
|
||||
userIds_ = userIds;
|
||||
setParameter(std::string("UserIds"), userIds);
|
||||
}
|
||||
|
||||
std::string GrantTemplateAuthorityRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void GrantTemplateAuthorityRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/GrantTemplateAuthorityResult.cc
Normal file
72
dms-enterprise/src/model/GrantTemplateAuthorityResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GrantTemplateAuthorityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GrantTemplateAuthorityResult::GrantTemplateAuthorityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GrantTemplateAuthorityResult::GrantTemplateAuthorityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GrantTemplateAuthorityResult::~GrantTemplateAuthorityResult()
|
||||
{}
|
||||
|
||||
void GrantTemplateAuthorityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GrantTemplateAuthorityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GrantTemplateAuthorityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GrantTemplateAuthorityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool GrantTemplateAuthorityResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDataImportSQLPreCheckDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDataImportSQLPreCheckDetailRequest;
|
||||
|
||||
ListDataImportSQLPreCheckDetailRequest::ListDataImportSQLPreCheckDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDataImportSQLPreCheckDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDataImportSQLPreCheckDetailRequest::~ListDataImportSQLPreCheckDetailRequest() {}
|
||||
|
||||
long ListDataImportSQLPreCheckDetailRequest::getPageNumer() const {
|
||||
return pageNumer_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setPageNumer(long pageNumer) {
|
||||
pageNumer_ = pageNumer;
|
||||
setParameter(std::string("PageNumer"), std::to_string(pageNumer));
|
||||
}
|
||||
|
||||
long ListDataImportSQLPreCheckDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLPreCheckDetailRequest::getStatusCode() const {
|
||||
return statusCode_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setStatusCode(const std::string &statusCode) {
|
||||
statusCode_ = statusCode;
|
||||
setParameter(std::string("StatusCode"), statusCode);
|
||||
}
|
||||
|
||||
long ListDataImportSQLPreCheckDetailRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLPreCheckDetailRequest::getSqlType() const {
|
||||
return sqlType_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setSqlType(const std::string &sqlType) {
|
||||
sqlType_ = sqlType;
|
||||
setParameter(std::string("SqlType"), sqlType);
|
||||
}
|
||||
|
||||
long ListDataImportSQLPreCheckDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dms-enterprise/model/ListDataImportSQLPreCheckDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ListDataImportSQLPreCheckDetailResult::ListDataImportSQLPreCheckDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataImportSQLPreCheckDetailResult::ListDataImportSQLPreCheckDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataImportSQLPreCheckDetailResult::~ListDataImportSQLPreCheckDetailResult()
|
||||
{}
|
||||
|
||||
void ListDataImportSQLPreCheckDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPreCheckSQLDetailListNode = value["PreCheckSQLDetailList"]["PreCheckSQLDetail"];
|
||||
for (auto valuePreCheckSQLDetailListPreCheckSQLDetail : allPreCheckSQLDetailListNode)
|
||||
{
|
||||
PreCheckSQLDetail preCheckSQLDetailListObject;
|
||||
if(!valuePreCheckSQLDetailListPreCheckSQLDetail["SqlId"].isNull())
|
||||
preCheckSQLDetailListObject.sqlId = std::stol(valuePreCheckSQLDetailListPreCheckSQLDetail["SqlId"].asString());
|
||||
if(!valuePreCheckSQLDetailListPreCheckSQLDetail["SqlType"].isNull())
|
||||
preCheckSQLDetailListObject.sqlType = valuePreCheckSQLDetailListPreCheckSQLDetail["SqlType"].asString();
|
||||
if(!valuePreCheckSQLDetailListPreCheckSQLDetail["StatusCode"].isNull())
|
||||
preCheckSQLDetailListObject.statusCode = valuePreCheckSQLDetailListPreCheckSQLDetail["StatusCode"].asString();
|
||||
if(!valuePreCheckSQLDetailListPreCheckSQLDetail["Skip"].isNull())
|
||||
preCheckSQLDetailListObject.skip = valuePreCheckSQLDetailListPreCheckSQLDetail["Skip"].asString() == "true";
|
||||
preCheckSQLDetailList_.push_back(preCheckSQLDetailListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long ListDataImportSQLPreCheckDetailResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<ListDataImportSQLPreCheckDetailResult::PreCheckSQLDetail> ListDataImportSQLPreCheckDetailResult::getPreCheckSQLDetailList()const
|
||||
{
|
||||
return preCheckSQLDetailList_;
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLPreCheckDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLPreCheckDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListDataImportSQLPreCheckDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/ListDataImportSQLTypeRequest.cc
Normal file
45
dms-enterprise/src/model/ListDataImportSQLTypeRequest.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/dms-enterprise/model/ListDataImportSQLTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDataImportSQLTypeRequest;
|
||||
|
||||
ListDataImportSQLTypeRequest::ListDataImportSQLTypeRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDataImportSQLType") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDataImportSQLTypeRequest::~ListDataImportSQLTypeRequest() {}
|
||||
|
||||
long ListDataImportSQLTypeRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLTypeRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long ListDataImportSQLTypeRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void ListDataImportSQLTypeRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/ListDataImportSQLTypeResult.cc
Normal file
73
dms-enterprise/src/model/ListDataImportSQLTypeResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDataImportSQLTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ListDataImportSQLTypeResult::ListDataImportSQLTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListDataImportSQLTypeResult::ListDataImportSQLTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListDataImportSQLTypeResult::~ListDataImportSQLTypeResult()
|
||||
{}
|
||||
|
||||
void ListDataImportSQLTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSqlTypeResult = value["SqlTypeResult"]["sqlTypes"];
|
||||
for (const auto &item : allSqlTypeResult)
|
||||
sqlTypeResult_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> ListDataImportSQLTypeResult::getSqlTypeResult()const
|
||||
{
|
||||
return sqlTypeResult_;
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLTypeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListDataImportSQLTypeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListDataImportSQLTypeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,8 @@ void ListProxiesResult::parse(const std::string &payload)
|
||||
proxyListObject.protocolType = valueProxyListProxyListItem["ProtocolType"].asString();
|
||||
if(!valueProxyListProxyListItem["ProtocolPort"].isNull())
|
||||
proxyListObject.protocolPort = std::stoi(valueProxyListProxyListItem["ProtocolPort"].asString());
|
||||
if(!valueProxyListProxyListItem["RegionId"].isNull())
|
||||
proxyListObject.regionId = valueProxyListProxyListItem["RegionId"].asString();
|
||||
proxyList_.push_back(proxyListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
54
dms-enterprise/src/model/RevokeTemplateAuthorityRequest.cc
Normal file
54
dms-enterprise/src/model/RevokeTemplateAuthorityRequest.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/dms-enterprise/model/RevokeTemplateAuthorityRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::RevokeTemplateAuthorityRequest;
|
||||
|
||||
RevokeTemplateAuthorityRequest::RevokeTemplateAuthorityRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "RevokeTemplateAuthority") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RevokeTemplateAuthorityRequest::~RevokeTemplateAuthorityRequest() {}
|
||||
|
||||
long RevokeTemplateAuthorityRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void RevokeTemplateAuthorityRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long RevokeTemplateAuthorityRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void RevokeTemplateAuthorityRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string RevokeTemplateAuthorityRequest::getUserIds() const {
|
||||
return userIds_;
|
||||
}
|
||||
|
||||
void RevokeTemplateAuthorityRequest::setUserIds(const std::string &userIds) {
|
||||
userIds_ = userIds;
|
||||
setParameter(std::string("UserIds"), userIds);
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/RevokeTemplateAuthorityResult.cc
Normal file
72
dms-enterprise/src/model/RevokeTemplateAuthorityResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/RevokeTemplateAuthorityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
RevokeTemplateAuthorityResult::RevokeTemplateAuthorityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RevokeTemplateAuthorityResult::RevokeTemplateAuthorityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RevokeTemplateAuthorityResult::~RevokeTemplateAuthorityResult()
|
||||
{}
|
||||
|
||||
void RevokeTemplateAuthorityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string RevokeTemplateAuthorityResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RevokeTemplateAuthorityResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool RevokeTemplateAuthorityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool RevokeTemplateAuthorityResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -69,6 +69,8 @@ void SearchDatabaseResult::parse(const std::string &payload)
|
||||
searchDatabaseListObject.searchName = valueSearchDatabaseListSearchDatabase["SearchName"].asString();
|
||||
if(!valueSearchDatabaseListSearchDatabase["Alias"].isNull())
|
||||
searchDatabaseListObject.alias = valueSearchDatabaseListSearchDatabase["Alias"].asString();
|
||||
if(!valueSearchDatabaseListSearchDatabase["CatalogName"].isNull())
|
||||
searchDatabaseListObject.catalogName = valueSearchDatabaseListSearchDatabase["CatalogName"].asString();
|
||||
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
searchDatabaseListObject.ownerIdList.push_back(value.asString());
|
||||
|
||||
63
dms-enterprise/src/model/UpdateAuthorityTemplateRequest.cc
Normal file
63
dms-enterprise/src/model/UpdateAuthorityTemplateRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/UpdateAuthorityTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::UpdateAuthorityTemplateRequest;
|
||||
|
||||
UpdateAuthorityTemplateRequest::UpdateAuthorityTemplateRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "UpdateAuthorityTemplate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAuthorityTemplateRequest::~UpdateAuthorityTemplateRequest() {}
|
||||
|
||||
std::string UpdateAuthorityTemplateRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateAuthorityTemplateRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
long UpdateAuthorityTemplateRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void UpdateAuthorityTemplateRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long UpdateAuthorityTemplateRequest::getTemplateId() const {
|
||||
return templateId_;
|
||||
}
|
||||
|
||||
void UpdateAuthorityTemplateRequest::setTemplateId(long templateId) {
|
||||
templateId_ = templateId;
|
||||
setParameter(std::string("TemplateId"), std::to_string(templateId));
|
||||
}
|
||||
|
||||
std::string UpdateAuthorityTemplateRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void UpdateAuthorityTemplateRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
79
dms-enterprise/src/model/UpdateAuthorityTemplateResult.cc
Normal file
79
dms-enterprise/src/model/UpdateAuthorityTemplateResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/UpdateAuthorityTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
UpdateAuthorityTemplateResult::UpdateAuthorityTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAuthorityTemplateResult::UpdateAuthorityTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAuthorityTemplateResult::~UpdateAuthorityTemplateResult()
|
||||
{}
|
||||
|
||||
void UpdateAuthorityTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto authorityTemplateViewNode = value["AuthorityTemplateView"];
|
||||
if(!authorityTemplateViewNode["TemplateId"].isNull())
|
||||
authorityTemplateView_.templateId = std::stol(authorityTemplateViewNode["TemplateId"].asString());
|
||||
if(!authorityTemplateViewNode["CreatorId"].isNull())
|
||||
authorityTemplateView_.creatorId = std::stol(authorityTemplateViewNode["CreatorId"].asString());
|
||||
if(!authorityTemplateViewNode["Name"].isNull())
|
||||
authorityTemplateView_.name = authorityTemplateViewNode["Name"].asString();
|
||||
if(!authorityTemplateViewNode["Description"].isNull())
|
||||
authorityTemplateView_.description = authorityTemplateViewNode["Description"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateAuthorityTemplateResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string UpdateAuthorityTemplateResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool UpdateAuthorityTemplateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
UpdateAuthorityTemplateResult::AuthorityTemplateView UpdateAuthorityTemplateResult::getAuthorityTemplateView()const
|
||||
{
|
||||
return authorityTemplateView_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user