Supported GetDatabaseExportOrderDetail,CreateDatabaseExportOrder,CreateDataExportOrder API.
This commit is contained in:
@@ -47,8 +47,14 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataCronClearOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataExportOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataExportOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataImportOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataTrackOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDataTrackOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDatabaseExportOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateDatabaseExportOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateLakeHouseSpaceRequest.h
|
||||
@@ -105,6 +111,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/DeleteUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DisableUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DisableUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/DownloadDataTrackResultRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/DownloadDataTrackResultResult.h
|
||||
include/alibabacloud/dms-enterprise/model/EditLogicDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/EnableUserRequest.h
|
||||
@@ -147,8 +155,16 @@ set(dms-enterprise_public_header_model
|
||||
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/GetDataTrackJobDegreeRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataTrackJobDegreeResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataTrackJobTableMetaRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataTrackJobTableMetaResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataTrackOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataTrackOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseExportOrderDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDatabaseExportOrderDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetIntervalLimitOfSLARequest.h
|
||||
@@ -329,6 +345,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h
|
||||
include/alibabacloud/dms-enterprise/model/PublishAndDeployTaskFlowRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/PublishAndDeployTaskFlowResult.h
|
||||
include/alibabacloud/dms-enterprise/model/QueryDataTrackResultDownloadStatusRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/QueryDataTrackResultDownloadStatusResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ReDeployLhDagVersionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ReDeployLhDagVersionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ReRunTaskFlowInstanceRequest.h
|
||||
@@ -349,6 +367,8 @@ set(dms-enterprise_public_header_model
|
||||
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/SearchDataTrackResultRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDataTrackResultResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/SearchTableRequest.h
|
||||
@@ -434,8 +454,14 @@ set(dms-enterprise_src
|
||||
src/model/CreateDataCorrectOrderResult.cc
|
||||
src/model/CreateDataCronClearOrderRequest.cc
|
||||
src/model/CreateDataCronClearOrderResult.cc
|
||||
src/model/CreateDataExportOrderRequest.cc
|
||||
src/model/CreateDataExportOrderResult.cc
|
||||
src/model/CreateDataImportOrderRequest.cc
|
||||
src/model/CreateDataImportOrderResult.cc
|
||||
src/model/CreateDataTrackOrderRequest.cc
|
||||
src/model/CreateDataTrackOrderResult.cc
|
||||
src/model/CreateDatabaseExportOrderRequest.cc
|
||||
src/model/CreateDatabaseExportOrderResult.cc
|
||||
src/model/CreateFreeLockCorrectOrderRequest.cc
|
||||
src/model/CreateFreeLockCorrectOrderResult.cc
|
||||
src/model/CreateLakeHouseSpaceRequest.cc
|
||||
@@ -492,6 +518,8 @@ set(dms-enterprise_src
|
||||
src/model/DeleteUserResult.cc
|
||||
src/model/DisableUserRequest.cc
|
||||
src/model/DisableUserResult.cc
|
||||
src/model/DownloadDataTrackResultRequest.cc
|
||||
src/model/DownloadDataTrackResultResult.cc
|
||||
src/model/EditLogicDatabaseRequest.cc
|
||||
src/model/EditLogicDatabaseResult.cc
|
||||
src/model/EnableUserRequest.cc
|
||||
@@ -534,8 +562,16 @@ set(dms-enterprise_src
|
||||
src/model/GetDataExportOrderDetailResult.cc
|
||||
src/model/GetDataImportSQLRequest.cc
|
||||
src/model/GetDataImportSQLResult.cc
|
||||
src/model/GetDataTrackJobDegreeRequest.cc
|
||||
src/model/GetDataTrackJobDegreeResult.cc
|
||||
src/model/GetDataTrackJobTableMetaRequest.cc
|
||||
src/model/GetDataTrackJobTableMetaResult.cc
|
||||
src/model/GetDataTrackOrderDetailRequest.cc
|
||||
src/model/GetDataTrackOrderDetailResult.cc
|
||||
src/model/GetDatabaseRequest.cc
|
||||
src/model/GetDatabaseResult.cc
|
||||
src/model/GetDatabaseExportOrderDetailRequest.cc
|
||||
src/model/GetDatabaseExportOrderDetailResult.cc
|
||||
src/model/GetInstanceRequest.cc
|
||||
src/model/GetInstanceResult.cc
|
||||
src/model/GetIntervalLimitOfSLARequest.cc
|
||||
@@ -716,6 +752,8 @@ set(dms-enterprise_src
|
||||
src/model/PauseDataCorrectSQLJobResult.cc
|
||||
src/model/PublishAndDeployTaskFlowRequest.cc
|
||||
src/model/PublishAndDeployTaskFlowResult.cc
|
||||
src/model/QueryDataTrackResultDownloadStatusRequest.cc
|
||||
src/model/QueryDataTrackResultDownloadStatusResult.cc
|
||||
src/model/ReDeployLhDagVersionRequest.cc
|
||||
src/model/ReDeployLhDagVersionResult.cc
|
||||
src/model/ReRunTaskFlowInstanceRequest.cc
|
||||
@@ -736,6 +774,8 @@ set(dms-enterprise_src
|
||||
src/model/RevokeTemplateAuthorityResult.cc
|
||||
src/model/RevokeUserPermissionRequest.cc
|
||||
src/model/RevokeUserPermissionResult.cc
|
||||
src/model/SearchDataTrackResultRequest.cc
|
||||
src/model/SearchDataTrackResultResult.cc
|
||||
src/model/SearchDatabaseRequest.cc
|
||||
src/model/SearchDatabaseResult.cc
|
||||
src/model/SearchTableRequest.cc
|
||||
|
||||
@@ -48,8 +48,14 @@
|
||||
#include "model/CreateDataCorrectOrderResult.h"
|
||||
#include "model/CreateDataCronClearOrderRequest.h"
|
||||
#include "model/CreateDataCronClearOrderResult.h"
|
||||
#include "model/CreateDataExportOrderRequest.h"
|
||||
#include "model/CreateDataExportOrderResult.h"
|
||||
#include "model/CreateDataImportOrderRequest.h"
|
||||
#include "model/CreateDataImportOrderResult.h"
|
||||
#include "model/CreateDataTrackOrderRequest.h"
|
||||
#include "model/CreateDataTrackOrderResult.h"
|
||||
#include "model/CreateDatabaseExportOrderRequest.h"
|
||||
#include "model/CreateDatabaseExportOrderResult.h"
|
||||
#include "model/CreateFreeLockCorrectOrderRequest.h"
|
||||
#include "model/CreateFreeLockCorrectOrderResult.h"
|
||||
#include "model/CreateLakeHouseSpaceRequest.h"
|
||||
@@ -106,6 +112,8 @@
|
||||
#include "model/DeleteUserResult.h"
|
||||
#include "model/DisableUserRequest.h"
|
||||
#include "model/DisableUserResult.h"
|
||||
#include "model/DownloadDataTrackResultRequest.h"
|
||||
#include "model/DownloadDataTrackResultResult.h"
|
||||
#include "model/EditLogicDatabaseRequest.h"
|
||||
#include "model/EditLogicDatabaseResult.h"
|
||||
#include "model/EnableUserRequest.h"
|
||||
@@ -148,8 +156,16 @@
|
||||
#include "model/GetDataExportOrderDetailResult.h"
|
||||
#include "model/GetDataImportSQLRequest.h"
|
||||
#include "model/GetDataImportSQLResult.h"
|
||||
#include "model/GetDataTrackJobDegreeRequest.h"
|
||||
#include "model/GetDataTrackJobDegreeResult.h"
|
||||
#include "model/GetDataTrackJobTableMetaRequest.h"
|
||||
#include "model/GetDataTrackJobTableMetaResult.h"
|
||||
#include "model/GetDataTrackOrderDetailRequest.h"
|
||||
#include "model/GetDataTrackOrderDetailResult.h"
|
||||
#include "model/GetDatabaseRequest.h"
|
||||
#include "model/GetDatabaseResult.h"
|
||||
#include "model/GetDatabaseExportOrderDetailRequest.h"
|
||||
#include "model/GetDatabaseExportOrderDetailResult.h"
|
||||
#include "model/GetInstanceRequest.h"
|
||||
#include "model/GetInstanceResult.h"
|
||||
#include "model/GetIntervalLimitOfSLARequest.h"
|
||||
@@ -330,6 +346,8 @@
|
||||
#include "model/PauseDataCorrectSQLJobResult.h"
|
||||
#include "model/PublishAndDeployTaskFlowRequest.h"
|
||||
#include "model/PublishAndDeployTaskFlowResult.h"
|
||||
#include "model/QueryDataTrackResultDownloadStatusRequest.h"
|
||||
#include "model/QueryDataTrackResultDownloadStatusResult.h"
|
||||
#include "model/ReDeployLhDagVersionRequest.h"
|
||||
#include "model/ReDeployLhDagVersionResult.h"
|
||||
#include "model/ReRunTaskFlowInstanceRequest.h"
|
||||
@@ -350,6 +368,8 @@
|
||||
#include "model/RevokeTemplateAuthorityResult.h"
|
||||
#include "model/RevokeUserPermissionRequest.h"
|
||||
#include "model/RevokeUserPermissionResult.h"
|
||||
#include "model/SearchDataTrackResultRequest.h"
|
||||
#include "model/SearchDataTrackResultResult.h"
|
||||
#include "model/SearchDatabaseRequest.h"
|
||||
#include "model/SearchDatabaseResult.h"
|
||||
#include "model/SearchTableRequest.h"
|
||||
@@ -454,9 +474,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDataCronClearOrderResult> CreateDataCronClearOrderOutcome;
|
||||
typedef std::future<CreateDataCronClearOrderOutcome> CreateDataCronClearOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataCronClearOrderRequest&, const CreateDataCronClearOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataCronClearOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataExportOrderResult> CreateDataExportOrderOutcome;
|
||||
typedef std::future<CreateDataExportOrderOutcome> CreateDataExportOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataExportOrderRequest&, const CreateDataExportOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataExportOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataImportOrderResult> CreateDataImportOrderOutcome;
|
||||
typedef std::future<CreateDataImportOrderOutcome> CreateDataImportOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataImportOrderRequest&, const CreateDataImportOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataImportOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDataTrackOrderResult> CreateDataTrackOrderOutcome;
|
||||
typedef std::future<CreateDataTrackOrderOutcome> CreateDataTrackOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDataTrackOrderRequest&, const CreateDataTrackOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDataTrackOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatabaseExportOrderResult> CreateDatabaseExportOrderOutcome;
|
||||
typedef std::future<CreateDatabaseExportOrderOutcome> CreateDatabaseExportOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateDatabaseExportOrderRequest&, const CreateDatabaseExportOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatabaseExportOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFreeLockCorrectOrderResult> CreateFreeLockCorrectOrderOutcome;
|
||||
typedef std::future<CreateFreeLockCorrectOrderOutcome> CreateFreeLockCorrectOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CreateFreeLockCorrectOrderRequest&, const CreateFreeLockCorrectOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFreeLockCorrectOrderAsyncHandler;
|
||||
@@ -541,6 +570,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DisableUserResult> DisableUserOutcome;
|
||||
typedef std::future<DisableUserOutcome> DisableUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DisableUserRequest&, const DisableUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::DownloadDataTrackResultResult> DownloadDataTrackResultOutcome;
|
||||
typedef std::future<DownloadDataTrackResultOutcome> DownloadDataTrackResultOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::DownloadDataTrackResultRequest&, const DownloadDataTrackResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DownloadDataTrackResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::EditLogicDatabaseResult> EditLogicDatabaseOutcome;
|
||||
typedef std::future<EditLogicDatabaseOutcome> EditLogicDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::EditLogicDatabaseRequest&, const EditLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EditLogicDatabaseAsyncHandler;
|
||||
@@ -604,9 +636,21 @@ namespace AlibabaCloud
|
||||
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::GetDataTrackJobDegreeResult> GetDataTrackJobDegreeOutcome;
|
||||
typedef std::future<GetDataTrackJobDegreeOutcome> GetDataTrackJobDegreeOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataTrackJobDegreeRequest&, const GetDataTrackJobDegreeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataTrackJobDegreeAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataTrackJobTableMetaResult> GetDataTrackJobTableMetaOutcome;
|
||||
typedef std::future<GetDataTrackJobTableMetaOutcome> GetDataTrackJobTableMetaOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataTrackJobTableMetaRequest&, const GetDataTrackJobTableMetaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataTrackJobTableMetaAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDataTrackOrderDetailResult> GetDataTrackOrderDetailOutcome;
|
||||
typedef std::future<GetDataTrackOrderDetailOutcome> GetDataTrackOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDataTrackOrderDetailRequest&, const GetDataTrackOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDataTrackOrderDetailAsyncHandler;
|
||||
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;
|
||||
typedef Outcome<Error, Model::GetDatabaseExportOrderDetailResult> GetDatabaseExportOrderDetailOutcome;
|
||||
typedef std::future<GetDatabaseExportOrderDetailOutcome> GetDatabaseExportOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetDatabaseExportOrderDetailRequest&, const GetDatabaseExportOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDatabaseExportOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetInstanceResult> GetInstanceOutcome;
|
||||
typedef std::future<GetInstanceOutcome> GetInstanceOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetInstanceRequest&, const GetInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetInstanceAsyncHandler;
|
||||
@@ -877,6 +921,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PublishAndDeployTaskFlowResult> PublishAndDeployTaskFlowOutcome;
|
||||
typedef std::future<PublishAndDeployTaskFlowOutcome> PublishAndDeployTaskFlowOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::PublishAndDeployTaskFlowRequest&, const PublishAndDeployTaskFlowOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PublishAndDeployTaskFlowAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDataTrackResultDownloadStatusResult> QueryDataTrackResultDownloadStatusOutcome;
|
||||
typedef std::future<QueryDataTrackResultDownloadStatusOutcome> QueryDataTrackResultDownloadStatusOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::QueryDataTrackResultDownloadStatusRequest&, const QueryDataTrackResultDownloadStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDataTrackResultDownloadStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReDeployLhDagVersionResult> ReDeployLhDagVersionOutcome;
|
||||
typedef std::future<ReDeployLhDagVersionOutcome> ReDeployLhDagVersionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ReDeployLhDagVersionRequest&, const ReDeployLhDagVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReDeployLhDagVersionAsyncHandler;
|
||||
@@ -907,6 +954,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::SearchDataTrackResultResult> SearchDataTrackResultOutcome;
|
||||
typedef std::future<SearchDataTrackResultOutcome> SearchDataTrackResultOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SearchDataTrackResultRequest&, const SearchDataTrackResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDataTrackResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchDatabaseResult> SearchDatabaseOutcome;
|
||||
typedef std::future<SearchDatabaseOutcome> SearchDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::SearchDatabaseRequest&, const SearchDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchDatabaseAsyncHandler;
|
||||
@@ -1035,9 +1085,18 @@ namespace AlibabaCloud
|
||||
CreateDataCronClearOrderOutcome createDataCronClearOrder(const Model::CreateDataCronClearOrderRequest &request)const;
|
||||
void createDataCronClearOrderAsync(const Model::CreateDataCronClearOrderRequest& request, const CreateDataCronClearOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataCronClearOrderOutcomeCallable createDataCronClearOrderCallable(const Model::CreateDataCronClearOrderRequest& request) const;
|
||||
CreateDataExportOrderOutcome createDataExportOrder(const Model::CreateDataExportOrderRequest &request)const;
|
||||
void createDataExportOrderAsync(const Model::CreateDataExportOrderRequest& request, const CreateDataExportOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataExportOrderOutcomeCallable createDataExportOrderCallable(const Model::CreateDataExportOrderRequest& request) const;
|
||||
CreateDataImportOrderOutcome createDataImportOrder(const Model::CreateDataImportOrderRequest &request)const;
|
||||
void createDataImportOrderAsync(const Model::CreateDataImportOrderRequest& request, const CreateDataImportOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataImportOrderOutcomeCallable createDataImportOrderCallable(const Model::CreateDataImportOrderRequest& request) const;
|
||||
CreateDataTrackOrderOutcome createDataTrackOrder(const Model::CreateDataTrackOrderRequest &request)const;
|
||||
void createDataTrackOrderAsync(const Model::CreateDataTrackOrderRequest& request, const CreateDataTrackOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDataTrackOrderOutcomeCallable createDataTrackOrderCallable(const Model::CreateDataTrackOrderRequest& request) const;
|
||||
CreateDatabaseExportOrderOutcome createDatabaseExportOrder(const Model::CreateDatabaseExportOrderRequest &request)const;
|
||||
void createDatabaseExportOrderAsync(const Model::CreateDatabaseExportOrderRequest& request, const CreateDatabaseExportOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatabaseExportOrderOutcomeCallable createDatabaseExportOrderCallable(const Model::CreateDatabaseExportOrderRequest& request) const;
|
||||
CreateFreeLockCorrectOrderOutcome createFreeLockCorrectOrder(const Model::CreateFreeLockCorrectOrderRequest &request)const;
|
||||
void createFreeLockCorrectOrderAsync(const Model::CreateFreeLockCorrectOrderRequest& request, const CreateFreeLockCorrectOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFreeLockCorrectOrderOutcomeCallable createFreeLockCorrectOrderCallable(const Model::CreateFreeLockCorrectOrderRequest& request) const;
|
||||
@@ -1122,6 +1181,9 @@ namespace AlibabaCloud
|
||||
DisableUserOutcome disableUser(const Model::DisableUserRequest &request)const;
|
||||
void disableUserAsync(const Model::DisableUserRequest& request, const DisableUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableUserOutcomeCallable disableUserCallable(const Model::DisableUserRequest& request) const;
|
||||
DownloadDataTrackResultOutcome downloadDataTrackResult(const Model::DownloadDataTrackResultRequest &request)const;
|
||||
void downloadDataTrackResultAsync(const Model::DownloadDataTrackResultRequest& request, const DownloadDataTrackResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DownloadDataTrackResultOutcomeCallable downloadDataTrackResultCallable(const Model::DownloadDataTrackResultRequest& request) const;
|
||||
EditLogicDatabaseOutcome editLogicDatabase(const Model::EditLogicDatabaseRequest &request)const;
|
||||
void editLogicDatabaseAsync(const Model::EditLogicDatabaseRequest& request, const EditLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EditLogicDatabaseOutcomeCallable editLogicDatabaseCallable(const Model::EditLogicDatabaseRequest& request) const;
|
||||
@@ -1185,9 +1247,21 @@ namespace AlibabaCloud
|
||||
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;
|
||||
GetDataTrackJobDegreeOutcome getDataTrackJobDegree(const Model::GetDataTrackJobDegreeRequest &request)const;
|
||||
void getDataTrackJobDegreeAsync(const Model::GetDataTrackJobDegreeRequest& request, const GetDataTrackJobDegreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataTrackJobDegreeOutcomeCallable getDataTrackJobDegreeCallable(const Model::GetDataTrackJobDegreeRequest& request) const;
|
||||
GetDataTrackJobTableMetaOutcome getDataTrackJobTableMeta(const Model::GetDataTrackJobTableMetaRequest &request)const;
|
||||
void getDataTrackJobTableMetaAsync(const Model::GetDataTrackJobTableMetaRequest& request, const GetDataTrackJobTableMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataTrackJobTableMetaOutcomeCallable getDataTrackJobTableMetaCallable(const Model::GetDataTrackJobTableMetaRequest& request) const;
|
||||
GetDataTrackOrderDetailOutcome getDataTrackOrderDetail(const Model::GetDataTrackOrderDetailRequest &request)const;
|
||||
void getDataTrackOrderDetailAsync(const Model::GetDataTrackOrderDetailRequest& request, const GetDataTrackOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDataTrackOrderDetailOutcomeCallable getDataTrackOrderDetailCallable(const Model::GetDataTrackOrderDetailRequest& 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;
|
||||
GetDatabaseExportOrderDetailOutcome getDatabaseExportOrderDetail(const Model::GetDatabaseExportOrderDetailRequest &request)const;
|
||||
void getDatabaseExportOrderDetailAsync(const Model::GetDatabaseExportOrderDetailRequest& request, const GetDatabaseExportOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDatabaseExportOrderDetailOutcomeCallable getDatabaseExportOrderDetailCallable(const Model::GetDatabaseExportOrderDetailRequest& request) const;
|
||||
GetInstanceOutcome getInstance(const Model::GetInstanceRequest &request)const;
|
||||
void getInstanceAsync(const Model::GetInstanceRequest& request, const GetInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetInstanceOutcomeCallable getInstanceCallable(const Model::GetInstanceRequest& request) const;
|
||||
@@ -1458,6 +1532,9 @@ namespace AlibabaCloud
|
||||
PublishAndDeployTaskFlowOutcome publishAndDeployTaskFlow(const Model::PublishAndDeployTaskFlowRequest &request)const;
|
||||
void publishAndDeployTaskFlowAsync(const Model::PublishAndDeployTaskFlowRequest& request, const PublishAndDeployTaskFlowAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PublishAndDeployTaskFlowOutcomeCallable publishAndDeployTaskFlowCallable(const Model::PublishAndDeployTaskFlowRequest& request) const;
|
||||
QueryDataTrackResultDownloadStatusOutcome queryDataTrackResultDownloadStatus(const Model::QueryDataTrackResultDownloadStatusRequest &request)const;
|
||||
void queryDataTrackResultDownloadStatusAsync(const Model::QueryDataTrackResultDownloadStatusRequest& request, const QueryDataTrackResultDownloadStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDataTrackResultDownloadStatusOutcomeCallable queryDataTrackResultDownloadStatusCallable(const Model::QueryDataTrackResultDownloadStatusRequest& request) const;
|
||||
ReDeployLhDagVersionOutcome reDeployLhDagVersion(const Model::ReDeployLhDagVersionRequest &request)const;
|
||||
void reDeployLhDagVersionAsync(const Model::ReDeployLhDagVersionRequest& request, const ReDeployLhDagVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReDeployLhDagVersionOutcomeCallable reDeployLhDagVersionCallable(const Model::ReDeployLhDagVersionRequest& request) const;
|
||||
@@ -1488,6 +1565,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
SearchDataTrackResultOutcome searchDataTrackResult(const Model::SearchDataTrackResultRequest &request)const;
|
||||
void searchDataTrackResultAsync(const Model::SearchDataTrackResultRequest& request, const SearchDataTrackResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchDataTrackResultOutcomeCallable searchDataTrackResultCallable(const Model::SearchDataTrackResultRequest& request) const;
|
||||
SearchDatabaseOutcome searchDatabase(const Model::SearchDatabaseRequest &request)const;
|
||||
void searchDatabaseAsync(const Model::SearchDatabaseRequest& request, const SearchDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchDatabaseOutcomeCallable searchDatabaseCallable(const Model::SearchDatabaseRequest& request) const;
|
||||
|
||||
@@ -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_CREATEDATAEXPORTORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAEXPORTORDERREQUEST_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 CreateDataExportOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct PluginParam {
|
||||
std::string classify;
|
||||
long affectRows;
|
||||
long instanceId;
|
||||
struct Watermark {
|
||||
std::string dataWatermark;
|
||||
std::string fileWatermark;
|
||||
std::string string;
|
||||
std::vector<std::string> keys;
|
||||
std::string string;
|
||||
std::vector<std::string> watermarkTypes;
|
||||
std::string columnName;
|
||||
};
|
||||
Watermark watermark;
|
||||
long dbId;
|
||||
std::string exeSQL;
|
||||
std::string ignoreAffectRowsReason;
|
||||
bool logic;
|
||||
bool ignoreAffectRows;
|
||||
};
|
||||
CreateDataExportOrderRequest();
|
||||
~CreateDataExportOrderRequest();
|
||||
long getParentId() const;
|
||||
void setParentId(long parentId);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::vector<long> getRelatedUserList() const;
|
||||
void setRelatedUserList(const std::vector<long> &relatedUserList);
|
||||
PluginParam getPluginParam() const;
|
||||
void setPluginParam(const PluginParam &pluginParam);
|
||||
std::string getAttachmentKey() const;
|
||||
void setAttachmentKey(const std::string &attachmentKey);
|
||||
std::string getComment() const;
|
||||
void setComment(const std::string &comment);
|
||||
|
||||
private:
|
||||
long parentId_;
|
||||
long tid_;
|
||||
std::vector<long> relatedUserList_;
|
||||
PluginParam pluginParam_;
|
||||
std::string attachmentKey_;
|
||||
std::string comment_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAEXPORTORDERREQUEST_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_CREATEDATAEXPORTORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAEXPORTORDERRESULT_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 CreateDataExportOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDataExportOrderResult();
|
||||
explicit CreateDataExportOrderResult(const std::string &payload);
|
||||
~CreateDataExportOrderResult();
|
||||
std::vector<std::string> getCreateOrderResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> createOrderResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATAEXPORTORDERRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATATRACKORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATATRACKORDERREQUEST_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 CreateDataTrackOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct Param {
|
||||
std::string jobEndTime;
|
||||
std::string string;
|
||||
std::vector<std::string> trackTypes;
|
||||
std::string string;
|
||||
std::vector<std::string> tableNames;
|
||||
std::string dbId;
|
||||
std::string jobStartTime;
|
||||
};
|
||||
CreateDataTrackOrderRequest();
|
||||
~CreateDataTrackOrderRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
Param getParam() const;
|
||||
void setParam(const Param ¶m);
|
||||
std::vector<std::string> getRelatedUserList() const;
|
||||
void setRelatedUserList(const std::vector<std::string> &relatedUserList);
|
||||
std::string getComment() const;
|
||||
void setComment(const std::string &comment);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
Param param_;
|
||||
std::vector<std::string> relatedUserList_;
|
||||
std::string comment_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATATRACKORDERREQUEST_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_CREATEDATATRACKORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATATRACKORDERRESULT_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 CreateDataTrackOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDataTrackOrderResult();
|
||||
explicit CreateDataTrackOrderResult(const std::string &payload);
|
||||
~CreateDataTrackOrderResult();
|
||||
std::vector<std::string> getCreateOrderResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> createOrderResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATATRACKORDERRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_CREATEDATABASEEXPORTORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATABASEEXPORTORDERREQUEST_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 CreateDatabaseExportOrderRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct PluginParam {
|
||||
std::string classify;
|
||||
std::string searchName;
|
||||
long instanceId;
|
||||
long dbId;
|
||||
bool logic;
|
||||
struct Config {
|
||||
std::string targetOption;
|
||||
std::string string;
|
||||
std::vector<std::string> dataOption;
|
||||
std::map<std::string, std::string> tables;
|
||||
std::string exportContent;
|
||||
std::string string;
|
||||
std::vector<std::string> selectedTables;
|
||||
std::string string;
|
||||
std::vector<std::string> exportTypes;
|
||||
std::string string;
|
||||
std::vector<std::string> sQLExtOption;
|
||||
};
|
||||
Config config;
|
||||
};
|
||||
CreateDatabaseExportOrderRequest();
|
||||
~CreateDatabaseExportOrderRequest();
|
||||
long getParentId() const;
|
||||
void setParentId(long parentId);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::vector<long> getRelatedUserList() const;
|
||||
void setRelatedUserList(const std::vector<long> &relatedUserList);
|
||||
PluginParam getPluginParam() const;
|
||||
void setPluginParam(const PluginParam &pluginParam);
|
||||
std::string getAttachmentKey() const;
|
||||
void setAttachmentKey(const std::string &attachmentKey);
|
||||
std::string getComment() const;
|
||||
void setComment(const std::string &comment);
|
||||
|
||||
private:
|
||||
long parentId_;
|
||||
long tid_;
|
||||
std::vector<long> relatedUserList_;
|
||||
PluginParam pluginParam_;
|
||||
std::string attachmentKey_;
|
||||
std::string comment_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATABASEEXPORTORDERREQUEST_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_CREATEDATABASEEXPORTORDERRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATABASEEXPORTORDERRESULT_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 CreateDatabaseExportOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDatabaseExportOrderResult();
|
||||
explicit CreateDatabaseExportOrderResult(const std::string &payload);
|
||||
~CreateDatabaseExportOrderResult();
|
||||
std::vector<std::string> getCreateOrderResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> createOrderResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEDATABASEEXPORTORDERRESULT_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DOWNLOADDATATRACKRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DOWNLOADDATATRACKRESULTREQUEST_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 DownloadDataTrackResultRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ColumnFilter {
|
||||
std::string betweenStart;
|
||||
std::string betweenEnd;
|
||||
std::string columnName;
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string string;
|
||||
std::vector<std::string> inList;
|
||||
};
|
||||
DownloadDataTrackResultRequest();
|
||||
~DownloadDataTrackResultRequest();
|
||||
std::string getFilterStartTime() const;
|
||||
void setFilterStartTime(const std::string &filterStartTime);
|
||||
std::vector<std::string> getFilterTypeList() const;
|
||||
void setFilterTypeList(const std::vector<std::string> &filterTypeList);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
std::string getRollbackSQLType() const;
|
||||
void setRollbackSQLType(const std::string &rollbackSQLType);
|
||||
std::vector<long> getEventIdList() const;
|
||||
void setEventIdList(const std::vector<long> &eventIdList);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
std::vector<std::string> getFilterTableList() const;
|
||||
void setFilterTableList(const std::vector<std::string> &filterTableList);
|
||||
std::string getFilterEndTime() const;
|
||||
void setFilterEndTime(const std::string &filterEndTime);
|
||||
ColumnFilter getColumnFilter() const;
|
||||
void setColumnFilter(const ColumnFilter &columnFilter);
|
||||
|
||||
private:
|
||||
std::string filterStartTime_;
|
||||
std::vector<std::string> filterTypeList_;
|
||||
long tid_;
|
||||
std::string rollbackSQLType_;
|
||||
std::vector<long> eventIdList_;
|
||||
long orderId_;
|
||||
std::vector<std::string> filterTableList_;
|
||||
std::string filterEndTime_;
|
||||
ColumnFilter columnFilter_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DOWNLOADDATATRACKRESULTREQUEST_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_DOWNLOADDATATRACKRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DOWNLOADDATATRACKRESULTRESULT_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 DownloadDataTrackResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DownloadDataTrackResultResult();
|
||||
explicit DownloadDataTrackResultResult(const std::string &payload);
|
||||
~DownloadDataTrackResultResult();
|
||||
std::string getDownloadKeyId()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string downloadKeyId_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DOWNLOADDATATRACKRESULTRESULT_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_GETDATATRACKJOBDEGREEREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBDEGREEREQUEST_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 GetDataTrackJobDegreeRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDataTrackJobDegreeRequest();
|
||||
~GetDataTrackJobDegreeRequest();
|
||||
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_GETDATATRACKJOBDEGREEREQUEST_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_GETDATATRACKJOBDEGREERESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBDEGREERESULT_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 GetDataTrackJobDegreeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct JobDegree
|
||||
{
|
||||
std::string jobStatus;
|
||||
std::string statusDesc;
|
||||
double downloadCompletionDegree;
|
||||
double listCompletionDegree;
|
||||
double filterCompletionDegree;
|
||||
};
|
||||
|
||||
|
||||
GetDataTrackJobDegreeResult();
|
||||
explicit GetDataTrackJobDegreeResult(const std::string &payload);
|
||||
~GetDataTrackJobDegreeResult();
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
JobDegree getJobDegree()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
JobDegree jobDegree_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBDEGREERESULT_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_GETDATATRACKJOBTABLEMETAREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBTABLEMETAREQUEST_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 GetDataTrackJobTableMetaRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDataTrackJobTableMetaRequest();
|
||||
~GetDataTrackJobTableMetaRequest();
|
||||
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_GETDATATRACKJOBTABLEMETAREQUEST_H_
|
||||
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBTABLEMETARESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBTABLEMETARESULT_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 GetDataTrackJobTableMetaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TableMeta
|
||||
{
|
||||
struct Column
|
||||
{
|
||||
std::string columnName;
|
||||
int columnPosition;
|
||||
std::string columnType;
|
||||
std::string charset;
|
||||
bool fictive;
|
||||
};
|
||||
std::string tableName;
|
||||
std::vector<TableMeta::Column> columns;
|
||||
std::string schemaName;
|
||||
};
|
||||
|
||||
|
||||
GetDataTrackJobTableMetaResult();
|
||||
explicit GetDataTrackJobTableMetaResult(const std::string &payload);
|
||||
~GetDataTrackJobTableMetaResult();
|
||||
std::vector<TableMeta> getTableMetaList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<TableMeta> tableMetaList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKJOBTABLEMETARESULT_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_GETDATATRACKORDERDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKORDERDETAILREQUEST_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 GetDataTrackOrderDetailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDataTrackOrderDetailRequest();
|
||||
~GetDataTrackOrderDetailRequest();
|
||||
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_GETDATATRACKORDERDETAILREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKORDERDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKORDERDETAILRESULT_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 GetDataTrackOrderDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataTrackOrderDetail
|
||||
{
|
||||
std::string jobStatus;
|
||||
std::string statusDesc;
|
||||
std::vector<std::string> trackTypes;
|
||||
std::vector<std::string> tableNames;
|
||||
long dbId;
|
||||
std::string jobStartTime;
|
||||
bool logic;
|
||||
std::string databaseSearchName;
|
||||
std::string jobEndTime;
|
||||
std::string schemaName;
|
||||
};
|
||||
|
||||
|
||||
GetDataTrackOrderDetailResult();
|
||||
explicit GetDataTrackOrderDetailResult(const std::string &payload);
|
||||
~GetDataTrackOrderDetailResult();
|
||||
DataTrackOrderDetail getDataTrackOrderDetail()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DataTrackOrderDetail dataTrackOrderDetail_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATATRACKORDERDETAILRESULT_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_GETDATABASEEXPORTORDERDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEEXPORTORDERDETAILREQUEST_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 GetDatabaseExportOrderDetailRequest : public RpcServiceRequest {
|
||||
public:
|
||||
GetDatabaseExportOrderDetailRequest();
|
||||
~GetDatabaseExportOrderDetailRequest();
|
||||
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_GETDATABASEEXPORTORDERDETAILREQUEST_H_
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_GETDATABASEEXPORTORDERDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEEXPORTORDERDETAILRESULT_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 GetDatabaseExportOrderDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DatabaseExportOrderDetail
|
||||
{
|
||||
struct KeyInfo
|
||||
{
|
||||
struct Config
|
||||
{
|
||||
std::vector<std::string> exportTypes;
|
||||
std::vector<std::string> selectedTables;
|
||||
std::string dbName;
|
||||
std::string exportContent;
|
||||
std::vector<std::string> sQLExtOption;
|
||||
std::string targetOption;
|
||||
};
|
||||
std::string auditDate;
|
||||
Config config;
|
||||
long dbId;
|
||||
std::string downloadURL;
|
||||
};
|
||||
std::string comment;
|
||||
std::string statusDesc;
|
||||
std::string workflowStatusDesc;
|
||||
KeyInfo keyInfo;
|
||||
std::string searchName;
|
||||
std::string log;
|
||||
long id;
|
||||
std::string committer;
|
||||
std::string committerId;
|
||||
};
|
||||
|
||||
|
||||
GetDatabaseExportOrderDetailResult();
|
||||
explicit GetDatabaseExportOrderDetailResult(const std::string &payload);
|
||||
~GetDatabaseExportOrderDetailResult();
|
||||
DatabaseExportOrderDetail getDatabaseExportOrderDetail()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DatabaseExportOrderDetail databaseExportOrderDetail_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDATABASEEXPORTORDERDETAILRESULT_H_
|
||||
@@ -54,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string planTime;
|
||||
};
|
||||
std::string statusDesc;
|
||||
std::string comment;
|
||||
std::vector<DDLPublishRecord::PublishTaskInfo> publishTaskInfoList;
|
||||
std::string auditStatus;
|
||||
long creatorId;
|
||||
|
||||
@@ -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_QUERYDATATRACKRESULTDOWNLOADSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_QUERYDATATRACKRESULTDOWNLOADSTATUSREQUEST_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 QueryDataTrackResultDownloadStatusRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryDataTrackResultDownloadStatusRequest();
|
||||
~QueryDataTrackResultDownloadStatusRequest();
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
std::string getDownloadKeyId() const;
|
||||
void setDownloadKeyId(const std::string &downloadKeyId);
|
||||
|
||||
private:
|
||||
long tid_;
|
||||
long orderId_;
|
||||
std::string downloadKeyId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_QUERYDATATRACKRESULTDOWNLOADSTATUSREQUEST_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_QUERYDATATRACKRESULTDOWNLOADSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_QUERYDATATRACKRESULTDOWNLOADSTATUSRESULT_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 QueryDataTrackResultDownloadStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct StatusResult
|
||||
{
|
||||
std::string statusDesc;
|
||||
long totalCount;
|
||||
std::string downloadStatus;
|
||||
std::string downloadUrl;
|
||||
};
|
||||
|
||||
|
||||
QueryDataTrackResultDownloadStatusResult();
|
||||
explicit QueryDataTrackResultDownloadStatusResult(const std::string &payload);
|
||||
~QueryDataTrackResultDownloadStatusResult();
|
||||
StatusResult getStatusResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
StatusResult statusResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_QUERYDATATRACKRESULTDOWNLOADSTATUSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTREQUEST_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 SearchDataTrackResultRequest : public RpcServiceRequest {
|
||||
public:
|
||||
struct ColumnFilter {
|
||||
std::string betweenStart;
|
||||
std::string betweenEnd;
|
||||
std::string columnName;
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string string;
|
||||
std::vector<std::string> inList;
|
||||
};
|
||||
SearchDataTrackResultRequest();
|
||||
~SearchDataTrackResultRequest();
|
||||
std::string getFilterStartTime() const;
|
||||
void setFilterStartTime(const std::string &filterStartTime);
|
||||
std::vector<std::string> getFilterTypeList() const;
|
||||
void setFilterTypeList(const std::vector<std::string> &filterTypeList);
|
||||
long getTid() const;
|
||||
void setTid(long tid);
|
||||
long getOrderId() const;
|
||||
void setOrderId(long orderId);
|
||||
std::vector<std::string> getFilterTableList() const;
|
||||
void setFilterTableList(const std::vector<std::string> &filterTableList);
|
||||
std::string getFilterEndTime() const;
|
||||
void setFilterEndTime(const std::string &filterEndTime);
|
||||
ColumnFilter getColumnFilter() const;
|
||||
void setColumnFilter(const ColumnFilter &columnFilter);
|
||||
|
||||
private:
|
||||
std::string filterStartTime_;
|
||||
std::vector<std::string> filterTypeList_;
|
||||
long tid_;
|
||||
long orderId_;
|
||||
std::vector<std::string> filterTableList_;
|
||||
std::string filterEndTime_;
|
||||
ColumnFilter columnFilter_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dms_enterprise
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTREQUEST_H_
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTRESULT_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 SearchDataTrackResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TrackResult
|
||||
{
|
||||
struct Event
|
||||
{
|
||||
long eventLength;
|
||||
std::string eventTimestamp;
|
||||
std::string eventType;
|
||||
long eventId;
|
||||
std::string rollSQL;
|
||||
std::vector<std::string> dataBefore;
|
||||
std::vector<std::string> dataAfter;
|
||||
};
|
||||
struct TableInfo
|
||||
{
|
||||
struct Column
|
||||
{
|
||||
std::string columnName;
|
||||
int columnPosition;
|
||||
std::string columnType;
|
||||
bool fictive;
|
||||
};
|
||||
std::string tableName;
|
||||
std::string description;
|
||||
std::vector<TableInfo::Column> columns;
|
||||
std::string schemaName;
|
||||
};
|
||||
long totalCount;
|
||||
std::vector<Event> eventList;
|
||||
std::vector<TableInfo> tableInfoList;
|
||||
};
|
||||
|
||||
|
||||
SearchDataTrackResultResult();
|
||||
explicit SearchDataTrackResultResult(const std::string &payload);
|
||||
~SearchDataTrackResultResult();
|
||||
TrackResult getTrackResult()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
TrackResult trackResult_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SEARCHDATATRACKRESULTRESULT_H_
|
||||
@@ -519,6 +519,42 @@ Dms_enterpriseClient::CreateDataCronClearOrderOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataExportOrderOutcome Dms_enterpriseClient::createDataExportOrder(const CreateDataExportOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDataExportOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDataExportOrderOutcome(CreateDataExportOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateDataExportOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createDataExportOrderAsync(const CreateDataExportOrderRequest& request, const CreateDataExportOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDataExportOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataExportOrderOutcomeCallable Dms_enterpriseClient::createDataExportOrderCallable(const CreateDataExportOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDataExportOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDataExportOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataImportOrderOutcome Dms_enterpriseClient::createDataImportOrder(const CreateDataImportOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +591,78 @@ Dms_enterpriseClient::CreateDataImportOrderOutcomeCallable Dms_enterpriseClient:
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataTrackOrderOutcome Dms_enterpriseClient::createDataTrackOrder(const CreateDataTrackOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDataTrackOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDataTrackOrderOutcome(CreateDataTrackOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateDataTrackOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createDataTrackOrderAsync(const CreateDataTrackOrderRequest& request, const CreateDataTrackOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDataTrackOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDataTrackOrderOutcomeCallable Dms_enterpriseClient::createDataTrackOrderCallable(const CreateDataTrackOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDataTrackOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDataTrackOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDatabaseExportOrderOutcome Dms_enterpriseClient::createDatabaseExportOrder(const CreateDatabaseExportOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDatabaseExportOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDatabaseExportOrderOutcome(CreateDatabaseExportOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateDatabaseExportOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createDatabaseExportOrderAsync(const CreateDatabaseExportOrderRequest& request, const CreateDatabaseExportOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDatabaseExportOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateDatabaseExportOrderOutcomeCallable Dms_enterpriseClient::createDatabaseExportOrderCallable(const CreateDatabaseExportOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDatabaseExportOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDatabaseExportOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateFreeLockCorrectOrderOutcome Dms_enterpriseClient::createFreeLockCorrectOrder(const CreateFreeLockCorrectOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1563,6 +1671,42 @@ Dms_enterpriseClient::DisableUserOutcomeCallable Dms_enterpriseClient::disableUs
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::DownloadDataTrackResultOutcome Dms_enterpriseClient::downloadDataTrackResult(const DownloadDataTrackResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadDataTrackResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DownloadDataTrackResultOutcome(DownloadDataTrackResultResult(outcome.result()));
|
||||
else
|
||||
return DownloadDataTrackResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::downloadDataTrackResultAsync(const DownloadDataTrackResultRequest& request, const DownloadDataTrackResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, downloadDataTrackResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::DownloadDataTrackResultOutcomeCallable Dms_enterpriseClient::downloadDataTrackResultCallable(const DownloadDataTrackResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DownloadDataTrackResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->downloadDataTrackResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::EditLogicDatabaseOutcome Dms_enterpriseClient::editLogicDatabase(const EditLogicDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2319,6 +2463,114 @@ Dms_enterpriseClient::GetDataImportSQLOutcomeCallable Dms_enterpriseClient::getD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackJobDegreeOutcome Dms_enterpriseClient::getDataTrackJobDegree(const GetDataTrackJobDegreeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDataTrackJobDegreeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDataTrackJobDegreeOutcome(GetDataTrackJobDegreeResult(outcome.result()));
|
||||
else
|
||||
return GetDataTrackJobDegreeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDataTrackJobDegreeAsync(const GetDataTrackJobDegreeRequest& request, const GetDataTrackJobDegreeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDataTrackJobDegree(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackJobDegreeOutcomeCallable Dms_enterpriseClient::getDataTrackJobDegreeCallable(const GetDataTrackJobDegreeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDataTrackJobDegreeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDataTrackJobDegree(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackJobTableMetaOutcome Dms_enterpriseClient::getDataTrackJobTableMeta(const GetDataTrackJobTableMetaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDataTrackJobTableMetaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDataTrackJobTableMetaOutcome(GetDataTrackJobTableMetaResult(outcome.result()));
|
||||
else
|
||||
return GetDataTrackJobTableMetaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDataTrackJobTableMetaAsync(const GetDataTrackJobTableMetaRequest& request, const GetDataTrackJobTableMetaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDataTrackJobTableMeta(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackJobTableMetaOutcomeCallable Dms_enterpriseClient::getDataTrackJobTableMetaCallable(const GetDataTrackJobTableMetaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDataTrackJobTableMetaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDataTrackJobTableMeta(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackOrderDetailOutcome Dms_enterpriseClient::getDataTrackOrderDetail(const GetDataTrackOrderDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDataTrackOrderDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDataTrackOrderDetailOutcome(GetDataTrackOrderDetailResult(outcome.result()));
|
||||
else
|
||||
return GetDataTrackOrderDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDataTrackOrderDetailAsync(const GetDataTrackOrderDetailRequest& request, const GetDataTrackOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDataTrackOrderDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDataTrackOrderDetailOutcomeCallable Dms_enterpriseClient::getDataTrackOrderDetailCallable(const GetDataTrackOrderDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDataTrackOrderDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDataTrackOrderDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDatabaseOutcome Dms_enterpriseClient::getDatabase(const GetDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2355,6 +2607,42 @@ Dms_enterpriseClient::GetDatabaseOutcomeCallable Dms_enterpriseClient::getDataba
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDatabaseExportOrderDetailOutcome Dms_enterpriseClient::getDatabaseExportOrderDetail(const GetDatabaseExportOrderDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDatabaseExportOrderDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDatabaseExportOrderDetailOutcome(GetDatabaseExportOrderDetailResult(outcome.result()));
|
||||
else
|
||||
return GetDatabaseExportOrderDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getDatabaseExportOrderDetailAsync(const GetDatabaseExportOrderDetailRequest& request, const GetDatabaseExportOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDatabaseExportOrderDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetDatabaseExportOrderDetailOutcomeCallable Dms_enterpriseClient::getDatabaseExportOrderDetailCallable(const GetDatabaseExportOrderDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDatabaseExportOrderDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDatabaseExportOrderDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetInstanceOutcome Dms_enterpriseClient::getInstance(const GetInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5595,6 +5883,42 @@ Dms_enterpriseClient::PublishAndDeployTaskFlowOutcomeCallable Dms_enterpriseClie
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::QueryDataTrackResultDownloadStatusOutcome Dms_enterpriseClient::queryDataTrackResultDownloadStatus(const QueryDataTrackResultDownloadStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryDataTrackResultDownloadStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryDataTrackResultDownloadStatusOutcome(QueryDataTrackResultDownloadStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryDataTrackResultDownloadStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::queryDataTrackResultDownloadStatusAsync(const QueryDataTrackResultDownloadStatusRequest& request, const QueryDataTrackResultDownloadStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryDataTrackResultDownloadStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::QueryDataTrackResultDownloadStatusOutcomeCallable Dms_enterpriseClient::queryDataTrackResultDownloadStatusCallable(const QueryDataTrackResultDownloadStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryDataTrackResultDownloadStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryDataTrackResultDownloadStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ReDeployLhDagVersionOutcome Dms_enterpriseClient::reDeployLhDagVersion(const ReDeployLhDagVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5955,6 +6279,42 @@ Dms_enterpriseClient::RevokeUserPermissionOutcomeCallable Dms_enterpriseClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::SearchDataTrackResultOutcome Dms_enterpriseClient::searchDataTrackResult(const SearchDataTrackResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchDataTrackResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchDataTrackResultOutcome(SearchDataTrackResultResult(outcome.result()));
|
||||
else
|
||||
return SearchDataTrackResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::searchDataTrackResultAsync(const SearchDataTrackResultRequest& request, const SearchDataTrackResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchDataTrackResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::SearchDataTrackResultOutcomeCallable Dms_enterpriseClient::searchDataTrackResultCallable(const SearchDataTrackResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchDataTrackResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchDataTrackResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::SearchDatabaseOutcome Dms_enterpriseClient::searchDatabase(const SearchDatabaseRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
99
dms-enterprise/src/model/CreateDataExportOrderRequest.cc
Normal file
99
dms-enterprise/src/model/CreateDataExportOrderRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataExportOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataExportOrderRequest;
|
||||
|
||||
CreateDataExportOrderRequest::CreateDataExportOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataExportOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataExportOrderRequest::~CreateDataExportOrderRequest() {}
|
||||
|
||||
long CreateDataExportOrderRequest::getParentId() const {
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setParentId(long parentId) {
|
||||
parentId_ = parentId;
|
||||
setParameter(std::string("ParentId"), std::to_string(parentId));
|
||||
}
|
||||
|
||||
long CreateDataExportOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::vector<CreateDataExportOrderRequest::long> CreateDataExportOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setRelatedUserList(const std::vector<CreateDataExportOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
CreateDataExportOrderRequest::PluginParam CreateDataExportOrderRequest::getPluginParam() const {
|
||||
return pluginParam_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setPluginParam(const CreateDataExportOrderRequest::PluginParam &pluginParam) {
|
||||
pluginParam_ = pluginParam;
|
||||
setParameter(std::string("PluginParam") + ".Classify", pluginParam.classify);
|
||||
setParameter(std::string("PluginParam") + ".AffectRows", std::to_string(pluginParam.affectRows));
|
||||
setParameter(std::string("PluginParam") + ".InstanceId", std::to_string(pluginParam.instanceId));
|
||||
setParameter(std::string("PluginParam") + ".Watermark.DataWatermark", pluginParam.watermark.dataWatermark);
|
||||
setParameter(std::string("PluginParam") + ".Watermark.FileWatermark", pluginParam.watermark.fileWatermark);
|
||||
for(int dep1 = 0; dep1 != pluginParam.watermark.keys.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Watermark.Keys." + std::to_string(dep1 + 1), pluginParam.watermark.keys[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != pluginParam.watermark.watermarkTypes.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Watermark.WatermarkTypes." + std::to_string(dep1 + 1), pluginParam.watermark.watermarkTypes[dep1]);
|
||||
}
|
||||
setParameter(std::string("PluginParam") + ".Watermark.ColumnName", pluginParam.watermark.columnName);
|
||||
setParameter(std::string("PluginParam") + ".DbId", std::to_string(pluginParam.dbId));
|
||||
setParameter(std::string("PluginParam") + ".ExeSQL", pluginParam.exeSQL);
|
||||
setParameter(std::string("PluginParam") + ".IgnoreAffectRowsReason", pluginParam.ignoreAffectRowsReason);
|
||||
setParameter(std::string("PluginParam") + ".Logic", pluginParam.logic ? "true" : "false");
|
||||
setParameter(std::string("PluginParam") + ".IgnoreAffectRows", pluginParam.ignoreAffectRows ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDataExportOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
std::string CreateDataExportOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateDataExportOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateDataExportOrderResult.cc
Normal file
73
dms-enterprise/src/model/CreateDataExportOrderResult.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/CreateDataExportOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateDataExportOrderResult::CreateDataExportOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataExportOrderResult::CreateDataExportOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataExportOrderResult::~CreateDataExportOrderResult()
|
||||
{}
|
||||
|
||||
void CreateDataExportOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["CreateOrderResult"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.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::vector<std::string> CreateDataExportOrderResult::getCreateOrderResult()const
|
||||
{
|
||||
return createOrderResult_;
|
||||
}
|
||||
|
||||
std::string CreateDataExportOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateDataExportOrderResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateDataExportOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateDataTrackOrderRequest.cc
Normal file
73
dms-enterprise/src/model/CreateDataTrackOrderRequest.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/CreateDataTrackOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataTrackOrderRequest;
|
||||
|
||||
CreateDataTrackOrderRequest::CreateDataTrackOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataTrackOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataTrackOrderRequest::~CreateDataTrackOrderRequest() {}
|
||||
|
||||
long CreateDataTrackOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateDataTrackOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
CreateDataTrackOrderRequest::Param CreateDataTrackOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
void CreateDataTrackOrderRequest::setParam(const CreateDataTrackOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".JobEndTime", param.jobEndTime);
|
||||
for(int dep1 = 0; dep1 != param.trackTypes.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".TrackTypes." + std::to_string(dep1 + 1), param.trackTypes[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != param.tableNames.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".TableNames." + std::to_string(dep1 + 1), param.tableNames[dep1]);
|
||||
}
|
||||
setParameter(std::string("Param") + ".DbId", param.dbId);
|
||||
setParameter(std::string("Param") + ".JobStartTime", param.jobStartTime);
|
||||
}
|
||||
|
||||
std::vector<CreateDataTrackOrderRequest::std::string> CreateDataTrackOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataTrackOrderRequest::setRelatedUserList(const std::vector<CreateDataTrackOrderRequest::std::string> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), relatedUserList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDataTrackOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateDataTrackOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateDataTrackOrderResult.cc
Normal file
73
dms-enterprise/src/model/CreateDataTrackOrderResult.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/CreateDataTrackOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateDataTrackOrderResult::CreateDataTrackOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDataTrackOrderResult::CreateDataTrackOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDataTrackOrderResult::~CreateDataTrackOrderResult()
|
||||
{}
|
||||
|
||||
void CreateDataTrackOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.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> CreateDataTrackOrderResult::getCreateOrderResult()const
|
||||
{
|
||||
return createOrderResult_;
|
||||
}
|
||||
|
||||
std::string CreateDataTrackOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateDataTrackOrderResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateDataTrackOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
104
dms-enterprise/src/model/CreateDatabaseExportOrderRequest.cc
Normal file
104
dms-enterprise/src/model/CreateDatabaseExportOrderRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDatabaseExportOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDatabaseExportOrderRequest;
|
||||
|
||||
CreateDatabaseExportOrderRequest::CreateDatabaseExportOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDatabaseExportOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDatabaseExportOrderRequest::~CreateDatabaseExportOrderRequest() {}
|
||||
|
||||
long CreateDatabaseExportOrderRequest::getParentId() const {
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setParentId(long parentId) {
|
||||
parentId_ = parentId;
|
||||
setParameter(std::string("ParentId"), std::to_string(parentId));
|
||||
}
|
||||
|
||||
long CreateDatabaseExportOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::vector<CreateDatabaseExportOrderRequest::long> CreateDatabaseExportOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setRelatedUserList(const std::vector<CreateDatabaseExportOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
CreateDatabaseExportOrderRequest::PluginParam CreateDatabaseExportOrderRequest::getPluginParam() const {
|
||||
return pluginParam_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setPluginParam(const CreateDatabaseExportOrderRequest::PluginParam &pluginParam) {
|
||||
pluginParam_ = pluginParam;
|
||||
setParameter(std::string("PluginParam") + ".Classify", pluginParam.classify);
|
||||
setParameter(std::string("PluginParam") + ".SearchName", pluginParam.searchName);
|
||||
setParameter(std::string("PluginParam") + ".InstanceId", std::to_string(pluginParam.instanceId));
|
||||
setParameter(std::string("PluginParam") + ".DbId", std::to_string(pluginParam.dbId));
|
||||
setParameter(std::string("PluginParam") + ".Logic", pluginParam.logic ? "true" : "false");
|
||||
setParameter(std::string("PluginParam") + ".Config.TargetOption", pluginParam.config.targetOption);
|
||||
for(int dep1 = 0; dep1 != pluginParam.config.dataOption.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Config.DataOption." + std::to_string(dep1 + 1), pluginParam.config.dataOption[dep1]);
|
||||
}
|
||||
for(auto const &iter1 : pluginParam.config.tables) {
|
||||
setParameter(std::string("PluginParam") + ".Config.Tables." + iter1.first, iter1.second);
|
||||
}
|
||||
setParameter(std::string("PluginParam") + ".Config.ExportContent", pluginParam.config.exportContent);
|
||||
for(int dep1 = 0; dep1 != pluginParam.config.selectedTables.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Config.SelectedTables." + std::to_string(dep1 + 1), pluginParam.config.selectedTables[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != pluginParam.config.exportTypes.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Config.ExportTypes." + std::to_string(dep1 + 1), pluginParam.config.exportTypes[dep1]);
|
||||
}
|
||||
for(int dep1 = 0; dep1 != pluginParam.config.sQLExtOption.size(); dep1++) {
|
||||
setParameter(std::string("PluginParam") + ".Config.SQLExtOption." + std::to_string(dep1 + 1), pluginParam.config.sQLExtOption[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateDatabaseExportOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
std::string CreateDatabaseExportOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateDatabaseExportOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateDatabaseExportOrderResult.cc
Normal file
73
dms-enterprise/src/model/CreateDatabaseExportOrderResult.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/CreateDatabaseExportOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateDatabaseExportOrderResult::CreateDatabaseExportOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDatabaseExportOrderResult::CreateDatabaseExportOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDatabaseExportOrderResult::~CreateDatabaseExportOrderResult()
|
||||
{}
|
||||
|
||||
void CreateDatabaseExportOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["CreateOrderResult"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.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::vector<std::string> CreateDatabaseExportOrderResult::getCreateOrderResult()const
|
||||
{
|
||||
return createOrderResult_;
|
||||
}
|
||||
|
||||
std::string CreateDatabaseExportOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateDatabaseExportOrderResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateDatabaseExportOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
121
dms-enterprise/src/model/DownloadDataTrackResultRequest.cc
Normal file
121
dms-enterprise/src/model/DownloadDataTrackResultRequest.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/DownloadDataTrackResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DownloadDataTrackResultRequest;
|
||||
|
||||
DownloadDataTrackResultRequest::DownloadDataTrackResultRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DownloadDataTrackResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadDataTrackResultRequest::~DownloadDataTrackResultRequest() {}
|
||||
|
||||
std::string DownloadDataTrackResultRequest::getFilterStartTime() const {
|
||||
return filterStartTime_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setFilterStartTime(const std::string &filterStartTime) {
|
||||
filterStartTime_ = filterStartTime;
|
||||
setParameter(std::string("FilterStartTime"), filterStartTime);
|
||||
}
|
||||
|
||||
std::vector<DownloadDataTrackResultRequest::std::string> DownloadDataTrackResultRequest::getFilterTypeList() const {
|
||||
return filterTypeList_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setFilterTypeList(const std::vector<DownloadDataTrackResultRequest::std::string> &filterTypeList) {
|
||||
filterTypeList_ = filterTypeList;
|
||||
for(int dep1 = 0; dep1 != filterTypeList.size(); dep1++) {
|
||||
setParameter(std::string("FilterTypeList") + "." + std::to_string(dep1 + 1), filterTypeList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
long DownloadDataTrackResultRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string DownloadDataTrackResultRequest::getRollbackSQLType() const {
|
||||
return rollbackSQLType_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setRollbackSQLType(const std::string &rollbackSQLType) {
|
||||
rollbackSQLType_ = rollbackSQLType;
|
||||
setParameter(std::string("RollbackSQLType"), rollbackSQLType);
|
||||
}
|
||||
|
||||
std::vector<DownloadDataTrackResultRequest::long> DownloadDataTrackResultRequest::getEventIdList() const {
|
||||
return eventIdList_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setEventIdList(const std::vector<DownloadDataTrackResultRequest::long> &eventIdList) {
|
||||
eventIdList_ = eventIdList;
|
||||
for(int dep1 = 0; dep1 != eventIdList.size(); dep1++) {
|
||||
setParameter(std::string("EventIdList") + "." + std::to_string(dep1 + 1), std::to_string(eventIdList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
long DownloadDataTrackResultRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::vector<DownloadDataTrackResultRequest::std::string> DownloadDataTrackResultRequest::getFilterTableList() const {
|
||||
return filterTableList_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setFilterTableList(const std::vector<DownloadDataTrackResultRequest::std::string> &filterTableList) {
|
||||
filterTableList_ = filterTableList;
|
||||
for(int dep1 = 0; dep1 != filterTableList.size(); dep1++) {
|
||||
setParameter(std::string("FilterTableList") + "." + std::to_string(dep1 + 1), filterTableList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DownloadDataTrackResultRequest::getFilterEndTime() const {
|
||||
return filterEndTime_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setFilterEndTime(const std::string &filterEndTime) {
|
||||
filterEndTime_ = filterEndTime;
|
||||
setParameter(std::string("FilterEndTime"), filterEndTime);
|
||||
}
|
||||
|
||||
DownloadDataTrackResultRequest::ColumnFilter DownloadDataTrackResultRequest::getColumnFilter() const {
|
||||
return columnFilter_;
|
||||
}
|
||||
|
||||
void DownloadDataTrackResultRequest::setColumnFilter(const DownloadDataTrackResultRequest::ColumnFilter &columnFilter) {
|
||||
columnFilter_ = columnFilter;
|
||||
setParameter(std::string("ColumnFilter") + ".BetweenStart", columnFilter.betweenStart);
|
||||
setParameter(std::string("ColumnFilter") + ".BetweenEnd", columnFilter.betweenEnd);
|
||||
setParameter(std::string("ColumnFilter") + ".ColumnName", columnFilter.columnName);
|
||||
setParameter(std::string("ColumnFilter") + ".Value", columnFilter.value);
|
||||
setParameter(std::string("ColumnFilter") + ".Operator", columnFilter._operator);
|
||||
for(int dep1 = 0; dep1 != columnFilter.inList.size(); dep1++) {
|
||||
setParameter(std::string("ColumnFilter") + ".InList." + std::to_string(dep1 + 1), columnFilter.inList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/DownloadDataTrackResultResult.cc
Normal file
72
dms-enterprise/src/model/DownloadDataTrackResultResult.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/DownloadDataTrackResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
DownloadDataTrackResultResult::DownloadDataTrackResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DownloadDataTrackResultResult::DownloadDataTrackResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DownloadDataTrackResultResult::~DownloadDataTrackResultResult()
|
||||
{}
|
||||
|
||||
void DownloadDataTrackResultResult::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["DownloadKeyId"].isNull())
|
||||
downloadKeyId_ = value["DownloadKeyId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DownloadDataTrackResultResult::getDownloadKeyId()const
|
||||
{
|
||||
return downloadKeyId_;
|
||||
}
|
||||
|
||||
std::string DownloadDataTrackResultResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DownloadDataTrackResultResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool DownloadDataTrackResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/GetDataTrackJobDegreeRequest.cc
Normal file
45
dms-enterprise/src/model/GetDataTrackJobDegreeRequest.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/GetDataTrackJobDegreeRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataTrackJobDegreeRequest;
|
||||
|
||||
GetDataTrackJobDegreeRequest::GetDataTrackJobDegreeRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataTrackJobDegree") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataTrackJobDegreeRequest::~GetDataTrackJobDegreeRequest() {}
|
||||
|
||||
long GetDataTrackJobDegreeRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataTrackJobDegreeRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetDataTrackJobDegreeRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetDataTrackJobDegreeRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
81
dms-enterprise/src/model/GetDataTrackJobDegreeResult.cc
Normal file
81
dms-enterprise/src/model/GetDataTrackJobDegreeResult.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/GetDataTrackJobDegreeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDataTrackJobDegreeResult::GetDataTrackJobDegreeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataTrackJobDegreeResult::GetDataTrackJobDegreeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataTrackJobDegreeResult::~GetDataTrackJobDegreeResult()
|
||||
{}
|
||||
|
||||
void GetDataTrackJobDegreeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto jobDegreeNode = value["JobDegree"];
|
||||
if(!jobDegreeNode["ListCompletionDegree"].isNull())
|
||||
jobDegree_.listCompletionDegree = jobDegreeNode["ListCompletionDegree"].asString();
|
||||
if(!jobDegreeNode["DownloadCompletionDegree"].isNull())
|
||||
jobDegree_.downloadCompletionDegree = jobDegreeNode["DownloadCompletionDegree"].asString();
|
||||
if(!jobDegreeNode["FilterCompletionDegree"].isNull())
|
||||
jobDegree_.filterCompletionDegree = jobDegreeNode["FilterCompletionDegree"].asString();
|
||||
if(!jobDegreeNode["JobStatus"].isNull())
|
||||
jobDegree_.jobStatus = jobDegreeNode["JobStatus"].asString();
|
||||
if(!jobDegreeNode["StatusDesc"].isNull())
|
||||
jobDegree_.statusDesc = jobDegreeNode["StatusDesc"].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::string GetDataTrackJobDegreeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetDataTrackJobDegreeResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetDataTrackJobDegreeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
GetDataTrackJobDegreeResult::JobDegree GetDataTrackJobDegreeResult::getJobDegree()const
|
||||
{
|
||||
return jobDegree_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/GetDataTrackJobTableMetaRequest.cc
Normal file
45
dms-enterprise/src/model/GetDataTrackJobTableMetaRequest.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/GetDataTrackJobTableMetaRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataTrackJobTableMetaRequest;
|
||||
|
||||
GetDataTrackJobTableMetaRequest::GetDataTrackJobTableMetaRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataTrackJobTableMeta") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataTrackJobTableMetaRequest::~GetDataTrackJobTableMetaRequest() {}
|
||||
|
||||
long GetDataTrackJobTableMetaRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataTrackJobTableMetaRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetDataTrackJobTableMetaRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetDataTrackJobTableMetaRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
96
dms-enterprise/src/model/GetDataTrackJobTableMetaResult.cc
Normal file
96
dms-enterprise/src/model/GetDataTrackJobTableMetaResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetDataTrackJobTableMetaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDataTrackJobTableMetaResult::GetDataTrackJobTableMetaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataTrackJobTableMetaResult::GetDataTrackJobTableMetaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataTrackJobTableMetaResult::~GetDataTrackJobTableMetaResult()
|
||||
{}
|
||||
|
||||
void GetDataTrackJobTableMetaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTableMetaListNode = value["TableMetaList"]["TableMeta"];
|
||||
for (auto valueTableMetaListTableMeta : allTableMetaListNode)
|
||||
{
|
||||
TableMeta tableMetaListObject;
|
||||
if(!valueTableMetaListTableMeta["SchemaName"].isNull())
|
||||
tableMetaListObject.schemaName = valueTableMetaListTableMeta["SchemaName"].asString();
|
||||
if(!valueTableMetaListTableMeta["TableName"].isNull())
|
||||
tableMetaListObject.tableName = valueTableMetaListTableMeta["TableName"].asString();
|
||||
auto allColumnsNode = valueTableMetaListTableMeta["Columns"]["Column"];
|
||||
for (auto valueTableMetaListTableMetaColumnsColumn : allColumnsNode)
|
||||
{
|
||||
TableMeta::Column columnsObject;
|
||||
if(!valueTableMetaListTableMetaColumnsColumn["ColumnName"].isNull())
|
||||
columnsObject.columnName = valueTableMetaListTableMetaColumnsColumn["ColumnName"].asString();
|
||||
if(!valueTableMetaListTableMetaColumnsColumn["ColumnPosition"].isNull())
|
||||
columnsObject.columnPosition = std::stoi(valueTableMetaListTableMetaColumnsColumn["ColumnPosition"].asString());
|
||||
if(!valueTableMetaListTableMetaColumnsColumn["ColumnType"].isNull())
|
||||
columnsObject.columnType = valueTableMetaListTableMetaColumnsColumn["ColumnType"].asString();
|
||||
if(!valueTableMetaListTableMetaColumnsColumn["Fictive"].isNull())
|
||||
columnsObject.fictive = valueTableMetaListTableMetaColumnsColumn["Fictive"].asString() == "true";
|
||||
if(!valueTableMetaListTableMetaColumnsColumn["Charset"].isNull())
|
||||
columnsObject.charset = valueTableMetaListTableMetaColumnsColumn["Charset"].asString();
|
||||
tableMetaListObject.columns.push_back(columnsObject);
|
||||
}
|
||||
tableMetaList_.push_back(tableMetaListObject);
|
||||
}
|
||||
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<GetDataTrackJobTableMetaResult::TableMeta> GetDataTrackJobTableMetaResult::getTableMetaList()const
|
||||
{
|
||||
return tableMetaList_;
|
||||
}
|
||||
|
||||
std::string GetDataTrackJobTableMetaResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetDataTrackJobTableMetaResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetDataTrackJobTableMetaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
dms-enterprise/src/model/GetDataTrackOrderDetailRequest.cc
Normal file
45
dms-enterprise/src/model/GetDataTrackOrderDetailRequest.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/GetDataTrackOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataTrackOrderDetailRequest;
|
||||
|
||||
GetDataTrackOrderDetailRequest::GetDataTrackOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataTrackOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataTrackOrderDetailRequest::~GetDataTrackOrderDetailRequest() {}
|
||||
|
||||
long GetDataTrackOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataTrackOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetDataTrackOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetDataTrackOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
93
dms-enterprise/src/model/GetDataTrackOrderDetailResult.cc
Normal file
93
dms-enterprise/src/model/GetDataTrackOrderDetailResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataTrackOrderDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDataTrackOrderDetailResult::GetDataTrackOrderDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDataTrackOrderDetailResult::GetDataTrackOrderDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDataTrackOrderDetailResult::~GetDataTrackOrderDetailResult()
|
||||
{}
|
||||
|
||||
void GetDataTrackOrderDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataTrackOrderDetailNode = value["DataTrackOrderDetail"];
|
||||
if(!dataTrackOrderDetailNode["DbId"].isNull())
|
||||
dataTrackOrderDetail_.dbId = std::stol(dataTrackOrderDetailNode["DbId"].asString());
|
||||
if(!dataTrackOrderDetailNode["Logic"].isNull())
|
||||
dataTrackOrderDetail_.logic = dataTrackOrderDetailNode["Logic"].asString() == "true";
|
||||
if(!dataTrackOrderDetailNode["DatabaseSearchName"].isNull())
|
||||
dataTrackOrderDetail_.databaseSearchName = dataTrackOrderDetailNode["DatabaseSearchName"].asString();
|
||||
if(!dataTrackOrderDetailNode["JobStartTime"].isNull())
|
||||
dataTrackOrderDetail_.jobStartTime = dataTrackOrderDetailNode["JobStartTime"].asString();
|
||||
if(!dataTrackOrderDetailNode["JobEndTime"].isNull())
|
||||
dataTrackOrderDetail_.jobEndTime = dataTrackOrderDetailNode["JobEndTime"].asString();
|
||||
if(!dataTrackOrderDetailNode["SchemaName"].isNull())
|
||||
dataTrackOrderDetail_.schemaName = dataTrackOrderDetailNode["SchemaName"].asString();
|
||||
if(!dataTrackOrderDetailNode["JobStatus"].isNull())
|
||||
dataTrackOrderDetail_.jobStatus = dataTrackOrderDetailNode["JobStatus"].asString();
|
||||
if(!dataTrackOrderDetailNode["StatusDesc"].isNull())
|
||||
dataTrackOrderDetail_.statusDesc = dataTrackOrderDetailNode["StatusDesc"].asString();
|
||||
auto allTableNames = dataTrackOrderDetailNode["TableNames"]["TableNames"];
|
||||
for (auto value : allTableNames)
|
||||
dataTrackOrderDetail_.tableNames.push_back(value.asString());
|
||||
auto allTrackTypes = dataTrackOrderDetailNode["TrackTypes"]["TrackTypes"];
|
||||
for (auto value : allTrackTypes)
|
||||
dataTrackOrderDetail_.trackTypes.push_back(value.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();
|
||||
|
||||
}
|
||||
|
||||
GetDataTrackOrderDetailResult::DataTrackOrderDetail GetDataTrackOrderDetailResult::getDataTrackOrderDetail()const
|
||||
{
|
||||
return dataTrackOrderDetail_;
|
||||
}
|
||||
|
||||
std::string GetDataTrackOrderDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetDataTrackOrderDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetDataTrackOrderDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -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/GetDatabaseExportOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDatabaseExportOrderDetailRequest;
|
||||
|
||||
GetDatabaseExportOrderDetailRequest::GetDatabaseExportOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabaseExportOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatabaseExportOrderDetailRequest::~GetDatabaseExportOrderDetailRequest() {}
|
||||
|
||||
long GetDatabaseExportOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDatabaseExportOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long GetDatabaseExportOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetDatabaseExportOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setBodyParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
110
dms-enterprise/src/model/GetDatabaseExportOrderDetailResult.cc
Normal file
110
dms-enterprise/src/model/GetDatabaseExportOrderDetailResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/GetDatabaseExportOrderDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetDatabaseExportOrderDetailResult::GetDatabaseExportOrderDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDatabaseExportOrderDetailResult::GetDatabaseExportOrderDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDatabaseExportOrderDetailResult::~GetDatabaseExportOrderDetailResult()
|
||||
{}
|
||||
|
||||
void GetDatabaseExportOrderDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto databaseExportOrderDetailNode = value["DatabaseExportOrderDetail"];
|
||||
if(!databaseExportOrderDetailNode["Id"].isNull())
|
||||
databaseExportOrderDetail_.id = std::stol(databaseExportOrderDetailNode["Id"].asString());
|
||||
if(!databaseExportOrderDetailNode["Committer"].isNull())
|
||||
databaseExportOrderDetail_.committer = databaseExportOrderDetailNode["Committer"].asString();
|
||||
if(!databaseExportOrderDetailNode["CommitterId"].isNull())
|
||||
databaseExportOrderDetail_.committerId = databaseExportOrderDetailNode["CommitterId"].asString();
|
||||
if(!databaseExportOrderDetailNode["Comment"].isNull())
|
||||
databaseExportOrderDetail_.comment = databaseExportOrderDetailNode["Comment"].asString();
|
||||
if(!databaseExportOrderDetailNode["SearchName"].isNull())
|
||||
databaseExportOrderDetail_.searchName = databaseExportOrderDetailNode["SearchName"].asString();
|
||||
if(!databaseExportOrderDetailNode["StatusDesc"].isNull())
|
||||
databaseExportOrderDetail_.statusDesc = databaseExportOrderDetailNode["StatusDesc"].asString();
|
||||
if(!databaseExportOrderDetailNode["WorkflowStatusDesc"].isNull())
|
||||
databaseExportOrderDetail_.workflowStatusDesc = databaseExportOrderDetailNode["WorkflowStatusDesc"].asString();
|
||||
if(!databaseExportOrderDetailNode["Log"].isNull())
|
||||
databaseExportOrderDetail_.log = databaseExportOrderDetailNode["Log"].asString();
|
||||
auto keyInfoNode = databaseExportOrderDetailNode["KeyInfo"];
|
||||
if(!keyInfoNode["DbId"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.dbId = std::stol(keyInfoNode["DbId"].asString());
|
||||
if(!keyInfoNode["DownloadURL"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.downloadURL = keyInfoNode["DownloadURL"].asString();
|
||||
if(!keyInfoNode["AuditDate"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.auditDate = keyInfoNode["AuditDate"].asString();
|
||||
auto configNode = keyInfoNode["Config"];
|
||||
if(!configNode["DbName"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.config.dbName = configNode["DbName"].asString();
|
||||
if(!configNode["ExportContent"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.config.exportContent = configNode["ExportContent"].asString();
|
||||
if(!configNode["TargetOption"].isNull())
|
||||
databaseExportOrderDetail_.keyInfo.config.targetOption = configNode["TargetOption"].asString();
|
||||
auto allExportTypes = configNode["ExportTypes"]["ExportTypes"];
|
||||
for (auto value : allExportTypes)
|
||||
databaseExportOrderDetail_.keyInfo.config.exportTypes.push_back(value.asString());
|
||||
auto allSelectedTables = configNode["SelectedTables"]["SelectedTables"];
|
||||
for (auto value : allSelectedTables)
|
||||
databaseExportOrderDetail_.keyInfo.config.selectedTables.push_back(value.asString());
|
||||
auto allSQLExtOption = configNode["SQLExtOption"]["SQLExtOption"];
|
||||
for (auto value : allSQLExtOption)
|
||||
databaseExportOrderDetail_.keyInfo.config.sQLExtOption.push_back(value.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";
|
||||
|
||||
}
|
||||
|
||||
GetDatabaseExportOrderDetailResult::DatabaseExportOrderDetail GetDatabaseExportOrderDetailResult::getDatabaseExportOrderDetail()const
|
||||
{
|
||||
return databaseExportOrderDetail_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseExportOrderDetailResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseExportOrderDetailResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetDatabaseExportOrderDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,8 @@ void ListDDLPublishRecordsResult::parse(const std::string &payload)
|
||||
dDLPublishRecordListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].isNull())
|
||||
dDLPublishRecordListObject.workflowInstanceId = std::stol(valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["Comment"].isNull())
|
||||
dDLPublishRecordListObject.comment = valueDDLPublishRecordListDDLPublishRecord["Comment"].asString();
|
||||
auto allPublishTaskInfoListNode = valueDDLPublishRecordListDDLPublishRecord["PublishTaskInfoList"]["PublishTaskInfo"];
|
||||
for (auto valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo : allPublishTaskInfoListNode)
|
||||
{
|
||||
|
||||
@@ -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/QueryDataTrackResultDownloadStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::QueryDataTrackResultDownloadStatusRequest;
|
||||
|
||||
QueryDataTrackResultDownloadStatusRequest::QueryDataTrackResultDownloadStatusRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "QueryDataTrackResultDownloadStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDataTrackResultDownloadStatusRequest::~QueryDataTrackResultDownloadStatusRequest() {}
|
||||
|
||||
long QueryDataTrackResultDownloadStatusRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void QueryDataTrackResultDownloadStatusRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long QueryDataTrackResultDownloadStatusRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void QueryDataTrackResultDownloadStatusRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::string QueryDataTrackResultDownloadStatusRequest::getDownloadKeyId() const {
|
||||
return downloadKeyId_;
|
||||
}
|
||||
|
||||
void QueryDataTrackResultDownloadStatusRequest::setDownloadKeyId(const std::string &downloadKeyId) {
|
||||
downloadKeyId_ = downloadKeyId;
|
||||
setParameter(std::string("DownloadKeyId"), downloadKeyId);
|
||||
}
|
||||
|
||||
@@ -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/QueryDataTrackResultDownloadStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
QueryDataTrackResultDownloadStatusResult::QueryDataTrackResultDownloadStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDataTrackResultDownloadStatusResult::QueryDataTrackResultDownloadStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDataTrackResultDownloadStatusResult::~QueryDataTrackResultDownloadStatusResult()
|
||||
{}
|
||||
|
||||
void QueryDataTrackResultDownloadStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto statusResultNode = value["StatusResult"];
|
||||
if(!statusResultNode["DownloadStatus"].isNull())
|
||||
statusResult_.downloadStatus = statusResultNode["DownloadStatus"].asString();
|
||||
if(!statusResultNode["DownloadUrl"].isNull())
|
||||
statusResult_.downloadUrl = statusResultNode["DownloadUrl"].asString();
|
||||
if(!statusResultNode["StatusDesc"].isNull())
|
||||
statusResult_.statusDesc = statusResultNode["StatusDesc"].asString();
|
||||
if(!statusResultNode["TotalCount"].isNull())
|
||||
statusResult_.totalCount = std::stol(statusResultNode["TotalCount"].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();
|
||||
|
||||
}
|
||||
|
||||
QueryDataTrackResultDownloadStatusResult::StatusResult QueryDataTrackResultDownloadStatusResult::getStatusResult()const
|
||||
{
|
||||
return statusResult_;
|
||||
}
|
||||
|
||||
std::string QueryDataTrackResultDownloadStatusResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string QueryDataTrackResultDownloadStatusResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool QueryDataTrackResultDownloadStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
101
dms-enterprise/src/model/SearchDataTrackResultRequest.cc
Normal file
101
dms-enterprise/src/model/SearchDataTrackResultRequest.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/SearchDataTrackResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::SearchDataTrackResultRequest;
|
||||
|
||||
SearchDataTrackResultRequest::SearchDataTrackResultRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "SearchDataTrackResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchDataTrackResultRequest::~SearchDataTrackResultRequest() {}
|
||||
|
||||
std::string SearchDataTrackResultRequest::getFilterStartTime() const {
|
||||
return filterStartTime_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setFilterStartTime(const std::string &filterStartTime) {
|
||||
filterStartTime_ = filterStartTime;
|
||||
setParameter(std::string("FilterStartTime"), filterStartTime);
|
||||
}
|
||||
|
||||
std::vector<SearchDataTrackResultRequest::std::string> SearchDataTrackResultRequest::getFilterTypeList() const {
|
||||
return filterTypeList_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setFilterTypeList(const std::vector<SearchDataTrackResultRequest::std::string> &filterTypeList) {
|
||||
filterTypeList_ = filterTypeList;
|
||||
for(int dep1 = 0; dep1 != filterTypeList.size(); dep1++) {
|
||||
setParameter(std::string("FilterTypeList") + "." + std::to_string(dep1 + 1), filterTypeList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
long SearchDataTrackResultRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
long SearchDataTrackResultRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::vector<SearchDataTrackResultRequest::std::string> SearchDataTrackResultRequest::getFilterTableList() const {
|
||||
return filterTableList_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setFilterTableList(const std::vector<SearchDataTrackResultRequest::std::string> &filterTableList) {
|
||||
filterTableList_ = filterTableList;
|
||||
for(int dep1 = 0; dep1 != filterTableList.size(); dep1++) {
|
||||
setParameter(std::string("FilterTableList") + "." + std::to_string(dep1 + 1), filterTableList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SearchDataTrackResultRequest::getFilterEndTime() const {
|
||||
return filterEndTime_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setFilterEndTime(const std::string &filterEndTime) {
|
||||
filterEndTime_ = filterEndTime;
|
||||
setParameter(std::string("FilterEndTime"), filterEndTime);
|
||||
}
|
||||
|
||||
SearchDataTrackResultRequest::ColumnFilter SearchDataTrackResultRequest::getColumnFilter() const {
|
||||
return columnFilter_;
|
||||
}
|
||||
|
||||
void SearchDataTrackResultRequest::setColumnFilter(const SearchDataTrackResultRequest::ColumnFilter &columnFilter) {
|
||||
columnFilter_ = columnFilter;
|
||||
setParameter(std::string("ColumnFilter") + ".BetweenStart", columnFilter.betweenStart);
|
||||
setParameter(std::string("ColumnFilter") + ".BetweenEnd", columnFilter.betweenEnd);
|
||||
setParameter(std::string("ColumnFilter") + ".ColumnName", columnFilter.columnName);
|
||||
setParameter(std::string("ColumnFilter") + ".Value", columnFilter.value);
|
||||
setParameter(std::string("ColumnFilter") + ".Operator", columnFilter._operator);
|
||||
for(int dep1 = 0; dep1 != columnFilter.inList.size(); dep1++) {
|
||||
setParameter(std::string("ColumnFilter") + ".InList." + std::to_string(dep1 + 1), columnFilter.inList[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
121
dms-enterprise/src/model/SearchDataTrackResultResult.cc
Normal file
121
dms-enterprise/src/model/SearchDataTrackResultResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/SearchDataTrackResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
SearchDataTrackResultResult::SearchDataTrackResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchDataTrackResultResult::SearchDataTrackResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchDataTrackResultResult::~SearchDataTrackResultResult()
|
||||
{}
|
||||
|
||||
void SearchDataTrackResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trackResultNode = value["TrackResult"];
|
||||
if(!trackResultNode["TotalCount"].isNull())
|
||||
trackResult_.totalCount = std::stol(trackResultNode["TotalCount"].asString());
|
||||
auto allEventListNode = trackResultNode["EventList"]["Event"];
|
||||
for (auto trackResultNodeEventListEvent : allEventListNode)
|
||||
{
|
||||
TrackResult::Event eventObject;
|
||||
if(!trackResultNodeEventListEvent["EventLength"].isNull())
|
||||
eventObject.eventLength = std::stol(trackResultNodeEventListEvent["EventLength"].asString());
|
||||
if(!trackResultNodeEventListEvent["EventTimestamp"].isNull())
|
||||
eventObject.eventTimestamp = trackResultNodeEventListEvent["EventTimestamp"].asString();
|
||||
if(!trackResultNodeEventListEvent["EventType"].isNull())
|
||||
eventObject.eventType = trackResultNodeEventListEvent["EventType"].asString();
|
||||
if(!trackResultNodeEventListEvent["EventId"].isNull())
|
||||
eventObject.eventId = std::stol(trackResultNodeEventListEvent["EventId"].asString());
|
||||
if(!trackResultNodeEventListEvent["RollSQL"].isNull())
|
||||
eventObject.rollSQL = trackResultNodeEventListEvent["RollSQL"].asString();
|
||||
auto allDataAfter = value["DataAfter"]["DataAfter"];
|
||||
for (auto value : allDataAfter)
|
||||
eventObject.dataAfter.push_back(value.asString());
|
||||
auto allDataBefore = value["DataBefore"]["DataBefore"];
|
||||
for (auto value : allDataBefore)
|
||||
eventObject.dataBefore.push_back(value.asString());
|
||||
trackResult_.eventList.push_back(eventObject);
|
||||
}
|
||||
auto allTableInfoListNode = trackResultNode["TableInfoList"]["TableInfo"];
|
||||
for (auto trackResultNodeTableInfoListTableInfo : allTableInfoListNode)
|
||||
{
|
||||
TrackResult::TableInfo tableInfoObject;
|
||||
if(!trackResultNodeTableInfoListTableInfo["SchemaName"].isNull())
|
||||
tableInfoObject.schemaName = trackResultNodeTableInfoListTableInfo["SchemaName"].asString();
|
||||
if(!trackResultNodeTableInfoListTableInfo["TableName"].isNull())
|
||||
tableInfoObject.tableName = trackResultNodeTableInfoListTableInfo["TableName"].asString();
|
||||
if(!trackResultNodeTableInfoListTableInfo["Description"].isNull())
|
||||
tableInfoObject.description = trackResultNodeTableInfoListTableInfo["Description"].asString();
|
||||
auto allColumnsNode = trackResultNodeTableInfoListTableInfo["Columns"]["Column"];
|
||||
for (auto trackResultNodeTableInfoListTableInfoColumnsColumn : allColumnsNode)
|
||||
{
|
||||
TrackResult::TableInfo::Column columnsObject;
|
||||
if(!trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnName"].isNull())
|
||||
columnsObject.columnName = trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnName"].asString();
|
||||
if(!trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnPosition"].isNull())
|
||||
columnsObject.columnPosition = std::stoi(trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnPosition"].asString());
|
||||
if(!trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnType"].isNull())
|
||||
columnsObject.columnType = trackResultNodeTableInfoListTableInfoColumnsColumn["ColumnType"].asString();
|
||||
if(!trackResultNodeTableInfoListTableInfoColumnsColumn["Fictive"].isNull())
|
||||
columnsObject.fictive = trackResultNodeTableInfoListTableInfoColumnsColumn["Fictive"].asString() == "true";
|
||||
tableInfoObject.columns.push_back(columnsObject);
|
||||
}
|
||||
trackResult_.tableInfoList.push_back(tableInfoObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
SearchDataTrackResultResult::TrackResult SearchDataTrackResultResult::getTrackResult()const
|
||||
{
|
||||
return trackResult_;
|
||||
}
|
||||
|
||||
std::string SearchDataTrackResultResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string SearchDataTrackResultResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool SearchDataTrackResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user