From 972958c1e34e121f025596c3a8d696a207fc7335 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 21 Jan 2022 07:36:52 +0000 Subject: [PATCH] Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API. --- CHANGELOG | 4 + VERSION | 2 +- dms-enterprise/CMakeLists.txt | 128 ++ .../dms-enterprise/Dms_enterpriseClient.h | 256 ++++ .../model/AddLogicTableRouteConfigRequest.h | 51 + .../model/AddLogicTableRouteConfigResult.h | 55 + .../model/ChangeColumnSecLevelRequest.h | 60 + .../model/ChangeColumnSecLevelResult.h | 55 + .../model/CreateLogicDatabaseRequest.h | 48 + .../model/CreateLogicDatabaseResult.h | 57 + .../model/CreateProxyAccessRequest.h | 54 + .../model/CreateProxyAccessResult.h | 57 + .../dms-enterprise/model/CreateProxyRequest.h | 51 + .../dms-enterprise/model/CreateProxyResult.h | 57 + .../model/DeleteLogicDatabaseRequest.h | 45 + .../model/DeleteLogicDatabaseResult.h | 55 + .../DeleteLogicTableRouteConfigRequest.h | 48 + .../model/DeleteLogicTableRouteConfigResult.h | 55 + .../model/DeleteProxyAccessRequest.h | 45 + .../model/DeleteProxyAccessResult.h | 55 + .../dms-enterprise/model/DeleteProxyRequest.h | 45 + .../dms-enterprise/model/DeleteProxyResult.h | 55 + .../model/EditLogicDatabaseRequest.h | 51 + .../model/EditLogicDatabaseResult.h | 55 + .../model/GetApprovalDetailResult.h | 1 + .../model/GetDBTaskSQLJobLogRequest.h | 45 + .../model/GetDBTaskSQLJobLogResult.h | 57 + .../dms-enterprise/model/GetInstanceResult.h | 32 +- .../model/GetLogicDatabaseResult.h | 1 + .../dms-enterprise/model/GetOpLogResult.h | 3 +- .../dms-enterprise/model/GetProxyRequest.h | 48 + .../dms-enterprise/model/GetProxyResult.h | 75 ++ .../model/GetSparkJobDetailRequest.h | 45 + .../model/GetSparkJobDetailResult.h | 70 + .../model/GetSparkJobDriverLogRequest.h | 45 + .../model/GetSparkJobDriverLogResult.h | 57 + .../model/GetSparkJobExecutorLogsRequest.h | 45 + .../model/GetSparkJobExecutorLogsResult.h | 57 + .../model/GetSparkJobLogRequest.h | 45 + .../model/GetSparkJobLogResult.h | 57 + .../dms-enterprise/model/GetUserResult.h | 5 + .../model/GrantUserPermissionRequest.h | 3 + .../model/InspectProxyAccessSecretRequest.h | 45 + .../model/InspectProxyAccessSecretResult.h | 57 + .../model/KillSparkJobRequest.h | 45 + .../dms-enterprise/model/KillSparkJobResult.h | 55 + .../model/ListDBTaskSQLJobDetailResult.h | 7 +- .../model/ListDataCorrectPreCheckDBRequest.h | 51 + .../model/ListDataCorrectPreCheckDBResult.h | 63 + .../model/ListDataCorrectPreCheckSQLRequest.h | 54 + .../model/ListDataCorrectPreCheckSQLResult.h | 67 + .../model/ListInstanceLoginAuditLogRequest.h | 60 + .../model/ListInstanceLoginAuditLogResult.h | 69 + .../ListInstanceUserPermissionsRequest.h | 54 + .../model/ListInstanceUserPermissionsResult.h | 75 ++ .../model/ListInstancesResult.h | 32 +- .../model/ListLogicDatabasesResult.h | 1 + .../model/ListLogicTableRouteConfigRequest.h | 45 + .../model/ListLogicTableRouteConfigResult.h | 63 + .../dms-enterprise/model/ListProxiesRequest.h | 42 + .../dms-enterprise/model/ListProxiesResult.h | 70 + .../model/ListProxyAccessesRequest.h | 45 + .../model/ListProxyAccessesResult.h | 70 + .../model/ListProxySQLExecAuditLogRequest.h | 66 + .../model/ListProxySQLExecAuditLogResult.h | 74 ++ .../model/ListSQLExecAuditLogRequest.h | 66 + .../model/ListSQLExecAuditLogResult.h | 76 ++ .../model/ListSensitiveColumnsDetailRequest.h | 6 + .../model/ListSensitiveColumnsRequest.h | 6 + .../model/ListUserPermissionsRequest.h | 3 + .../model/ListUserPermissionsResult.h | 2 + .../dms-enterprise/model/ListUsersResult.h | 5 + .../model/ModifyDataCorrectExecSQLRequest.h | 48 + .../model/ModifyDataCorrectExecSQLResult.h | 55 + .../model/PauseDataCorrectSQLJobRequest.h | 51 + .../model/PauseDataCorrectSQLJobResult.h | 55 + .../model/RestartDataCorrectSQLJobRequest.h | 51 + .../model/RestartDataCorrectSQLJobResult.h | 55 + .../model/RetryDataCorrectPreCheckRequest.h | 45 + .../model/RetryDataCorrectPreCheckResult.h | 55 + .../model/RevokeUserPermissionRequest.h | 3 + .../model/SubmitSparkJobRequest.h | 71 + .../model/SubmitSparkJobResult.h | 57 + dms-enterprise/src/Dms-enterpriseClient.cc | 1152 +++++++++++++++++ .../model/AddLogicTableRouteConfigRequest.cc | 63 + .../model/AddLogicTableRouteConfigResult.cc | 65 + .../src/model/ChangeColumnSecLevelRequest.cc | 90 ++ .../src/model/ChangeColumnSecLevelResult.cc | 65 + .../src/model/CreateLogicDatabaseRequest.cc | 56 + .../src/model/CreateLogicDatabaseResult.cc | 72 ++ .../src/model/CreateProxyAccessRequest.cc | 72 ++ .../src/model/CreateProxyAccessResult.cc | 72 ++ .../src/model/CreateProxyRequest.cc | 63 + dms-enterprise/src/model/CreateProxyResult.cc | 72 ++ .../src/model/DeleteLogicDatabaseRequest.cc | 45 + .../src/model/DeleteLogicDatabaseResult.cc | 65 + .../DeleteLogicTableRouteConfigRequest.cc | 54 + .../DeleteLogicTableRouteConfigResult.cc | 65 + .../src/model/DeleteProxyAccessRequest.cc | 45 + .../src/model/DeleteProxyAccessResult.cc | 65 + .../src/model/DeleteProxyRequest.cc | 45 + dms-enterprise/src/model/DeleteProxyResult.cc | 65 + .../src/model/EditLogicDatabaseRequest.cc | 65 + .../src/model/EditLogicDatabaseResult.cc | 65 + .../src/model/GetApprovalDetailResult.cc | 2 + .../src/model/GetDBTaskSQLJobLogRequest.cc | 45 + .../src/model/GetDBTaskSQLJobLogResult.cc | 72 ++ dms-enterprise/src/model/GetInstanceResult.cc | 5 + .../src/model/GetLogicDatabaseResult.cc | 2 + dms-enterprise/src/model/GetOpLogResult.cc | 4 +- dms-enterprise/src/model/GetProxyRequest.cc | 54 + dms-enterprise/src/model/GetProxyResult.cc | 135 ++ .../src/model/GetSparkJobDetailRequest.cc | 45 + .../src/model/GetSparkJobDetailResult.cc | 91 ++ .../src/model/GetSparkJobDriverLogRequest.cc | 45 + .../src/model/GetSparkJobDriverLogResult.cc | 72 ++ .../model/GetSparkJobExecutorLogsRequest.cc | 45 + .../model/GetSparkJobExecutorLogsResult.cc | 73 ++ .../src/model/GetSparkJobLogRequest.cc | 45 + .../src/model/GetSparkJobLogResult.cc | 72 ++ dms-enterprise/src/model/GetUserResult.cc | 10 + .../src/model/GrantUserPermissionRequest.cc | 9 + .../model/InspectProxyAccessSecretRequest.cc | 45 + .../model/InspectProxyAccessSecretResult.cc | 72 ++ .../src/model/KillSparkJobRequest.cc | 45 + .../src/model/KillSparkJobResult.cc | 65 + .../src/model/ListDBTaskSQLJobDetailResult.cc | 10 + .../model/ListDataCorrectPreCheckDBRequest.cc | 63 + .../model/ListDataCorrectPreCheckDBResult.cc | 82 ++ .../ListDataCorrectPreCheckSQLRequest.cc | 72 ++ .../model/ListDataCorrectPreCheckSQLResult.cc | 90 ++ .../model/ListInstanceLoginAuditLogRequest.cc | 90 ++ .../model/ListInstanceLoginAuditLogResult.cc | 97 ++ .../ListInstanceUserPermissionsRequest.cc | 72 ++ .../ListInstanceUserPermissionsResult.cc | 107 ++ .../src/model/ListInstancesResult.cc | 5 + .../src/model/ListLogicDatabasesResult.cc | 2 + .../model/ListLogicTableRouteConfigRequest.cc | 45 + .../model/ListLogicTableRouteConfigResult.cc | 82 ++ .../src/model/ListProxiesRequest.cc | 36 + dms-enterprise/src/model/ListProxiesResult.cc | 96 ++ .../src/model/ListProxyAccessesRequest.cc | 45 + .../src/model/ListProxyAccessesResult.cc | 96 ++ .../model/ListProxySQLExecAuditLogRequest.cc | 108 ++ .../model/ListProxySQLExecAuditLogResult.cc | 107 ++ .../src/model/ListSQLExecAuditLogRequest.cc | 108 ++ .../src/model/ListSQLExecAuditLogResult.cc | 111 ++ .../ListSensitiveColumnsDetailRequest.cc | 18 + .../src/model/ListSensitiveColumnsRequest.cc | 18 + .../src/model/ListUserPermissionsRequest.cc | 9 + .../src/model/ListUserPermissionsResult.cc | 4 + dms-enterprise/src/model/ListUsersResult.cc | 10 + .../model/ModifyDataCorrectExecSQLRequest.cc | 54 + .../model/ModifyDataCorrectExecSQLResult.cc | 65 + .../model/PauseDataCorrectSQLJobRequest.cc | 63 + .../src/model/PauseDataCorrectSQLJobResult.cc | 65 + .../model/RestartDataCorrectSQLJobRequest.cc | 63 + .../model/RestartDataCorrectSQLJobResult.cc | 65 + .../model/RetryDataCorrectPreCheckRequest.cc | 45 + .../model/RetryDataCorrectPreCheckResult.cc | 65 + .../src/model/RevokeUserPermissionRequest.cc | 9 + .../src/model/SubmitSparkJobRequest.cc | 116 ++ .../src/model/SubmitSparkJobResult.cc | 72 ++ 163 files changed, 9764 insertions(+), 30 deletions(-) create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobRequest.h create mode 100644 dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobResult.h create mode 100644 dms-enterprise/src/model/AddLogicTableRouteConfigRequest.cc create mode 100644 dms-enterprise/src/model/AddLogicTableRouteConfigResult.cc create mode 100644 dms-enterprise/src/model/ChangeColumnSecLevelRequest.cc create mode 100644 dms-enterprise/src/model/ChangeColumnSecLevelResult.cc create mode 100644 dms-enterprise/src/model/CreateLogicDatabaseRequest.cc create mode 100644 dms-enterprise/src/model/CreateLogicDatabaseResult.cc create mode 100644 dms-enterprise/src/model/CreateProxyAccessRequest.cc create mode 100644 dms-enterprise/src/model/CreateProxyAccessResult.cc create mode 100644 dms-enterprise/src/model/CreateProxyRequest.cc create mode 100644 dms-enterprise/src/model/CreateProxyResult.cc create mode 100644 dms-enterprise/src/model/DeleteLogicDatabaseRequest.cc create mode 100644 dms-enterprise/src/model/DeleteLogicDatabaseResult.cc create mode 100644 dms-enterprise/src/model/DeleteLogicTableRouteConfigRequest.cc create mode 100644 dms-enterprise/src/model/DeleteLogicTableRouteConfigResult.cc create mode 100644 dms-enterprise/src/model/DeleteProxyAccessRequest.cc create mode 100644 dms-enterprise/src/model/DeleteProxyAccessResult.cc create mode 100644 dms-enterprise/src/model/DeleteProxyRequest.cc create mode 100644 dms-enterprise/src/model/DeleteProxyResult.cc create mode 100644 dms-enterprise/src/model/EditLogicDatabaseRequest.cc create mode 100644 dms-enterprise/src/model/EditLogicDatabaseResult.cc create mode 100644 dms-enterprise/src/model/GetDBTaskSQLJobLogRequest.cc create mode 100644 dms-enterprise/src/model/GetDBTaskSQLJobLogResult.cc create mode 100644 dms-enterprise/src/model/GetProxyRequest.cc create mode 100644 dms-enterprise/src/model/GetProxyResult.cc create mode 100644 dms-enterprise/src/model/GetSparkJobDetailRequest.cc create mode 100644 dms-enterprise/src/model/GetSparkJobDetailResult.cc create mode 100644 dms-enterprise/src/model/GetSparkJobDriverLogRequest.cc create mode 100644 dms-enterprise/src/model/GetSparkJobDriverLogResult.cc create mode 100644 dms-enterprise/src/model/GetSparkJobExecutorLogsRequest.cc create mode 100644 dms-enterprise/src/model/GetSparkJobExecutorLogsResult.cc create mode 100644 dms-enterprise/src/model/GetSparkJobLogRequest.cc create mode 100644 dms-enterprise/src/model/GetSparkJobLogResult.cc create mode 100644 dms-enterprise/src/model/InspectProxyAccessSecretRequest.cc create mode 100644 dms-enterprise/src/model/InspectProxyAccessSecretResult.cc create mode 100644 dms-enterprise/src/model/KillSparkJobRequest.cc create mode 100644 dms-enterprise/src/model/KillSparkJobResult.cc create mode 100644 dms-enterprise/src/model/ListDataCorrectPreCheckDBRequest.cc create mode 100644 dms-enterprise/src/model/ListDataCorrectPreCheckDBResult.cc create mode 100644 dms-enterprise/src/model/ListDataCorrectPreCheckSQLRequest.cc create mode 100644 dms-enterprise/src/model/ListDataCorrectPreCheckSQLResult.cc create mode 100644 dms-enterprise/src/model/ListInstanceLoginAuditLogRequest.cc create mode 100644 dms-enterprise/src/model/ListInstanceLoginAuditLogResult.cc create mode 100644 dms-enterprise/src/model/ListInstanceUserPermissionsRequest.cc create mode 100644 dms-enterprise/src/model/ListInstanceUserPermissionsResult.cc create mode 100644 dms-enterprise/src/model/ListLogicTableRouteConfigRequest.cc create mode 100644 dms-enterprise/src/model/ListLogicTableRouteConfigResult.cc create mode 100644 dms-enterprise/src/model/ListProxiesRequest.cc create mode 100644 dms-enterprise/src/model/ListProxiesResult.cc create mode 100644 dms-enterprise/src/model/ListProxyAccessesRequest.cc create mode 100644 dms-enterprise/src/model/ListProxyAccessesResult.cc create mode 100644 dms-enterprise/src/model/ListProxySQLExecAuditLogRequest.cc create mode 100644 dms-enterprise/src/model/ListProxySQLExecAuditLogResult.cc create mode 100644 dms-enterprise/src/model/ListSQLExecAuditLogRequest.cc create mode 100644 dms-enterprise/src/model/ListSQLExecAuditLogResult.cc create mode 100644 dms-enterprise/src/model/ModifyDataCorrectExecSQLRequest.cc create mode 100644 dms-enterprise/src/model/ModifyDataCorrectExecSQLResult.cc create mode 100644 dms-enterprise/src/model/PauseDataCorrectSQLJobRequest.cc create mode 100644 dms-enterprise/src/model/PauseDataCorrectSQLJobResult.cc create mode 100644 dms-enterprise/src/model/RestartDataCorrectSQLJobRequest.cc create mode 100644 dms-enterprise/src/model/RestartDataCorrectSQLJobResult.cc create mode 100644 dms-enterprise/src/model/RetryDataCorrectPreCheckRequest.cc create mode 100644 dms-enterprise/src/model/RetryDataCorrectPreCheckResult.cc create mode 100644 dms-enterprise/src/model/SubmitSparkJobRequest.cc create mode 100644 dms-enterprise/src/model/SubmitSparkJobResult.cc diff --git a/CHANGELOG b/CHANGELOG index 83c809dbb..8215d09da 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +2022-01-21 Version: 1.36.1033 +- Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API. +- Supported ListDataCorrectPreCheckSQL to return tableNames information. + 2022-01-19 Version: 1.36.1032 - Upgrade Service for SMS. diff --git a/VERSION b/VERSION index 070b6f9fc..c03de6506 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1032 \ No newline at end of file +1.36.1033 \ No newline at end of file diff --git a/dms-enterprise/CMakeLists.txt b/dms-enterprise/CMakeLists.txt index 400945530..ae8ea7069 100644 --- a/dms-enterprise/CMakeLists.txt +++ b/dms-enterprise/CMakeLists.txt @@ -21,8 +21,12 @@ set(dms-enterprise_public_header include/alibabacloud/dms-enterprise/Dms_enterpriseExport.h ) set(dms-enterprise_public_header_model + include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h + include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h + include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.h + include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h include/alibabacloud/dms-enterprise/model/CloseOrderResult.h include/alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h @@ -33,8 +37,14 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/CreateDataImportOrderResult.h include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h include/alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderResult.h + include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h include/alibabacloud/dms-enterprise/model/CreateOrderResult.h + include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h + include/alibabacloud/dms-enterprise/model/CreateProxyResult.h + include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h + include/alibabacloud/dms-enterprise/model/CreateProxyAccessResult.h include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h include/alibabacloud/dms-enterprise/model/CreatePublishGroupTaskResult.h include/alibabacloud/dms-enterprise/model/CreateSQLReviewOrderRequest.h @@ -47,10 +57,20 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobResult.h include/alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h include/alibabacloud/dms-enterprise/model/DeleteInstanceResult.h + include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h + include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h + include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigResult.h + include/alibabacloud/dms-enterprise/model/DeleteProxyRequest.h + include/alibabacloud/dms-enterprise/model/DeleteProxyResult.h + include/alibabacloud/dms-enterprise/model/DeleteProxyAccessRequest.h + include/alibabacloud/dms-enterprise/model/DeleteProxyAccessResult.h include/alibabacloud/dms-enterprise/model/DeleteUserRequest.h 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/EditLogicDatabaseRequest.h + include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h include/alibabacloud/dms-enterprise/model/EnableUserRequest.h include/alibabacloud/dms-enterprise/model/EnableUserResult.h include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h @@ -63,6 +83,8 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/ExecuteStructSyncResult.h include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h + include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h + include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h include/alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h include/alibabacloud/dms-enterprise/model/GetDBTopologyResult.h include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h @@ -99,10 +121,20 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailResult.h include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h include/alibabacloud/dms-enterprise/model/GetPhysicalDatabaseResult.h + include/alibabacloud/dms-enterprise/model/GetProxyRequest.h + include/alibabacloud/dms-enterprise/model/GetProxyResult.h include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.h include/alibabacloud/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h include/alibabacloud/dms-enterprise/model/GetSQLReviewOptimizeDetailRequest.h include/alibabacloud/dms-enterprise/model/GetSQLReviewOptimizeDetailResult.h + include/alibabacloud/dms-enterprise/model/GetSparkJobDetailRequest.h + include/alibabacloud/dms-enterprise/model/GetSparkJobDetailResult.h + include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogRequest.h + include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogResult.h + include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsRequest.h + include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsResult.h + include/alibabacloud/dms-enterprise/model/GetSparkJobLogRequest.h + include/alibabacloud/dms-enterprise/model/GetSparkJobLogResult.h include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h include/alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailResult.h include/alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h @@ -123,6 +155,10 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/GetUserUploadFileJobResult.h include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h + include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h + include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.h + include/alibabacloud/dms-enterprise/model/KillSparkJobRequest.h + include/alibabacloud/dms-enterprise/model/KillSparkJobResult.h include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h include/alibabacloud/dms-enterprise/model/ListColumnsResult.h include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h @@ -131,20 +167,38 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h include/alibabacloud/dms-enterprise/model/ListDDLPublishRecordsResult.h + include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBRequest.h + include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h + include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h + include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h include/alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsResult.h include/alibabacloud/dms-enterprise/model/ListDatabasesRequest.h include/alibabacloud/dms-enterprise/model/ListDatabasesResult.h include/alibabacloud/dms-enterprise/model/ListIndexesRequest.h include/alibabacloud/dms-enterprise/model/ListIndexesResult.h + include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.h + include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogResult.h + include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsRequest.h + include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.h include/alibabacloud/dms-enterprise/model/ListInstancesRequest.h include/alibabacloud/dms-enterprise/model/ListInstancesResult.h include/alibabacloud/dms-enterprise/model/ListLogicDatabasesRequest.h include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h + include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.h + include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigResult.h include/alibabacloud/dms-enterprise/model/ListLogicTablesRequest.h include/alibabacloud/dms-enterprise/model/ListLogicTablesResult.h include/alibabacloud/dms-enterprise/model/ListOrdersRequest.h include/alibabacloud/dms-enterprise/model/ListOrdersResult.h + include/alibabacloud/dms-enterprise/model/ListProxiesRequest.h + include/alibabacloud/dms-enterprise/model/ListProxiesResult.h + include/alibabacloud/dms-enterprise/model/ListProxyAccessesRequest.h + include/alibabacloud/dms-enterprise/model/ListProxyAccessesResult.h + include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogRequest.h + include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogResult.h + include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogRequest.h + include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogResult.h include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLRequest.h include/alibabacloud/dms-enterprise/model/ListSQLReviewOriginSQLResult.h include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h @@ -163,10 +217,18 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesResult.h include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesRequest.h include/alibabacloud/dms-enterprise/model/ListWorkFlowTemplatesResult.h + include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h + include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h + include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h + include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h include/alibabacloud/dms-enterprise/model/RegisterInstanceRequest.h include/alibabacloud/dms-enterprise/model/RegisterInstanceResult.h include/alibabacloud/dms-enterprise/model/RegisterUserRequest.h include/alibabacloud/dms-enterprise/model/RegisterUserResult.h + include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobRequest.h + include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobResult.h + include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.h + include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h include/alibabacloud/dms-enterprise/model/RevokeUserPermissionResult.h include/alibabacloud/dms-enterprise/model/SearchDatabaseRequest.h @@ -177,6 +239,8 @@ set(dms-enterprise_public_header_model include/alibabacloud/dms-enterprise/model/SetOwnersResult.h include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalRequest.h include/alibabacloud/dms-enterprise/model/SubmitOrderApprovalResult.h + include/alibabacloud/dms-enterprise/model/SubmitSparkJobRequest.h + include/alibabacloud/dms-enterprise/model/SubmitSparkJobResult.h include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h include/alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalResult.h include/alibabacloud/dms-enterprise/model/SyncDatabaseMetaRequest.h @@ -190,8 +254,12 @@ set(dms-enterprise_public_header_model set(dms-enterprise_src src/Dms-enterpriseClient.cc + src/model/AddLogicTableRouteConfigRequest.cc + src/model/AddLogicTableRouteConfigResult.cc src/model/ApproveOrderRequest.cc src/model/ApproveOrderResult.cc + src/model/ChangeColumnSecLevelRequest.cc + src/model/ChangeColumnSecLevelResult.cc src/model/CloseOrderRequest.cc src/model/CloseOrderResult.cc src/model/CreateDataCorrectOrderRequest.cc @@ -202,8 +270,14 @@ set(dms-enterprise_src src/model/CreateDataImportOrderResult.cc src/model/CreateFreeLockCorrectOrderRequest.cc src/model/CreateFreeLockCorrectOrderResult.cc + src/model/CreateLogicDatabaseRequest.cc + src/model/CreateLogicDatabaseResult.cc src/model/CreateOrderRequest.cc src/model/CreateOrderResult.cc + src/model/CreateProxyRequest.cc + src/model/CreateProxyResult.cc + src/model/CreateProxyAccessRequest.cc + src/model/CreateProxyAccessResult.cc src/model/CreatePublishGroupTaskRequest.cc src/model/CreatePublishGroupTaskResult.cc src/model/CreateSQLReviewOrderRequest.cc @@ -216,10 +290,20 @@ set(dms-enterprise_src src/model/CreateUploadOSSFileJobResult.cc src/model/DeleteInstanceRequest.cc src/model/DeleteInstanceResult.cc + src/model/DeleteLogicDatabaseRequest.cc + src/model/DeleteLogicDatabaseResult.cc + src/model/DeleteLogicTableRouteConfigRequest.cc + src/model/DeleteLogicTableRouteConfigResult.cc + src/model/DeleteProxyRequest.cc + src/model/DeleteProxyResult.cc + src/model/DeleteProxyAccessRequest.cc + src/model/DeleteProxyAccessResult.cc src/model/DeleteUserRequest.cc src/model/DeleteUserResult.cc src/model/DisableUserRequest.cc src/model/DisableUserResult.cc + src/model/EditLogicDatabaseRequest.cc + src/model/EditLogicDatabaseResult.cc src/model/EnableUserRequest.cc src/model/EnableUserResult.cc src/model/ExecuteDataCorrectRequest.cc @@ -232,6 +316,8 @@ set(dms-enterprise_src src/model/ExecuteStructSyncResult.cc src/model/GetApprovalDetailRequest.cc src/model/GetApprovalDetailResult.cc + src/model/GetDBTaskSQLJobLogRequest.cc + src/model/GetDBTaskSQLJobLogResult.cc src/model/GetDBTopologyRequest.cc src/model/GetDBTopologyResult.cc src/model/GetDataCorrectBackupFilesRequest.cc @@ -268,10 +354,20 @@ set(dms-enterprise_src src/model/GetPermApplyOrderDetailResult.cc src/model/GetPhysicalDatabaseRequest.cc src/model/GetPhysicalDatabaseResult.cc + src/model/GetProxyRequest.cc + src/model/GetProxyResult.cc src/model/GetSQLReviewCheckResultStatusRequest.cc src/model/GetSQLReviewCheckResultStatusResult.cc src/model/GetSQLReviewOptimizeDetailRequest.cc src/model/GetSQLReviewOptimizeDetailResult.cc + src/model/GetSparkJobDetailRequest.cc + src/model/GetSparkJobDetailResult.cc + src/model/GetSparkJobDriverLogRequest.cc + src/model/GetSparkJobDriverLogResult.cc + src/model/GetSparkJobExecutorLogsRequest.cc + src/model/GetSparkJobExecutorLogsResult.cc + src/model/GetSparkJobLogRequest.cc + src/model/GetSparkJobLogResult.cc src/model/GetStructSyncExecSqlDetailRequest.cc src/model/GetStructSyncExecSqlDetailResult.cc src/model/GetStructSyncJobAnalyzeResultRequest.cc @@ -292,6 +388,10 @@ set(dms-enterprise_src src/model/GetUserUploadFileJobResult.cc src/model/GrantUserPermissionRequest.cc src/model/GrantUserPermissionResult.cc + src/model/InspectProxyAccessSecretRequest.cc + src/model/InspectProxyAccessSecretResult.cc + src/model/KillSparkJobRequest.cc + src/model/KillSparkJobResult.cc src/model/ListColumnsRequest.cc src/model/ListColumnsResult.cc src/model/ListDBTaskSQLJobRequest.cc @@ -300,20 +400,38 @@ set(dms-enterprise_src src/model/ListDBTaskSQLJobDetailResult.cc src/model/ListDDLPublishRecordsRequest.cc src/model/ListDDLPublishRecordsResult.cc + src/model/ListDataCorrectPreCheckDBRequest.cc + src/model/ListDataCorrectPreCheckDBResult.cc + src/model/ListDataCorrectPreCheckSQLRequest.cc + src/model/ListDataCorrectPreCheckSQLResult.cc src/model/ListDatabaseUserPermssionsRequest.cc src/model/ListDatabaseUserPermssionsResult.cc src/model/ListDatabasesRequest.cc src/model/ListDatabasesResult.cc src/model/ListIndexesRequest.cc src/model/ListIndexesResult.cc + src/model/ListInstanceLoginAuditLogRequest.cc + src/model/ListInstanceLoginAuditLogResult.cc + src/model/ListInstanceUserPermissionsRequest.cc + src/model/ListInstanceUserPermissionsResult.cc src/model/ListInstancesRequest.cc src/model/ListInstancesResult.cc src/model/ListLogicDatabasesRequest.cc src/model/ListLogicDatabasesResult.cc + src/model/ListLogicTableRouteConfigRequest.cc + src/model/ListLogicTableRouteConfigResult.cc src/model/ListLogicTablesRequest.cc src/model/ListLogicTablesResult.cc src/model/ListOrdersRequest.cc src/model/ListOrdersResult.cc + src/model/ListProxiesRequest.cc + src/model/ListProxiesResult.cc + src/model/ListProxyAccessesRequest.cc + src/model/ListProxyAccessesResult.cc + src/model/ListProxySQLExecAuditLogRequest.cc + src/model/ListProxySQLExecAuditLogResult.cc + src/model/ListSQLExecAuditLogRequest.cc + src/model/ListSQLExecAuditLogResult.cc src/model/ListSQLReviewOriginSQLRequest.cc src/model/ListSQLReviewOriginSQLResult.cc src/model/ListSensitiveColumnsRequest.cc @@ -332,10 +450,18 @@ set(dms-enterprise_src src/model/ListWorkFlowNodesResult.cc src/model/ListWorkFlowTemplatesRequest.cc src/model/ListWorkFlowTemplatesResult.cc + src/model/ModifyDataCorrectExecSQLRequest.cc + src/model/ModifyDataCorrectExecSQLResult.cc + src/model/PauseDataCorrectSQLJobRequest.cc + src/model/PauseDataCorrectSQLJobResult.cc src/model/RegisterInstanceRequest.cc src/model/RegisterInstanceResult.cc src/model/RegisterUserRequest.cc src/model/RegisterUserResult.cc + src/model/RestartDataCorrectSQLJobRequest.cc + src/model/RestartDataCorrectSQLJobResult.cc + src/model/RetryDataCorrectPreCheckRequest.cc + src/model/RetryDataCorrectPreCheckResult.cc src/model/RevokeUserPermissionRequest.cc src/model/RevokeUserPermissionResult.cc src/model/SearchDatabaseRequest.cc @@ -346,6 +472,8 @@ set(dms-enterprise_src src/model/SetOwnersResult.cc src/model/SubmitOrderApprovalRequest.cc src/model/SubmitOrderApprovalResult.cc + src/model/SubmitSparkJobRequest.cc + src/model/SubmitSparkJobResult.cc src/model/SubmitStructSyncOrderApprovalRequest.cc src/model/SubmitStructSyncOrderApprovalResult.cc src/model/SyncDatabaseMetaRequest.cc diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h index 090f011b6..c199293d9 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/Dms_enterpriseClient.h @@ -22,8 +22,12 @@ #include #include #include "Dms_enterpriseExport.h" +#include "model/AddLogicTableRouteConfigRequest.h" +#include "model/AddLogicTableRouteConfigResult.h" #include "model/ApproveOrderRequest.h" #include "model/ApproveOrderResult.h" +#include "model/ChangeColumnSecLevelRequest.h" +#include "model/ChangeColumnSecLevelResult.h" #include "model/CloseOrderRequest.h" #include "model/CloseOrderResult.h" #include "model/CreateDataCorrectOrderRequest.h" @@ -34,8 +38,14 @@ #include "model/CreateDataImportOrderResult.h" #include "model/CreateFreeLockCorrectOrderRequest.h" #include "model/CreateFreeLockCorrectOrderResult.h" +#include "model/CreateLogicDatabaseRequest.h" +#include "model/CreateLogicDatabaseResult.h" #include "model/CreateOrderRequest.h" #include "model/CreateOrderResult.h" +#include "model/CreateProxyRequest.h" +#include "model/CreateProxyResult.h" +#include "model/CreateProxyAccessRequest.h" +#include "model/CreateProxyAccessResult.h" #include "model/CreatePublishGroupTaskRequest.h" #include "model/CreatePublishGroupTaskResult.h" #include "model/CreateSQLReviewOrderRequest.h" @@ -48,10 +58,20 @@ #include "model/CreateUploadOSSFileJobResult.h" #include "model/DeleteInstanceRequest.h" #include "model/DeleteInstanceResult.h" +#include "model/DeleteLogicDatabaseRequest.h" +#include "model/DeleteLogicDatabaseResult.h" +#include "model/DeleteLogicTableRouteConfigRequest.h" +#include "model/DeleteLogicTableRouteConfigResult.h" +#include "model/DeleteProxyRequest.h" +#include "model/DeleteProxyResult.h" +#include "model/DeleteProxyAccessRequest.h" +#include "model/DeleteProxyAccessResult.h" #include "model/DeleteUserRequest.h" #include "model/DeleteUserResult.h" #include "model/DisableUserRequest.h" #include "model/DisableUserResult.h" +#include "model/EditLogicDatabaseRequest.h" +#include "model/EditLogicDatabaseResult.h" #include "model/EnableUserRequest.h" #include "model/EnableUserResult.h" #include "model/ExecuteDataCorrectRequest.h" @@ -64,6 +84,8 @@ #include "model/ExecuteStructSyncResult.h" #include "model/GetApprovalDetailRequest.h" #include "model/GetApprovalDetailResult.h" +#include "model/GetDBTaskSQLJobLogRequest.h" +#include "model/GetDBTaskSQLJobLogResult.h" #include "model/GetDBTopologyRequest.h" #include "model/GetDBTopologyResult.h" #include "model/GetDataCorrectBackupFilesRequest.h" @@ -100,10 +122,20 @@ #include "model/GetPermApplyOrderDetailResult.h" #include "model/GetPhysicalDatabaseRequest.h" #include "model/GetPhysicalDatabaseResult.h" +#include "model/GetProxyRequest.h" +#include "model/GetProxyResult.h" #include "model/GetSQLReviewCheckResultStatusRequest.h" #include "model/GetSQLReviewCheckResultStatusResult.h" #include "model/GetSQLReviewOptimizeDetailRequest.h" #include "model/GetSQLReviewOptimizeDetailResult.h" +#include "model/GetSparkJobDetailRequest.h" +#include "model/GetSparkJobDetailResult.h" +#include "model/GetSparkJobDriverLogRequest.h" +#include "model/GetSparkJobDriverLogResult.h" +#include "model/GetSparkJobExecutorLogsRequest.h" +#include "model/GetSparkJobExecutorLogsResult.h" +#include "model/GetSparkJobLogRequest.h" +#include "model/GetSparkJobLogResult.h" #include "model/GetStructSyncExecSqlDetailRequest.h" #include "model/GetStructSyncExecSqlDetailResult.h" #include "model/GetStructSyncJobAnalyzeResultRequest.h" @@ -124,6 +156,10 @@ #include "model/GetUserUploadFileJobResult.h" #include "model/GrantUserPermissionRequest.h" #include "model/GrantUserPermissionResult.h" +#include "model/InspectProxyAccessSecretRequest.h" +#include "model/InspectProxyAccessSecretResult.h" +#include "model/KillSparkJobRequest.h" +#include "model/KillSparkJobResult.h" #include "model/ListColumnsRequest.h" #include "model/ListColumnsResult.h" #include "model/ListDBTaskSQLJobRequest.h" @@ -132,20 +168,38 @@ #include "model/ListDBTaskSQLJobDetailResult.h" #include "model/ListDDLPublishRecordsRequest.h" #include "model/ListDDLPublishRecordsResult.h" +#include "model/ListDataCorrectPreCheckDBRequest.h" +#include "model/ListDataCorrectPreCheckDBResult.h" +#include "model/ListDataCorrectPreCheckSQLRequest.h" +#include "model/ListDataCorrectPreCheckSQLResult.h" #include "model/ListDatabaseUserPermssionsRequest.h" #include "model/ListDatabaseUserPermssionsResult.h" #include "model/ListDatabasesRequest.h" #include "model/ListDatabasesResult.h" #include "model/ListIndexesRequest.h" #include "model/ListIndexesResult.h" +#include "model/ListInstanceLoginAuditLogRequest.h" +#include "model/ListInstanceLoginAuditLogResult.h" +#include "model/ListInstanceUserPermissionsRequest.h" +#include "model/ListInstanceUserPermissionsResult.h" #include "model/ListInstancesRequest.h" #include "model/ListInstancesResult.h" #include "model/ListLogicDatabasesRequest.h" #include "model/ListLogicDatabasesResult.h" +#include "model/ListLogicTableRouteConfigRequest.h" +#include "model/ListLogicTableRouteConfigResult.h" #include "model/ListLogicTablesRequest.h" #include "model/ListLogicTablesResult.h" #include "model/ListOrdersRequest.h" #include "model/ListOrdersResult.h" +#include "model/ListProxiesRequest.h" +#include "model/ListProxiesResult.h" +#include "model/ListProxyAccessesRequest.h" +#include "model/ListProxyAccessesResult.h" +#include "model/ListProxySQLExecAuditLogRequest.h" +#include "model/ListProxySQLExecAuditLogResult.h" +#include "model/ListSQLExecAuditLogRequest.h" +#include "model/ListSQLExecAuditLogResult.h" #include "model/ListSQLReviewOriginSQLRequest.h" #include "model/ListSQLReviewOriginSQLResult.h" #include "model/ListSensitiveColumnsRequest.h" @@ -164,10 +218,18 @@ #include "model/ListWorkFlowNodesResult.h" #include "model/ListWorkFlowTemplatesRequest.h" #include "model/ListWorkFlowTemplatesResult.h" +#include "model/ModifyDataCorrectExecSQLRequest.h" +#include "model/ModifyDataCorrectExecSQLResult.h" +#include "model/PauseDataCorrectSQLJobRequest.h" +#include "model/PauseDataCorrectSQLJobResult.h" #include "model/RegisterInstanceRequest.h" #include "model/RegisterInstanceResult.h" #include "model/RegisterUserRequest.h" #include "model/RegisterUserResult.h" +#include "model/RestartDataCorrectSQLJobRequest.h" +#include "model/RestartDataCorrectSQLJobResult.h" +#include "model/RetryDataCorrectPreCheckRequest.h" +#include "model/RetryDataCorrectPreCheckResult.h" #include "model/RevokeUserPermissionRequest.h" #include "model/RevokeUserPermissionResult.h" #include "model/SearchDatabaseRequest.h" @@ -178,6 +240,8 @@ #include "model/SetOwnersResult.h" #include "model/SubmitOrderApprovalRequest.h" #include "model/SubmitOrderApprovalResult.h" +#include "model/SubmitSparkJobRequest.h" +#include "model/SubmitSparkJobResult.h" #include "model/SubmitStructSyncOrderApprovalRequest.h" #include "model/SubmitStructSyncOrderApprovalResult.h" #include "model/SyncDatabaseMetaRequest.h" @@ -197,9 +261,15 @@ namespace AlibabaCloud class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT Dms_enterpriseClient : public RpcServiceClient { public: + typedef Outcome AddLogicTableRouteConfigOutcome; + typedef std::future AddLogicTableRouteConfigOutcomeCallable; + typedef std::function&)> AddLogicTableRouteConfigAsyncHandler; typedef Outcome ApproveOrderOutcome; typedef std::future ApproveOrderOutcomeCallable; typedef std::function&)> ApproveOrderAsyncHandler; + typedef Outcome ChangeColumnSecLevelOutcome; + typedef std::future ChangeColumnSecLevelOutcomeCallable; + typedef std::function&)> ChangeColumnSecLevelAsyncHandler; typedef Outcome CloseOrderOutcome; typedef std::future CloseOrderOutcomeCallable; typedef std::function&)> CloseOrderAsyncHandler; @@ -215,9 +285,18 @@ namespace AlibabaCloud typedef Outcome CreateFreeLockCorrectOrderOutcome; typedef std::future CreateFreeLockCorrectOrderOutcomeCallable; typedef std::function&)> CreateFreeLockCorrectOrderAsyncHandler; + typedef Outcome CreateLogicDatabaseOutcome; + typedef std::future CreateLogicDatabaseOutcomeCallable; + typedef std::function&)> CreateLogicDatabaseAsyncHandler; typedef Outcome CreateOrderOutcome; typedef std::future CreateOrderOutcomeCallable; typedef std::function&)> CreateOrderAsyncHandler; + typedef Outcome CreateProxyOutcome; + typedef std::future CreateProxyOutcomeCallable; + typedef std::function&)> CreateProxyAsyncHandler; + typedef Outcome CreateProxyAccessOutcome; + typedef std::future CreateProxyAccessOutcomeCallable; + typedef std::function&)> CreateProxyAccessAsyncHandler; typedef Outcome CreatePublishGroupTaskOutcome; typedef std::future CreatePublishGroupTaskOutcomeCallable; typedef std::function&)> CreatePublishGroupTaskAsyncHandler; @@ -236,12 +315,27 @@ namespace AlibabaCloud typedef Outcome DeleteInstanceOutcome; typedef std::future DeleteInstanceOutcomeCallable; typedef std::function&)> DeleteInstanceAsyncHandler; + typedef Outcome DeleteLogicDatabaseOutcome; + typedef std::future DeleteLogicDatabaseOutcomeCallable; + typedef std::function&)> DeleteLogicDatabaseAsyncHandler; + typedef Outcome DeleteLogicTableRouteConfigOutcome; + typedef std::future DeleteLogicTableRouteConfigOutcomeCallable; + typedef std::function&)> DeleteLogicTableRouteConfigAsyncHandler; + typedef Outcome DeleteProxyOutcome; + typedef std::future DeleteProxyOutcomeCallable; + typedef std::function&)> DeleteProxyAsyncHandler; + typedef Outcome DeleteProxyAccessOutcome; + typedef std::future DeleteProxyAccessOutcomeCallable; + typedef std::function&)> DeleteProxyAccessAsyncHandler; typedef Outcome DeleteUserOutcome; typedef std::future DeleteUserOutcomeCallable; typedef std::function&)> DeleteUserAsyncHandler; typedef Outcome DisableUserOutcome; typedef std::future DisableUserOutcomeCallable; typedef std::function&)> DisableUserAsyncHandler; + typedef Outcome EditLogicDatabaseOutcome; + typedef std::future EditLogicDatabaseOutcomeCallable; + typedef std::function&)> EditLogicDatabaseAsyncHandler; typedef Outcome EnableUserOutcome; typedef std::future EnableUserOutcomeCallable; typedef std::function&)> EnableUserAsyncHandler; @@ -260,6 +354,9 @@ namespace AlibabaCloud typedef Outcome GetApprovalDetailOutcome; typedef std::future GetApprovalDetailOutcomeCallable; typedef std::function&)> GetApprovalDetailAsyncHandler; + typedef Outcome GetDBTaskSQLJobLogOutcome; + typedef std::future GetDBTaskSQLJobLogOutcomeCallable; + typedef std::function&)> GetDBTaskSQLJobLogAsyncHandler; typedef Outcome GetDBTopologyOutcome; typedef std::future GetDBTopologyOutcomeCallable; typedef std::function&)> GetDBTopologyAsyncHandler; @@ -314,12 +411,27 @@ namespace AlibabaCloud typedef Outcome GetPhysicalDatabaseOutcome; typedef std::future GetPhysicalDatabaseOutcomeCallable; typedef std::function&)> GetPhysicalDatabaseAsyncHandler; + typedef Outcome GetProxyOutcome; + typedef std::future GetProxyOutcomeCallable; + typedef std::function&)> GetProxyAsyncHandler; typedef Outcome GetSQLReviewCheckResultStatusOutcome; typedef std::future GetSQLReviewCheckResultStatusOutcomeCallable; typedef std::function&)> GetSQLReviewCheckResultStatusAsyncHandler; typedef Outcome GetSQLReviewOptimizeDetailOutcome; typedef std::future GetSQLReviewOptimizeDetailOutcomeCallable; typedef std::function&)> GetSQLReviewOptimizeDetailAsyncHandler; + typedef Outcome GetSparkJobDetailOutcome; + typedef std::future GetSparkJobDetailOutcomeCallable; + typedef std::function&)> GetSparkJobDetailAsyncHandler; + typedef Outcome GetSparkJobDriverLogOutcome; + typedef std::future GetSparkJobDriverLogOutcomeCallable; + typedef std::function&)> GetSparkJobDriverLogAsyncHandler; + typedef Outcome GetSparkJobExecutorLogsOutcome; + typedef std::future GetSparkJobExecutorLogsOutcomeCallable; + typedef std::function&)> GetSparkJobExecutorLogsAsyncHandler; + typedef Outcome GetSparkJobLogOutcome; + typedef std::future GetSparkJobLogOutcomeCallable; + typedef std::function&)> GetSparkJobLogAsyncHandler; typedef Outcome GetStructSyncExecSqlDetailOutcome; typedef std::future GetStructSyncExecSqlDetailOutcomeCallable; typedef std::function&)> GetStructSyncExecSqlDetailAsyncHandler; @@ -350,6 +462,12 @@ namespace AlibabaCloud typedef Outcome GrantUserPermissionOutcome; typedef std::future GrantUserPermissionOutcomeCallable; typedef std::function&)> GrantUserPermissionAsyncHandler; + typedef Outcome InspectProxyAccessSecretOutcome; + typedef std::future InspectProxyAccessSecretOutcomeCallable; + typedef std::function&)> InspectProxyAccessSecretAsyncHandler; + typedef Outcome KillSparkJobOutcome; + typedef std::future KillSparkJobOutcomeCallable; + typedef std::function&)> KillSparkJobAsyncHandler; typedef Outcome ListColumnsOutcome; typedef std::future ListColumnsOutcomeCallable; typedef std::function&)> ListColumnsAsyncHandler; @@ -362,6 +480,12 @@ namespace AlibabaCloud typedef Outcome ListDDLPublishRecordsOutcome; typedef std::future ListDDLPublishRecordsOutcomeCallable; typedef std::function&)> ListDDLPublishRecordsAsyncHandler; + typedef Outcome ListDataCorrectPreCheckDBOutcome; + typedef std::future ListDataCorrectPreCheckDBOutcomeCallable; + typedef std::function&)> ListDataCorrectPreCheckDBAsyncHandler; + typedef Outcome ListDataCorrectPreCheckSQLOutcome; + typedef std::future ListDataCorrectPreCheckSQLOutcomeCallable; + typedef std::function&)> ListDataCorrectPreCheckSQLAsyncHandler; typedef Outcome ListDatabaseUserPermssionsOutcome; typedef std::future ListDatabaseUserPermssionsOutcomeCallable; typedef std::function&)> ListDatabaseUserPermssionsAsyncHandler; @@ -371,18 +495,39 @@ namespace AlibabaCloud typedef Outcome ListIndexesOutcome; typedef std::future ListIndexesOutcomeCallable; typedef std::function&)> ListIndexesAsyncHandler; + typedef Outcome ListInstanceLoginAuditLogOutcome; + typedef std::future ListInstanceLoginAuditLogOutcomeCallable; + typedef std::function&)> ListInstanceLoginAuditLogAsyncHandler; + typedef Outcome ListInstanceUserPermissionsOutcome; + typedef std::future ListInstanceUserPermissionsOutcomeCallable; + typedef std::function&)> ListInstanceUserPermissionsAsyncHandler; typedef Outcome ListInstancesOutcome; typedef std::future ListInstancesOutcomeCallable; typedef std::function&)> ListInstancesAsyncHandler; typedef Outcome ListLogicDatabasesOutcome; typedef std::future ListLogicDatabasesOutcomeCallable; typedef std::function&)> ListLogicDatabasesAsyncHandler; + typedef Outcome ListLogicTableRouteConfigOutcome; + typedef std::future ListLogicTableRouteConfigOutcomeCallable; + typedef std::function&)> ListLogicTableRouteConfigAsyncHandler; typedef Outcome ListLogicTablesOutcome; typedef std::future ListLogicTablesOutcomeCallable; typedef std::function&)> ListLogicTablesAsyncHandler; typedef Outcome ListOrdersOutcome; typedef std::future ListOrdersOutcomeCallable; typedef std::function&)> ListOrdersAsyncHandler; + typedef Outcome ListProxiesOutcome; + typedef std::future ListProxiesOutcomeCallable; + typedef std::function&)> ListProxiesAsyncHandler; + typedef Outcome ListProxyAccessesOutcome; + typedef std::future ListProxyAccessesOutcomeCallable; + typedef std::function&)> ListProxyAccessesAsyncHandler; + typedef Outcome ListProxySQLExecAuditLogOutcome; + typedef std::future ListProxySQLExecAuditLogOutcomeCallable; + typedef std::function&)> ListProxySQLExecAuditLogAsyncHandler; + typedef Outcome ListSQLExecAuditLogOutcome; + typedef std::future ListSQLExecAuditLogOutcomeCallable; + typedef std::function&)> ListSQLExecAuditLogAsyncHandler; typedef Outcome ListSQLReviewOriginSQLOutcome; typedef std::future ListSQLReviewOriginSQLOutcomeCallable; typedef std::function&)> ListSQLReviewOriginSQLAsyncHandler; @@ -410,12 +555,24 @@ namespace AlibabaCloud typedef Outcome ListWorkFlowTemplatesOutcome; typedef std::future ListWorkFlowTemplatesOutcomeCallable; typedef std::function&)> ListWorkFlowTemplatesAsyncHandler; + typedef Outcome ModifyDataCorrectExecSQLOutcome; + typedef std::future ModifyDataCorrectExecSQLOutcomeCallable; + typedef std::function&)> ModifyDataCorrectExecSQLAsyncHandler; + typedef Outcome PauseDataCorrectSQLJobOutcome; + typedef std::future PauseDataCorrectSQLJobOutcomeCallable; + typedef std::function&)> PauseDataCorrectSQLJobAsyncHandler; typedef Outcome RegisterInstanceOutcome; typedef std::future RegisterInstanceOutcomeCallable; typedef std::function&)> RegisterInstanceAsyncHandler; typedef Outcome RegisterUserOutcome; typedef std::future RegisterUserOutcomeCallable; typedef std::function&)> RegisterUserAsyncHandler; + typedef Outcome RestartDataCorrectSQLJobOutcome; + typedef std::future RestartDataCorrectSQLJobOutcomeCallable; + typedef std::function&)> RestartDataCorrectSQLJobAsyncHandler; + typedef Outcome RetryDataCorrectPreCheckOutcome; + typedef std::future RetryDataCorrectPreCheckOutcomeCallable; + typedef std::function&)> RetryDataCorrectPreCheckAsyncHandler; typedef Outcome RevokeUserPermissionOutcome; typedef std::future RevokeUserPermissionOutcomeCallable; typedef std::function&)> RevokeUserPermissionAsyncHandler; @@ -431,6 +588,9 @@ namespace AlibabaCloud typedef Outcome SubmitOrderApprovalOutcome; typedef std::future SubmitOrderApprovalOutcomeCallable; typedef std::function&)> SubmitOrderApprovalAsyncHandler; + typedef Outcome SubmitSparkJobOutcome; + typedef std::future SubmitSparkJobOutcomeCallable; + typedef std::function&)> SubmitSparkJobAsyncHandler; typedef Outcome SubmitStructSyncOrderApprovalOutcome; typedef std::future SubmitStructSyncOrderApprovalOutcomeCallable; typedef std::function&)> SubmitStructSyncOrderApprovalAsyncHandler; @@ -451,9 +611,15 @@ namespace AlibabaCloud Dms_enterpriseClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); Dms_enterpriseClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~Dms_enterpriseClient(); + AddLogicTableRouteConfigOutcome addLogicTableRouteConfig(const Model::AddLogicTableRouteConfigRequest &request)const; + void addLogicTableRouteConfigAsync(const Model::AddLogicTableRouteConfigRequest& request, const AddLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLogicTableRouteConfigOutcomeCallable addLogicTableRouteConfigCallable(const Model::AddLogicTableRouteConfigRequest& request) const; ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const; void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const; + ChangeColumnSecLevelOutcome changeColumnSecLevel(const Model::ChangeColumnSecLevelRequest &request)const; + void changeColumnSecLevelAsync(const Model::ChangeColumnSecLevelRequest& request, const ChangeColumnSecLevelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeColumnSecLevelOutcomeCallable changeColumnSecLevelCallable(const Model::ChangeColumnSecLevelRequest& request) const; CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const; void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const; @@ -469,9 +635,18 @@ namespace AlibabaCloud CreateFreeLockCorrectOrderOutcome createFreeLockCorrectOrder(const Model::CreateFreeLockCorrectOrderRequest &request)const; void createFreeLockCorrectOrderAsync(const Model::CreateFreeLockCorrectOrderRequest& request, const CreateFreeLockCorrectOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFreeLockCorrectOrderOutcomeCallable createFreeLockCorrectOrderCallable(const Model::CreateFreeLockCorrectOrderRequest& request) const; + CreateLogicDatabaseOutcome createLogicDatabase(const Model::CreateLogicDatabaseRequest &request)const; + void createLogicDatabaseAsync(const Model::CreateLogicDatabaseRequest& request, const CreateLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLogicDatabaseOutcomeCallable createLogicDatabaseCallable(const Model::CreateLogicDatabaseRequest& request) const; CreateOrderOutcome createOrder(const Model::CreateOrderRequest &request)const; void createOrderAsync(const Model::CreateOrderRequest& request, const CreateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOrderOutcomeCallable createOrderCallable(const Model::CreateOrderRequest& request) const; + CreateProxyOutcome createProxy(const Model::CreateProxyRequest &request)const; + void createProxyAsync(const Model::CreateProxyRequest& request, const CreateProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProxyOutcomeCallable createProxyCallable(const Model::CreateProxyRequest& request) const; + CreateProxyAccessOutcome createProxyAccess(const Model::CreateProxyAccessRequest &request)const; + void createProxyAccessAsync(const Model::CreateProxyAccessRequest& request, const CreateProxyAccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateProxyAccessOutcomeCallable createProxyAccessCallable(const Model::CreateProxyAccessRequest& request) const; CreatePublishGroupTaskOutcome createPublishGroupTask(const Model::CreatePublishGroupTaskRequest &request)const; void createPublishGroupTaskAsync(const Model::CreatePublishGroupTaskRequest& request, const CreatePublishGroupTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreatePublishGroupTaskOutcomeCallable createPublishGroupTaskCallable(const Model::CreatePublishGroupTaskRequest& request) const; @@ -490,12 +665,27 @@ namespace AlibabaCloud DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; + DeleteLogicDatabaseOutcome deleteLogicDatabase(const Model::DeleteLogicDatabaseRequest &request)const; + void deleteLogicDatabaseAsync(const Model::DeleteLogicDatabaseRequest& request, const DeleteLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLogicDatabaseOutcomeCallable deleteLogicDatabaseCallable(const Model::DeleteLogicDatabaseRequest& request) const; + DeleteLogicTableRouteConfigOutcome deleteLogicTableRouteConfig(const Model::DeleteLogicTableRouteConfigRequest &request)const; + void deleteLogicTableRouteConfigAsync(const Model::DeleteLogicTableRouteConfigRequest& request, const DeleteLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLogicTableRouteConfigOutcomeCallable deleteLogicTableRouteConfigCallable(const Model::DeleteLogicTableRouteConfigRequest& request) const; + DeleteProxyOutcome deleteProxy(const Model::DeleteProxyRequest &request)const; + void deleteProxyAsync(const Model::DeleteProxyRequest& request, const DeleteProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProxyOutcomeCallable deleteProxyCallable(const Model::DeleteProxyRequest& request) const; + DeleteProxyAccessOutcome deleteProxyAccess(const Model::DeleteProxyAccessRequest &request)const; + void deleteProxyAccessAsync(const Model::DeleteProxyAccessRequest& request, const DeleteProxyAccessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProxyAccessOutcomeCallable deleteProxyAccessCallable(const Model::DeleteProxyAccessRequest& request) const; DeleteUserOutcome deleteUser(const Model::DeleteUserRequest &request)const; void deleteUserAsync(const Model::DeleteUserRequest& request, const DeleteUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUserOutcomeCallable deleteUserCallable(const Model::DeleteUserRequest& request) const; DisableUserOutcome disableUser(const Model::DisableUserRequest &request)const; void disableUserAsync(const Model::DisableUserRequest& request, const DisableUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableUserOutcomeCallable disableUserCallable(const Model::DisableUserRequest& request) const; + EditLogicDatabaseOutcome editLogicDatabase(const Model::EditLogicDatabaseRequest &request)const; + void editLogicDatabaseAsync(const Model::EditLogicDatabaseRequest& request, const EditLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EditLogicDatabaseOutcomeCallable editLogicDatabaseCallable(const Model::EditLogicDatabaseRequest& request) const; EnableUserOutcome enableUser(const Model::EnableUserRequest &request)const; void enableUserAsync(const Model::EnableUserRequest& request, const EnableUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableUserOutcomeCallable enableUserCallable(const Model::EnableUserRequest& request) const; @@ -514,6 +704,9 @@ namespace AlibabaCloud GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const; void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const; + GetDBTaskSQLJobLogOutcome getDBTaskSQLJobLog(const Model::GetDBTaskSQLJobLogRequest &request)const; + void getDBTaskSQLJobLogAsync(const Model::GetDBTaskSQLJobLogRequest& request, const GetDBTaskSQLJobLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDBTaskSQLJobLogOutcomeCallable getDBTaskSQLJobLogCallable(const Model::GetDBTaskSQLJobLogRequest& request) const; GetDBTopologyOutcome getDBTopology(const Model::GetDBTopologyRequest &request)const; void getDBTopologyAsync(const Model::GetDBTopologyRequest& request, const GetDBTopologyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetDBTopologyOutcomeCallable getDBTopologyCallable(const Model::GetDBTopologyRequest& request) const; @@ -568,12 +761,27 @@ namespace AlibabaCloud GetPhysicalDatabaseOutcome getPhysicalDatabase(const Model::GetPhysicalDatabaseRequest &request)const; void getPhysicalDatabaseAsync(const Model::GetPhysicalDatabaseRequest& request, const GetPhysicalDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetPhysicalDatabaseOutcomeCallable getPhysicalDatabaseCallable(const Model::GetPhysicalDatabaseRequest& request) const; + GetProxyOutcome getProxy(const Model::GetProxyRequest &request)const; + void getProxyAsync(const Model::GetProxyRequest& request, const GetProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProxyOutcomeCallable getProxyCallable(const Model::GetProxyRequest& request) const; GetSQLReviewCheckResultStatusOutcome getSQLReviewCheckResultStatus(const Model::GetSQLReviewCheckResultStatusRequest &request)const; void getSQLReviewCheckResultStatusAsync(const Model::GetSQLReviewCheckResultStatusRequest& request, const GetSQLReviewCheckResultStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSQLReviewCheckResultStatusOutcomeCallable getSQLReviewCheckResultStatusCallable(const Model::GetSQLReviewCheckResultStatusRequest& request) const; GetSQLReviewOptimizeDetailOutcome getSQLReviewOptimizeDetail(const Model::GetSQLReviewOptimizeDetailRequest &request)const; void getSQLReviewOptimizeDetailAsync(const Model::GetSQLReviewOptimizeDetailRequest& request, const GetSQLReviewOptimizeDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSQLReviewOptimizeDetailOutcomeCallable getSQLReviewOptimizeDetailCallable(const Model::GetSQLReviewOptimizeDetailRequest& request) const; + GetSparkJobDetailOutcome getSparkJobDetail(const Model::GetSparkJobDetailRequest &request)const; + void getSparkJobDetailAsync(const Model::GetSparkJobDetailRequest& request, const GetSparkJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkJobDetailOutcomeCallable getSparkJobDetailCallable(const Model::GetSparkJobDetailRequest& request) const; + GetSparkJobDriverLogOutcome getSparkJobDriverLog(const Model::GetSparkJobDriverLogRequest &request)const; + void getSparkJobDriverLogAsync(const Model::GetSparkJobDriverLogRequest& request, const GetSparkJobDriverLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkJobDriverLogOutcomeCallable getSparkJobDriverLogCallable(const Model::GetSparkJobDriverLogRequest& request) const; + GetSparkJobExecutorLogsOutcome getSparkJobExecutorLogs(const Model::GetSparkJobExecutorLogsRequest &request)const; + void getSparkJobExecutorLogsAsync(const Model::GetSparkJobExecutorLogsRequest& request, const GetSparkJobExecutorLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkJobExecutorLogsOutcomeCallable getSparkJobExecutorLogsCallable(const Model::GetSparkJobExecutorLogsRequest& request) const; + GetSparkJobLogOutcome getSparkJobLog(const Model::GetSparkJobLogRequest &request)const; + void getSparkJobLogAsync(const Model::GetSparkJobLogRequest& request, const GetSparkJobLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSparkJobLogOutcomeCallable getSparkJobLogCallable(const Model::GetSparkJobLogRequest& request) const; GetStructSyncExecSqlDetailOutcome getStructSyncExecSqlDetail(const Model::GetStructSyncExecSqlDetailRequest &request)const; void getStructSyncExecSqlDetailAsync(const Model::GetStructSyncExecSqlDetailRequest& request, const GetStructSyncExecSqlDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetStructSyncExecSqlDetailOutcomeCallable getStructSyncExecSqlDetailCallable(const Model::GetStructSyncExecSqlDetailRequest& request) const; @@ -604,6 +812,12 @@ namespace AlibabaCloud GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const; void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const; + InspectProxyAccessSecretOutcome inspectProxyAccessSecret(const Model::InspectProxyAccessSecretRequest &request)const; + void inspectProxyAccessSecretAsync(const Model::InspectProxyAccessSecretRequest& request, const InspectProxyAccessSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InspectProxyAccessSecretOutcomeCallable inspectProxyAccessSecretCallable(const Model::InspectProxyAccessSecretRequest& request) const; + KillSparkJobOutcome killSparkJob(const Model::KillSparkJobRequest &request)const; + void killSparkJobAsync(const Model::KillSparkJobRequest& request, const KillSparkJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + KillSparkJobOutcomeCallable killSparkJobCallable(const Model::KillSparkJobRequest& request) const; ListColumnsOutcome listColumns(const Model::ListColumnsRequest &request)const; void listColumnsAsync(const Model::ListColumnsRequest& request, const ListColumnsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListColumnsOutcomeCallable listColumnsCallable(const Model::ListColumnsRequest& request) const; @@ -616,6 +830,12 @@ namespace AlibabaCloud ListDDLPublishRecordsOutcome listDDLPublishRecords(const Model::ListDDLPublishRecordsRequest &request)const; void listDDLPublishRecordsAsync(const Model::ListDDLPublishRecordsRequest& request, const ListDDLPublishRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDDLPublishRecordsOutcomeCallable listDDLPublishRecordsCallable(const Model::ListDDLPublishRecordsRequest& request) const; + ListDataCorrectPreCheckDBOutcome listDataCorrectPreCheckDB(const Model::ListDataCorrectPreCheckDBRequest &request)const; + void listDataCorrectPreCheckDBAsync(const Model::ListDataCorrectPreCheckDBRequest& request, const ListDataCorrectPreCheckDBAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataCorrectPreCheckDBOutcomeCallable listDataCorrectPreCheckDBCallable(const Model::ListDataCorrectPreCheckDBRequest& request) const; + ListDataCorrectPreCheckSQLOutcome listDataCorrectPreCheckSQL(const Model::ListDataCorrectPreCheckSQLRequest &request)const; + void listDataCorrectPreCheckSQLAsync(const Model::ListDataCorrectPreCheckSQLRequest& request, const ListDataCorrectPreCheckSQLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDataCorrectPreCheckSQLOutcomeCallable listDataCorrectPreCheckSQLCallable(const Model::ListDataCorrectPreCheckSQLRequest& request) const; ListDatabaseUserPermssionsOutcome listDatabaseUserPermssions(const Model::ListDatabaseUserPermssionsRequest &request)const; void listDatabaseUserPermssionsAsync(const Model::ListDatabaseUserPermssionsRequest& request, const ListDatabaseUserPermssionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDatabaseUserPermssionsOutcomeCallable listDatabaseUserPermssionsCallable(const Model::ListDatabaseUserPermssionsRequest& request) const; @@ -625,18 +845,39 @@ namespace AlibabaCloud ListIndexesOutcome listIndexes(const Model::ListIndexesRequest &request)const; void listIndexesAsync(const Model::ListIndexesRequest& request, const ListIndexesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListIndexesOutcomeCallable listIndexesCallable(const Model::ListIndexesRequest& request) const; + ListInstanceLoginAuditLogOutcome listInstanceLoginAuditLog(const Model::ListInstanceLoginAuditLogRequest &request)const; + void listInstanceLoginAuditLogAsync(const Model::ListInstanceLoginAuditLogRequest& request, const ListInstanceLoginAuditLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceLoginAuditLogOutcomeCallable listInstanceLoginAuditLogCallable(const Model::ListInstanceLoginAuditLogRequest& request) const; + ListInstanceUserPermissionsOutcome listInstanceUserPermissions(const Model::ListInstanceUserPermissionsRequest &request)const; + void listInstanceUserPermissionsAsync(const Model::ListInstanceUserPermissionsRequest& request, const ListInstanceUserPermissionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceUserPermissionsOutcomeCallable listInstanceUserPermissionsCallable(const Model::ListInstanceUserPermissionsRequest& request) const; ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const; ListLogicDatabasesOutcome listLogicDatabases(const Model::ListLogicDatabasesRequest &request)const; void listLogicDatabasesAsync(const Model::ListLogicDatabasesRequest& request, const ListLogicDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListLogicDatabasesOutcomeCallable listLogicDatabasesCallable(const Model::ListLogicDatabasesRequest& request) const; + ListLogicTableRouteConfigOutcome listLogicTableRouteConfig(const Model::ListLogicTableRouteConfigRequest &request)const; + void listLogicTableRouteConfigAsync(const Model::ListLogicTableRouteConfigRequest& request, const ListLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListLogicTableRouteConfigOutcomeCallable listLogicTableRouteConfigCallable(const Model::ListLogicTableRouteConfigRequest& request) const; ListLogicTablesOutcome listLogicTables(const Model::ListLogicTablesRequest &request)const; void listLogicTablesAsync(const Model::ListLogicTablesRequest& request, const ListLogicTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListLogicTablesOutcomeCallable listLogicTablesCallable(const Model::ListLogicTablesRequest& request) const; ListOrdersOutcome listOrders(const Model::ListOrdersRequest &request)const; void listOrdersAsync(const Model::ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOrdersOutcomeCallable listOrdersCallable(const Model::ListOrdersRequest& request) const; + ListProxiesOutcome listProxies(const Model::ListProxiesRequest &request)const; + void listProxiesAsync(const Model::ListProxiesRequest& request, const ListProxiesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProxiesOutcomeCallable listProxiesCallable(const Model::ListProxiesRequest& request) const; + ListProxyAccessesOutcome listProxyAccesses(const Model::ListProxyAccessesRequest &request)const; + void listProxyAccessesAsync(const Model::ListProxyAccessesRequest& request, const ListProxyAccessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProxyAccessesOutcomeCallable listProxyAccessesCallable(const Model::ListProxyAccessesRequest& request) const; + ListProxySQLExecAuditLogOutcome listProxySQLExecAuditLog(const Model::ListProxySQLExecAuditLogRequest &request)const; + void listProxySQLExecAuditLogAsync(const Model::ListProxySQLExecAuditLogRequest& request, const ListProxySQLExecAuditLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProxySQLExecAuditLogOutcomeCallable listProxySQLExecAuditLogCallable(const Model::ListProxySQLExecAuditLogRequest& request) const; + ListSQLExecAuditLogOutcome listSQLExecAuditLog(const Model::ListSQLExecAuditLogRequest &request)const; + void listSQLExecAuditLogAsync(const Model::ListSQLExecAuditLogRequest& request, const ListSQLExecAuditLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSQLExecAuditLogOutcomeCallable listSQLExecAuditLogCallable(const Model::ListSQLExecAuditLogRequest& request) const; ListSQLReviewOriginSQLOutcome listSQLReviewOriginSQL(const Model::ListSQLReviewOriginSQLRequest &request)const; void listSQLReviewOriginSQLAsync(const Model::ListSQLReviewOriginSQLRequest& request, const ListSQLReviewOriginSQLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSQLReviewOriginSQLOutcomeCallable listSQLReviewOriginSQLCallable(const Model::ListSQLReviewOriginSQLRequest& request) const; @@ -664,12 +905,24 @@ namespace AlibabaCloud ListWorkFlowTemplatesOutcome listWorkFlowTemplates(const Model::ListWorkFlowTemplatesRequest &request)const; void listWorkFlowTemplatesAsync(const Model::ListWorkFlowTemplatesRequest& request, const ListWorkFlowTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListWorkFlowTemplatesOutcomeCallable listWorkFlowTemplatesCallable(const Model::ListWorkFlowTemplatesRequest& request) const; + ModifyDataCorrectExecSQLOutcome modifyDataCorrectExecSQL(const Model::ModifyDataCorrectExecSQLRequest &request)const; + void modifyDataCorrectExecSQLAsync(const Model::ModifyDataCorrectExecSQLRequest& request, const ModifyDataCorrectExecSQLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDataCorrectExecSQLOutcomeCallable modifyDataCorrectExecSQLCallable(const Model::ModifyDataCorrectExecSQLRequest& request) const; + PauseDataCorrectSQLJobOutcome pauseDataCorrectSQLJob(const Model::PauseDataCorrectSQLJobRequest &request)const; + void pauseDataCorrectSQLJobAsync(const Model::PauseDataCorrectSQLJobRequest& request, const PauseDataCorrectSQLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PauseDataCorrectSQLJobOutcomeCallable pauseDataCorrectSQLJobCallable(const Model::PauseDataCorrectSQLJobRequest& request) const; RegisterInstanceOutcome registerInstance(const Model::RegisterInstanceRequest &request)const; void registerInstanceAsync(const Model::RegisterInstanceRequest& request, const RegisterInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterInstanceOutcomeCallable registerInstanceCallable(const Model::RegisterInstanceRequest& request) const; RegisterUserOutcome registerUser(const Model::RegisterUserRequest &request)const; void registerUserAsync(const Model::RegisterUserRequest& request, const RegisterUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterUserOutcomeCallable registerUserCallable(const Model::RegisterUserRequest& request) const; + RestartDataCorrectSQLJobOutcome restartDataCorrectSQLJob(const Model::RestartDataCorrectSQLJobRequest &request)const; + void restartDataCorrectSQLJobAsync(const Model::RestartDataCorrectSQLJobRequest& request, const RestartDataCorrectSQLJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDataCorrectSQLJobOutcomeCallable restartDataCorrectSQLJobCallable(const Model::RestartDataCorrectSQLJobRequest& request) const; + RetryDataCorrectPreCheckOutcome retryDataCorrectPreCheck(const Model::RetryDataCorrectPreCheckRequest &request)const; + void retryDataCorrectPreCheckAsync(const Model::RetryDataCorrectPreCheckRequest& request, const RetryDataCorrectPreCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RetryDataCorrectPreCheckOutcomeCallable retryDataCorrectPreCheckCallable(const Model::RetryDataCorrectPreCheckRequest& request) const; RevokeUserPermissionOutcome revokeUserPermission(const Model::RevokeUserPermissionRequest &request)const; void revokeUserPermissionAsync(const Model::RevokeUserPermissionRequest& request, const RevokeUserPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeUserPermissionOutcomeCallable revokeUserPermissionCallable(const Model::RevokeUserPermissionRequest& request) const; @@ -685,6 +938,9 @@ namespace AlibabaCloud SubmitOrderApprovalOutcome submitOrderApproval(const Model::SubmitOrderApprovalRequest &request)const; void submitOrderApprovalAsync(const Model::SubmitOrderApprovalRequest& request, const SubmitOrderApprovalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitOrderApprovalOutcomeCallable submitOrderApprovalCallable(const Model::SubmitOrderApprovalRequest& request) const; + SubmitSparkJobOutcome submitSparkJob(const Model::SubmitSparkJobRequest &request)const; + void submitSparkJobAsync(const Model::SubmitSparkJobRequest& request, const SubmitSparkJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitSparkJobOutcomeCallable submitSparkJobCallable(const Model::SubmitSparkJobRequest& request) const; SubmitStructSyncOrderApprovalOutcome submitStructSyncOrderApproval(const Model::SubmitStructSyncOrderApprovalRequest &request)const; void submitStructSyncOrderApprovalAsync(const Model::SubmitStructSyncOrderApprovalRequest& request, const SubmitStructSyncOrderApprovalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitStructSyncOrderApprovalOutcomeCallable submitStructSyncOrderApprovalCallable(const Model::SubmitStructSyncOrderApprovalRequest& request) const; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h new file mode 100644 index 000000000..53521bbaf --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT AddLogicTableRouteConfigRequest : public RpcServiceRequest { +public: + AddLogicTableRouteConfigRequest(); + ~AddLogicTableRouteConfigRequest(); + std::string getRouteKey() const; + void setRouteKey(const std::string &routeKey); + long getTid() const; + void setTid(long tid); + std::string getRouteExpr() const; + void setRouteExpr(const std::string &routeExpr); + long getTableId() const; + void setTableId(long tableId); + +private: + std::string routeKey_; + long tid_; + std::string routeExpr_; + long tableId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h new file mode 100644 index 000000000..04273c043 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/AddLogicTableRouteConfigResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT AddLogicTableRouteConfigResult : public ServiceResult + { + public: + + + AddLogicTableRouteConfigResult(); + explicit AddLogicTableRouteConfigResult(const std::string &payload); + ~AddLogicTableRouteConfigResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_ADDLOGICTABLEROUTECONFIGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.h new file mode 100644 index 000000000..f782789f2 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelRequest.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_CHANGECOLUMNSECLEVELREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECLEVELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ChangeColumnSecLevelRequest : public RpcServiceRequest { +public: + ChangeColumnSecLevelRequest(); + ~ChangeColumnSecLevelRequest(); + std::string getSchemaName() const; + void setSchemaName(const std::string &schemaName); + bool getIsLogic() const; + void setIsLogic(bool isLogic); + std::string getNewLevel() const; + void setNewLevel(const std::string &newLevel); + std::string getColumnName() const; + void setColumnName(const std::string &columnName); + long getTid() const; + void setTid(long tid); + long getDbId() const; + void setDbId(long dbId); + std::string getTableName() const; + void setTableName(const std::string &tableName); + +private: + std::string schemaName_; + bool isLogic_; + std::string newLevel_; + std::string columnName_; + long tid_; + long dbId_; + std::string tableName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECLEVELREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h new file mode 100644 index 000000000..eb4b70623 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ChangeColumnSecLevelResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECLEVELRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECLEVELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ChangeColumnSecLevelResult : public ServiceResult + { + public: + + + ChangeColumnSecLevelResult(); + explicit ChangeColumnSecLevelResult(const std::string &payload); + ~ChangeColumnSecLevelResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHANGECOLUMNSECLEVELRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h new file mode 100644 index 000000000..2359badcc --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELOGICDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELOGICDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateLogicDatabaseRequest : public RpcServiceRequest { +public: + CreateLogicDatabaseRequest(); + ~CreateLogicDatabaseRequest(); + long getTid() const; + void setTid(long tid); + std::vector getDatabaseIds() const; + void setDatabaseIds(const std::vector &databaseIds); + std::string getAlias() const; + void setAlias(const std::string &alias); + +private: + long tid_; + std::vector databaseIds_; + std::string alias_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELOGICDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.h new file mode 100644 index 000000000..2f7f96452 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateLogicDatabaseResult.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_CREATELOGICDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELOGICDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateLogicDatabaseResult : public ServiceResult + { + public: + + + CreateLogicDatabaseResult(); + explicit CreateLogicDatabaseResult(const std::string &payload); + ~CreateLogicDatabaseResult(); + long getLogicDbId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long logicDbId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATELOGICDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h new file mode 100644 index 000000000..100e260c1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYACCESSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYACCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProxyAccessRequest : public RpcServiceRequest { +public: + CreateProxyAccessRequest(); + ~CreateProxyAccessRequest(); + std::string getIndepAccount() const; + void setIndepAccount(const std::string &indepAccount); + long getUserId() const; + void setUserId(long userId); + long getTid() const; + void setTid(long tid); + std::string getIndepPassword() const; + void setIndepPassword(const std::string &indepPassword); + long getProxyId() const; + void setProxyId(long proxyId); + +private: + std::string indepAccount_; + long userId_; + long tid_; + std::string indepPassword_; + long proxyId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYACCESSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessResult.h new file mode 100644 index 000000000..d366d3268 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyAccessResult.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_CREATEPROXYACCESSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYACCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProxyAccessResult : public ServiceResult + { + public: + + + CreateProxyAccessResult(); + explicit CreateProxyAccessResult(const std::string &payload); + ~CreateProxyAccessResult(); + long getProxyAccessId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long proxyAccessId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYACCESSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h new file mode 100644 index 000000000..776667b7f --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProxyRequest : public RpcServiceRequest { +public: + CreateProxyRequest(); + ~CreateProxyRequest(); + long getTid() const; + void setTid(long tid); + std::string getPassword() const; + void setPassword(const std::string &password); + long getInstanceId() const; + void setInstanceId(long instanceId); + std::string getUsername() const; + void setUsername(const std::string &username); + +private: + long tid_; + std::string password_; + long instanceId_; + std::string username_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyResult.h new file mode 100644 index 000000000..c85116df7 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/CreateProxyResult.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_CREATEPROXYRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CreateProxyResult : public ServiceResult + { + public: + + + CreateProxyResult(); + explicit CreateProxyResult(const std::string &payload); + ~CreateProxyResult(); + long getProxyId()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long proxyId_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CREATEPROXYRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.h new file mode 100644 index 000000000..1ab5f3ca8 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseRequest.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_DELETELOGICDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteLogicDatabaseRequest : public RpcServiceRequest { +public: + DeleteLogicDatabaseRequest(); + ~DeleteLogicDatabaseRequest(); + long getLogicDbId() const; + void setLogicDbId(long logicDbId); + long getTid() const; + void setTid(long tid); + +private: + long logicDbId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h new file mode 100644 index 000000000..7d5be043a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicDatabaseResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteLogicDatabaseResult : public ServiceResult + { + public: + + + DeleteLogicDatabaseResult(); + explicit DeleteLogicDatabaseResult(const std::string &payload); + ~DeleteLogicDatabaseResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h new file mode 100644 index 000000000..723340394 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteLogicTableRouteConfigRequest : public RpcServiceRequest { +public: + DeleteLogicTableRouteConfigRequest(); + ~DeleteLogicTableRouteConfigRequest(); + std::string getRouteKey() const; + void setRouteKey(const std::string &routeKey); + long getTid() const; + void setTid(long tid); + long getTableId() const; + void setTableId(long tableId); + +private: + std::string routeKey_; + long tid_; + long tableId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigResult.h new file mode 100644 index 000000000..cafd87421 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteLogicTableRouteConfigResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteLogicTableRouteConfigResult : public ServiceResult + { + public: + + + DeleteLogicTableRouteConfigResult(); + explicit DeleteLogicTableRouteConfigResult(const std::string &payload); + ~DeleteLogicTableRouteConfigResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETELOGICTABLEROUTECONFIGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessRequest.h new file mode 100644 index 000000000..0cf1d4226 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessRequest.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_DELETEPROXYACCESSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYACCESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteProxyAccessRequest : public RpcServiceRequest { +public: + DeleteProxyAccessRequest(); + ~DeleteProxyAccessRequest(); + long getProxyAccessId() const; + void setProxyAccessId(long proxyAccessId); + long getTid() const; + void setTid(long tid); + +private: + long proxyAccessId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYACCESSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessResult.h new file mode 100644 index 000000000..aa940fad4 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyAccessResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYACCESSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYACCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteProxyAccessResult : public ServiceResult + { + public: + + + DeleteProxyAccessResult(); + explicit DeleteProxyAccessResult(const std::string &payload); + ~DeleteProxyAccessResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYACCESSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyRequest.h new file mode 100644 index 000000000..5ccdc966b --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyRequest.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_DELETEPROXYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteProxyRequest : public RpcServiceRequest { +public: + DeleteProxyRequest(); + ~DeleteProxyRequest(); + long getTid() const; + void setTid(long tid); + long getProxyId() const; + void setProxyId(long proxyId); + +private: + long tid_; + long proxyId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyResult.h new file mode 100644 index 000000000..a68079088 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/DeleteProxyResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT DeleteProxyResult : public ServiceResult + { + public: + + + DeleteProxyResult(); + explicit DeleteProxyResult(const std::string &payload); + ~DeleteProxyResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_DELETEPROXYRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseRequest.h new file mode 100644 index 000000000..e57e0c1d1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASEREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EditLogicDatabaseRequest : public RpcServiceRequest { +public: + EditLogicDatabaseRequest(); + ~EditLogicDatabaseRequest(); + long getLogicDbId() const; + void setLogicDbId(long logicDbId); + long getTid() const; + void setTid(long tid); + std::vector getDatabaseIds() const; + void setDatabaseIds(const std::vector &databaseIds); + std::string getAlias() const; + void setAlias(const std::string &alias); + +private: + long logicDbId_; + long tid_; + std::vector databaseIds_; + std::string alias_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASEREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h new file mode 100644 index 000000000..cdf0370b6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/EditLogicDatabaseResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASERESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT EditLogicDatabaseResult : public ServiceResult + { + public: + + + EditLogicDatabaseResult(); + explicit EditLogicDatabaseResult(const std::string &payload); + ~EditLogicDatabaseResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EDITLOGICDATABASERESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h index bd1541685..bc732f113 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h @@ -53,6 +53,7 @@ namespace AlibabaCloud std::string description; std::string orderType; std::string workflowInsCode; + std::string createTime; long auditId; std::string title; std::vector workflowNodes; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.h new file mode 100644 index 000000000..ce4588266 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogRequest.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_GETDBTASKSQLJOBLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTASKSQLJOBLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDBTaskSQLJobLogRequest : public RpcServiceRequest { +public: + GetDBTaskSQLJobLogRequest(); + ~GetDBTaskSQLJobLogRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTASKSQLJOBLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.h new file mode 100644 index 000000000..f85f2e74f --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetDBTaskSQLJobLogResult.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_GETDBTASKSQLJOBLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTASKSQLJOBLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetDBTaskSQLJobLogResult : public ServiceResult + { + public: + + + GetDBTaskSQLJobLogResult(); + explicit GetDBTaskSQLJobLogResult(const std::string &payload); + ~GetDBTaskSQLJobLogResult(); + std::string getLog()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string log_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETDBTASKSQLJOBLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h index 23a8bb860..2d02da5ed 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetInstanceResult.h @@ -34,30 +34,36 @@ namespace AlibabaCloud public: struct Instance { - std::string instanceSource; - std::string instanceId; + struct StandardGroup + { + std::string groupName; + std::string groupMode; + }; int port; std::string databasePassword; - std::string host; int exportTimeout; - int ddlOnline; std::string envType; - int useDsql; - std::string sid; - std::string ecsInstanceId; std::string dbaId; - std::string vpcId; - std::string state; std::string instanceAlias; std::string ecsRegion; - std::string databaseUser; - std::vector ownerNameList; - std::string dbaNickName; std::string instanceType; int queryTimeout; std::string dataLinkName; - std::vector ownerIdList; std::string safeRuleId; + StandardGroup standardGroup; + std::string instanceSource; + std::string instanceId; + std::string host; + int ddlOnline; + int useDsql; + std::string sid; + std::string ecsInstanceId; + std::string vpcId; + std::string state; + std::string databaseUser; + std::vector ownerNameList; + std::string dbaNickName; + std::vector ownerIdList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h index 1b2f58b71..4bb65d366 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct LogicDatabase { std::string searchName; + std::string alias; std::string databaseId; std::vector ownerNameList; bool logic; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h index 99084aa16..400b64a42 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetOpLogResult.h @@ -34,7 +34,8 @@ namespace AlibabaCloud public: struct OpLogDetail { - long userId; + long opUserId; + std::string userId; std::string database; std::string opContent; std::string userNick; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyRequest.h new file mode 100644 index 000000000..c4f585a43 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPROXYREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetProxyRequest : public RpcServiceRequest { +public: + GetProxyRequest(); + ~GetProxyRequest(); + long getTid() const; + void setTid(long tid); + long getInstanceId() const; + void setInstanceId(long instanceId); + long getProxyId() const; + void setProxyId(long proxyId); + +private: + long tid_; + long instanceId_; + long proxyId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPROXYREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.h new file mode 100644 index 000000000..65601f91c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetProxyResult.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_GETPROXYRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetProxyResult : public ServiceResult + { + public: + + + GetProxyResult(); + explicit GetProxyResult(const std::string &payload); + ~GetProxyResult(); + std::string getPublicHost()const; + std::string getPrivateHost()const; + long getInstanceId()const; + long getProxyId()const; + long getCreatorId()const; + bool getSuccess()const; + bool getPublicEnable()const; + int getMysqlPort()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getPrivateEnable()const; + std::string getCreatorName()const; + int getHttpsPort()const; + + protected: + void parse(const std::string &payload); + private: + std::string publicHost_; + std::string privateHost_; + long instanceId_; + long proxyId_; + long creatorId_; + bool success_; + bool publicEnable_; + int mysqlPort_; + std::string errorCode_; + std::string errorMessage_; + bool privateEnable_; + std::string creatorName_; + int httpsPort_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETPROXYRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailRequest.h new file mode 100644 index 000000000..ac8e1e836 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailRequest.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_GETSPARKJOBDETAILREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobDetailRequest : public RpcServiceRequest { +public: + GetSparkJobDetailRequest(); + ~GetSparkJobDetailRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDETAILREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailResult.h new file mode 100644 index 000000000..16a23fc20 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDetailResult.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_GETSPARKJOBDETAILRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDETAILRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobDetailResult : public ServiceResult + { + public: + struct JobDetail + { + std::string status; + std::string mainClass; + std::string configuration; + std::string endTime; + std::string mainFile; + std::string arguments; + std::string beginTime; + std::string submitTime; + std::string jobId; + std::string name; + }; + + + GetSparkJobDetailResult(); + explicit GetSparkJobDetailResult(const std::string &payload); + ~GetSparkJobDetailResult(); + JobDetail getJobDetail()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + JobDetail jobDetail_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDETAILRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogRequest.h new file mode 100644 index 000000000..c115daaca --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogRequest.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_GETSPARKJOBDRIVERLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDRIVERLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobDriverLogRequest : public RpcServiceRequest { +public: + GetSparkJobDriverLogRequest(); + ~GetSparkJobDriverLogRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDRIVERLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogResult.h new file mode 100644 index 000000000..aa2d654b5 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobDriverLogResult.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_GETSPARKJOBDRIVERLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDRIVERLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobDriverLogResult : public ServiceResult + { + public: + + + GetSparkJobDriverLogResult(); + explicit GetSparkJobDriverLogResult(const std::string &payload); + ~GetSparkJobDriverLogResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::string getDriverLog()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + std::string driverLog_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBDRIVERLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsRequest.h new file mode 100644 index 000000000..b79f983f5 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsRequest.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_GETSPARKJOBEXECUTORLOGSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBEXECUTORLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobExecutorLogsRequest : public RpcServiceRequest { +public: + GetSparkJobExecutorLogsRequest(); + ~GetSparkJobExecutorLogsRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBEXECUTORLOGSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsResult.h new file mode 100644 index 000000000..6ed5bdec0 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobExecutorLogsResult.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_GETSPARKJOBEXECUTORLOGSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBEXECUTORLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobExecutorLogsResult : public ServiceResult + { + public: + + + GetSparkJobExecutorLogsResult(); + explicit GetSparkJobExecutorLogsResult(const std::string &payload); + ~GetSparkJobExecutorLogsResult(); + std::vector getExecutorLogs()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector executorLogs_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBEXECUTORLOGSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogRequest.h new file mode 100644 index 000000000..0c5f6397e --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogRequest.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_GETSPARKJOBLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobLogRequest : public RpcServiceRequest { +public: + GetSparkJobLogRequest(); + ~GetSparkJobLogRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogResult.h new file mode 100644 index 000000000..4bf8a0453 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetSparkJobLogResult.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_GETSPARKJOBLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetSparkJobLogResult : public ServiceResult + { + public: + + + GetSparkJobLogResult(); + explicit GetSparkJobLogResult(const std::string &payload); + ~GetSparkJobLogResult(); + std::string getLog()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string log_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETSPARKJOBLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h index 698ed6c58..aa0540c89 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GetUserResult.h @@ -34,6 +34,8 @@ namespace AlibabaCloud public: struct User { + std::string notificationMode; + std::string email; std::vector roleNameList; std::string nickName; long maxExecuteCount; @@ -46,6 +48,9 @@ namespace AlibabaCloud std::string state; std::string userId; long curExecuteCount; + std::string webhook; + std::string signatureMethod; + std::string dingRobot; long parentUid; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h index 628006422..c12c64940 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h @@ -40,6 +40,8 @@ public: void setUserId(const std::string &userId); long getTid() const; void setTid(long tid); + long getInstanceId() const; + void setInstanceId(long instanceId); std::string getDbId() const; void setDbId(const std::string &dbId); std::string getTableId() const; @@ -55,6 +57,7 @@ private: std::string expireDate_; std::string userId_; long tid_; + long instanceId_; std::string dbId_; std::string tableId_; bool logic_; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.h new file mode 100644 index 000000000..6a090410a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretRequest.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_INSPECTPROXYACCESSSECRETREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_INSPECTPROXYACCESSSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT InspectProxyAccessSecretRequest : public RpcServiceRequest { +public: + InspectProxyAccessSecretRequest(); + ~InspectProxyAccessSecretRequest(); + long getProxyAccessId() const; + void setProxyAccessId(long proxyAccessId); + long getTid() const; + void setTid(long tid); + +private: + long proxyAccessId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_INSPECTPROXYACCESSSECRETREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.h new file mode 100644 index 000000000..760fbc0ce --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/InspectProxyAccessSecretResult.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_INSPECTPROXYACCESSSECRETRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_INSPECTPROXYACCESSSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT InspectProxyAccessSecretResult : public ServiceResult + { + public: + + + InspectProxyAccessSecretResult(); + explicit InspectProxyAccessSecretResult(const std::string &payload); + ~InspectProxyAccessSecretResult(); + std::string getAccessSecret()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string accessSecret_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_INSPECTPROXYACCESSSECRETRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobRequest.h new file mode 100644 index 000000000..1595478d3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobRequest.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_KILLSPARKJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_KILLSPARKJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT KillSparkJobRequest : public RpcServiceRequest { +public: + KillSparkJobRequest(); + ~KillSparkJobRequest(); + long getJobId() const; + void setJobId(long jobId); + long getTid() const; + void setTid(long tid); + +private: + long jobId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_KILLSPARKJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobResult.h new file mode 100644 index 000000000..41a688be3 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/KillSparkJobResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_KILLSPARKJOBRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_KILLSPARKJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT KillSparkJobResult : public ServiceResult + { + public: + + + KillSparkJobResult(); + explicit KillSparkJobResult(const std::string &payload); + ~KillSparkJobResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_KILLSPARKJOBRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h index cfc873c47..e23be1292 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailResult.h @@ -35,14 +35,19 @@ namespace AlibabaCloud struct DBTaskSQLJobDetail { std::string status; + std::string endTime; + std::string log; + std::string startTime; + long timeDelay; + long jobDetailId; bool skip; long dbId; long executeCount; std::string sqlType; - long jobDetailId; std::string currentSql; bool logic; long jobId; + long affectRows; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBRequest.h new file mode 100644 index 000000000..8411931b6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataCorrectPreCheckDBRequest : public RpcServiceRequest { +public: + ListDataCorrectPreCheckDBRequest(); + ~ListDataCorrectPreCheckDBRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long orderId_; + long pageNumber_; + long tid_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h new file mode 100644 index 000000000..c274c3ad6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckDBResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataCorrectPreCheckDBResult : public ServiceResult + { + public: + struct PreCheckDB + { + long sqlNum; + std::string searchName; + long dbId; + }; + + + ListDataCorrectPreCheckDBResult(); + explicit ListDataCorrectPreCheckDBResult(const std::string &payload); + ~ListDataCorrectPreCheckDBResult(); + std::string getErrorCode()const; + std::vector getPreCheckDBList()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::vector preCheckDBList_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKDBRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h new file mode 100644 index 000000000..81a186303 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKSQLREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKSQLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataCorrectPreCheckSQLRequest : public RpcServiceRequest { +public: + ListDataCorrectPreCheckSQLRequest(); + ~ListDataCorrectPreCheckSQLRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + long getTid() const; + void setTid(long tid); + long getDbId() const; + void setDbId(long dbId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + long orderId_; + long pageNumber_; + long tid_; + long dbId_; + long pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKSQLREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h new file mode 100644 index 000000000..99cb919e8 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListDataCorrectPreCheckSQLResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTDATACORRECTPRECHECKSQLRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKSQLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListDataCorrectPreCheckSQLResult : public ServiceResult + { + public: + struct PreCheckSQL + { + std::string checkSQL; + std::string sqlReviewStatus; + std::string tableNames; + long dbId; + std::string sqlType; + long affectRows; + std::string sQLReviewQueryKey; + }; + + + ListDataCorrectPreCheckSQLResult(); + explicit ListDataCorrectPreCheckSQLResult(const std::string &payload); + ~ListDataCorrectPreCheckSQLResult(); + std::vector getPreCheckSQLList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector preCheckSQLList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTDATACORRECTPRECHECKSQLRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.h new file mode 100644 index 000000000..792df7f16 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogRequest.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_LISTINSTANCELOGINAUDITLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCELOGINAUDITLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstanceLoginAuditLogRequest : public RpcServiceRequest { +public: + ListInstanceLoginAuditLogRequest(); + ~ListInstanceLoginAuditLogRequest(); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + std::string getOpUserName() const; + void setOpUserName(const std::string &opUserName); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getTid() const; + void setTid(long tid); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string searchName_; + std::string opUserName_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + long tid_; + int pageSize_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCELOGINAUDITLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogResult.h new file mode 100644 index 000000000..a4f43004e --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceLoginAuditLogResult.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_LISTINSTANCELOGINAUDITLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCELOGINAUDITLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstanceLoginAuditLogResult : public ServiceResult + { + public: + struct InstanceLoginAuditLog + { + std::string instanceName; + std::string userName; + long instanceId; + long userId; + std::string requestIp; + std::string opTime; + std::string dbUser; + }; + + + ListInstanceLoginAuditLogResult(); + explicit ListInstanceLoginAuditLogResult(const std::string &payload); + ~ListInstanceLoginAuditLogResult(); + std::vector getInstanceLoginAuditLogList()const; + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceLoginAuditLogList_; + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCELOGINAUDITLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsRequest.h new file mode 100644 index 000000000..fdc2924d6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCEUSERPERMISSIONSREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCEUSERPERMISSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstanceUserPermissionsRequest : public RpcServiceRequest { +public: + ListInstanceUserPermissionsRequest(); + ~ListInstanceUserPermissionsRequest(); + long getTid() const; + void setTid(long tid); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long tid_; + int pageNumber_; + std::string instanceId_; + int pageSize_; + std::string userName_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCEUSERPERMISSIONSREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.h new file mode 100644 index 000000000..43c2b8b87 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstanceUserPermissionsResult.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_LISTINSTANCEUSERPERMISSIONSRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCEUSERPERMISSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListInstanceUserPermissionsResult : public ServiceResult + { + public: + struct UserPermission + { + struct PermDetail + { + std::string expireDate; + std::string permType; + std::string extraData; + std::string originFrom; + std::string createDate; + std::string userAccessId; + }; + std::string userNickName; + std::string instanceId; + std::string userId; + std::vector permDetails; + }; + + + ListInstanceUserPermissionsResult(); + explicit ListInstanceUserPermissionsResult(const std::string &payload); + ~ListInstanceUserPermissionsResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::vector getUserPermissions()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::vector userPermissions_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTINSTANCEUSERPERMISSIONSRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h index 265f375c7..3a4a055f7 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListInstancesResult.h @@ -34,30 +34,36 @@ namespace AlibabaCloud public: struct Instance { - std::string instanceSource; - std::string instanceId; + struct StandardGroup + { + std::string groupName; + std::string groupMode; + }; int port; std::string databasePassword; - std::string host; int exportTimeout; - int ddlOnline; std::string envType; - int useDsql; - std::string sid; - std::string ecsInstanceId; std::string dbaId; - std::string vpcId; - std::string state; std::string instanceAlias; std::string ecsRegion; - std::string databaseUser; - std::vector ownerNameList; - std::string dbaNickName; std::string instanceType; int queryTimeout; std::string dataLinkName; - std::vector ownerIdList; std::string safeRuleId; + StandardGroup standardGroup; + std::string instanceSource; + std::string instanceId; + std::string host; + int ddlOnline; + int useDsql; + std::string sid; + std::string ecsInstanceId; + std::string vpcId; + std::string state; + std::string databaseUser; + std::vector ownerNameList; + std::string dbaNickName; + std::vector ownerIdList; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h index fe2d94404..26f5a5c9d 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicDatabasesResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct LogicDatabase { std::string searchName; + std::string alias; std::string databaseId; std::vector ownerNameList; bool logic; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.h new file mode 100644 index 000000000..f2005d2c0 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigRequest.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_LISTLOGICTABLEROUTECONFIGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLEROUTECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTableRouteConfigRequest : public RpcServiceRequest { +public: + ListLogicTableRouteConfigRequest(); + ~ListLogicTableRouteConfigRequest(); + long getTableId() const; + void setTableId(long tableId); + long getTid() const; + void setTid(long tid); + +private: + long tableId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLEROUTECONFIGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigResult.h new file mode 100644 index 000000000..986c0cbb9 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListLogicTableRouteConfigResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLEROUTECONFIGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLEROUTECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListLogicTableRouteConfigResult : public ServiceResult + { + public: + struct LogicTableRouteConfig + { + long tableId; + std::string routeExpr; + std::string routeKey; + }; + + + ListLogicTableRouteConfigResult(); + explicit ListLogicTableRouteConfigResult(const std::string &payload); + ~ListLogicTableRouteConfigResult(); + std::vector getLogicTableRouteConfigList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector logicTableRouteConfigList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTLOGICTABLEROUTECONFIGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesRequest.h new file mode 100644 index 000000000..892563611 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXIESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxiesRequest : public RpcServiceRequest { +public: + ListProxiesRequest(); + ~ListProxiesRequest(); + long getTid() const; + void setTid(long tid); + +private: + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXIESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.h new file mode 100644 index 000000000..187865a25 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxiesResult.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_LISTPROXIESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxiesResult : public ServiceResult + { + public: + struct ProxyListItem + { + std::string publicHost; + std::string privateHost; + long instanceId; + long proxyId; + long creatorId; + int mysqlPort; + bool privateEnable; + std::string creatorName; + bool publicEnable; + int httpsPort; + }; + + + ListProxiesResult(); + explicit ListProxiesResult(const std::string &payload); + ~ListProxiesResult(); + std::vector getProxyList()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector proxyList_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXIESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesRequest.h new file mode 100644 index 000000000..dd0ae3928 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesRequest.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_LISTPROXYACCESSESREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYACCESSESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxyAccessesRequest : public RpcServiceRequest { +public: + ListProxyAccessesRequest(); + ~ListProxyAccessesRequest(); + long getTid() const; + void setTid(long tid); + long getProxyId() const; + void setProxyId(long proxyId); + +private: + long tid_; + long proxyId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYACCESSESREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesResult.h new file mode 100644 index 000000000..717404335 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxyAccessesResult.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_LISTPROXYACCESSESRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYACCESSESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxyAccessesResult : public ServiceResult + { + public: + struct ProxyAccessListItem + { + std::string gmtCreate; + std::string userName; + std::string accessId; + long instanceId; + long userId; + std::string userUid; + long proxyId; + long proxyAccessId; + std::string originInfo; + std::string indepAccount; + }; + + + ListProxyAccessesResult(); + explicit ListProxyAccessesResult(const std::string &payload); + ~ListProxyAccessesResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + std::vector getProxyAccessList()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + std::vector proxyAccessList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYACCESSESRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogRequest.h new file mode 100644 index 000000000..4bff43ee9 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYSQLEXECAUDITLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYSQLEXECAUDITLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxySQLExecAuditLogRequest : public RpcServiceRequest { +public: + ListProxySQLExecAuditLogRequest(); + ~ListProxySQLExecAuditLogRequest(); + std::string getSQLType() const; + void setSQLType(const std::string &sQLType); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + std::string getOpUserName() const; + void setOpUserName(const std::string &opUserName); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getTid() const; + void setTid(long tid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getExecState() const; + void setExecState(const std::string &execState); + +private: + std::string sQLType_; + std::string searchName_; + std::string opUserName_; + long endTime_; + long startTime_; + int pageNumber_; + long tid_; + int pageSize_; + std::string execState_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYSQLEXECAUDITLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogResult.h new file mode 100644 index 000000000..2d4cf3c97 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListProxySQLExecAuditLogResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTPROXYSQLEXECAUDITLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYSQLEXECAUDITLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListProxySQLExecAuditLogResult : public ServiceResult + { + public: + struct ProxySQLExecAuditLog + { + std::string instanceName; + std::string userName; + long instanceId; + long userId; + long elapsedTime; + std::string execState; + std::string sQLType; + std::string opTime; + std::string schemaName; + long affectRows; + std::string sQL; + std::string remark; + }; + + + ListProxySQLExecAuditLogResult(); + explicit ListProxySQLExecAuditLogResult(const std::string &payload); + ~ListProxySQLExecAuditLogResult(); + std::vector getProxySQLExecAuditLogList()const; + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector proxySQLExecAuditLogList_; + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTPROXYSQLEXECAUDITLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogRequest.h new file mode 100644 index 000000000..96b19022c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLEXECAUDITLOGREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLEXECAUDITLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSQLExecAuditLogRequest : public RpcServiceRequest { +public: + ListSQLExecAuditLogRequest(); + ~ListSQLExecAuditLogRequest(); + std::string getSqlType() const; + void setSqlType(const std::string &sqlType); + std::string getSearchName() const; + void setSearchName(const std::string &searchName); + std::string getOpUserName() const; + void setOpUserName(const std::string &opUserName); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getTid() const; + void setTid(long tid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getExecState() const; + void setExecState(const std::string &execState); + +private: + std::string sqlType_; + std::string searchName_; + std::string opUserName_; + std::string endTime_; + std::string startTime_; + int pageNumber_; + long tid_; + int pageSize_; + std::string execState_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLEXECAUDITLOGREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogResult.h new file mode 100644 index 000000000..a6d7c2796 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSQLExecAuditLogResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_LISTSQLEXECAUDITLOGRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLEXECAUDITLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListSQLExecAuditLogResult : public ServiceResult + { + public: + struct SQLExecAuditLog + { + std::string userName; + long instanceId; + long elapsedTime; + std::string execState; + std::string opTime; + std::string sQL; + std::string remark; + std::string instanceName; + long userId; + long dbId; + bool logic; + std::string sQLType; + std::string schemaName; + long affectRows; + }; + + + ListSQLExecAuditLogResult(); + explicit ListSQLExecAuditLogResult(const std::string &payload); + ~ListSQLExecAuditLogResult(); + long getTotalCount()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getSQLExecAuditLogList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::string errorCode_; + std::string errorMessage_; + std::vector sQLExecAuditLogList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTSQLEXECAUDITLOGRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h index 8beb57a7f..bb2924f04 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsDetailRequest.h @@ -36,6 +36,10 @@ public: void setColumnName(const std::string &columnName); long getTid() const; void setTid(long tid); + long getDbId() const; + void setDbId(long dbId); + bool getLogic() const; + void setLogic(bool logic); std::string getTableName() const; void setTableName(const std::string &tableName); @@ -43,6 +47,8 @@ private: std::string schemaName_; std::string columnName_; long tid_; + long dbId_; + bool logic_; std::string tableName_; }; } // namespace Model diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h index 84275bc7b..d9db332e4 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListSensitiveColumnsRequest.h @@ -40,8 +40,12 @@ public: void setPageNumber(int pageNumber); std::string getSecurityLevel() const; void setSecurityLevel(const std::string &securityLevel); + long getDbId() const; + void setDbId(long dbId); int getPageSize() const; void setPageSize(int pageSize); + bool getLogic() const; + void setLogic(bool logic); std::string getTableName() const; void setTableName(const std::string &tableName); @@ -51,7 +55,9 @@ private: long tid_; int pageNumber_; std::string securityLevel_; + long dbId_; int pageSize_; + bool logic_; std::string tableName_; }; } // namespace Model diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h index 61754d2ca..c1fe2e37f 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h @@ -30,6 +30,8 @@ class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserPermissionsRequest : public Rpc public: ListUserPermissionsRequest(); ~ListUserPermissionsRequest(); + std::string getSearchKey() const; + void setSearchKey(const std::string &searchKey); std::string getUserId() const; void setUserId(const std::string &userId); long getTid() const; @@ -50,6 +52,7 @@ public: void setLogic(bool logic); private: + std::string searchKey_; std::string userId_; long tid_; int pageNumber_; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h index 82c8e54c6..779b8229b 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h @@ -46,6 +46,8 @@ namespace AlibabaCloud std::string tableId; std::string instanceId; std::string searchName; + long port; + std::string host; std::vector permDetails; std::string envType; std::string dbType; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h index c79b86f5b..c05505117 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ListUsersResult.h @@ -34,6 +34,8 @@ namespace AlibabaCloud public: struct User { + std::string notificationMode; + std::string email; std::vector roleNameList; std::string nickName; long maxExecuteCount; @@ -46,6 +48,9 @@ namespace AlibabaCloud std::string state; std::string userId; long curExecuteCount; + std::string webhook; + std::string signatureMethod; + std::string dingRobot; std::string parentUid; }; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h new file mode 100644 index 000000000..0004141bc --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ModifyDataCorrectExecSQLRequest : public RpcServiceRequest { +public: + ModifyDataCorrectExecSQLRequest(); + ~ModifyDataCorrectExecSQLRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getExecSQL() const; + void setExecSQL(const std::string &execSQL); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + std::string execSQL_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h new file mode 100644 index 000000000..2afdc6a76 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/ModifyDataCorrectExecSQLResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ModifyDataCorrectExecSQLResult : public ServiceResult + { + public: + + + ModifyDataCorrectExecSQLResult(); + explicit ModifyDataCorrectExecSQLResult(const std::string &payload); + ~ModifyDataCorrectExecSQLResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_MODIFYDATACORRECTEXECSQLRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h new file mode 100644 index 000000000..0cec6459a --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT PauseDataCorrectSQLJobRequest : public RpcServiceRequest { +public: + PauseDataCorrectSQLJobRequest(); + ~PauseDataCorrectSQLJobRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getType() const; + void setType(const std::string &type); + long getTid() const; + void setTid(long tid); + long getJobId() const; + void setJobId(long jobId); + +private: + long orderId_; + std::string type_; + long tid_; + long jobId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h new file mode 100644 index 000000000..c7aa09933 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/PauseDataCorrectSQLJobResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT PauseDataCorrectSQLJobResult : public ServiceResult + { + public: + + + PauseDataCorrectSQLJobResult(); + explicit PauseDataCorrectSQLJobResult(const std::string &payload); + ~PauseDataCorrectSQLJobResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_PAUSEDATACORRECTSQLJOBRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobRequest.h new file mode 100644 index 000000000..c60e5de5c --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RestartDataCorrectSQLJobRequest : public RpcServiceRequest { +public: + RestartDataCorrectSQLJobRequest(); + ~RestartDataCorrectSQLJobRequest(); + long getOrderId() const; + void setOrderId(long orderId); + std::string getType() const; + void setType(const std::string &type); + long getTid() const; + void setTid(long tid); + long getJobId() const; + void setJobId(long jobId); + +private: + long orderId_; + std::string type_; + long tid_; + long jobId_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobResult.h new file mode 100644 index 000000000..cc790b2c8 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RestartDataCorrectSQLJobResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RestartDataCorrectSQLJobResult : public ServiceResult + { + public: + + + RestartDataCorrectSQLJobResult(); + explicit RestartDataCorrectSQLJobResult(const std::string &payload); + ~RestartDataCorrectSQLJobResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RESTARTDATACORRECTSQLJOBRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.h new file mode 100644 index 000000000..008b56571 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckRequest.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_RETRYDATACORRECTPRECHECKREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RETRYDATACORRECTPRECHECKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RetryDataCorrectPreCheckRequest : public RpcServiceRequest { +public: + RetryDataCorrectPreCheckRequest(); + ~RetryDataCorrectPreCheckRequest(); + long getOrderId() const; + void setOrderId(long orderId); + long getTid() const; + void setTid(long tid); + +private: + long orderId_; + long tid_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RETRYDATACORRECTPRECHECKREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h new file mode 100644 index 000000000..0021c22d1 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RetryDataCorrectPreCheckResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RETRYDATACORRECTPRECHECKRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RETRYDATACORRECTPRECHECKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT RetryDataCorrectPreCheckResult : public ServiceResult + { + public: + + + RetryDataCorrectPreCheckResult(); + explicit RetryDataCorrectPreCheckResult(const std::string &payload); + ~RetryDataCorrectPreCheckResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_RETRYDATACORRECTPRECHECKRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h index b51b2ea77..12d7513d9 100644 --- a/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/RevokeUserPermissionRequest.h @@ -40,6 +40,8 @@ public: void setUserId(const std::string &userId); long getTid() const; void setTid(long tid); + long getInstanceId() const; + void setInstanceId(long instanceId); std::string getDbId() const; void setDbId(const std::string &dbId); std::string getTableId() const; @@ -55,6 +57,7 @@ private: std::string dsType_; std::string userId_; long tid_; + long instanceId_; std::string dbId_; std::string tableId_; bool logic_; diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobRequest.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobRequest.h new file mode 100644 index 000000000..37979c9d7 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobRequest.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_SUBMITSPARKJOBREQUEST_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSPARKJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Dms_enterprise { +namespace Model { +class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitSparkJobRequest : public RpcServiceRequest { +public: + struct OssInfo { + std::string endpoint; + std::string accessKeySecret; + std::string accessKeyId; + }; + SubmitSparkJobRequest(); + ~SubmitSparkJobRequest(); + std::string getMainClass() const; + void setMainClass(const std::string &mainClass); + std::map getConfiguration() const; + void setConfiguration(const std::map &configuration); + OssInfo getOssInfo() const; + void setOssInfo(const OssInfo &ossInfo); + long getTid() const; + void setTid(long tid); + std::string getMainFile() const; + void setMainFile(const std::string &mainFile); + std::string getName() const; + void setName(const std::string &name); + std::vector getFiles() const; + void setFiles(const std::vector &files); + std::string getAppCode() const; + void setAppCode(const std::string &appCode); + std::vector getArguments() const; + void setArguments(const std::vector &arguments); + +private: + std::string mainClass_; + std::map configuration_; + OssInfo ossInfo_; + long tid_; + std::string mainFile_; + std::string name_; + std::vector files_; + std::string appCode_; + std::vector arguments_; +}; +} // namespace Model +} // namespace Dms_enterprise +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSPARKJOBREQUEST_H_ diff --git a/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobResult.h b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobResult.h new file mode 100644 index 000000000..5a3194fb6 --- /dev/null +++ b/dms-enterprise/include/alibabacloud/dms-enterprise/model/SubmitSparkJobResult.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_SUBMITSPARKJOBRESULT_H_ +#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSPARKJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Dms_enterprise + { + namespace Model + { + class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT SubmitSparkJobResult : public ServiceResult + { + public: + + + SubmitSparkJobResult(); + explicit SubmitSparkJobResult(const std::string &payload); + ~SubmitSparkJobResult(); + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + long getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string errorCode_; + std::string errorMessage_; + bool success_; + long jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_SUBMITSPARKJOBRESULT_H_ \ No newline at end of file diff --git a/dms-enterprise/src/Dms-enterpriseClient.cc b/dms-enterprise/src/Dms-enterpriseClient.cc index 69557a51b..f2b99f481 100644 --- a/dms-enterprise/src/Dms-enterpriseClient.cc +++ b/dms-enterprise/src/Dms-enterpriseClient.cc @@ -51,6 +51,42 @@ Dms_enterpriseClient::Dms_enterpriseClient(const std::string & accessKeyId, cons Dms_enterpriseClient::~Dms_enterpriseClient() {} +Dms_enterpriseClient::AddLogicTableRouteConfigOutcome Dms_enterpriseClient::addLogicTableRouteConfig(const AddLogicTableRouteConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddLogicTableRouteConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddLogicTableRouteConfigOutcome(AddLogicTableRouteConfigResult(outcome.result())); + else + return AddLogicTableRouteConfigOutcome(outcome.error()); +} + +void Dms_enterpriseClient::addLogicTableRouteConfigAsync(const AddLogicTableRouteConfigRequest& request, const AddLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addLogicTableRouteConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::AddLogicTableRouteConfigOutcomeCallable Dms_enterpriseClient::addLogicTableRouteConfigCallable(const AddLogicTableRouteConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addLogicTableRouteConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ApproveOrderOutcome Dms_enterpriseClient::approveOrder(const ApproveOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +123,42 @@ Dms_enterpriseClient::ApproveOrderOutcomeCallable Dms_enterpriseClient::approveO return task->get_future(); } +Dms_enterpriseClient::ChangeColumnSecLevelOutcome Dms_enterpriseClient::changeColumnSecLevel(const ChangeColumnSecLevelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeColumnSecLevelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeColumnSecLevelOutcome(ChangeColumnSecLevelResult(outcome.result())); + else + return ChangeColumnSecLevelOutcome(outcome.error()); +} + +void Dms_enterpriseClient::changeColumnSecLevelAsync(const ChangeColumnSecLevelRequest& request, const ChangeColumnSecLevelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeColumnSecLevel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ChangeColumnSecLevelOutcomeCallable Dms_enterpriseClient::changeColumnSecLevelCallable(const ChangeColumnSecLevelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeColumnSecLevel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,6 +339,42 @@ Dms_enterpriseClient::CreateFreeLockCorrectOrderOutcomeCallable Dms_enterpriseCl return task->get_future(); } +Dms_enterpriseClient::CreateLogicDatabaseOutcome Dms_enterpriseClient::createLogicDatabase(const CreateLogicDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLogicDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLogicDatabaseOutcome(CreateLogicDatabaseResult(outcome.result())); + else + return CreateLogicDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createLogicDatabaseAsync(const CreateLogicDatabaseRequest& request, const CreateLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLogicDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreateLogicDatabaseOutcomeCallable Dms_enterpriseClient::createLogicDatabaseCallable(const CreateLogicDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLogicDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::CreateOrderOutcome Dms_enterpriseClient::createOrder(const CreateOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +411,78 @@ Dms_enterpriseClient::CreateOrderOutcomeCallable Dms_enterpriseClient::createOrd return task->get_future(); } +Dms_enterpriseClient::CreateProxyOutcome Dms_enterpriseClient::createProxy(const CreateProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProxyOutcome(CreateProxyResult(outcome.result())); + else + return CreateProxyOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createProxyAsync(const CreateProxyRequest& request, const CreateProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreateProxyOutcomeCallable Dms_enterpriseClient::createProxyCallable(const CreateProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::CreateProxyAccessOutcome Dms_enterpriseClient::createProxyAccess(const CreateProxyAccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateProxyAccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateProxyAccessOutcome(CreateProxyAccessResult(outcome.result())); + else + return CreateProxyAccessOutcome(outcome.error()); +} + +void Dms_enterpriseClient::createProxyAccessAsync(const CreateProxyAccessRequest& request, const CreateProxyAccessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createProxyAccess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::CreateProxyAccessOutcomeCallable Dms_enterpriseClient::createProxyAccessCallable(const CreateProxyAccessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createProxyAccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::CreatePublishGroupTaskOutcome Dms_enterpriseClient::createPublishGroupTask(const CreatePublishGroupTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +699,150 @@ Dms_enterpriseClient::DeleteInstanceOutcomeCallable Dms_enterpriseClient::delete return task->get_future(); } +Dms_enterpriseClient::DeleteLogicDatabaseOutcome Dms_enterpriseClient::deleteLogicDatabase(const DeleteLogicDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLogicDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLogicDatabaseOutcome(DeleteLogicDatabaseResult(outcome.result())); + else + return DeleteLogicDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteLogicDatabaseAsync(const DeleteLogicDatabaseRequest& request, const DeleteLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLogicDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteLogicDatabaseOutcomeCallable Dms_enterpriseClient::deleteLogicDatabaseCallable(const DeleteLogicDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLogicDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DeleteLogicTableRouteConfigOutcome Dms_enterpriseClient::deleteLogicTableRouteConfig(const DeleteLogicTableRouteConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLogicTableRouteConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLogicTableRouteConfigOutcome(DeleteLogicTableRouteConfigResult(outcome.result())); + else + return DeleteLogicTableRouteConfigOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteLogicTableRouteConfigAsync(const DeleteLogicTableRouteConfigRequest& request, const DeleteLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLogicTableRouteConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteLogicTableRouteConfigOutcomeCallable Dms_enterpriseClient::deleteLogicTableRouteConfigCallable(const DeleteLogicTableRouteConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLogicTableRouteConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DeleteProxyOutcome Dms_enterpriseClient::deleteProxy(const DeleteProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProxyOutcome(DeleteProxyResult(outcome.result())); + else + return DeleteProxyOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteProxyAsync(const DeleteProxyRequest& request, const DeleteProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteProxyOutcomeCallable Dms_enterpriseClient::deleteProxyCallable(const DeleteProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::DeleteProxyAccessOutcome Dms_enterpriseClient::deleteProxyAccess(const DeleteProxyAccessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProxyAccessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProxyAccessOutcome(DeleteProxyAccessResult(outcome.result())); + else + return DeleteProxyAccessOutcome(outcome.error()); +} + +void Dms_enterpriseClient::deleteProxyAccessAsync(const DeleteProxyAccessRequest& request, const DeleteProxyAccessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProxyAccess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::DeleteProxyAccessOutcomeCallable Dms_enterpriseClient::deleteProxyAccessCallable(const DeleteProxyAccessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProxyAccess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::DeleteUserOutcome Dms_enterpriseClient::deleteUser(const DeleteUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -591,6 +915,42 @@ Dms_enterpriseClient::DisableUserOutcomeCallable Dms_enterpriseClient::disableUs return task->get_future(); } +Dms_enterpriseClient::EditLogicDatabaseOutcome Dms_enterpriseClient::editLogicDatabase(const EditLogicDatabaseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EditLogicDatabaseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EditLogicDatabaseOutcome(EditLogicDatabaseResult(outcome.result())); + else + return EditLogicDatabaseOutcome(outcome.error()); +} + +void Dms_enterpriseClient::editLogicDatabaseAsync(const EditLogicDatabaseRequest& request, const EditLogicDatabaseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, editLogicDatabase(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::EditLogicDatabaseOutcomeCallable Dms_enterpriseClient::editLogicDatabaseCallable(const EditLogicDatabaseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->editLogicDatabase(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::EnableUserOutcome Dms_enterpriseClient::enableUser(const EnableUserRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1167,42 @@ Dms_enterpriseClient::GetApprovalDetailOutcomeCallable Dms_enterpriseClient::get return task->get_future(); } +Dms_enterpriseClient::GetDBTaskSQLJobLogOutcome Dms_enterpriseClient::getDBTaskSQLJobLog(const GetDBTaskSQLJobLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDBTaskSQLJobLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDBTaskSQLJobLogOutcome(GetDBTaskSQLJobLogResult(outcome.result())); + else + return GetDBTaskSQLJobLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getDBTaskSQLJobLogAsync(const GetDBTaskSQLJobLogRequest& request, const GetDBTaskSQLJobLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDBTaskSQLJobLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetDBTaskSQLJobLogOutcomeCallable Dms_enterpriseClient::getDBTaskSQLJobLogCallable(const GetDBTaskSQLJobLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDBTaskSQLJobLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::GetDBTopologyOutcome Dms_enterpriseClient::getDBTopology(const GetDBTopologyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,6 +1851,42 @@ Dms_enterpriseClient::GetPhysicalDatabaseOutcomeCallable Dms_enterpriseClient::g return task->get_future(); } +Dms_enterpriseClient::GetProxyOutcome Dms_enterpriseClient::getProxy(const GetProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProxyOutcome(GetProxyResult(outcome.result())); + else + return GetProxyOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getProxyAsync(const GetProxyRequest& request, const GetProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetProxyOutcomeCallable Dms_enterpriseClient::getProxyCallable(const GetProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::GetSQLReviewCheckResultStatusOutcome Dms_enterpriseClient::getSQLReviewCheckResultStatus(const GetSQLReviewCheckResultStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +1959,150 @@ Dms_enterpriseClient::GetSQLReviewOptimizeDetailOutcomeCallable Dms_enterpriseCl return task->get_future(); } +Dms_enterpriseClient::GetSparkJobDetailOutcome Dms_enterpriseClient::getSparkJobDetail(const GetSparkJobDetailRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkJobDetailOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkJobDetailOutcome(GetSparkJobDetailResult(outcome.result())); + else + return GetSparkJobDetailOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getSparkJobDetailAsync(const GetSparkJobDetailRequest& request, const GetSparkJobDetailAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkJobDetail(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetSparkJobDetailOutcomeCallable Dms_enterpriseClient::getSparkJobDetailCallable(const GetSparkJobDetailRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkJobDetail(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetSparkJobDriverLogOutcome Dms_enterpriseClient::getSparkJobDriverLog(const GetSparkJobDriverLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkJobDriverLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkJobDriverLogOutcome(GetSparkJobDriverLogResult(outcome.result())); + else + return GetSparkJobDriverLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getSparkJobDriverLogAsync(const GetSparkJobDriverLogRequest& request, const GetSparkJobDriverLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkJobDriverLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetSparkJobDriverLogOutcomeCallable Dms_enterpriseClient::getSparkJobDriverLogCallable(const GetSparkJobDriverLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkJobDriverLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetSparkJobExecutorLogsOutcome Dms_enterpriseClient::getSparkJobExecutorLogs(const GetSparkJobExecutorLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkJobExecutorLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkJobExecutorLogsOutcome(GetSparkJobExecutorLogsResult(outcome.result())); + else + return GetSparkJobExecutorLogsOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getSparkJobExecutorLogsAsync(const GetSparkJobExecutorLogsRequest& request, const GetSparkJobExecutorLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkJobExecutorLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetSparkJobExecutorLogsOutcomeCallable Dms_enterpriseClient::getSparkJobExecutorLogsCallable(const GetSparkJobExecutorLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkJobExecutorLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::GetSparkJobLogOutcome Dms_enterpriseClient::getSparkJobLog(const GetSparkJobLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSparkJobLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSparkJobLogOutcome(GetSparkJobLogResult(outcome.result())); + else + return GetSparkJobLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::getSparkJobLogAsync(const GetSparkJobLogRequest& request, const GetSparkJobLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSparkJobLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::GetSparkJobLogOutcomeCallable Dms_enterpriseClient::getSparkJobLogCallable(const GetSparkJobLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSparkJobLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::GetStructSyncExecSqlDetailOutcome Dms_enterpriseClient::getStructSyncExecSqlDetail(const GetStructSyncExecSqlDetailRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1887,6 +2463,78 @@ Dms_enterpriseClient::GrantUserPermissionOutcomeCallable Dms_enterpriseClient::g return task->get_future(); } +Dms_enterpriseClient::InspectProxyAccessSecretOutcome Dms_enterpriseClient::inspectProxyAccessSecret(const InspectProxyAccessSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InspectProxyAccessSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InspectProxyAccessSecretOutcome(InspectProxyAccessSecretResult(outcome.result())); + else + return InspectProxyAccessSecretOutcome(outcome.error()); +} + +void Dms_enterpriseClient::inspectProxyAccessSecretAsync(const InspectProxyAccessSecretRequest& request, const InspectProxyAccessSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, inspectProxyAccessSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::InspectProxyAccessSecretOutcomeCallable Dms_enterpriseClient::inspectProxyAccessSecretCallable(const InspectProxyAccessSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->inspectProxyAccessSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::KillSparkJobOutcome Dms_enterpriseClient::killSparkJob(const KillSparkJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return KillSparkJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return KillSparkJobOutcome(KillSparkJobResult(outcome.result())); + else + return KillSparkJobOutcome(outcome.error()); +} + +void Dms_enterpriseClient::killSparkJobAsync(const KillSparkJobRequest& request, const KillSparkJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, killSparkJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::KillSparkJobOutcomeCallable Dms_enterpriseClient::killSparkJobCallable(const KillSparkJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->killSparkJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListColumnsOutcome Dms_enterpriseClient::listColumns(const ListColumnsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2031,6 +2679,78 @@ Dms_enterpriseClient::ListDDLPublishRecordsOutcomeCallable Dms_enterpriseClient: return task->get_future(); } +Dms_enterpriseClient::ListDataCorrectPreCheckDBOutcome Dms_enterpriseClient::listDataCorrectPreCheckDB(const ListDataCorrectPreCheckDBRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataCorrectPreCheckDBOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataCorrectPreCheckDBOutcome(ListDataCorrectPreCheckDBResult(outcome.result())); + else + return ListDataCorrectPreCheckDBOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listDataCorrectPreCheckDBAsync(const ListDataCorrectPreCheckDBRequest& request, const ListDataCorrectPreCheckDBAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataCorrectPreCheckDB(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListDataCorrectPreCheckDBOutcomeCallable Dms_enterpriseClient::listDataCorrectPreCheckDBCallable(const ListDataCorrectPreCheckDBRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataCorrectPreCheckDB(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListDataCorrectPreCheckSQLOutcome Dms_enterpriseClient::listDataCorrectPreCheckSQL(const ListDataCorrectPreCheckSQLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListDataCorrectPreCheckSQLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListDataCorrectPreCheckSQLOutcome(ListDataCorrectPreCheckSQLResult(outcome.result())); + else + return ListDataCorrectPreCheckSQLOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listDataCorrectPreCheckSQLAsync(const ListDataCorrectPreCheckSQLRequest& request, const ListDataCorrectPreCheckSQLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listDataCorrectPreCheckSQL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListDataCorrectPreCheckSQLOutcomeCallable Dms_enterpriseClient::listDataCorrectPreCheckSQLCallable(const ListDataCorrectPreCheckSQLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listDataCorrectPreCheckSQL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListDatabaseUserPermssionsOutcome Dms_enterpriseClient::listDatabaseUserPermssions(const ListDatabaseUserPermssionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +2859,78 @@ Dms_enterpriseClient::ListIndexesOutcomeCallable Dms_enterpriseClient::listIndex return task->get_future(); } +Dms_enterpriseClient::ListInstanceLoginAuditLogOutcome Dms_enterpriseClient::listInstanceLoginAuditLog(const ListInstanceLoginAuditLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstanceLoginAuditLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstanceLoginAuditLogOutcome(ListInstanceLoginAuditLogResult(outcome.result())); + else + return ListInstanceLoginAuditLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listInstanceLoginAuditLogAsync(const ListInstanceLoginAuditLogRequest& request, const ListInstanceLoginAuditLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstanceLoginAuditLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListInstanceLoginAuditLogOutcomeCallable Dms_enterpriseClient::listInstanceLoginAuditLogCallable(const ListInstanceLoginAuditLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstanceLoginAuditLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListInstanceUserPermissionsOutcome Dms_enterpriseClient::listInstanceUserPermissions(const ListInstanceUserPermissionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstanceUserPermissionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstanceUserPermissionsOutcome(ListInstanceUserPermissionsResult(outcome.result())); + else + return ListInstanceUserPermissionsOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listInstanceUserPermissionsAsync(const ListInstanceUserPermissionsRequest& request, const ListInstanceUserPermissionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstanceUserPermissions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListInstanceUserPermissionsOutcomeCallable Dms_enterpriseClient::listInstanceUserPermissionsCallable(const ListInstanceUserPermissionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstanceUserPermissions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListInstancesOutcome Dms_enterpriseClient::listInstances(const ListInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2211,6 +3003,42 @@ Dms_enterpriseClient::ListLogicDatabasesOutcomeCallable Dms_enterpriseClient::li return task->get_future(); } +Dms_enterpriseClient::ListLogicTableRouteConfigOutcome Dms_enterpriseClient::listLogicTableRouteConfig(const ListLogicTableRouteConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListLogicTableRouteConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListLogicTableRouteConfigOutcome(ListLogicTableRouteConfigResult(outcome.result())); + else + return ListLogicTableRouteConfigOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listLogicTableRouteConfigAsync(const ListLogicTableRouteConfigRequest& request, const ListLogicTableRouteConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listLogicTableRouteConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListLogicTableRouteConfigOutcomeCallable Dms_enterpriseClient::listLogicTableRouteConfigCallable(const ListLogicTableRouteConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listLogicTableRouteConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListLogicTablesOutcome Dms_enterpriseClient::listLogicTables(const ListLogicTablesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +3111,150 @@ Dms_enterpriseClient::ListOrdersOutcomeCallable Dms_enterpriseClient::listOrders return task->get_future(); } +Dms_enterpriseClient::ListProxiesOutcome Dms_enterpriseClient::listProxies(const ListProxiesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProxiesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProxiesOutcome(ListProxiesResult(outcome.result())); + else + return ListProxiesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listProxiesAsync(const ListProxiesRequest& request, const ListProxiesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProxies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListProxiesOutcomeCallable Dms_enterpriseClient::listProxiesCallable(const ListProxiesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProxies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListProxyAccessesOutcome Dms_enterpriseClient::listProxyAccesses(const ListProxyAccessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProxyAccessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProxyAccessesOutcome(ListProxyAccessesResult(outcome.result())); + else + return ListProxyAccessesOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listProxyAccessesAsync(const ListProxyAccessesRequest& request, const ListProxyAccessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProxyAccesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListProxyAccessesOutcomeCallable Dms_enterpriseClient::listProxyAccessesCallable(const ListProxyAccessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProxyAccesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListProxySQLExecAuditLogOutcome Dms_enterpriseClient::listProxySQLExecAuditLog(const ListProxySQLExecAuditLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProxySQLExecAuditLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProxySQLExecAuditLogOutcome(ListProxySQLExecAuditLogResult(outcome.result())); + else + return ListProxySQLExecAuditLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listProxySQLExecAuditLogAsync(const ListProxySQLExecAuditLogRequest& request, const ListProxySQLExecAuditLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProxySQLExecAuditLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListProxySQLExecAuditLogOutcomeCallable Dms_enterpriseClient::listProxySQLExecAuditLogCallable(const ListProxySQLExecAuditLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProxySQLExecAuditLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::ListSQLExecAuditLogOutcome Dms_enterpriseClient::listSQLExecAuditLog(const ListSQLExecAuditLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSQLExecAuditLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSQLExecAuditLogOutcome(ListSQLExecAuditLogResult(outcome.result())); + else + return ListSQLExecAuditLogOutcome(outcome.error()); +} + +void Dms_enterpriseClient::listSQLExecAuditLogAsync(const ListSQLExecAuditLogRequest& request, const ListSQLExecAuditLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSQLExecAuditLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ListSQLExecAuditLogOutcomeCallable Dms_enterpriseClient::listSQLExecAuditLogCallable(const ListSQLExecAuditLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSQLExecAuditLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::ListSQLReviewOriginSQLOutcome Dms_enterpriseClient::listSQLReviewOriginSQL(const ListSQLReviewOriginSQLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +3579,78 @@ Dms_enterpriseClient::ListWorkFlowTemplatesOutcomeCallable Dms_enterpriseClient: return task->get_future(); } +Dms_enterpriseClient::ModifyDataCorrectExecSQLOutcome Dms_enterpriseClient::modifyDataCorrectExecSQL(const ModifyDataCorrectExecSQLRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDataCorrectExecSQLOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDataCorrectExecSQLOutcome(ModifyDataCorrectExecSQLResult(outcome.result())); + else + return ModifyDataCorrectExecSQLOutcome(outcome.error()); +} + +void Dms_enterpriseClient::modifyDataCorrectExecSQLAsync(const ModifyDataCorrectExecSQLRequest& request, const ModifyDataCorrectExecSQLAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDataCorrectExecSQL(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::ModifyDataCorrectExecSQLOutcomeCallable Dms_enterpriseClient::modifyDataCorrectExecSQLCallable(const ModifyDataCorrectExecSQLRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDataCorrectExecSQL(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::PauseDataCorrectSQLJobOutcome Dms_enterpriseClient::pauseDataCorrectSQLJob(const PauseDataCorrectSQLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PauseDataCorrectSQLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PauseDataCorrectSQLJobOutcome(PauseDataCorrectSQLJobResult(outcome.result())); + else + return PauseDataCorrectSQLJobOutcome(outcome.error()); +} + +void Dms_enterpriseClient::pauseDataCorrectSQLJobAsync(const PauseDataCorrectSQLJobRequest& request, const PauseDataCorrectSQLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pauseDataCorrectSQLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::PauseDataCorrectSQLJobOutcomeCallable Dms_enterpriseClient::pauseDataCorrectSQLJobCallable(const PauseDataCorrectSQLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pauseDataCorrectSQLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::RegisterInstanceOutcome Dms_enterpriseClient::registerInstance(const RegisterInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +3723,78 @@ Dms_enterpriseClient::RegisterUserOutcomeCallable Dms_enterpriseClient::register return task->get_future(); } +Dms_enterpriseClient::RestartDataCorrectSQLJobOutcome Dms_enterpriseClient::restartDataCorrectSQLJob(const RestartDataCorrectSQLJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDataCorrectSQLJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDataCorrectSQLJobOutcome(RestartDataCorrectSQLJobResult(outcome.result())); + else + return RestartDataCorrectSQLJobOutcome(outcome.error()); +} + +void Dms_enterpriseClient::restartDataCorrectSQLJobAsync(const RestartDataCorrectSQLJobRequest& request, const RestartDataCorrectSQLJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDataCorrectSQLJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::RestartDataCorrectSQLJobOutcomeCallable Dms_enterpriseClient::restartDataCorrectSQLJobCallable(const RestartDataCorrectSQLJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDataCorrectSQLJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Dms_enterpriseClient::RetryDataCorrectPreCheckOutcome Dms_enterpriseClient::retryDataCorrectPreCheck(const RetryDataCorrectPreCheckRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RetryDataCorrectPreCheckOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RetryDataCorrectPreCheckOutcome(RetryDataCorrectPreCheckResult(outcome.result())); + else + return RetryDataCorrectPreCheckOutcome(outcome.error()); +} + +void Dms_enterpriseClient::retryDataCorrectPreCheckAsync(const RetryDataCorrectPreCheckRequest& request, const RetryDataCorrectPreCheckAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, retryDataCorrectPreCheck(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::RetryDataCorrectPreCheckOutcomeCallable Dms_enterpriseClient::retryDataCorrectPreCheckCallable(const RetryDataCorrectPreCheckRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->retryDataCorrectPreCheck(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::RevokeUserPermissionOutcome Dms_enterpriseClient::revokeUserPermission(const RevokeUserPermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +3975,42 @@ Dms_enterpriseClient::SubmitOrderApprovalOutcomeCallable Dms_enterpriseClient::s return task->get_future(); } +Dms_enterpriseClient::SubmitSparkJobOutcome Dms_enterpriseClient::submitSparkJob(const SubmitSparkJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitSparkJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitSparkJobOutcome(SubmitSparkJobResult(outcome.result())); + else + return SubmitSparkJobOutcome(outcome.error()); +} + +void Dms_enterpriseClient::submitSparkJobAsync(const SubmitSparkJobRequest& request, const SubmitSparkJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitSparkJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Dms_enterpriseClient::SubmitSparkJobOutcomeCallable Dms_enterpriseClient::submitSparkJobCallable(const SubmitSparkJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitSparkJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + Dms_enterpriseClient::SubmitStructSyncOrderApprovalOutcome Dms_enterpriseClient::submitStructSyncOrderApproval(const SubmitStructSyncOrderApprovalRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/dms-enterprise/src/model/AddLogicTableRouteConfigRequest.cc b/dms-enterprise/src/model/AddLogicTableRouteConfigRequest.cc new file mode 100644 index 000000000..719c3d0b8 --- /dev/null +++ b/dms-enterprise/src/model/AddLogicTableRouteConfigRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::AddLogicTableRouteConfigRequest; + +AddLogicTableRouteConfigRequest::AddLogicTableRouteConfigRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "AddLogicTableRouteConfig") { + setMethod(HttpRequest::Method::Post); +} + +AddLogicTableRouteConfigRequest::~AddLogicTableRouteConfigRequest() {} + +std::string AddLogicTableRouteConfigRequest::getRouteKey() const { + return routeKey_; +} + +void AddLogicTableRouteConfigRequest::setRouteKey(const std::string &routeKey) { + routeKey_ = routeKey; + setParameter(std::string("RouteKey"), routeKey); +} + +long AddLogicTableRouteConfigRequest::getTid() const { + return tid_; +} + +void AddLogicTableRouteConfigRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string AddLogicTableRouteConfigRequest::getRouteExpr() const { + return routeExpr_; +} + +void AddLogicTableRouteConfigRequest::setRouteExpr(const std::string &routeExpr) { + routeExpr_ = routeExpr; + setParameter(std::string("RouteExpr"), routeExpr); +} + +long AddLogicTableRouteConfigRequest::getTableId() const { + return tableId_; +} + +void AddLogicTableRouteConfigRequest::setTableId(long tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), std::to_string(tableId)); +} + diff --git a/dms-enterprise/src/model/AddLogicTableRouteConfigResult.cc b/dms-enterprise/src/model/AddLogicTableRouteConfigResult.cc new file mode 100644 index 000000000..ccbcf5e49 --- /dev/null +++ b/dms-enterprise/src/model/AddLogicTableRouteConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +AddLogicTableRouteConfigResult::AddLogicTableRouteConfigResult() : + ServiceResult() +{} + +AddLogicTableRouteConfigResult::AddLogicTableRouteConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddLogicTableRouteConfigResult::~AddLogicTableRouteConfigResult() +{} + +void AddLogicTableRouteConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddLogicTableRouteConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string AddLogicTableRouteConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool AddLogicTableRouteConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ChangeColumnSecLevelRequest.cc b/dms-enterprise/src/model/ChangeColumnSecLevelRequest.cc new file mode 100644 index 000000000..cff19f641 --- /dev/null +++ b/dms-enterprise/src/model/ChangeColumnSecLevelRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ChangeColumnSecLevelRequest; + +ChangeColumnSecLevelRequest::ChangeColumnSecLevelRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ChangeColumnSecLevel") { + setMethod(HttpRequest::Method::Post); +} + +ChangeColumnSecLevelRequest::~ChangeColumnSecLevelRequest() {} + +std::string ChangeColumnSecLevelRequest::getSchemaName() const { + return schemaName_; +} + +void ChangeColumnSecLevelRequest::setSchemaName(const std::string &schemaName) { + schemaName_ = schemaName; + setParameter(std::string("SchemaName"), schemaName); +} + +bool ChangeColumnSecLevelRequest::getIsLogic() const { + return isLogic_; +} + +void ChangeColumnSecLevelRequest::setIsLogic(bool isLogic) { + isLogic_ = isLogic; + setParameter(std::string("IsLogic"), isLogic ? "true" : "false"); +} + +std::string ChangeColumnSecLevelRequest::getNewLevel() const { + return newLevel_; +} + +void ChangeColumnSecLevelRequest::setNewLevel(const std::string &newLevel) { + newLevel_ = newLevel; + setParameter(std::string("NewLevel"), newLevel); +} + +std::string ChangeColumnSecLevelRequest::getColumnName() const { + return columnName_; +} + +void ChangeColumnSecLevelRequest::setColumnName(const std::string &columnName) { + columnName_ = columnName; + setParameter(std::string("ColumnName"), columnName); +} + +long ChangeColumnSecLevelRequest::getTid() const { + return tid_; +} + +void ChangeColumnSecLevelRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long ChangeColumnSecLevelRequest::getDbId() const { + return dbId_; +} + +void ChangeColumnSecLevelRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); +} + +std::string ChangeColumnSecLevelRequest::getTableName() const { + return tableName_; +} + +void ChangeColumnSecLevelRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + diff --git a/dms-enterprise/src/model/ChangeColumnSecLevelResult.cc b/dms-enterprise/src/model/ChangeColumnSecLevelResult.cc new file mode 100644 index 000000000..ca347da9d --- /dev/null +++ b/dms-enterprise/src/model/ChangeColumnSecLevelResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ChangeColumnSecLevelResult::ChangeColumnSecLevelResult() : + ServiceResult() +{} + +ChangeColumnSecLevelResult::ChangeColumnSecLevelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeColumnSecLevelResult::~ChangeColumnSecLevelResult() +{} + +void ChangeColumnSecLevelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ChangeColumnSecLevelResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ChangeColumnSecLevelResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ChangeColumnSecLevelResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreateLogicDatabaseRequest.cc b/dms-enterprise/src/model/CreateLogicDatabaseRequest.cc new file mode 100644 index 000000000..c9f7f7d70 --- /dev/null +++ b/dms-enterprise/src/model/CreateLogicDatabaseRequest.cc @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateLogicDatabaseRequest; + +CreateLogicDatabaseRequest::CreateLogicDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateLogicDatabase") { + setMethod(HttpRequest::Method::Post); +} + +CreateLogicDatabaseRequest::~CreateLogicDatabaseRequest() {} + +long CreateLogicDatabaseRequest::getTid() const { + return tid_; +} + +void CreateLogicDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::vector CreateLogicDatabaseRequest::getDatabaseIds() const { + return databaseIds_; +} + +void CreateLogicDatabaseRequest::setDatabaseIds(const std::vector &databaseIds) { + databaseIds_ = databaseIds; + for(int dep1 = 0; dep1 != databaseIds.size(); dep1++) { + setParameter(std::string("DatabaseIds") + "." + std::to_string(dep1 + 1), std::to_string(databaseIds[dep1])); + } +} + +std::string CreateLogicDatabaseRequest::getAlias() const { + return alias_; +} + +void CreateLogicDatabaseRequest::setAlias(const std::string &alias) { + alias_ = alias; + setParameter(std::string("Alias"), alias); +} + diff --git a/dms-enterprise/src/model/CreateLogicDatabaseResult.cc b/dms-enterprise/src/model/CreateLogicDatabaseResult.cc new file mode 100644 index 000000000..1dd416b7e --- /dev/null +++ b/dms-enterprise/src/model/CreateLogicDatabaseResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CreateLogicDatabaseResult::CreateLogicDatabaseResult() : + ServiceResult() +{} + +CreateLogicDatabaseResult::CreateLogicDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLogicDatabaseResult::~CreateLogicDatabaseResult() +{} + +void CreateLogicDatabaseResult::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["LogicDbId"].isNull()) + logicDbId_ = std::stol(value["LogicDbId"].asString()); + +} + +long CreateLogicDatabaseResult::getLogicDbId()const +{ + return logicDbId_; +} + +std::string CreateLogicDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateLogicDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateLogicDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreateProxyAccessRequest.cc b/dms-enterprise/src/model/CreateProxyAccessRequest.cc new file mode 100644 index 000000000..34bee3026 --- /dev/null +++ b/dms-enterprise/src/model/CreateProxyAccessRequest.cc @@ -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 + +using AlibabaCloud::Dms_enterprise::Model::CreateProxyAccessRequest; + +CreateProxyAccessRequest::CreateProxyAccessRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateProxyAccess") { + setMethod(HttpRequest::Method::Post); +} + +CreateProxyAccessRequest::~CreateProxyAccessRequest() {} + +std::string CreateProxyAccessRequest::getIndepAccount() const { + return indepAccount_; +} + +void CreateProxyAccessRequest::setIndepAccount(const std::string &indepAccount) { + indepAccount_ = indepAccount; + setParameter(std::string("IndepAccount"), indepAccount); +} + +long CreateProxyAccessRequest::getUserId() const { + return userId_; +} + +void CreateProxyAccessRequest::setUserId(long userId) { + userId_ = userId; + setParameter(std::string("UserId"), std::to_string(userId)); +} + +long CreateProxyAccessRequest::getTid() const { + return tid_; +} + +void CreateProxyAccessRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string CreateProxyAccessRequest::getIndepPassword() const { + return indepPassword_; +} + +void CreateProxyAccessRequest::setIndepPassword(const std::string &indepPassword) { + indepPassword_ = indepPassword; + setParameter(std::string("IndepPassword"), indepPassword); +} + +long CreateProxyAccessRequest::getProxyId() const { + return proxyId_; +} + +void CreateProxyAccessRequest::setProxyId(long proxyId) { + proxyId_ = proxyId; + setParameter(std::string("ProxyId"), std::to_string(proxyId)); +} + diff --git a/dms-enterprise/src/model/CreateProxyAccessResult.cc b/dms-enterprise/src/model/CreateProxyAccessResult.cc new file mode 100644 index 000000000..14742da59 --- /dev/null +++ b/dms-enterprise/src/model/CreateProxyAccessResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CreateProxyAccessResult::CreateProxyAccessResult() : + ServiceResult() +{} + +CreateProxyAccessResult::CreateProxyAccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProxyAccessResult::~CreateProxyAccessResult() +{} + +void CreateProxyAccessResult::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["ProxyAccessId"].isNull()) + proxyAccessId_ = std::stol(value["ProxyAccessId"].asString()); + +} + +long CreateProxyAccessResult::getProxyAccessId()const +{ + return proxyAccessId_; +} + +std::string CreateProxyAccessResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateProxyAccessResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateProxyAccessResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/CreateProxyRequest.cc b/dms-enterprise/src/model/CreateProxyRequest.cc new file mode 100644 index 000000000..4dbecd9ac --- /dev/null +++ b/dms-enterprise/src/model/CreateProxyRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::CreateProxyRequest; + +CreateProxyRequest::CreateProxyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateProxy") { + setMethod(HttpRequest::Method::Post); +} + +CreateProxyRequest::~CreateProxyRequest() {} + +long CreateProxyRequest::getTid() const { + return tid_; +} + +void CreateProxyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string CreateProxyRequest::getPassword() const { + return password_; +} + +void CreateProxyRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +long CreateProxyRequest::getInstanceId() const { + return instanceId_; +} + +void CreateProxyRequest::setInstanceId(long instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +std::string CreateProxyRequest::getUsername() const { + return username_; +} + +void CreateProxyRequest::setUsername(const std::string &username) { + username_ = username; + setParameter(std::string("Username"), username); +} + diff --git a/dms-enterprise/src/model/CreateProxyResult.cc b/dms-enterprise/src/model/CreateProxyResult.cc new file mode 100644 index 000000000..e893ad019 --- /dev/null +++ b/dms-enterprise/src/model/CreateProxyResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +CreateProxyResult::CreateProxyResult() : + ServiceResult() +{} + +CreateProxyResult::CreateProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateProxyResult::~CreateProxyResult() +{} + +void CreateProxyResult::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["ProxyId"].isNull()) + proxyId_ = std::stol(value["ProxyId"].asString()); + +} + +long CreateProxyResult::getProxyId()const +{ + return proxyId_; +} + +std::string CreateProxyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string CreateProxyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool CreateProxyResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteLogicDatabaseRequest.cc b/dms-enterprise/src/model/DeleteLogicDatabaseRequest.cc new file mode 100644 index 000000000..67f6e2a10 --- /dev/null +++ b/dms-enterprise/src/model/DeleteLogicDatabaseRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteLogicDatabaseRequest; + +DeleteLogicDatabaseRequest::DeleteLogicDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteLogicDatabase") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLogicDatabaseRequest::~DeleteLogicDatabaseRequest() {} + +long DeleteLogicDatabaseRequest::getLogicDbId() const { + return logicDbId_; +} + +void DeleteLogicDatabaseRequest::setLogicDbId(long logicDbId) { + logicDbId_ = logicDbId; + setParameter(std::string("LogicDbId"), std::to_string(logicDbId)); +} + +long DeleteLogicDatabaseRequest::getTid() const { + return tid_; +} + +void DeleteLogicDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/DeleteLogicDatabaseResult.cc b/dms-enterprise/src/model/DeleteLogicDatabaseResult.cc new file mode 100644 index 000000000..e60bb796a --- /dev/null +++ b/dms-enterprise/src/model/DeleteLogicDatabaseResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteLogicDatabaseResult::DeleteLogicDatabaseResult() : + ServiceResult() +{} + +DeleteLogicDatabaseResult::DeleteLogicDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLogicDatabaseResult::~DeleteLogicDatabaseResult() +{} + +void DeleteLogicDatabaseResult::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(); + +} + +std::string DeleteLogicDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteLogicDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteLogicDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteLogicTableRouteConfigRequest.cc b/dms-enterprise/src/model/DeleteLogicTableRouteConfigRequest.cc new file mode 100644 index 000000000..304e71e17 --- /dev/null +++ b/dms-enterprise/src/model/DeleteLogicTableRouteConfigRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteLogicTableRouteConfigRequest; + +DeleteLogicTableRouteConfigRequest::DeleteLogicTableRouteConfigRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteLogicTableRouteConfig") { + setMethod(HttpRequest::Method::Post); +} + +DeleteLogicTableRouteConfigRequest::~DeleteLogicTableRouteConfigRequest() {} + +std::string DeleteLogicTableRouteConfigRequest::getRouteKey() const { + return routeKey_; +} + +void DeleteLogicTableRouteConfigRequest::setRouteKey(const std::string &routeKey) { + routeKey_ = routeKey; + setParameter(std::string("RouteKey"), routeKey); +} + +long DeleteLogicTableRouteConfigRequest::getTid() const { + return tid_; +} + +void DeleteLogicTableRouteConfigRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long DeleteLogicTableRouteConfigRequest::getTableId() const { + return tableId_; +} + +void DeleteLogicTableRouteConfigRequest::setTableId(long tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), std::to_string(tableId)); +} + diff --git a/dms-enterprise/src/model/DeleteLogicTableRouteConfigResult.cc b/dms-enterprise/src/model/DeleteLogicTableRouteConfigResult.cc new file mode 100644 index 000000000..3390a7e6c --- /dev/null +++ b/dms-enterprise/src/model/DeleteLogicTableRouteConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteLogicTableRouteConfigResult::DeleteLogicTableRouteConfigResult() : + ServiceResult() +{} + +DeleteLogicTableRouteConfigResult::DeleteLogicTableRouteConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLogicTableRouteConfigResult::~DeleteLogicTableRouteConfigResult() +{} + +void DeleteLogicTableRouteConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteLogicTableRouteConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteLogicTableRouteConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteLogicTableRouteConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteProxyAccessRequest.cc b/dms-enterprise/src/model/DeleteProxyAccessRequest.cc new file mode 100644 index 000000000..724b036f3 --- /dev/null +++ b/dms-enterprise/src/model/DeleteProxyAccessRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteProxyAccessRequest; + +DeleteProxyAccessRequest::DeleteProxyAccessRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteProxyAccess") { + setMethod(HttpRequest::Method::Post); +} + +DeleteProxyAccessRequest::~DeleteProxyAccessRequest() {} + +long DeleteProxyAccessRequest::getProxyAccessId() const { + return proxyAccessId_; +} + +void DeleteProxyAccessRequest::setProxyAccessId(long proxyAccessId) { + proxyAccessId_ = proxyAccessId; + setParameter(std::string("ProxyAccessId"), std::to_string(proxyAccessId)); +} + +long DeleteProxyAccessRequest::getTid() const { + return tid_; +} + +void DeleteProxyAccessRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/DeleteProxyAccessResult.cc b/dms-enterprise/src/model/DeleteProxyAccessResult.cc new file mode 100644 index 000000000..44e2d38b4 --- /dev/null +++ b/dms-enterprise/src/model/DeleteProxyAccessResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteProxyAccessResult::DeleteProxyAccessResult() : + ServiceResult() +{} + +DeleteProxyAccessResult::DeleteProxyAccessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProxyAccessResult::~DeleteProxyAccessResult() +{} + +void DeleteProxyAccessResult::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(); + +} + +std::string DeleteProxyAccessResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteProxyAccessResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteProxyAccessResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/DeleteProxyRequest.cc b/dms-enterprise/src/model/DeleteProxyRequest.cc new file mode 100644 index 000000000..ad752b0a7 --- /dev/null +++ b/dms-enterprise/src/model/DeleteProxyRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::DeleteProxyRequest; + +DeleteProxyRequest::DeleteProxyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteProxy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteProxyRequest::~DeleteProxyRequest() {} + +long DeleteProxyRequest::getTid() const { + return tid_; +} + +void DeleteProxyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long DeleteProxyRequest::getProxyId() const { + return proxyId_; +} + +void DeleteProxyRequest::setProxyId(long proxyId) { + proxyId_ = proxyId; + setParameter(std::string("ProxyId"), std::to_string(proxyId)); +} + diff --git a/dms-enterprise/src/model/DeleteProxyResult.cc b/dms-enterprise/src/model/DeleteProxyResult.cc new file mode 100644 index 000000000..4c7d4cc84 --- /dev/null +++ b/dms-enterprise/src/model/DeleteProxyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +DeleteProxyResult::DeleteProxyResult() : + ServiceResult() +{} + +DeleteProxyResult::DeleteProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteProxyResult::~DeleteProxyResult() +{} + +void DeleteProxyResult::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(); + +} + +std::string DeleteProxyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string DeleteProxyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool DeleteProxyResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/EditLogicDatabaseRequest.cc b/dms-enterprise/src/model/EditLogicDatabaseRequest.cc new file mode 100644 index 000000000..5be3c3540 --- /dev/null +++ b/dms-enterprise/src/model/EditLogicDatabaseRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::EditLogicDatabaseRequest; + +EditLogicDatabaseRequest::EditLogicDatabaseRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "EditLogicDatabase") { + setMethod(HttpRequest::Method::Post); +} + +EditLogicDatabaseRequest::~EditLogicDatabaseRequest() {} + +long EditLogicDatabaseRequest::getLogicDbId() const { + return logicDbId_; +} + +void EditLogicDatabaseRequest::setLogicDbId(long logicDbId) { + logicDbId_ = logicDbId; + setParameter(std::string("LogicDbId"), std::to_string(logicDbId)); +} + +long EditLogicDatabaseRequest::getTid() const { + return tid_; +} + +void EditLogicDatabaseRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::vector EditLogicDatabaseRequest::getDatabaseIds() const { + return databaseIds_; +} + +void EditLogicDatabaseRequest::setDatabaseIds(const std::vector &databaseIds) { + databaseIds_ = databaseIds; + for(int dep1 = 0; dep1 != databaseIds.size(); dep1++) { + setParameter(std::string("DatabaseIds") + "." + std::to_string(dep1 + 1), std::to_string(databaseIds[dep1])); + } +} + +std::string EditLogicDatabaseRequest::getAlias() const { + return alias_; +} + +void EditLogicDatabaseRequest::setAlias(const std::string &alias) { + alias_ = alias; + setParameter(std::string("Alias"), alias); +} + diff --git a/dms-enterprise/src/model/EditLogicDatabaseResult.cc b/dms-enterprise/src/model/EditLogicDatabaseResult.cc new file mode 100644 index 000000000..9b1b56c01 --- /dev/null +++ b/dms-enterprise/src/model/EditLogicDatabaseResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +EditLogicDatabaseResult::EditLogicDatabaseResult() : + ServiceResult() +{} + +EditLogicDatabaseResult::EditLogicDatabaseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EditLogicDatabaseResult::~EditLogicDatabaseResult() +{} + +void EditLogicDatabaseResult::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(); + +} + +std::string EditLogicDatabaseResult::getErrorCode()const +{ + return errorCode_; +} + +std::string EditLogicDatabaseResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool EditLogicDatabaseResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetApprovalDetailResult.cc b/dms-enterprise/src/model/GetApprovalDetailResult.cc index b66491cf0..44d4ce976 100644 --- a/dms-enterprise/src/model/GetApprovalDetailResult.cc +++ b/dms-enterprise/src/model/GetApprovalDetailResult.cc @@ -42,6 +42,8 @@ void GetApprovalDetailResult::parse(const std::string &payload) auto approvalDetailNode = value["ApprovalDetail"]; if(!approvalDetailNode["Description"].isNull()) approvalDetail_.description = approvalDetailNode["Description"].asString(); + if(!approvalDetailNode["CreateTime"].isNull()) + approvalDetail_.createTime = approvalDetailNode["CreateTime"].asString(); if(!approvalDetailNode["OrderType"].isNull()) approvalDetail_.orderType = approvalDetailNode["OrderType"].asString(); if(!approvalDetailNode["Title"].isNull()) diff --git a/dms-enterprise/src/model/GetDBTaskSQLJobLogRequest.cc b/dms-enterprise/src/model/GetDBTaskSQLJobLogRequest.cc new file mode 100644 index 000000000..9551aa0e4 --- /dev/null +++ b/dms-enterprise/src/model/GetDBTaskSQLJobLogRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetDBTaskSQLJobLogRequest; + +GetDBTaskSQLJobLogRequest::GetDBTaskSQLJobLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTaskSQLJobLog") { + setMethod(HttpRequest::Method::Post); +} + +GetDBTaskSQLJobLogRequest::~GetDBTaskSQLJobLogRequest() {} + +long GetDBTaskSQLJobLogRequest::getJobId() const { + return jobId_; +} + +void GetDBTaskSQLJobLogRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long GetDBTaskSQLJobLogRequest::getTid() const { + return tid_; +} + +void GetDBTaskSQLJobLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetDBTaskSQLJobLogResult.cc b/dms-enterprise/src/model/GetDBTaskSQLJobLogResult.cc new file mode 100644 index 000000000..23feed78c --- /dev/null +++ b/dms-enterprise/src/model/GetDBTaskSQLJobLogResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetDBTaskSQLJobLogResult::GetDBTaskSQLJobLogResult() : + ServiceResult() +{} + +GetDBTaskSQLJobLogResult::GetDBTaskSQLJobLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetDBTaskSQLJobLogResult::~GetDBTaskSQLJobLogResult() +{} + +void GetDBTaskSQLJobLogResult::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["Log"].isNull()) + log_ = value["Log"].asString(); + +} + +std::string GetDBTaskSQLJobLogResult::getLog()const +{ + return log_; +} + +std::string GetDBTaskSQLJobLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetDBTaskSQLJobLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetDBTaskSQLJobLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetInstanceResult.cc b/dms-enterprise/src/model/GetInstanceResult.cc index ce339b9ae..38bc913eb 100644 --- a/dms-enterprise/src/model/GetInstanceResult.cc +++ b/dms-enterprise/src/model/GetInstanceResult.cc @@ -84,6 +84,11 @@ void GetInstanceResult::parse(const std::string &payload) instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString()); if(!instanceNode["EcsRegion"].isNull()) instance_.ecsRegion = instanceNode["EcsRegion"].asString(); + auto standardGroupNode = instanceNode["StandardGroup"]; + if(!standardGroupNode["GroupName"].isNull()) + instance_.standardGroup.groupName = standardGroupNode["GroupName"].asString(); + if(!standardGroupNode["GroupMode"].isNull()) + instance_.standardGroup.groupMode = standardGroupNode["GroupMode"].asString(); auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) instance_.ownerIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/GetLogicDatabaseResult.cc b/dms-enterprise/src/model/GetLogicDatabaseResult.cc index 197991b00..1305c04c4 100644 --- a/dms-enterprise/src/model/GetLogicDatabaseResult.cc +++ b/dms-enterprise/src/model/GetLogicDatabaseResult.cc @@ -52,6 +52,8 @@ void GetLogicDatabaseResult::parse(const std::string &payload) logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString(); if(!logicDatabaseNode["EnvType"].isNull()) logicDatabase_.envType = logicDatabaseNode["EnvType"].asString(); + if(!logicDatabaseNode["Alias"].isNull()) + logicDatabase_.alias = logicDatabaseNode["Alias"].asString(); auto allOwnerIdList = logicDatabaseNode["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) logicDatabase_.ownerIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/GetOpLogResult.cc b/dms-enterprise/src/model/GetOpLogResult.cc index abb6a0441..41bee8437 100644 --- a/dms-enterprise/src/model/GetOpLogResult.cc +++ b/dms-enterprise/src/model/GetOpLogResult.cc @@ -48,7 +48,9 @@ void GetOpLogResult::parse(const std::string &payload) if(!valueOpLogDetailsOpLogDetail["Database"].isNull()) opLogDetailsObject.database = valueOpLogDetailsOpLogDetail["Database"].asString(); if(!valueOpLogDetailsOpLogDetail["UserId"].isNull()) - opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString()); + opLogDetailsObject.userId = valueOpLogDetailsOpLogDetail["UserId"].asString(); + if(!valueOpLogDetailsOpLogDetail["OpUserId"].isNull()) + opLogDetailsObject.opUserId = std::stol(valueOpLogDetailsOpLogDetail["OpUserId"].asString()); if(!valueOpLogDetailsOpLogDetail["OpContent"].isNull()) opLogDetailsObject.opContent = valueOpLogDetailsOpLogDetail["OpContent"].asString(); if(!valueOpLogDetailsOpLogDetail["UserNick"].isNull()) diff --git a/dms-enterprise/src/model/GetProxyRequest.cc b/dms-enterprise/src/model/GetProxyRequest.cc new file mode 100644 index 000000000..1121a7b19 --- /dev/null +++ b/dms-enterprise/src/model/GetProxyRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetProxyRequest; + +GetProxyRequest::GetProxyRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetProxy") { + setMethod(HttpRequest::Method::Post); +} + +GetProxyRequest::~GetProxyRequest() {} + +long GetProxyRequest::getTid() const { + return tid_; +} + +void GetProxyRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long GetProxyRequest::getInstanceId() const { + return instanceId_; +} + +void GetProxyRequest::setInstanceId(long instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +long GetProxyRequest::getProxyId() const { + return proxyId_; +} + +void GetProxyRequest::setProxyId(long proxyId) { + proxyId_ = proxyId; + setParameter(std::string("ProxyId"), std::to_string(proxyId)); +} + diff --git a/dms-enterprise/src/model/GetProxyResult.cc b/dms-enterprise/src/model/GetProxyResult.cc new file mode 100644 index 000000000..fb3e1a8f1 --- /dev/null +++ b/dms-enterprise/src/model/GetProxyResult.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetProxyResult::GetProxyResult() : + ServiceResult() +{} + +GetProxyResult::GetProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProxyResult::~GetProxyResult() +{} + +void GetProxyResult::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["ProxyId"].isNull()) + proxyId_ = std::stol(value["ProxyId"].asString()); + if(!value["CreatorId"].isNull()) + creatorId_ = std::stol(value["CreatorId"].asString()); + if(!value["CreatorName"].isNull()) + creatorName_ = value["CreatorName"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = std::stol(value["InstanceId"].asString()); + if(!value["PrivateEnable"].isNull()) + privateEnable_ = value["PrivateEnable"].asString() == "true"; + if(!value["PrivateHost"].isNull()) + privateHost_ = value["PrivateHost"].asString(); + if(!value["PublicEnable"].isNull()) + publicEnable_ = value["PublicEnable"].asString() == "true"; + if(!value["PublicHost"].isNull()) + publicHost_ = value["PublicHost"].asString(); + if(!value["MysqlPort"].isNull()) + mysqlPort_ = std::stoi(value["MysqlPort"].asString()); + if(!value["HttpsPort"].isNull()) + httpsPort_ = std::stoi(value["HttpsPort"].asString()); + +} + +std::string GetProxyResult::getPublicHost()const +{ + return publicHost_; +} + +std::string GetProxyResult::getPrivateHost()const +{ + return privateHost_; +} + +long GetProxyResult::getInstanceId()const +{ + return instanceId_; +} + +long GetProxyResult::getProxyId()const +{ + return proxyId_; +} + +long GetProxyResult::getCreatorId()const +{ + return creatorId_; +} + +bool GetProxyResult::getSuccess()const +{ + return success_; +} + +bool GetProxyResult::getPublicEnable()const +{ + return publicEnable_; +} + +int GetProxyResult::getMysqlPort()const +{ + return mysqlPort_; +} + +std::string GetProxyResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetProxyResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetProxyResult::getPrivateEnable()const +{ + return privateEnable_; +} + +std::string GetProxyResult::getCreatorName()const +{ + return creatorName_; +} + +int GetProxyResult::getHttpsPort()const +{ + return httpsPort_; +} + diff --git a/dms-enterprise/src/model/GetSparkJobDetailRequest.cc b/dms-enterprise/src/model/GetSparkJobDetailRequest.cc new file mode 100644 index 000000000..827f6dcd5 --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobDetailRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetSparkJobDetailRequest; + +GetSparkJobDetailRequest::GetSparkJobDetailRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobDetail") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkJobDetailRequest::~GetSparkJobDetailRequest() {} + +long GetSparkJobDetailRequest::getJobId() const { + return jobId_; +} + +void GetSparkJobDetailRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long GetSparkJobDetailRequest::getTid() const { + return tid_; +} + +void GetSparkJobDetailRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetSparkJobDetailResult.cc b/dms-enterprise/src/model/GetSparkJobDetailResult.cc new file mode 100644 index 000000000..2494cbf57 --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobDetailResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetSparkJobDetailResult::GetSparkJobDetailResult() : + ServiceResult() +{} + +GetSparkJobDetailResult::GetSparkJobDetailResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkJobDetailResult::~GetSparkJobDetailResult() +{} + +void GetSparkJobDetailResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobDetailNode = value["JobDetail"]; + if(!jobDetailNode["JobId"].isNull()) + jobDetail_.jobId = jobDetailNode["JobId"].asString(); + if(!jobDetailNode["Name"].isNull()) + jobDetail_.name = jobDetailNode["Name"].asString(); + if(!jobDetailNode["Status"].isNull()) + jobDetail_.status = jobDetailNode["Status"].asString(); + if(!jobDetailNode["MainClass"].isNull()) + jobDetail_.mainClass = jobDetailNode["MainClass"].asString(); + if(!jobDetailNode["MainFile"].isNull()) + jobDetail_.mainFile = jobDetailNode["MainFile"].asString(); + if(!jobDetailNode["Arguments"].isNull()) + jobDetail_.arguments = jobDetailNode["Arguments"].asString(); + if(!jobDetailNode["Configuration"].isNull()) + jobDetail_.configuration = jobDetailNode["Configuration"].asString(); + if(!jobDetailNode["SubmitTime"].isNull()) + jobDetail_.submitTime = jobDetailNode["SubmitTime"].asString(); + if(!jobDetailNode["BeginTime"].isNull()) + jobDetail_.beginTime = jobDetailNode["BeginTime"].asString(); + if(!jobDetailNode["EndTime"].isNull()) + jobDetail_.endTime = jobDetailNode["EndTime"].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(); + +} + +GetSparkJobDetailResult::JobDetail GetSparkJobDetailResult::getJobDetail()const +{ + return jobDetail_; +} + +std::string GetSparkJobDetailResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSparkJobDetailResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSparkJobDetailResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetSparkJobDriverLogRequest.cc b/dms-enterprise/src/model/GetSparkJobDriverLogRequest.cc new file mode 100644 index 000000000..892b61e68 --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobDriverLogRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetSparkJobDriverLogRequest; + +GetSparkJobDriverLogRequest::GetSparkJobDriverLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobDriverLog") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkJobDriverLogRequest::~GetSparkJobDriverLogRequest() {} + +long GetSparkJobDriverLogRequest::getJobId() const { + return jobId_; +} + +void GetSparkJobDriverLogRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long GetSparkJobDriverLogRequest::getTid() const { + return tid_; +} + +void GetSparkJobDriverLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetSparkJobDriverLogResult.cc b/dms-enterprise/src/model/GetSparkJobDriverLogResult.cc new file mode 100644 index 000000000..c8807ceef --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobDriverLogResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetSparkJobDriverLogResult::GetSparkJobDriverLogResult() : + ServiceResult() +{} + +GetSparkJobDriverLogResult::GetSparkJobDriverLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkJobDriverLogResult::~GetSparkJobDriverLogResult() +{} + +void GetSparkJobDriverLogResult::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["DriverLog"].isNull()) + driverLog_ = value["DriverLog"].asString(); + +} + +std::string GetSparkJobDriverLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSparkJobDriverLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetSparkJobDriverLogResult::getDriverLog()const +{ + return driverLog_; +} + +bool GetSparkJobDriverLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetSparkJobExecutorLogsRequest.cc b/dms-enterprise/src/model/GetSparkJobExecutorLogsRequest.cc new file mode 100644 index 000000000..8431f570a --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobExecutorLogsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetSparkJobExecutorLogsRequest; + +GetSparkJobExecutorLogsRequest::GetSparkJobExecutorLogsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobExecutorLogs") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkJobExecutorLogsRequest::~GetSparkJobExecutorLogsRequest() {} + +long GetSparkJobExecutorLogsRequest::getJobId() const { + return jobId_; +} + +void GetSparkJobExecutorLogsRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long GetSparkJobExecutorLogsRequest::getTid() const { + return tid_; +} + +void GetSparkJobExecutorLogsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetSparkJobExecutorLogsResult.cc b/dms-enterprise/src/model/GetSparkJobExecutorLogsResult.cc new file mode 100644 index 000000000..2bb66d61d --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobExecutorLogsResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetSparkJobExecutorLogsResult::GetSparkJobExecutorLogsResult() : + ServiceResult() +{} + +GetSparkJobExecutorLogsResult::GetSparkJobExecutorLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkJobExecutorLogsResult::~GetSparkJobExecutorLogsResult() +{} + +void GetSparkJobExecutorLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allExecutorLogs = value["ExecutorLogs"]["executorLogs"]; + for (const auto &item : allExecutorLogs) + executorLogs_.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 GetSparkJobExecutorLogsResult::getExecutorLogs()const +{ + return executorLogs_; +} + +std::string GetSparkJobExecutorLogsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSparkJobExecutorLogsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSparkJobExecutorLogsResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetSparkJobLogRequest.cc b/dms-enterprise/src/model/GetSparkJobLogRequest.cc new file mode 100644 index 000000000..1f3ed9509 --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobLogRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::GetSparkJobLogRequest; + +GetSparkJobLogRequest::GetSparkJobLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobLog") { + setMethod(HttpRequest::Method::Post); +} + +GetSparkJobLogRequest::~GetSparkJobLogRequest() {} + +long GetSparkJobLogRequest::getJobId() const { + return jobId_; +} + +void GetSparkJobLogRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long GetSparkJobLogRequest::getTid() const { + return tid_; +} + +void GetSparkJobLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/GetSparkJobLogResult.cc b/dms-enterprise/src/model/GetSparkJobLogResult.cc new file mode 100644 index 000000000..469693960 --- /dev/null +++ b/dms-enterprise/src/model/GetSparkJobLogResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +GetSparkJobLogResult::GetSparkJobLogResult() : + ServiceResult() +{} + +GetSparkJobLogResult::GetSparkJobLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSparkJobLogResult::~GetSparkJobLogResult() +{} + +void GetSparkJobLogResult::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["Log"].isNull()) + log_ = value["Log"].asString(); + +} + +std::string GetSparkJobLogResult::getLog()const +{ + return log_; +} + +std::string GetSparkJobLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string GetSparkJobLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool GetSparkJobLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/GetUserResult.cc b/dms-enterprise/src/model/GetUserResult.cc index c6d9fd9af..511046268 100644 --- a/dms-enterprise/src/model/GetUserResult.cc +++ b/dms-enterprise/src/model/GetUserResult.cc @@ -62,6 +62,16 @@ void GetUserResult::parse(const std::string &payload) user_.mobile = userNode["Mobile"].asString(); if(!userNode["Uid"].isNull()) user_.uid = userNode["Uid"].asString(); + if(!userNode["Email"].isNull()) + user_.email = userNode["Email"].asString(); + if(!userNode["DingRobot"].isNull()) + user_.dingRobot = userNode["DingRobot"].asString(); + if(!userNode["Webhook"].isNull()) + user_.webhook = userNode["Webhook"].asString(); + if(!userNode["SignatureMethod"].isNull()) + user_.signatureMethod = userNode["SignatureMethod"].asString(); + if(!userNode["NotificationMode"].isNull()) + user_.notificationMode = userNode["NotificationMode"].asString(); auto allRoleIdList = userNode["RoleIdList"]["RoleIds"]; for (auto value : allRoleIdList) user_.roleIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/GrantUserPermissionRequest.cc b/dms-enterprise/src/model/GrantUserPermissionRequest.cc index d62b7f298..340c51ccc 100644 --- a/dms-enterprise/src/model/GrantUserPermissionRequest.cc +++ b/dms-enterprise/src/model/GrantUserPermissionRequest.cc @@ -70,6 +70,15 @@ void GrantUserPermissionRequest::setTid(long tid) { setParameter(std::string("Tid"), std::to_string(tid)); } +long GrantUserPermissionRequest::getInstanceId() const { + return instanceId_; +} + +void GrantUserPermissionRequest::setInstanceId(long instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + std::string GrantUserPermissionRequest::getDbId() const { return dbId_; } diff --git a/dms-enterprise/src/model/InspectProxyAccessSecretRequest.cc b/dms-enterprise/src/model/InspectProxyAccessSecretRequest.cc new file mode 100644 index 000000000..c5db374a9 --- /dev/null +++ b/dms-enterprise/src/model/InspectProxyAccessSecretRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::InspectProxyAccessSecretRequest; + +InspectProxyAccessSecretRequest::InspectProxyAccessSecretRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "InspectProxyAccessSecret") { + setMethod(HttpRequest::Method::Post); +} + +InspectProxyAccessSecretRequest::~InspectProxyAccessSecretRequest() {} + +long InspectProxyAccessSecretRequest::getProxyAccessId() const { + return proxyAccessId_; +} + +void InspectProxyAccessSecretRequest::setProxyAccessId(long proxyAccessId) { + proxyAccessId_ = proxyAccessId; + setParameter(std::string("ProxyAccessId"), std::to_string(proxyAccessId)); +} + +long InspectProxyAccessSecretRequest::getTid() const { + return tid_; +} + +void InspectProxyAccessSecretRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/InspectProxyAccessSecretResult.cc b/dms-enterprise/src/model/InspectProxyAccessSecretResult.cc new file mode 100644 index 000000000..bf736c28d --- /dev/null +++ b/dms-enterprise/src/model/InspectProxyAccessSecretResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +InspectProxyAccessSecretResult::InspectProxyAccessSecretResult() : + ServiceResult() +{} + +InspectProxyAccessSecretResult::InspectProxyAccessSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InspectProxyAccessSecretResult::~InspectProxyAccessSecretResult() +{} + +void InspectProxyAccessSecretResult::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["AccessSecret"].isNull()) + accessSecret_ = value["AccessSecret"].asString(); + +} + +std::string InspectProxyAccessSecretResult::getAccessSecret()const +{ + return accessSecret_; +} + +std::string InspectProxyAccessSecretResult::getErrorCode()const +{ + return errorCode_; +} + +std::string InspectProxyAccessSecretResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool InspectProxyAccessSecretResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/KillSparkJobRequest.cc b/dms-enterprise/src/model/KillSparkJobRequest.cc new file mode 100644 index 000000000..7eecabef5 --- /dev/null +++ b/dms-enterprise/src/model/KillSparkJobRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::KillSparkJobRequest; + +KillSparkJobRequest::KillSparkJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "KillSparkJob") { + setMethod(HttpRequest::Method::Post); +} + +KillSparkJobRequest::~KillSparkJobRequest() {} + +long KillSparkJobRequest::getJobId() const { + return jobId_; +} + +void KillSparkJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + +long KillSparkJobRequest::getTid() const { + return tid_; +} + +void KillSparkJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/KillSparkJobResult.cc b/dms-enterprise/src/model/KillSparkJobResult.cc new file mode 100644 index 000000000..aca2fe9da --- /dev/null +++ b/dms-enterprise/src/model/KillSparkJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +KillSparkJobResult::KillSparkJobResult() : + ServiceResult() +{} + +KillSparkJobResult::KillSparkJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +KillSparkJobResult::~KillSparkJobResult() +{} + +void KillSparkJobResult::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(); + +} + +std::string KillSparkJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string KillSparkJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool KillSparkJobResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc b/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc index 0785dfdb0..83a3c3019 100644 --- a/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc +++ b/dms-enterprise/src/model/ListDBTaskSQLJobDetailResult.cc @@ -61,6 +61,16 @@ void ListDBTaskSQLJobDetailResult::parse(const std::string &payload) dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString(); if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull()) dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Log"].isNull()) + dBTaskSQLJobDetailListObject.log = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Log"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["StartTime"].isNull()) + dBTaskSQLJobDetailListObject.startTime = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["StartTime"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["EndTime"].isNull()) + dBTaskSQLJobDetailListObject.endTime = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["EndTime"].asString(); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["TimeDelay"].isNull()) + dBTaskSQLJobDetailListObject.timeDelay = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["TimeDelay"].asString()); + if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["AffectRows"].isNull()) + dBTaskSQLJobDetailListObject.affectRows = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["AffectRows"].asString()); dBTaskSQLJobDetailList_.push_back(dBTaskSQLJobDetailListObject); } if(!value["Success"].isNull()) diff --git a/dms-enterprise/src/model/ListDataCorrectPreCheckDBRequest.cc b/dms-enterprise/src/model/ListDataCorrectPreCheckDBRequest.cc new file mode 100644 index 000000000..42d803238 --- /dev/null +++ b/dms-enterprise/src/model/ListDataCorrectPreCheckDBRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListDataCorrectPreCheckDBRequest; + +ListDataCorrectPreCheckDBRequest::ListDataCorrectPreCheckDBRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDataCorrectPreCheckDB") { + setMethod(HttpRequest::Method::Post); +} + +ListDataCorrectPreCheckDBRequest::~ListDataCorrectPreCheckDBRequest() {} + +long ListDataCorrectPreCheckDBRequest::getOrderId() const { + return orderId_; +} + +void ListDataCorrectPreCheckDBRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +long ListDataCorrectPreCheckDBRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDataCorrectPreCheckDBRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListDataCorrectPreCheckDBRequest::getTid() const { + return tid_; +} + +void ListDataCorrectPreCheckDBRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long ListDataCorrectPreCheckDBRequest::getPageSize() const { + return pageSize_; +} + +void ListDataCorrectPreCheckDBRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/dms-enterprise/src/model/ListDataCorrectPreCheckDBResult.cc b/dms-enterprise/src/model/ListDataCorrectPreCheckDBResult.cc new file mode 100644 index 000000000..6b5f3b9ff --- /dev/null +++ b/dms-enterprise/src/model/ListDataCorrectPreCheckDBResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListDataCorrectPreCheckDBResult::ListDataCorrectPreCheckDBResult() : + ServiceResult() +{} + +ListDataCorrectPreCheckDBResult::ListDataCorrectPreCheckDBResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataCorrectPreCheckDBResult::~ListDataCorrectPreCheckDBResult() +{} + +void ListDataCorrectPreCheckDBResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPreCheckDBListNode = value["PreCheckDBList"]["PreCheckDB"]; + for (auto valuePreCheckDBListPreCheckDB : allPreCheckDBListNode) + { + PreCheckDB preCheckDBListObject; + if(!valuePreCheckDBListPreCheckDB["DbId"].isNull()) + preCheckDBListObject.dbId = std::stol(valuePreCheckDBListPreCheckDB["DbId"].asString()); + if(!valuePreCheckDBListPreCheckDB["SearchName"].isNull()) + preCheckDBListObject.searchName = valuePreCheckDBListPreCheckDB["SearchName"].asString(); + if(!valuePreCheckDBListPreCheckDB["SqlNum"].isNull()) + preCheckDBListObject.sqlNum = std::stol(valuePreCheckDBListPreCheckDB["SqlNum"].asString()); + preCheckDBList_.push_back(preCheckDBListObject); + } + 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 ListDataCorrectPreCheckDBResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListDataCorrectPreCheckDBResult::getPreCheckDBList()const +{ + return preCheckDBList_; +} + +std::string ListDataCorrectPreCheckDBResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListDataCorrectPreCheckDBResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListDataCorrectPreCheckSQLRequest.cc b/dms-enterprise/src/model/ListDataCorrectPreCheckSQLRequest.cc new file mode 100644 index 000000000..fbb5415a4 --- /dev/null +++ b/dms-enterprise/src/model/ListDataCorrectPreCheckSQLRequest.cc @@ -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 + +using AlibabaCloud::Dms_enterprise::Model::ListDataCorrectPreCheckSQLRequest; + +ListDataCorrectPreCheckSQLRequest::ListDataCorrectPreCheckSQLRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDataCorrectPreCheckSQL") { + setMethod(HttpRequest::Method::Post); +} + +ListDataCorrectPreCheckSQLRequest::~ListDataCorrectPreCheckSQLRequest() {} + +long ListDataCorrectPreCheckSQLRequest::getOrderId() const { + return orderId_; +} + +void ListDataCorrectPreCheckSQLRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +long ListDataCorrectPreCheckSQLRequest::getPageNumber() const { + return pageNumber_; +} + +void ListDataCorrectPreCheckSQLRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListDataCorrectPreCheckSQLRequest::getTid() const { + return tid_; +} + +void ListDataCorrectPreCheckSQLRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long ListDataCorrectPreCheckSQLRequest::getDbId() const { + return dbId_; +} + +void ListDataCorrectPreCheckSQLRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); +} + +long ListDataCorrectPreCheckSQLRequest::getPageSize() const { + return pageSize_; +} + +void ListDataCorrectPreCheckSQLRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/dms-enterprise/src/model/ListDataCorrectPreCheckSQLResult.cc b/dms-enterprise/src/model/ListDataCorrectPreCheckSQLResult.cc new file mode 100644 index 000000000..29759247c --- /dev/null +++ b/dms-enterprise/src/model/ListDataCorrectPreCheckSQLResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListDataCorrectPreCheckSQLResult::ListDataCorrectPreCheckSQLResult() : + ServiceResult() +{} + +ListDataCorrectPreCheckSQLResult::ListDataCorrectPreCheckSQLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDataCorrectPreCheckSQLResult::~ListDataCorrectPreCheckSQLResult() +{} + +void ListDataCorrectPreCheckSQLResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPreCheckSQLListNode = value["PreCheckSQLList"]["PreCheckSQL"]; + for (auto valuePreCheckSQLListPreCheckSQL : allPreCheckSQLListNode) + { + PreCheckSQL preCheckSQLListObject; + if(!valuePreCheckSQLListPreCheckSQL["CheckSQL"].isNull()) + preCheckSQLListObject.checkSQL = valuePreCheckSQLListPreCheckSQL["CheckSQL"].asString(); + if(!valuePreCheckSQLListPreCheckSQL["AffectRows"].isNull()) + preCheckSQLListObject.affectRows = std::stol(valuePreCheckSQLListPreCheckSQL["AffectRows"].asString()); + if(!valuePreCheckSQLListPreCheckSQL["DbId"].isNull()) + preCheckSQLListObject.dbId = std::stol(valuePreCheckSQLListPreCheckSQL["DbId"].asString()); + if(!valuePreCheckSQLListPreCheckSQL["SQLReviewQueryKey"].isNull()) + preCheckSQLListObject.sQLReviewQueryKey = valuePreCheckSQLListPreCheckSQL["SQLReviewQueryKey"].asString(); + if(!valuePreCheckSQLListPreCheckSQL["SqlReviewStatus"].isNull()) + preCheckSQLListObject.sqlReviewStatus = valuePreCheckSQLListPreCheckSQL["SqlReviewStatus"].asString(); + if(!valuePreCheckSQLListPreCheckSQL["SqlType"].isNull()) + preCheckSQLListObject.sqlType = valuePreCheckSQLListPreCheckSQL["SqlType"].asString(); + if(!valuePreCheckSQLListPreCheckSQL["TableNames"].isNull()) + preCheckSQLListObject.tableNames = valuePreCheckSQLListPreCheckSQL["TableNames"].asString(); + preCheckSQLList_.push_back(preCheckSQLListObject); + } + 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 ListDataCorrectPreCheckSQLResult::getPreCheckSQLList()const +{ + return preCheckSQLList_; +} + +std::string ListDataCorrectPreCheckSQLResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListDataCorrectPreCheckSQLResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListDataCorrectPreCheckSQLResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListInstanceLoginAuditLogRequest.cc b/dms-enterprise/src/model/ListInstanceLoginAuditLogRequest.cc new file mode 100644 index 000000000..bffb466f6 --- /dev/null +++ b/dms-enterprise/src/model/ListInstanceLoginAuditLogRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListInstanceLoginAuditLogRequest; + +ListInstanceLoginAuditLogRequest::ListInstanceLoginAuditLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstanceLoginAuditLog") { + setMethod(HttpRequest::Method::Post); +} + +ListInstanceLoginAuditLogRequest::~ListInstanceLoginAuditLogRequest() {} + +std::string ListInstanceLoginAuditLogRequest::getSearchName() const { + return searchName_; +} + +void ListInstanceLoginAuditLogRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); +} + +std::string ListInstanceLoginAuditLogRequest::getOpUserName() const { + return opUserName_; +} + +void ListInstanceLoginAuditLogRequest::setOpUserName(const std::string &opUserName) { + opUserName_ = opUserName; + setParameter(std::string("OpUserName"), opUserName); +} + +std::string ListInstanceLoginAuditLogRequest::getEndTime() const { + return endTime_; +} + +void ListInstanceLoginAuditLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string ListInstanceLoginAuditLogRequest::getStartTime() const { + return startTime_; +} + +void ListInstanceLoginAuditLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int ListInstanceLoginAuditLogRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInstanceLoginAuditLogRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListInstanceLoginAuditLogRequest::getTid() const { + return tid_; +} + +void ListInstanceLoginAuditLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +int ListInstanceLoginAuditLogRequest::getPageSize() const { + return pageSize_; +} + +void ListInstanceLoginAuditLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/dms-enterprise/src/model/ListInstanceLoginAuditLogResult.cc b/dms-enterprise/src/model/ListInstanceLoginAuditLogResult.cc new file mode 100644 index 000000000..7d65a053e --- /dev/null +++ b/dms-enterprise/src/model/ListInstanceLoginAuditLogResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListInstanceLoginAuditLogResult::ListInstanceLoginAuditLogResult() : + ServiceResult() +{} + +ListInstanceLoginAuditLogResult::ListInstanceLoginAuditLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceLoginAuditLogResult::~ListInstanceLoginAuditLogResult() +{} + +void ListInstanceLoginAuditLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceLoginAuditLogListNode = value["InstanceLoginAuditLogList"]["InstanceLoginAuditLog"]; + for (auto valueInstanceLoginAuditLogListInstanceLoginAuditLog : allInstanceLoginAuditLogListNode) + { + InstanceLoginAuditLog instanceLoginAuditLogListObject; + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["OpTime"].isNull()) + instanceLoginAuditLogListObject.opTime = valueInstanceLoginAuditLogListInstanceLoginAuditLog["OpTime"].asString(); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserName"].isNull()) + instanceLoginAuditLogListObject.userName = valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserName"].asString(); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserId"].isNull()) + instanceLoginAuditLogListObject.userId = std::stol(valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserId"].asString()); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceName"].isNull()) + instanceLoginAuditLogListObject.instanceName = valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceName"].asString(); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceId"].isNull()) + instanceLoginAuditLogListObject.instanceId = std::stol(valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceId"].asString()); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["DbUser"].isNull()) + instanceLoginAuditLogListObject.dbUser = valueInstanceLoginAuditLogListInstanceLoginAuditLog["DbUser"].asString(); + if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["RequestIp"].isNull()) + instanceLoginAuditLogListObject.requestIp = valueInstanceLoginAuditLogListInstanceLoginAuditLog["RequestIp"].asString(); + instanceLoginAuditLogList_.push_back(instanceLoginAuditLogListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].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 ListInstanceLoginAuditLogResult::getInstanceLoginAuditLogList()const +{ + return instanceLoginAuditLogList_; +} + +long ListInstanceLoginAuditLogResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListInstanceLoginAuditLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListInstanceLoginAuditLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListInstanceLoginAuditLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListInstanceUserPermissionsRequest.cc b/dms-enterprise/src/model/ListInstanceUserPermissionsRequest.cc new file mode 100644 index 000000000..1bee61dcd --- /dev/null +++ b/dms-enterprise/src/model/ListInstanceUserPermissionsRequest.cc @@ -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 + +using AlibabaCloud::Dms_enterprise::Model::ListInstanceUserPermissionsRequest; + +ListInstanceUserPermissionsRequest::ListInstanceUserPermissionsRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstanceUserPermissions") { + setMethod(HttpRequest::Method::Post); +} + +ListInstanceUserPermissionsRequest::~ListInstanceUserPermissionsRequest() {} + +long ListInstanceUserPermissionsRequest::getTid() const { + return tid_; +} + +void ListInstanceUserPermissionsRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +int ListInstanceUserPermissionsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInstanceUserPermissionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListInstanceUserPermissionsRequest::getInstanceId() const { + return instanceId_; +} + +void ListInstanceUserPermissionsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListInstanceUserPermissionsRequest::getPageSize() const { + return pageSize_; +} + +void ListInstanceUserPermissionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListInstanceUserPermissionsRequest::getUserName() const { + return userName_; +} + +void ListInstanceUserPermissionsRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/dms-enterprise/src/model/ListInstanceUserPermissionsResult.cc b/dms-enterprise/src/model/ListInstanceUserPermissionsResult.cc new file mode 100644 index 000000000..2c1ef567e --- /dev/null +++ b/dms-enterprise/src/model/ListInstanceUserPermissionsResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListInstanceUserPermissionsResult::ListInstanceUserPermissionsResult() : + ServiceResult() +{} + +ListInstanceUserPermissionsResult::ListInstanceUserPermissionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceUserPermissionsResult::~ListInstanceUserPermissionsResult() +{} + +void ListInstanceUserPermissionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUserPermissionsNode = value["UserPermissions"]["UserPermission"]; + for (auto valueUserPermissionsUserPermission : allUserPermissionsNode) + { + UserPermission userPermissionsObject; + if(!valueUserPermissionsUserPermission["UserId"].isNull()) + userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString(); + if(!valueUserPermissionsUserPermission["UserNickName"].isNull()) + userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString(); + if(!valueUserPermissionsUserPermission["InstanceId"].isNull()) + userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString(); + auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"]; + for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode) + { + UserPermission::PermDetail permDetailsObject; + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull()) + permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull()) + permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull()) + permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull()) + permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull()) + permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString(); + if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull()) + permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString(); + userPermissionsObject.permDetails.push_back(permDetailsObject); + } + userPermissions_.push_back(userPermissionsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].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"; + +} + +long ListInstanceUserPermissionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListInstanceUserPermissionsResult::getErrorCode()const +{ + return errorCode_; +} + +std::vector ListInstanceUserPermissionsResult::getUserPermissions()const +{ + return userPermissions_; +} + +std::string ListInstanceUserPermissionsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListInstanceUserPermissionsResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListInstancesResult.cc b/dms-enterprise/src/model/ListInstancesResult.cc index a3846386f..18635e83f 100644 --- a/dms-enterprise/src/model/ListInstancesResult.cc +++ b/dms-enterprise/src/model/ListInstancesResult.cc @@ -87,6 +87,11 @@ void ListInstancesResult::parse(const std::string &payload) instanceListObject.ddlOnline = std::stoi(valueInstanceListInstance["DdlOnline"].asString()); if(!valueInstanceListInstance["EcsRegion"].isNull()) instanceListObject.ecsRegion = valueInstanceListInstance["EcsRegion"].asString(); + auto standardGroupNode = value["StandardGroup"]; + if(!standardGroupNode["GroupName"].isNull()) + instanceListObject.standardGroup.groupName = standardGroupNode["GroupName"].asString(); + if(!standardGroupNode["GroupMode"].isNull()) + instanceListObject.standardGroup.groupMode = standardGroupNode["GroupMode"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) instanceListObject.ownerIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/ListLogicDatabasesResult.cc b/dms-enterprise/src/model/ListLogicDatabasesResult.cc index 12b2e62bd..8db2599b4 100644 --- a/dms-enterprise/src/model/ListLogicDatabasesResult.cc +++ b/dms-enterprise/src/model/ListLogicDatabasesResult.cc @@ -55,6 +55,8 @@ void ListLogicDatabasesResult::parse(const std::string &payload) logicDatabaseListObject.searchName = valueLogicDatabaseListLogicDatabase["SearchName"].asString(); if(!valueLogicDatabaseListLogicDatabase["EnvType"].isNull()) logicDatabaseListObject.envType = valueLogicDatabaseListLogicDatabase["EnvType"].asString(); + if(!valueLogicDatabaseListLogicDatabase["Alias"].isNull()) + logicDatabaseListObject.alias = valueLogicDatabaseListLogicDatabase["Alias"].asString(); auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"]; for (auto value : allOwnerIdList) logicDatabaseListObject.ownerIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/ListLogicTableRouteConfigRequest.cc b/dms-enterprise/src/model/ListLogicTableRouteConfigRequest.cc new file mode 100644 index 000000000..811056b27 --- /dev/null +++ b/dms-enterprise/src/model/ListLogicTableRouteConfigRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListLogicTableRouteConfigRequest; + +ListLogicTableRouteConfigRequest::ListLogicTableRouteConfigRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTableRouteConfig") { + setMethod(HttpRequest::Method::Post); +} + +ListLogicTableRouteConfigRequest::~ListLogicTableRouteConfigRequest() {} + +long ListLogicTableRouteConfigRequest::getTableId() const { + return tableId_; +} + +void ListLogicTableRouteConfigRequest::setTableId(long tableId) { + tableId_ = tableId; + setParameter(std::string("TableId"), std::to_string(tableId)); +} + +long ListLogicTableRouteConfigRequest::getTid() const { + return tid_; +} + +void ListLogicTableRouteConfigRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListLogicTableRouteConfigResult.cc b/dms-enterprise/src/model/ListLogicTableRouteConfigResult.cc new file mode 100644 index 000000000..123da8348 --- /dev/null +++ b/dms-enterprise/src/model/ListLogicTableRouteConfigResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListLogicTableRouteConfigResult::ListLogicTableRouteConfigResult() : + ServiceResult() +{} + +ListLogicTableRouteConfigResult::ListLogicTableRouteConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListLogicTableRouteConfigResult::~ListLogicTableRouteConfigResult() +{} + +void ListLogicTableRouteConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLogicTableRouteConfigListNode = value["LogicTableRouteConfigList"]["LogicTableRouteConfig"]; + for (auto valueLogicTableRouteConfigListLogicTableRouteConfig : allLogicTableRouteConfigListNode) + { + LogicTableRouteConfig logicTableRouteConfigListObject; + if(!valueLogicTableRouteConfigListLogicTableRouteConfig["RouteKey"].isNull()) + logicTableRouteConfigListObject.routeKey = valueLogicTableRouteConfigListLogicTableRouteConfig["RouteKey"].asString(); + if(!valueLogicTableRouteConfigListLogicTableRouteConfig["RouteExpr"].isNull()) + logicTableRouteConfigListObject.routeExpr = valueLogicTableRouteConfigListLogicTableRouteConfig["RouteExpr"].asString(); + if(!valueLogicTableRouteConfigListLogicTableRouteConfig["TableId"].isNull()) + logicTableRouteConfigListObject.tableId = std::stol(valueLogicTableRouteConfigListLogicTableRouteConfig["TableId"].asString()); + logicTableRouteConfigList_.push_back(logicTableRouteConfigListObject); + } + 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 ListLogicTableRouteConfigResult::getLogicTableRouteConfigList()const +{ + return logicTableRouteConfigList_; +} + +std::string ListLogicTableRouteConfigResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListLogicTableRouteConfigResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListLogicTableRouteConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListProxiesRequest.cc b/dms-enterprise/src/model/ListProxiesRequest.cc new file mode 100644 index 000000000..0df5f05f0 --- /dev/null +++ b/dms-enterprise/src/model/ListProxiesRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListProxiesRequest; + +ListProxiesRequest::ListProxiesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxies") { + setMethod(HttpRequest::Method::Post); +} + +ListProxiesRequest::~ListProxiesRequest() {} + +long ListProxiesRequest::getTid() const { + return tid_; +} + +void ListProxiesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ListProxiesResult.cc b/dms-enterprise/src/model/ListProxiesResult.cc new file mode 100644 index 000000000..5335de50e --- /dev/null +++ b/dms-enterprise/src/model/ListProxiesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListProxiesResult::ListProxiesResult() : + ServiceResult() +{} + +ListProxiesResult::ListProxiesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProxiesResult::~ListProxiesResult() +{} + +void ListProxiesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProxyListNode = value["ProxyList"]["ProxyListItem"]; + for (auto valueProxyListProxyListItem : allProxyListNode) + { + ProxyListItem proxyListObject; + if(!valueProxyListProxyListItem["ProxyId"].isNull()) + proxyListObject.proxyId = std::stol(valueProxyListProxyListItem["ProxyId"].asString()); + if(!valueProxyListProxyListItem["CreatorId"].isNull()) + proxyListObject.creatorId = std::stol(valueProxyListProxyListItem["CreatorId"].asString()); + if(!valueProxyListProxyListItem["CreatorName"].isNull()) + proxyListObject.creatorName = valueProxyListProxyListItem["CreatorName"].asString(); + if(!valueProxyListProxyListItem["InstanceId"].isNull()) + proxyListObject.instanceId = std::stol(valueProxyListProxyListItem["InstanceId"].asString()); + if(!valueProxyListProxyListItem["PrivateEnable"].isNull()) + proxyListObject.privateEnable = valueProxyListProxyListItem["PrivateEnable"].asString() == "true"; + if(!valueProxyListProxyListItem["PrivateHost"].isNull()) + proxyListObject.privateHost = valueProxyListProxyListItem["PrivateHost"].asString(); + if(!valueProxyListProxyListItem["PublicEnable"].isNull()) + proxyListObject.publicEnable = valueProxyListProxyListItem["PublicEnable"].asString() == "true"; + if(!valueProxyListProxyListItem["PublicHost"].isNull()) + proxyListObject.publicHost = valueProxyListProxyListItem["PublicHost"].asString(); + if(!valueProxyListProxyListItem["MysqlPort"].isNull()) + proxyListObject.mysqlPort = std::stoi(valueProxyListProxyListItem["MysqlPort"].asString()); + if(!valueProxyListProxyListItem["HttpsPort"].isNull()) + proxyListObject.httpsPort = std::stoi(valueProxyListProxyListItem["HttpsPort"].asString()); + proxyList_.push_back(proxyListObject); + } + 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 ListProxiesResult::getProxyList()const +{ + return proxyList_; +} + +std::string ListProxiesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProxiesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProxiesResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListProxyAccessesRequest.cc b/dms-enterprise/src/model/ListProxyAccessesRequest.cc new file mode 100644 index 000000000..a3ee20cdf --- /dev/null +++ b/dms-enterprise/src/model/ListProxyAccessesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListProxyAccessesRequest; + +ListProxyAccessesRequest::ListProxyAccessesRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxyAccesses") { + setMethod(HttpRequest::Method::Post); +} + +ListProxyAccessesRequest::~ListProxyAccessesRequest() {} + +long ListProxyAccessesRequest::getTid() const { + return tid_; +} + +void ListProxyAccessesRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long ListProxyAccessesRequest::getProxyId() const { + return proxyId_; +} + +void ListProxyAccessesRequest::setProxyId(long proxyId) { + proxyId_ = proxyId; + setParameter(std::string("ProxyId"), std::to_string(proxyId)); +} + diff --git a/dms-enterprise/src/model/ListProxyAccessesResult.cc b/dms-enterprise/src/model/ListProxyAccessesResult.cc new file mode 100644 index 000000000..3424f1efe --- /dev/null +++ b/dms-enterprise/src/model/ListProxyAccessesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListProxyAccessesResult::ListProxyAccessesResult() : + ServiceResult() +{} + +ListProxyAccessesResult::ListProxyAccessesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProxyAccessesResult::~ListProxyAccessesResult() +{} + +void ListProxyAccessesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProxyAccessListNode = value["ProxyAccessList"]["ProxyAccessListItem"]; + for (auto valueProxyAccessListProxyAccessListItem : allProxyAccessListNode) + { + ProxyAccessListItem proxyAccessListObject; + if(!valueProxyAccessListProxyAccessListItem["ProxyAccessId"].isNull()) + proxyAccessListObject.proxyAccessId = std::stol(valueProxyAccessListProxyAccessListItem["ProxyAccessId"].asString()); + if(!valueProxyAccessListProxyAccessListItem["GmtCreate"].isNull()) + proxyAccessListObject.gmtCreate = valueProxyAccessListProxyAccessListItem["GmtCreate"].asString(); + if(!valueProxyAccessListProxyAccessListItem["AccessId"].isNull()) + proxyAccessListObject.accessId = valueProxyAccessListProxyAccessListItem["AccessId"].asString(); + if(!valueProxyAccessListProxyAccessListItem["OriginInfo"].isNull()) + proxyAccessListObject.originInfo = valueProxyAccessListProxyAccessListItem["OriginInfo"].asString(); + if(!valueProxyAccessListProxyAccessListItem["IndepAccount"].isNull()) + proxyAccessListObject.indepAccount = valueProxyAccessListProxyAccessListItem["IndepAccount"].asString(); + if(!valueProxyAccessListProxyAccessListItem["UserId"].isNull()) + proxyAccessListObject.userId = std::stol(valueProxyAccessListProxyAccessListItem["UserId"].asString()); + if(!valueProxyAccessListProxyAccessListItem["UserUid"].isNull()) + proxyAccessListObject.userUid = valueProxyAccessListProxyAccessListItem["UserUid"].asString(); + if(!valueProxyAccessListProxyAccessListItem["UserName"].isNull()) + proxyAccessListObject.userName = valueProxyAccessListProxyAccessListItem["UserName"].asString(); + if(!valueProxyAccessListProxyAccessListItem["ProxyId"].isNull()) + proxyAccessListObject.proxyId = std::stol(valueProxyAccessListProxyAccessListItem["ProxyId"].asString()); + if(!valueProxyAccessListProxyAccessListItem["InstanceId"].isNull()) + proxyAccessListObject.instanceId = std::stol(valueProxyAccessListProxyAccessListItem["InstanceId"].asString()); + proxyAccessList_.push_back(proxyAccessListObject); + } + 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 ListProxyAccessesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProxyAccessesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProxyAccessesResult::getSuccess()const +{ + return success_; +} + +std::vector ListProxyAccessesResult::getProxyAccessList()const +{ + return proxyAccessList_; +} + diff --git a/dms-enterprise/src/model/ListProxySQLExecAuditLogRequest.cc b/dms-enterprise/src/model/ListProxySQLExecAuditLogRequest.cc new file mode 100644 index 000000000..cde9d3299 --- /dev/null +++ b/dms-enterprise/src/model/ListProxySQLExecAuditLogRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListProxySQLExecAuditLogRequest; + +ListProxySQLExecAuditLogRequest::ListProxySQLExecAuditLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxySQLExecAuditLog") { + setMethod(HttpRequest::Method::Post); +} + +ListProxySQLExecAuditLogRequest::~ListProxySQLExecAuditLogRequest() {} + +std::string ListProxySQLExecAuditLogRequest::getSQLType() const { + return sQLType_; +} + +void ListProxySQLExecAuditLogRequest::setSQLType(const std::string &sQLType) { + sQLType_ = sQLType; + setParameter(std::string("SQLType"), sQLType); +} + +std::string ListProxySQLExecAuditLogRequest::getSearchName() const { + return searchName_; +} + +void ListProxySQLExecAuditLogRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); +} + +std::string ListProxySQLExecAuditLogRequest::getOpUserName() const { + return opUserName_; +} + +void ListProxySQLExecAuditLogRequest::setOpUserName(const std::string &opUserName) { + opUserName_ = opUserName; + setParameter(std::string("OpUserName"), opUserName); +} + +long ListProxySQLExecAuditLogRequest::getEndTime() const { + return endTime_; +} + +void ListProxySQLExecAuditLogRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +long ListProxySQLExecAuditLogRequest::getStartTime() const { + return startTime_; +} + +void ListProxySQLExecAuditLogRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int ListProxySQLExecAuditLogRequest::getPageNumber() const { + return pageNumber_; +} + +void ListProxySQLExecAuditLogRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListProxySQLExecAuditLogRequest::getTid() const { + return tid_; +} + +void ListProxySQLExecAuditLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +int ListProxySQLExecAuditLogRequest::getPageSize() const { + return pageSize_; +} + +void ListProxySQLExecAuditLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListProxySQLExecAuditLogRequest::getExecState() const { + return execState_; +} + +void ListProxySQLExecAuditLogRequest::setExecState(const std::string &execState) { + execState_ = execState; + setParameter(std::string("ExecState"), execState); +} + diff --git a/dms-enterprise/src/model/ListProxySQLExecAuditLogResult.cc b/dms-enterprise/src/model/ListProxySQLExecAuditLogResult.cc new file mode 100644 index 000000000..dc2a23a1e --- /dev/null +++ b/dms-enterprise/src/model/ListProxySQLExecAuditLogResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListProxySQLExecAuditLogResult::ListProxySQLExecAuditLogResult() : + ServiceResult() +{} + +ListProxySQLExecAuditLogResult::ListProxySQLExecAuditLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProxySQLExecAuditLogResult::~ListProxySQLExecAuditLogResult() +{} + +void ListProxySQLExecAuditLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProxySQLExecAuditLogListNode = value["ProxySQLExecAuditLogList"]["ProxySQLExecAuditLog"]; + for (auto valueProxySQLExecAuditLogListProxySQLExecAuditLog : allProxySQLExecAuditLogListNode) + { + ProxySQLExecAuditLog proxySQLExecAuditLogListObject; + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["OpTime"].isNull()) + proxySQLExecAuditLogListObject.opTime = valueProxySQLExecAuditLogListProxySQLExecAuditLog["OpTime"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserName"].isNull()) + proxySQLExecAuditLogListObject.userName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserName"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserId"].isNull()) + proxySQLExecAuditLogListObject.userId = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserId"].asString()); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceName"].isNull()) + proxySQLExecAuditLogListObject.instanceName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceName"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceId"].isNull()) + proxySQLExecAuditLogListObject.instanceId = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceId"].asString()); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SchemaName"].isNull()) + proxySQLExecAuditLogListObject.schemaName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SchemaName"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQLType"].isNull()) + proxySQLExecAuditLogListObject.sQLType = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQLType"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQL"].isNull()) + proxySQLExecAuditLogListObject.sQL = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQL"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["ExecState"].isNull()) + proxySQLExecAuditLogListObject.execState = valueProxySQLExecAuditLogListProxySQLExecAuditLog["ExecState"].asString(); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["AffectRows"].isNull()) + proxySQLExecAuditLogListObject.affectRows = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["AffectRows"].asString()); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["ElapsedTime"].isNull()) + proxySQLExecAuditLogListObject.elapsedTime = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["ElapsedTime"].asString()); + if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["Remark"].isNull()) + proxySQLExecAuditLogListObject.remark = valueProxySQLExecAuditLogListProxySQLExecAuditLog["Remark"].asString(); + proxySQLExecAuditLogList_.push_back(proxySQLExecAuditLogListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].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 ListProxySQLExecAuditLogResult::getProxySQLExecAuditLogList()const +{ + return proxySQLExecAuditLogList_; +} + +long ListProxySQLExecAuditLogResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListProxySQLExecAuditLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListProxySQLExecAuditLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListProxySQLExecAuditLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListSQLExecAuditLogRequest.cc b/dms-enterprise/src/model/ListSQLExecAuditLogRequest.cc new file mode 100644 index 000000000..f832e68d1 --- /dev/null +++ b/dms-enterprise/src/model/ListSQLExecAuditLogRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ListSQLExecAuditLogRequest; + +ListSQLExecAuditLogRequest::ListSQLExecAuditLogRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSQLExecAuditLog") { + setMethod(HttpRequest::Method::Post); +} + +ListSQLExecAuditLogRequest::~ListSQLExecAuditLogRequest() {} + +std::string ListSQLExecAuditLogRequest::getSqlType() const { + return sqlType_; +} + +void ListSQLExecAuditLogRequest::setSqlType(const std::string &sqlType) { + sqlType_ = sqlType; + setParameter(std::string("SqlType"), sqlType); +} + +std::string ListSQLExecAuditLogRequest::getSearchName() const { + return searchName_; +} + +void ListSQLExecAuditLogRequest::setSearchName(const std::string &searchName) { + searchName_ = searchName; + setParameter(std::string("SearchName"), searchName); +} + +std::string ListSQLExecAuditLogRequest::getOpUserName() const { + return opUserName_; +} + +void ListSQLExecAuditLogRequest::setOpUserName(const std::string &opUserName) { + opUserName_ = opUserName; + setParameter(std::string("OpUserName"), opUserName); +} + +std::string ListSQLExecAuditLogRequest::getEndTime() const { + return endTime_; +} + +void ListSQLExecAuditLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string ListSQLExecAuditLogRequest::getStartTime() const { + return startTime_; +} + +void ListSQLExecAuditLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int ListSQLExecAuditLogRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSQLExecAuditLogRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +long ListSQLExecAuditLogRequest::getTid() const { + return tid_; +} + +void ListSQLExecAuditLogRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +int ListSQLExecAuditLogRequest::getPageSize() const { + return pageSize_; +} + +void ListSQLExecAuditLogRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListSQLExecAuditLogRequest::getExecState() const { + return execState_; +} + +void ListSQLExecAuditLogRequest::setExecState(const std::string &execState) { + execState_ = execState; + setParameter(std::string("ExecState"), execState); +} + diff --git a/dms-enterprise/src/model/ListSQLExecAuditLogResult.cc b/dms-enterprise/src/model/ListSQLExecAuditLogResult.cc new file mode 100644 index 000000000..0dea37b62 --- /dev/null +++ b/dms-enterprise/src/model/ListSQLExecAuditLogResult.cc @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ListSQLExecAuditLogResult::ListSQLExecAuditLogResult() : + ServiceResult() +{} + +ListSQLExecAuditLogResult::ListSQLExecAuditLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSQLExecAuditLogResult::~ListSQLExecAuditLogResult() +{} + +void ListSQLExecAuditLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSQLExecAuditLogListNode = value["SQLExecAuditLogList"]["SQLExecAuditLog"]; + for (auto valueSQLExecAuditLogListSQLExecAuditLog : allSQLExecAuditLogListNode) + { + SQLExecAuditLog sQLExecAuditLogListObject; + if(!valueSQLExecAuditLogListSQLExecAuditLog["OpTime"].isNull()) + sQLExecAuditLogListObject.opTime = valueSQLExecAuditLogListSQLExecAuditLog["OpTime"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["UserName"].isNull()) + sQLExecAuditLogListObject.userName = valueSQLExecAuditLogListSQLExecAuditLog["UserName"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["UserId"].isNull()) + sQLExecAuditLogListObject.userId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["UserId"].asString()); + if(!valueSQLExecAuditLogListSQLExecAuditLog["InstanceName"].isNull()) + sQLExecAuditLogListObject.instanceName = valueSQLExecAuditLogListSQLExecAuditLog["InstanceName"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["InstanceId"].isNull()) + sQLExecAuditLogListObject.instanceId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["InstanceId"].asString()); + if(!valueSQLExecAuditLogListSQLExecAuditLog["SchemaName"].isNull()) + sQLExecAuditLogListObject.schemaName = valueSQLExecAuditLogListSQLExecAuditLog["SchemaName"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["DbId"].isNull()) + sQLExecAuditLogListObject.dbId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["DbId"].asString()); + if(!valueSQLExecAuditLogListSQLExecAuditLog["Logic"].isNull()) + sQLExecAuditLogListObject.logic = valueSQLExecAuditLogListSQLExecAuditLog["Logic"].asString() == "true"; + if(!valueSQLExecAuditLogListSQLExecAuditLog["SQLType"].isNull()) + sQLExecAuditLogListObject.sQLType = valueSQLExecAuditLogListSQLExecAuditLog["SQLType"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["SQL"].isNull()) + sQLExecAuditLogListObject.sQL = valueSQLExecAuditLogListSQLExecAuditLog["SQL"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["ExecState"].isNull()) + sQLExecAuditLogListObject.execState = valueSQLExecAuditLogListSQLExecAuditLog["ExecState"].asString(); + if(!valueSQLExecAuditLogListSQLExecAuditLog["AffectRows"].isNull()) + sQLExecAuditLogListObject.affectRows = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["AffectRows"].asString()); + if(!valueSQLExecAuditLogListSQLExecAuditLog["ElapsedTime"].isNull()) + sQLExecAuditLogListObject.elapsedTime = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["ElapsedTime"].asString()); + if(!valueSQLExecAuditLogListSQLExecAuditLog["Remark"].isNull()) + sQLExecAuditLogListObject.remark = valueSQLExecAuditLogListSQLExecAuditLog["Remark"].asString(); + sQLExecAuditLogList_.push_back(sQLExecAuditLogListObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].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"; + +} + +long ListSQLExecAuditLogResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListSQLExecAuditLogResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListSQLExecAuditLogResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListSQLExecAuditLogResult::getSQLExecAuditLogList()const +{ + return sQLExecAuditLogList_; +} + +bool ListSQLExecAuditLogResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc b/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc index dcf8bd3c8..b734593e2 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsDetailRequest.cc @@ -52,6 +52,24 @@ void ListSensitiveColumnsDetailRequest::setTid(long tid) { setParameter(std::string("Tid"), std::to_string(tid)); } +long ListSensitiveColumnsDetailRequest::getDbId() const { + return dbId_; +} + +void ListSensitiveColumnsDetailRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); +} + +bool ListSensitiveColumnsDetailRequest::getLogic() const { + return logic_; +} + +void ListSensitiveColumnsDetailRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); +} + std::string ListSensitiveColumnsDetailRequest::getTableName() const { return tableName_; } diff --git a/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc b/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc index 54cbc106e..a6225c53d 100644 --- a/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc +++ b/dms-enterprise/src/model/ListSensitiveColumnsRequest.cc @@ -70,6 +70,15 @@ void ListSensitiveColumnsRequest::setSecurityLevel(const std::string &securityLe setParameter(std::string("SecurityLevel"), securityLevel); } +long ListSensitiveColumnsRequest::getDbId() const { + return dbId_; +} + +void ListSensitiveColumnsRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); +} + int ListSensitiveColumnsRequest::getPageSize() const { return pageSize_; } @@ -79,6 +88,15 @@ void ListSensitiveColumnsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +bool ListSensitiveColumnsRequest::getLogic() const { + return logic_; +} + +void ListSensitiveColumnsRequest::setLogic(bool logic) { + logic_ = logic; + setParameter(std::string("Logic"), logic ? "true" : "false"); +} + std::string ListSensitiveColumnsRequest::getTableName() const { return tableName_; } diff --git a/dms-enterprise/src/model/ListUserPermissionsRequest.cc b/dms-enterprise/src/model/ListUserPermissionsRequest.cc index 7edaa7b6d..6865b27f4 100644 --- a/dms-enterprise/src/model/ListUserPermissionsRequest.cc +++ b/dms-enterprise/src/model/ListUserPermissionsRequest.cc @@ -25,6 +25,15 @@ ListUserPermissionsRequest::ListUserPermissionsRequest() ListUserPermissionsRequest::~ListUserPermissionsRequest() {} +std::string ListUserPermissionsRequest::getSearchKey() const { + return searchKey_; +} + +void ListUserPermissionsRequest::setSearchKey(const std::string &searchKey) { + searchKey_ = searchKey; + setParameter(std::string("SearchKey"), searchKey); +} + std::string ListUserPermissionsRequest::getUserId() const { return userId_; } diff --git a/dms-enterprise/src/model/ListUserPermissionsResult.cc b/dms-enterprise/src/model/ListUserPermissionsResult.cc index a08aa40ea..11a56cf44 100644 --- a/dms-enterprise/src/model/ListUserPermissionsResult.cc +++ b/dms-enterprise/src/model/ListUserPermissionsResult.cc @@ -71,6 +71,10 @@ void ListUserPermissionsResult::parse(const std::string &payload) userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString(); if(!valueUserPermissionsUserPermission["Alias"].isNull()) userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString(); + if(!valueUserPermissionsUserPermission["Host"].isNull()) + userPermissionsObject.host = valueUserPermissionsUserPermission["Host"].asString(); + if(!valueUserPermissionsUserPermission["Port"].isNull()) + userPermissionsObject.port = std::stol(valueUserPermissionsUserPermission["Port"].asString()); auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"]; for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode) { diff --git a/dms-enterprise/src/model/ListUsersResult.cc b/dms-enterprise/src/model/ListUsersResult.cc index db33d2b94..4df0645d1 100644 --- a/dms-enterprise/src/model/ListUsersResult.cc +++ b/dms-enterprise/src/model/ListUsersResult.cc @@ -65,6 +65,16 @@ void ListUsersResult::parse(const std::string &payload) userListObject.mobile = valueUserListUser["Mobile"].asString(); if(!valueUserListUser["Uid"].isNull()) userListObject.uid = valueUserListUser["Uid"].asString(); + if(!valueUserListUser["Email"].isNull()) + userListObject.email = valueUserListUser["Email"].asString(); + if(!valueUserListUser["DingRobot"].isNull()) + userListObject.dingRobot = valueUserListUser["DingRobot"].asString(); + if(!valueUserListUser["Webhook"].isNull()) + userListObject.webhook = valueUserListUser["Webhook"].asString(); + if(!valueUserListUser["SignatureMethod"].isNull()) + userListObject.signatureMethod = valueUserListUser["SignatureMethod"].asString(); + if(!valueUserListUser["NotificationMode"].isNull()) + userListObject.notificationMode = valueUserListUser["NotificationMode"].asString(); auto allRoleIdList = value["RoleIdList"]["RoleIds"]; for (auto value : allRoleIdList) userListObject.roleIdList.push_back(value.asString()); diff --git a/dms-enterprise/src/model/ModifyDataCorrectExecSQLRequest.cc b/dms-enterprise/src/model/ModifyDataCorrectExecSQLRequest.cc new file mode 100644 index 000000000..d7f1fdce6 --- /dev/null +++ b/dms-enterprise/src/model/ModifyDataCorrectExecSQLRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::ModifyDataCorrectExecSQLRequest; + +ModifyDataCorrectExecSQLRequest::ModifyDataCorrectExecSQLRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "ModifyDataCorrectExecSQL") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDataCorrectExecSQLRequest::~ModifyDataCorrectExecSQLRequest() {} + +long ModifyDataCorrectExecSQLRequest::getOrderId() const { + return orderId_; +} + +void ModifyDataCorrectExecSQLRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +std::string ModifyDataCorrectExecSQLRequest::getExecSQL() const { + return execSQL_; +} + +void ModifyDataCorrectExecSQLRequest::setExecSQL(const std::string &execSQL) { + execSQL_ = execSQL; + setParameter(std::string("ExecSQL"), execSQL); +} + +long ModifyDataCorrectExecSQLRequest::getTid() const { + return tid_; +} + +void ModifyDataCorrectExecSQLRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/ModifyDataCorrectExecSQLResult.cc b/dms-enterprise/src/model/ModifyDataCorrectExecSQLResult.cc new file mode 100644 index 000000000..28fadc9fe --- /dev/null +++ b/dms-enterprise/src/model/ModifyDataCorrectExecSQLResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +ModifyDataCorrectExecSQLResult::ModifyDataCorrectExecSQLResult() : + ServiceResult() +{} + +ModifyDataCorrectExecSQLResult::ModifyDataCorrectExecSQLResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDataCorrectExecSQLResult::~ModifyDataCorrectExecSQLResult() +{} + +void ModifyDataCorrectExecSQLResult::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(); + +} + +std::string ModifyDataCorrectExecSQLResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ModifyDataCorrectExecSQLResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ModifyDataCorrectExecSQLResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/PauseDataCorrectSQLJobRequest.cc b/dms-enterprise/src/model/PauseDataCorrectSQLJobRequest.cc new file mode 100644 index 000000000..0f4627449 --- /dev/null +++ b/dms-enterprise/src/model/PauseDataCorrectSQLJobRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::PauseDataCorrectSQLJobRequest; + +PauseDataCorrectSQLJobRequest::PauseDataCorrectSQLJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "PauseDataCorrectSQLJob") { + setMethod(HttpRequest::Method::Post); +} + +PauseDataCorrectSQLJobRequest::~PauseDataCorrectSQLJobRequest() {} + +long PauseDataCorrectSQLJobRequest::getOrderId() const { + return orderId_; +} + +void PauseDataCorrectSQLJobRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +std::string PauseDataCorrectSQLJobRequest::getType() const { + return type_; +} + +void PauseDataCorrectSQLJobRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +long PauseDataCorrectSQLJobRequest::getTid() const { + return tid_; +} + +void PauseDataCorrectSQLJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long PauseDataCorrectSQLJobRequest::getJobId() const { + return jobId_; +} + +void PauseDataCorrectSQLJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + diff --git a/dms-enterprise/src/model/PauseDataCorrectSQLJobResult.cc b/dms-enterprise/src/model/PauseDataCorrectSQLJobResult.cc new file mode 100644 index 000000000..5d749e99a --- /dev/null +++ b/dms-enterprise/src/model/PauseDataCorrectSQLJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +PauseDataCorrectSQLJobResult::PauseDataCorrectSQLJobResult() : + ServiceResult() +{} + +PauseDataCorrectSQLJobResult::PauseDataCorrectSQLJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PauseDataCorrectSQLJobResult::~PauseDataCorrectSQLJobResult() +{} + +void PauseDataCorrectSQLJobResult::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(); + +} + +std::string PauseDataCorrectSQLJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string PauseDataCorrectSQLJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool PauseDataCorrectSQLJobResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/RestartDataCorrectSQLJobRequest.cc b/dms-enterprise/src/model/RestartDataCorrectSQLJobRequest.cc new file mode 100644 index 000000000..ca007b097 --- /dev/null +++ b/dms-enterprise/src/model/RestartDataCorrectSQLJobRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RestartDataCorrectSQLJobRequest; + +RestartDataCorrectSQLJobRequest::RestartDataCorrectSQLJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "RestartDataCorrectSQLJob") { + setMethod(HttpRequest::Method::Post); +} + +RestartDataCorrectSQLJobRequest::~RestartDataCorrectSQLJobRequest() {} + +long RestartDataCorrectSQLJobRequest::getOrderId() const { + return orderId_; +} + +void RestartDataCorrectSQLJobRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +std::string RestartDataCorrectSQLJobRequest::getType() const { + return type_; +} + +void RestartDataCorrectSQLJobRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +long RestartDataCorrectSQLJobRequest::getTid() const { + return tid_; +} + +void RestartDataCorrectSQLJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +long RestartDataCorrectSQLJobRequest::getJobId() const { + return jobId_; +} + +void RestartDataCorrectSQLJobRequest::setJobId(long jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), std::to_string(jobId)); +} + diff --git a/dms-enterprise/src/model/RestartDataCorrectSQLJobResult.cc b/dms-enterprise/src/model/RestartDataCorrectSQLJobResult.cc new file mode 100644 index 000000000..16df69e5c --- /dev/null +++ b/dms-enterprise/src/model/RestartDataCorrectSQLJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +RestartDataCorrectSQLJobResult::RestartDataCorrectSQLJobResult() : + ServiceResult() +{} + +RestartDataCorrectSQLJobResult::RestartDataCorrectSQLJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDataCorrectSQLJobResult::~RestartDataCorrectSQLJobResult() +{} + +void RestartDataCorrectSQLJobResult::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(); + +} + +std::string RestartDataCorrectSQLJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RestartDataCorrectSQLJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RestartDataCorrectSQLJobResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/RetryDataCorrectPreCheckRequest.cc b/dms-enterprise/src/model/RetryDataCorrectPreCheckRequest.cc new file mode 100644 index 000000000..db9349fd0 --- /dev/null +++ b/dms-enterprise/src/model/RetryDataCorrectPreCheckRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::RetryDataCorrectPreCheckRequest; + +RetryDataCorrectPreCheckRequest::RetryDataCorrectPreCheckRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "RetryDataCorrectPreCheck") { + setMethod(HttpRequest::Method::Post); +} + +RetryDataCorrectPreCheckRequest::~RetryDataCorrectPreCheckRequest() {} + +long RetryDataCorrectPreCheckRequest::getOrderId() const { + return orderId_; +} + +void RetryDataCorrectPreCheckRequest::setOrderId(long orderId) { + orderId_ = orderId; + setParameter(std::string("OrderId"), std::to_string(orderId)); +} + +long RetryDataCorrectPreCheckRequest::getTid() const { + return tid_; +} + +void RetryDataCorrectPreCheckRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + diff --git a/dms-enterprise/src/model/RetryDataCorrectPreCheckResult.cc b/dms-enterprise/src/model/RetryDataCorrectPreCheckResult.cc new file mode 100644 index 000000000..c537253e9 --- /dev/null +++ b/dms-enterprise/src/model/RetryDataCorrectPreCheckResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +RetryDataCorrectPreCheckResult::RetryDataCorrectPreCheckResult() : + ServiceResult() +{} + +RetryDataCorrectPreCheckResult::RetryDataCorrectPreCheckResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RetryDataCorrectPreCheckResult::~RetryDataCorrectPreCheckResult() +{} + +void RetryDataCorrectPreCheckResult::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(); + +} + +std::string RetryDataCorrectPreCheckResult::getErrorCode()const +{ + return errorCode_; +} + +std::string RetryDataCorrectPreCheckResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool RetryDataCorrectPreCheckResult::getSuccess()const +{ + return success_; +} + diff --git a/dms-enterprise/src/model/RevokeUserPermissionRequest.cc b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc index 3cf079155..783dd5358 100644 --- a/dms-enterprise/src/model/RevokeUserPermissionRequest.cc +++ b/dms-enterprise/src/model/RevokeUserPermissionRequest.cc @@ -70,6 +70,15 @@ void RevokeUserPermissionRequest::setTid(long tid) { setParameter(std::string("Tid"), std::to_string(tid)); } +long RevokeUserPermissionRequest::getInstanceId() const { + return instanceId_; +} + +void RevokeUserPermissionRequest::setInstanceId(long instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + std::string RevokeUserPermissionRequest::getDbId() const { return dbId_; } diff --git a/dms-enterprise/src/model/SubmitSparkJobRequest.cc b/dms-enterprise/src/model/SubmitSparkJobRequest.cc new file mode 100644 index 000000000..9ca693548 --- /dev/null +++ b/dms-enterprise/src/model/SubmitSparkJobRequest.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Dms_enterprise::Model::SubmitSparkJobRequest; + +SubmitSparkJobRequest::SubmitSparkJobRequest() + : RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitSparkJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitSparkJobRequest::~SubmitSparkJobRequest() {} + +std::string SubmitSparkJobRequest::getMainClass() const { + return mainClass_; +} + +void SubmitSparkJobRequest::setMainClass(const std::string &mainClass) { + mainClass_ = mainClass; + setBodyParameter(std::string("MainClass"), mainClass); +} + +std::map SubmitSparkJobRequest::getConfiguration() const { + return configuration_; +} + +void SubmitSparkJobRequest::setConfiguration(const std::map &configuration) { + configuration_ = configuration; + for(auto const &iter1 : configuration) { + setBodyParameter(std::string("Configuration") + "." + iter1.first, iter1.second); + } +} + +SubmitSparkJobRequest::OssInfo SubmitSparkJobRequest::getOssInfo() const { + return ossInfo_; +} + +void SubmitSparkJobRequest::setOssInfo(const SubmitSparkJobRequest::OssInfo &ossInfo) { + ossInfo_ = ossInfo; + setBodyParameter(std::string("OssInfo") + ".Endpoint", ossInfo.endpoint); + setBodyParameter(std::string("OssInfo") + ".AccessKeySecret", ossInfo.accessKeySecret); + setBodyParameter(std::string("OssInfo") + ".AccessKeyId", ossInfo.accessKeyId); +} + +long SubmitSparkJobRequest::getTid() const { + return tid_; +} + +void SubmitSparkJobRequest::setTid(long tid) { + tid_ = tid; + setParameter(std::string("Tid"), std::to_string(tid)); +} + +std::string SubmitSparkJobRequest::getMainFile() const { + return mainFile_; +} + +void SubmitSparkJobRequest::setMainFile(const std::string &mainFile) { + mainFile_ = mainFile; + setBodyParameter(std::string("MainFile"), mainFile); +} + +std::string SubmitSparkJobRequest::getName() const { + return name_; +} + +void SubmitSparkJobRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); +} + +std::vector SubmitSparkJobRequest::getFiles() const { + return files_; +} + +void SubmitSparkJobRequest::setFiles(const std::vector &files) { + files_ = files; + for(int dep1 = 0; dep1 != files.size(); dep1++) { + setBodyParameter(std::string("Files") + "." + std::to_string(dep1 + 1), files[dep1]); + } +} + +std::string SubmitSparkJobRequest::getAppCode() const { + return appCode_; +} + +void SubmitSparkJobRequest::setAppCode(const std::string &appCode) { + appCode_ = appCode; + setBodyParameter(std::string("AppCode"), appCode); +} + +std::vector SubmitSparkJobRequest::getArguments() const { + return arguments_; +} + +void SubmitSparkJobRequest::setArguments(const std::vector &arguments) { + arguments_ = arguments; + for(int dep1 = 0; dep1 != arguments.size(); dep1++) { + setBodyParameter(std::string("Arguments") + "." + std::to_string(dep1 + 1), arguments[dep1]); + } +} + diff --git a/dms-enterprise/src/model/SubmitSparkJobResult.cc b/dms-enterprise/src/model/SubmitSparkJobResult.cc new file mode 100644 index 000000000..96b840264 --- /dev/null +++ b/dms-enterprise/src/model/SubmitSparkJobResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Dms_enterprise; +using namespace AlibabaCloud::Dms_enterprise::Model; + +SubmitSparkJobResult::SubmitSparkJobResult() : + ServiceResult() +{} + +SubmitSparkJobResult::SubmitSparkJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitSparkJobResult::~SubmitSparkJobResult() +{} + +void SubmitSparkJobResult::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["JobId"].isNull()) + jobId_ = std::stol(value["JobId"].asString()); + +} + +std::string SubmitSparkJobResult::getErrorCode()const +{ + return errorCode_; +} + +std::string SubmitSparkJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool SubmitSparkJobResult::getSuccess()const +{ + return success_; +} + +long SubmitSparkJobResult::getJobId()const +{ + return jobId_; +} +