From 17088253be7b0527fb56af31b07e43b496c56239 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 19 Jul 2023 08:46:26 +0000 Subject: [PATCH] Update SDK version. --- VERSION | 2 +- dts/CMakeLists.txt | 368 +- dts/include/alibabacloud/dts/DtsClient.h | 728 ---- .../dts/model/ConfigureDtsJobRequest.h | 171 - .../dts/model/ConfigureDtsJobResult.h | 61 - .../model/ConfigureMigrationJobAlertRequest.h | 69 - .../model/ConfigureMigrationJobAlertResult.h | 55 - .../dts/model/ConfigureMigrationJobRequest.h | 141 - .../dts/model/ConfigureMigrationJobResult.h | 55 - ...onfigureSubscriptionInstanceAlertRequest.h | 69 - ...ConfigureSubscriptionInstanceAlertResult.h | 55 - .../ConfigureSubscriptionInstanceRequest.h | 105 - .../ConfigureSubscriptionInstanceResult.h | 55 - .../dts/model/ConfigureSubscriptionRequest.h | 129 - .../dts/model/ConfigureSubscriptionResult.h | 61 - .../ConfigureSynchronizationJobAlertRequest.h | 21 +- ...nchronizationJobReplicatorCompareRequest.h | 63 - ...ynchronizationJobReplicatorCompareResult.h | 55 - .../ConfigureSynchronizationJobRequest.h | 15 - .../dts/model/CountJobByConditionRequest.h | 66 - .../dts/model/CountJobByConditionResult.h | 63 - .../dts/model/CreateConsumerChannelRequest.h | 57 - .../dts/model/CreateConsumerChannelResult.h | 59 - .../dts/model/CreateConsumerGroupRequest.h | 63 - .../dts/model/CreateConsumerGroupResult.h | 57 - ...CreateDedicatedClusterMonitorRuleRequest.h | 69 - .../CreateDedicatedClusterMonitorRuleResult.h | 57 - .../dts/model/CreateDtsInstanceRequest.h | 99 - .../dts/model/CreateDtsInstanceResult.h | 59 - .../dts/model/CreateJobMonitorRuleRequest.h | 66 - .../dts/model/CreateJobMonitorRuleResult.h | 63 - .../dts/model/CreateMigrationJobRequest.h | 60 - .../dts/model/CreateMigrationJobResult.h | 57 - .../model/CreateSubscriptionInstanceRequest.h | 69 - .../model/CreateSubscriptionInstanceResult.h | 57 - .../model/CreateSynchronizationJobRequest.h | 36 +- .../dts/model/DeleteConsumerChannelRequest.h | 51 - .../dts/model/DeleteConsumerChannelResult.h | 57 - .../dts/model/DeleteConsumerGroupRequest.h | 57 - .../dts/model/DeleteConsumerGroupResult.h | 55 - .../dts/model/DeleteDtsJobRequest.h | 51 - .../dts/model/DeleteDtsJobResult.h | 61 - .../dts/model/DeleteDtsJobsRequest.h | 45 - .../dts/model/DeleteDtsJobsResult.h | 61 - .../dts/model/DeleteMigrationJobRequest.h | 54 - .../dts/model/DeleteMigrationJobResult.h | 55 - .../model/DeleteSubscriptionInstanceRequest.h | 54 - .../model/DeleteSubscriptionInstanceResult.h | 55 - .../model/DeleteSynchronizationJobRequest.h | 9 - .../dts/model/DescribeCheckJobsRequest.h | 54 - .../dts/model/DescribeCheckJobsResult.h | 88 - .../model/DescribeClusterOperateLogsRequest.h | 66 - .../model/DescribeClusterOperateLogsResult.h | 80 - .../DescribeClusterUsedUtilizationRequest.h | 69 - .../DescribeClusterUsedUtilizationResult.h | 81 - .../model/DescribeConnectionStatusRequest.h | 108 - .../model/DescribeConnectionStatusResult.h | 59 - .../model/DescribeConsumerChannelRequest.h | 57 - .../dts/model/DescribeConsumerChannelResult.h | 74 - .../dts/model/DescribeConsumerGroupRequest.h | 60 - .../dts/model/DescribeConsumerGroupResult.h | 72 - .../dts/model/DescribeDTSIPRequest.h | 48 - .../dts/model/DescribeDTSIPResult.h | 59 - .../model/DescribeDataCheckReportUrlRequest.h | 48 - .../model/DescribeDataCheckReportUrlResult.h | 59 - .../DescribeDataCheckTableDetailsRequest.h | 54 - .../DescribeDataCheckTableDetailsResult.h | 92 - ...DescribeDataCheckTableDiffDetailsRequest.h | 54 - .../DescribeDataCheckTableDiffDetailsResult.h | 75 - ...scribeDedicatedClusterMonitorRuleRequest.h | 48 - ...escribeDedicatedClusterMonitorRuleResult.h | 71 - .../model/DescribeDedicatedClusterRequest.h | 48 - .../model/DescribeDedicatedClusterResult.h | 99 - .../DescribeDtsEtlJobVersionInfoRequest.h | 54 - .../DescribeDtsEtlJobVersionInfoResult.h | 82 - .../dts/model/DescribeDtsJobDetailRequest.h | 54 - .../dts/model/DescribeDtsJobDetailResult.h | 916 ----- .../dts/model/DescribeDtsJobsRequest.h | 93 - .../dts/model/DescribeDtsJobsResult.h | 578 --- .../dts/model/DescribeDtsServiceLogRequest.h | 66 - .../dts/model/DescribeDtsServiceLogResult.h | 75 - .../DescribeEndpointSwitchStatusRequest.h | 9 - .../DescribeEndpointSwitchStatusResult.h | 6 - .../dts/model/DescribeEtlJobLogsRequest.h | 45 - .../dts/model/DescribeEtlJobLogsResult.h | 72 - .../DescribeInitializationStatusRequest.h | 60 - .../DescribeInitializationStatusResult.h | 101 - .../dts/model/DescribeJobMonitorRuleRequest.h | 45 - .../dts/model/DescribeJobMonitorRuleResult.h | 79 - .../dts/model/DescribeMetricListRequest.h | 75 - .../dts/model/DescribeMetricListResult.h | 76 - .../model/DescribeMigrationJobAlertRequest.h | 57 - .../model/DescribeMigrationJobAlertResult.h | 69 - .../model/DescribeMigrationJobDetailRequest.h | 72 - .../model/DescribeMigrationJobDetailResult.h | 107 - .../model/DescribeMigrationJobStatusRequest.h | 57 - .../model/DescribeMigrationJobStatusResult.h | 146 - .../dts/model/DescribeMigrationJobsRequest.h | 70 - .../dts/model/DescribeMigrationJobsResult.h | 147 - .../dts/model/DescribePreCheckStatusRequest.h | 63 - .../dts/model/DescribePreCheckStatusResult.h | 155 - ...DescribeSubscriptionInstanceAlertRequest.h | 57 - .../DescribeSubscriptionInstanceAlertResult.h | 69 - ...escribeSubscriptionInstanceStatusRequest.h | 54 - ...DescribeSubscriptionInstanceStatusResult.h | 107 - .../DescribeSubscriptionInstancesRequest.h | 73 - .../DescribeSubscriptionInstancesResult.h | 110 - .../model/DescribeSubscriptionMetaRequest.h | 54 - .../model/DescribeSubscriptionMetaResult.h | 67 - .../DescribeSynchronizationJobAlertRequest.h | 9 - ...nchronizationJobReplicatorCompareRequest.h | 60 - ...ynchronizationJobReplicatorCompareResult.h | 57 - ...cribeSynchronizationJobStatusListRequest.h | 57 - ...scribeSynchronizationJobStatusListResult.h | 74 - .../DescribeSynchronizationJobStatusRequest.h | 9 - .../DescribeSynchronizationJobStatusResult.h | 89 +- .../DescribeSynchronizationJobsRequest.h | 31 +- .../model/DescribeSynchronizationJobsResult.h | 63 +- ...SynchronizationObjectModifyStatusRequest.h | 9 - ...eSynchronizationObjectModifyStatusResult.h | 38 +- .../dts/model/DescribeTagKeysRequest.h | 57 - .../dts/model/DescribeTagKeysResult.h | 59 - .../dts/model/DescribeTagValuesRequest.h | 60 - .../dts/model/DescribeTagValuesResult.h | 59 - .../dts/model/InitDtsRdsInstanceRequest.h | 60 - .../dts/model/InitDtsRdsInstanceResult.h | 61 - .../dts/model/ListDedicatedClusterRequest.h | 66 - .../dts/model/ListDedicatedClusterResult.h | 88 - .../dts/model/ListTagResourcesRequest.h | 58 - .../dts/model/ListTagResourcesResult.h | 66 - .../dts/model/ModifyConsumerChannelRequest.h | 60 - .../dts/model/ModifyConsumerChannelResult.h | 57 - .../ModifyConsumerGroupPasswordRequest.h | 69 - .../model/ModifyConsumerGroupPasswordResult.h | 55 - .../model/ModifyConsumptionTimestampRequest.h | 57 - .../model/ModifyConsumptionTimestampResult.h | 55 - .../dts/model/ModifyDedicatedClusterRequest.h | 57 - .../dts/model/ModifyDedicatedClusterResult.h | 59 - .../ModifyDtsJobDedicatedClusterRequest.h | 51 - .../ModifyDtsJobDedicatedClusterResult.h | 61 - .../dts/model/ModifyDtsJobDuLimitRequest.h | 51 - .../dts/model/ModifyDtsJobDuLimitResult.h | 61 - .../dts/model/ModifyDtsJobNameRequest.h | 48 - .../dts/model/ModifyDtsJobNameResult.h | 61 - .../dts/model/ModifyDtsJobPasswordRequest.h | 54 - .../dts/model/ModifyDtsJobPasswordResult.h | 61 - .../dts/model/ModifyDtsJobRequest.h | 75 - .../dts/model/ModifyDtsJobResult.h | 59 - .../model/ModifySubscriptionObjectRequest.h | 57 - .../model/ModifySubscriptionObjectResult.h | 55 - .../dts/model/ModifySubscriptionRequest.h | 57 - .../dts/model/ModifySubscriptionResult.h | 57 - .../ModifySynchronizationObjectRequest.h | 9 - .../dts/model/RenewInstanceRequest.h | 54 - .../dts/model/RenewInstanceResult.h | 69 - .../dts/model/ResetDtsJobRequest.h | 51 - .../dts/model/ResetDtsJobResult.h | 61 - .../model/ResetSynchronizationJobRequest.h | 9 - .../dts/model/ShieldPrecheckRequest.h | 48 - .../dts/model/ShieldPrecheckResult.h | 55 - .../dts/model/SkipPreCheckRequest.h | 57 - .../dts/model/SkipPreCheckResult.h | 69 - .../dts/model/StartDtsJobRequest.h | 57 - .../dts/model/StartDtsJobResult.h | 61 - .../dts/model/StartDtsJobsRequest.h | 45 - .../dts/model/StartDtsJobsResult.h | 61 - .../dts/model/StartMigrationJobRequest.h | 54 - .../dts/model/StartMigrationJobResult.h | 55 - .../model/StartSubscriptionInstanceRequest.h | 54 - .../model/StartSubscriptionInstanceResult.h | 57 - .../model/StartSynchronizationJobRequest.h | 9 - .../dts/model/StopDedicatedClusterRequest.h | 54 - .../dts/model/StopDedicatedClusterResult.h | 57 - .../dts/model/StopDtsJobRequest.h | 51 - .../alibabacloud/dts/model/StopDtsJobResult.h | 61 - .../dts/model/StopDtsJobsRequest.h | 45 - .../dts/model/StopDtsJobsResult.h | 61 - .../dts/model/StopMigrationJobRequest.h | 57 - .../dts/model/StopMigrationJobResult.h | 55 - .../dts/model/SummaryJobDetailRequest.h | 57 - .../dts/model/SummaryJobDetailResult.h | 65 - .../dts/model/SuspendDtsJobRequest.h | 51 - .../dts/model/SuspendDtsJobResult.h | 61 - .../dts/model/SuspendDtsJobsRequest.h | 45 - .../dts/model/SuspendDtsJobsResult.h | 61 - .../dts/model/SuspendMigrationJobRequest.h | 57 - .../dts/model/SuspendMigrationJobResult.h | 55 - .../model/SuspendSynchronizationJobRequest.h | 9 - .../SwitchPhysicalDtsJobToCloudRequest.h | 57 - .../model/SwitchPhysicalDtsJobToCloudResult.h | 61 - .../SwitchSynchronizationEndpointRequest.h | 33 +- .../dts/model/TagResourcesRequest.h | 55 - .../dts/model/TagResourcesResult.h | 55 - .../dts/model/TransferInstanceClassRequest.h | 51 - .../dts/model/TransferInstanceClassResult.h | 69 - .../dts/model/TransferPayTypeRequest.h | 54 - .../dts/model/TransferPayTypeResult.h | 69 - .../dts/model/UntagResourcesRequest.h | 54 - .../dts/model/UntagResourcesResult.h | 55 - .../dts/model/UpgradeTwoWayRequest.h | 48 - .../dts/model/UpgradeTwoWayResult.h | 61 - .../dts/model/WhiteIpListRequest.h | 51 - .../dts/model/WhiteIpListResult.h | 63 - dts/src/DtsClient.cc | 3282 +---------------- dts/src/model/ConfigureDtsJobRequest.cc | 423 --- dts/src/model/ConfigureDtsJobResult.cc | 86 - .../ConfigureMigrationJobAlertRequest.cc | 117 - .../model/ConfigureMigrationJobAlertResult.cc | 65 - dts/src/model/ConfigureMigrationJobRequest.cc | 333 -- dts/src/model/ConfigureMigrationJobResult.cc | 65 - ...nfigureSubscriptionInstanceAlertRequest.cc | 117 - ...onfigureSubscriptionInstanceAlertResult.cc | 65 - .../ConfigureSubscriptionInstanceRequest.cc | 225 -- .../ConfigureSubscriptionInstanceResult.cc | 65 - dts/src/model/ConfigureSubscriptionRequest.cc | 297 -- dts/src/model/ConfigureSubscriptionResult.cc | 86 - ...ConfigureSynchronizationJobAlertRequest.cc | 65 +- ...chronizationJobReplicatorCompareRequest.cc | 99 - ...nchronizationJobReplicatorCompareResult.cc | 65 - .../ConfigureSynchronizationJobRequest.cc | 49 +- dts/src/model/CountJobByConditionRequest.cc | 108 - dts/src/model/CountJobByConditionResult.cc | 93 - dts/src/model/CreateConsumerChannelRequest.cc | 81 - dts/src/model/CreateConsumerChannelResult.cc | 79 - dts/src/model/CreateConsumerGroupRequest.cc | 99 - dts/src/model/CreateConsumerGroupResult.cc | 72 - ...reateDedicatedClusterMonitorRuleRequest.cc | 117 - ...CreateDedicatedClusterMonitorRuleResult.cc | 72 - dts/src/model/CreateDtsInstanceRequest.cc | 207 -- dts/src/model/CreateDtsInstanceResult.cc | 79 - dts/src/model/CreateJobMonitorRuleRequest.cc | 108 - dts/src/model/CreateJobMonitorRuleResult.cc | 93 - dts/src/model/CreateMigrationJobRequest.cc | 90 - dts/src/model/CreateMigrationJobResult.cc | 72 - .../CreateSubscriptionInstanceRequest.cc | 117 - .../model/CreateSubscriptionInstanceResult.cc | 72 - .../model/CreateSynchronizationJobRequest.cc | 102 +- dts/src/model/DeleteConsumerChannelRequest.cc | 63 - dts/src/model/DeleteConsumerChannelResult.cc | 72 - dts/src/model/DeleteConsumerGroupRequest.cc | 81 - dts/src/model/DeleteConsumerGroupResult.cc | 65 - dts/src/model/DeleteDtsJobRequest.cc | 63 - dts/src/model/DeleteDtsJobResult.cc | 86 - dts/src/model/DeleteDtsJobsRequest.cc | 45 - dts/src/model/DeleteDtsJobsResult.cc | 86 - dts/src/model/DeleteMigrationJobRequest.cc | 72 - dts/src/model/DeleteMigrationJobResult.cc | 65 - .../DeleteSubscriptionInstanceRequest.cc | 72 - .../model/DeleteSubscriptionInstanceResult.cc | 65 - .../model/DeleteSynchronizationJobRequest.cc | 29 +- dts/src/model/DescribeCheckJobsRequest.cc | 72 - dts/src/model/DescribeCheckJobsResult.cc | 150 - .../DescribeClusterOperateLogsRequest.cc | 108 - .../model/DescribeClusterOperateLogsResult.cc | 134 - .../DescribeClusterUsedUtilizationRequest.cc | 117 - .../DescribeClusterUsedUtilizationResult.cc | 156 - .../model/DescribeConnectionStatusRequest.cc | 234 -- .../model/DescribeConnectionStatusResult.cc | 79 - .../model/DescribeConsumerChannelRequest.cc | 81 - .../model/DescribeConsumerChannelResult.cc | 116 - dts/src/model/DescribeConsumerGroupRequest.cc | 90 - dts/src/model/DescribeConsumerGroupResult.cc | 109 - dts/src/model/DescribeDTSIPRequest.cc | 54 - dts/src/model/DescribeDTSIPResult.cc | 79 - .../DescribeDataCheckReportUrlRequest.cc | 54 - .../model/DescribeDataCheckReportUrlResult.cc | 79 - .../DescribeDataCheckTableDetailsRequest.cc | 72 - .../DescribeDataCheckTableDetailsResult.cc | 173 - ...escribeDataCheckTableDiffDetailsRequest.cc | 72 - ...DescribeDataCheckTableDiffDetailsResult.cc | 124 - ...cribeDedicatedClusterMonitorRuleRequest.cc | 54 - ...scribeDedicatedClusterMonitorRuleResult.cc | 121 - .../model/DescribeDedicatedClusterRequest.cc | 54 - .../model/DescribeDedicatedClusterResult.cc | 219 -- .../DescribeDtsEtlJobVersionInfoRequest.cc | 72 - .../DescribeDtsEtlJobVersionInfoResult.cc | 138 - dts/src/model/DescribeDtsJobDetailRequest.cc | 72 - dts/src/model/DescribeDtsJobDetailResult.cc | 1517 -------- dts/src/model/DescribeDtsJobsRequest.cc | 189 - dts/src/model/DescribeDtsJobsResult.cc | 842 ----- dts/src/model/DescribeDtsServiceLogRequest.cc | 108 - dts/src/model/DescribeDtsServiceLogResult.cc | 124 - .../DescribeEndpointSwitchStatusRequest.cc | 29 +- .../DescribeEndpointSwitchStatusResult.cc | 21 - dts/src/model/DescribeEtlJobLogsRequest.cc | 45 - dts/src/model/DescribeEtlJobLogsResult.cc | 109 - .../DescribeInitializationStatusRequest.cc | 90 - .../DescribeInitializationStatusResult.cc | 158 - .../model/DescribeJobMonitorRuleRequest.cc | 45 - dts/src/model/DescribeJobMonitorRuleResult.cc | 130 - dts/src/model/DescribeMetricListRequest.cc | 135 - dts/src/model/DescribeMetricListResult.cc | 129 - .../model/DescribeMigrationJobAlertRequest.cc | 81 - .../model/DescribeMigrationJobAlertResult.cc | 114 - .../DescribeMigrationJobDetailRequest.cc | 126 - .../model/DescribeMigrationJobDetailResult.cc | 179 - .../DescribeMigrationJobStatusRequest.cc | 81 - .../model/DescribeMigrationJobStatusResult.cc | 238 -- dts/src/model/DescribeMigrationJobsRequest.cc | 113 - dts/src/model/DescribeMigrationJobsResult.cc | 207 -- .../model/DescribePreCheckStatusRequest.cc | 99 - dts/src/model/DescribePreCheckStatusResult.cc | 285 -- ...escribeSubscriptionInstanceAlertRequest.cc | 81 - ...DescribeSubscriptionInstanceAlertResult.cc | 114 - ...scribeSubscriptionInstanceStatusRequest.cc | 72 - ...escribeSubscriptionInstanceStatusResult.cc | 192 - .../DescribeSubscriptionInstancesRequest.cc | 122 - .../DescribeSubscriptionInstancesResult.cc | 161 - .../model/DescribeSubscriptionMetaRequest.cc | 72 - .../model/DescribeSubscriptionMetaResult.cc | 93 - .../DescribeSynchronizationJobAlertRequest.cc | 29 +- ...chronizationJobReplicatorCompareRequest.cc | 90 - ...nchronizationJobReplicatorCompareResult.cc | 72 - ...ribeSynchronizationJobStatusListRequest.cc | 81 - ...cribeSynchronizationJobStatusListResult.cc | 111 - ...DescribeSynchronizationJobStatusRequest.cc | 29 +- .../DescribeSynchronizationJobStatusResult.cc | 189 +- .../DescribeSynchronizationJobsRequest.cc | 62 +- .../DescribeSynchronizationJobsResult.cc | 128 +- ...ynchronizationObjectModifyStatusRequest.cc | 29 +- ...SynchronizationObjectModifyStatusResult.cc | 65 +- dts/src/model/DescribeTagKeysRequest.cc | 81 - dts/src/model/DescribeTagKeysResult.cc | 80 - dts/src/model/DescribeTagValuesRequest.cc | 90 - dts/src/model/DescribeTagValuesResult.cc | 80 - dts/src/model/InitDtsRdsInstanceRequest.cc | 90 - dts/src/model/InitDtsRdsInstanceResult.cc | 86 - dts/src/model/ListDedicatedClusterRequest.cc | 108 - dts/src/model/ListDedicatedClusterResult.cc | 144 - dts/src/model/ListTagResourcesRequest.cc | 76 - dts/src/model/ListTagResourcesResult.cc | 91 - dts/src/model/ModifyConsumerChannelRequest.cc | 90 - dts/src/model/ModifyConsumerChannelResult.cc | 72 - .../ModifyConsumerGroupPasswordRequest.cc | 117 - .../ModifyConsumerGroupPasswordResult.cc | 65 - .../ModifyConsumptionTimestampRequest.cc | 81 - .../model/ModifyConsumptionTimestampResult.cc | 65 - .../model/ModifyDedicatedClusterRequest.cc | 81 - dts/src/model/ModifyDedicatedClusterResult.cc | 79 - .../ModifyDtsJobDedicatedClusterRequest.cc | 63 - .../ModifyDtsJobDedicatedClusterResult.cc | 86 - dts/src/model/ModifyDtsJobDuLimitRequest.cc | 63 - dts/src/model/ModifyDtsJobDuLimitResult.cc | 86 - dts/src/model/ModifyDtsJobNameRequest.cc | 54 - dts/src/model/ModifyDtsJobNameResult.cc | 86 - dts/src/model/ModifyDtsJobPasswordRequest.cc | 72 - dts/src/model/ModifyDtsJobPasswordResult.cc | 86 - dts/src/model/ModifyDtsJobRequest.cc | 135 - dts/src/model/ModifyDtsJobResult.cc | 79 - .../model/ModifySubscriptionObjectRequest.cc | 81 - .../model/ModifySubscriptionObjectResult.cc | 65 - dts/src/model/ModifySubscriptionRequest.cc | 81 - dts/src/model/ModifySubscriptionResult.cc | 72 - .../ModifySynchronizationObjectRequest.cc | 31 +- dts/src/model/RenewInstanceRequest.cc | 72 - dts/src/model/RenewInstanceResult.cc | 114 - dts/src/model/ResetDtsJobRequest.cc | 63 - dts/src/model/ResetDtsJobResult.cc | 86 - .../model/ResetSynchronizationJobRequest.cc | 29 +- dts/src/model/ShieldPrecheckRequest.cc | 54 - dts/src/model/ShieldPrecheckResult.cc | 65 - dts/src/model/SkipPreCheckRequest.cc | 81 - dts/src/model/SkipPreCheckResult.cc | 114 - dts/src/model/StartDtsJobRequest.cc | 81 - dts/src/model/StartDtsJobResult.cc | 86 - dts/src/model/StartDtsJobsRequest.cc | 45 - dts/src/model/StartDtsJobsResult.cc | 86 - dts/src/model/StartMigrationJobRequest.cc | 72 - dts/src/model/StartMigrationJobResult.cc | 65 - .../model/StartSubscriptionInstanceRequest.cc | 72 - .../model/StartSubscriptionInstanceResult.cc | 72 - .../model/StartSynchronizationJobRequest.cc | 29 +- dts/src/model/StopDedicatedClusterRequest.cc | 72 - dts/src/model/StopDedicatedClusterResult.cc | 72 - dts/src/model/StopDtsJobRequest.cc | 63 - dts/src/model/StopDtsJobResult.cc | 86 - dts/src/model/StopDtsJobsRequest.cc | 45 - dts/src/model/StopDtsJobsResult.cc | 86 - dts/src/model/StopMigrationJobRequest.cc | 81 - dts/src/model/StopMigrationJobResult.cc | 65 - dts/src/model/SummaryJobDetailRequest.cc | 81 - dts/src/model/SummaryJobDetailResult.cc | 89 - dts/src/model/SuspendDtsJobRequest.cc | 63 - dts/src/model/SuspendDtsJobResult.cc | 86 - dts/src/model/SuspendDtsJobsRequest.cc | 45 - dts/src/model/SuspendDtsJobsResult.cc | 86 - dts/src/model/SuspendMigrationJobRequest.cc | 81 - dts/src/model/SuspendMigrationJobResult.cc | 65 - .../model/SuspendSynchronizationJobRequest.cc | 29 +- .../SwitchPhysicalDtsJobToCloudRequest.cc | 81 - .../SwitchPhysicalDtsJobToCloudResult.cc | 86 - .../SwitchSynchronizationEndpointRequest.cc | 101 +- dts/src/model/TagResourcesRequest.cc | 67 - dts/src/model/TagResourcesResult.cc | 65 - dts/src/model/TransferInstanceClassRequest.cc | 63 - dts/src/model/TransferInstanceClassResult.cc | 114 - dts/src/model/TransferPayTypeRequest.cc | 72 - dts/src/model/TransferPayTypeResult.cc | 114 - dts/src/model/UntagResourcesRequest.cc | 70 - dts/src/model/UntagResourcesResult.cc | 65 - dts/src/model/UpgradeTwoWayRequest.cc | 54 - dts/src/model/UpgradeTwoWayResult.cc | 86 - dts/src/model/WhiteIpListRequest.cc | 63 - dts/src/model/WhiteIpListResult.cc | 93 - 404 files changed, 373 insertions(+), 38639 deletions(-) delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSubscriptionResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CountJobByConditionRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CountJobByConditionResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateConsumerChannelRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateConsumerChannelResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateConsumerGroupRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateConsumerGroupResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateDtsInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateDtsInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateJobMonitorRuleRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateJobMonitorRuleResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteConsumerChannelRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteConsumerChannelResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteConsumerGroupResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteDtsJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteDtsJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeCheckJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeCheckJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConnectionStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConnectionStatusResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConsumerChannelRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConsumerChannelResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConsumerGroupRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeConsumerGroupResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDTSIPRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDTSIPResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDedicatedClusterRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDedicatedClusterResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsServiceLogRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeDtsServiceLogResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeEtlJobLogsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeEtlJobLogsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeInitializationStatusResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMetricListRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMetricListResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeMigrationJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribePreCheckStatusResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeTagKeysRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeTagKeysResult.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeTagValuesRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/DescribeTagValuesResult.h delete mode 100644 dts/include/alibabacloud/dts/model/InitDtsRdsInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/InitDtsRdsInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ListDedicatedClusterRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ListDedicatedClusterResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ListTagResourcesRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ListTagResourcesResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumerChannelRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumerChannelResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDedicatedClusterRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDedicatedClusterResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobNameResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifyDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifySubscriptionRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ModifySubscriptionResult.h delete mode 100644 dts/include/alibabacloud/dts/model/RenewInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/RenewInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ResetDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ResetDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/ShieldPrecheckRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/ShieldPrecheckResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SkipPreCheckRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SkipPreCheckResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StartDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StartDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StartDtsJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StartDtsJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StartMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StartMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDedicatedClusterRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDedicatedClusterResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDtsJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StopDtsJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/StopMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/StopMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SummaryJobDetailRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SummaryJobDetailResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendDtsJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendDtsJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendDtsJobsRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendDtsJobsResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendMigrationJobRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SuspendMigrationJobResult.h delete mode 100644 dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudResult.h delete mode 100644 dts/include/alibabacloud/dts/model/TagResourcesRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/TagResourcesResult.h delete mode 100644 dts/include/alibabacloud/dts/model/TransferInstanceClassRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/TransferInstanceClassResult.h delete mode 100644 dts/include/alibabacloud/dts/model/TransferPayTypeRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/TransferPayTypeResult.h delete mode 100644 dts/include/alibabacloud/dts/model/UntagResourcesRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/UntagResourcesResult.h delete mode 100644 dts/include/alibabacloud/dts/model/UpgradeTwoWayRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/UpgradeTwoWayResult.h delete mode 100644 dts/include/alibabacloud/dts/model/WhiteIpListRequest.h delete mode 100644 dts/include/alibabacloud/dts/model/WhiteIpListResult.h delete mode 100644 dts/src/model/ConfigureDtsJobRequest.cc delete mode 100644 dts/src/model/ConfigureDtsJobResult.cc delete mode 100644 dts/src/model/ConfigureMigrationJobAlertRequest.cc delete mode 100644 dts/src/model/ConfigureMigrationJobAlertResult.cc delete mode 100644 dts/src/model/ConfigureMigrationJobRequest.cc delete mode 100644 dts/src/model/ConfigureMigrationJobResult.cc delete mode 100644 dts/src/model/ConfigureSubscriptionInstanceAlertRequest.cc delete mode 100644 dts/src/model/ConfigureSubscriptionInstanceAlertResult.cc delete mode 100644 dts/src/model/ConfigureSubscriptionInstanceRequest.cc delete mode 100644 dts/src/model/ConfigureSubscriptionInstanceResult.cc delete mode 100644 dts/src/model/ConfigureSubscriptionRequest.cc delete mode 100644 dts/src/model/ConfigureSubscriptionResult.cc delete mode 100644 dts/src/model/ConfigureSynchronizationJobReplicatorCompareRequest.cc delete mode 100644 dts/src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc delete mode 100644 dts/src/model/CountJobByConditionRequest.cc delete mode 100644 dts/src/model/CountJobByConditionResult.cc delete mode 100644 dts/src/model/CreateConsumerChannelRequest.cc delete mode 100644 dts/src/model/CreateConsumerChannelResult.cc delete mode 100644 dts/src/model/CreateConsumerGroupRequest.cc delete mode 100644 dts/src/model/CreateConsumerGroupResult.cc delete mode 100644 dts/src/model/CreateDedicatedClusterMonitorRuleRequest.cc delete mode 100644 dts/src/model/CreateDedicatedClusterMonitorRuleResult.cc delete mode 100644 dts/src/model/CreateDtsInstanceRequest.cc delete mode 100644 dts/src/model/CreateDtsInstanceResult.cc delete mode 100644 dts/src/model/CreateJobMonitorRuleRequest.cc delete mode 100644 dts/src/model/CreateJobMonitorRuleResult.cc delete mode 100644 dts/src/model/CreateMigrationJobRequest.cc delete mode 100644 dts/src/model/CreateMigrationJobResult.cc delete mode 100644 dts/src/model/CreateSubscriptionInstanceRequest.cc delete mode 100644 dts/src/model/CreateSubscriptionInstanceResult.cc delete mode 100644 dts/src/model/DeleteConsumerChannelRequest.cc delete mode 100644 dts/src/model/DeleteConsumerChannelResult.cc delete mode 100644 dts/src/model/DeleteConsumerGroupRequest.cc delete mode 100644 dts/src/model/DeleteConsumerGroupResult.cc delete mode 100644 dts/src/model/DeleteDtsJobRequest.cc delete mode 100644 dts/src/model/DeleteDtsJobResult.cc delete mode 100644 dts/src/model/DeleteDtsJobsRequest.cc delete mode 100644 dts/src/model/DeleteDtsJobsResult.cc delete mode 100644 dts/src/model/DeleteMigrationJobRequest.cc delete mode 100644 dts/src/model/DeleteMigrationJobResult.cc delete mode 100644 dts/src/model/DeleteSubscriptionInstanceRequest.cc delete mode 100644 dts/src/model/DeleteSubscriptionInstanceResult.cc delete mode 100644 dts/src/model/DescribeCheckJobsRequest.cc delete mode 100644 dts/src/model/DescribeCheckJobsResult.cc delete mode 100644 dts/src/model/DescribeClusterOperateLogsRequest.cc delete mode 100644 dts/src/model/DescribeClusterOperateLogsResult.cc delete mode 100644 dts/src/model/DescribeClusterUsedUtilizationRequest.cc delete mode 100644 dts/src/model/DescribeClusterUsedUtilizationResult.cc delete mode 100644 dts/src/model/DescribeConnectionStatusRequest.cc delete mode 100644 dts/src/model/DescribeConnectionStatusResult.cc delete mode 100644 dts/src/model/DescribeConsumerChannelRequest.cc delete mode 100644 dts/src/model/DescribeConsumerChannelResult.cc delete mode 100644 dts/src/model/DescribeConsumerGroupRequest.cc delete mode 100644 dts/src/model/DescribeConsumerGroupResult.cc delete mode 100644 dts/src/model/DescribeDTSIPRequest.cc delete mode 100644 dts/src/model/DescribeDTSIPResult.cc delete mode 100644 dts/src/model/DescribeDataCheckReportUrlRequest.cc delete mode 100644 dts/src/model/DescribeDataCheckReportUrlResult.cc delete mode 100644 dts/src/model/DescribeDataCheckTableDetailsRequest.cc delete mode 100644 dts/src/model/DescribeDataCheckTableDetailsResult.cc delete mode 100644 dts/src/model/DescribeDataCheckTableDiffDetailsRequest.cc delete mode 100644 dts/src/model/DescribeDataCheckTableDiffDetailsResult.cc delete mode 100644 dts/src/model/DescribeDedicatedClusterMonitorRuleRequest.cc delete mode 100644 dts/src/model/DescribeDedicatedClusterMonitorRuleResult.cc delete mode 100644 dts/src/model/DescribeDedicatedClusterRequest.cc delete mode 100644 dts/src/model/DescribeDedicatedClusterResult.cc delete mode 100644 dts/src/model/DescribeDtsEtlJobVersionInfoRequest.cc delete mode 100644 dts/src/model/DescribeDtsEtlJobVersionInfoResult.cc delete mode 100644 dts/src/model/DescribeDtsJobDetailRequest.cc delete mode 100644 dts/src/model/DescribeDtsJobDetailResult.cc delete mode 100644 dts/src/model/DescribeDtsJobsRequest.cc delete mode 100644 dts/src/model/DescribeDtsJobsResult.cc delete mode 100644 dts/src/model/DescribeDtsServiceLogRequest.cc delete mode 100644 dts/src/model/DescribeDtsServiceLogResult.cc delete mode 100644 dts/src/model/DescribeEtlJobLogsRequest.cc delete mode 100644 dts/src/model/DescribeEtlJobLogsResult.cc delete mode 100644 dts/src/model/DescribeInitializationStatusRequest.cc delete mode 100644 dts/src/model/DescribeInitializationStatusResult.cc delete mode 100644 dts/src/model/DescribeJobMonitorRuleRequest.cc delete mode 100644 dts/src/model/DescribeJobMonitorRuleResult.cc delete mode 100644 dts/src/model/DescribeMetricListRequest.cc delete mode 100644 dts/src/model/DescribeMetricListResult.cc delete mode 100644 dts/src/model/DescribeMigrationJobAlertRequest.cc delete mode 100644 dts/src/model/DescribeMigrationJobAlertResult.cc delete mode 100644 dts/src/model/DescribeMigrationJobDetailRequest.cc delete mode 100644 dts/src/model/DescribeMigrationJobDetailResult.cc delete mode 100644 dts/src/model/DescribeMigrationJobStatusRequest.cc delete mode 100644 dts/src/model/DescribeMigrationJobStatusResult.cc delete mode 100644 dts/src/model/DescribeMigrationJobsRequest.cc delete mode 100644 dts/src/model/DescribeMigrationJobsResult.cc delete mode 100644 dts/src/model/DescribePreCheckStatusRequest.cc delete mode 100644 dts/src/model/DescribePreCheckStatusResult.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstanceAlertRequest.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstanceAlertResult.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstanceStatusRequest.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstanceStatusResult.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstancesRequest.cc delete mode 100644 dts/src/model/DescribeSubscriptionInstancesResult.cc delete mode 100644 dts/src/model/DescribeSubscriptionMetaRequest.cc delete mode 100644 dts/src/model/DescribeSubscriptionMetaResult.cc delete mode 100644 dts/src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc delete mode 100644 dts/src/model/DescribeSynchronizationJobReplicatorCompareResult.cc delete mode 100644 dts/src/model/DescribeSynchronizationJobStatusListRequest.cc delete mode 100644 dts/src/model/DescribeSynchronizationJobStatusListResult.cc delete mode 100644 dts/src/model/DescribeTagKeysRequest.cc delete mode 100644 dts/src/model/DescribeTagKeysResult.cc delete mode 100644 dts/src/model/DescribeTagValuesRequest.cc delete mode 100644 dts/src/model/DescribeTagValuesResult.cc delete mode 100644 dts/src/model/InitDtsRdsInstanceRequest.cc delete mode 100644 dts/src/model/InitDtsRdsInstanceResult.cc delete mode 100644 dts/src/model/ListDedicatedClusterRequest.cc delete mode 100644 dts/src/model/ListDedicatedClusterResult.cc delete mode 100644 dts/src/model/ListTagResourcesRequest.cc delete mode 100644 dts/src/model/ListTagResourcesResult.cc delete mode 100644 dts/src/model/ModifyConsumerChannelRequest.cc delete mode 100644 dts/src/model/ModifyConsumerChannelResult.cc delete mode 100644 dts/src/model/ModifyConsumerGroupPasswordRequest.cc delete mode 100644 dts/src/model/ModifyConsumerGroupPasswordResult.cc delete mode 100644 dts/src/model/ModifyConsumptionTimestampRequest.cc delete mode 100644 dts/src/model/ModifyConsumptionTimestampResult.cc delete mode 100644 dts/src/model/ModifyDedicatedClusterRequest.cc delete mode 100644 dts/src/model/ModifyDedicatedClusterResult.cc delete mode 100644 dts/src/model/ModifyDtsJobDedicatedClusterRequest.cc delete mode 100644 dts/src/model/ModifyDtsJobDedicatedClusterResult.cc delete mode 100644 dts/src/model/ModifyDtsJobDuLimitRequest.cc delete mode 100644 dts/src/model/ModifyDtsJobDuLimitResult.cc delete mode 100644 dts/src/model/ModifyDtsJobNameRequest.cc delete mode 100644 dts/src/model/ModifyDtsJobNameResult.cc delete mode 100644 dts/src/model/ModifyDtsJobPasswordRequest.cc delete mode 100644 dts/src/model/ModifyDtsJobPasswordResult.cc delete mode 100644 dts/src/model/ModifyDtsJobRequest.cc delete mode 100644 dts/src/model/ModifyDtsJobResult.cc delete mode 100644 dts/src/model/ModifySubscriptionObjectRequest.cc delete mode 100644 dts/src/model/ModifySubscriptionObjectResult.cc delete mode 100644 dts/src/model/ModifySubscriptionRequest.cc delete mode 100644 dts/src/model/ModifySubscriptionResult.cc delete mode 100644 dts/src/model/RenewInstanceRequest.cc delete mode 100644 dts/src/model/RenewInstanceResult.cc delete mode 100644 dts/src/model/ResetDtsJobRequest.cc delete mode 100644 dts/src/model/ResetDtsJobResult.cc delete mode 100644 dts/src/model/ShieldPrecheckRequest.cc delete mode 100644 dts/src/model/ShieldPrecheckResult.cc delete mode 100644 dts/src/model/SkipPreCheckRequest.cc delete mode 100644 dts/src/model/SkipPreCheckResult.cc delete mode 100644 dts/src/model/StartDtsJobRequest.cc delete mode 100644 dts/src/model/StartDtsJobResult.cc delete mode 100644 dts/src/model/StartDtsJobsRequest.cc delete mode 100644 dts/src/model/StartDtsJobsResult.cc delete mode 100644 dts/src/model/StartMigrationJobRequest.cc delete mode 100644 dts/src/model/StartMigrationJobResult.cc delete mode 100644 dts/src/model/StartSubscriptionInstanceRequest.cc delete mode 100644 dts/src/model/StartSubscriptionInstanceResult.cc delete mode 100644 dts/src/model/StopDedicatedClusterRequest.cc delete mode 100644 dts/src/model/StopDedicatedClusterResult.cc delete mode 100644 dts/src/model/StopDtsJobRequest.cc delete mode 100644 dts/src/model/StopDtsJobResult.cc delete mode 100644 dts/src/model/StopDtsJobsRequest.cc delete mode 100644 dts/src/model/StopDtsJobsResult.cc delete mode 100644 dts/src/model/StopMigrationJobRequest.cc delete mode 100644 dts/src/model/StopMigrationJobResult.cc delete mode 100644 dts/src/model/SummaryJobDetailRequest.cc delete mode 100644 dts/src/model/SummaryJobDetailResult.cc delete mode 100644 dts/src/model/SuspendDtsJobRequest.cc delete mode 100644 dts/src/model/SuspendDtsJobResult.cc delete mode 100644 dts/src/model/SuspendDtsJobsRequest.cc delete mode 100644 dts/src/model/SuspendDtsJobsResult.cc delete mode 100644 dts/src/model/SuspendMigrationJobRequest.cc delete mode 100644 dts/src/model/SuspendMigrationJobResult.cc delete mode 100644 dts/src/model/SwitchPhysicalDtsJobToCloudRequest.cc delete mode 100644 dts/src/model/SwitchPhysicalDtsJobToCloudResult.cc delete mode 100644 dts/src/model/TagResourcesRequest.cc delete mode 100644 dts/src/model/TagResourcesResult.cc delete mode 100644 dts/src/model/TransferInstanceClassRequest.cc delete mode 100644 dts/src/model/TransferInstanceClassResult.cc delete mode 100644 dts/src/model/TransferPayTypeRequest.cc delete mode 100644 dts/src/model/TransferPayTypeResult.cc delete mode 100644 dts/src/model/UntagResourcesRequest.cc delete mode 100644 dts/src/model/UntagResourcesResult.cc delete mode 100644 dts/src/model/UpgradeTwoWayRequest.cc delete mode 100644 dts/src/model/UpgradeTwoWayResult.cc delete mode 100644 dts/src/model/WhiteIpListRequest.cc delete mode 100644 dts/src/model/WhiteIpListResult.cc diff --git a/VERSION b/VERSION index 80599ea7b..8b487a390 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1664 \ No newline at end of file +1.36.1665 \ No newline at end of file diff --git a/dts/CMakeLists.txt b/dts/CMakeLists.txt index b84255e11..9a50f558e 100644 --- a/dts/CMakeLists.txt +++ b/dts/CMakeLists.txt @@ -21,429 +21,65 @@ set(dts_public_header include/alibabacloud/dts/DtsExport.h ) set(dts_public_header_model - include/alibabacloud/dts/model/ConfigureDtsJobRequest.h - include/alibabacloud/dts/model/ConfigureDtsJobResult.h - include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h - include/alibabacloud/dts/model/ConfigureMigrationJobResult.h - include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h - include/alibabacloud/dts/model/ConfigureMigrationJobAlertResult.h - include/alibabacloud/dts/model/ConfigureSubscriptionRequest.h - include/alibabacloud/dts/model/ConfigureSubscriptionResult.h - include/alibabacloud/dts/model/ConfigureSubscriptionInstanceRequest.h - include/alibabacloud/dts/model/ConfigureSubscriptionInstanceResult.h - include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertRequest.h - include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertResult.h include/alibabacloud/dts/model/ConfigureSynchronizationJobRequest.h include/alibabacloud/dts/model/ConfigureSynchronizationJobResult.h include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertRequest.h include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertResult.h - include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareRequest.h - include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h - include/alibabacloud/dts/model/CountJobByConditionRequest.h - include/alibabacloud/dts/model/CountJobByConditionResult.h - include/alibabacloud/dts/model/CreateConsumerChannelRequest.h - include/alibabacloud/dts/model/CreateConsumerChannelResult.h - include/alibabacloud/dts/model/CreateConsumerGroupRequest.h - include/alibabacloud/dts/model/CreateConsumerGroupResult.h - include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleRequest.h - include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleResult.h - include/alibabacloud/dts/model/CreateDtsInstanceRequest.h - include/alibabacloud/dts/model/CreateDtsInstanceResult.h - include/alibabacloud/dts/model/CreateJobMonitorRuleRequest.h - include/alibabacloud/dts/model/CreateJobMonitorRuleResult.h - include/alibabacloud/dts/model/CreateMigrationJobRequest.h - include/alibabacloud/dts/model/CreateMigrationJobResult.h - include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h - include/alibabacloud/dts/model/CreateSubscriptionInstanceResult.h include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h include/alibabacloud/dts/model/CreateSynchronizationJobResult.h - include/alibabacloud/dts/model/DeleteConsumerChannelRequest.h - include/alibabacloud/dts/model/DeleteConsumerChannelResult.h - include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h - include/alibabacloud/dts/model/DeleteConsumerGroupResult.h - include/alibabacloud/dts/model/DeleteDtsJobRequest.h - include/alibabacloud/dts/model/DeleteDtsJobResult.h - include/alibabacloud/dts/model/DeleteDtsJobsRequest.h - include/alibabacloud/dts/model/DeleteDtsJobsResult.h - include/alibabacloud/dts/model/DeleteMigrationJobRequest.h - include/alibabacloud/dts/model/DeleteMigrationJobResult.h - include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h - include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h include/alibabacloud/dts/model/DeleteSynchronizationJobResult.h - include/alibabacloud/dts/model/DescribeCheckJobsRequest.h - include/alibabacloud/dts/model/DescribeCheckJobsResult.h - include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h - include/alibabacloud/dts/model/DescribeClusterOperateLogsResult.h - include/alibabacloud/dts/model/DescribeClusterUsedUtilizationRequest.h - include/alibabacloud/dts/model/DescribeClusterUsedUtilizationResult.h - include/alibabacloud/dts/model/DescribeConnectionStatusRequest.h - include/alibabacloud/dts/model/DescribeConnectionStatusResult.h - include/alibabacloud/dts/model/DescribeConsumerChannelRequest.h - include/alibabacloud/dts/model/DescribeConsumerChannelResult.h - include/alibabacloud/dts/model/DescribeConsumerGroupRequest.h - include/alibabacloud/dts/model/DescribeConsumerGroupResult.h - include/alibabacloud/dts/model/DescribeDTSIPRequest.h - include/alibabacloud/dts/model/DescribeDTSIPResult.h - include/alibabacloud/dts/model/DescribeDataCheckReportUrlRequest.h - include/alibabacloud/dts/model/DescribeDataCheckReportUrlResult.h - include/alibabacloud/dts/model/DescribeDataCheckTableDetailsRequest.h - include/alibabacloud/dts/model/DescribeDataCheckTableDetailsResult.h - include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsRequest.h - include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsResult.h - include/alibabacloud/dts/model/DescribeDedicatedClusterRequest.h - include/alibabacloud/dts/model/DescribeDedicatedClusterResult.h - include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleRequest.h - include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleResult.h - include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoRequest.h - include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoResult.h - include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h - include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h - include/alibabacloud/dts/model/DescribeDtsJobsRequest.h - include/alibabacloud/dts/model/DescribeDtsJobsResult.h - include/alibabacloud/dts/model/DescribeDtsServiceLogRequest.h - include/alibabacloud/dts/model/DescribeDtsServiceLogResult.h include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h - include/alibabacloud/dts/model/DescribeEtlJobLogsRequest.h - include/alibabacloud/dts/model/DescribeEtlJobLogsResult.h - include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h - include/alibabacloud/dts/model/DescribeInitializationStatusResult.h - include/alibabacloud/dts/model/DescribeJobMonitorRuleRequest.h - include/alibabacloud/dts/model/DescribeJobMonitorRuleResult.h - include/alibabacloud/dts/model/DescribeMetricListRequest.h - include/alibabacloud/dts/model/DescribeMetricListResult.h - include/alibabacloud/dts/model/DescribeMigrationJobAlertRequest.h - include/alibabacloud/dts/model/DescribeMigrationJobAlertResult.h - include/alibabacloud/dts/model/DescribeMigrationJobDetailRequest.h - include/alibabacloud/dts/model/DescribeMigrationJobDetailResult.h - include/alibabacloud/dts/model/DescribeMigrationJobStatusRequest.h - include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h - include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h - include/alibabacloud/dts/model/DescribeMigrationJobsResult.h - include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h - include/alibabacloud/dts/model/DescribePreCheckStatusResult.h - include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h - include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h - include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h - include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h - include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h - include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h - include/alibabacloud/dts/model/DescribeSubscriptionMetaRequest.h - include/alibabacloud/dts/model/DescribeSubscriptionMetaResult.h include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h include/alibabacloud/dts/model/DescribeSynchronizationJobAlertResult.h - include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h - include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareResult.h include/alibabacloud/dts/model/DescribeSynchronizationJobStatusRequest.h include/alibabacloud/dts/model/DescribeSynchronizationJobStatusResult.h - include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListRequest.h - include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListResult.h include/alibabacloud/dts/model/DescribeSynchronizationJobsRequest.h include/alibabacloud/dts/model/DescribeSynchronizationJobsResult.h include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusRequest.h include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusResult.h - include/alibabacloud/dts/model/DescribeTagKeysRequest.h - include/alibabacloud/dts/model/DescribeTagKeysResult.h - include/alibabacloud/dts/model/DescribeTagValuesRequest.h - include/alibabacloud/dts/model/DescribeTagValuesResult.h - include/alibabacloud/dts/model/InitDtsRdsInstanceRequest.h - include/alibabacloud/dts/model/InitDtsRdsInstanceResult.h - include/alibabacloud/dts/model/ListDedicatedClusterRequest.h - include/alibabacloud/dts/model/ListDedicatedClusterResult.h - include/alibabacloud/dts/model/ListTagResourcesRequest.h - include/alibabacloud/dts/model/ListTagResourcesResult.h - include/alibabacloud/dts/model/ModifyConsumerChannelRequest.h - include/alibabacloud/dts/model/ModifyConsumerChannelResult.h - include/alibabacloud/dts/model/ModifyConsumerGroupPasswordRequest.h - include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h - include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h - include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h - include/alibabacloud/dts/model/ModifyDedicatedClusterRequest.h - include/alibabacloud/dts/model/ModifyDedicatedClusterResult.h - include/alibabacloud/dts/model/ModifyDtsJobRequest.h - include/alibabacloud/dts/model/ModifyDtsJobResult.h - include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterRequest.h - include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterResult.h - include/alibabacloud/dts/model/ModifyDtsJobDuLimitRequest.h - include/alibabacloud/dts/model/ModifyDtsJobDuLimitResult.h - include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h - include/alibabacloud/dts/model/ModifyDtsJobNameResult.h - include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h - include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h - include/alibabacloud/dts/model/ModifySubscriptionRequest.h - include/alibabacloud/dts/model/ModifySubscriptionResult.h - include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h - include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h include/alibabacloud/dts/model/ModifySynchronizationObjectResult.h - include/alibabacloud/dts/model/RenewInstanceRequest.h - include/alibabacloud/dts/model/RenewInstanceResult.h - include/alibabacloud/dts/model/ResetDtsJobRequest.h - include/alibabacloud/dts/model/ResetDtsJobResult.h include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h include/alibabacloud/dts/model/ResetSynchronizationJobResult.h - include/alibabacloud/dts/model/ShieldPrecheckRequest.h - include/alibabacloud/dts/model/ShieldPrecheckResult.h - include/alibabacloud/dts/model/SkipPreCheckRequest.h - include/alibabacloud/dts/model/SkipPreCheckResult.h - include/alibabacloud/dts/model/StartDtsJobRequest.h - include/alibabacloud/dts/model/StartDtsJobResult.h - include/alibabacloud/dts/model/StartDtsJobsRequest.h - include/alibabacloud/dts/model/StartDtsJobsResult.h - include/alibabacloud/dts/model/StartMigrationJobRequest.h - include/alibabacloud/dts/model/StartMigrationJobResult.h - include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h - include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h include/alibabacloud/dts/model/StartSynchronizationJobRequest.h include/alibabacloud/dts/model/StartSynchronizationJobResult.h - include/alibabacloud/dts/model/StopDedicatedClusterRequest.h - include/alibabacloud/dts/model/StopDedicatedClusterResult.h - include/alibabacloud/dts/model/StopDtsJobRequest.h - include/alibabacloud/dts/model/StopDtsJobResult.h - include/alibabacloud/dts/model/StopDtsJobsRequest.h - include/alibabacloud/dts/model/StopDtsJobsResult.h - include/alibabacloud/dts/model/StopMigrationJobRequest.h - include/alibabacloud/dts/model/StopMigrationJobResult.h - include/alibabacloud/dts/model/SummaryJobDetailRequest.h - include/alibabacloud/dts/model/SummaryJobDetailResult.h - include/alibabacloud/dts/model/SuspendDtsJobRequest.h - include/alibabacloud/dts/model/SuspendDtsJobResult.h - include/alibabacloud/dts/model/SuspendDtsJobsRequest.h - include/alibabacloud/dts/model/SuspendDtsJobsResult.h - include/alibabacloud/dts/model/SuspendMigrationJobRequest.h - include/alibabacloud/dts/model/SuspendMigrationJobResult.h include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h include/alibabacloud/dts/model/SuspendSynchronizationJobResult.h - include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudRequest.h - include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudResult.h include/alibabacloud/dts/model/SwitchSynchronizationEndpointRequest.h - include/alibabacloud/dts/model/SwitchSynchronizationEndpointResult.h - include/alibabacloud/dts/model/TagResourcesRequest.h - include/alibabacloud/dts/model/TagResourcesResult.h - include/alibabacloud/dts/model/TransferInstanceClassRequest.h - include/alibabacloud/dts/model/TransferInstanceClassResult.h - include/alibabacloud/dts/model/TransferPayTypeRequest.h - include/alibabacloud/dts/model/TransferPayTypeResult.h - include/alibabacloud/dts/model/UntagResourcesRequest.h - include/alibabacloud/dts/model/UntagResourcesResult.h - include/alibabacloud/dts/model/UpgradeTwoWayRequest.h - include/alibabacloud/dts/model/UpgradeTwoWayResult.h - include/alibabacloud/dts/model/WhiteIpListRequest.h - include/alibabacloud/dts/model/WhiteIpListResult.h ) + include/alibabacloud/dts/model/SwitchSynchronizationEndpointResult.h ) set(dts_src src/DtsClient.cc - src/model/ConfigureDtsJobRequest.cc - src/model/ConfigureDtsJobResult.cc - src/model/ConfigureMigrationJobRequest.cc - src/model/ConfigureMigrationJobResult.cc - src/model/ConfigureMigrationJobAlertRequest.cc - src/model/ConfigureMigrationJobAlertResult.cc - src/model/ConfigureSubscriptionRequest.cc - src/model/ConfigureSubscriptionResult.cc - src/model/ConfigureSubscriptionInstanceRequest.cc - src/model/ConfigureSubscriptionInstanceResult.cc - src/model/ConfigureSubscriptionInstanceAlertRequest.cc - src/model/ConfigureSubscriptionInstanceAlertResult.cc src/model/ConfigureSynchronizationJobRequest.cc src/model/ConfigureSynchronizationJobResult.cc src/model/ConfigureSynchronizationJobAlertRequest.cc src/model/ConfigureSynchronizationJobAlertResult.cc - src/model/ConfigureSynchronizationJobReplicatorCompareRequest.cc - src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc - src/model/CountJobByConditionRequest.cc - src/model/CountJobByConditionResult.cc - src/model/CreateConsumerChannelRequest.cc - src/model/CreateConsumerChannelResult.cc - src/model/CreateConsumerGroupRequest.cc - src/model/CreateConsumerGroupResult.cc - src/model/CreateDedicatedClusterMonitorRuleRequest.cc - src/model/CreateDedicatedClusterMonitorRuleResult.cc - src/model/CreateDtsInstanceRequest.cc - src/model/CreateDtsInstanceResult.cc - src/model/CreateJobMonitorRuleRequest.cc - src/model/CreateJobMonitorRuleResult.cc - src/model/CreateMigrationJobRequest.cc - src/model/CreateMigrationJobResult.cc - src/model/CreateSubscriptionInstanceRequest.cc - src/model/CreateSubscriptionInstanceResult.cc src/model/CreateSynchronizationJobRequest.cc src/model/CreateSynchronizationJobResult.cc - src/model/DeleteConsumerChannelRequest.cc - src/model/DeleteConsumerChannelResult.cc - src/model/DeleteConsumerGroupRequest.cc - src/model/DeleteConsumerGroupResult.cc - src/model/DeleteDtsJobRequest.cc - src/model/DeleteDtsJobResult.cc - src/model/DeleteDtsJobsRequest.cc - src/model/DeleteDtsJobsResult.cc - src/model/DeleteMigrationJobRequest.cc - src/model/DeleteMigrationJobResult.cc - src/model/DeleteSubscriptionInstanceRequest.cc - src/model/DeleteSubscriptionInstanceResult.cc src/model/DeleteSynchronizationJobRequest.cc src/model/DeleteSynchronizationJobResult.cc - src/model/DescribeCheckJobsRequest.cc - src/model/DescribeCheckJobsResult.cc - src/model/DescribeClusterOperateLogsRequest.cc - src/model/DescribeClusterOperateLogsResult.cc - src/model/DescribeClusterUsedUtilizationRequest.cc - src/model/DescribeClusterUsedUtilizationResult.cc - src/model/DescribeConnectionStatusRequest.cc - src/model/DescribeConnectionStatusResult.cc - src/model/DescribeConsumerChannelRequest.cc - src/model/DescribeConsumerChannelResult.cc - src/model/DescribeConsumerGroupRequest.cc - src/model/DescribeConsumerGroupResult.cc - src/model/DescribeDTSIPRequest.cc - src/model/DescribeDTSIPResult.cc - src/model/DescribeDataCheckReportUrlRequest.cc - src/model/DescribeDataCheckReportUrlResult.cc - src/model/DescribeDataCheckTableDetailsRequest.cc - src/model/DescribeDataCheckTableDetailsResult.cc - src/model/DescribeDataCheckTableDiffDetailsRequest.cc - src/model/DescribeDataCheckTableDiffDetailsResult.cc - src/model/DescribeDedicatedClusterRequest.cc - src/model/DescribeDedicatedClusterResult.cc - src/model/DescribeDedicatedClusterMonitorRuleRequest.cc - src/model/DescribeDedicatedClusterMonitorRuleResult.cc - src/model/DescribeDtsEtlJobVersionInfoRequest.cc - src/model/DescribeDtsEtlJobVersionInfoResult.cc - src/model/DescribeDtsJobDetailRequest.cc - src/model/DescribeDtsJobDetailResult.cc - src/model/DescribeDtsJobsRequest.cc - src/model/DescribeDtsJobsResult.cc - src/model/DescribeDtsServiceLogRequest.cc - src/model/DescribeDtsServiceLogResult.cc src/model/DescribeEndpointSwitchStatusRequest.cc src/model/DescribeEndpointSwitchStatusResult.cc - src/model/DescribeEtlJobLogsRequest.cc - src/model/DescribeEtlJobLogsResult.cc - src/model/DescribeInitializationStatusRequest.cc - src/model/DescribeInitializationStatusResult.cc - src/model/DescribeJobMonitorRuleRequest.cc - src/model/DescribeJobMonitorRuleResult.cc - src/model/DescribeMetricListRequest.cc - src/model/DescribeMetricListResult.cc - src/model/DescribeMigrationJobAlertRequest.cc - src/model/DescribeMigrationJobAlertResult.cc - src/model/DescribeMigrationJobDetailRequest.cc - src/model/DescribeMigrationJobDetailResult.cc - src/model/DescribeMigrationJobStatusRequest.cc - src/model/DescribeMigrationJobStatusResult.cc - src/model/DescribeMigrationJobsRequest.cc - src/model/DescribeMigrationJobsResult.cc - src/model/DescribePreCheckStatusRequest.cc - src/model/DescribePreCheckStatusResult.cc - src/model/DescribeSubscriptionInstanceAlertRequest.cc - src/model/DescribeSubscriptionInstanceAlertResult.cc - src/model/DescribeSubscriptionInstanceStatusRequest.cc - src/model/DescribeSubscriptionInstanceStatusResult.cc - src/model/DescribeSubscriptionInstancesRequest.cc - src/model/DescribeSubscriptionInstancesResult.cc - src/model/DescribeSubscriptionMetaRequest.cc - src/model/DescribeSubscriptionMetaResult.cc src/model/DescribeSynchronizationJobAlertRequest.cc src/model/DescribeSynchronizationJobAlertResult.cc - src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc - src/model/DescribeSynchronizationJobReplicatorCompareResult.cc src/model/DescribeSynchronizationJobStatusRequest.cc src/model/DescribeSynchronizationJobStatusResult.cc - src/model/DescribeSynchronizationJobStatusListRequest.cc - src/model/DescribeSynchronizationJobStatusListResult.cc src/model/DescribeSynchronizationJobsRequest.cc src/model/DescribeSynchronizationJobsResult.cc src/model/DescribeSynchronizationObjectModifyStatusRequest.cc src/model/DescribeSynchronizationObjectModifyStatusResult.cc - src/model/DescribeTagKeysRequest.cc - src/model/DescribeTagKeysResult.cc - src/model/DescribeTagValuesRequest.cc - src/model/DescribeTagValuesResult.cc - src/model/InitDtsRdsInstanceRequest.cc - src/model/InitDtsRdsInstanceResult.cc - src/model/ListDedicatedClusterRequest.cc - src/model/ListDedicatedClusterResult.cc - src/model/ListTagResourcesRequest.cc - src/model/ListTagResourcesResult.cc - src/model/ModifyConsumerChannelRequest.cc - src/model/ModifyConsumerChannelResult.cc - src/model/ModifyConsumerGroupPasswordRequest.cc - src/model/ModifyConsumerGroupPasswordResult.cc - src/model/ModifyConsumptionTimestampRequest.cc - src/model/ModifyConsumptionTimestampResult.cc - src/model/ModifyDedicatedClusterRequest.cc - src/model/ModifyDedicatedClusterResult.cc - src/model/ModifyDtsJobRequest.cc - src/model/ModifyDtsJobResult.cc - src/model/ModifyDtsJobDedicatedClusterRequest.cc - src/model/ModifyDtsJobDedicatedClusterResult.cc - src/model/ModifyDtsJobDuLimitRequest.cc - src/model/ModifyDtsJobDuLimitResult.cc - src/model/ModifyDtsJobNameRequest.cc - src/model/ModifyDtsJobNameResult.cc - src/model/ModifyDtsJobPasswordRequest.cc - src/model/ModifyDtsJobPasswordResult.cc - src/model/ModifySubscriptionRequest.cc - src/model/ModifySubscriptionResult.cc - src/model/ModifySubscriptionObjectRequest.cc - src/model/ModifySubscriptionObjectResult.cc src/model/ModifySynchronizationObjectRequest.cc src/model/ModifySynchronizationObjectResult.cc - src/model/RenewInstanceRequest.cc - src/model/RenewInstanceResult.cc - src/model/ResetDtsJobRequest.cc - src/model/ResetDtsJobResult.cc src/model/ResetSynchronizationJobRequest.cc src/model/ResetSynchronizationJobResult.cc - src/model/ShieldPrecheckRequest.cc - src/model/ShieldPrecheckResult.cc - src/model/SkipPreCheckRequest.cc - src/model/SkipPreCheckResult.cc - src/model/StartDtsJobRequest.cc - src/model/StartDtsJobResult.cc - src/model/StartDtsJobsRequest.cc - src/model/StartDtsJobsResult.cc - src/model/StartMigrationJobRequest.cc - src/model/StartMigrationJobResult.cc - src/model/StartSubscriptionInstanceRequest.cc - src/model/StartSubscriptionInstanceResult.cc src/model/StartSynchronizationJobRequest.cc src/model/StartSynchronizationJobResult.cc - src/model/StopDedicatedClusterRequest.cc - src/model/StopDedicatedClusterResult.cc - src/model/StopDtsJobRequest.cc - src/model/StopDtsJobResult.cc - src/model/StopDtsJobsRequest.cc - src/model/StopDtsJobsResult.cc - src/model/StopMigrationJobRequest.cc - src/model/StopMigrationJobResult.cc - src/model/SummaryJobDetailRequest.cc - src/model/SummaryJobDetailResult.cc - src/model/SuspendDtsJobRequest.cc - src/model/SuspendDtsJobResult.cc - src/model/SuspendDtsJobsRequest.cc - src/model/SuspendDtsJobsResult.cc - src/model/SuspendMigrationJobRequest.cc - src/model/SuspendMigrationJobResult.cc src/model/SuspendSynchronizationJobRequest.cc src/model/SuspendSynchronizationJobResult.cc - src/model/SwitchPhysicalDtsJobToCloudRequest.cc - src/model/SwitchPhysicalDtsJobToCloudResult.cc src/model/SwitchSynchronizationEndpointRequest.cc - src/model/SwitchSynchronizationEndpointResult.cc - src/model/TagResourcesRequest.cc - src/model/TagResourcesResult.cc - src/model/TransferInstanceClassRequest.cc - src/model/TransferInstanceClassResult.cc - src/model/TransferPayTypeRequest.cc - src/model/TransferPayTypeResult.cc - src/model/UntagResourcesRequest.cc - src/model/UntagResourcesResult.cc - src/model/UpgradeTwoWayRequest.cc - src/model/UpgradeTwoWayResult.cc - src/model/WhiteIpListRequest.cc - src/model/WhiteIpListResult.cc ) + src/model/SwitchSynchronizationEndpointResult.cc ) add_library(dts ${LIB_TYPE} ${dts_public_header} diff --git a/dts/include/alibabacloud/dts/DtsClient.h b/dts/include/alibabacloud/dts/DtsClient.h index 3f66e2cb7..c7042249c 100644 --- a/dts/include/alibabacloud/dts/DtsClient.h +++ b/dts/include/alibabacloud/dts/DtsClient.h @@ -22,216 +22,34 @@ #include #include #include "DtsExport.h" -#include "model/ConfigureDtsJobRequest.h" -#include "model/ConfigureDtsJobResult.h" -#include "model/ConfigureMigrationJobRequest.h" -#include "model/ConfigureMigrationJobResult.h" -#include "model/ConfigureMigrationJobAlertRequest.h" -#include "model/ConfigureMigrationJobAlertResult.h" -#include "model/ConfigureSubscriptionRequest.h" -#include "model/ConfigureSubscriptionResult.h" -#include "model/ConfigureSubscriptionInstanceRequest.h" -#include "model/ConfigureSubscriptionInstanceResult.h" -#include "model/ConfigureSubscriptionInstanceAlertRequest.h" -#include "model/ConfigureSubscriptionInstanceAlertResult.h" #include "model/ConfigureSynchronizationJobRequest.h" #include "model/ConfigureSynchronizationJobResult.h" #include "model/ConfigureSynchronizationJobAlertRequest.h" #include "model/ConfigureSynchronizationJobAlertResult.h" -#include "model/ConfigureSynchronizationJobReplicatorCompareRequest.h" -#include "model/ConfigureSynchronizationJobReplicatorCompareResult.h" -#include "model/CountJobByConditionRequest.h" -#include "model/CountJobByConditionResult.h" -#include "model/CreateConsumerChannelRequest.h" -#include "model/CreateConsumerChannelResult.h" -#include "model/CreateConsumerGroupRequest.h" -#include "model/CreateConsumerGroupResult.h" -#include "model/CreateDedicatedClusterMonitorRuleRequest.h" -#include "model/CreateDedicatedClusterMonitorRuleResult.h" -#include "model/CreateDtsInstanceRequest.h" -#include "model/CreateDtsInstanceResult.h" -#include "model/CreateJobMonitorRuleRequest.h" -#include "model/CreateJobMonitorRuleResult.h" -#include "model/CreateMigrationJobRequest.h" -#include "model/CreateMigrationJobResult.h" -#include "model/CreateSubscriptionInstanceRequest.h" -#include "model/CreateSubscriptionInstanceResult.h" #include "model/CreateSynchronizationJobRequest.h" #include "model/CreateSynchronizationJobResult.h" -#include "model/DeleteConsumerChannelRequest.h" -#include "model/DeleteConsumerChannelResult.h" -#include "model/DeleteConsumerGroupRequest.h" -#include "model/DeleteConsumerGroupResult.h" -#include "model/DeleteDtsJobRequest.h" -#include "model/DeleteDtsJobResult.h" -#include "model/DeleteDtsJobsRequest.h" -#include "model/DeleteDtsJobsResult.h" -#include "model/DeleteMigrationJobRequest.h" -#include "model/DeleteMigrationJobResult.h" -#include "model/DeleteSubscriptionInstanceRequest.h" -#include "model/DeleteSubscriptionInstanceResult.h" #include "model/DeleteSynchronizationJobRequest.h" #include "model/DeleteSynchronizationJobResult.h" -#include "model/DescribeCheckJobsRequest.h" -#include "model/DescribeCheckJobsResult.h" -#include "model/DescribeClusterOperateLogsRequest.h" -#include "model/DescribeClusterOperateLogsResult.h" -#include "model/DescribeClusterUsedUtilizationRequest.h" -#include "model/DescribeClusterUsedUtilizationResult.h" -#include "model/DescribeConnectionStatusRequest.h" -#include "model/DescribeConnectionStatusResult.h" -#include "model/DescribeConsumerChannelRequest.h" -#include "model/DescribeConsumerChannelResult.h" -#include "model/DescribeConsumerGroupRequest.h" -#include "model/DescribeConsumerGroupResult.h" -#include "model/DescribeDTSIPRequest.h" -#include "model/DescribeDTSIPResult.h" -#include "model/DescribeDataCheckReportUrlRequest.h" -#include "model/DescribeDataCheckReportUrlResult.h" -#include "model/DescribeDataCheckTableDetailsRequest.h" -#include "model/DescribeDataCheckTableDetailsResult.h" -#include "model/DescribeDataCheckTableDiffDetailsRequest.h" -#include "model/DescribeDataCheckTableDiffDetailsResult.h" -#include "model/DescribeDedicatedClusterRequest.h" -#include "model/DescribeDedicatedClusterResult.h" -#include "model/DescribeDedicatedClusterMonitorRuleRequest.h" -#include "model/DescribeDedicatedClusterMonitorRuleResult.h" -#include "model/DescribeDtsEtlJobVersionInfoRequest.h" -#include "model/DescribeDtsEtlJobVersionInfoResult.h" -#include "model/DescribeDtsJobDetailRequest.h" -#include "model/DescribeDtsJobDetailResult.h" -#include "model/DescribeDtsJobsRequest.h" -#include "model/DescribeDtsJobsResult.h" -#include "model/DescribeDtsServiceLogRequest.h" -#include "model/DescribeDtsServiceLogResult.h" #include "model/DescribeEndpointSwitchStatusRequest.h" #include "model/DescribeEndpointSwitchStatusResult.h" -#include "model/DescribeEtlJobLogsRequest.h" -#include "model/DescribeEtlJobLogsResult.h" -#include "model/DescribeInitializationStatusRequest.h" -#include "model/DescribeInitializationStatusResult.h" -#include "model/DescribeJobMonitorRuleRequest.h" -#include "model/DescribeJobMonitorRuleResult.h" -#include "model/DescribeMetricListRequest.h" -#include "model/DescribeMetricListResult.h" -#include "model/DescribeMigrationJobAlertRequest.h" -#include "model/DescribeMigrationJobAlertResult.h" -#include "model/DescribeMigrationJobDetailRequest.h" -#include "model/DescribeMigrationJobDetailResult.h" -#include "model/DescribeMigrationJobStatusRequest.h" -#include "model/DescribeMigrationJobStatusResult.h" -#include "model/DescribeMigrationJobsRequest.h" -#include "model/DescribeMigrationJobsResult.h" -#include "model/DescribePreCheckStatusRequest.h" -#include "model/DescribePreCheckStatusResult.h" -#include "model/DescribeSubscriptionInstanceAlertRequest.h" -#include "model/DescribeSubscriptionInstanceAlertResult.h" -#include "model/DescribeSubscriptionInstanceStatusRequest.h" -#include "model/DescribeSubscriptionInstanceStatusResult.h" -#include "model/DescribeSubscriptionInstancesRequest.h" -#include "model/DescribeSubscriptionInstancesResult.h" -#include "model/DescribeSubscriptionMetaRequest.h" -#include "model/DescribeSubscriptionMetaResult.h" #include "model/DescribeSynchronizationJobAlertRequest.h" #include "model/DescribeSynchronizationJobAlertResult.h" -#include "model/DescribeSynchronizationJobReplicatorCompareRequest.h" -#include "model/DescribeSynchronizationJobReplicatorCompareResult.h" #include "model/DescribeSynchronizationJobStatusRequest.h" #include "model/DescribeSynchronizationJobStatusResult.h" -#include "model/DescribeSynchronizationJobStatusListRequest.h" -#include "model/DescribeSynchronizationJobStatusListResult.h" #include "model/DescribeSynchronizationJobsRequest.h" #include "model/DescribeSynchronizationJobsResult.h" #include "model/DescribeSynchronizationObjectModifyStatusRequest.h" #include "model/DescribeSynchronizationObjectModifyStatusResult.h" -#include "model/DescribeTagKeysRequest.h" -#include "model/DescribeTagKeysResult.h" -#include "model/DescribeTagValuesRequest.h" -#include "model/DescribeTagValuesResult.h" -#include "model/InitDtsRdsInstanceRequest.h" -#include "model/InitDtsRdsInstanceResult.h" -#include "model/ListDedicatedClusterRequest.h" -#include "model/ListDedicatedClusterResult.h" -#include "model/ListTagResourcesRequest.h" -#include "model/ListTagResourcesResult.h" -#include "model/ModifyConsumerChannelRequest.h" -#include "model/ModifyConsumerChannelResult.h" -#include "model/ModifyConsumerGroupPasswordRequest.h" -#include "model/ModifyConsumerGroupPasswordResult.h" -#include "model/ModifyConsumptionTimestampRequest.h" -#include "model/ModifyConsumptionTimestampResult.h" -#include "model/ModifyDedicatedClusterRequest.h" -#include "model/ModifyDedicatedClusterResult.h" -#include "model/ModifyDtsJobRequest.h" -#include "model/ModifyDtsJobResult.h" -#include "model/ModifyDtsJobDedicatedClusterRequest.h" -#include "model/ModifyDtsJobDedicatedClusterResult.h" -#include "model/ModifyDtsJobDuLimitRequest.h" -#include "model/ModifyDtsJobDuLimitResult.h" -#include "model/ModifyDtsJobNameRequest.h" -#include "model/ModifyDtsJobNameResult.h" -#include "model/ModifyDtsJobPasswordRequest.h" -#include "model/ModifyDtsJobPasswordResult.h" -#include "model/ModifySubscriptionRequest.h" -#include "model/ModifySubscriptionResult.h" -#include "model/ModifySubscriptionObjectRequest.h" -#include "model/ModifySubscriptionObjectResult.h" #include "model/ModifySynchronizationObjectRequest.h" #include "model/ModifySynchronizationObjectResult.h" -#include "model/RenewInstanceRequest.h" -#include "model/RenewInstanceResult.h" -#include "model/ResetDtsJobRequest.h" -#include "model/ResetDtsJobResult.h" #include "model/ResetSynchronizationJobRequest.h" #include "model/ResetSynchronizationJobResult.h" -#include "model/ShieldPrecheckRequest.h" -#include "model/ShieldPrecheckResult.h" -#include "model/SkipPreCheckRequest.h" -#include "model/SkipPreCheckResult.h" -#include "model/StartDtsJobRequest.h" -#include "model/StartDtsJobResult.h" -#include "model/StartDtsJobsRequest.h" -#include "model/StartDtsJobsResult.h" -#include "model/StartMigrationJobRequest.h" -#include "model/StartMigrationJobResult.h" -#include "model/StartSubscriptionInstanceRequest.h" -#include "model/StartSubscriptionInstanceResult.h" #include "model/StartSynchronizationJobRequest.h" #include "model/StartSynchronizationJobResult.h" -#include "model/StopDedicatedClusterRequest.h" -#include "model/StopDedicatedClusterResult.h" -#include "model/StopDtsJobRequest.h" -#include "model/StopDtsJobResult.h" -#include "model/StopDtsJobsRequest.h" -#include "model/StopDtsJobsResult.h" -#include "model/StopMigrationJobRequest.h" -#include "model/StopMigrationJobResult.h" -#include "model/SummaryJobDetailRequest.h" -#include "model/SummaryJobDetailResult.h" -#include "model/SuspendDtsJobRequest.h" -#include "model/SuspendDtsJobResult.h" -#include "model/SuspendDtsJobsRequest.h" -#include "model/SuspendDtsJobsResult.h" -#include "model/SuspendMigrationJobRequest.h" -#include "model/SuspendMigrationJobResult.h" #include "model/SuspendSynchronizationJobRequest.h" #include "model/SuspendSynchronizationJobResult.h" -#include "model/SwitchPhysicalDtsJobToCloudRequest.h" -#include "model/SwitchPhysicalDtsJobToCloudResult.h" #include "model/SwitchSynchronizationEndpointRequest.h" #include "model/SwitchSynchronizationEndpointResult.h" -#include "model/TagResourcesRequest.h" -#include "model/TagResourcesResult.h" -#include "model/TransferInstanceClassRequest.h" -#include "model/TransferInstanceClassResult.h" -#include "model/TransferPayTypeRequest.h" -#include "model/TransferPayTypeResult.h" -#include "model/UntagResourcesRequest.h" -#include "model/UntagResourcesResult.h" -#include "model/UpgradeTwoWayRequest.h" -#include "model/UpgradeTwoWayResult.h" -#include "model/WhiteIpListRequest.h" -#include "model/WhiteIpListResult.h" namespace AlibabaCloud @@ -241,641 +59,95 @@ namespace AlibabaCloud class ALIBABACLOUD_DTS_EXPORT DtsClient : public RpcServiceClient { public: - typedef Outcome ConfigureDtsJobOutcome; - typedef std::future ConfigureDtsJobOutcomeCallable; - typedef std::function&)> ConfigureDtsJobAsyncHandler; - typedef Outcome ConfigureMigrationJobOutcome; - typedef std::future ConfigureMigrationJobOutcomeCallable; - typedef std::function&)> ConfigureMigrationJobAsyncHandler; - typedef Outcome ConfigureMigrationJobAlertOutcome; - typedef std::future ConfigureMigrationJobAlertOutcomeCallable; - typedef std::function&)> ConfigureMigrationJobAlertAsyncHandler; - typedef Outcome ConfigureSubscriptionOutcome; - typedef std::future ConfigureSubscriptionOutcomeCallable; - typedef std::function&)> ConfigureSubscriptionAsyncHandler; - typedef Outcome ConfigureSubscriptionInstanceOutcome; - typedef std::future ConfigureSubscriptionInstanceOutcomeCallable; - typedef std::function&)> ConfigureSubscriptionInstanceAsyncHandler; - typedef Outcome ConfigureSubscriptionInstanceAlertOutcome; - typedef std::future ConfigureSubscriptionInstanceAlertOutcomeCallable; - typedef std::function&)> ConfigureSubscriptionInstanceAlertAsyncHandler; typedef Outcome ConfigureSynchronizationJobOutcome; typedef std::future ConfigureSynchronizationJobOutcomeCallable; typedef std::function&)> ConfigureSynchronizationJobAsyncHandler; typedef Outcome ConfigureSynchronizationJobAlertOutcome; typedef std::future ConfigureSynchronizationJobAlertOutcomeCallable; typedef std::function&)> ConfigureSynchronizationJobAlertAsyncHandler; - typedef Outcome ConfigureSynchronizationJobReplicatorCompareOutcome; - typedef std::future ConfigureSynchronizationJobReplicatorCompareOutcomeCallable; - typedef std::function&)> ConfigureSynchronizationJobReplicatorCompareAsyncHandler; - typedef Outcome CountJobByConditionOutcome; - typedef std::future CountJobByConditionOutcomeCallable; - typedef std::function&)> CountJobByConditionAsyncHandler; - typedef Outcome CreateConsumerChannelOutcome; - typedef std::future CreateConsumerChannelOutcomeCallable; - typedef std::function&)> CreateConsumerChannelAsyncHandler; - typedef Outcome CreateConsumerGroupOutcome; - typedef std::future CreateConsumerGroupOutcomeCallable; - typedef std::function&)> CreateConsumerGroupAsyncHandler; - typedef Outcome CreateDedicatedClusterMonitorRuleOutcome; - typedef std::future CreateDedicatedClusterMonitorRuleOutcomeCallable; - typedef std::function&)> CreateDedicatedClusterMonitorRuleAsyncHandler; - typedef Outcome CreateDtsInstanceOutcome; - typedef std::future CreateDtsInstanceOutcomeCallable; - typedef std::function&)> CreateDtsInstanceAsyncHandler; - typedef Outcome CreateJobMonitorRuleOutcome; - typedef std::future CreateJobMonitorRuleOutcomeCallable; - typedef std::function&)> CreateJobMonitorRuleAsyncHandler; - typedef Outcome CreateMigrationJobOutcome; - typedef std::future CreateMigrationJobOutcomeCallable; - typedef std::function&)> CreateMigrationJobAsyncHandler; - typedef Outcome CreateSubscriptionInstanceOutcome; - typedef std::future CreateSubscriptionInstanceOutcomeCallable; - typedef std::function&)> CreateSubscriptionInstanceAsyncHandler; typedef Outcome CreateSynchronizationJobOutcome; typedef std::future CreateSynchronizationJobOutcomeCallable; typedef std::function&)> CreateSynchronizationJobAsyncHandler; - typedef Outcome DeleteConsumerChannelOutcome; - typedef std::future DeleteConsumerChannelOutcomeCallable; - typedef std::function&)> DeleteConsumerChannelAsyncHandler; - typedef Outcome DeleteConsumerGroupOutcome; - typedef std::future DeleteConsumerGroupOutcomeCallable; - typedef std::function&)> DeleteConsumerGroupAsyncHandler; - typedef Outcome DeleteDtsJobOutcome; - typedef std::future DeleteDtsJobOutcomeCallable; - typedef std::function&)> DeleteDtsJobAsyncHandler; - typedef Outcome DeleteDtsJobsOutcome; - typedef std::future DeleteDtsJobsOutcomeCallable; - typedef std::function&)> DeleteDtsJobsAsyncHandler; - typedef Outcome DeleteMigrationJobOutcome; - typedef std::future DeleteMigrationJobOutcomeCallable; - typedef std::function&)> DeleteMigrationJobAsyncHandler; - typedef Outcome DeleteSubscriptionInstanceOutcome; - typedef std::future DeleteSubscriptionInstanceOutcomeCallable; - typedef std::function&)> DeleteSubscriptionInstanceAsyncHandler; typedef Outcome DeleteSynchronizationJobOutcome; typedef std::future DeleteSynchronizationJobOutcomeCallable; typedef std::function&)> DeleteSynchronizationJobAsyncHandler; - typedef Outcome DescribeCheckJobsOutcome; - typedef std::future DescribeCheckJobsOutcomeCallable; - typedef std::function&)> DescribeCheckJobsAsyncHandler; - typedef Outcome DescribeClusterOperateLogsOutcome; - typedef std::future DescribeClusterOperateLogsOutcomeCallable; - typedef std::function&)> DescribeClusterOperateLogsAsyncHandler; - typedef Outcome DescribeClusterUsedUtilizationOutcome; - typedef std::future DescribeClusterUsedUtilizationOutcomeCallable; - typedef std::function&)> DescribeClusterUsedUtilizationAsyncHandler; - typedef Outcome DescribeConnectionStatusOutcome; - typedef std::future DescribeConnectionStatusOutcomeCallable; - typedef std::function&)> DescribeConnectionStatusAsyncHandler; - typedef Outcome DescribeConsumerChannelOutcome; - typedef std::future DescribeConsumerChannelOutcomeCallable; - typedef std::function&)> DescribeConsumerChannelAsyncHandler; - typedef Outcome DescribeConsumerGroupOutcome; - typedef std::future DescribeConsumerGroupOutcomeCallable; - typedef std::function&)> DescribeConsumerGroupAsyncHandler; - typedef Outcome DescribeDTSIPOutcome; - typedef std::future DescribeDTSIPOutcomeCallable; - typedef std::function&)> DescribeDTSIPAsyncHandler; - typedef Outcome DescribeDataCheckReportUrlOutcome; - typedef std::future DescribeDataCheckReportUrlOutcomeCallable; - typedef std::function&)> DescribeDataCheckReportUrlAsyncHandler; - typedef Outcome DescribeDataCheckTableDetailsOutcome; - typedef std::future DescribeDataCheckTableDetailsOutcomeCallable; - typedef std::function&)> DescribeDataCheckTableDetailsAsyncHandler; - typedef Outcome DescribeDataCheckTableDiffDetailsOutcome; - typedef std::future DescribeDataCheckTableDiffDetailsOutcomeCallable; - typedef std::function&)> DescribeDataCheckTableDiffDetailsAsyncHandler; - typedef Outcome DescribeDedicatedClusterOutcome; - typedef std::future DescribeDedicatedClusterOutcomeCallable; - typedef std::function&)> DescribeDedicatedClusterAsyncHandler; - typedef Outcome DescribeDedicatedClusterMonitorRuleOutcome; - typedef std::future DescribeDedicatedClusterMonitorRuleOutcomeCallable; - typedef std::function&)> DescribeDedicatedClusterMonitorRuleAsyncHandler; - typedef Outcome DescribeDtsEtlJobVersionInfoOutcome; - typedef std::future DescribeDtsEtlJobVersionInfoOutcomeCallable; - typedef std::function&)> DescribeDtsEtlJobVersionInfoAsyncHandler; - typedef Outcome DescribeDtsJobDetailOutcome; - typedef std::future DescribeDtsJobDetailOutcomeCallable; - typedef std::function&)> DescribeDtsJobDetailAsyncHandler; - typedef Outcome DescribeDtsJobsOutcome; - typedef std::future DescribeDtsJobsOutcomeCallable; - typedef std::function&)> DescribeDtsJobsAsyncHandler; - typedef Outcome DescribeDtsServiceLogOutcome; - typedef std::future DescribeDtsServiceLogOutcomeCallable; - typedef std::function&)> DescribeDtsServiceLogAsyncHandler; typedef Outcome DescribeEndpointSwitchStatusOutcome; typedef std::future DescribeEndpointSwitchStatusOutcomeCallable; typedef std::function&)> DescribeEndpointSwitchStatusAsyncHandler; - typedef Outcome DescribeEtlJobLogsOutcome; - typedef std::future DescribeEtlJobLogsOutcomeCallable; - typedef std::function&)> DescribeEtlJobLogsAsyncHandler; - typedef Outcome DescribeInitializationStatusOutcome; - typedef std::future DescribeInitializationStatusOutcomeCallable; - typedef std::function&)> DescribeInitializationStatusAsyncHandler; - typedef Outcome DescribeJobMonitorRuleOutcome; - typedef std::future DescribeJobMonitorRuleOutcomeCallable; - typedef std::function&)> DescribeJobMonitorRuleAsyncHandler; - typedef Outcome DescribeMetricListOutcome; - typedef std::future DescribeMetricListOutcomeCallable; - typedef std::function&)> DescribeMetricListAsyncHandler; - typedef Outcome DescribeMigrationJobAlertOutcome; - typedef std::future DescribeMigrationJobAlertOutcomeCallable; - typedef std::function&)> DescribeMigrationJobAlertAsyncHandler; - typedef Outcome DescribeMigrationJobDetailOutcome; - typedef std::future DescribeMigrationJobDetailOutcomeCallable; - typedef std::function&)> DescribeMigrationJobDetailAsyncHandler; - typedef Outcome DescribeMigrationJobStatusOutcome; - typedef std::future DescribeMigrationJobStatusOutcomeCallable; - typedef std::function&)> DescribeMigrationJobStatusAsyncHandler; - typedef Outcome DescribeMigrationJobsOutcome; - typedef std::future DescribeMigrationJobsOutcomeCallable; - typedef std::function&)> DescribeMigrationJobsAsyncHandler; - typedef Outcome DescribePreCheckStatusOutcome; - typedef std::future DescribePreCheckStatusOutcomeCallable; - typedef std::function&)> DescribePreCheckStatusAsyncHandler; - typedef Outcome DescribeSubscriptionInstanceAlertOutcome; - typedef std::future DescribeSubscriptionInstanceAlertOutcomeCallable; - typedef std::function&)> DescribeSubscriptionInstanceAlertAsyncHandler; - typedef Outcome DescribeSubscriptionInstanceStatusOutcome; - typedef std::future DescribeSubscriptionInstanceStatusOutcomeCallable; - typedef std::function&)> DescribeSubscriptionInstanceStatusAsyncHandler; - typedef Outcome DescribeSubscriptionInstancesOutcome; - typedef std::future DescribeSubscriptionInstancesOutcomeCallable; - typedef std::function&)> DescribeSubscriptionInstancesAsyncHandler; - typedef Outcome DescribeSubscriptionMetaOutcome; - typedef std::future DescribeSubscriptionMetaOutcomeCallable; - typedef std::function&)> DescribeSubscriptionMetaAsyncHandler; typedef Outcome DescribeSynchronizationJobAlertOutcome; typedef std::future DescribeSynchronizationJobAlertOutcomeCallable; typedef std::function&)> DescribeSynchronizationJobAlertAsyncHandler; - typedef Outcome DescribeSynchronizationJobReplicatorCompareOutcome; - typedef std::future DescribeSynchronizationJobReplicatorCompareOutcomeCallable; - typedef std::function&)> DescribeSynchronizationJobReplicatorCompareAsyncHandler; typedef Outcome DescribeSynchronizationJobStatusOutcome; typedef std::future DescribeSynchronizationJobStatusOutcomeCallable; typedef std::function&)> DescribeSynchronizationJobStatusAsyncHandler; - typedef Outcome DescribeSynchronizationJobStatusListOutcome; - typedef std::future DescribeSynchronizationJobStatusListOutcomeCallable; - typedef std::function&)> DescribeSynchronizationJobStatusListAsyncHandler; typedef Outcome DescribeSynchronizationJobsOutcome; typedef std::future DescribeSynchronizationJobsOutcomeCallable; typedef std::function&)> DescribeSynchronizationJobsAsyncHandler; typedef Outcome DescribeSynchronizationObjectModifyStatusOutcome; typedef std::future DescribeSynchronizationObjectModifyStatusOutcomeCallable; typedef std::function&)> DescribeSynchronizationObjectModifyStatusAsyncHandler; - typedef Outcome DescribeTagKeysOutcome; - typedef std::future DescribeTagKeysOutcomeCallable; - typedef std::function&)> DescribeTagKeysAsyncHandler; - typedef Outcome DescribeTagValuesOutcome; - typedef std::future DescribeTagValuesOutcomeCallable; - typedef std::function&)> DescribeTagValuesAsyncHandler; - typedef Outcome InitDtsRdsInstanceOutcome; - typedef std::future InitDtsRdsInstanceOutcomeCallable; - typedef std::function&)> InitDtsRdsInstanceAsyncHandler; - typedef Outcome ListDedicatedClusterOutcome; - typedef std::future ListDedicatedClusterOutcomeCallable; - typedef std::function&)> ListDedicatedClusterAsyncHandler; - typedef Outcome ListTagResourcesOutcome; - typedef std::future ListTagResourcesOutcomeCallable; - typedef std::function&)> ListTagResourcesAsyncHandler; - typedef Outcome ModifyConsumerChannelOutcome; - typedef std::future ModifyConsumerChannelOutcomeCallable; - typedef std::function&)> ModifyConsumerChannelAsyncHandler; - typedef Outcome ModifyConsumerGroupPasswordOutcome; - typedef std::future ModifyConsumerGroupPasswordOutcomeCallable; - typedef std::function&)> ModifyConsumerGroupPasswordAsyncHandler; - typedef Outcome ModifyConsumptionTimestampOutcome; - typedef std::future ModifyConsumptionTimestampOutcomeCallable; - typedef std::function&)> ModifyConsumptionTimestampAsyncHandler; - typedef Outcome ModifyDedicatedClusterOutcome; - typedef std::future ModifyDedicatedClusterOutcomeCallable; - typedef std::function&)> ModifyDedicatedClusterAsyncHandler; - typedef Outcome ModifyDtsJobOutcome; - typedef std::future ModifyDtsJobOutcomeCallable; - typedef std::function&)> ModifyDtsJobAsyncHandler; - typedef Outcome ModifyDtsJobDedicatedClusterOutcome; - typedef std::future ModifyDtsJobDedicatedClusterOutcomeCallable; - typedef std::function&)> ModifyDtsJobDedicatedClusterAsyncHandler; - typedef Outcome ModifyDtsJobDuLimitOutcome; - typedef std::future ModifyDtsJobDuLimitOutcomeCallable; - typedef std::function&)> ModifyDtsJobDuLimitAsyncHandler; - typedef Outcome ModifyDtsJobNameOutcome; - typedef std::future ModifyDtsJobNameOutcomeCallable; - typedef std::function&)> ModifyDtsJobNameAsyncHandler; - typedef Outcome ModifyDtsJobPasswordOutcome; - typedef std::future ModifyDtsJobPasswordOutcomeCallable; - typedef std::function&)> ModifyDtsJobPasswordAsyncHandler; - typedef Outcome ModifySubscriptionOutcome; - typedef std::future ModifySubscriptionOutcomeCallable; - typedef std::function&)> ModifySubscriptionAsyncHandler; - typedef Outcome ModifySubscriptionObjectOutcome; - typedef std::future ModifySubscriptionObjectOutcomeCallable; - typedef std::function&)> ModifySubscriptionObjectAsyncHandler; typedef Outcome ModifySynchronizationObjectOutcome; typedef std::future ModifySynchronizationObjectOutcomeCallable; typedef std::function&)> ModifySynchronizationObjectAsyncHandler; - typedef Outcome RenewInstanceOutcome; - typedef std::future RenewInstanceOutcomeCallable; - typedef std::function&)> RenewInstanceAsyncHandler; - typedef Outcome ResetDtsJobOutcome; - typedef std::future ResetDtsJobOutcomeCallable; - typedef std::function&)> ResetDtsJobAsyncHandler; typedef Outcome ResetSynchronizationJobOutcome; typedef std::future ResetSynchronizationJobOutcomeCallable; typedef std::function&)> ResetSynchronizationJobAsyncHandler; - typedef Outcome ShieldPrecheckOutcome; - typedef std::future ShieldPrecheckOutcomeCallable; - typedef std::function&)> ShieldPrecheckAsyncHandler; - typedef Outcome SkipPreCheckOutcome; - typedef std::future SkipPreCheckOutcomeCallable; - typedef std::function&)> SkipPreCheckAsyncHandler; - typedef Outcome StartDtsJobOutcome; - typedef std::future StartDtsJobOutcomeCallable; - typedef std::function&)> StartDtsJobAsyncHandler; - typedef Outcome StartDtsJobsOutcome; - typedef std::future StartDtsJobsOutcomeCallable; - typedef std::function&)> StartDtsJobsAsyncHandler; - typedef Outcome StartMigrationJobOutcome; - typedef std::future StartMigrationJobOutcomeCallable; - typedef std::function&)> StartMigrationJobAsyncHandler; - typedef Outcome StartSubscriptionInstanceOutcome; - typedef std::future StartSubscriptionInstanceOutcomeCallable; - typedef std::function&)> StartSubscriptionInstanceAsyncHandler; typedef Outcome StartSynchronizationJobOutcome; typedef std::future StartSynchronizationJobOutcomeCallable; typedef std::function&)> StartSynchronizationJobAsyncHandler; - typedef Outcome StopDedicatedClusterOutcome; - typedef std::future StopDedicatedClusterOutcomeCallable; - typedef std::function&)> StopDedicatedClusterAsyncHandler; - typedef Outcome StopDtsJobOutcome; - typedef std::future StopDtsJobOutcomeCallable; - typedef std::function&)> StopDtsJobAsyncHandler; - typedef Outcome StopDtsJobsOutcome; - typedef std::future StopDtsJobsOutcomeCallable; - typedef std::function&)> StopDtsJobsAsyncHandler; - typedef Outcome StopMigrationJobOutcome; - typedef std::future StopMigrationJobOutcomeCallable; - typedef std::function&)> StopMigrationJobAsyncHandler; - typedef Outcome SummaryJobDetailOutcome; - typedef std::future SummaryJobDetailOutcomeCallable; - typedef std::function&)> SummaryJobDetailAsyncHandler; - typedef Outcome SuspendDtsJobOutcome; - typedef std::future SuspendDtsJobOutcomeCallable; - typedef std::function&)> SuspendDtsJobAsyncHandler; - typedef Outcome SuspendDtsJobsOutcome; - typedef std::future SuspendDtsJobsOutcomeCallable; - typedef std::function&)> SuspendDtsJobsAsyncHandler; - typedef Outcome SuspendMigrationJobOutcome; - typedef std::future SuspendMigrationJobOutcomeCallable; - typedef std::function&)> SuspendMigrationJobAsyncHandler; typedef Outcome SuspendSynchronizationJobOutcome; typedef std::future SuspendSynchronizationJobOutcomeCallable; typedef std::function&)> SuspendSynchronizationJobAsyncHandler; - typedef Outcome SwitchPhysicalDtsJobToCloudOutcome; - typedef std::future SwitchPhysicalDtsJobToCloudOutcomeCallable; - typedef std::function&)> SwitchPhysicalDtsJobToCloudAsyncHandler; typedef Outcome SwitchSynchronizationEndpointOutcome; typedef std::future SwitchSynchronizationEndpointOutcomeCallable; typedef std::function&)> SwitchSynchronizationEndpointAsyncHandler; - typedef Outcome TagResourcesOutcome; - typedef std::future TagResourcesOutcomeCallable; - typedef std::function&)> TagResourcesAsyncHandler; - typedef Outcome TransferInstanceClassOutcome; - typedef std::future TransferInstanceClassOutcomeCallable; - typedef std::function&)> TransferInstanceClassAsyncHandler; - typedef Outcome TransferPayTypeOutcome; - typedef std::future TransferPayTypeOutcomeCallable; - typedef std::function&)> TransferPayTypeAsyncHandler; - typedef Outcome UntagResourcesOutcome; - typedef std::future UntagResourcesOutcomeCallable; - typedef std::function&)> UntagResourcesAsyncHandler; - typedef Outcome UpgradeTwoWayOutcome; - typedef std::future UpgradeTwoWayOutcomeCallable; - typedef std::function&)> UpgradeTwoWayAsyncHandler; - typedef Outcome WhiteIpListOutcome; - typedef std::future WhiteIpListOutcomeCallable; - typedef std::function&)> WhiteIpListAsyncHandler; DtsClient(const Credentials &credentials, const ClientConfiguration &configuration); DtsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); DtsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~DtsClient(); - ConfigureDtsJobOutcome configureDtsJob(const Model::ConfigureDtsJobRequest &request)const; - void configureDtsJobAsync(const Model::ConfigureDtsJobRequest& request, const ConfigureDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureDtsJobOutcomeCallable configureDtsJobCallable(const Model::ConfigureDtsJobRequest& request) const; - ConfigureMigrationJobOutcome configureMigrationJob(const Model::ConfigureMigrationJobRequest &request)const; - void configureMigrationJobAsync(const Model::ConfigureMigrationJobRequest& request, const ConfigureMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureMigrationJobOutcomeCallable configureMigrationJobCallable(const Model::ConfigureMigrationJobRequest& request) const; - ConfigureMigrationJobAlertOutcome configureMigrationJobAlert(const Model::ConfigureMigrationJobAlertRequest &request)const; - void configureMigrationJobAlertAsync(const Model::ConfigureMigrationJobAlertRequest& request, const ConfigureMigrationJobAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureMigrationJobAlertOutcomeCallable configureMigrationJobAlertCallable(const Model::ConfigureMigrationJobAlertRequest& request) const; - ConfigureSubscriptionOutcome configureSubscription(const Model::ConfigureSubscriptionRequest &request)const; - void configureSubscriptionAsync(const Model::ConfigureSubscriptionRequest& request, const ConfigureSubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureSubscriptionOutcomeCallable configureSubscriptionCallable(const Model::ConfigureSubscriptionRequest& request) const; - ConfigureSubscriptionInstanceOutcome configureSubscriptionInstance(const Model::ConfigureSubscriptionInstanceRequest &request)const; - void configureSubscriptionInstanceAsync(const Model::ConfigureSubscriptionInstanceRequest& request, const ConfigureSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureSubscriptionInstanceOutcomeCallable configureSubscriptionInstanceCallable(const Model::ConfigureSubscriptionInstanceRequest& request) const; - ConfigureSubscriptionInstanceAlertOutcome configureSubscriptionInstanceAlert(const Model::ConfigureSubscriptionInstanceAlertRequest &request)const; - void configureSubscriptionInstanceAlertAsync(const Model::ConfigureSubscriptionInstanceAlertRequest& request, const ConfigureSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureSubscriptionInstanceAlertOutcomeCallable configureSubscriptionInstanceAlertCallable(const Model::ConfigureSubscriptionInstanceAlertRequest& request) const; ConfigureSynchronizationJobOutcome configureSynchronizationJob(const Model::ConfigureSynchronizationJobRequest &request)const; void configureSynchronizationJobAsync(const Model::ConfigureSynchronizationJobRequest& request, const ConfigureSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfigureSynchronizationJobOutcomeCallable configureSynchronizationJobCallable(const Model::ConfigureSynchronizationJobRequest& request) const; ConfigureSynchronizationJobAlertOutcome configureSynchronizationJobAlert(const Model::ConfigureSynchronizationJobAlertRequest &request)const; void configureSynchronizationJobAlertAsync(const Model::ConfigureSynchronizationJobAlertRequest& request, const ConfigureSynchronizationJobAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ConfigureSynchronizationJobAlertOutcomeCallable configureSynchronizationJobAlertCallable(const Model::ConfigureSynchronizationJobAlertRequest& request) const; - ConfigureSynchronizationJobReplicatorCompareOutcome configureSynchronizationJobReplicatorCompare(const Model::ConfigureSynchronizationJobReplicatorCompareRequest &request)const; - void configureSynchronizationJobReplicatorCompareAsync(const Model::ConfigureSynchronizationJobReplicatorCompareRequest& request, const ConfigureSynchronizationJobReplicatorCompareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ConfigureSynchronizationJobReplicatorCompareOutcomeCallable configureSynchronizationJobReplicatorCompareCallable(const Model::ConfigureSynchronizationJobReplicatorCompareRequest& request) const; - CountJobByConditionOutcome countJobByCondition(const Model::CountJobByConditionRequest &request)const; - void countJobByConditionAsync(const Model::CountJobByConditionRequest& request, const CountJobByConditionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CountJobByConditionOutcomeCallable countJobByConditionCallable(const Model::CountJobByConditionRequest& request) const; - CreateConsumerChannelOutcome createConsumerChannel(const Model::CreateConsumerChannelRequest &request)const; - void createConsumerChannelAsync(const Model::CreateConsumerChannelRequest& request, const CreateConsumerChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateConsumerChannelOutcomeCallable createConsumerChannelCallable(const Model::CreateConsumerChannelRequest& request) const; - CreateConsumerGroupOutcome createConsumerGroup(const Model::CreateConsumerGroupRequest &request)const; - void createConsumerGroupAsync(const Model::CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateConsumerGroupOutcomeCallable createConsumerGroupCallable(const Model::CreateConsumerGroupRequest& request) const; - CreateDedicatedClusterMonitorRuleOutcome createDedicatedClusterMonitorRule(const Model::CreateDedicatedClusterMonitorRuleRequest &request)const; - void createDedicatedClusterMonitorRuleAsync(const Model::CreateDedicatedClusterMonitorRuleRequest& request, const CreateDedicatedClusterMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDedicatedClusterMonitorRuleOutcomeCallable createDedicatedClusterMonitorRuleCallable(const Model::CreateDedicatedClusterMonitorRuleRequest& request) const; - CreateDtsInstanceOutcome createDtsInstance(const Model::CreateDtsInstanceRequest &request)const; - void createDtsInstanceAsync(const Model::CreateDtsInstanceRequest& request, const CreateDtsInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateDtsInstanceOutcomeCallable createDtsInstanceCallable(const Model::CreateDtsInstanceRequest& request) const; - CreateJobMonitorRuleOutcome createJobMonitorRule(const Model::CreateJobMonitorRuleRequest &request)const; - void createJobMonitorRuleAsync(const Model::CreateJobMonitorRuleRequest& request, const CreateJobMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateJobMonitorRuleOutcomeCallable createJobMonitorRuleCallable(const Model::CreateJobMonitorRuleRequest& request) const; - CreateMigrationJobOutcome createMigrationJob(const Model::CreateMigrationJobRequest &request)const; - void createMigrationJobAsync(const Model::CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMigrationJobOutcomeCallable createMigrationJobCallable(const Model::CreateMigrationJobRequest& request) const; - CreateSubscriptionInstanceOutcome createSubscriptionInstance(const Model::CreateSubscriptionInstanceRequest &request)const; - void createSubscriptionInstanceAsync(const Model::CreateSubscriptionInstanceRequest& request, const CreateSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateSubscriptionInstanceOutcomeCallable createSubscriptionInstanceCallable(const Model::CreateSubscriptionInstanceRequest& request) const; CreateSynchronizationJobOutcome createSynchronizationJob(const Model::CreateSynchronizationJobRequest &request)const; void createSynchronizationJobAsync(const Model::CreateSynchronizationJobRequest& request, const CreateSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateSynchronizationJobOutcomeCallable createSynchronizationJobCallable(const Model::CreateSynchronizationJobRequest& request) const; - DeleteConsumerChannelOutcome deleteConsumerChannel(const Model::DeleteConsumerChannelRequest &request)const; - void deleteConsumerChannelAsync(const Model::DeleteConsumerChannelRequest& request, const DeleteConsumerChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteConsumerChannelOutcomeCallable deleteConsumerChannelCallable(const Model::DeleteConsumerChannelRequest& request) const; - DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const; - void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteConsumerGroupOutcomeCallable deleteConsumerGroupCallable(const Model::DeleteConsumerGroupRequest& request) const; - DeleteDtsJobOutcome deleteDtsJob(const Model::DeleteDtsJobRequest &request)const; - void deleteDtsJobAsync(const Model::DeleteDtsJobRequest& request, const DeleteDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDtsJobOutcomeCallable deleteDtsJobCallable(const Model::DeleteDtsJobRequest& request) const; - DeleteDtsJobsOutcome deleteDtsJobs(const Model::DeleteDtsJobsRequest &request)const; - void deleteDtsJobsAsync(const Model::DeleteDtsJobsRequest& request, const DeleteDtsJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteDtsJobsOutcomeCallable deleteDtsJobsCallable(const Model::DeleteDtsJobsRequest& request) const; - DeleteMigrationJobOutcome deleteMigrationJob(const Model::DeleteMigrationJobRequest &request)const; - void deleteMigrationJobAsync(const Model::DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMigrationJobOutcomeCallable deleteMigrationJobCallable(const Model::DeleteMigrationJobRequest& request) const; - DeleteSubscriptionInstanceOutcome deleteSubscriptionInstance(const Model::DeleteSubscriptionInstanceRequest &request)const; - void deleteSubscriptionInstanceAsync(const Model::DeleteSubscriptionInstanceRequest& request, const DeleteSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSubscriptionInstanceOutcomeCallable deleteSubscriptionInstanceCallable(const Model::DeleteSubscriptionInstanceRequest& request) const; DeleteSynchronizationJobOutcome deleteSynchronizationJob(const Model::DeleteSynchronizationJobRequest &request)const; void deleteSynchronizationJobAsync(const Model::DeleteSynchronizationJobRequest& request, const DeleteSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteSynchronizationJobOutcomeCallable deleteSynchronizationJobCallable(const Model::DeleteSynchronizationJobRequest& request) const; - DescribeCheckJobsOutcome describeCheckJobs(const Model::DescribeCheckJobsRequest &request)const; - void describeCheckJobsAsync(const Model::DescribeCheckJobsRequest& request, const DescribeCheckJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCheckJobsOutcomeCallable describeCheckJobsCallable(const Model::DescribeCheckJobsRequest& request) const; - DescribeClusterOperateLogsOutcome describeClusterOperateLogs(const Model::DescribeClusterOperateLogsRequest &request)const; - void describeClusterOperateLogsAsync(const Model::DescribeClusterOperateLogsRequest& request, const DescribeClusterOperateLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterOperateLogsOutcomeCallable describeClusterOperateLogsCallable(const Model::DescribeClusterOperateLogsRequest& request) const; - DescribeClusterUsedUtilizationOutcome describeClusterUsedUtilization(const Model::DescribeClusterUsedUtilizationRequest &request)const; - void describeClusterUsedUtilizationAsync(const Model::DescribeClusterUsedUtilizationRequest& request, const DescribeClusterUsedUtilizationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeClusterUsedUtilizationOutcomeCallable describeClusterUsedUtilizationCallable(const Model::DescribeClusterUsedUtilizationRequest& request) const; - DescribeConnectionStatusOutcome describeConnectionStatus(const Model::DescribeConnectionStatusRequest &request)const; - void describeConnectionStatusAsync(const Model::DescribeConnectionStatusRequest& request, const DescribeConnectionStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConnectionStatusOutcomeCallable describeConnectionStatusCallable(const Model::DescribeConnectionStatusRequest& request) const; - DescribeConsumerChannelOutcome describeConsumerChannel(const Model::DescribeConsumerChannelRequest &request)const; - void describeConsumerChannelAsync(const Model::DescribeConsumerChannelRequest& request, const DescribeConsumerChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConsumerChannelOutcomeCallable describeConsumerChannelCallable(const Model::DescribeConsumerChannelRequest& request) const; - DescribeConsumerGroupOutcome describeConsumerGroup(const Model::DescribeConsumerGroupRequest &request)const; - void describeConsumerGroupAsync(const Model::DescribeConsumerGroupRequest& request, const DescribeConsumerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeConsumerGroupOutcomeCallable describeConsumerGroupCallable(const Model::DescribeConsumerGroupRequest& request) const; - DescribeDTSIPOutcome describeDTSIP(const Model::DescribeDTSIPRequest &request)const; - void describeDTSIPAsync(const Model::DescribeDTSIPRequest& request, const DescribeDTSIPAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDTSIPOutcomeCallable describeDTSIPCallable(const Model::DescribeDTSIPRequest& request) const; - DescribeDataCheckReportUrlOutcome describeDataCheckReportUrl(const Model::DescribeDataCheckReportUrlRequest &request)const; - void describeDataCheckReportUrlAsync(const Model::DescribeDataCheckReportUrlRequest& request, const DescribeDataCheckReportUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataCheckReportUrlOutcomeCallable describeDataCheckReportUrlCallable(const Model::DescribeDataCheckReportUrlRequest& request) const; - DescribeDataCheckTableDetailsOutcome describeDataCheckTableDetails(const Model::DescribeDataCheckTableDetailsRequest &request)const; - void describeDataCheckTableDetailsAsync(const Model::DescribeDataCheckTableDetailsRequest& request, const DescribeDataCheckTableDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataCheckTableDetailsOutcomeCallable describeDataCheckTableDetailsCallable(const Model::DescribeDataCheckTableDetailsRequest& request) const; - DescribeDataCheckTableDiffDetailsOutcome describeDataCheckTableDiffDetails(const Model::DescribeDataCheckTableDiffDetailsRequest &request)const; - void describeDataCheckTableDiffDetailsAsync(const Model::DescribeDataCheckTableDiffDetailsRequest& request, const DescribeDataCheckTableDiffDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDataCheckTableDiffDetailsOutcomeCallable describeDataCheckTableDiffDetailsCallable(const Model::DescribeDataCheckTableDiffDetailsRequest& request) const; - DescribeDedicatedClusterOutcome describeDedicatedCluster(const Model::DescribeDedicatedClusterRequest &request)const; - void describeDedicatedClusterAsync(const Model::DescribeDedicatedClusterRequest& request, const DescribeDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDedicatedClusterOutcomeCallable describeDedicatedClusterCallable(const Model::DescribeDedicatedClusterRequest& request) const; - DescribeDedicatedClusterMonitorRuleOutcome describeDedicatedClusterMonitorRule(const Model::DescribeDedicatedClusterMonitorRuleRequest &request)const; - void describeDedicatedClusterMonitorRuleAsync(const Model::DescribeDedicatedClusterMonitorRuleRequest& request, const DescribeDedicatedClusterMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDedicatedClusterMonitorRuleOutcomeCallable describeDedicatedClusterMonitorRuleCallable(const Model::DescribeDedicatedClusterMonitorRuleRequest& request) const; - DescribeDtsEtlJobVersionInfoOutcome describeDtsEtlJobVersionInfo(const Model::DescribeDtsEtlJobVersionInfoRequest &request)const; - void describeDtsEtlJobVersionInfoAsync(const Model::DescribeDtsEtlJobVersionInfoRequest& request, const DescribeDtsEtlJobVersionInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDtsEtlJobVersionInfoOutcomeCallable describeDtsEtlJobVersionInfoCallable(const Model::DescribeDtsEtlJobVersionInfoRequest& request) const; - DescribeDtsJobDetailOutcome describeDtsJobDetail(const Model::DescribeDtsJobDetailRequest &request)const; - void describeDtsJobDetailAsync(const Model::DescribeDtsJobDetailRequest& request, const DescribeDtsJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDtsJobDetailOutcomeCallable describeDtsJobDetailCallable(const Model::DescribeDtsJobDetailRequest& request) const; - DescribeDtsJobsOutcome describeDtsJobs(const Model::DescribeDtsJobsRequest &request)const; - void describeDtsJobsAsync(const Model::DescribeDtsJobsRequest& request, const DescribeDtsJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDtsJobsOutcomeCallable describeDtsJobsCallable(const Model::DescribeDtsJobsRequest& request) const; - DescribeDtsServiceLogOutcome describeDtsServiceLog(const Model::DescribeDtsServiceLogRequest &request)const; - void describeDtsServiceLogAsync(const Model::DescribeDtsServiceLogRequest& request, const DescribeDtsServiceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeDtsServiceLogOutcomeCallable describeDtsServiceLogCallable(const Model::DescribeDtsServiceLogRequest& request) const; DescribeEndpointSwitchStatusOutcome describeEndpointSwitchStatus(const Model::DescribeEndpointSwitchStatusRequest &request)const; void describeEndpointSwitchStatusAsync(const Model::DescribeEndpointSwitchStatusRequest& request, const DescribeEndpointSwitchStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEndpointSwitchStatusOutcomeCallable describeEndpointSwitchStatusCallable(const Model::DescribeEndpointSwitchStatusRequest& request) const; - DescribeEtlJobLogsOutcome describeEtlJobLogs(const Model::DescribeEtlJobLogsRequest &request)const; - void describeEtlJobLogsAsync(const Model::DescribeEtlJobLogsRequest& request, const DescribeEtlJobLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEtlJobLogsOutcomeCallable describeEtlJobLogsCallable(const Model::DescribeEtlJobLogsRequest& request) const; - DescribeInitializationStatusOutcome describeInitializationStatus(const Model::DescribeInitializationStatusRequest &request)const; - void describeInitializationStatusAsync(const Model::DescribeInitializationStatusRequest& request, const DescribeInitializationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeInitializationStatusOutcomeCallable describeInitializationStatusCallable(const Model::DescribeInitializationStatusRequest& request) const; - DescribeJobMonitorRuleOutcome describeJobMonitorRule(const Model::DescribeJobMonitorRuleRequest &request)const; - void describeJobMonitorRuleAsync(const Model::DescribeJobMonitorRuleRequest& request, const DescribeJobMonitorRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeJobMonitorRuleOutcomeCallable describeJobMonitorRuleCallable(const Model::DescribeJobMonitorRuleRequest& request) const; - DescribeMetricListOutcome describeMetricList(const Model::DescribeMetricListRequest &request)const; - void describeMetricListAsync(const Model::DescribeMetricListRequest& request, const DescribeMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMetricListOutcomeCallable describeMetricListCallable(const Model::DescribeMetricListRequest& request) const; - DescribeMigrationJobAlertOutcome describeMigrationJobAlert(const Model::DescribeMigrationJobAlertRequest &request)const; - void describeMigrationJobAlertAsync(const Model::DescribeMigrationJobAlertRequest& request, const DescribeMigrationJobAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMigrationJobAlertOutcomeCallable describeMigrationJobAlertCallable(const Model::DescribeMigrationJobAlertRequest& request) const; - DescribeMigrationJobDetailOutcome describeMigrationJobDetail(const Model::DescribeMigrationJobDetailRequest &request)const; - void describeMigrationJobDetailAsync(const Model::DescribeMigrationJobDetailRequest& request, const DescribeMigrationJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMigrationJobDetailOutcomeCallable describeMigrationJobDetailCallable(const Model::DescribeMigrationJobDetailRequest& request) const; - DescribeMigrationJobStatusOutcome describeMigrationJobStatus(const Model::DescribeMigrationJobStatusRequest &request)const; - void describeMigrationJobStatusAsync(const Model::DescribeMigrationJobStatusRequest& request, const DescribeMigrationJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMigrationJobStatusOutcomeCallable describeMigrationJobStatusCallable(const Model::DescribeMigrationJobStatusRequest& request) const; - DescribeMigrationJobsOutcome describeMigrationJobs(const Model::DescribeMigrationJobsRequest &request)const; - void describeMigrationJobsAsync(const Model::DescribeMigrationJobsRequest& request, const DescribeMigrationJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeMigrationJobsOutcomeCallable describeMigrationJobsCallable(const Model::DescribeMigrationJobsRequest& request) const; - DescribePreCheckStatusOutcome describePreCheckStatus(const Model::DescribePreCheckStatusRequest &request)const; - void describePreCheckStatusAsync(const Model::DescribePreCheckStatusRequest& request, const DescribePreCheckStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePreCheckStatusOutcomeCallable describePreCheckStatusCallable(const Model::DescribePreCheckStatusRequest& request) const; - DescribeSubscriptionInstanceAlertOutcome describeSubscriptionInstanceAlert(const Model::DescribeSubscriptionInstanceAlertRequest &request)const; - void describeSubscriptionInstanceAlertAsync(const Model::DescribeSubscriptionInstanceAlertRequest& request, const DescribeSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSubscriptionInstanceAlertOutcomeCallable describeSubscriptionInstanceAlertCallable(const Model::DescribeSubscriptionInstanceAlertRequest& request) const; - DescribeSubscriptionInstanceStatusOutcome describeSubscriptionInstanceStatus(const Model::DescribeSubscriptionInstanceStatusRequest &request)const; - void describeSubscriptionInstanceStatusAsync(const Model::DescribeSubscriptionInstanceStatusRequest& request, const DescribeSubscriptionInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSubscriptionInstanceStatusOutcomeCallable describeSubscriptionInstanceStatusCallable(const Model::DescribeSubscriptionInstanceStatusRequest& request) const; - DescribeSubscriptionInstancesOutcome describeSubscriptionInstances(const Model::DescribeSubscriptionInstancesRequest &request)const; - void describeSubscriptionInstancesAsync(const Model::DescribeSubscriptionInstancesRequest& request, const DescribeSubscriptionInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSubscriptionInstancesOutcomeCallable describeSubscriptionInstancesCallable(const Model::DescribeSubscriptionInstancesRequest& request) const; - DescribeSubscriptionMetaOutcome describeSubscriptionMeta(const Model::DescribeSubscriptionMetaRequest &request)const; - void describeSubscriptionMetaAsync(const Model::DescribeSubscriptionMetaRequest& request, const DescribeSubscriptionMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSubscriptionMetaOutcomeCallable describeSubscriptionMetaCallable(const Model::DescribeSubscriptionMetaRequest& request) const; DescribeSynchronizationJobAlertOutcome describeSynchronizationJobAlert(const Model::DescribeSynchronizationJobAlertRequest &request)const; void describeSynchronizationJobAlertAsync(const Model::DescribeSynchronizationJobAlertRequest& request, const DescribeSynchronizationJobAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSynchronizationJobAlertOutcomeCallable describeSynchronizationJobAlertCallable(const Model::DescribeSynchronizationJobAlertRequest& request) const; - DescribeSynchronizationJobReplicatorCompareOutcome describeSynchronizationJobReplicatorCompare(const Model::DescribeSynchronizationJobReplicatorCompareRequest &request)const; - void describeSynchronizationJobReplicatorCompareAsync(const Model::DescribeSynchronizationJobReplicatorCompareRequest& request, const DescribeSynchronizationJobReplicatorCompareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSynchronizationJobReplicatorCompareOutcomeCallable describeSynchronizationJobReplicatorCompareCallable(const Model::DescribeSynchronizationJobReplicatorCompareRequest& request) const; DescribeSynchronizationJobStatusOutcome describeSynchronizationJobStatus(const Model::DescribeSynchronizationJobStatusRequest &request)const; void describeSynchronizationJobStatusAsync(const Model::DescribeSynchronizationJobStatusRequest& request, const DescribeSynchronizationJobStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSynchronizationJobStatusOutcomeCallable describeSynchronizationJobStatusCallable(const Model::DescribeSynchronizationJobStatusRequest& request) const; - DescribeSynchronizationJobStatusListOutcome describeSynchronizationJobStatusList(const Model::DescribeSynchronizationJobStatusListRequest &request)const; - void describeSynchronizationJobStatusListAsync(const Model::DescribeSynchronizationJobStatusListRequest& request, const DescribeSynchronizationJobStatusListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSynchronizationJobStatusListOutcomeCallable describeSynchronizationJobStatusListCallable(const Model::DescribeSynchronizationJobStatusListRequest& request) const; DescribeSynchronizationJobsOutcome describeSynchronizationJobs(const Model::DescribeSynchronizationJobsRequest &request)const; void describeSynchronizationJobsAsync(const Model::DescribeSynchronizationJobsRequest& request, const DescribeSynchronizationJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSynchronizationJobsOutcomeCallable describeSynchronizationJobsCallable(const Model::DescribeSynchronizationJobsRequest& request) const; DescribeSynchronizationObjectModifyStatusOutcome describeSynchronizationObjectModifyStatus(const Model::DescribeSynchronizationObjectModifyStatusRequest &request)const; void describeSynchronizationObjectModifyStatusAsync(const Model::DescribeSynchronizationObjectModifyStatusRequest& request, const DescribeSynchronizationObjectModifyStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSynchronizationObjectModifyStatusOutcomeCallable describeSynchronizationObjectModifyStatusCallable(const Model::DescribeSynchronizationObjectModifyStatusRequest& request) const; - DescribeTagKeysOutcome describeTagKeys(const Model::DescribeTagKeysRequest &request)const; - void describeTagKeysAsync(const Model::DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTagKeysOutcomeCallable describeTagKeysCallable(const Model::DescribeTagKeysRequest& request) const; - DescribeTagValuesOutcome describeTagValues(const Model::DescribeTagValuesRequest &request)const; - void describeTagValuesAsync(const Model::DescribeTagValuesRequest& request, const DescribeTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTagValuesOutcomeCallable describeTagValuesCallable(const Model::DescribeTagValuesRequest& request) const; - InitDtsRdsInstanceOutcome initDtsRdsInstance(const Model::InitDtsRdsInstanceRequest &request)const; - void initDtsRdsInstanceAsync(const Model::InitDtsRdsInstanceRequest& request, const InitDtsRdsInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - InitDtsRdsInstanceOutcomeCallable initDtsRdsInstanceCallable(const Model::InitDtsRdsInstanceRequest& request) const; - ListDedicatedClusterOutcome listDedicatedCluster(const Model::ListDedicatedClusterRequest &request)const; - void listDedicatedClusterAsync(const Model::ListDedicatedClusterRequest& request, const ListDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListDedicatedClusterOutcomeCallable listDedicatedClusterCallable(const Model::ListDedicatedClusterRequest& request) const; - ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; - void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; - ModifyConsumerChannelOutcome modifyConsumerChannel(const Model::ModifyConsumerChannelRequest &request)const; - void modifyConsumerChannelAsync(const Model::ModifyConsumerChannelRequest& request, const ModifyConsumerChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyConsumerChannelOutcomeCallable modifyConsumerChannelCallable(const Model::ModifyConsumerChannelRequest& request) const; - ModifyConsumerGroupPasswordOutcome modifyConsumerGroupPassword(const Model::ModifyConsumerGroupPasswordRequest &request)const; - void modifyConsumerGroupPasswordAsync(const Model::ModifyConsumerGroupPasswordRequest& request, const ModifyConsumerGroupPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyConsumerGroupPasswordOutcomeCallable modifyConsumerGroupPasswordCallable(const Model::ModifyConsumerGroupPasswordRequest& request) const; - ModifyConsumptionTimestampOutcome modifyConsumptionTimestamp(const Model::ModifyConsumptionTimestampRequest &request)const; - void modifyConsumptionTimestampAsync(const Model::ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyConsumptionTimestampOutcomeCallable modifyConsumptionTimestampCallable(const Model::ModifyConsumptionTimestampRequest& request) const; - ModifyDedicatedClusterOutcome modifyDedicatedCluster(const Model::ModifyDedicatedClusterRequest &request)const; - void modifyDedicatedClusterAsync(const Model::ModifyDedicatedClusterRequest& request, const ModifyDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDedicatedClusterOutcomeCallable modifyDedicatedClusterCallable(const Model::ModifyDedicatedClusterRequest& request) const; - ModifyDtsJobOutcome modifyDtsJob(const Model::ModifyDtsJobRequest &request)const; - void modifyDtsJobAsync(const Model::ModifyDtsJobRequest& request, const ModifyDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDtsJobOutcomeCallable modifyDtsJobCallable(const Model::ModifyDtsJobRequest& request) const; - ModifyDtsJobDedicatedClusterOutcome modifyDtsJobDedicatedCluster(const Model::ModifyDtsJobDedicatedClusterRequest &request)const; - void modifyDtsJobDedicatedClusterAsync(const Model::ModifyDtsJobDedicatedClusterRequest& request, const ModifyDtsJobDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDtsJobDedicatedClusterOutcomeCallable modifyDtsJobDedicatedClusterCallable(const Model::ModifyDtsJobDedicatedClusterRequest& request) const; - ModifyDtsJobDuLimitOutcome modifyDtsJobDuLimit(const Model::ModifyDtsJobDuLimitRequest &request)const; - void modifyDtsJobDuLimitAsync(const Model::ModifyDtsJobDuLimitRequest& request, const ModifyDtsJobDuLimitAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDtsJobDuLimitOutcomeCallable modifyDtsJobDuLimitCallable(const Model::ModifyDtsJobDuLimitRequest& request) const; - ModifyDtsJobNameOutcome modifyDtsJobName(const Model::ModifyDtsJobNameRequest &request)const; - void modifyDtsJobNameAsync(const Model::ModifyDtsJobNameRequest& request, const ModifyDtsJobNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDtsJobNameOutcomeCallable modifyDtsJobNameCallable(const Model::ModifyDtsJobNameRequest& request) const; - ModifyDtsJobPasswordOutcome modifyDtsJobPassword(const Model::ModifyDtsJobPasswordRequest &request)const; - void modifyDtsJobPasswordAsync(const Model::ModifyDtsJobPasswordRequest& request, const ModifyDtsJobPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyDtsJobPasswordOutcomeCallable modifyDtsJobPasswordCallable(const Model::ModifyDtsJobPasswordRequest& request) const; - ModifySubscriptionOutcome modifySubscription(const Model::ModifySubscriptionRequest &request)const; - void modifySubscriptionAsync(const Model::ModifySubscriptionRequest& request, const ModifySubscriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySubscriptionOutcomeCallable modifySubscriptionCallable(const Model::ModifySubscriptionRequest& request) const; - ModifySubscriptionObjectOutcome modifySubscriptionObject(const Model::ModifySubscriptionObjectRequest &request)const; - void modifySubscriptionObjectAsync(const Model::ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySubscriptionObjectOutcomeCallable modifySubscriptionObjectCallable(const Model::ModifySubscriptionObjectRequest& request) const; ModifySynchronizationObjectOutcome modifySynchronizationObject(const Model::ModifySynchronizationObjectRequest &request)const; void modifySynchronizationObjectAsync(const Model::ModifySynchronizationObjectRequest& request, const ModifySynchronizationObjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySynchronizationObjectOutcomeCallable modifySynchronizationObjectCallable(const Model::ModifySynchronizationObjectRequest& request) const; - RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; - void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; - ResetDtsJobOutcome resetDtsJob(const Model::ResetDtsJobRequest &request)const; - void resetDtsJobAsync(const Model::ResetDtsJobRequest& request, const ResetDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ResetDtsJobOutcomeCallable resetDtsJobCallable(const Model::ResetDtsJobRequest& request) const; ResetSynchronizationJobOutcome resetSynchronizationJob(const Model::ResetSynchronizationJobRequest &request)const; void resetSynchronizationJobAsync(const Model::ResetSynchronizationJobRequest& request, const ResetSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetSynchronizationJobOutcomeCallable resetSynchronizationJobCallable(const Model::ResetSynchronizationJobRequest& request) const; - ShieldPrecheckOutcome shieldPrecheck(const Model::ShieldPrecheckRequest &request)const; - void shieldPrecheckAsync(const Model::ShieldPrecheckRequest& request, const ShieldPrecheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ShieldPrecheckOutcomeCallable shieldPrecheckCallable(const Model::ShieldPrecheckRequest& request) const; - SkipPreCheckOutcome skipPreCheck(const Model::SkipPreCheckRequest &request)const; - void skipPreCheckAsync(const Model::SkipPreCheckRequest& request, const SkipPreCheckAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SkipPreCheckOutcomeCallable skipPreCheckCallable(const Model::SkipPreCheckRequest& request) const; - StartDtsJobOutcome startDtsJob(const Model::StartDtsJobRequest &request)const; - void startDtsJobAsync(const Model::StartDtsJobRequest& request, const StartDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartDtsJobOutcomeCallable startDtsJobCallable(const Model::StartDtsJobRequest& request) const; - StartDtsJobsOutcome startDtsJobs(const Model::StartDtsJobsRequest &request)const; - void startDtsJobsAsync(const Model::StartDtsJobsRequest& request, const StartDtsJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartDtsJobsOutcomeCallable startDtsJobsCallable(const Model::StartDtsJobsRequest& request) const; - StartMigrationJobOutcome startMigrationJob(const Model::StartMigrationJobRequest &request)const; - void startMigrationJobAsync(const Model::StartMigrationJobRequest& request, const StartMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartMigrationJobOutcomeCallable startMigrationJobCallable(const Model::StartMigrationJobRequest& request) const; - StartSubscriptionInstanceOutcome startSubscriptionInstance(const Model::StartSubscriptionInstanceRequest &request)const; - void startSubscriptionInstanceAsync(const Model::StartSubscriptionInstanceRequest& request, const StartSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartSubscriptionInstanceOutcomeCallable startSubscriptionInstanceCallable(const Model::StartSubscriptionInstanceRequest& request) const; StartSynchronizationJobOutcome startSynchronizationJob(const Model::StartSynchronizationJobRequest &request)const; void startSynchronizationJobAsync(const Model::StartSynchronizationJobRequest& request, const StartSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartSynchronizationJobOutcomeCallable startSynchronizationJobCallable(const Model::StartSynchronizationJobRequest& request) const; - StopDedicatedClusterOutcome stopDedicatedCluster(const Model::StopDedicatedClusterRequest &request)const; - void stopDedicatedClusterAsync(const Model::StopDedicatedClusterRequest& request, const StopDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopDedicatedClusterOutcomeCallable stopDedicatedClusterCallable(const Model::StopDedicatedClusterRequest& request) const; - StopDtsJobOutcome stopDtsJob(const Model::StopDtsJobRequest &request)const; - void stopDtsJobAsync(const Model::StopDtsJobRequest& request, const StopDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopDtsJobOutcomeCallable stopDtsJobCallable(const Model::StopDtsJobRequest& request) const; - StopDtsJobsOutcome stopDtsJobs(const Model::StopDtsJobsRequest &request)const; - void stopDtsJobsAsync(const Model::StopDtsJobsRequest& request, const StopDtsJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopDtsJobsOutcomeCallable stopDtsJobsCallable(const Model::StopDtsJobsRequest& request) const; - StopMigrationJobOutcome stopMigrationJob(const Model::StopMigrationJobRequest &request)const; - void stopMigrationJobAsync(const Model::StopMigrationJobRequest& request, const StopMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopMigrationJobOutcomeCallable stopMigrationJobCallable(const Model::StopMigrationJobRequest& request) const; - SummaryJobDetailOutcome summaryJobDetail(const Model::SummaryJobDetailRequest &request)const; - void summaryJobDetailAsync(const Model::SummaryJobDetailRequest& request, const SummaryJobDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SummaryJobDetailOutcomeCallable summaryJobDetailCallable(const Model::SummaryJobDetailRequest& request) const; - SuspendDtsJobOutcome suspendDtsJob(const Model::SuspendDtsJobRequest &request)const; - void suspendDtsJobAsync(const Model::SuspendDtsJobRequest& request, const SuspendDtsJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendDtsJobOutcomeCallable suspendDtsJobCallable(const Model::SuspendDtsJobRequest& request) const; - SuspendDtsJobsOutcome suspendDtsJobs(const Model::SuspendDtsJobsRequest &request)const; - void suspendDtsJobsAsync(const Model::SuspendDtsJobsRequest& request, const SuspendDtsJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendDtsJobsOutcomeCallable suspendDtsJobsCallable(const Model::SuspendDtsJobsRequest& request) const; - SuspendMigrationJobOutcome suspendMigrationJob(const Model::SuspendMigrationJobRequest &request)const; - void suspendMigrationJobAsync(const Model::SuspendMigrationJobRequest& request, const SuspendMigrationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SuspendMigrationJobOutcomeCallable suspendMigrationJobCallable(const Model::SuspendMigrationJobRequest& request) const; SuspendSynchronizationJobOutcome suspendSynchronizationJob(const Model::SuspendSynchronizationJobRequest &request)const; void suspendSynchronizationJobAsync(const Model::SuspendSynchronizationJobRequest& request, const SuspendSynchronizationJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SuspendSynchronizationJobOutcomeCallable suspendSynchronizationJobCallable(const Model::SuspendSynchronizationJobRequest& request) const; - SwitchPhysicalDtsJobToCloudOutcome switchPhysicalDtsJobToCloud(const Model::SwitchPhysicalDtsJobToCloudRequest &request)const; - void switchPhysicalDtsJobToCloudAsync(const Model::SwitchPhysicalDtsJobToCloudRequest& request, const SwitchPhysicalDtsJobToCloudAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SwitchPhysicalDtsJobToCloudOutcomeCallable switchPhysicalDtsJobToCloudCallable(const Model::SwitchPhysicalDtsJobToCloudRequest& request) const; SwitchSynchronizationEndpointOutcome switchSynchronizationEndpoint(const Model::SwitchSynchronizationEndpointRequest &request)const; void switchSynchronizationEndpointAsync(const Model::SwitchSynchronizationEndpointRequest& request, const SwitchSynchronizationEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchSynchronizationEndpointOutcomeCallable switchSynchronizationEndpointCallable(const Model::SwitchSynchronizationEndpointRequest& request) const; - TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; - void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; - TransferInstanceClassOutcome transferInstanceClass(const Model::TransferInstanceClassRequest &request)const; - void transferInstanceClassAsync(const Model::TransferInstanceClassRequest& request, const TransferInstanceClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TransferInstanceClassOutcomeCallable transferInstanceClassCallable(const Model::TransferInstanceClassRequest& request) const; - TransferPayTypeOutcome transferPayType(const Model::TransferPayTypeRequest &request)const; - void transferPayTypeAsync(const Model::TransferPayTypeRequest& request, const TransferPayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TransferPayTypeOutcomeCallable transferPayTypeCallable(const Model::TransferPayTypeRequest& request) const; - UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; - void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; - UpgradeTwoWayOutcome upgradeTwoWay(const Model::UpgradeTwoWayRequest &request)const; - void upgradeTwoWayAsync(const Model::UpgradeTwoWayRequest& request, const UpgradeTwoWayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpgradeTwoWayOutcomeCallable upgradeTwoWayCallable(const Model::UpgradeTwoWayRequest& request) const; - WhiteIpListOutcome whiteIpList(const Model::WhiteIpListRequest &request)const; - void whiteIpListAsync(const Model::WhiteIpListRequest& request, const WhiteIpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - WhiteIpListOutcomeCallable whiteIpListCallable(const Model::WhiteIpListRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/dts/include/alibabacloud/dts/model/ConfigureDtsJobRequest.h b/dts/include/alibabacloud/dts/model/ConfigureDtsJobRequest.h deleted file mode 100644 index b35c18f25..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureDtsJobRequest.h +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureDtsJobRequest : public RpcServiceRequest { -public: - ConfigureDtsJobRequest(); - ~ConfigureDtsJobRequest(); - std::string getCheckpoint() const; - void setCheckpoint(const std::string &checkpoint); - std::string getSourceEndpointUserName() const; - void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getDelayPhone() const; - void setDelayPhone(const std::string &delayPhone); - std::string getSourceEndpointIP() const; - void setSourceEndpointIP(const std::string &sourceEndpointIP); - std::string getErrorPhone() const; - void setErrorPhone(const std::string &errorPhone); - std::string getDestinationEndpointUserName() const; - void setDestinationEndpointUserName(const std::string &destinationEndpointUserName); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDbList() const; - void setDbList(const std::string &dbList); - std::string getDestinationEndpointOracleSID() const; - void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID); - std::string getDestinationEndpointPort() const; - void setDestinationEndpointPort(const std::string &destinationEndpointPort); - std::string getSourceEndpointPassword() const; - void setSourceEndpointPassword(const std::string &sourceEndpointPassword); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getJobType() const; - void setJobType(const std::string &jobType); - long getDelayRuleTime() const; - void setDelayRuleTime(long delayRuleTime); - bool getDisasterRecoveryJob() const; - void setDisasterRecoveryJob(bool disasterRecoveryJob); - std::string getDestinationEndpointIP() const; - void setDestinationEndpointIP(const std::string &destinationEndpointIP); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getDtsJobName() const; - void setDtsJobName(const std::string &dtsJobName); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - std::string getSourceEndpointRegion() const; - void setSourceEndpointRegion(const std::string &sourceEndpointRegion); - bool getDelayNotice() const; - void setDelayNotice(bool delayNotice); - std::string getDestinationEndpointInstanceType() const; - void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType); - bool getDataInitialization() const; - void setDataInitialization(bool dataInitialization); - std::string getSourceEndpointInstanceID() const; - void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); - bool getStructureInitialization() const; - void setStructureInitialization(bool structureInitialization); - std::string getSourceEndpointOwnerID() const; - void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); - std::string getDestinationEndpointRegion() const; - void setDestinationEndpointRegion(const std::string &destinationEndpointRegion); - std::string getDataCheckConfigure() const; - void setDataCheckConfigure(const std::string &dataCheckConfigure); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getReserve() const; - void setReserve(const std::string &reserve); - bool getDataSynchronization() const; - void setDataSynchronization(bool dataSynchronization); - std::string getFileOssUrl() const; - void setFileOssUrl(const std::string &fileOssUrl); - std::string getDestinationEndpointEngineName() const; - void setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName); - std::string getDestinationEndpointInstanceID() const; - void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID); - std::string getSourceEndpointPort() const; - void setSourceEndpointPort(const std::string &sourceEndpointPort); - std::string getSourceEndpointOracleSID() const; - void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); - std::string getDestinationEndpointDataBaseName() const; - void setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName); - bool getErrorNotice() const; - void setErrorNotice(bool errorNotice); - std::string getSourceEndpointRole() const; - void setSourceEndpointRole(const std::string &sourceEndpointRole); - std::string getDestinationEndpointPassword() const; - void setDestinationEndpointPassword(const std::string &destinationEndpointPassword); - std::string getSourceEndpointEngineName() const; - void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName); - -private: - std::string checkpoint_; - std::string sourceEndpointUserName_; - std::string delayPhone_; - std::string sourceEndpointIP_; - std::string errorPhone_; - std::string destinationEndpointUserName_; - std::string dtsJobId_; - std::string dbList_; - std::string destinationEndpointOracleSID_; - std::string destinationEndpointPort_; - std::string sourceEndpointPassword_; - std::string ownerId_; - std::string jobType_; - long delayRuleTime_; - bool disasterRecoveryJob_; - std::string destinationEndpointIP_; - std::string sourceEndpointInstanceType_; - std::string dtsJobName_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; - std::string sourceEndpointRegion_; - bool delayNotice_; - std::string destinationEndpointInstanceType_; - bool dataInitialization_; - std::string sourceEndpointInstanceID_; - bool structureInitialization_; - std::string sourceEndpointOwnerID_; - std::string dedicatedClusterId_; - std::string sourceEndpointDatabaseName_; - std::string destinationEndpointRegion_; - std::string dataCheckConfigure_; - std::string regionId_; - std::string reserve_; - bool dataSynchronization_; - std::string fileOssUrl_; - std::string destinationEndpointEngineName_; - std::string destinationEndpointInstanceID_; - std::string sourceEndpointPort_; - std::string sourceEndpointOracleSID_; - std::string destinationEndpointDataBaseName_; - bool errorNotice_; - std::string sourceEndpointRole_; - std::string destinationEndpointPassword_; - std::string sourceEndpointEngineName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureDtsJobResult.h b/dts/include/alibabacloud/dts/model/ConfigureDtsJobResult.h deleted file mode 100644 index 81d62967e..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureDtsJobResult : public ServiceResult - { - public: - - - ConfigureDtsJobResult(); - explicit ConfigureDtsJobResult(const std::string &payload); - ~ConfigureDtsJobResult(); - std::string getDtsJobId()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getDtsInstanceId()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - std::string httpStatusCode_; - std::string errMessage_; - std::string dtsInstanceId_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h b/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h deleted file mode 100644 index ce7be98ff..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureMigrationJobAlertRequest : public RpcServiceRequest { -public: - ConfigureMigrationJobAlertRequest(); - ~ConfigureMigrationJobAlertRequest(); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDelayAlertPhone() const; - void setDelayAlertPhone(const std::string &delayAlertPhone); - std::string getDelayOverSeconds() const; - void setDelayOverSeconds(const std::string &delayOverSeconds); - std::string getDelayAlertStatus() const; - void setDelayAlertStatus(const std::string &delayAlertStatus); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getErrorAlertPhone() const; - void setErrorAlertPhone(const std::string &errorAlertPhone); - std::string getErrorAlertStatus() const; - void setErrorAlertStatus(const std::string &errorAlertStatus); - -private: - std::string migrationJobId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string delayAlertPhone_; - std::string delayOverSeconds_; - std::string delayAlertStatus_; - std::string ownerId_; - std::string errorAlertPhone_; - std::string errorAlertStatus_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertResult.h b/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertResult.h deleted file mode 100644 index 02a8fe512..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobAlertResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureMigrationJobAlertResult : public ServiceResult - { - public: - - - ConfigureMigrationJobAlertResult(); - explicit ConfigureMigrationJobAlertResult(const std::string &payload); - ~ConfigureMigrationJobAlertResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBALERTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h deleted file mode 100644 index cda687e6b..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobRequest.h +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureMigrationJobRequest : public RpcServiceRequest { -public: - ConfigureMigrationJobRequest(); - ~ConfigureMigrationJobRequest(); - std::string getSourceEndpointInstanceID() const; - void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); - std::string getCheckpoint() const; - void setCheckpoint(const std::string &checkpoint); - std::string getDestinationEndpointInstanceID() const; - void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID); - std::string getSourceEndpointIP() const; - void setSourceEndpointIP(const std::string &sourceEndpointIP); - std::string getDestinationEndpointPassword() const; - void setDestinationEndpointPassword(const std::string &destinationEndpointPassword); - bool getMigrationModeDataIntialization() const; - void setMigrationModeDataIntialization(bool migrationModeDataIntialization); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - bool getMigrationModeStructureIntialization() const; - void setMigrationModeStructureIntialization(bool migrationModeStructureIntialization); - bool getMigrationModeDataSynchronization() const; - void setMigrationModeDataSynchronization(bool migrationModeDataSynchronization); - std::string getDestinationEndpointRegion() const; - void setDestinationEndpointRegion(const std::string &destinationEndpointRegion); - std::string getSourceEndpointUserName() const; - void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); - std::string getSourceEndpointPort() const; - void setSourceEndpointPort(const std::string &sourceEndpointPort); - std::string getSourceEndpointOwnerID() const; - void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID); - std::string getDestinationEndpointPort() const; - void setDestinationEndpointPort(const std::string &destinationEndpointPort); - std::string getSourceEndpointRole() const; - void setSourceEndpointRole(const std::string &sourceEndpointRole); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getSourceEndpointPassword() const; - void setSourceEndpointPassword(const std::string &sourceEndpointPassword); - std::string getDestinationEndpointIP() const; - void setDestinationEndpointIP(const std::string &destinationEndpointIP); - std::string getMigrationJobName() const; - void setMigrationJobName(const std::string &migrationJobName); - std::string getDestinationEndpointInstanceType() const; - void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType); - std::string getSourceEndpointEngineName() const; - void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName); - std::string getSourceEndpointOracleSID() const; - void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); - std::string getMigrationObject() const; - void setMigrationObject(const std::string &migrationObject); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getDestinationEndpointEngineName() const; - void setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDestinationEndpointUserName() const; - void setDestinationEndpointUserName(const std::string &destinationEndpointUserName); - std::string getDestinationEndpointOracleSID() const; - void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID); - std::string getSourceEndpointRegion() const; - void setSourceEndpointRegion(const std::string &sourceEndpointRegion); - std::string getDestinationEndpointDataBaseName() const; - void setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName); - std::string getMigrationReserved() const; - void setMigrationReserved(const std::string &migrationReserved); - -private: - std::string sourceEndpointInstanceID_; - std::string checkpoint_; - std::string destinationEndpointInstanceID_; - std::string sourceEndpointIP_; - std::string destinationEndpointPassword_; - bool migrationModeDataIntialization_; - std::string accountId_; - bool migrationModeStructureIntialization_; - bool migrationModeDataSynchronization_; - std::string destinationEndpointRegion_; - std::string sourceEndpointUserName_; - std::string sourceEndpointDatabaseName_; - std::string sourceEndpointPort_; - std::string sourceEndpointOwnerID_; - std::string destinationEndpointPort_; - std::string sourceEndpointRole_; - std::string ownerId_; - std::string sourceEndpointPassword_; - std::string destinationEndpointIP_; - std::string migrationJobName_; - std::string destinationEndpointInstanceType_; - std::string sourceEndpointEngineName_; - std::string sourceEndpointOracleSID_; - std::string migrationObject_; - std::string migrationJobId_; - std::string sourceEndpointInstanceType_; - std::string destinationEndpointEngineName_; - std::string accessKeyId_; - std::string regionId_; - std::string destinationEndpointUserName_; - std::string destinationEndpointOracleSID_; - std::string sourceEndpointRegion_; - std::string destinationEndpointDataBaseName_; - std::string migrationReserved_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobResult.h b/dts/include/alibabacloud/dts/model/ConfigureMigrationJobResult.h deleted file mode 100644 index e3ebdc8ad..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureMigrationJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGUREMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureMigrationJobResult : public ServiceResult - { - public: - - - ConfigureMigrationJobResult(); - explicit ConfigureMigrationJobResult(const std::string &payload); - ~ConfigureMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGUREMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertRequest.h deleted file mode 100644 index d8ea4a27d..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionInstanceAlertRequest : public RpcServiceRequest { -public: - ConfigureSubscriptionInstanceAlertRequest(); - ~ConfigureSubscriptionInstanceAlertRequest(); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDelayAlertPhone() const; - void setDelayAlertPhone(const std::string &delayAlertPhone); - std::string getDelayOverSeconds() const; - void setDelayOverSeconds(const std::string &delayOverSeconds); - std::string getDelayAlertStatus() const; - void setDelayAlertStatus(const std::string &delayAlertStatus); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getErrorAlertPhone() const; - void setErrorAlertPhone(const std::string &errorAlertPhone); - std::string getErrorAlertStatus() const; - void setErrorAlertStatus(const std::string &errorAlertStatus); - -private: - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string delayAlertPhone_; - std::string delayOverSeconds_; - std::string delayAlertStatus_; - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string errorAlertPhone_; - std::string errorAlertStatus_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertResult.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertResult.h deleted file mode 100644 index 8e4f6a2d5..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceAlertResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionInstanceAlertResult : public ServiceResult - { - public: - - - ConfigureSubscriptionInstanceAlertResult(); - explicit ConfigureSubscriptionInstanceAlertResult(const std::string &payload); - ~ConfigureSubscriptionInstanceAlertResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEALERTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceRequest.h deleted file mode 100644 index 721d2fdf8..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceRequest.h +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionInstanceRequest : public RpcServiceRequest { -public: - ConfigureSubscriptionInstanceRequest(); - ~ConfigureSubscriptionInstanceRequest(); - std::string getSourceEndpointInstanceID() const; - void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); - std::string getSourceEndpointOracleSID() const; - void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); - std::string getSourceEndpointIP() const; - void setSourceEndpointIP(const std::string &sourceEndpointIP); - bool getSubscriptionDataTypeDML() const; - void setSubscriptionDataTypeDML(bool subscriptionDataTypeDML); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSubscriptionObject() const; - void setSubscriptionObject(const std::string &subscriptionObject); - std::string getSubscriptionInstanceVSwitchId() const; - void setSubscriptionInstanceVSwitchId(const std::string &subscriptionInstanceVSwitchId); - std::string getSourceEndpointUserName() const; - void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); - std::string getSourceEndpointPort() const; - void setSourceEndpointPort(const std::string &sourceEndpointPort); - std::string getSourceEndpointOwnerID() const; - void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID); - std::string getSubscriptionInstanceVPCId() const; - void setSubscriptionInstanceVPCId(const std::string &subscriptionInstanceVPCId); - std::string getSubscriptionInstanceNetworkType() const; - void setSubscriptionInstanceNetworkType(const std::string &subscriptionInstanceNetworkType); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getSourceEndpointRole() const; - void setSourceEndpointRole(const std::string &sourceEndpointRole); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - bool getSubscriptionDataTypeDDL() const; - void setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL); - std::string getSourceEndpointPassword() const; - void setSourceEndpointPassword(const std::string &sourceEndpointPassword); - std::string getSubscriptionInstanceName() const; - void setSubscriptionInstanceName(const std::string &subscriptionInstanceName); - -private: - std::string sourceEndpointInstanceID_; - std::string sourceEndpointOracleSID_; - std::string sourceEndpointIP_; - bool subscriptionDataTypeDML_; - std::string sourceEndpointInstanceType_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string subscriptionObject_; - std::string subscriptionInstanceVSwitchId_; - std::string sourceEndpointUserName_; - std::string sourceEndpointDatabaseName_; - std::string sourceEndpointPort_; - std::string sourceEndpointOwnerID_; - std::string subscriptionInstanceVPCId_; - std::string subscriptionInstanceNetworkType_; - std::string subscriptionInstanceId_; - std::string sourceEndpointRole_; - std::string ownerId_; - bool subscriptionDataTypeDDL_; - std::string sourceEndpointPassword_; - std::string subscriptionInstanceName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceResult.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceResult.h deleted file mode 100644 index cb6cbbc8f..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionInstanceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionInstanceResult : public ServiceResult - { - public: - - - ConfigureSubscriptionInstanceResult(); - explicit ConfigureSubscriptionInstanceResult(const std::string &payload); - ~ConfigureSubscriptionInstanceResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionRequest.h deleted file mode 100644 index 2b8e2f978..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionRequest.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionRequest : public RpcServiceRequest { -public: - ConfigureSubscriptionRequest(); - ~ConfigureSubscriptionRequest(); - std::string getSourceEndpointRegion() const; - void setSourceEndpointRegion(const std::string &sourceEndpointRegion); - std::string getCheckpoint() const; - void setCheckpoint(const std::string &checkpoint); - std::string getSubscriptionInstanceVSwitchId() const; - void setSubscriptionInstanceVSwitchId(const std::string &subscriptionInstanceVSwitchId); - bool getDelayNotice() const; - void setDelayNotice(bool delayNotice); - std::string getSourceEndpointInstanceID() const; - void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); - std::string getSourceEndpointUserName() const; - void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getSourceEndpointOwnerID() const; - void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getDelayPhone() const; - void setDelayPhone(const std::string &delayPhone); - bool getSubscriptionDataTypeDML() const; - void setSubscriptionDataTypeDML(bool subscriptionDataTypeDML); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); - std::string getSourceEndpointIP() const; - void setSourceEndpointIP(const std::string &sourceEndpointIP); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getErrorPhone() const; - void setErrorPhone(const std::string &errorPhone); - std::string getReserve() const; - void setReserve(const std::string &reserve); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDbList() const; - void setDbList(const std::string &dbList); - std::string getSubscriptionInstanceNetworkType() const; - void setSubscriptionInstanceNetworkType(const std::string &subscriptionInstanceNetworkType); - bool getSubscriptionDataTypeDDL() const; - void setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL); - std::string getSourceEndpointPassword() const; - void setSourceEndpointPassword(const std::string &sourceEndpointPassword); - std::string getSourceEndpointPort() const; - void setSourceEndpointPort(const std::string &sourceEndpointPort); - std::string getSubscriptionInstanceVPCId() const; - void setSubscriptionInstanceVPCId(const std::string &subscriptionInstanceVPCId); - long getDelayRuleTime() const; - void setDelayRuleTime(long delayRuleTime); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getDtsJobName() const; - void setDtsJobName(const std::string &dtsJobName); - std::string getSourceEndpointOracleSID() const; - void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); - bool getErrorNotice() const; - void setErrorNotice(bool errorNotice); - std::string getSourceEndpointRole() const; - void setSourceEndpointRole(const std::string &sourceEndpointRole); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSourceEndpointEngineName() const; - void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName); - -private: - std::string sourceEndpointRegion_; - std::string checkpoint_; - std::string subscriptionInstanceVSwitchId_; - bool delayNotice_; - std::string sourceEndpointInstanceID_; - std::string sourceEndpointUserName_; - std::string sourceEndpointOwnerID_; - std::string dedicatedClusterId_; - std::string delayPhone_; - bool subscriptionDataTypeDML_; - std::string sourceEndpointDatabaseName_; - std::string sourceEndpointIP_; - std::string regionId_; - std::string errorPhone_; - std::string reserve_; - std::string dtsJobId_; - std::string dbList_; - std::string subscriptionInstanceNetworkType_; - bool subscriptionDataTypeDDL_; - std::string sourceEndpointPassword_; - std::string sourceEndpointPort_; - std::string subscriptionInstanceVPCId_; - long delayRuleTime_; - std::string sourceEndpointInstanceType_; - std::string dtsJobName_; - std::string sourceEndpointOracleSID_; - bool errorNotice_; - std::string sourceEndpointRole_; - std::string dtsInstanceId_; - std::string sourceEndpointEngineName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionResult.h b/dts/include/alibabacloud/dts/model/ConfigureSubscriptionResult.h deleted file mode 100644 index 80510faf8..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSubscriptionResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESUBSCRIPTIONRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionResult : public ServiceResult - { - public: - - - ConfigureSubscriptionResult(); - explicit ConfigureSubscriptionResult(const std::string &payload); - ~ConfigureSubscriptionResult(); - std::string getDtsJobId()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getDtsInstanceId()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - std::string httpStatusCode_; - std::string errMessage_; - std::string dtsInstanceId_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESUBSCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertRequest.h index 614fa5214..a0e7a8bbc 100644 --- a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertRequest.h +++ b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobAlertRequest.h @@ -30,39 +30,30 @@ class ALIBABACLOUD_DTS_EXPORT ConfigureSynchronizationJobAlertRequest : public R public: ConfigureSynchronizationJobAlertRequest(); ~ConfigureSynchronizationJobAlertRequest(); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobId() const; - void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDelayAlertPhone() const; - void setDelayAlertPhone(const std::string &delayAlertPhone); std::string getDelayOverSeconds() const; void setDelayOverSeconds(const std::string &delayOverSeconds); std::string getDelayAlertStatus() const; void setDelayAlertStatus(const std::string &delayAlertStatus); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); + std::string getSynchronizationJobId() const; + void setSynchronizationJobId(const std::string &synchronizationJobId); std::string getErrorAlertPhone() const; void setErrorAlertPhone(const std::string &errorAlertPhone); + std::string getDelayAlertPhone() const; + void setDelayAlertPhone(const std::string &delayAlertPhone); std::string getErrorAlertStatus() const; void setErrorAlertStatus(const std::string &errorAlertStatus); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: - std::string accessKeyId_; - std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; - std::string delayAlertPhone_; std::string delayOverSeconds_; std::string delayAlertStatus_; std::string ownerId_; + std::string synchronizationJobId_; std::string errorAlertPhone_; + std::string delayAlertPhone_; std::string errorAlertStatus_; std::string synchronizationDirection_; }; diff --git a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareRequest.h deleted file mode 100644 index 245735301..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ConfigureSynchronizationJobReplicatorCompareRequest : public RpcServiceRequest { -public: - ConfigureSynchronizationJobReplicatorCompareRequest(); - ~ConfigureSynchronizationJobReplicatorCompareRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobId() const; - void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - bool getSynchronizationReplicatorCompareEnable() const; - void setSynchronizationReplicatorCompareEnable(bool synchronizationReplicatorCompareEnable); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string clientToken_; - std::string accessKeyId_; - std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; - std::string ownerId_; - bool synchronizationReplicatorCompareEnable_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h deleted file mode 100644 index 60a5992ba..000000000 --- a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ConfigureSynchronizationJobReplicatorCompareResult : public ServiceResult - { - public: - - - ConfigureSynchronizationJobReplicatorCompareResult(); - explicit ConfigureSynchronizationJobReplicatorCompareResult(const std::string &payload); - ~ConfigureSynchronizationJobReplicatorCompareResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CONFIGURESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobRequest.h index b2405c2c3..57f5127b2 100644 --- a/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/ConfigureSynchronizationJobRequest.h @@ -52,20 +52,12 @@ public: void setPartitionKeyModifyTime_Day(bool partitionKeyModifyTime_Day); std::string getSourceEndpointInstanceType() const; void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); std::string getSynchronizationJobName() const; void setSynchronizationJobName(const std::string &synchronizationJobName); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSourceEndpointUserName() const; void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); bool getPartitionKeyModifyTime_Month() const; void setPartitionKeyModifyTime_Month(bool partitionKeyModifyTime_Month); std::string getSourceEndpointPort() const; @@ -84,8 +76,6 @@ public: void setOwnerId(const std::string &ownerId); bool getPartitionKeyModifyTime_Hour() const; void setPartitionKeyModifyTime_Hour(bool partitionKeyModifyTime_Hour); - std::string getDestinationEndpointDataBaseName() const; - void setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName); std::string getSourceEndpointPassword() const; void setSourceEndpointPassword(const std::string &sourceEndpointPassword); std::string getMigrationReserved() const; @@ -109,13 +99,9 @@ private: bool partitionKeyModifyTime_Minute_; bool partitionKeyModifyTime_Day_; std::string sourceEndpointInstanceType_; - std::string accessKeyId_; std::string synchronizationJobId_; std::string synchronizationJobName_; - std::string accountId_; - std::string regionId_; std::string sourceEndpointUserName_; - std::string sourceEndpointDatabaseName_; bool partitionKeyModifyTime_Month_; std::string sourceEndpointPort_; std::string sourceEndpointOwnerID_; @@ -125,7 +111,6 @@ private: std::string sourceEndpointRole_; std::string ownerId_; bool partitionKeyModifyTime_Hour_; - std::string destinationEndpointDataBaseName_; std::string sourceEndpointPassword_; std::string migrationReserved_; std::string destinationEndpointIP_; diff --git a/dts/include/alibabacloud/dts/model/CountJobByConditionRequest.h b/dts/include/alibabacloud/dts/model/CountJobByConditionRequest.h deleted file mode 100644 index 6a7104317..000000000 --- a/dts/include/alibabacloud/dts/model/CountJobByConditionRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_COUNTJOBBYCONDITIONREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_COUNTJOBBYCONDITIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CountJobByConditionRequest : public RpcServiceRequest { -public: - CountJobByConditionRequest(); - ~CountJobByConditionRequest(); - std::string getType() const; - void setType(const std::string &type); - std::string getSrcDbType() const; - void setSrcDbType(const std::string &srcDbType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getGroupId() const; - void setGroupId(const std::string &groupId); - std::string getParams() const; - void setParams(const std::string ¶ms); - std::string getJobType() const; - void setJobType(const std::string &jobType); - std::string getDestDbType() const; - void setDestDbType(const std::string &destDbType); - std::string getRegion() const; - void setRegion(const std::string ®ion); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - std::string type_; - std::string srcDbType_; - std::string regionId_; - std::string groupId_; - std::string params_; - std::string jobType_; - std::string destDbType_; - std::string region_; - std::string status_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_COUNTJOBBYCONDITIONREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CountJobByConditionResult.h b/dts/include/alibabacloud/dts/model/CountJobByConditionResult.h deleted file mode 100644 index 69b8e73a7..000000000 --- a/dts/include/alibabacloud/dts/model/CountJobByConditionResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_COUNTJOBBYCONDITIONRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_COUNTJOBBYCONDITIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CountJobByConditionResult : public ServiceResult - { - public: - - - CountJobByConditionResult(); - explicit CountJobByConditionResult(const std::string &payload); - ~CountJobByConditionResult(); - long getTotalRecordCount()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_COUNTJOBBYCONDITIONRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateConsumerChannelRequest.h b/dts/include/alibabacloud/dts/model/CreateConsumerChannelRequest.h deleted file mode 100644 index 05678e910..000000000 --- a/dts/include/alibabacloud/dts/model/CreateConsumerChannelRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATECONSUMERCHANNELREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATECONSUMERCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateConsumerChannelRequest : public RpcServiceRequest { -public: - CreateConsumerChannelRequest(); - ~CreateConsumerChannelRequest(); - std::string getConsumerGroupName() const; - void setConsumerGroupName(const std::string &consumerGroupName); - std::string getConsumerGroupPassword() const; - void setConsumerGroupPassword(const std::string &consumerGroupPassword); - std::string getConsumerGroupUserName() const; - void setConsumerGroupUserName(const std::string &consumerGroupUserName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string consumerGroupName_; - std::string consumerGroupPassword_; - std::string consumerGroupUserName_; - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATECONSUMERCHANNELREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateConsumerChannelResult.h b/dts/include/alibabacloud/dts/model/CreateConsumerChannelResult.h deleted file mode 100644 index c2f8afe99..000000000 --- a/dts/include/alibabacloud/dts/model/CreateConsumerChannelResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATECONSUMERCHANNELRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATECONSUMERCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateConsumerChannelResult : public ServiceResult - { - public: - - - CreateConsumerChannelResult(); - explicit CreateConsumerChannelResult(const std::string &payload); - ~CreateConsumerChannelResult(); - std::string getConsumerGroupID()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string consumerGroupID_; - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATECONSUMERCHANNELRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateConsumerGroupRequest.h b/dts/include/alibabacloud/dts/model/CreateConsumerGroupRequest.h deleted file mode 100644 index e0fffc49d..000000000 --- a/dts/include/alibabacloud/dts/model/CreateConsumerGroupRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATECONSUMERGROUPREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATECONSUMERGROUPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateConsumerGroupRequest : public RpcServiceRequest { -public: - CreateConsumerGroupRequest(); - ~CreateConsumerGroupRequest(); - std::string getConsumerGroupPassword() const; - void setConsumerGroupPassword(const std::string &consumerGroupPassword); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getConsumerGroupUserName() const; - void setConsumerGroupUserName(const std::string &consumerGroupUserName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getConsumerGroupName() const; - void setConsumerGroupName(const std::string &consumerGroupName); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - -private: - std::string consumerGroupPassword_; - std::string accessKeyId_; - std::string accountId_; - std::string consumerGroupUserName_; - std::string regionId_; - std::string consumerGroupName_; - std::string subscriptionInstanceId_; - std::string ownerId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATECONSUMERGROUPREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateConsumerGroupResult.h b/dts/include/alibabacloud/dts/model/CreateConsumerGroupResult.h deleted file mode 100644 index f0d86fe1a..000000000 --- a/dts/include/alibabacloud/dts/model/CreateConsumerGroupResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATECONSUMERGROUPRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATECONSUMERGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateConsumerGroupResult : public ServiceResult - { - public: - - - CreateConsumerGroupResult(); - explicit CreateConsumerGroupResult(const std::string &payload); - ~CreateConsumerGroupResult(); - std::string getConsumerGroupID()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string consumerGroupID_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATECONSUMERGROUPRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleRequest.h b/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleRequest.h deleted file mode 100644 index 28d5d3543..000000000 --- a/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateDedicatedClusterMonitorRuleRequest : public RpcServiceRequest { -public: - CreateDedicatedClusterMonitorRuleRequest(); - ~CreateDedicatedClusterMonitorRuleRequest(); - long getCpuAlarmThreshold() const; - void setCpuAlarmThreshold(long cpuAlarmThreshold); - std::string getPhones() const; - void setPhones(const std::string &phones); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - long getDiskAlarmThreshold() const; - void setDiskAlarmThreshold(long diskAlarmThreshold); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - long getMemAlarmThreshold() const; - void setMemAlarmThreshold(long memAlarmThreshold); - long getDuAlarmThreshold() const; - void setDuAlarmThreshold(long duAlarmThreshold); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - long getNoticeSwitch() const; - void setNoticeSwitch(long noticeSwitch); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - -private: - long cpuAlarmThreshold_; - std::string phones_; - std::string dedicatedClusterId_; - long diskAlarmThreshold_; - std::string regionId_; - long memAlarmThreshold_; - long duAlarmThreshold_; - std::string ownerId_; - long noticeSwitch_; - std::string instanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleResult.h b/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleResult.h deleted file mode 100644 index 8e8e5ba6f..000000000 --- a/dts/include/alibabacloud/dts/model/CreateDedicatedClusterMonitorRuleResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateDedicatedClusterMonitorRuleResult : public ServiceResult - { - public: - - - CreateDedicatedClusterMonitorRuleResult(); - explicit CreateDedicatedClusterMonitorRuleResult(const std::string &payload); - ~CreateDedicatedClusterMonitorRuleResult(); - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDEDICATEDCLUSTERMONITORRULERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateDtsInstanceRequest.h b/dts/include/alibabacloud/dts/model/CreateDtsInstanceRequest.h deleted file mode 100644 index fe1e125d2..000000000 --- a/dts/include/alibabacloud/dts/model/CreateDtsInstanceRequest.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEDTSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateDtsInstanceRequest : public RpcServiceRequest { -public: - CreateDtsInstanceRequest(); - ~CreateDtsInstanceRequest(); - bool getAutoStart() const; - void setAutoStart(bool autoStart); - std::string getType() const; - void setType(const std::string &type); - std::string getInstanceClass() const; - void setInstanceClass(const std::string &instanceClass); - int getDatabaseCount() const; - void setDatabaseCount(int databaseCount); - std::string getJobId() const; - void setJobId(const std::string &jobId); - int getDu() const; - void setDu(int du); - std::string getResourceGroupId() const; - void setResourceGroupId(const std::string &resourceGroupId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getComputeUnit() const; - void setComputeUnit(int computeUnit); - std::string getFeeType() const; - void setFeeType(const std::string &feeType); - std::string getDestinationRegion() const; - void setDestinationRegion(const std::string &destinationRegion); - std::string getPeriod() const; - void setPeriod(const std::string &period); - std::string getDestinationEndpointEngineName() const; - void setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName); - int getQuantity() const; - void setQuantity(int quantity); - bool getAutoPay() const; - void setAutoPay(bool autoPay); - int getUsedTime() const; - void setUsedTime(int usedTime); - std::string getSyncArchitecture() const; - void setSyncArchitecture(const std::string &syncArchitecture); - std::string getPayType() const; - void setPayType(const std::string &payType); - std::string getSourceRegion() const; - void setSourceRegion(const std::string &sourceRegion); - std::string getSourceEndpointEngineName() const; - void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName); - -private: - bool autoStart_; - std::string type_; - std::string instanceClass_; - int databaseCount_; - std::string jobId_; - int du_; - std::string resourceGroupId_; - std::string regionId_; - int computeUnit_; - std::string feeType_; - std::string destinationRegion_; - std::string period_; - std::string destinationEndpointEngineName_; - int quantity_; - bool autoPay_; - int usedTime_; - std::string syncArchitecture_; - std::string payType_; - std::string sourceRegion_; - std::string sourceEndpointEngineName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateDtsInstanceResult.h b/dts/include/alibabacloud/dts/model/CreateDtsInstanceResult.h deleted file mode 100644 index f03c97ac4..000000000 --- a/dts/include/alibabacloud/dts/model/CreateDtsInstanceResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEDTSINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateDtsInstanceResult : public ServiceResult - { - public: - - - CreateDtsInstanceResult(); - explicit CreateDtsInstanceResult(const std::string &payload); - ~CreateDtsInstanceResult(); - std::string getInstanceId()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getJobId()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string instanceId_; - std::string errMessage_; - std::string success_; - std::string jobId_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEDTSINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleRequest.h b/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleRequest.h deleted file mode 100644 index 45785d72b..000000000 --- a/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEJOBMONITORRULEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEJOBMONITORRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateJobMonitorRuleRequest : public RpcServiceRequest { -public: - CreateJobMonitorRuleRequest(); - ~CreateJobMonitorRuleRequest(); - std::string getType() const; - void setType(const std::string &type); - int getNoticeValue() const; - void setNoticeValue(int noticeValue); - int getTimes() const; - void setTimes(int times); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getState() const; - void setState(const std::string &state); - int getPeriod() const; - void setPeriod(int period); - long getDelayRuleTime() const; - void setDelayRuleTime(long delayRuleTime); - std::string getPhone() const; - void setPhone(const std::string &phone); - -private: - std::string type_; - int noticeValue_; - int times_; - std::string regionId_; - std::string dtsJobId_; - std::string state_; - int period_; - long delayRuleTime_; - std::string phone_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEJOBMONITORRULEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleResult.h b/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleResult.h deleted file mode 100644 index 6e557792e..000000000 --- a/dts/include/alibabacloud/dts/model/CreateJobMonitorRuleResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEJOBMONITORRULERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEJOBMONITORRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateJobMonitorRuleResult : public ServiceResult - { - public: - - - CreateJobMonitorRuleResult(); - explicit CreateJobMonitorRuleResult(const std::string &payload); - ~CreateJobMonitorRuleResult(); - std::string getDtsJobId()const; - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEJOBMONITORRULERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/CreateMigrationJobRequest.h deleted file mode 100644 index 7ada0d0c9..000000000 --- a/dts/include/alibabacloud/dts/model/CreateMigrationJobRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateMigrationJobRequest : public RpcServiceRequest { -public: - CreateMigrationJobRequest(); - ~CreateMigrationJobRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getRegion() const; - void setRegion(const std::string ®ion); - std::string getMigrationJobClass() const; - void setMigrationJobClass(const std::string &migrationJobClass); - -private: - std::string clientToken_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string region_; - std::string migrationJobClass_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateMigrationJobResult.h b/dts/include/alibabacloud/dts/model/CreateMigrationJobResult.h deleted file mode 100644 index 9434ccd61..000000000 --- a/dts/include/alibabacloud/dts/model/CreateMigrationJobResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATEMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATEMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateMigrationJobResult : public ServiceResult - { - public: - - - CreateMigrationJobResult(); - explicit CreateMigrationJobResult(const std::string &payload); - ~CreateMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getMigrationJobId()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string migrationJobId_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATEMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h b/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h deleted file mode 100644 index 63d0ab5ed..000000000 --- a/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATESUBSCRIPTIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATESUBSCRIPTIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT CreateSubscriptionInstanceRequest : public RpcServiceRequest { -public: - CreateSubscriptionInstanceRequest(); - ~CreateSubscriptionInstanceRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getPeriod() const; - void setPeriod(const std::string &period); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - int getUsedTime() const; - void setUsedTime(int usedTime); - std::string getRegion() const; - void setRegion(const std::string ®ion); - std::string getPayType() const; - void setPayType(const std::string &payType); - -private: - std::string clientToken_; - std::string sourceEndpointInstanceType_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string period_; - std::string ownerId_; - int usedTime_; - std::string region_; - std::string payType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_CREATESUBSCRIPTIONINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceResult.h b/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceResult.h deleted file mode 100644 index e716cb19d..000000000 --- a/dts/include/alibabacloud/dts/model/CreateSubscriptionInstanceResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_CREATESUBSCRIPTIONINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_CREATESUBSCRIPTIONINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT CreateSubscriptionInstanceResult : public ServiceResult - { - public: - - - CreateSubscriptionInstanceResult(); - explicit CreateSubscriptionInstanceResult(const std::string &payload); - ~CreateSubscriptionInstanceResult(); - std::string getSubscriptionInstanceId()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string subscriptionInstanceId_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_CREATESUBSCRIPTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h index 7864a2fcf..0c656c55a 100644 --- a/dts/include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/CreateSynchronizationJobRequest.h @@ -30,32 +30,24 @@ class ALIBABACLOUD_DTS_EXPORT CreateSynchronizationJobRequest : public RpcServic public: CreateSynchronizationJobRequest(); ~CreateSynchronizationJobRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getNetworkType() const; - void setNetworkType(const std::string &networkType); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSynchronizationJobClass() const; - void setSynchronizationJobClass(const std::string &synchronizationJobClass); std::string getPeriod() const; void setPeriod(const std::string &period); std::string getDestRegion() const; void setDestRegion(const std::string &destRegion); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getTopology() const; void setTopology(const std::string &topology); + std::string getNetworkType() const; + void setNetworkType(const std::string &networkType); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); int getUsedTime() const; void setUsedTime(int usedTime); - int getDBInstanceCount() const; - void setDBInstanceCount(int dBInstanceCount); + std::string getSourceEndpointInstanceType() const; + void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); + std::string getSynchronizationJobClass() const; + void setSynchronizationJobClass(const std::string &synchronizationJobClass); std::string getSourceRegion() const; void setSourceRegion(const std::string &sourceRegion); std::string getPayType() const; @@ -64,19 +56,15 @@ public: void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType); private: - std::string clientToken_; - std::string networkType_; - std::string sourceEndpointInstanceType_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string synchronizationJobClass_; std::string period_; std::string destRegion_; + std::string clientToken_; std::string topology_; + std::string networkType_; std::string ownerId_; int usedTime_; - int dBInstanceCount_; + std::string sourceEndpointInstanceType_; + std::string synchronizationJobClass_; std::string sourceRegion_; std::string payType_; std::string destinationEndpointInstanceType_; diff --git a/dts/include/alibabacloud/dts/model/DeleteConsumerChannelRequest.h b/dts/include/alibabacloud/dts/model/DeleteConsumerChannelRequest.h deleted file mode 100644 index 61ec287f0..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteConsumerChannelRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETECONSUMERCHANNELREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETECONSUMERCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteConsumerChannelRequest : public RpcServiceRequest { -public: - DeleteConsumerChannelRequest(); - ~DeleteConsumerChannelRequest(); - std::string getConsumerGroupId() const; - void setConsumerGroupId(const std::string &consumerGroupId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string consumerGroupId_; - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETECONSUMERCHANNELREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteConsumerChannelResult.h b/dts/include/alibabacloud/dts/model/DeleteConsumerChannelResult.h deleted file mode 100644 index 1c11f8ece..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteConsumerChannelResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETECONSUMERCHANNELRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETECONSUMERCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteConsumerChannelResult : public ServiceResult - { - public: - - - DeleteConsumerChannelResult(); - explicit DeleteConsumerChannelResult(const std::string &payload); - ~DeleteConsumerChannelResult(); - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETECONSUMERCHANNELRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h b/dts/include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h deleted file mode 100644 index 67b1648dc..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteConsumerGroupRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETECONSUMERGROUPREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETECONSUMERGROUPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteConsumerGroupRequest : public RpcServiceRequest { -public: - DeleteConsumerGroupRequest(); - ~DeleteConsumerGroupRequest(); - std::string getConsumerGroupID() const; - void setConsumerGroupID(const std::string &consumerGroupID); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string consumerGroupID_; - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETECONSUMERGROUPREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteConsumerGroupResult.h b/dts/include/alibabacloud/dts/model/DeleteConsumerGroupResult.h deleted file mode 100644 index b2a482435..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteConsumerGroupResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETECONSUMERGROUPRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETECONSUMERGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteConsumerGroupResult : public ServiceResult - { - public: - - - DeleteConsumerGroupResult(); - explicit DeleteConsumerGroupResult(const std::string &payload); - ~DeleteConsumerGroupResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETECONSUMERGROUPRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteDtsJobRequest.h b/dts/include/alibabacloud/dts/model/DeleteDtsJobRequest.h deleted file mode 100644 index a4ad26e9e..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteDtsJobRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobRequest : public RpcServiceRequest { -public: - DeleteDtsJobRequest(); - ~DeleteDtsJobRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteDtsJobResult.h b/dts/include/alibabacloud/dts/model/DeleteDtsJobResult.h deleted file mode 100644 index f0083bfa3..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobResult : public ServiceResult - { - public: - - - DeleteDtsJobResult(); - explicit DeleteDtsJobResult(const std::string &payload); - ~DeleteDtsJobResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteDtsJobsRequest.h b/dts/include/alibabacloud/dts/model/DeleteDtsJobsRequest.h deleted file mode 100644 index 5bdfa798d..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteDtsJobsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEDTSJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobsRequest : public RpcServiceRequest { -public: - DeleteDtsJobsRequest(); - ~DeleteDtsJobsRequest(); - std::string getDtsJobIds() const; - void setDtsJobIds(const std::string &dtsJobIds); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dtsJobIds_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteDtsJobsResult.h b/dts/include/alibabacloud/dts/model/DeleteDtsJobsResult.h deleted file mode 100644 index b2f48ae74..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteDtsJobsResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEDTSJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobsResult : public ServiceResult - { - public: - - - DeleteDtsJobsResult(); - explicit DeleteDtsJobsResult(const std::string &payload); - ~DeleteDtsJobsResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/DeleteMigrationJobRequest.h deleted file mode 100644 index 1596026df..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteMigrationJobRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteMigrationJobRequest : public RpcServiceRequest { -public: - DeleteMigrationJobRequest(); - ~DeleteMigrationJobRequest(); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteMigrationJobResult.h b/dts/include/alibabacloud/dts/model/DeleteMigrationJobResult.h deleted file mode 100644 index 883f7a1da..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteMigrationJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETEMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETEMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteMigrationJobResult : public ServiceResult - { - public: - - - DeleteMigrationJobResult(); - explicit DeleteMigrationJobResult(const std::string &payload); - ~DeleteMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETEMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h b/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h deleted file mode 100644 index 0018db313..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETESUBSCRIPTIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETESUBSCRIPTIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DeleteSubscriptionInstanceRequest : public RpcServiceRequest { -public: - DeleteSubscriptionInstanceRequest(); - ~DeleteSubscriptionInstanceRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DELETESUBSCRIPTIONINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h b/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h deleted file mode 100644 index a6469c2d7..000000000 --- a/dts/include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DELETESUBSCRIPTIONINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DELETESUBSCRIPTIONINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DeleteSubscriptionInstanceResult : public ServiceResult - { - public: - - - DeleteSubscriptionInstanceResult(); - explicit DeleteSubscriptionInstanceResult(const std::string &payload); - ~DeleteSubscriptionInstanceResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DELETESUBSCRIPTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h index 5ded85b00..00e603743 100644 --- a/dts/include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h @@ -32,21 +32,12 @@ public: ~DeleteSynchronizationJobRequest(); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); private: std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; }; } // namespace Model } // namespace Dts diff --git a/dts/include/alibabacloud/dts/model/DescribeCheckJobsRequest.h b/dts/include/alibabacloud/dts/model/DescribeCheckJobsRequest.h deleted file mode 100644 index 7db132e41..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeCheckJobsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECHECKJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECHECKJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeCheckJobsRequest : public RpcServiceRequest { -public: - DescribeCheckJobsRequest(); - ~DescribeCheckJobsRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - int getCheckType() const; - void setCheckType(int checkType); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getJobName() const; - void setJobName(const std::string &jobName); - -private: - int pageNumber_; - int checkType_; - std::string instanceId_; - int pageSize_; - std::string jobName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECHECKJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeCheckJobsResult.h b/dts/include/alibabacloud/dts/model/DescribeCheckJobsResult.h deleted file mode 100644 index 93ddbcb1e..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeCheckJobsResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECHECKJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECHECKJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeCheckJobsResult : public ServiceResult - { - public: - struct CheckJobsItem - { - int status; - std::string jobStepId; - long diffSum; - std::string jobName; - long finishCount; - std::string instanceClass; - std::string parentJobType; - std::string dtsInstanceID; - std::string groupId; - long totalCount; - std::string dtsJobId; - int checkType; - std::string chargeType; - std::string regionId; - long diffCount; - long checkPoint; - }; - - - DescribeCheckJobsResult(); - explicit DescribeCheckJobsResult(const std::string &payload); - ~DescribeCheckJobsResult(); - long getTotalRecordCount()const; - std::vector getCheckJobs()const; - long getPageRecordCount()const; - int getPageNumber()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - std::vector checkJobs_; - long pageRecordCount_; - int pageNumber_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECHECKJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h b/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h deleted file mode 100644 index d48c9376e..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeClusterOperateLogsRequest : public RpcServiceRequest { -public: - DescribeClusterOperateLogsRequest(); - ~DescribeClusterOperateLogsRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - long getStartTime() const; - void setStartTime(long startTime); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - long getEndTime() const; - void setEndTime(long endTime); - std::string getOwnerID() const; - void setOwnerID(const std::string &ownerID); - -private: - std::string clientToken_; - std::string dedicatedClusterId_; - long startTime_; - int pageNumber_; - std::string accountId_; - int pageSize_; - std::string dtsJobId_; - long endTime_; - std::string ownerID_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsResult.h b/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsResult.h deleted file mode 100644 index 4cf29a897..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeClusterOperateLogsResult.h +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeClusterOperateLogsResult : public ServiceResult - { - public: - struct DataPoint - { - std::string operationName; - long logDatetime; - std::string oldValue; - std::string content; - std::string operationUser; - std::string newValue; - std::string id; - int success; - }; - - - DescribeClusterOperateLogsResult(); - explicit DescribeClusterOperateLogsResult(const std::string &payload); - ~DescribeClusterOperateLogsResult(); - long getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - int getHttpStatusCode()const; - std::vector getDataPoints()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - int httpStatusCode_; - std::vector dataPoints_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTEROPERATELOGSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationRequest.h b/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationRequest.h deleted file mode 100644 index 6d8d80662..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeClusterUsedUtilizationRequest : public RpcServiceRequest { -public: - DescribeClusterUsedUtilizationRequest(); - ~DescribeClusterUsedUtilizationRequest(); - std::string getMetricType() const; - void setMetricType(const std::string &metricType); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getEnv() const; - void setEnv(const std::string &env); - std::string getOwnerID() const; - void setOwnerID(const std::string &ownerID); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSecurityToken() const; - void setSecurityToken(const std::string &securityToken); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - -private: - std::string metricType_; - std::string clientToken_; - std::string dedicatedClusterId_; - std::string env_; - std::string ownerID_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string securityToken_; - std::string dtsJobId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationResult.h b/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationResult.h deleted file mode 100644 index f6f983cc7..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeClusterUsedUtilizationResult.h +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeClusterUsedUtilizationResult : public ServiceResult - { - public: - - - DescribeClusterUsedUtilizationResult(); - explicit DescribeClusterUsedUtilizationResult(const std::string &payload); - ~DescribeClusterUsedUtilizationResult(); - std::string getDedicatedClusterId()const; - std::string getDynamicMessage()const; - int getDuUsed()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - int getDuTotal()const; - float getDiskTotal()const; - int getHttpStatusCode()const; - float getMemoryUsedPercentage()const; - float getMemoryUsed()const; - int getTaskRunning()const; - float getDiskUsed()const; - float getMemoryTotal()const; - float getCpuTotal()const; - - protected: - void parse(const std::string &payload); - private: - std::string dedicatedClusterId_; - std::string dynamicMessage_; - int duUsed_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - int duTotal_; - float diskTotal_; - int httpStatusCode_; - float memoryUsedPercentage_; - float memoryUsed_; - int taskRunning_; - float diskUsed_; - float memoryTotal_; - float cpuTotal_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECLUSTERUSEDUTILIZATIONRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeConnectionStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeConnectionStatusRequest.h deleted file mode 100644 index dc41b8de5..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConnectionStatusRequest.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONNECTIONSTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONNECTIONSTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeConnectionStatusRequest : public RpcServiceRequest { -public: - DescribeConnectionStatusRequest(); - ~DescribeConnectionStatusRequest(); - std::string getSourceEndpointRegion() const; - void setSourceEndpointRegion(const std::string &sourceEndpointRegion); - std::string getSourceEndpointArchitecture() const; - void setSourceEndpointArchitecture(const std::string &sourceEndpointArchitecture); - std::string getDestinationEndpointInstanceType() const; - void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType); - std::string getSourceEndpointInstanceID() const; - void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID); - std::string getSourceEndpointUserName() const; - void setSourceEndpointUserName(const std::string &sourceEndpointUserName); - std::string getSourceEndpointDatabaseName() const; - void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName); - std::string getDestinationEndpointRegion() const; - void setDestinationEndpointRegion(const std::string &destinationEndpointRegion); - std::string getSourceEndpointIP() const; - void setSourceEndpointIP(const std::string &sourceEndpointIP); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDestinationEndpointUserName() const; - void setDestinationEndpointUserName(const std::string &destinationEndpointUserName); - std::string getDestinationEndpointArchitecture() const; - void setDestinationEndpointArchitecture(const std::string &destinationEndpointArchitecture); - std::string getDestinationEndpointOracleSID() const; - void setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID); - std::string getDestinationEndpointEngineName() const; - void setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName); - std::string getDestinationEndpointInstanceID() const; - void setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID); - std::string getDestinationEndpointPort() const; - void setDestinationEndpointPort(const std::string &destinationEndpointPort); - std::string getSourceEndpointPassword() const; - void setSourceEndpointPassword(const std::string &sourceEndpointPassword); - std::string getSourceEndpointPort() const; - void setSourceEndpointPort(const std::string &sourceEndpointPort); - std::string getDestinationEndpointIP() const; - void setDestinationEndpointIP(const std::string &destinationEndpointIP); - std::string getSourceEndpointInstanceType() const; - void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType); - std::string getSourceEndpointOracleSID() const; - void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID); - std::string getDestinationEndpointDatabaseName() const; - void setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName); - std::string getDestinationEndpointPassword() const; - void setDestinationEndpointPassword(const std::string &destinationEndpointPassword); - std::string getSourceEndpointEngineName() const; - void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName); - -private: - std::string sourceEndpointRegion_; - std::string sourceEndpointArchitecture_; - std::string destinationEndpointInstanceType_; - std::string sourceEndpointInstanceID_; - std::string sourceEndpointUserName_; - std::string sourceEndpointDatabaseName_; - std::string destinationEndpointRegion_; - std::string sourceEndpointIP_; - std::string regionId_; - std::string destinationEndpointUserName_; - std::string destinationEndpointArchitecture_; - std::string destinationEndpointOracleSID_; - std::string destinationEndpointEngineName_; - std::string destinationEndpointInstanceID_; - std::string destinationEndpointPort_; - std::string sourceEndpointPassword_; - std::string sourceEndpointPort_; - std::string destinationEndpointIP_; - std::string sourceEndpointInstanceType_; - std::string sourceEndpointOracleSID_; - std::string destinationEndpointDatabaseName_; - std::string destinationEndpointPassword_; - std::string sourceEndpointEngineName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONNECTIONSTATUSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeConnectionStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeConnectionStatusResult.h deleted file mode 100644 index d42eb86ea..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConnectionStatusResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONNECTIONSTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONNECTIONSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeConnectionStatusResult : public ServiceResult - { - public: - - - DescribeConnectionStatusResult(); - explicit DescribeConnectionStatusResult(const std::string &payload); - ~DescribeConnectionStatusResult(); - std::string getSourceConnectionStatus()const; - std::string getDestinationConnectionStatus()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string sourceConnectionStatus_; - std::string destinationConnectionStatus_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONNECTIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeConsumerChannelRequest.h b/dts/include/alibabacloud/dts/model/DescribeConsumerChannelRequest.h deleted file mode 100644 index 9959e3626..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConsumerChannelRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONSUMERCHANNELREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeConsumerChannelRequest : public RpcServiceRequest { -public: - DescribeConsumerChannelRequest(); - ~DescribeConsumerChannelRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getParentChannelId() const; - void setParentChannelId(const std::string &parentChannelId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - int pageNumber_; - std::string regionId_; - std::string parentChannelId_; - int pageSize_; - std::string dtsJobId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERCHANNELREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeConsumerChannelResult.h b/dts/include/alibabacloud/dts/model/DescribeConsumerChannelResult.h deleted file mode 100644 index eb62f114e..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConsumerChannelResult.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONSUMERCHANNELRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeConsumerChannelResult : public ServiceResult - { - public: - struct ConsumerChannel - { - std::string consumptionCheckpoint; - std::string consumerGroupId; - std::string consumerGroupUserName; - std::string consumerGroupName; - long messageDelay; - long unconsumedData; - }; - - - DescribeConsumerChannelResult(); - explicit DescribeConsumerChannelResult(const std::string &payload); - ~DescribeConsumerChannelResult(); - long getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::string getHttpStatusCode()const; - std::vector getConsumerChannels()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::string httpStatusCode_; - std::vector consumerChannels_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERCHANNELRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeConsumerGroupRequest.h b/dts/include/alibabacloud/dts/model/DescribeConsumerGroupRequest.h deleted file mode 100644 index 785a7a2c7..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConsumerGroupRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONSUMERGROUPREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERGROUPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeConsumerGroupRequest : public RpcServiceRequest { -public: - DescribeConsumerGroupRequest(); - ~DescribeConsumerGroupRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - -private: - std::string subscriptionInstanceId_; - int pageNum_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - int pageSize_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERGROUPREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeConsumerGroupResult.h b/dts/include/alibabacloud/dts/model/DescribeConsumerGroupResult.h deleted file mode 100644 index e7320678c..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeConsumerGroupResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBECONSUMERGROUPRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERGROUPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeConsumerGroupResult : public ServiceResult - { - public: - struct DescribeConsumerChannel - { - std::string consumptionCheckpoint; - std::string consumerGroupID; - std::string consumerGroupUserName; - std::string consumerGroupName; - long messageDelay; - long unconsumedData; - }; - - - DescribeConsumerGroupResult(); - explicit DescribeConsumerGroupResult(const std::string &payload); - ~DescribeConsumerGroupResult(); - int getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getConsumerChannels()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::vector consumerChannels_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECONSUMERGROUPRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDTSIPRequest.h b/dts/include/alibabacloud/dts/model/DescribeDTSIPRequest.h deleted file mode 100644 index e7e201081..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDTSIPRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSIPREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSIPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDTSIPRequest : public RpcServiceRequest { -public: - DescribeDTSIPRequest(); - ~DescribeDTSIPRequest(); - std::string getSourceEndpointRegion() const; - void setSourceEndpointRegion(const std::string &sourceEndpointRegion); - std::string getDestinationEndpointRegion() const; - void setDestinationEndpointRegion(const std::string &destinationEndpointRegion); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string sourceEndpointRegion_; - std::string destinationEndpointRegion_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSIPREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDTSIPResult.h b/dts/include/alibabacloud/dts/model/DescribeDTSIPResult.h deleted file mode 100644 index 5e3fc6b6b..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDTSIPResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSIPRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSIPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDTSIPResult : public ServiceResult - { - public: - - - DescribeDTSIPResult(); - explicit DescribeDTSIPResult(const std::string &payload); - ~DescribeDTSIPResult(); - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSIPRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlRequest.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlRequest.h deleted file mode 100644 index bd3aa776c..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKREPORTURLREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKREPORTURLREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckReportUrlRequest : public RpcServiceRequest { -public: - DescribeDataCheckReportUrlRequest(); - ~DescribeDataCheckReportUrlRequest(); - std::string getJobStepId() const; - void setJobStepId(const std::string &jobStepId); - std::string getTbName() const; - void setTbName(const std::string &tbName); - std::string getDbName() const; - void setDbName(const std::string &dbName); - -private: - std::string jobStepId_; - std::string tbName_; - std::string dbName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKREPORTURLREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlResult.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlResult.h deleted file mode 100644 index 2e9ffc03d..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckReportUrlResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKREPORTURLRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKREPORTURLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckReportUrlResult : public ServiceResult - { - public: - - - DescribeDataCheckReportUrlResult(); - explicit DescribeDataCheckReportUrlResult(const std::string &payload); - ~DescribeDataCheckReportUrlResult(); - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKREPORTURLRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsRequest.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsRequest.h deleted file mode 100644 index d6e2e5f23..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckTableDetailsRequest : public RpcServiceRequest { -public: - DescribeDataCheckTableDetailsRequest(); - ~DescribeDataCheckTableDetailsRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getJobStepId() const; - void setJobStepId(const std::string &jobStepId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getTableName() const; - void setTableName(const std::string &tableName); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - int pageNumber_; - std::string jobStepId_; - int pageSize_; - std::string tableName_; - std::string status_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsResult.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsResult.h deleted file mode 100644 index eb770023c..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDetailsResult.h +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckTableDetailsResult : public ServiceResult - { - public: - struct TableDetailsItem - { - std::string status; - std::string sourceTbName; - long totalCount; - std::string targetTbName; - std::string targetDbName; - long finishCount; - std::string bootTime; - long id; - std::string sourceDbName; - long diffCount; - }; - - - DescribeDataCheckTableDetailsResult(); - explicit DescribeDataCheckTableDetailsResult(const std::string &payload); - ~DescribeDataCheckTableDetailsResult(); - long getWarningCount()const; - std::vector getTableDetails()const; - long getRunningCount()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - long getTotalCount()const; - int getPageNumber()const; - long getInitCount()const; - long getFinishedCount()const; - long getDiffRowCount()const; - int getHttpStatusCode()const; - long getFailedCount()const; - std::string getDynamicCode()const; - - protected: - void parse(const std::string &payload); - private: - long warningCount_; - std::vector tableDetails_; - long runningCount_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - long totalCount_; - int pageNumber_; - long initCount_; - long finishedCount_; - long diffRowCount_; - int httpStatusCode_; - long failedCount_; - std::string dynamicCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDETAILSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsRequest.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsRequest.h deleted file mode 100644 index b96d1e158..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckTableDiffDetailsRequest : public RpcServiceRequest { -public: - DescribeDataCheckTableDiffDetailsRequest(); - ~DescribeDataCheckTableDiffDetailsRequest(); - std::string getJobStepId() const; - void setJobStepId(const std::string &jobStepId); - long getPageNumber() const; - void setPageNumber(long pageNumber); - long getPageSize() const; - void setPageSize(long pageSize); - std::string getTbName() const; - void setTbName(const std::string &tbName); - std::string getDbName() const; - void setDbName(const std::string &dbName); - -private: - std::string jobStepId_; - long pageNumber_; - long pageSize_; - std::string tbName_; - std::string dbName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsResult.h b/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsResult.h deleted file mode 100644 index 6d06a6295..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDataCheckTableDiffDetailsResult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckTableDiffDetailsResult : public ServiceResult - { - public: - struct DiffDetailsItem - { - std::string diff; - long id; - std::string gmtCreated; - }; - - - DescribeDataCheckTableDiffDetailsResult(); - explicit DescribeDataCheckTableDiffDetailsResult(const std::string &payload); - ~DescribeDataCheckTableDiffDetailsResult(); - std::vector getDiffDetails()const; - std::string getInstanceId()const; - int getHttpStatusCode()const; - std::string getTbName()const; - std::string getDbName()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - long getDiffCount()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::vector diffDetails_; - std::string instanceId_; - int httpStatusCode_; - std::string tbName_; - std::string dbName_; - std::string dynamicMessage_; - std::string errMessage_; - long diffCount_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDATACHECKTABLEDIFFDETAILSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleRequest.h b/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleRequest.h deleted file mode 100644 index 980c42207..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDedicatedClusterMonitorRuleRequest : public RpcServiceRequest { -public: - DescribeDedicatedClusterMonitorRuleRequest(); - ~DescribeDedicatedClusterMonitorRuleRequest(); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dedicatedClusterId_; - std::string ownerId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleResult.h b/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleResult.h deleted file mode 100644 index 0a47f5da4..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterMonitorRuleResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDedicatedClusterMonitorRuleResult : public ServiceResult - { - public: - - - DescribeDedicatedClusterMonitorRuleResult(); - explicit DescribeDedicatedClusterMonitorRuleResult(const std::string &payload); - ~DescribeDedicatedClusterMonitorRuleResult(); - std::string getNoticeSwitch()const; - std::string getDedicatedClusterId()const; - std::string getPhones()const; - std::string getDuAlarmThreshold()const; - std::string getCpuAlarmThreshold()const; - std::string getHttpStatusCode()const; - std::string getMemAlarmThreshold()const; - std::string getDiskAlarmThreshold()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string noticeSwitch_; - std::string dedicatedClusterId_; - std::string phones_; - std::string duAlarmThreshold_; - std::string cpuAlarmThreshold_; - std::string httpStatusCode_; - std::string memAlarmThreshold_; - std::string diskAlarmThreshold_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERMONITORRULERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterRequest.h b/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterRequest.h deleted file mode 100644 index 1b0bc4133..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDedicatedClusterRequest : public RpcServiceRequest { -public: - DescribeDedicatedClusterRequest(); - ~DescribeDedicatedClusterRequest(); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dedicatedClusterId_; - std::string ownerId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterResult.h b/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterResult.h deleted file mode 100644 index aaec963d8..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDedicatedClusterResult.h +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDedicatedClusterResult : public ServiceResult - { - public: - - - DescribeDedicatedClusterResult(); - explicit DescribeDedicatedClusterResult(const std::string &payload); - ~DescribeDedicatedClusterResult(); - long getUsedDu()const; - long getDuUtilization()const; - long getUsedDiskGBSize()const; - long getGmtCreated()const; - std::string getDedicatedClusterName()const; - std::string getDtsInstanceID()const; - std::string getSuccess()const; - long getTotalMemGBSize()const; - long getMemUtilization()const; - std::string getHttpStatusCode()const; - long getUsedCpuCore()const; - std::string getDedicatedClusterId()const; - long getNodeCount()const; - long getOversoldDu()const; - long getTotalDiskGBSize()const; - long getDiskUtilization()const; - long getGmtFinished()const; - long getUsedMemGBSize()const; - std::string getErrMessage()const; - std::string getErrCode()const; - long getDu()const; - std::string getState()const; - long getTotalCpuCore()const; - std::string getRegionId()const; - long getCpuUtilization()const; - - protected: - void parse(const std::string &payload); - private: - long usedDu_; - long duUtilization_; - long usedDiskGBSize_; - long gmtCreated_; - std::string dedicatedClusterName_; - std::string dtsInstanceID_; - std::string success_; - long totalMemGBSize_; - long memUtilization_; - std::string httpStatusCode_; - long usedCpuCore_; - std::string dedicatedClusterId_; - long nodeCount_; - long oversoldDu_; - long totalDiskGBSize_; - long diskUtilization_; - long gmtFinished_; - long usedMemGBSize_; - std::string errMessage_; - std::string errCode_; - long du_; - std::string state_; - long totalCpuCore_; - std::string regionId_; - long cpuUtilization_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDEDICATEDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoRequest.h b/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoRequest.h deleted file mode 100644 index c877aaa2c..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFOREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFOREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDtsEtlJobVersionInfoRequest : public RpcServiceRequest { -public: - DescribeDtsEtlJobVersionInfoRequest(); - ~DescribeDtsEtlJobVersionInfoRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string dtsJobId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFOREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoResult.h b/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoResult.h deleted file mode 100644 index 0f28da782..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsEtlJobVersionInfoResult.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFORESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDtsEtlJobVersionInfoResult : public ServiceResult - { - public: - struct DtsEtlJobVersionInfo - { - std::string status; - std::string modifyTime; - std::string dtsJobId; - int version; - std::string createTime; - std::string dtsJobName; - std::string creator; - std::string dtsInstanceId; - std::string creatorName; - std::string safeCheckpoint; - }; - - - DescribeDtsEtlJobVersionInfoResult(); - explicit DescribeDtsEtlJobVersionInfoResult(const std::string &payload); - ~DescribeDtsEtlJobVersionInfoResult(); - int getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::string getHttpStatusCode()const; - std::vector getDtsEtlJobVersionInfos()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::string httpStatusCode_; - std::vector dtsEtlJobVersionInfos_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSETLJOBVERSIONINFORESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h b/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h deleted file mode 100644 index bc40460f6..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobDetailRequest : public RpcServiceRequest { -public: - DescribeDtsJobDetailRequest(); - ~DescribeDtsJobDetailRequest(); - bool getSyncSubJobHistory() const; - void setSyncSubJobHistory(bool syncSubJobHistory); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceID() const; - void setDtsInstanceID(const std::string &dtsInstanceID); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - bool syncSubJobHistory_; - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceID_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h b/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h deleted file mode 100644 index 4d2133ba0..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsJobDetailResult.h +++ /dev/null @@ -1,916 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobDetailResult : public ServiceResult - { - public: - struct SourceEndpoint - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct DestinationEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode - { - bool dataInitialization; - bool dataSynchronization; - bool dataExtractTransformLoad; - bool structureInitialization; - }; - struct SubscriptionHost - { - std::string publicHost; - std::string privateHost; - std::string vpcHost; - }; - struct SubscriptionDataType - { - bool dml; - bool ddl; - }; - struct DataSynchronizationStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct RetryState - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - int retryTime; - std::string errMessage; - std::string module; - bool retrying; - std::string jobId; - }; - struct SubDistributedJobItem - { - struct SourceEndpoint2 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct DestinationEndpoint3 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode4 - { - bool dataInitialization; - bool dataSynchronization; - bool dataExtractTransformLoad; - bool structureInitialization; - }; - struct PrecheckStatus - { - struct DetailItem - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail; - }; - struct StructureInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataSynchronizationStatus5 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct Performance - { - std::string rps; - std::string flow; - }; - struct ReverseJob - { - struct SourceEndpoint9 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct DestinationEndpoint10 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode11 - { - bool dataInitialization; - bool dataSynchronization; - bool dataExtractTransformLoad; - bool structureInitialization; - }; - struct PrecheckStatus12 - { - struct DetailItem24 - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail23; - }; - struct StructureInitializationStatus13 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataInitializationStatus14 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataSynchronizationStatus15 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus16 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct Performance17 - { - std::string rps; - std::string flow; - }; - struct SubscriptionHost18 - { - std::string publicHost; - std::string privateHost; - std::string vpcHost; - }; - struct SubscriptionDataType19 - { - bool dml; - bool ddl; - }; - struct RetryState20 - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - std::string errMsg; - int retryTime; - bool retrying; - std::string module; - std::string jobId; - }; - struct TagListItem22 - { - std::string gmtModified; - std::string resourceType; - long creator; - std::string gmtCreate; - std::string srcRegion; - std::string scope; - std::string resourceId; - std::string tagKey; - long id; - std::string regionId; - std::string tagValue; - std::string tagCategory; - long aliUid; - }; - PrecheckStatus12 precheckStatus12; - std::string dtsJobName; - std::string endTimestamp; - SourceEndpoint9 sourceEndpoint9; - std::string dtsInstanceID; - long delay; - std::string appName; - std::string dtsJobClass; - RetryState20 retryState20; - std::string dtsJobId; - DataEtlStatus16 dataEtlStatus16; - std::string finishTime; - std::string taskType; - MigrationMode11 migrationMode11; - SubscriptionHost18 subscriptionHost18; - SubscriptionDataType19 subscriptionDataType19; - std::string destNetType; - std::string etlCalculator; - std::string status; - DataSynchronizationStatus15 dataSynchronizationStatus15; - std::vector tagList21; - std::string originType; - std::string dbObject; - std::string createTime; - Performance17 performance17; - ObjectOfAny reverseJob; - std::string payType; - DestinationEndpoint10 destinationEndpoint10; - std::string groupId; - bool isDemoJob; - std::string checkpoint; - std::string consumptionCheckpoint; - std::string dtsJobDirection; - std::string jobType; - DataInitializationStatus14 dataInitializationStatus14; - int databaseCount; - std::string subscribeTopic; - std::string consumptionClient; - StructureInitializationStatus13 structureInitializationStatus13; - std::string expireTime; - std::string errorMessage; - std::string beginTimestamp; - std::string synchronizationDirection; - std::string reserved; - }; - struct SubscriptionHost6 - { - std::string publicHost; - std::string privateHost; - std::string vpcHost; - }; - struct SubscriptionDataType7 - { - bool dml; - bool ddl; - }; - struct RetryState8 - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - std::string errMsg; - int retryTime; - bool retrying; - std::string module; - std::string jobId; - }; - struct TagListItem - { - std::string gmtModified; - std::string resourceType; - long creator; - std::string gmtCreate; - std::string srcRegion; - std::string scope; - std::string resourceId; - std::string tagKey; - long id; - std::string regionId; - std::string tagValue; - std::string tagCategory; - long aliUid; - }; - DataInitializationStatus dataInitializationStatus; - SourceEndpoint2 sourceEndpoint2; - std::vector subSyncJob1; - std::string dtsJobName; - std::string endTimestamp; - MigrationMode4 migrationMode4; - std::string dtsInstanceID; - long delay; - std::string appName; - std::string dtsJobClass; - std::string dtsJobId; - std::string finishTime; - SubscriptionDataType7 subscriptionDataType7; - std::string taskType; - std::vector tagList; - std::string destNetType; - std::string etlCalculator; - std::string status; - std::string originType; - DataEtlStatus dataEtlStatus; - std::string dbObject; - std::string createTime; - RetryState8 retryState8; - ReverseJob reverseJob; - std::string payType; - DestinationEndpoint3 destinationEndpoint3; - std::string groupId; - bool isDemoJob; - PrecheckStatus precheckStatus; - std::string checkpoint; - std::string consumptionCheckpoint; - std::string dtsJobDirection; - std::string jobType; - SubscriptionHost6 subscriptionHost6; - int databaseCount; - std::string subscribeTopic; - std::string consumptionClient; - DataSynchronizationStatus5 dataSynchronizationStatus5; - Performance performance; - std::string expireTime; - std::string errorMessage; - std::string beginTimestamp; - std::string synchronizationDirection; - StructureInitializationStatus structureInitializationStatus; - std::string reserved; - }; - struct SubSyncJobItem - { - struct SourceEndpoint26 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct DestinationEndpoint27 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode28 - { - bool dataInitialization; - bool dataSynchronization; - bool dataExtractTransformLoad; - bool structureInitialization; - }; - struct PrecheckStatus29 - { - struct DetailItem42 - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::vector detail41; - std::string percent; - std::string errorMessage; - }; - struct StructureInitializationStatus30 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataInitializationStatus31 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataSynchronizationStatus32 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus33 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct Performance34 - { - std::string rps; - std::string flow; - }; - struct ReverseJob35 - { - struct SourceEndpoint43 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct DestinationEndpoint44 - { - std::string oracleSID; - std::string roleName; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string aliyunUid; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode45 - { - bool dataInitialization; - bool dataSynchronization; - bool dataExtractTransformLoad; - bool structureInitialization; - }; - struct PrecheckStatus46 - { - struct DetailItem58 - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::vector detail57; - std::string errorMessage; - }; - struct StructureInitializationStatus47 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataInitializationStatus48 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataSynchronizationStatus49 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus50 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct Performance51 - { - std::string rps; - std::string flow; - }; - struct SubscriptionHost52 - { - std::string publicHost; - std::string privateHost; - std::string vpcHost; - }; - struct SubscriptionDataType53 - { - bool dml; - bool ddl; - }; - struct RetryState54 - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - std::string errMsg; - int retryTime; - bool retrying; - std::string module; - std::string jobId; - }; - struct TagListItem56 - { - std::string gmtModified; - std::string resourceType; - long creator; - std::string gmtCreate; - std::string srcRegion; - std::string scope; - std::string resourceId; - std::string tagKey; - long id; - std::string regionId; - std::string tagValue; - std::string tagCategory; - long aliUid; - }; - DataSynchronizationStatus49 dataSynchronizationStatus49; - std::string dtsJobName; - std::string endTimestamp; - std::string dtsInstanceID; - std::vector tagList55; - long delay; - DestinationEndpoint44 destinationEndpoint44; - std::string appName; - std::string dtsJobClass; - std::string dtsJobId; - std::string finishTime; - SubscriptionHost52 subscriptionHost52; - StructureInitializationStatus47 structureInitializationStatus47; - std::string taskType; - std::string destNetType; - DataEtlStatus50 dataEtlStatus50; - std::string etlCalculator; - std::string status; - std::string originType; - std::string dbObject; - std::string createTime; - PrecheckStatus46 precheckStatus46; - ObjectOfAny reverseJob; - DataInitializationStatus48 dataInitializationStatus48; - SubscriptionDataType53 subscriptionDataType53; - std::string payType; - std::string groupId; - bool isDemoJob; - Performance51 performance51; - std::string checkpoint; - std::string consumptionCheckpoint; - std::string dtsJobDirection; - std::string jobType; - int databaseCount; - SourceEndpoint43 sourceEndpoint43; - std::string subscribeTopic; - std::string consumptionClient; - MigrationMode45 migrationMode45; - RetryState54 retryState54; - std::string expireTime; - std::string errorMessage; - std::string beginTimestamp; - std::string synchronizationDirection; - std::string reserved; - }; - struct SubscriptionHost36 - { - std::string publicHost; - std::string privateHost; - std::string vpcHost; - }; - struct SubscriptionDataType37 - { - bool dml; - bool ddl; - }; - struct RetryState38 - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - std::string errMsg; - int retryTime; - bool retrying; - std::string module; - std::string jobId; - }; - struct TagListItem40 - { - std::string gmtModified; - std::string resourceType; - long creator; - std::string gmtCreate; - std::string srcRegion; - std::string scope; - std::string resourceId; - std::string tagKey; - long id; - std::string regionId; - std::string tagValue; - std::string tagCategory; - long aliUid; - }; - DestinationEndpoint27 destinationEndpoint27; - std::vector tagList39; - std::string dtsJobName; - std::string endTimestamp; - std::string dtsInstanceID; - long delay; - std::string appName; - SubscriptionDataType37 subscriptionDataType37; - std::string dtsJobClass; - std::string dtsJobId; - std::string finishTime; - std::string taskType; - std::vector subSyncJob25; - DataEtlStatus33 dataEtlStatus33; - std::string destNetType; - SubscriptionHost36 subscriptionHost36; - std::string etlCalculator; - std::string status; - std::string originType; - std::string dbObject; - std::string createTime; - DataSynchronizationStatus32 dataSynchronizationStatus32; - std::string payType; - SourceEndpoint26 sourceEndpoint26; - PrecheckStatus29 precheckStatus29; - Performance34 performance34; - std::string groupId; - bool isDemoJob; - DataInitializationStatus31 dataInitializationStatus31; - std::string checkpoint; - std::string consumptionCheckpoint; - ReverseJob35 reverseJob35; - std::string dtsJobDirection; - std::string jobType; - int databaseCount; - std::string subscribeTopic; - std::string consumptionClient; - RetryState38 retryState38; - std::string expireTime; - std::string errorMessage; - MigrationMode28 migrationMode28; - StructureInitializationStatus30 structureInitializationStatus30; - std::string beginTimestamp; - std::string synchronizationDirection; - std::string reserved; - }; - - - DescribeDtsJobDetailResult(); - explicit DescribeDtsJobDetailResult(const std::string &payload); - ~DescribeDtsJobDetailResult(); - SubscriptionHost getSubscriptionHost()const; - std::string getResourceGroupId()const; - std::string getDtsJobName()const; - std::string getEndTimestamp()const; - std::string getDynamicMessage()const; - std::string getDtsInstanceID()const; - MigrationMode getMigrationMode()const; - long getDelay()const; - bool getSuccess()const; - bool getDemoJob()const; - SubscriptionDataType getSubscriptionDataType()const; - std::string getDtsJobId()const; - std::string getLastUpdateTime()const; - std::string getTaskType()const; - int getHttpStatusCode()const; - DataSynchronizationStatus getDataSynchronizationStatus()const; - std::string getEtlCalculator()const; - std::string getStatus()const; - std::string getDedicatedClusterId()const; - std::string getDbObject()const; - std::string getBootTime()const; - std::string getPayType()const; - std::string getErrMessage()const; - int getCode()const; - std::string getErrCode()const; - std::string getSubscribeTopic()const; - std::string getConsumptionClient()const; - SourceEndpoint getSourceEndpoint()const; - std::string getExpireTime()const; - RetryState getRetryState()const; - std::string getReserved()const; - std::vector getSubSyncJob()const; - std::string getBinlogTime()const; - std::string getAppName()const; - std::string getDtsJobClass()const; - std::string getFinishTime()const; - std::string getDestNetType()const; - std::string getBinlog()const; - std::string getCreateTime()const; - std::vector getSubDistributedJob()const; - std::string getGroupId()const; - long getCheckpoint()const; - std::string getConsumptionCheckpoint()const; - std::string getDtsJobDirection()const; - std::string getJobType()const; - int getDatabaseCount()const; - DestinationEndpoint getDestinationEndpoint()const; - std::string getBinlogSite()const; - std::string getErrorMessage()const; - std::string getResourceGroupDisplayName()const; - std::string getBeginTimestamp()const; - std::string getSynchronizationDirection()const; - - protected: - void parse(const std::string &payload); - private: - SubscriptionHost subscriptionHost_; - std::string resourceGroupId_; - std::string dtsJobName_; - std::string endTimestamp_; - std::string dynamicMessage_; - std::string dtsInstanceID_; - MigrationMode migrationMode_; - long delay_; - bool success_; - bool demoJob_; - SubscriptionDataType subscriptionDataType_; - std::string dtsJobId_; - std::string lastUpdateTime_; - std::string taskType_; - int httpStatusCode_; - DataSynchronizationStatus dataSynchronizationStatus_; - std::string etlCalculator_; - std::string status_; - std::string dedicatedClusterId_; - std::string dbObject_; - std::string bootTime_; - std::string payType_; - std::string errMessage_; - int code_; - std::string errCode_; - std::string subscribeTopic_; - std::string consumptionClient_; - SourceEndpoint sourceEndpoint_; - std::string expireTime_; - RetryState retryState_; - std::string reserved_; - std::vector subSyncJob_; - std::string binlogTime_; - std::string appName_; - std::string dtsJobClass_; - std::string finishTime_; - std::string destNetType_; - std::string binlog_; - std::string createTime_; - std::vector subDistributedJob_; - std::string groupId_; - long checkpoint_; - std::string consumptionCheckpoint_; - std::string dtsJobDirection_; - std::string jobType_; - int databaseCount_; - DestinationEndpoint destinationEndpoint_; - std::string binlogSite_; - std::string errorMessage_; - std::string resourceGroupDisplayName_; - std::string beginTimestamp_; - std::string synchronizationDirection_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsJobsRequest.h b/dts/include/alibabacloud/dts/model/DescribeDtsJobsRequest.h deleted file mode 100644 index cadc6b405..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsJobsRequest.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsRequest : public RpcServiceRequest { -public: - DescribeDtsJobsRequest(); - ~DescribeDtsJobsRequest(); - std::string getOrderDirection() const; - void setOrderDirection(const std::string &orderDirection); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getType() const; - void setType(const std::string &type); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getOrderColumn() const; - void setOrderColumn(const std::string &orderColumn); - std::string getResourceGroupId() const; - void setResourceGroupId(const std::string &resourceGroupId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getOriginType() const; - void setOriginType(const std::string &originType); - std::string getGroupId() const; - void setGroupId(const std::string &groupId); - std::string getParams() const; - void setParams(const std::string ¶ms); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getJobType() const; - void setJobType(const std::string &jobType); - std::string getTags() const; - void setTags(const std::string &tags); - std::string getRegion() const; - void setRegion(const std::string ®ion); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - std::string orderDirection_; - std::string dedicatedClusterId_; - std::string type_; - int pageNumber_; - std::string orderColumn_; - std::string resourceGroupId_; - std::string regionId_; - int pageSize_; - std::string dtsJobId_; - std::string originType_; - std::string groupId_; - std::string params_; - std::string ownerId_; - std::string jobType_; - std::string tags_; - std::string region_; - std::string dtsInstanceId_; - std::string status_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsJobsResult.h b/dts/include/alibabacloud/dts/model/DescribeDtsJobsResult.h deleted file mode 100644 index aac568b18..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsJobsResult.h +++ /dev/null @@ -1,578 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsResult : public ServiceResult - { - public: - struct DtsJobStatus - { - struct DataInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DestinationEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct Performance - { - std::string rps; - std::string flow; - }; - struct PrecheckStatus - { - struct PrecheckDetail - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail; - }; - struct ReverseJob - { - struct DataInitializationStatus1 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus2 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DestinationEndpoint3 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode4 - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct Performance5 - { - std::string rps; - std::string flow; - }; - struct PrecheckStatus6 - { - struct PrecheckDetail12 - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail11; - }; - struct SourceEndpoint7 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct StructureInitializationStatus8 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct ErrorDetail10 - { - std::string errorCode; - std::string helpUrl; - }; - long duUsage; - SourceEndpoint7 sourceEndpoint7; - std::string dtsJobName; - PrecheckStatus6 precheckStatus6; - std::vector errorDetails9; - std::string cpuUsage; - MigrationMode4 migrationMode4; - StructureInitializationStatus8 structureInitializationStatus8; - std::string dtsInstanceID; - long delay; - Performance5 performance5; - std::string dtsJobClass; - std::string dtsJobId; - DataInitializationStatus1 dataInitializationStatus1; - std::string memUsage; - std::string status; - std::string dedicatedClusterId; - std::string dbObject; - std::string createTime; - std::string payType; - DestinationEndpoint3 destinationEndpoint3; - std::string checkpoint; - std::string dtsJobDirection; - std::string errorMessage; - std::string expireTime; - DataSynchronizationStatus2 dataSynchronizationStatus2; - std::string reserved; - }; - struct SourceEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct StructureInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct RetryState - { - int maxRetryTime; - std::string retryTarget; - std::string migrationErrCode; - std::string migrationErrWorkaround; - std::string errMessage; - std::string migrationErrHelpDocKey; - int retryCount; - int retryTime; - std::string module; - bool retrying; - std::string migrationErrHelpDocId; - std::string jobId; - std::string migrationErrMsg; - }; - struct DataCloudStatus - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DtsTag - { - std::string tagKey; - std::string tagValue; - }; - struct ErrorDetail - { - std::string errorCode; - std::string helpUrl; - }; - long duUsage; - DataInitializationStatus dataInitializationStatus; - std::string resourceGroupId; - std::string dtsJobName; - std::string migrationErrWorkaround; - std::string migrationErrCode; - std::string endTimestamp; - std::string cpuUsage; - std::vector errorDetails; - std::string dtsInstanceID; - MigrationMode migrationMode; - long delay; - std::string appName; - std::string dtsJobClass; - DataCloudStatus dataCloudStatus; - std::string dtsJobId; - std::vector tagList; - std::string migrationErrHelpDocId; - DataSynchronizationStatus dataSynchronizationStatus; - std::string memUsage; - std::string status; - std::string originType; - std::string dedicatedClusterId; - DataEtlStatus dataEtlStatus; - std::string dbObject; - std::string createTime; - ReverseJob reverseJob; - std::string payType; - PrecheckStatus precheckStatus; - std::string consumptionCheckpoint; - std::string checkpoint; - std::string migrationErrHelpDocKey; - std::string dtsJobDirection; - std::string jobType; - DestinationEndpoint destinationEndpoint; - std::string consumptionClient; - SourceEndpoint sourceEndpoint; - Performance performance; - std::string errorMessage; - std::string expireTime; - std::string resourceGroupDisplayName; - std::string beginTimestamp; - std::string migrationErrMsg; - StructureInitializationStatus structureInitializationStatus; - RetryState retryState; - std::string reserved; - }; - struct DtsJobStatus13 - { - struct DataInitializationStatus14 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus15 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DataEtlStatus16 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DestinationEndpoint17 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode18 - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct Performance19 - { - std::string rps; - std::string flow; - }; - struct PrecheckStatus20 - { - struct PrecheckDetail - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail; - }; - struct ReverseJob21 - { - struct DataInitializationStatus26 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus27 - { - std::string status; - std::string progress; - std::string percent; - bool needUpgrade; - std::string errorMessage; - }; - struct DestinationEndpoint28 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode29 - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct Performance30 - { - std::string rps; - std::string flow; - }; - struct PrecheckStatus31 - { - struct PrecheckDetail35 - { - std::string repairMethod; - std::string checkItem; - std::string checkResult; - std::string failedReason; - std::string checkItemDescription; - }; - std::string status; - std::string percent; - std::string errorMessage; - std::vector detail34; - }; - struct SourceEndpoint32 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct StructureInitializationStatus33 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - DataSynchronizationStatus27 dataSynchronizationStatus27; - std::string status; - PrecheckStatus31 precheckStatus31; - DestinationEndpoint28 destinationEndpoint28; - std::string dbObject; - std::string createTime; - std::string dtsJobName; - DataInitializationStatus26 dataInitializationStatus26; - std::string payType; - std::string dtsInstanceID; - long delay; - MigrationMode29 migrationMode29; - std::string dtsJobClass; - std::string checkpoint; - Performance30 performance30; - std::string dtsJobId; - std::string dtsJobDirection; - SourceEndpoint32 sourceEndpoint32; - StructureInitializationStatus33 structureInitializationStatus33; - std::string errorMessage; - std::string expireTime; - std::string reserved; - }; - struct SourceEndpoint22 - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string sslSolutionEnum; - std::string ip; - std::string port; - std::string databaseName; - std::string region; - std::string instanceType; - std::string engineName; - }; - struct StructureInitializationStatus23 - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct RetryState24 - { - int maxRetryTime; - std::string retryTarget; - int retryCount; - int retryTime; - std::string errMessage; - std::string module; - bool retrying; - std::string jobId; - }; - struct DtsTag - { - std::string tagKey; - std::string tagValue; - }; - std::string resourceGroupId; - std::string dtsJobName; - std::string endTimestamp; - std::string dtsInstanceID; - long delay; - std::string appName; - MigrationMode18 migrationMode18; - std::string dtsJobClass; - std::string dtsJobId; - DataEtlStatus16 dataEtlStatus16; - ReverseJob21 reverseJob21; - StructureInitializationStatus23 structureInitializationStatus23; - RetryState24 retryState24; - std::string status; - DataSynchronizationStatus15 dataSynchronizationStatus15; - std::string originType; - PrecheckStatus20 precheckStatus20; - DestinationEndpoint17 destinationEndpoint17; - std::string dbObject; - Performance19 performance19; - std::string createTime; - SourceEndpoint22 sourceEndpoint22; - std::string payType; - std::vector tagList25; - std::string consumptionCheckpoint; - std::string checkpoint; - std::string dtsJobDirection; - std::string jobType; - DataInitializationStatus14 dataInitializationStatus14; - std::string consumptionClient; - std::string errorMessage; - std::string expireTime; - std::string resourceGroupDisplayName; - std::string beginTimestamp; - std::string reserved; - }; - - - DescribeDtsJobsResult(); - explicit DescribeDtsJobsResult(const std::string &payload); - ~DescribeDtsJobsResult(); - int getTotalRecordCount()const; - std::vector getDtsJobList()const; - int getPageRecordCount()const; - int getPageNumber()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::vector getEtlDemoList()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int totalRecordCount_; - std::vector dtsJobList_; - int pageRecordCount_; - int pageNumber_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::vector etlDemoList_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogRequest.h b/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogRequest.h deleted file mode 100644 index 587a45fa1..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSSERVICELOGREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSSERVICELOGREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeDtsServiceLogRequest : public RpcServiceRequest { -public: - DescribeDtsServiceLogRequest(); - ~DescribeDtsServiceLogRequest(); - long getStartTime() const; - void setStartTime(long startTime); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getKeyword() const; - void setKeyword(const std::string &keyword); - std::string getSubJobType() const; - void setSubJobType(const std::string &subJobType); - long getEndTime() const; - void setEndTime(long endTime); - std::string getStatus() const; - void setStatus(const std::string &status); - -private: - long startTime_; - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string dtsJobId_; - std::string keyword_; - std::string subJobType_; - long endTime_; - std::string status_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSSERVICELOGREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogResult.h b/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogResult.h deleted file mode 100644 index 49912d7fc..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeDtsServiceLogResult.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEDTSSERVICELOGRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSSERVICELOGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeDtsServiceLogResult : public ServiceResult - { - public: - struct ServiceLogContext - { - std::string context; - std::string state; - std::string time; - }; - - - DescribeDtsServiceLogResult(); - explicit DescribeDtsServiceLogResult(const std::string &payload); - ~DescribeDtsServiceLogResult(); - long getTotalRecordCount()const; - std::vector getServiceLogContexts()const; - int getPageRecordCount()const; - int getPageNumber()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - std::vector serviceLogContexts_; - int pageRecordCount_; - int pageNumber_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSSERVICELOGRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h index 1a998ab34..fc38ebfda 100644 --- a/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h +++ b/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusRequest.h @@ -34,21 +34,12 @@ public: void setClientToken(const std::string &clientToken); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getTaskId() const; void setTaskId(const std::string &taskId); private: std::string clientToken_; std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; std::string taskId_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h index cf4c22532..8b97e3690 100644 --- a/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h +++ b/dts/include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h @@ -39,18 +39,12 @@ namespace AlibabaCloud ~DescribeEndpointSwitchStatusResult(); std::string getStatus()const; std::string getErrorMessage()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; protected: void parse(const std::string &payload); private: std::string status_; std::string errorMessage_; - std::string errMessage_; - std::string success_; - std::string errCode_; }; } diff --git a/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsRequest.h b/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsRequest.h deleted file mode 100644 index 083e2c683..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEETLJOBLOGSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEETLJOBLOGSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeEtlJobLogsRequest : public RpcServiceRequest { -public: - DescribeEtlJobLogsRequest(); - ~DescribeEtlJobLogsRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - -private: - std::string regionId_; - std::string dtsJobId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEETLJOBLOGSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsResult.h b/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsResult.h deleted file mode 100644 index 697041743..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeEtlJobLogsResult.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEETLJOBLOGSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEETLJOBLOGSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeEtlJobLogsResult : public ServiceResult - { - public: - struct EtlRunningLog - { - std::string contentKey; - std::string status; - std::string userId; - std::string content; - std::string logDatetime; - std::string etlId; - }; - - - DescribeEtlJobLogsResult(); - explicit DescribeEtlJobLogsResult(const std::string &payload); - ~DescribeEtlJobLogsResult(); - std::vector getEtlRunningLogs()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::vector etlRunningLogs_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEETLJOBLOGSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h deleted file mode 100644 index 432d10874..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeInitializationStatusRequest : public RpcServiceRequest { -public: - DescribeInitializationStatusRequest(); - ~DescribeInitializationStatusRequest(); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobId() const; - void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - -private: - int pageNum_; - std::string ownerId_; - std::string accessKeyId_; - std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; - int pageSize_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeInitializationStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeInitializationStatusResult.h deleted file mode 100644 index 51e761153..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeInitializationStatusResult.h +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeInitializationStatusResult : public ServiceResult - { - public: - struct DataInitializationDetail - { - std::string status; - std::string tableName; - std::string usedTime; - std::string totalRowNum; - std::string sourceOwnerDBName; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string finishRowNum; - }; - struct DataSynchronizationDetail - { - std::string status; - std::string tableName; - std::string sourceOwnerDBName; - std::string errorMessage; - std::string destinationOwnerDBName; - }; - struct StructureInitializationDetail - { - struct StructureInitializationDetail1 - { - std::string status; - std::string objectType; - std::string sourceOwnerDBName; - std::string objectDefinition; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string objectName; - }; - std::string status; - std::string objectType; - std::vector constraints; - std::string sourceOwnerDBName; - std::string objectDefinition; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string objectName; - }; - - - DescribeInitializationStatusResult(); - explicit DescribeInitializationStatusResult(const std::string &payload); - ~DescribeInitializationStatusResult(); - std::vector getStructureInitializationDetails()const; - std::vector getDataInitializationDetails()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::vector getDataSynchronizationDetails()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::vector structureInitializationDetails_; - std::vector dataInitializationDetails_; - std::string errMessage_; - std::string success_; - std::vector dataSynchronizationDetails_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEINITIALIZATIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleRequest.h b/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleRequest.h deleted file mode 100644 index bb48a080b..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEJOBMONITORRULEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEJOBMONITORRULEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeJobMonitorRuleRequest : public RpcServiceRequest { -public: - DescribeJobMonitorRuleRequest(); - ~DescribeJobMonitorRuleRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - -private: - std::string regionId_; - std::string dtsJobId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEJOBMONITORRULEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleResult.h b/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleResult.h deleted file mode 100644 index cab710e99..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeJobMonitorRuleResult.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEJOBMONITORRULERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEJOBMONITORRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeJobMonitorRuleResult : public ServiceResult - { - public: - struct MonitorRule - { - std::string type; - std::string jobType; - std::string state; - std::string phone; - int times; - int period; - int noticeValue; - long delayRuleTime; - std::string jobId; - }; - - - DescribeJobMonitorRuleResult(); - explicit DescribeJobMonitorRuleResult(const std::string &payload); - ~DescribeJobMonitorRuleResult(); - std::vector getTopics()const; - std::string getDtsJobId()const; - int getHttpStatusCode()const; - std::vector getMonitorRules()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::vector topics_; - std::string dtsJobId_; - int httpStatusCode_; - std::vector monitorRules_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEJOBMONITORRULERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeMetricListRequest.h b/dts/include/alibabacloud/dts/model/DescribeMetricListRequest.h deleted file mode 100644 index 9d696f734..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMetricListRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeMetricListRequest : public RpcServiceRequest { -public: - DescribeMetricListRequest(); - ~DescribeMetricListRequest(); - std::string getMetricType() const; - void setMetricType(const std::string &metricType); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - long getStartTime() const; - void setStartTime(long startTime); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getParam() const; - void setParam(const std::string ¶m); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getMetricName() const; - void setMetricName(const std::string &metricName); - long getPeriod() const; - void setPeriod(long period); - long getEndTime() const; - void setEndTime(long endTime); - std::string getEnv() const; - void setEnv(const std::string &env); - std::string getOwnerID() const; - void setOwnerID(const std::string &ownerID); - -private: - std::string metricType_; - std::string clientToken_; - long startTime_; - std::string accessKeyId_; - std::string accountId_; - std::string param_; - std::string dtsJobId_; - std::string metricName_; - long period_; - long endTime_; - std::string env_; - std::string ownerID_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeMetricListResult.h b/dts/include/alibabacloud/dts/model/DescribeMetricListResult.h deleted file mode 100644 index c300ae505..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMetricListResult.h +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMETRICLISTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMETRICLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeMetricListResult : public ServiceResult - { - public: - struct DataPoint - { - long timestamp; - float statistics; - }; - - - DescribeMetricListResult(); - explicit DescribeMetricListResult(const std::string &payload); - ~DescribeMetricListResult(); - std::string getMetricName()const; - std::string getMetricType()const; - std::string getParam()const; - int getHttpStatusCode()const; - long getPeriod()const; - std::vector getDataPoints()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string metricName_; - std::string metricType_; - std::string param_; - int httpStatusCode_; - long period_; - std::vector dataPoints_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMETRICLISTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertRequest.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertRequest.h deleted file mode 100644 index 7936bf168..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobAlertRequest : public RpcServiceRequest { -public: - DescribeMigrationJobAlertRequest(); - ~DescribeMigrationJobAlertRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertResult.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertResult.h deleted file mode 100644 index be95dd16e..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobAlertResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobAlertResult : public ServiceResult - { - public: - - - DescribeMigrationJobAlertResult(); - explicit DescribeMigrationJobAlertResult(const std::string &payload); - ~DescribeMigrationJobAlertResult(); - std::string getErrorAlertPhone()const; - std::string getDelayAlertPhone()const; - std::string getMigrationJobName()const; - std::string getErrorAlertStatus()const; - std::string getErrMessage()const; - std::string getDelayAlertStatus()const; - std::string getSuccess()const; - std::string getDelayOverSeconds()const; - std::string getErrCode()const; - std::string getMigrationJobId()const; - - protected: - void parse(const std::string &payload); - private: - std::string errorAlertPhone_; - std::string delayAlertPhone_; - std::string migrationJobName_; - std::string errorAlertStatus_; - std::string errMessage_; - std::string delayAlertStatus_; - std::string success_; - std::string delayOverSeconds_; - std::string errCode_; - std::string migrationJobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBALERTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailRequest.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailRequest.h deleted file mode 100644 index 974c2204d..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobDetailRequest : public RpcServiceRequest { -public: - DescribeMigrationJobDetailRequest(); - ~DescribeMigrationJobDetailRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - bool getMigrationModeDataInitialization() const; - void setMigrationModeDataInitialization(bool migrationModeDataInitialization); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - bool getMigrationModeDataSynchronization() const; - void setMigrationModeDataSynchronization(bool migrationModeDataSynchronization); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - bool getMigrationModeStructureInitialization() const; - void setMigrationModeStructureInitialization(bool migrationModeStructureInitialization); - -private: - std::string clientToken_; - bool migrationModeDataInitialization_; - std::string migrationJobId_; - int pageNum_; - std::string accessKeyId_; - std::string accountId_; - bool migrationModeDataSynchronization_; - std::string regionId_; - int pageSize_; - std::string ownerId_; - bool migrationModeStructureInitialization_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailResult.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailResult.h deleted file mode 100644 index e7cd108f0..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobDetailResult.h +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobDetailResult : public ServiceResult - { - public: - struct DataInitializationDetail - { - std::string status; - std::string tableName; - std::string totalRowNum; - std::string migrationTime; - std::string sourceOwnerDBName; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string finishRowNum; - }; - struct DataSynchronizationDetail - { - std::string status; - std::string tableName; - std::string sourceOwnerDBName; - std::string errorMessage; - std::string destinationOwnerDBName; - }; - struct StructureInitializationDetail - { - struct StructureInitializationDetail1 - { - std::string status; - std::string objectType; - std::string sourceOwnerDBName; - std::string objectDefinition; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string objectName; - }; - std::string status; - std::string objectType; - std::vector constraintList; - std::string sourceOwnerDBName; - std::string objectDefinition; - std::string errorMessage; - std::string destinationOwnerDBName; - std::string objectName; - }; - - - DescribeMigrationJobDetailResult(); - explicit DescribeMigrationJobDetailResult(const std::string &payload); - ~DescribeMigrationJobDetailResult(); - long getTotalRecordCount()const; - std::vector getDataSynchronizationDetailList()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getDataInitializationDetailList()const; - std::string getErrMessage()const; - std::vector getStructureInitializationDetailList()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - std::vector dataSynchronizationDetailList_; - int pageRecordCount_; - int pageNumber_; - std::vector dataInitializationDetailList_; - std::string errMessage_; - std::vector structureInitializationDetailList_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBDETAILRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusRequest.h deleted file mode 100644 index 776ed9a36..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobStatusRequest : public RpcServiceRequest { -public: - DescribeMigrationJobStatusRequest(); - ~DescribeMigrationJobStatusRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h deleted file mode 100644 index 1fb771600..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobStatusResult.h +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobStatusResult : public ServiceResult - { - public: - struct DataInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus - { - std::string status; - std::string checkpoint; - std::string percent; - std::string errorMessage; - std::string delay; - }; - struct DestinationEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceId; - std::string iP; - std::string port; - std::string databaseName; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct PrecheckStatus - { - struct CheckItem - { - std::string repairMethod; - std::string checkStatus; - std::string itemName; - std::string errorMessage; - }; - std::string status; - std::string percent; - std::vector detail; - }; - struct SourceEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceId; - std::string iP; - std::string port; - std::string databaseName; - std::string instanceType; - std::string engineName; - }; - struct StructureInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - - - DescribeMigrationJobStatusResult(); - explicit DescribeMigrationJobStatusResult(const std::string &payload); - ~DescribeMigrationJobStatusResult(); - DataInitializationStatus getDataInitializationStatus()const; - std::string getTaskId()const; - std::string getMigrationJobName()const; - std::string getPayType()const; - std::string getErrMessage()const; - MigrationMode getMigrationMode()const; - std::string getMigrationJobStatus()const; - std::string getSuccess()const; - std::string getErrCode()const; - std::string getMigrationJobId()const; - PrecheckStatus getPrecheckStatus()const; - std::string getMigrationObject()const; - DestinationEndpoint getDestinationEndpoint()const; - SourceEndpoint getSourceEndpoint()const; - std::string getMigrationJobClass()const; - DataSynchronizationStatus getDataSynchronizationStatus()const; - StructureInitializationStatus getStructureInitializationStatus()const; - - protected: - void parse(const std::string &payload); - private: - DataInitializationStatus dataInitializationStatus_; - std::string taskId_; - std::string migrationJobName_; - std::string payType_; - std::string errMessage_; - MigrationMode migrationMode_; - std::string migrationJobStatus_; - std::string success_; - std::string errCode_; - std::string migrationJobId_; - PrecheckStatus precheckStatus_; - std::string migrationObject_; - DestinationEndpoint destinationEndpoint_; - SourceEndpoint sourceEndpoint_; - std::string migrationJobClass_; - DataSynchronizationStatus dataSynchronizationStatus_; - StructureInitializationStatus structureInitializationStatus_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h deleted file mode 100644 index 282afb119..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobsRequest.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobsRequest : public RpcServiceRequest { -public: - struct Tag { - std::string value; - std::string key; - }; - DescribeMigrationJobsRequest(); - ~DescribeMigrationJobsRequest(); - std::string getInstFilterRegion() const; - void setInstFilterRegion(const std::string &instFilterRegion); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getMigrationJobName() const; - void setMigrationJobName(const std::string &migrationJobName); - std::vector getTag() const; - void setTag(const std::vector &tag); - -private: - std::string instFilterRegion_; - int pageNum_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - int pageSize_; - std::string migrationJobName_; - std::vector tag_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeMigrationJobsResult.h b/dts/include/alibabacloud/dts/model/DescribeMigrationJobsResult.h deleted file mode 100644 index 661d8b669..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeMigrationJobsResult.h +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEMIGRATIONJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeMigrationJobsResult : public ServiceResult - { - public: - struct MigrationJob - { - struct DataInitialization - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronization - { - std::string status; - std::string percent; - std::string errorMessage; - std::string delay; - }; - struct DestinationEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string port; - std::string iP; - std::string databaseName; - std::string instanceType; - std::string engineName; - }; - struct MigrationMode - { - bool dataInitialization; - bool dataSynchronization; - bool structureInitialization; - }; - struct Precheck - { - std::string status; - std::string percent; - }; - struct SourceEndpoint - { - std::string oracleSID; - std::string userName; - std::string instanceID; - std::string port; - std::string iP; - std::string databaseName; - std::string instanceType; - std::string engineName; - }; - struct StructureInitialization - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct SynchronousObject - { - std::string databaseName; - std::string wholeDatabase; - std::vector tableList; - }; - struct Tag - { - std::string value; - std::string key; - }; - DataSynchronization dataSynchronization; - Precheck precheck; - std::string instanceCreateTime; - std::string jobCreateTime; - std::string migrationJobName; - std::string payType; - MigrationMode migrationMode; - std::string migrationJobStatus; - std::string migrationJobID; - std::vector migrationObject; - DataInitialization dataInitialization; - DestinationEndpoint destinationEndpoint; - SourceEndpoint sourceEndpoint; - std::string migrationJobClass; - StructureInitialization structureInitialization; - std::vector tags; - }; - - - DescribeMigrationJobsResult(); - explicit DescribeMigrationJobsResult(const std::string &payload); - ~DescribeMigrationJobsResult(); - long getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getMigrationJobs()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::vector migrationJobs_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEMIGRATIONJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h deleted file mode 100644 index 14f5f464c..000000000 --- a/dts/include/alibabacloud/dts/model/DescribePreCheckStatusRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribePreCheckStatusRequest : public RpcServiceRequest { -public: - DescribePreCheckStatusRequest(); - ~DescribePreCheckStatusRequest(); - std::string getStructType() const; - void setStructType(const std::string &structType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getPageSize() const; - void setPageSize(const std::string &pageSize); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getPageNo() const; - void setPageNo(const std::string &pageNo); - std::string getJobCode() const; - void setJobCode(const std::string &jobCode); - std::string getName() const; - void setName(const std::string &name); - std::string getStructPhase() const; - void setStructPhase(const std::string &structPhase); - -private: - std::string structType_; - std::string regionId_; - std::string pageSize_; - std::string dtsJobId_; - std::string pageNo_; - std::string jobCode_; - std::string name_; - std::string structPhase_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribePreCheckStatusResult.h b/dts/include/alibabacloud/dts/model/DescribePreCheckStatusResult.h deleted file mode 100644 index 6f7eadc0e..000000000 --- a/dts/include/alibabacloud/dts/model/DescribePreCheckStatusResult.h +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribePreCheckStatusResult : public ServiceResult - { - public: - struct ProgressInfo - { - struct JobLog - { - std::string errData; - std::string errMsg; - std::string errType; - std::string logLevel; - }; - std::string sourceSchema; - std::string destSchema; - std::string errMsg; - std::string names; - std::string item; - std::string repairMethod; - std::string finishTime; - long diffRow; - int orderNum; - std::string parentObj; - std::string jobId; - std::string ddlSql; - std::string sub; - std::string targetNames; - std::string bootTime; - std::vector logs; - bool canSkip; - int delaySeconds; - std::string ignoreFlag; - std::string state; - int total; - bool skip; - std::string errDetail; - std::string id; - std::string current; - }; - struct SubDistributedJobStatusItem - { - struct ProgressInfo2 - { - struct JobLog4 - { - std::string errData; - std::string errMsg; - std::string errType; - std::string logLevel; - }; - std::string sourceSchema; - std::string destSchema; - std::string errMsg; - std::string names; - std::string item; - std::string repairMethod; - std::string finishTime; - long diffRow; - int orderNum; - std::string parentObj; - std::string jobId; - std::string ddlSql; - std::string sub; - std::string targetNames; - std::vector logs3; - std::string bootTime; - bool canSkip; - int delaySeconds; - std::string ignoreFlag; - std::string state; - int total; - bool skip; - std::string errDetail; - std::string id; - std::string current; - }; - std::vector jobProgress1; - std::string state; - int total; - std::string jobName; - int errorItem; - std::string code; - std::string jobId; - }; - - - DescribePreCheckStatusResult(); - explicit DescribePreCheckStatusResult(const std::string &payload); - ~DescribePreCheckStatusResult(); - long getTotalRecordCount()const; - long getPageRecordCount()const; - std::string getJobName()const; - int getErrorItem()const; - std::vector getSubDistributedJobStatus()const; - std::string getCode()const; - bool getSuccess()const; - long getPageNumber()const; - std::string getState()const; - int getTotal()const; - int getHttpStatusCode()const; - std::string getJobId()const; - std::vector getJobProgress()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - long pageRecordCount_; - std::string jobName_; - int errorItem_; - std::vector subDistributedJobStatus_; - std::string code_; - bool success_; - long pageNumber_; - std::string state_; - int total_; - int httpStatusCode_; - std::string jobId_; - std::vector jobProgress_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h deleted file mode 100644 index 953147dea..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstanceAlertRequest : public RpcServiceRequest { -public: - DescribeSubscriptionInstanceAlertRequest(); - ~DescribeSubscriptionInstanceAlertRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h deleted file mode 100644 index d4776324b..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceAlertResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstanceAlertResult : public ServiceResult - { - public: - - - DescribeSubscriptionInstanceAlertResult(); - explicit DescribeSubscriptionInstanceAlertResult(const std::string &payload); - ~DescribeSubscriptionInstanceAlertResult(); - std::string getErrorAlertPhone()const; - std::string getSubscriptionInstanceName()const; - std::string getDelayAlertPhone()const; - std::string getErrorAlertStatus()const; - std::string getErrMessage()const; - std::string getSubscriptionInstanceID()const; - std::string getDelayAlertStatus()const; - std::string getSuccess()const; - std::string getDelayOverSeconds()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errorAlertPhone_; - std::string subscriptionInstanceName_; - std::string delayAlertPhone_; - std::string errorAlertStatus_; - std::string errMessage_; - std::string subscriptionInstanceID_; - std::string delayAlertStatus_; - std::string success_; - std::string delayOverSeconds_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCEALERTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h deleted file mode 100644 index 6f40a061a..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstanceStatusRequest : public RpcServiceRequest { -public: - DescribeSubscriptionInstanceStatusRequest(); - ~DescribeSubscriptionInstanceStatusRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h deleted file mode 100644 index 1928cc449..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstanceStatusResult.h +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstanceStatusResult : public ServiceResult - { - public: - struct SourceEndpoint - { - std::string instanceID; - std::string instanceType; - }; - struct SubscriptionDataType - { - bool dML; - bool dDL; - }; - struct SubscriptionHost - { - std::string publicHost; - std::string privateHost; - std::string vPCHost; - }; - struct SynchronousObject - { - std::string databaseName; - std::string wholeDatabase; - std::vector tableList; - }; - - - DescribeSubscriptionInstanceStatusResult(); - explicit DescribeSubscriptionInstanceStatusResult(const std::string &payload); - ~DescribeSubscriptionInstanceStatusResult(); - std::string getStatus()const; - std::string getTaskId()const; - SubscriptionHost getSubscriptionHost()const; - std::string getEndTimestamp()const; - std::string getPayType()const; - std::string getErrMessage()const; - std::string getSubscriptionInstanceID()const; - std::string getSuccess()const; - std::string getErrCode()const; - SubscriptionDataType getSubscriptionDataType()const; - std::vector getSubscriptionObject()const; - std::string getConsumptionCheckpoint()const; - std::string getSubscriptionInstanceName()const; - std::string getSubscribeTopic()const; - std::string getConsumptionClient()const; - SourceEndpoint getSourceEndpoint()const; - std::string getErrorMessage()const; - std::string getBeginTimestamp()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - std::string taskId_; - SubscriptionHost subscriptionHost_; - std::string endTimestamp_; - std::string payType_; - std::string errMessage_; - std::string subscriptionInstanceID_; - std::string success_; - std::string errCode_; - SubscriptionDataType subscriptionDataType_; - std::vector subscriptionObject_; - std::string consumptionCheckpoint_; - std::string subscriptionInstanceName_; - std::string subscribeTopic_; - std::string consumptionClient_; - SourceEndpoint sourceEndpoint_; - std::string errorMessage_; - std::string beginTimestamp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h deleted file mode 100644 index d9a47bd5a..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesRequest.h +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstancesRequest : public RpcServiceRequest { -public: - struct Tag { - std::string value; - std::string key; - }; - DescribeSubscriptionInstancesRequest(); - ~DescribeSubscriptionInstancesRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - int getPageNum() const; - void setPageNum(int pageNum); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::vector getTag() const; - void setTag(const std::vector &tag); - std::string getInstFilterRegion() const; - void setInstFilterRegion(const std::string &instFilterRegion); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getSubscriptionInstanceName() const; - void setSubscriptionInstanceName(const std::string &subscriptionInstanceName); - -private: - std::string clientToken_; - int pageNum_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string instFilterRegion_; - std::string ownerId_; - std::string subscriptionInstanceName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h deleted file mode 100644 index 3a5f16a46..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionInstancesResult.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionInstancesResult : public ServiceResult - { - public: - struct SubscriptionInstance - { - struct SourceEndpoint - { - std::string instanceID; - std::string instanceType; - }; - struct SubscriptionDataType - { - bool dML; - bool dDL; - }; - struct SubscriptionHost - { - std::string publicHost; - std::string privateHost; - std::string vPCHost; - }; - struct SynchronousObject - { - std::string databaseName; - std::string wholeDatabase; - std::vector tableList; - }; - struct Tag - { - std::string value; - std::string key; - }; - std::string status; - SubscriptionHost subscriptionHost; - std::string instanceCreateTime; - std::string jobCreateTime; - std::string endTimestamp; - std::string payType; - std::string subscriptionInstanceID; - SubscriptionDataType subscriptionDataType; - std::vector subscriptionObject; - std::string consumptionCheckpoint; - std::string subscriptionInstanceName; - std::string subscribeTopic; - std::string consumptionClient; - SourceEndpoint sourceEndpoint; - std::string errorMessage; - std::string beginTimestamp; - std::vector tags; - }; - - - DescribeSubscriptionInstancesResult(); - explicit DescribeSubscriptionInstancesResult(const std::string &payload); - ~DescribeSubscriptionInstancesResult(); - long getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::string getErrMessage()const; - std::vector getSubscriptionInstances()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::string errMessage_; - std::vector subscriptionInstances_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONINSTANCESRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaRequest.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaRequest.h deleted file mode 100644 index 0c1a93a1d..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONMETAREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONMETAREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionMetaRequest : public RpcServiceRequest { -public: - DescribeSubscriptionMetaRequest(); - ~DescribeSubscriptionMetaRequest(); - std::string getTopics() const; - void setTopics(const std::string &topics); - std::string getSid() const; - void setSid(const std::string &sid); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSubMigrationJobIds() const; - void setSubMigrationJobIds(const std::string &subMigrationJobIds); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string topics_; - std::string sid_; - std::string regionId_; - std::string subMigrationJobIds_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONMETAREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaResult.h b/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaResult.h deleted file mode 100644 index b65ccd09d..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSubscriptionMetaResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESUBSCRIPTIONMETARESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONMETARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionMetaResult : public ServiceResult - { - public: - struct SubscriptionMetaListItem - { - long checkpoint; - std::string dBList; - std::string dProxyUrl; - std::string topic; - std::string sid; - }; - - - DescribeSubscriptionMetaResult(); - explicit DescribeSubscriptionMetaResult(const std::string &payload); - ~DescribeSubscriptionMetaResult(); - std::vector getSubscriptionMetaList()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::vector subscriptionMetaList_; - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESUBSCRIPTIONMETARESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h index 94dd02185..d14301c51 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobAlertRequest.h @@ -34,24 +34,15 @@ public: void setClientToken(const std::string &clientToken); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string clientToken_; std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h deleted file mode 100644 index c6e6b44c6..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobReplicatorCompareRequest : public RpcServiceRequest { -public: - DescribeSynchronizationJobReplicatorCompareRequest(); - ~DescribeSynchronizationJobReplicatorCompareRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobId() const; - void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string clientToken_; - std::string ownerId_; - std::string accessKeyId_; - std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPAREREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareResult.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareResult.h deleted file mode 100644 index 7b079db6b..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobReplicatorCompareResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobReplicatorCompareResult : public ServiceResult - { - public: - - - DescribeSynchronizationJobReplicatorCompareResult(); - explicit DescribeSynchronizationJobReplicatorCompareResult(const std::string &payload); - ~DescribeSynchronizationJobReplicatorCompareResult(); - bool getSynchronizationReplicatorCompareEnable()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - bool synchronizationReplicatorCompareEnable_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBREPLICATORCOMPARERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListRequest.h deleted file mode 100644 index 0300dc177..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobStatusListRequest : public RpcServiceRequest { -public: - DescribeSynchronizationJobStatusListRequest(); - ~DescribeSynchronizationJobStatusListRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getSynchronizationJobIdListJsonStr() const; - void setSynchronizationJobIdListJsonStr(const std::string &synchronizationJobIdListJsonStr); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string ownerId_; - std::string synchronizationJobIdListJsonStr_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListResult.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListResult.h deleted file mode 100644 index 6a6de17ab..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusListResult.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobStatusListResult : public ServiceResult - { - public: - struct SynchronizationJobStatusInfo - { - struct SynchronizationDirectionInfo - { - std::string status; - std::string checkpoint; - std::string synchronizationDirection; - }; - std::string synchronizationJobId; - std::vector synchronizationDirectionInfoList; - }; - - - DescribeSynchronizationJobStatusListResult(); - explicit DescribeSynchronizationJobStatusListResult(const std::string &payload); - ~DescribeSynchronizationJobStatusListResult(); - long getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getSynchronizationJobListStatusList()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::vector synchronizationJobListStatusList_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBESYNCHRONIZATIONJOBSTATUSLISTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusRequest.h index 7e4ec13b0..c7c7a5338 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusRequest.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusRequest.h @@ -34,24 +34,15 @@ public: void setClientToken(const std::string &clientToken); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string clientToken_; std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusResult.h index b4fd11440..d05f36cfc 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusResult.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobStatusResult.h @@ -32,21 +32,14 @@ namespace AlibabaCloud class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobStatusResult : public ServiceResult { public: - struct DataInitializationStatus + struct SourceEndpoint { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus - { - std::string status; - long delayMillis; - std::string checkpoint; - std::string percent; - std::string errorMessage; - std::string delay; + std::string userName; + std::string instanceId; + std::string iP; + std::string port; + std::string instanceType; + std::string engineName; }; struct DestinationEndpoint { @@ -57,11 +50,6 @@ namespace AlibabaCloud std::string instanceType; std::string engineName; }; - struct Performance - { - std::string rPS; - std::string fLOW; - }; struct PrecheckStatus { struct CheckItem @@ -75,15 +63,6 @@ namespace AlibabaCloud std::string percent; std::vector detail; }; - struct SourceEndpoint - { - std::string userName; - std::string instanceId; - std::string iP; - std::string port; - std::string instanceType; - std::string engineName; - }; struct StructureInitializationStatus { std::string status; @@ -91,13 +70,33 @@ namespace AlibabaCloud std::string percent; std::string errorMessage; }; + struct DataInitializationStatus + { + std::string status; + std::string progress; + std::string percent; + std::string errorMessage; + }; + struct DataSynchronizationStatus + { + std::string status; + std::string checkpoint; + std::string percent; + std::string errorMessage; + std::string delay; + }; + struct Performance + { + std::string rPS; + std::string fLOW; + }; struct SynchronizationObject { - struct TableExclude + struct TableInclude { std::string tableName; }; - struct TableInclude + struct TableExclude { std::string tableName; }; @@ -111,60 +110,50 @@ namespace AlibabaCloud DescribeSynchronizationJobStatusResult(); explicit DescribeSynchronizationJobStatusResult(const std::string &payload); ~DescribeSynchronizationJobStatusResult(); + std::string getStatus()const; DataInitializationStatus getDataInitializationStatus()const; std::vector getSynchronizationObjects()const; - std::string getTaskId()const; - std::string getDelay()const; - std::string getSuccess()const; - long getDelayMillis()const; - std::string getDataInitialization()const; - std::string getSynchronizationJobClass()const; - DataSynchronizationStatus getDataSynchronizationStatus()const; - std::string getStatus()const; std::string getSynchronizationJobName()const; std::string getPayType()const; - std::string getErrMessage()const; - std::string getErrCode()const; + std::string getDelay()const; PrecheckStatus getPrecheckStatus()const; std::string getSynchronizationJobId()const; std::string getCheckpoint()const; + std::string getDataInitialization()const; DestinationEndpoint getDestinationEndpoint()const; SourceEndpoint getSourceEndpoint()const; std::string getStructureInitialization()const; Performance getPerformance()const; std::string getErrorMessage()const; std::string getExpireTime()const; + std::string getSynchronizationJobClass()const; std::string getSynchronizationDirection()const; StructureInitializationStatus getStructureInitializationStatus()const; + DataSynchronizationStatus getDataSynchronizationStatus()const; protected: void parse(const std::string &payload); private: + std::string status_; DataInitializationStatus dataInitializationStatus_; std::vector synchronizationObjects_; - std::string taskId_; - std::string delay_; - std::string success_; - long delayMillis_; - std::string dataInitialization_; - std::string synchronizationJobClass_; - DataSynchronizationStatus dataSynchronizationStatus_; - std::string status_; std::string synchronizationJobName_; std::string payType_; - std::string errMessage_; - std::string errCode_; + std::string delay_; PrecheckStatus precheckStatus_; std::string synchronizationJobId_; std::string checkpoint_; + std::string dataInitialization_; DestinationEndpoint destinationEndpoint_; SourceEndpoint sourceEndpoint_; std::string structureInitialization_; Performance performance_; std::string errorMessage_; std::string expireTime_; + std::string synchronizationJobClass_; std::string synchronizationDirection_; StructureInitializationStatus structureInitializationStatus_; + DataSynchronizationStatus dataSynchronizationStatus_; }; } diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsRequest.h index 1cc3a31c8..bac1720f8 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsRequest.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsRequest.h @@ -28,44 +28,25 @@ namespace Dts { namespace Model { class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationJobsRequest : public RpcServiceRequest { public: - struct Tag { - std::string value; - std::string key; - }; DescribeSynchronizationJobsRequest(); ~DescribeSynchronizationJobsRequest(); std::string getClientToken() const; void setClientToken(const std::string &clientToken); int getPageNum() const; void setPageNum(int pageNum); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobName() const; - void setSynchronizationJobName(const std::string &synchronizationJobName); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::vector getTag() const; - void setTag(const std::vector &tag); - std::string getInstFilterRegion() const; - void setInstFilterRegion(const std::string &instFilterRegion); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); + std::string getSynchronizationJobName() const; + void setSynchronizationJobName(const std::string &synchronizationJobName); + int getPageSize() const; + void setPageSize(int pageSize); private: std::string clientToken_; int pageNum_; - std::string accessKeyId_; - std::string synchronizationJobName_; - std::string accountId_; - std::string regionId_; - int pageSize_; - std::vector tag_; - std::string instFilterRegion_; std::string ownerId_; + std::string synchronizationJobName_; + int pageSize_; }; } // namespace Model } // namespace Dts diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsResult.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsResult.h index 87f84cb32..6303939b0 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsResult.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationJobsResult.h @@ -34,19 +34,14 @@ namespace AlibabaCloud public: struct SynchronizationInstance { - struct DataInitializationStatus + struct SourceEndpoint { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus - { - std::string status; - std::string percent; - std::string errorMessage; - std::string delay; + std::string userName; + std::string instanceId; + std::string iP; + std::string port; + std::string instanceType; + std::string engineName; }; struct DestinationEndpoint { @@ -57,11 +52,6 @@ namespace AlibabaCloud std::string instanceType; std::string engineName; }; - struct Performance - { - std::string rPS; - std::string fLOW; - }; struct PrecheckStatus { struct CheckItem @@ -75,15 +65,6 @@ namespace AlibabaCloud std::string percent; std::vector detail; }; - struct SourceEndpoint - { - std::string userName; - std::string instanceId; - std::string iP; - std::string port; - std::string instanceType; - std::string engineName; - }; struct StructureInitializationStatus { std::string status; @@ -91,18 +72,32 @@ namespace AlibabaCloud std::string percent; std::string errorMessage; }; - struct Tag + struct DataInitializationStatus { - std::string value; - std::string key; + std::string status; + std::string progress; + std::string percent; + std::string errorMessage; + }; + struct DataSynchronizationStatus + { + std::string status; + std::string percent; + std::string errorMessage; + std::string delay; + }; + struct Performance + { + std::string rPS; + std::string fLOW; }; struct SynchronizationObject { - struct TableExclude + struct TableInclude { std::string tableName; }; - struct TableInclude + struct TableExclude { std::string tableName; }; @@ -115,9 +110,6 @@ namespace AlibabaCloud DataInitializationStatus dataInitializationStatus; std::vector synchronizationObjects; std::string synchronizationJobName; - std::string instanceCreateTime; - std::string createTime; - std::string jobCreateTime; std::string payType; std::string delay; PrecheckStatus precheckStatus; @@ -130,10 +122,9 @@ namespace AlibabaCloud std::string errorMessage; std::string expireTime; std::string synchronizationJobClass; - std::vector tags; std::string synchronizationDirection; - DataSynchronizationStatus dataSynchronizationStatus; StructureInitializationStatus structureInitializationStatus; + DataSynchronizationStatus dataSynchronizationStatus; }; diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusRequest.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusRequest.h index 07e386351..fac6dc618 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusRequest.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusRequest.h @@ -34,21 +34,12 @@ public: void setClientToken(const std::string &clientToken); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getTaskId() const; void setTaskId(const std::string &taskId); private: std::string clientToken_; std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; std::string taskId_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusResult.h b/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusResult.h index 4e7c998e6..ea5f6c35e 100644 --- a/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusResult.h +++ b/dts/include/alibabacloud/dts/model/DescribeSynchronizationObjectModifyStatusResult.h @@ -32,20 +32,6 @@ namespace AlibabaCloud class ALIBABACLOUD_DTS_EXPORT DescribeSynchronizationObjectModifyStatusResult : public ServiceResult { public: - struct DataInitializationStatus - { - std::string status; - std::string progress; - std::string percent; - std::string errorMessage; - }; - struct DataSynchronizationStatus - { - std::string status; - std::string percent; - std::string errorMessage; - std::string delay; - }; struct PrecheckStatus { struct CheckItem @@ -66,6 +52,20 @@ namespace AlibabaCloud std::string percent; std::string errorMessage; }; + struct DataInitializationStatus + { + std::string status; + std::string progress; + std::string percent; + std::string errorMessage; + }; + struct DataSynchronizationStatus + { + std::string status; + std::string percent; + std::string errorMessage; + std::string delay; + }; DescribeSynchronizationObjectModifyStatusResult(); @@ -75,11 +75,8 @@ namespace AlibabaCloud PrecheckStatus getPrecheckStatus()const; DataInitializationStatus getDataInitializationStatus()const; std::string getErrorMessage()const; - std::string getErrMessage()const; - std::string getSuccess()const; - DataSynchronizationStatus getDataSynchronizationStatus()const; StructureInitializationStatus getStructureInitializationStatus()const; - std::string getErrCode()const; + DataSynchronizationStatus getDataSynchronizationStatus()const; protected: void parse(const std::string &payload); @@ -88,11 +85,8 @@ namespace AlibabaCloud PrecheckStatus precheckStatus_; DataInitializationStatus dataInitializationStatus_; std::string errorMessage_; - std::string errMessage_; - std::string success_; - DataSynchronizationStatus dataSynchronizationStatus_; StructureInitializationStatus structureInitializationStatus_; - std::string errCode_; + DataSynchronizationStatus dataSynchronizationStatus_; }; } diff --git a/dts/include/alibabacloud/dts/model/DescribeTagKeysRequest.h b/dts/include/alibabacloud/dts/model/DescribeTagKeysRequest.h deleted file mode 100644 index e07611722..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeTagKeysRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBETAGKEYSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBETAGKEYSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeTagKeysRequest : public RpcServiceRequest { -public: - DescribeTagKeysRequest(); - ~DescribeTagKeysRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getCategory() const; - void setCategory(const std::string &category); - -private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string resourceId_; - std::string resourceType_; - std::string category_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBETAGKEYSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeTagKeysResult.h b/dts/include/alibabacloud/dts/model/DescribeTagKeysResult.h deleted file mode 100644 index 082bdd769..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeTagKeysResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBETAGKEYSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBETAGKEYSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeTagKeysResult : public ServiceResult - { - public: - - - DescribeTagKeysResult(); - explicit DescribeTagKeysResult(const std::string &payload); - ~DescribeTagKeysResult(); - int getTotalCount()const; - std::string getCategory()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getTagKeys()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - std::string category_; - int pageSize_; - int pageNumber_; - std::vector tagKeys_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBETAGKEYSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/DescribeTagValuesRequest.h b/dts/include/alibabacloud/dts/model/DescribeTagValuesRequest.h deleted file mode 100644 index 864dadb00..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeTagValuesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBETAGVALUESREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBETAGVALUESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT DescribeTagValuesRequest : public RpcServiceRequest { -public: - DescribeTagValuesRequest(); - ~DescribeTagValuesRequest(); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getKey() const; - void setKey(const std::string &key); - std::string getResourceId() const; - void setResourceId(const std::string &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::string getCategory() const; - void setCategory(const std::string &category); - -private: - int pageNumber_; - std::string regionId_; - int pageSize_; - std::string key_; - std::string resourceId_; - std::string resourceType_; - std::string category_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBETAGVALUESREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/DescribeTagValuesResult.h b/dts/include/alibabacloud/dts/model/DescribeTagValuesResult.h deleted file mode 100644 index 12e844cc0..000000000 --- a/dts/include/alibabacloud/dts/model/DescribeTagValuesResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_DESCRIBETAGVALUESRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_DESCRIBETAGVALUESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT DescribeTagValuesResult : public ServiceResult - { - public: - - - DescribeTagValuesResult(); - explicit DescribeTagValuesResult(const std::string &payload); - ~DescribeTagValuesResult(); - int getTotalCount()const; - std::string getCategory()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getTagValues()const; - - protected: - void parse(const std::string &payload); - private: - int totalCount_; - std::string category_; - int pageSize_; - int pageNumber_; - std::vector tagValues_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBETAGVALUESRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceRequest.h b/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceRequest.h deleted file mode 100644 index 932a5b871..000000000 --- a/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_INITDTSRDSINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_INITDTSRDSINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT InitDtsRdsInstanceRequest : public RpcServiceRequest { -public: - InitDtsRdsInstanceRequest(); - ~InitDtsRdsInstanceRequest(); - std::string getEndpointInstanceId() const; - void setEndpointInstanceId(const std::string &endpointInstanceId); - std::string getEndpointRegion() const; - void setEndpointRegion(const std::string &endpointRegion); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getEndpointCenId() const; - void setEndpointCenId(const std::string &endpointCenId); - std::string getEndpointInstanceType() const; - void setEndpointInstanceType(const std::string &endpointInstanceType); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string endpointInstanceId_; - std::string endpointRegion_; - std::string accessKeyId_; - std::string regionId_; - std::string endpointCenId_; - std::string endpointInstanceType_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_INITDTSRDSINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceResult.h b/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceResult.h deleted file mode 100644 index f1668ba9b..000000000 --- a/dts/include/alibabacloud/dts/model/InitDtsRdsInstanceResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_INITDTSRDSINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_INITDTSRDSINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT InitDtsRdsInstanceResult : public ServiceResult - { - public: - - - InitDtsRdsInstanceResult(); - explicit InitDtsRdsInstanceResult(const std::string &payload); - ~InitDtsRdsInstanceResult(); - std::string getHttpStatusCode()const; - std::string getAdminAccount()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getAdminPassword()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string adminAccount_; - std::string errMessage_; - std::string success_; - std::string adminPassword_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_INITDTSRDSINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ListDedicatedClusterRequest.h b/dts/include/alibabacloud/dts/model/ListDedicatedClusterRequest.h deleted file mode 100644 index 467d98910..000000000 --- a/dts/include/alibabacloud/dts/model/ListDedicatedClusterRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_LISTDEDICATEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_LISTDEDICATEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ListDedicatedClusterRequest : public RpcServiceRequest { -public: - ListDedicatedClusterRequest(); - ~ListDedicatedClusterRequest(); - std::string getOrderDirection() const; - void setOrderDirection(const std::string &orderDirection); - std::string getType() const; - void setType(const std::string &type); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getOrderColumn() const; - void setOrderColumn(const std::string &orderColumn); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getState() const; - void setState(const std::string &state); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getParams() const; - void setParams(const std::string ¶ms); - -private: - std::string orderDirection_; - std::string type_; - int pageNumber_; - std::string orderColumn_; - std::string regionId_; - int pageSize_; - std::string state_; - std::string ownerId_; - std::string params_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_LISTDEDICATEDCLUSTERREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ListDedicatedClusterResult.h b/dts/include/alibabacloud/dts/model/ListDedicatedClusterResult.h deleted file mode 100644 index 7b1159edb..000000000 --- a/dts/include/alibabacloud/dts/model/ListDedicatedClusterResult.h +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_LISTDEDICATEDCLUSTERRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_LISTDEDICATEDCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ListDedicatedClusterResult : public ServiceResult - { - public: - struct DedicatedClusterStatus - { - long usedDu; - long duUtilization; - std::string dedicatedClusterId; - long nodeCount; - long usedDiskGBSize; - long oversoldDu; - long totalDiskGBSize; - long diskUtilization; - long usedMemGBSize; - long gmtCreated; - std::string dtsInstanceID; - std::string dedicatedClusterName; - long totalMemGBSize; - long du; - long memUtilization; - std::string state; - long usedCpuCore; - long totalCpuCore; - std::string regionId; - long cpuUtilization; - }; - - - ListDedicatedClusterResult(); - explicit ListDedicatedClusterResult(const std::string &payload); - ~ListDedicatedClusterResult(); - int getTotalRecordCount()const; - int getPageRecordCount()const; - int getPageNumber()const; - std::vector getDedicatedClusterStatusList()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int totalRecordCount_; - int pageRecordCount_; - int pageNumber_; - std::vector dedicatedClusterStatusList_; - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_LISTDEDICATEDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ListTagResourcesRequest.h b/dts/include/alibabacloud/dts/model/ListTagResourcesRequest.h deleted file mode 100644 index 4cea68ee1..000000000 --- a/dts/include/alibabacloud/dts/model/ListTagResourcesRequest.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ListTagResourcesRequest : public RpcServiceRequest { -public: - struct Tag { - std::string value; - std::string key; - }; - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getNextToken() const; - void setNextToken(const std::string &nextToken); - std::vector getTag() const; - void setTag(const std::vector &tag); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - -private: - std::string regionId_; - std::string nextToken_; - std::vector tag_; - std::vector resourceId_; - std::string resourceType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ListTagResourcesResult.h b/dts/include/alibabacloud/dts/model/ListTagResourcesResult.h deleted file mode 100644 index af8203cf5..000000000 --- a/dts/include/alibabacloud/dts/model/ListTagResourcesResult.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_LISTTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_LISTTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ListTagResourcesResult : public ServiceResult - { - public: - struct TagResource - { - std::string resourceId; - std::string tagKey; - std::string resourceType; - std::string tagValue; - }; - - - ListTagResourcesResult(); - explicit ListTagResourcesResult(const std::string &payload); - ~ListTagResourcesResult(); - std::string getNextToken()const; - std::vector getTagResources()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string nextToken_; - std::vector tagResources_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumerChannelRequest.h b/dts/include/alibabacloud/dts/model/ModifyConsumerChannelRequest.h deleted file mode 100644 index 1768b6c4c..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumerChannelRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMERCHANNELREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERCHANNELREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyConsumerChannelRequest : public RpcServiceRequest { -public: - ModifyConsumerChannelRequest(); - ~ModifyConsumerChannelRequest(); - std::string getConsumerGroupId() const; - void setConsumerGroupId(const std::string &consumerGroupId); - std::string getConsumerGroupPassword() const; - void setConsumerGroupPassword(const std::string &consumerGroupPassword); - std::string getConsumerGroupUserName() const; - void setConsumerGroupUserName(const std::string &consumerGroupUserName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getConsumerGroupName() const; - void setConsumerGroupName(const std::string &consumerGroupName); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string consumerGroupId_; - std::string consumerGroupPassword_; - std::string consumerGroupUserName_; - std::string regionId_; - std::string dtsJobId_; - std::string consumerGroupName_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERCHANNELREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumerChannelResult.h b/dts/include/alibabacloud/dts/model/ModifyConsumerChannelResult.h deleted file mode 100644 index cc5e08c1a..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumerChannelResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMERCHANNELRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERCHANNELRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyConsumerChannelResult : public ServiceResult - { - public: - - - ModifyConsumerChannelResult(); - explicit ModifyConsumerChannelResult(const std::string &payload); - ~ModifyConsumerChannelResult(); - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERCHANNELRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordRequest.h b/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordRequest.h deleted file mode 100644 index f94a35ec9..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyConsumerGroupPasswordRequest : public RpcServiceRequest { -public: - ModifyConsumerGroupPasswordRequest(); - ~ModifyConsumerGroupPasswordRequest(); - std::string getConsumerGroupID() const; - void setConsumerGroupID(const std::string &consumerGroupID); - std::string getConsumerGroupPassword() const; - void setConsumerGroupPassword(const std::string &consumerGroupPassword); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getConsumerGroupUserName() const; - void setConsumerGroupUserName(const std::string &consumerGroupUserName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getConsumerGroupName() const; - void setConsumerGroupName(const std::string &consumerGroupName); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getConsumerGroupNewPassword() const; - void setConsumerGroupNewPassword(const std::string &consumerGroupNewPassword); - -private: - std::string consumerGroupID_; - std::string consumerGroupPassword_; - std::string accessKeyId_; - std::string accountId_; - std::string consumerGroupUserName_; - std::string regionId_; - std::string consumerGroupName_; - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string consumerGroupNewPassword_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h b/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h deleted file mode 100644 index 056954d23..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyConsumerGroupPasswordResult : public ServiceResult - { - public: - - - ModifyConsumerGroupPasswordResult(); - explicit ModifyConsumerGroupPasswordResult(const std::string &payload); - ~ModifyConsumerGroupPasswordResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMERGROUPPASSWORDRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h b/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h deleted file mode 100644 index 58a62615f..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyConsumptionTimestampRequest : public RpcServiceRequest { -public: - ModifyConsumptionTimestampRequest(); - ~ModifyConsumptionTimestampRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getConsumptionTimestamp() const; - void setConsumptionTimestamp(const std::string &consumptionTimestamp); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string subscriptionInstanceId_; - std::string consumptionTimestamp_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h b/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h deleted file mode 100644 index d27a7abed..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyConsumptionTimestampResult : public ServiceResult - { - public: - - - ModifyConsumptionTimestampResult(); - explicit ModifyConsumptionTimestampResult(const std::string &payload); - ~ModifyConsumptionTimestampResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYCONSUMPTIONTIMESTAMPRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterRequest.h b/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterRequest.h deleted file mode 100644 index a410823b0..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDEDICATEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDEDICATEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDedicatedClusterRequest : public RpcServiceRequest { -public: - ModifyDedicatedClusterRequest(); - ~ModifyDedicatedClusterRequest(); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getDedicatedClusterName() const; - void setDedicatedClusterName(const std::string &dedicatedClusterName); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getOversoldRatio() const; - void setOversoldRatio(int oversoldRatio); - -private: - std::string dedicatedClusterId_; - std::string ownerId_; - std::string dedicatedClusterName_; - std::string instanceId_; - std::string regionId_; - int oversoldRatio_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDEDICATEDCLUSTERREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterResult.h b/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterResult.h deleted file mode 100644 index 6c7974335..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDedicatedClusterResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDEDICATEDCLUSTERRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDEDICATEDCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDedicatedClusterResult : public ServiceResult - { - public: - - - ModifyDedicatedClusterResult(); - explicit ModifyDedicatedClusterResult(const std::string &payload); - ~ModifyDedicatedClusterResult(); - std::string getDedicatedClusterId()const; - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dedicatedClusterId_; - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDEDICATEDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterRequest.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterRequest.h deleted file mode 100644 index e4de599fe..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobDedicatedClusterRequest : public RpcServiceRequest { -public: - ModifyDtsJobDedicatedClusterRequest(); - ~ModifyDtsJobDedicatedClusterRequest(); - std::string getDtsJobIds() const; - void setDtsJobIds(const std::string &dtsJobIds); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dtsJobIds_; - std::string dedicatedClusterId_; - std::string ownerId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterResult.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterResult.h deleted file mode 100644 index f5a0dbac3..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobDedicatedClusterResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobDedicatedClusterResult : public ServiceResult - { - public: - - - ModifyDtsJobDedicatedClusterResult(); - explicit ModifyDtsJobDedicatedClusterResult(const std::string &payload); - ~ModifyDtsJobDedicatedClusterResult(); - long getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDEDICATEDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitRequest.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitRequest.h deleted file mode 100644 index 9b4fb72ff..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBDULIMITREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDULIMITREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobDuLimitRequest : public RpcServiceRequest { -public: - ModifyDtsJobDuLimitRequest(); - ~ModifyDtsJobDuLimitRequest(); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - long getDuLimit() const; - void setDuLimit(long duLimit); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - -private: - std::string ownerId_; - long duLimit_; - std::string regionId_; - std::string dtsJobId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDULIMITREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitResult.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitResult.h deleted file mode 100644 index 7ab7ff004..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobDuLimitResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBDULIMITRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDULIMITRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobDuLimitResult : public ServiceResult - { - public: - - - ModifyDtsJobDuLimitResult(); - explicit ModifyDtsJobDuLimitResult(const std::string &payload); - ~ModifyDtsJobDuLimitResult(); - long getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - long httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBDULIMITRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h deleted file mode 100644 index a2df44941..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobNameRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobNameRequest : public RpcServiceRequest { -public: - ModifyDtsJobNameRequest(); - ~ModifyDtsJobNameRequest(); - std::string getDtsJobName() const; - void setDtsJobName(const std::string &dtsJobName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - -private: - std::string dtsJobName_; - std::string regionId_; - std::string dtsJobId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobNameResult.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobNameResult.h deleted file mode 100644 index eddcfc48d..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobNameResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobNameResult : public ServiceResult - { - public: - - - ModifyDtsJobNameResult(); - explicit ModifyDtsJobNameResult(const std::string &payload); - ~ModifyDtsJobNameResult(); - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h deleted file mode 100644 index fe77e6fc9..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobPasswordRequest : public RpcServiceRequest { -public: - ModifyDtsJobPasswordRequest(); - ~ModifyDtsJobPasswordRequest(); - std::string getPassword() const; - void setPassword(const std::string &password); - std::string getEndpoint() const; - void setEndpoint(const std::string &endpoint); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getUserName() const; - void setUserName(const std::string &userName); - -private: - std::string password_; - std::string endpoint_; - std::string regionId_; - std::string dtsJobId_; - std::string userName_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h deleted file mode 100644 index 90356bd59..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobPasswordResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobPasswordResult : public ServiceResult - { - public: - - - ModifyDtsJobPasswordResult(); - explicit ModifyDtsJobPasswordResult(const std::string &payload); - ~ModifyDtsJobPasswordResult(); - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobRequest.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobRequest.h deleted file mode 100644 index 0b07c681f..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobRequest.h +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobRequest : public RpcServiceRequest { -public: - ModifyDtsJobRequest(); - ~ModifyDtsJobRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getEtlOperatorColumnReference() const; - void setEtlOperatorColumnReference(const std::string &etlOperatorColumnReference); - std::string getDbList() const; - void setDbList(const std::string &dbList); - std::string getFileOssUrl() const; - void setFileOssUrl(const std::string &fileOssUrl); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getModifyTypeEnum() const; - void setModifyTypeEnum(const std::string &modifyTypeEnum); - std::string getReserved() const; - void setReserved(const std::string &reserved); - std::string getFilterTableName() const; - void setFilterTableName(const std::string &filterTableName); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string clientToken_; - std::string accessKeyId_; - std::string regionId_; - std::string etlOperatorColumnReference_; - std::string dbList_; - std::string fileOssUrl_; - std::string ownerId_; - std::string modifyTypeEnum_; - std::string reserved_; - std::string filterTableName_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifyDtsJobResult.h b/dts/include/alibabacloud/dts/model/ModifyDtsJobResult.h deleted file mode 100644 index ef4912ff4..000000000 --- a/dts/include/alibabacloud/dts/model/ModifyDtsJobResult.h +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobResult : public ServiceResult - { - public: - - - ModifyDtsJobResult(); - explicit ModifyDtsJobResult(const std::string &payload); - ~ModifyDtsJobResult(); - std::string getStatus()const; - std::string getDtsJobId()const; - bool getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - std::string dtsJobId_; - bool errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h b/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h deleted file mode 100644 index ce9578a4d..000000000 --- a/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifySubscriptionObjectRequest : public RpcServiceRequest { -public: - ModifySubscriptionObjectRequest(); - ~ModifySubscriptionObjectRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSubscriptionObject() const; - void setSubscriptionObject(const std::string &subscriptionObject); - -private: - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; - std::string subscriptionObject_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h b/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h deleted file mode 100644 index dbd2e0524..000000000 --- a/dts/include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifySubscriptionObjectResult : public ServiceResult - { - public: - - - ModifySubscriptionObjectResult(); - explicit ModifySubscriptionObjectResult(const std::string &payload); - ~ModifySubscriptionObjectResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONOBJECTRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifySubscriptionRequest.h b/dts/include/alibabacloud/dts/model/ModifySubscriptionRequest.h deleted file mode 100644 index de4d1e5cd..000000000 --- a/dts/include/alibabacloud/dts/model/ModifySubscriptionRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYSUBSCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ModifySubscriptionRequest : public RpcServiceRequest { -public: - ModifySubscriptionRequest(); - ~ModifySubscriptionRequest(); - std::string getDbList() const; - void setDbList(const std::string &dbList); - bool getSubscriptionDataTypeDDL() const; - void setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL); - bool getSubscriptionDataTypeDML() const; - void setSubscriptionDataTypeDML(bool subscriptionDataTypeDML); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string dbList_; - bool subscriptionDataTypeDDL_; - bool subscriptionDataTypeDML_; - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ModifySubscriptionResult.h b/dts/include/alibabacloud/dts/model/ModifySubscriptionResult.h deleted file mode 100644 index 87f62bb68..000000000 --- a/dts/include/alibabacloud/dts/model/ModifySubscriptionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_MODIFYSUBSCRIPTIONRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ModifySubscriptionResult : public ServiceResult - { - public: - - - ModifySubscriptionResult(); - explicit ModifySubscriptionResult(const std::string &payload); - ~ModifySubscriptionResult(); - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYSUBSCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h b/dts/include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h index 0344b67a3..6650e28aa 100644 --- a/dts/include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h +++ b/dts/include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h @@ -34,24 +34,15 @@ public: void setSynchronizationObjects(const std::string &synchronizationObjects); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string synchronizationObjects_; std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/RenewInstanceRequest.h b/dts/include/alibabacloud/dts/model/RenewInstanceRequest.h deleted file mode 100644 index 593f08ed1..000000000 --- a/dts/include/alibabacloud/dts/model/RenewInstanceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT RenewInstanceRequest : public RpcServiceRequest { -public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - std::string getPeriod() const; - void setPeriod(const std::string &period); - std::string getBuyCount() const; - void setBuyCount(const std::string &buyCount); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getChargeType() const; - void setChargeType(const std::string &chargeType); - -private: - std::string period_; - std::string buyCount_; - std::string regionId_; - std::string dtsJobId_; - std::string chargeType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/RenewInstanceResult.h b/dts/include/alibabacloud/dts/model/RenewInstanceResult.h deleted file mode 100644 index 4f393b8f7..000000000 --- a/dts/include/alibabacloud/dts/model/RenewInstanceResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_RENEWINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_RENEWINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT RenewInstanceResult : public ServiceResult - { - public: - - - RenewInstanceResult(); - explicit RenewInstanceResult(const std::string &payload); - ~RenewInstanceResult(); - std::string getDtsJobId()const; - std::string getEndTime()const; - std::string getInstanceId()const; - std::string getChargeType()const; - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - std::string endTime_; - std::string instanceId_; - std::string chargeType_; - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_RENEWINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ResetDtsJobRequest.h b/dts/include/alibabacloud/dts/model/ResetDtsJobRequest.h deleted file mode 100644 index e33d8682e..000000000 --- a/dts/include/alibabacloud/dts/model/ResetDtsJobRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_RESETDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ResetDtsJobRequest : public RpcServiceRequest { -public: - ResetDtsJobRequest(); - ~ResetDtsJobRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ResetDtsJobResult.h b/dts/include/alibabacloud/dts/model/ResetDtsJobResult.h deleted file mode 100644 index f771f4452..000000000 --- a/dts/include/alibabacloud/dts/model/ResetDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_RESETDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ResetDtsJobResult : public ServiceResult - { - public: - - - ResetDtsJobResult(); - explicit ResetDtsJobResult(const std::string &payload); - ~ResetDtsJobResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h index e55dfdb61..d2d268d51 100644 --- a/dts/include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h @@ -32,23 +32,14 @@ public: ~ResetSynchronizationJobRequest(); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/ShieldPrecheckRequest.h b/dts/include/alibabacloud/dts/model/ShieldPrecheckRequest.h deleted file mode 100644 index 1d6e32ff2..000000000 --- a/dts/include/alibabacloud/dts/model/ShieldPrecheckRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SHIELDPRECHECKREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SHIELDPRECHECKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT ShieldPrecheckRequest : public RpcServiceRequest { -public: - ShieldPrecheckRequest(); - ~ShieldPrecheckRequest(); - std::string getPrecheckItems() const; - void setPrecheckItems(const std::string &precheckItems); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - -private: - std::string precheckItems_; - std::string regionId_; - std::string dtsInstanceId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SHIELDPRECHECKREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/ShieldPrecheckResult.h b/dts/include/alibabacloud/dts/model/ShieldPrecheckResult.h deleted file mode 100644 index eb1a2cef7..000000000 --- a/dts/include/alibabacloud/dts/model/ShieldPrecheckResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SHIELDPRECHECKRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SHIELDPRECHECKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT ShieldPrecheckResult : public ServiceResult - { - public: - - - ShieldPrecheckResult(); - explicit ShieldPrecheckResult(const std::string &payload); - ~ShieldPrecheckResult(); - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SHIELDPRECHECKRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SkipPreCheckRequest.h b/dts/include/alibabacloud/dts/model/SkipPreCheckRequest.h deleted file mode 100644 index 46bf52599..000000000 --- a/dts/include/alibabacloud/dts/model/SkipPreCheckRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SKIPPRECHECKREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SkipPreCheckRequest : public RpcServiceRequest { -public: - SkipPreCheckRequest(); - ~SkipPreCheckRequest(); - bool getSkip() const; - void setSkip(bool skip); - std::string getJobId() const; - void setJobId(const std::string &jobId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getSkipPreCheckNames() const; - void setSkipPreCheckNames(const std::string &skipPreCheckNames); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getSkipPreCheckItems() const; - void setSkipPreCheckItems(const std::string &skipPreCheckItems); - -private: - bool skip_; - std::string jobId_; - std::string regionId_; - std::string skipPreCheckNames_; - std::string dtsJobId_; - std::string skipPreCheckItems_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SkipPreCheckResult.h b/dts/include/alibabacloud/dts/model/SkipPreCheckResult.h deleted file mode 100644 index cc26cb7d3..000000000 --- a/dts/include/alibabacloud/dts/model/SkipPreCheckResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SKIPPRECHECKRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SkipPreCheckResult : public ServiceResult - { - public: - - - SkipPreCheckResult(); - explicit SkipPreCheckResult(const std::string &payload); - ~SkipPreCheckResult(); - std::string getSkipItems()const; - std::string getScheduleJobId()const; - int getHttpStatusCode()const; - std::string getSkipNames()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - std::string getMigrationJobId()const; - - protected: - void parse(const std::string &payload); - private: - std::string skipItems_; - std::string scheduleJobId_; - int httpStatusCode_; - std::string skipNames_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - std::string migrationJobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StartDtsJobRequest.h b/dts/include/alibabacloud/dts/model/StartDtsJobRequest.h deleted file mode 100644 index 2aa47c23a..000000000 --- a/dts/include/alibabacloud/dts/model/StartDtsJobRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StartDtsJobRequest : public RpcServiceRequest { -public: - StartDtsJobRequest(); - ~StartDtsJobRequest(); - std::string getResetCheckpoint() const; - void setResetCheckpoint(const std::string &resetCheckpoint); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getResumeHoldJob() const; - void setResumeHoldJob(const std::string &resumeHoldJob); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string resetCheckpoint_; - std::string regionId_; - std::string resumeHoldJob_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STARTDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StartDtsJobResult.h b/dts/include/alibabacloud/dts/model/StartDtsJobResult.h deleted file mode 100644 index a957bddcd..000000000 --- a/dts/include/alibabacloud/dts/model/StartDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StartDtsJobResult : public ServiceResult - { - public: - - - StartDtsJobResult(); - explicit StartDtsJobResult(const std::string &payload); - ~StartDtsJobResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STARTDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StartDtsJobsRequest.h b/dts/include/alibabacloud/dts/model/StartDtsJobsRequest.h deleted file mode 100644 index 7032277a9..000000000 --- a/dts/include/alibabacloud/dts/model/StartDtsJobsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTDTSJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StartDtsJobsRequest : public RpcServiceRequest { -public: - StartDtsJobsRequest(); - ~StartDtsJobsRequest(); - std::string getDtsJobIds() const; - void setDtsJobIds(const std::string &dtsJobIds); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dtsJobIds_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STARTDTSJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StartDtsJobsResult.h b/dts/include/alibabacloud/dts/model/StartDtsJobsResult.h deleted file mode 100644 index d596bee45..000000000 --- a/dts/include/alibabacloud/dts/model/StartDtsJobsResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTDTSJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTDTSJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StartDtsJobsResult : public ServiceResult - { - public: - - - StartDtsJobsResult(); - explicit StartDtsJobsResult(const std::string &payload); - ~StartDtsJobsResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STARTDTSJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StartMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/StartMigrationJobRequest.h deleted file mode 100644 index 6e6e339c3..000000000 --- a/dts/include/alibabacloud/dts/model/StartMigrationJobRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StartMigrationJobRequest : public RpcServiceRequest { -public: - StartMigrationJobRequest(); - ~StartMigrationJobRequest(); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STARTMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StartMigrationJobResult.h b/dts/include/alibabacloud/dts/model/StartMigrationJobResult.h deleted file mode 100644 index b5c72b91d..000000000 --- a/dts/include/alibabacloud/dts/model/StartMigrationJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StartMigrationJobResult : public ServiceResult - { - public: - - - StartMigrationJobResult(); - explicit StartMigrationJobResult(const std::string &payload); - ~StartMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STARTMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h b/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h deleted file mode 100644 index 5c635451c..000000000 --- a/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTSUBSCRIPTIONINSTANCEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTSUBSCRIPTIONINSTANCEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StartSubscriptionInstanceRequest : public RpcServiceRequest { -public: - StartSubscriptionInstanceRequest(); - ~StartSubscriptionInstanceRequest(); - std::string getSubscriptionInstanceId() const; - void setSubscriptionInstanceId(const std::string &subscriptionInstanceId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string subscriptionInstanceId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STARTSUBSCRIPTIONINSTANCEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h b/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h deleted file mode 100644 index b31172a60..000000000 --- a/dts/include/alibabacloud/dts/model/StartSubscriptionInstanceResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STARTSUBSCRIPTIONINSTANCERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STARTSUBSCRIPTIONINSTANCERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StartSubscriptionInstanceResult : public ServiceResult - { - public: - - - StartSubscriptionInstanceResult(); - explicit StartSubscriptionInstanceResult(const std::string &payload); - ~StartSubscriptionInstanceResult(); - std::string getTaskId()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string taskId_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STARTSUBSCRIPTIONINSTANCERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StartSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/StartSynchronizationJobRequest.h index d2eaa9a7d..bb032f3b8 100644 --- a/dts/include/alibabacloud/dts/model/StartSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/StartSynchronizationJobRequest.h @@ -32,23 +32,14 @@ public: ~StartSynchronizationJobRequest(); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/StopDedicatedClusterRequest.h b/dts/include/alibabacloud/dts/model/StopDedicatedClusterRequest.h deleted file mode 100644 index f3b5be2f5..000000000 --- a/dts/include/alibabacloud/dts/model/StopDedicatedClusterRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDEDICATEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDEDICATEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StopDedicatedClusterRequest : public RpcServiceRequest { -public: - StopDedicatedClusterRequest(); - ~StopDedicatedClusterRequest(); - std::string getDedicatedClusterId() const; - void setDedicatedClusterId(const std::string &dedicatedClusterId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getDedicatedClusterName() const; - void setDedicatedClusterName(const std::string &dedicatedClusterName); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dedicatedClusterId_; - std::string ownerId_; - std::string dedicatedClusterName_; - std::string instanceId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDEDICATEDCLUSTERREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StopDedicatedClusterResult.h b/dts/include/alibabacloud/dts/model/StopDedicatedClusterResult.h deleted file mode 100644 index f4c85cc68..000000000 --- a/dts/include/alibabacloud/dts/model/StopDedicatedClusterResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDEDICATEDCLUSTERRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDEDICATEDCLUSTERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StopDedicatedClusterResult : public ServiceResult - { - public: - - - StopDedicatedClusterResult(); - explicit StopDedicatedClusterResult(const std::string &payload); - ~StopDedicatedClusterResult(); - std::string getHttpStatusCode()const; - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string httpStatusCode_; - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDEDICATEDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StopDtsJobRequest.h b/dts/include/alibabacloud/dts/model/StopDtsJobRequest.h deleted file mode 100644 index fea4fc6cb..000000000 --- a/dts/include/alibabacloud/dts/model/StopDtsJobRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StopDtsJobRequest : public RpcServiceRequest { -public: - StopDtsJobRequest(); - ~StopDtsJobRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StopDtsJobResult.h b/dts/include/alibabacloud/dts/model/StopDtsJobResult.h deleted file mode 100644 index a48d453cf..000000000 --- a/dts/include/alibabacloud/dts/model/StopDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StopDtsJobResult : public ServiceResult - { - public: - - - StopDtsJobResult(); - explicit StopDtsJobResult(const std::string &payload); - ~StopDtsJobResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StopDtsJobsRequest.h b/dts/include/alibabacloud/dts/model/StopDtsJobsRequest.h deleted file mode 100644 index f2692f3db..000000000 --- a/dts/include/alibabacloud/dts/model/StopDtsJobsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDTSJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StopDtsJobsRequest : public RpcServiceRequest { -public: - StopDtsJobsRequest(); - ~StopDtsJobsRequest(); - std::string getDtsJobIds() const; - void setDtsJobIds(const std::string &dtsJobIds); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dtsJobIds_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StopDtsJobsResult.h b/dts/include/alibabacloud/dts/model/StopDtsJobsResult.h deleted file mode 100644 index ab65496b0..000000000 --- a/dts/include/alibabacloud/dts/model/StopDtsJobsResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPDTSJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StopDtsJobsResult : public ServiceResult - { - public: - - - StopDtsJobsResult(); - explicit StopDtsJobsResult(const std::string &payload); - ~StopDtsJobsResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/StopMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/StopMigrationJobRequest.h deleted file mode 100644 index 6f907f62c..000000000 --- a/dts/include/alibabacloud/dts/model/StopMigrationJobRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT StopMigrationJobRequest : public RpcServiceRequest { -public: - StopMigrationJobRequest(); - ~StopMigrationJobRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_STOPMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/StopMigrationJobResult.h b/dts/include/alibabacloud/dts/model/StopMigrationJobResult.h deleted file mode 100644 index 0ded6def9..000000000 --- a/dts/include/alibabacloud/dts/model/StopMigrationJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_STOPMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_STOPMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT StopMigrationJobResult : public ServiceResult - { - public: - - - StopMigrationJobResult(); - explicit StopMigrationJobResult(const std::string &payload); - ~StopMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_STOPMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SummaryJobDetailRequest.h b/dts/include/alibabacloud/dts/model/SummaryJobDetailRequest.h deleted file mode 100644 index 3477b55c0..000000000 --- a/dts/include/alibabacloud/dts/model/SummaryJobDetailRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUMMARYJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SUMMARYJOBDETAILREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SummaryJobDetailRequest : public RpcServiceRequest { -public: - SummaryJobDetailRequest(); - ~SummaryJobDetailRequest(); - std::string getStructType() const; - void setStructType(const std::string &structType); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getJobCode() const; - void setJobCode(const std::string &jobCode); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string structType_; - std::string regionId_; - std::string dtsJobId_; - std::string jobCode_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SUMMARYJOBDETAILREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SummaryJobDetailResult.h b/dts/include/alibabacloud/dts/model/SummaryJobDetailResult.h deleted file mode 100644 index c3075beea..000000000 --- a/dts/include/alibabacloud/dts/model/SummaryJobDetailResult.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUMMARYJOBDETAILRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SUMMARYJOBDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SummaryJobDetailResult : public ServiceResult - { - public: - struct ProgressSummaryDetail - { - long totalCount; - int state; - std::string key; - }; - - - SummaryJobDetailResult(); - explicit SummaryJobDetailResult(const std::string &payload); - ~SummaryJobDetailResult(); - std::vector getProgressSummaryDetails()const; - int getHttpStatusCode()const; - std::string getCode()const; - bool getSuccess()const; - std::string getJobId()const; - - protected: - void parse(const std::string &payload); - private: - std::vector progressSummaryDetails_; - int httpStatusCode_; - std::string code_; - bool success_; - std::string jobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SUMMARYJOBDETAILRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SuspendDtsJobRequest.h b/dts/include/alibabacloud/dts/model/SuspendDtsJobRequest.h deleted file mode 100644 index e4d9f304a..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendDtsJobRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobRequest : public RpcServiceRequest { -public: - SuspendDtsJobRequest(); - ~SuspendDtsJobRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string regionId_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SuspendDtsJobResult.h b/dts/include/alibabacloud/dts/model/SuspendDtsJobResult.h deleted file mode 100644 index 39d63ebfa..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendDtsJobResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDDTSJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobResult : public ServiceResult - { - public: - - - SuspendDtsJobResult(); - explicit SuspendDtsJobResult(const std::string &payload); - ~SuspendDtsJobResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SuspendDtsJobsRequest.h b/dts/include/alibabacloud/dts/model/SuspendDtsJobsRequest.h deleted file mode 100644 index fd66514d8..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendDtsJobsRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDDTSJOBSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobsRequest : public RpcServiceRequest { -public: - SuspendDtsJobsRequest(); - ~SuspendDtsJobsRequest(); - std::string getDtsJobIds() const; - void setDtsJobIds(const std::string &dtsJobIds); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string dtsJobIds_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SuspendDtsJobsResult.h b/dts/include/alibabacloud/dts/model/SuspendDtsJobsResult.h deleted file mode 100644 index 51d4de9e8..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendDtsJobsResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDDTSJOBSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobsResult : public ServiceResult - { - public: - - - SuspendDtsJobsResult(); - explicit SuspendDtsJobsResult(const std::string &payload); - ~SuspendDtsJobsResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SuspendMigrationJobRequest.h b/dts/include/alibabacloud/dts/model/SuspendMigrationJobRequest.h deleted file mode 100644 index 721abf01e..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendMigrationJobRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDMIGRATIONJOBREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDMIGRATIONJOBREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SuspendMigrationJobRequest : public RpcServiceRequest { -public: - SuspendMigrationJobRequest(); - ~SuspendMigrationJobRequest(); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getMigrationJobId() const; - void setMigrationJobId(const std::string &migrationJobId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string clientToken_; - std::string migrationJobId_; - std::string ownerId_; - std::string accessKeyId_; - std::string accountId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDMIGRATIONJOBREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SuspendMigrationJobResult.h b/dts/include/alibabacloud/dts/model/SuspendMigrationJobResult.h deleted file mode 100644 index e7713ae26..000000000 --- a/dts/include/alibabacloud/dts/model/SuspendMigrationJobResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SUSPENDMIGRATIONJOBRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SUSPENDMIGRATIONJOBRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SuspendMigrationJobResult : public ServiceResult - { - public: - - - SuspendMigrationJobResult(); - explicit SuspendMigrationJobResult(const std::string &payload); - ~SuspendMigrationJobResult(); - std::string getErrMessage()const; - std::string getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - std::string success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDMIGRATIONJOBRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h b/dts/include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h index b95a26488..038d01e2c 100644 --- a/dts/include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h +++ b/dts/include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h @@ -32,23 +32,14 @@ public: ~SuspendSynchronizationJobRequest(); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getSynchronizationJobId() const; void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: std::string ownerId_; - std::string accessKeyId_; std::string synchronizationJobId_; - std::string accountId_; - std::string regionId_; std::string synchronizationDirection_; }; } // namespace Model diff --git a/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudRequest.h b/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudRequest.h deleted file mode 100644 index 0d96d8539..000000000 --- a/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT SwitchPhysicalDtsJobToCloudRequest : public RpcServiceRequest { -public: - SwitchPhysicalDtsJobToCloudRequest(); - ~SwitchPhysicalDtsJobToCloudRequest(); - std::string getResetCheckpoint() const; - void setResetCheckpoint(const std::string &resetCheckpoint); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getResumeHoldJob() const; - void setResumeHoldJob(const std::string &resumeHoldJob); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getDtsInstanceId() const; - void setDtsInstanceId(const std::string &dtsInstanceId); - std::string getSynchronizationDirection() const; - void setSynchronizationDirection(const std::string &synchronizationDirection); - -private: - std::string resetCheckpoint_; - std::string regionId_; - std::string resumeHoldJob_; - std::string dtsJobId_; - std::string dtsInstanceId_; - std::string synchronizationDirection_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudResult.h b/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudResult.h deleted file mode 100644 index e69ed2ead..000000000 --- a/dts/include/alibabacloud/dts/model/SwitchPhysicalDtsJobToCloudResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT SwitchPhysicalDtsJobToCloudResult : public ServiceResult - { - public: - - - SwitchPhysicalDtsJobToCloudResult(); - explicit SwitchPhysicalDtsJobToCloudResult(const std::string &payload); - ~SwitchPhysicalDtsJobToCloudResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_SWITCHPHYSICALDTSJOBTOCLOUDRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/SwitchSynchronizationEndpointRequest.h b/dts/include/alibabacloud/dts/model/SwitchSynchronizationEndpointRequest.h index 3f15bfcef..69d229c98 100644 --- a/dts/include/alibabacloud/dts/model/SwitchSynchronizationEndpointRequest.h +++ b/dts/include/alibabacloud/dts/model/SwitchSynchronizationEndpointRequest.h @@ -30,45 +30,30 @@ class ALIBABACLOUD_DTS_EXPORT SwitchSynchronizationEndpointRequest : public RpcS public: SwitchSynchronizationEndpointRequest(); ~SwitchSynchronizationEndpointRequest(); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getSynchronizationJobId() const; - void setSynchronizationJobId(const std::string &synchronizationJobId); - std::string getEndpointType() const; - void setEndpointType(const std::string &endpointType); - std::string getAccountId() const; - void setAccountId(const std::string &accountId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getEndpointPort() const; - void setEndpointPort(const std::string &endpointPort); std::string getEndpointInstanceType() const; void setEndpointInstanceType(const std::string &endpointInstanceType); - std::string getSourceEndpointOwnerID() const; - void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID); - std::string getSourceEndpointRole() const; - void setSourceEndpointRole(const std::string &sourceEndpointRole); std::string getEndpointIP() const; void setEndpointIP(const std::string &endpointIP); std::string getOwnerId() const; void setOwnerId(const std::string &ownerId); + std::string getSynchronizationJobId() const; + void setSynchronizationJobId(const std::string &synchronizationJobId); + std::string getEndpointType() const; + void setEndpointType(const std::string &endpointType); + std::string getEndpointPort() const; + void setEndpointPort(const std::string &endpointPort); std::string getEndpointInstanceId() const; void setEndpointInstanceId(const std::string &endpointInstanceId); std::string getSynchronizationDirection() const; void setSynchronizationDirection(const std::string &synchronizationDirection); private: - std::string accessKeyId_; - std::string synchronizationJobId_; - std::string endpointType_; - std::string accountId_; - std::string regionId_; - std::string endpointPort_; std::string endpointInstanceType_; - std::string sourceEndpointOwnerID_; - std::string sourceEndpointRole_; std::string endpointIP_; std::string ownerId_; + std::string synchronizationJobId_; + std::string endpointType_; + std::string endpointPort_; std::string endpointInstanceId_; std::string synchronizationDirection_; }; diff --git a/dts/include/alibabacloud/dts/model/TagResourcesRequest.h b/dts/include/alibabacloud/dts/model/TagResourcesRequest.h deleted file mode 100644 index 520d42051..000000000 --- a/dts/include/alibabacloud/dts/model/TagResourcesRequest.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT TagResourcesRequest : public RpcServiceRequest { -public: - struct Tag { - std::string value; - std::string key; - }; - TagResourcesRequest(); - ~TagResourcesRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::vector getTag() const; - void setTag(const std::vector &tag); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - -private: - std::string regionId_; - std::vector tag_; - std::vector resourceId_; - std::string resourceType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/TagResourcesResult.h b/dts/include/alibabacloud/dts/model/TagResourcesResult.h deleted file mode 100644 index dae6fe4f6..000000000 --- a/dts/include/alibabacloud/dts/model/TagResourcesResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_TAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT TagResourcesResult : public ServiceResult - { - public: - - - TagResourcesResult(); - explicit TagResourcesResult(const std::string &payload); - ~TagResourcesResult(); - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/TransferInstanceClassRequest.h b/dts/include/alibabacloud/dts/model/TransferInstanceClassRequest.h deleted file mode 100644 index d163cb03b..000000000 --- a/dts/include/alibabacloud/dts/model/TransferInstanceClassRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TRANSFERINSTANCECLASSREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_TRANSFERINSTANCECLASSREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT TransferInstanceClassRequest : public RpcServiceRequest { -public: - TransferInstanceClassRequest(); - ~TransferInstanceClassRequest(); - std::string getInstanceClass() const; - void setInstanceClass(const std::string &instanceClass); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getOrderType() const; - void setOrderType(const std::string &orderType); - -private: - std::string instanceClass_; - std::string regionId_; - std::string dtsJobId_; - std::string orderType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_TRANSFERINSTANCECLASSREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/TransferInstanceClassResult.h b/dts/include/alibabacloud/dts/model/TransferInstanceClassResult.h deleted file mode 100644 index 416738f12..000000000 --- a/dts/include/alibabacloud/dts/model/TransferInstanceClassResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TRANSFERINSTANCECLASSRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_TRANSFERINSTANCECLASSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT TransferInstanceClassResult : public ServiceResult - { - public: - - - TransferInstanceClassResult(); - explicit TransferInstanceClassResult(const std::string &payload); - ~TransferInstanceClassResult(); - std::string getDtsJobId()const; - std::string getEndTime()const; - std::string getInstanceId()const; - std::string getChargeType()const; - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - std::string endTime_; - std::string instanceId_; - std::string chargeType_; - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_TRANSFERINSTANCECLASSRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/TransferPayTypeRequest.h b/dts/include/alibabacloud/dts/model/TransferPayTypeRequest.h deleted file mode 100644 index 1af3eeabd..000000000 --- a/dts/include/alibabacloud/dts/model/TransferPayTypeRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TRANSFERPAYTYPEREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_TRANSFERPAYTYPEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT TransferPayTypeRequest : public RpcServiceRequest { -public: - TransferPayTypeRequest(); - ~TransferPayTypeRequest(); - std::string getPeriod() const; - void setPeriod(const std::string &period); - std::string getBuyCount() const; - void setBuyCount(const std::string &buyCount); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getDtsJobId() const; - void setDtsJobId(const std::string &dtsJobId); - std::string getChargeType() const; - void setChargeType(const std::string &chargeType); - -private: - std::string period_; - std::string buyCount_; - std::string regionId_; - std::string dtsJobId_; - std::string chargeType_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_TRANSFERPAYTYPEREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/TransferPayTypeResult.h b/dts/include/alibabacloud/dts/model/TransferPayTypeResult.h deleted file mode 100644 index 18507070f..000000000 --- a/dts/include/alibabacloud/dts/model/TransferPayTypeResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_TRANSFERPAYTYPERESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_TRANSFERPAYTYPERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT TransferPayTypeResult : public ServiceResult - { - public: - - - TransferPayTypeResult(); - explicit TransferPayTypeResult(const std::string &payload); - ~TransferPayTypeResult(); - std::string getDtsJobId()const; - std::string getEndTime()const; - std::string getInstanceId()const; - std::string getChargeType()const; - int getHttpStatusCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - std::string getCode()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string dtsJobId_; - std::string endTime_; - std::string instanceId_; - std::string chargeType_; - int httpStatusCode_; - std::string dynamicMessage_; - std::string errMessage_; - std::string code_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_TRANSFERPAYTYPERESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/UntagResourcesRequest.h b/dts/include/alibabacloud/dts/model/UntagResourcesRequest.h deleted file mode 100644 index a86c2c226..000000000 --- a/dts/include/alibabacloud/dts/model/UntagResourcesRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT UntagResourcesRequest : public RpcServiceRequest { -public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - bool getAll() const; - void setAll(bool all); - std::vector getResourceId() const; - void setResourceId(const std::vector &resourceId); - std::string getResourceType() const; - void setResourceType(const std::string &resourceType); - std::vector getTagKey() const; - void setTagKey(const std::vector &tagKey); - -private: - std::string regionId_; - bool all_; - std::vector resourceId_; - std::string resourceType_; - std::vector tagKey_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/UntagResourcesResult.h b/dts/include/alibabacloud/dts/model/UntagResourcesResult.h deleted file mode 100644 index 74be1257a..000000000 --- a/dts/include/alibabacloud/dts/model/UntagResourcesResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_UNTAGRESOURCESRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_UNTAGRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT UntagResourcesResult : public ServiceResult - { - public: - - - UntagResourcesResult(); - explicit UntagResourcesResult(const std::string &payload); - ~UntagResourcesResult(); - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/UpgradeTwoWayRequest.h b/dts/include/alibabacloud/dts/model/UpgradeTwoWayRequest.h deleted file mode 100644 index bebfc3ff1..000000000 --- a/dts/include/alibabacloud/dts/model/UpgradeTwoWayRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_UPGRADETWOWAYREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_UPGRADETWOWAYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT UpgradeTwoWayRequest : public RpcServiceRequest { -public: - UpgradeTwoWayRequest(); - ~UpgradeTwoWayRequest(); - std::string getInstanceClass() const; - void setInstanceClass(const std::string &instanceClass); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - -private: - std::string instanceClass_; - std::string instanceId_; - std::string regionId_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_UPGRADETWOWAYREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/UpgradeTwoWayResult.h b/dts/include/alibabacloud/dts/model/UpgradeTwoWayResult.h deleted file mode 100644 index a5be5e56d..000000000 --- a/dts/include/alibabacloud/dts/model/UpgradeTwoWayResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_UPGRADETWOWAYRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_UPGRADETWOWAYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT UpgradeTwoWayResult : public ServiceResult - { - public: - - - UpgradeTwoWayResult(); - explicit UpgradeTwoWayResult(const std::string &payload); - ~UpgradeTwoWayResult(); - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_UPGRADETWOWAYRESULT_H_ \ No newline at end of file diff --git a/dts/include/alibabacloud/dts/model/WhiteIpListRequest.h b/dts/include/alibabacloud/dts/model/WhiteIpListRequest.h deleted file mode 100644 index 40f5f68df..000000000 --- a/dts/include/alibabacloud/dts/model/WhiteIpListRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_WHITEIPLISTREQUEST_H_ -#define ALIBABACLOUD_DTS_MODEL_WHITEIPLISTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Dts { -namespace Model { -class ALIBABACLOUD_DTS_EXPORT WhiteIpListRequest : public RpcServiceRequest { -public: - WhiteIpListRequest(); - ~WhiteIpListRequest(); - std::string getDestinationRegion() const; - void setDestinationRegion(const std::string &destinationRegion); - std::string getType() const; - void setType(const std::string &type); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - std::string getRegion() const; - void setRegion(const std::string ®ion); - -private: - std::string destinationRegion_; - std::string type_; - std::string regionId_; - std::string region_; -}; -} // namespace Model -} // namespace Dts -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_DTS_MODEL_WHITEIPLISTREQUEST_H_ diff --git a/dts/include/alibabacloud/dts/model/WhiteIpListResult.h b/dts/include/alibabacloud/dts/model/WhiteIpListResult.h deleted file mode 100644 index bbc396cf2..000000000 --- a/dts/include/alibabacloud/dts/model/WhiteIpListResult.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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_DTS_MODEL_WHITEIPLISTRESULT_H_ -#define ALIBABACLOUD_DTS_MODEL_WHITEIPLISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Dts - { - namespace Model - { - class ALIBABACLOUD_DTS_EXPORT WhiteIpListResult : public ServiceResult - { - public: - - - WhiteIpListResult(); - explicit WhiteIpListResult(const std::string &payload); - ~WhiteIpListResult(); - std::string getIpList()const; - int getHttpStatusCode()const; - std::string getDynamicCode()const; - std::string getDynamicMessage()const; - std::string getErrMessage()const; - bool getSuccess()const; - std::string getErrCode()const; - - protected: - void parse(const std::string &payload); - private: - std::string ipList_; - int httpStatusCode_; - std::string dynamicCode_; - std::string dynamicMessage_; - std::string errMessage_; - bool success_; - std::string errCode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_DTS_MODEL_WHITEIPLISTRESULT_H_ \ No newline at end of file diff --git a/dts/src/DtsClient.cc b/dts/src/DtsClient.cc index 725389f80..340478b78 100644 --- a/dts/src/DtsClient.cc +++ b/dts/src/DtsClient.cc @@ -31,242 +31,26 @@ DtsClient::DtsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dts"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DtsClient::DtsClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dts"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DtsClient::DtsClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "dts"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } DtsClient::~DtsClient() {} -DtsClient::ConfigureDtsJobOutcome DtsClient::configureDtsJob(const ConfigureDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureDtsJobOutcome(ConfigureDtsJobResult(outcome.result())); - else - return ConfigureDtsJobOutcome(outcome.error()); -} - -void DtsClient::configureDtsJobAsync(const ConfigureDtsJobRequest& request, const ConfigureDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureDtsJobOutcomeCallable DtsClient::configureDtsJobCallable(const ConfigureDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ConfigureMigrationJobOutcome DtsClient::configureMigrationJob(const ConfigureMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureMigrationJobOutcome(ConfigureMigrationJobResult(outcome.result())); - else - return ConfigureMigrationJobOutcome(outcome.error()); -} - -void DtsClient::configureMigrationJobAsync(const ConfigureMigrationJobRequest& request, const ConfigureMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureMigrationJobOutcomeCallable DtsClient::configureMigrationJobCallable(const ConfigureMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ConfigureMigrationJobAlertOutcome DtsClient::configureMigrationJobAlert(const ConfigureMigrationJobAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureMigrationJobAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureMigrationJobAlertOutcome(ConfigureMigrationJobAlertResult(outcome.result())); - else - return ConfigureMigrationJobAlertOutcome(outcome.error()); -} - -void DtsClient::configureMigrationJobAlertAsync(const ConfigureMigrationJobAlertRequest& request, const ConfigureMigrationJobAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureMigrationJobAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureMigrationJobAlertOutcomeCallable DtsClient::configureMigrationJobAlertCallable(const ConfigureMigrationJobAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureMigrationJobAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ConfigureSubscriptionOutcome DtsClient::configureSubscription(const ConfigureSubscriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureSubscriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureSubscriptionOutcome(ConfigureSubscriptionResult(outcome.result())); - else - return ConfigureSubscriptionOutcome(outcome.error()); -} - -void DtsClient::configureSubscriptionAsync(const ConfigureSubscriptionRequest& request, const ConfigureSubscriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureSubscription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureSubscriptionOutcomeCallable DtsClient::configureSubscriptionCallable(const ConfigureSubscriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureSubscription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ConfigureSubscriptionInstanceOutcome DtsClient::configureSubscriptionInstance(const ConfigureSubscriptionInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureSubscriptionInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureSubscriptionInstanceOutcome(ConfigureSubscriptionInstanceResult(outcome.result())); - else - return ConfigureSubscriptionInstanceOutcome(outcome.error()); -} - -void DtsClient::configureSubscriptionInstanceAsync(const ConfigureSubscriptionInstanceRequest& request, const ConfigureSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureSubscriptionInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureSubscriptionInstanceOutcomeCallable DtsClient::configureSubscriptionInstanceCallable(const ConfigureSubscriptionInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureSubscriptionInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ConfigureSubscriptionInstanceAlertOutcome DtsClient::configureSubscriptionInstanceAlert(const ConfigureSubscriptionInstanceAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureSubscriptionInstanceAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureSubscriptionInstanceAlertOutcome(ConfigureSubscriptionInstanceAlertResult(outcome.result())); - else - return ConfigureSubscriptionInstanceAlertOutcome(outcome.error()); -} - -void DtsClient::configureSubscriptionInstanceAlertAsync(const ConfigureSubscriptionInstanceAlertRequest& request, const ConfigureSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureSubscriptionInstanceAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureSubscriptionInstanceAlertOutcomeCallable DtsClient::configureSubscriptionInstanceAlertCallable(const ConfigureSubscriptionInstanceAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureSubscriptionInstanceAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::ConfigureSynchronizationJobOutcome DtsClient::configureSynchronizationJob(const ConfigureSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,330 +123,6 @@ DtsClient::ConfigureSynchronizationJobAlertOutcomeCallable DtsClient::configureS return task->get_future(); } -DtsClient::ConfigureSynchronizationJobReplicatorCompareOutcome DtsClient::configureSynchronizationJobReplicatorCompare(const ConfigureSynchronizationJobReplicatorCompareRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ConfigureSynchronizationJobReplicatorCompareOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ConfigureSynchronizationJobReplicatorCompareOutcome(ConfigureSynchronizationJobReplicatorCompareResult(outcome.result())); - else - return ConfigureSynchronizationJobReplicatorCompareOutcome(outcome.error()); -} - -void DtsClient::configureSynchronizationJobReplicatorCompareAsync(const ConfigureSynchronizationJobReplicatorCompareRequest& request, const ConfigureSynchronizationJobReplicatorCompareAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, configureSynchronizationJobReplicatorCompare(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ConfigureSynchronizationJobReplicatorCompareOutcomeCallable DtsClient::configureSynchronizationJobReplicatorCompareCallable(const ConfigureSynchronizationJobReplicatorCompareRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->configureSynchronizationJobReplicatorCompare(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CountJobByConditionOutcome DtsClient::countJobByCondition(const CountJobByConditionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CountJobByConditionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CountJobByConditionOutcome(CountJobByConditionResult(outcome.result())); - else - return CountJobByConditionOutcome(outcome.error()); -} - -void DtsClient::countJobByConditionAsync(const CountJobByConditionRequest& request, const CountJobByConditionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, countJobByCondition(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CountJobByConditionOutcomeCallable DtsClient::countJobByConditionCallable(const CountJobByConditionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->countJobByCondition(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateConsumerChannelOutcome DtsClient::createConsumerChannel(const CreateConsumerChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConsumerChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConsumerChannelOutcome(CreateConsumerChannelResult(outcome.result())); - else - return CreateConsumerChannelOutcome(outcome.error()); -} - -void DtsClient::createConsumerChannelAsync(const CreateConsumerChannelRequest& request, const CreateConsumerChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConsumerChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateConsumerChannelOutcomeCallable DtsClient::createConsumerChannelCallable(const CreateConsumerChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConsumerChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateConsumerGroupOutcome DtsClient::createConsumerGroup(const CreateConsumerGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateConsumerGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateConsumerGroupOutcome(CreateConsumerGroupResult(outcome.result())); - else - return CreateConsumerGroupOutcome(outcome.error()); -} - -void DtsClient::createConsumerGroupAsync(const CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createConsumerGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateConsumerGroupOutcomeCallable DtsClient::createConsumerGroupCallable(const CreateConsumerGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createConsumerGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateDedicatedClusterMonitorRuleOutcome DtsClient::createDedicatedClusterMonitorRule(const CreateDedicatedClusterMonitorRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDedicatedClusterMonitorRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDedicatedClusterMonitorRuleOutcome(CreateDedicatedClusterMonitorRuleResult(outcome.result())); - else - return CreateDedicatedClusterMonitorRuleOutcome(outcome.error()); -} - -void DtsClient::createDedicatedClusterMonitorRuleAsync(const CreateDedicatedClusterMonitorRuleRequest& request, const CreateDedicatedClusterMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDedicatedClusterMonitorRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateDedicatedClusterMonitorRuleOutcomeCallable DtsClient::createDedicatedClusterMonitorRuleCallable(const CreateDedicatedClusterMonitorRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDedicatedClusterMonitorRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateDtsInstanceOutcome DtsClient::createDtsInstance(const CreateDtsInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateDtsInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateDtsInstanceOutcome(CreateDtsInstanceResult(outcome.result())); - else - return CreateDtsInstanceOutcome(outcome.error()); -} - -void DtsClient::createDtsInstanceAsync(const CreateDtsInstanceRequest& request, const CreateDtsInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createDtsInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateDtsInstanceOutcomeCallable DtsClient::createDtsInstanceCallable(const CreateDtsInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createDtsInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateJobMonitorRuleOutcome DtsClient::createJobMonitorRule(const CreateJobMonitorRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateJobMonitorRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateJobMonitorRuleOutcome(CreateJobMonitorRuleResult(outcome.result())); - else - return CreateJobMonitorRuleOutcome(outcome.error()); -} - -void DtsClient::createJobMonitorRuleAsync(const CreateJobMonitorRuleRequest& request, const CreateJobMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createJobMonitorRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateJobMonitorRuleOutcomeCallable DtsClient::createJobMonitorRuleCallable(const CreateJobMonitorRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createJobMonitorRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateMigrationJobOutcome DtsClient::createMigrationJob(const CreateMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateMigrationJobOutcome(CreateMigrationJobResult(outcome.result())); - else - return CreateMigrationJobOutcome(outcome.error()); -} - -void DtsClient::createMigrationJobAsync(const CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateMigrationJobOutcomeCallable DtsClient::createMigrationJobCallable(const CreateMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::CreateSubscriptionInstanceOutcome DtsClient::createSubscriptionInstance(const CreateSubscriptionInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return CreateSubscriptionInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return CreateSubscriptionInstanceOutcome(CreateSubscriptionInstanceResult(outcome.result())); - else - return CreateSubscriptionInstanceOutcome(outcome.error()); -} - -void DtsClient::createSubscriptionInstanceAsync(const CreateSubscriptionInstanceRequest& request, const CreateSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, createSubscriptionInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::CreateSubscriptionInstanceOutcomeCallable DtsClient::createSubscriptionInstanceCallable(const CreateSubscriptionInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->createSubscriptionInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::CreateSynchronizationJobOutcome DtsClient::createSynchronizationJob(const CreateSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,222 +159,6 @@ DtsClient::CreateSynchronizationJobOutcomeCallable DtsClient::createSynchronizat return task->get_future(); } -DtsClient::DeleteConsumerChannelOutcome DtsClient::deleteConsumerChannel(const DeleteConsumerChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteConsumerChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteConsumerChannelOutcome(DeleteConsumerChannelResult(outcome.result())); - else - return DeleteConsumerChannelOutcome(outcome.error()); -} - -void DtsClient::deleteConsumerChannelAsync(const DeleteConsumerChannelRequest& request, const DeleteConsumerChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteConsumerChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteConsumerChannelOutcomeCallable DtsClient::deleteConsumerChannelCallable(const DeleteConsumerChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteConsumerChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DeleteConsumerGroupOutcome DtsClient::deleteConsumerGroup(const DeleteConsumerGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteConsumerGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteConsumerGroupOutcome(DeleteConsumerGroupResult(outcome.result())); - else - return DeleteConsumerGroupOutcome(outcome.error()); -} - -void DtsClient::deleteConsumerGroupAsync(const DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteConsumerGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteConsumerGroupOutcomeCallable DtsClient::deleteConsumerGroupCallable(const DeleteConsumerGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteConsumerGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DeleteDtsJobOutcome DtsClient::deleteDtsJob(const DeleteDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDtsJobOutcome(DeleteDtsJobResult(outcome.result())); - else - return DeleteDtsJobOutcome(outcome.error()); -} - -void DtsClient::deleteDtsJobAsync(const DeleteDtsJobRequest& request, const DeleteDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteDtsJobOutcomeCallable DtsClient::deleteDtsJobCallable(const DeleteDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DeleteDtsJobsOutcome DtsClient::deleteDtsJobs(const DeleteDtsJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteDtsJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteDtsJobsOutcome(DeleteDtsJobsResult(outcome.result())); - else - return DeleteDtsJobsOutcome(outcome.error()); -} - -void DtsClient::deleteDtsJobsAsync(const DeleteDtsJobsRequest& request, const DeleteDtsJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteDtsJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteDtsJobsOutcomeCallable DtsClient::deleteDtsJobsCallable(const DeleteDtsJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteDtsJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DeleteMigrationJobOutcome DtsClient::deleteMigrationJob(const DeleteMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteMigrationJobOutcome(DeleteMigrationJobResult(outcome.result())); - else - return DeleteMigrationJobOutcome(outcome.error()); -} - -void DtsClient::deleteMigrationJobAsync(const DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteMigrationJobOutcomeCallable DtsClient::deleteMigrationJobCallable(const DeleteMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DeleteSubscriptionInstanceOutcome DtsClient::deleteSubscriptionInstance(const DeleteSubscriptionInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSubscriptionInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSubscriptionInstanceOutcome(DeleteSubscriptionInstanceResult(outcome.result())); - else - return DeleteSubscriptionInstanceOutcome(outcome.error()); -} - -void DtsClient::deleteSubscriptionInstanceAsync(const DeleteSubscriptionInstanceRequest& request, const DeleteSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSubscriptionInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DeleteSubscriptionInstanceOutcomeCallable DtsClient::deleteSubscriptionInstanceCallable(const DeleteSubscriptionInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSubscriptionInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DeleteSynchronizationJobOutcome DtsClient::deleteSynchronizationJob(const DeleteSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,582 +195,6 @@ DtsClient::DeleteSynchronizationJobOutcomeCallable DtsClient::deleteSynchronizat return task->get_future(); } -DtsClient::DescribeCheckJobsOutcome DtsClient::describeCheckJobs(const DescribeCheckJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeCheckJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeCheckJobsOutcome(DescribeCheckJobsResult(outcome.result())); - else - return DescribeCheckJobsOutcome(outcome.error()); -} - -void DtsClient::describeCheckJobsAsync(const DescribeCheckJobsRequest& request, const DescribeCheckJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeCheckJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeCheckJobsOutcomeCallable DtsClient::describeCheckJobsCallable(const DescribeCheckJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeCheckJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeClusterOperateLogsOutcome DtsClient::describeClusterOperateLogs(const DescribeClusterOperateLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterOperateLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterOperateLogsOutcome(DescribeClusterOperateLogsResult(outcome.result())); - else - return DescribeClusterOperateLogsOutcome(outcome.error()); -} - -void DtsClient::describeClusterOperateLogsAsync(const DescribeClusterOperateLogsRequest& request, const DescribeClusterOperateLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterOperateLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeClusterOperateLogsOutcomeCallable DtsClient::describeClusterOperateLogsCallable(const DescribeClusterOperateLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterOperateLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeClusterUsedUtilizationOutcome DtsClient::describeClusterUsedUtilization(const DescribeClusterUsedUtilizationRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeClusterUsedUtilizationOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeClusterUsedUtilizationOutcome(DescribeClusterUsedUtilizationResult(outcome.result())); - else - return DescribeClusterUsedUtilizationOutcome(outcome.error()); -} - -void DtsClient::describeClusterUsedUtilizationAsync(const DescribeClusterUsedUtilizationRequest& request, const DescribeClusterUsedUtilizationAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeClusterUsedUtilization(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeClusterUsedUtilizationOutcomeCallable DtsClient::describeClusterUsedUtilizationCallable(const DescribeClusterUsedUtilizationRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeClusterUsedUtilization(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeConnectionStatusOutcome DtsClient::describeConnectionStatus(const DescribeConnectionStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConnectionStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConnectionStatusOutcome(DescribeConnectionStatusResult(outcome.result())); - else - return DescribeConnectionStatusOutcome(outcome.error()); -} - -void DtsClient::describeConnectionStatusAsync(const DescribeConnectionStatusRequest& request, const DescribeConnectionStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConnectionStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeConnectionStatusOutcomeCallable DtsClient::describeConnectionStatusCallable(const DescribeConnectionStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConnectionStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeConsumerChannelOutcome DtsClient::describeConsumerChannel(const DescribeConsumerChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConsumerChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConsumerChannelOutcome(DescribeConsumerChannelResult(outcome.result())); - else - return DescribeConsumerChannelOutcome(outcome.error()); -} - -void DtsClient::describeConsumerChannelAsync(const DescribeConsumerChannelRequest& request, const DescribeConsumerChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConsumerChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeConsumerChannelOutcomeCallable DtsClient::describeConsumerChannelCallable(const DescribeConsumerChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConsumerChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeConsumerGroupOutcome DtsClient::describeConsumerGroup(const DescribeConsumerGroupRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeConsumerGroupOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeConsumerGroupOutcome(DescribeConsumerGroupResult(outcome.result())); - else - return DescribeConsumerGroupOutcome(outcome.error()); -} - -void DtsClient::describeConsumerGroupAsync(const DescribeConsumerGroupRequest& request, const DescribeConsumerGroupAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeConsumerGroup(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeConsumerGroupOutcomeCallable DtsClient::describeConsumerGroupCallable(const DescribeConsumerGroupRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeConsumerGroup(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDTSIPOutcome DtsClient::describeDTSIP(const DescribeDTSIPRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDTSIPOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDTSIPOutcome(DescribeDTSIPResult(outcome.result())); - else - return DescribeDTSIPOutcome(outcome.error()); -} - -void DtsClient::describeDTSIPAsync(const DescribeDTSIPRequest& request, const DescribeDTSIPAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDTSIP(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDTSIPOutcomeCallable DtsClient::describeDTSIPCallable(const DescribeDTSIPRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDTSIP(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDataCheckReportUrlOutcome DtsClient::describeDataCheckReportUrl(const DescribeDataCheckReportUrlRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataCheckReportUrlOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataCheckReportUrlOutcome(DescribeDataCheckReportUrlResult(outcome.result())); - else - return DescribeDataCheckReportUrlOutcome(outcome.error()); -} - -void DtsClient::describeDataCheckReportUrlAsync(const DescribeDataCheckReportUrlRequest& request, const DescribeDataCheckReportUrlAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataCheckReportUrl(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDataCheckReportUrlOutcomeCallable DtsClient::describeDataCheckReportUrlCallable(const DescribeDataCheckReportUrlRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataCheckReportUrl(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDataCheckTableDetailsOutcome DtsClient::describeDataCheckTableDetails(const DescribeDataCheckTableDetailsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataCheckTableDetailsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataCheckTableDetailsOutcome(DescribeDataCheckTableDetailsResult(outcome.result())); - else - return DescribeDataCheckTableDetailsOutcome(outcome.error()); -} - -void DtsClient::describeDataCheckTableDetailsAsync(const DescribeDataCheckTableDetailsRequest& request, const DescribeDataCheckTableDetailsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataCheckTableDetails(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDataCheckTableDetailsOutcomeCallable DtsClient::describeDataCheckTableDetailsCallable(const DescribeDataCheckTableDetailsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataCheckTableDetails(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDataCheckTableDiffDetailsOutcome DtsClient::describeDataCheckTableDiffDetails(const DescribeDataCheckTableDiffDetailsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDataCheckTableDiffDetailsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDataCheckTableDiffDetailsOutcome(DescribeDataCheckTableDiffDetailsResult(outcome.result())); - else - return DescribeDataCheckTableDiffDetailsOutcome(outcome.error()); -} - -void DtsClient::describeDataCheckTableDiffDetailsAsync(const DescribeDataCheckTableDiffDetailsRequest& request, const DescribeDataCheckTableDiffDetailsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDataCheckTableDiffDetails(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDataCheckTableDiffDetailsOutcomeCallable DtsClient::describeDataCheckTableDiffDetailsCallable(const DescribeDataCheckTableDiffDetailsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDataCheckTableDiffDetails(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDedicatedClusterOutcome DtsClient::describeDedicatedCluster(const DescribeDedicatedClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDedicatedClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDedicatedClusterOutcome(DescribeDedicatedClusterResult(outcome.result())); - else - return DescribeDedicatedClusterOutcome(outcome.error()); -} - -void DtsClient::describeDedicatedClusterAsync(const DescribeDedicatedClusterRequest& request, const DescribeDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDedicatedCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDedicatedClusterOutcomeCallable DtsClient::describeDedicatedClusterCallable(const DescribeDedicatedClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDedicatedCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDedicatedClusterMonitorRuleOutcome DtsClient::describeDedicatedClusterMonitorRule(const DescribeDedicatedClusterMonitorRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDedicatedClusterMonitorRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDedicatedClusterMonitorRuleOutcome(DescribeDedicatedClusterMonitorRuleResult(outcome.result())); - else - return DescribeDedicatedClusterMonitorRuleOutcome(outcome.error()); -} - -void DtsClient::describeDedicatedClusterMonitorRuleAsync(const DescribeDedicatedClusterMonitorRuleRequest& request, const DescribeDedicatedClusterMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDedicatedClusterMonitorRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDedicatedClusterMonitorRuleOutcomeCallable DtsClient::describeDedicatedClusterMonitorRuleCallable(const DescribeDedicatedClusterMonitorRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDedicatedClusterMonitorRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDtsEtlJobVersionInfoOutcome DtsClient::describeDtsEtlJobVersionInfo(const DescribeDtsEtlJobVersionInfoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDtsEtlJobVersionInfoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDtsEtlJobVersionInfoOutcome(DescribeDtsEtlJobVersionInfoResult(outcome.result())); - else - return DescribeDtsEtlJobVersionInfoOutcome(outcome.error()); -} - -void DtsClient::describeDtsEtlJobVersionInfoAsync(const DescribeDtsEtlJobVersionInfoRequest& request, const DescribeDtsEtlJobVersionInfoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDtsEtlJobVersionInfo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDtsEtlJobVersionInfoOutcomeCallable DtsClient::describeDtsEtlJobVersionInfoCallable(const DescribeDtsEtlJobVersionInfoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDtsEtlJobVersionInfo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDtsJobDetailOutcome DtsClient::describeDtsJobDetail(const DescribeDtsJobDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDtsJobDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDtsJobDetailOutcome(DescribeDtsJobDetailResult(outcome.result())); - else - return DescribeDtsJobDetailOutcome(outcome.error()); -} - -void DtsClient::describeDtsJobDetailAsync(const DescribeDtsJobDetailRequest& request, const DescribeDtsJobDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDtsJobDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDtsJobDetailOutcomeCallable DtsClient::describeDtsJobDetailCallable(const DescribeDtsJobDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDtsJobDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDtsJobsOutcome DtsClient::describeDtsJobs(const DescribeDtsJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDtsJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDtsJobsOutcome(DescribeDtsJobsResult(outcome.result())); - else - return DescribeDtsJobsOutcome(outcome.error()); -} - -void DtsClient::describeDtsJobsAsync(const DescribeDtsJobsRequest& request, const DescribeDtsJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDtsJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDtsJobsOutcomeCallable DtsClient::describeDtsJobsCallable(const DescribeDtsJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDtsJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeDtsServiceLogOutcome DtsClient::describeDtsServiceLog(const DescribeDtsServiceLogRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeDtsServiceLogOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeDtsServiceLogOutcome(DescribeDtsServiceLogResult(outcome.result())); - else - return DescribeDtsServiceLogOutcome(outcome.error()); -} - -void DtsClient::describeDtsServiceLogAsync(const DescribeDtsServiceLogRequest& request, const DescribeDtsServiceLogAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeDtsServiceLog(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeDtsServiceLogOutcomeCallable DtsClient::describeDtsServiceLogCallable(const DescribeDtsServiceLogRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeDtsServiceLog(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DescribeEndpointSwitchStatusOutcome DtsClient::describeEndpointSwitchStatus(const DescribeEndpointSwitchStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,474 +231,6 @@ DtsClient::DescribeEndpointSwitchStatusOutcomeCallable DtsClient::describeEndpoi return task->get_future(); } -DtsClient::DescribeEtlJobLogsOutcome DtsClient::describeEtlJobLogs(const DescribeEtlJobLogsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeEtlJobLogsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeEtlJobLogsOutcome(DescribeEtlJobLogsResult(outcome.result())); - else - return DescribeEtlJobLogsOutcome(outcome.error()); -} - -void DtsClient::describeEtlJobLogsAsync(const DescribeEtlJobLogsRequest& request, const DescribeEtlJobLogsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeEtlJobLogs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeEtlJobLogsOutcomeCallable DtsClient::describeEtlJobLogsCallable(const DescribeEtlJobLogsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeEtlJobLogs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeInitializationStatusOutcome DtsClient::describeInitializationStatus(const DescribeInitializationStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeInitializationStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeInitializationStatusOutcome(DescribeInitializationStatusResult(outcome.result())); - else - return DescribeInitializationStatusOutcome(outcome.error()); -} - -void DtsClient::describeInitializationStatusAsync(const DescribeInitializationStatusRequest& request, const DescribeInitializationStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeInitializationStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeInitializationStatusOutcomeCallable DtsClient::describeInitializationStatusCallable(const DescribeInitializationStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeInitializationStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeJobMonitorRuleOutcome DtsClient::describeJobMonitorRule(const DescribeJobMonitorRuleRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeJobMonitorRuleOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeJobMonitorRuleOutcome(DescribeJobMonitorRuleResult(outcome.result())); - else - return DescribeJobMonitorRuleOutcome(outcome.error()); -} - -void DtsClient::describeJobMonitorRuleAsync(const DescribeJobMonitorRuleRequest& request, const DescribeJobMonitorRuleAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeJobMonitorRule(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeJobMonitorRuleOutcomeCallable DtsClient::describeJobMonitorRuleCallable(const DescribeJobMonitorRuleRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeJobMonitorRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeMetricListOutcome DtsClient::describeMetricList(const DescribeMetricListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMetricListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMetricListOutcome(DescribeMetricListResult(outcome.result())); - else - return DescribeMetricListOutcome(outcome.error()); -} - -void DtsClient::describeMetricListAsync(const DescribeMetricListRequest& request, const DescribeMetricListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMetricList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeMetricListOutcomeCallable DtsClient::describeMetricListCallable(const DescribeMetricListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMetricList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeMigrationJobAlertOutcome DtsClient::describeMigrationJobAlert(const DescribeMigrationJobAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrationJobAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrationJobAlertOutcome(DescribeMigrationJobAlertResult(outcome.result())); - else - return DescribeMigrationJobAlertOutcome(outcome.error()); -} - -void DtsClient::describeMigrationJobAlertAsync(const DescribeMigrationJobAlertRequest& request, const DescribeMigrationJobAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrationJobAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeMigrationJobAlertOutcomeCallable DtsClient::describeMigrationJobAlertCallable(const DescribeMigrationJobAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrationJobAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeMigrationJobDetailOutcome DtsClient::describeMigrationJobDetail(const DescribeMigrationJobDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrationJobDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrationJobDetailOutcome(DescribeMigrationJobDetailResult(outcome.result())); - else - return DescribeMigrationJobDetailOutcome(outcome.error()); -} - -void DtsClient::describeMigrationJobDetailAsync(const DescribeMigrationJobDetailRequest& request, const DescribeMigrationJobDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrationJobDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeMigrationJobDetailOutcomeCallable DtsClient::describeMigrationJobDetailCallable(const DescribeMigrationJobDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrationJobDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeMigrationJobStatusOutcome DtsClient::describeMigrationJobStatus(const DescribeMigrationJobStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrationJobStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrationJobStatusOutcome(DescribeMigrationJobStatusResult(outcome.result())); - else - return DescribeMigrationJobStatusOutcome(outcome.error()); -} - -void DtsClient::describeMigrationJobStatusAsync(const DescribeMigrationJobStatusRequest& request, const DescribeMigrationJobStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrationJobStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeMigrationJobStatusOutcomeCallable DtsClient::describeMigrationJobStatusCallable(const DescribeMigrationJobStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrationJobStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeMigrationJobsOutcome DtsClient::describeMigrationJobs(const DescribeMigrationJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeMigrationJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeMigrationJobsOutcome(DescribeMigrationJobsResult(outcome.result())); - else - return DescribeMigrationJobsOutcome(outcome.error()); -} - -void DtsClient::describeMigrationJobsAsync(const DescribeMigrationJobsRequest& request, const DescribeMigrationJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeMigrationJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeMigrationJobsOutcomeCallable DtsClient::describeMigrationJobsCallable(const DescribeMigrationJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeMigrationJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribePreCheckStatusOutcome DtsClient::describePreCheckStatus(const DescribePreCheckStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribePreCheckStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribePreCheckStatusOutcome(DescribePreCheckStatusResult(outcome.result())); - else - return DescribePreCheckStatusOutcome(outcome.error()); -} - -void DtsClient::describePreCheckStatusAsync(const DescribePreCheckStatusRequest& request, const DescribePreCheckStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describePreCheckStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribePreCheckStatusOutcomeCallable DtsClient::describePreCheckStatusCallable(const DescribePreCheckStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describePreCheckStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeSubscriptionInstanceAlertOutcome DtsClient::describeSubscriptionInstanceAlert(const DescribeSubscriptionInstanceAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSubscriptionInstanceAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSubscriptionInstanceAlertOutcome(DescribeSubscriptionInstanceAlertResult(outcome.result())); - else - return DescribeSubscriptionInstanceAlertOutcome(outcome.error()); -} - -void DtsClient::describeSubscriptionInstanceAlertAsync(const DescribeSubscriptionInstanceAlertRequest& request, const DescribeSubscriptionInstanceAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSubscriptionInstanceAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSubscriptionInstanceAlertOutcomeCallable DtsClient::describeSubscriptionInstanceAlertCallable(const DescribeSubscriptionInstanceAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSubscriptionInstanceAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeSubscriptionInstanceStatusOutcome DtsClient::describeSubscriptionInstanceStatus(const DescribeSubscriptionInstanceStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSubscriptionInstanceStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSubscriptionInstanceStatusOutcome(DescribeSubscriptionInstanceStatusResult(outcome.result())); - else - return DescribeSubscriptionInstanceStatusOutcome(outcome.error()); -} - -void DtsClient::describeSubscriptionInstanceStatusAsync(const DescribeSubscriptionInstanceStatusRequest& request, const DescribeSubscriptionInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSubscriptionInstanceStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSubscriptionInstanceStatusOutcomeCallable DtsClient::describeSubscriptionInstanceStatusCallable(const DescribeSubscriptionInstanceStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSubscriptionInstanceStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeSubscriptionInstancesOutcome DtsClient::describeSubscriptionInstances(const DescribeSubscriptionInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSubscriptionInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSubscriptionInstancesOutcome(DescribeSubscriptionInstancesResult(outcome.result())); - else - return DescribeSubscriptionInstancesOutcome(outcome.error()); -} - -void DtsClient::describeSubscriptionInstancesAsync(const DescribeSubscriptionInstancesRequest& request, const DescribeSubscriptionInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSubscriptionInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSubscriptionInstancesOutcomeCallable DtsClient::describeSubscriptionInstancesCallable(const DescribeSubscriptionInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSubscriptionInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeSubscriptionMetaOutcome DtsClient::describeSubscriptionMeta(const DescribeSubscriptionMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSubscriptionMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSubscriptionMetaOutcome(DescribeSubscriptionMetaResult(outcome.result())); - else - return DescribeSubscriptionMetaOutcome(outcome.error()); -} - -void DtsClient::describeSubscriptionMetaAsync(const DescribeSubscriptionMetaRequest& request, const DescribeSubscriptionMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSubscriptionMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSubscriptionMetaOutcomeCallable DtsClient::describeSubscriptionMetaCallable(const DescribeSubscriptionMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSubscriptionMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DescribeSynchronizationJobAlertOutcome DtsClient::describeSynchronizationJobAlert(const DescribeSynchronizationJobAlertRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,42 +267,6 @@ DtsClient::DescribeSynchronizationJobAlertOutcomeCallable DtsClient::describeSyn return task->get_future(); } -DtsClient::DescribeSynchronizationJobReplicatorCompareOutcome DtsClient::describeSynchronizationJobReplicatorCompare(const DescribeSynchronizationJobReplicatorCompareRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSynchronizationJobReplicatorCompareOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSynchronizationJobReplicatorCompareOutcome(DescribeSynchronizationJobReplicatorCompareResult(outcome.result())); - else - return DescribeSynchronizationJobReplicatorCompareOutcome(outcome.error()); -} - -void DtsClient::describeSynchronizationJobReplicatorCompareAsync(const DescribeSynchronizationJobReplicatorCompareRequest& request, const DescribeSynchronizationJobReplicatorCompareAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSynchronizationJobReplicatorCompare(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSynchronizationJobReplicatorCompareOutcomeCallable DtsClient::describeSynchronizationJobReplicatorCompareCallable(const DescribeSynchronizationJobReplicatorCompareRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSynchronizationJobReplicatorCompare(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DescribeSynchronizationJobStatusOutcome DtsClient::describeSynchronizationJobStatus(const DescribeSynchronizationJobStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,42 +303,6 @@ DtsClient::DescribeSynchronizationJobStatusOutcomeCallable DtsClient::describeSy return task->get_future(); } -DtsClient::DescribeSynchronizationJobStatusListOutcome DtsClient::describeSynchronizationJobStatusList(const DescribeSynchronizationJobStatusListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeSynchronizationJobStatusListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeSynchronizationJobStatusListOutcome(DescribeSynchronizationJobStatusListResult(outcome.result())); - else - return DescribeSynchronizationJobStatusListOutcome(outcome.error()); -} - -void DtsClient::describeSynchronizationJobStatusListAsync(const DescribeSynchronizationJobStatusListRequest& request, const DescribeSynchronizationJobStatusListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeSynchronizationJobStatusList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeSynchronizationJobStatusListOutcomeCallable DtsClient::describeSynchronizationJobStatusListCallable(const DescribeSynchronizationJobStatusListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeSynchronizationJobStatusList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::DescribeSynchronizationJobsOutcome DtsClient::describeSynchronizationJobs(const DescribeSynchronizationJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2247,582 +375,6 @@ DtsClient::DescribeSynchronizationObjectModifyStatusOutcomeCallable DtsClient::d return task->get_future(); } -DtsClient::DescribeTagKeysOutcome DtsClient::describeTagKeys(const DescribeTagKeysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTagKeysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTagKeysOutcome(DescribeTagKeysResult(outcome.result())); - else - return DescribeTagKeysOutcome(outcome.error()); -} - -void DtsClient::describeTagKeysAsync(const DescribeTagKeysRequest& request, const DescribeTagKeysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTagKeys(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeTagKeysOutcomeCallable DtsClient::describeTagKeysCallable(const DescribeTagKeysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTagKeys(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::DescribeTagValuesOutcome DtsClient::describeTagValues(const DescribeTagValuesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeTagValuesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeTagValuesOutcome(DescribeTagValuesResult(outcome.result())); - else - return DescribeTagValuesOutcome(outcome.error()); -} - -void DtsClient::describeTagValuesAsync(const DescribeTagValuesRequest& request, const DescribeTagValuesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeTagValues(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::DescribeTagValuesOutcomeCallable DtsClient::describeTagValuesCallable(const DescribeTagValuesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeTagValues(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::InitDtsRdsInstanceOutcome DtsClient::initDtsRdsInstance(const InitDtsRdsInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return InitDtsRdsInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return InitDtsRdsInstanceOutcome(InitDtsRdsInstanceResult(outcome.result())); - else - return InitDtsRdsInstanceOutcome(outcome.error()); -} - -void DtsClient::initDtsRdsInstanceAsync(const InitDtsRdsInstanceRequest& request, const InitDtsRdsInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, initDtsRdsInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::InitDtsRdsInstanceOutcomeCallable DtsClient::initDtsRdsInstanceCallable(const InitDtsRdsInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->initDtsRdsInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ListDedicatedClusterOutcome DtsClient::listDedicatedCluster(const ListDedicatedClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListDedicatedClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListDedicatedClusterOutcome(ListDedicatedClusterResult(outcome.result())); - else - return ListDedicatedClusterOutcome(outcome.error()); -} - -void DtsClient::listDedicatedClusterAsync(const ListDedicatedClusterRequest& request, const ListDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listDedicatedCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ListDedicatedClusterOutcomeCallable DtsClient::listDedicatedClusterCallable(const ListDedicatedClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listDedicatedCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ListTagResourcesOutcome DtsClient::listTagResources(const ListTagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListTagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); - else - return ListTagResourcesOutcome(outcome.error()); -} - -void DtsClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listTagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ListTagResourcesOutcomeCallable DtsClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listTagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyConsumerChannelOutcome DtsClient::modifyConsumerChannel(const ModifyConsumerChannelRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyConsumerChannelOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyConsumerChannelOutcome(ModifyConsumerChannelResult(outcome.result())); - else - return ModifyConsumerChannelOutcome(outcome.error()); -} - -void DtsClient::modifyConsumerChannelAsync(const ModifyConsumerChannelRequest& request, const ModifyConsumerChannelAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyConsumerChannel(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyConsumerChannelOutcomeCallable DtsClient::modifyConsumerChannelCallable(const ModifyConsumerChannelRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyConsumerChannel(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyConsumerGroupPasswordOutcome DtsClient::modifyConsumerGroupPassword(const ModifyConsumerGroupPasswordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyConsumerGroupPasswordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyConsumerGroupPasswordOutcome(ModifyConsumerGroupPasswordResult(outcome.result())); - else - return ModifyConsumerGroupPasswordOutcome(outcome.error()); -} - -void DtsClient::modifyConsumerGroupPasswordAsync(const ModifyConsumerGroupPasswordRequest& request, const ModifyConsumerGroupPasswordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyConsumerGroupPassword(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyConsumerGroupPasswordOutcomeCallable DtsClient::modifyConsumerGroupPasswordCallable(const ModifyConsumerGroupPasswordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyConsumerGroupPassword(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyConsumptionTimestampOutcome DtsClient::modifyConsumptionTimestamp(const ModifyConsumptionTimestampRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyConsumptionTimestampOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyConsumptionTimestampOutcome(ModifyConsumptionTimestampResult(outcome.result())); - else - return ModifyConsumptionTimestampOutcome(outcome.error()); -} - -void DtsClient::modifyConsumptionTimestampAsync(const ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyConsumptionTimestamp(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyConsumptionTimestampOutcomeCallable DtsClient::modifyConsumptionTimestampCallable(const ModifyConsumptionTimestampRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyConsumptionTimestamp(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDedicatedClusterOutcome DtsClient::modifyDedicatedCluster(const ModifyDedicatedClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDedicatedClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDedicatedClusterOutcome(ModifyDedicatedClusterResult(outcome.result())); - else - return ModifyDedicatedClusterOutcome(outcome.error()); -} - -void DtsClient::modifyDedicatedClusterAsync(const ModifyDedicatedClusterRequest& request, const ModifyDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDedicatedCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDedicatedClusterOutcomeCallable DtsClient::modifyDedicatedClusterCallable(const ModifyDedicatedClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDedicatedCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDtsJobOutcome DtsClient::modifyDtsJob(const ModifyDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDtsJobOutcome(ModifyDtsJobResult(outcome.result())); - else - return ModifyDtsJobOutcome(outcome.error()); -} - -void DtsClient::modifyDtsJobAsync(const ModifyDtsJobRequest& request, const ModifyDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDtsJobOutcomeCallable DtsClient::modifyDtsJobCallable(const ModifyDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDtsJobDedicatedClusterOutcome DtsClient::modifyDtsJobDedicatedCluster(const ModifyDtsJobDedicatedClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDtsJobDedicatedClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDtsJobDedicatedClusterOutcome(ModifyDtsJobDedicatedClusterResult(outcome.result())); - else - return ModifyDtsJobDedicatedClusterOutcome(outcome.error()); -} - -void DtsClient::modifyDtsJobDedicatedClusterAsync(const ModifyDtsJobDedicatedClusterRequest& request, const ModifyDtsJobDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDtsJobDedicatedCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDtsJobDedicatedClusterOutcomeCallable DtsClient::modifyDtsJobDedicatedClusterCallable(const ModifyDtsJobDedicatedClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDtsJobDedicatedCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDtsJobDuLimitOutcome DtsClient::modifyDtsJobDuLimit(const ModifyDtsJobDuLimitRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDtsJobDuLimitOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDtsJobDuLimitOutcome(ModifyDtsJobDuLimitResult(outcome.result())); - else - return ModifyDtsJobDuLimitOutcome(outcome.error()); -} - -void DtsClient::modifyDtsJobDuLimitAsync(const ModifyDtsJobDuLimitRequest& request, const ModifyDtsJobDuLimitAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDtsJobDuLimit(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDtsJobDuLimitOutcomeCallable DtsClient::modifyDtsJobDuLimitCallable(const ModifyDtsJobDuLimitRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDtsJobDuLimit(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDtsJobNameOutcome DtsClient::modifyDtsJobName(const ModifyDtsJobNameRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDtsJobNameOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDtsJobNameOutcome(ModifyDtsJobNameResult(outcome.result())); - else - return ModifyDtsJobNameOutcome(outcome.error()); -} - -void DtsClient::modifyDtsJobNameAsync(const ModifyDtsJobNameRequest& request, const ModifyDtsJobNameAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDtsJobName(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDtsJobNameOutcomeCallable DtsClient::modifyDtsJobNameCallable(const ModifyDtsJobNameRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDtsJobName(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifyDtsJobPasswordOutcome DtsClient::modifyDtsJobPassword(const ModifyDtsJobPasswordRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyDtsJobPasswordOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyDtsJobPasswordOutcome(ModifyDtsJobPasswordResult(outcome.result())); - else - return ModifyDtsJobPasswordOutcome(outcome.error()); -} - -void DtsClient::modifyDtsJobPasswordAsync(const ModifyDtsJobPasswordRequest& request, const ModifyDtsJobPasswordAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyDtsJobPassword(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifyDtsJobPasswordOutcomeCallable DtsClient::modifyDtsJobPasswordCallable(const ModifyDtsJobPasswordRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyDtsJobPassword(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifySubscriptionOutcome DtsClient::modifySubscription(const ModifySubscriptionRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySubscriptionOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySubscriptionOutcome(ModifySubscriptionResult(outcome.result())); - else - return ModifySubscriptionOutcome(outcome.error()); -} - -void DtsClient::modifySubscriptionAsync(const ModifySubscriptionRequest& request, const ModifySubscriptionAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySubscription(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifySubscriptionOutcomeCallable DtsClient::modifySubscriptionCallable(const ModifySubscriptionRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySubscription(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ModifySubscriptionObjectOutcome DtsClient::modifySubscriptionObject(const ModifySubscriptionObjectRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySubscriptionObjectOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySubscriptionObjectOutcome(ModifySubscriptionObjectResult(outcome.result())); - else - return ModifySubscriptionObjectOutcome(outcome.error()); -} - -void DtsClient::modifySubscriptionObjectAsync(const ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySubscriptionObject(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ModifySubscriptionObjectOutcomeCallable DtsClient::modifySubscriptionObjectCallable(const ModifySubscriptionObjectRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySubscriptionObject(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::ModifySynchronizationObjectOutcome DtsClient::modifySynchronizationObject(const ModifySynchronizationObjectRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,78 +411,6 @@ DtsClient::ModifySynchronizationObjectOutcomeCallable DtsClient::modifySynchroni return task->get_future(); } -DtsClient::RenewInstanceOutcome DtsClient::renewInstance(const RenewInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RenewInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RenewInstanceOutcome(RenewInstanceResult(outcome.result())); - else - return RenewInstanceOutcome(outcome.error()); -} - -void DtsClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, renewInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::RenewInstanceOutcomeCallable DtsClient::renewInstanceCallable(const RenewInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->renewInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::ResetDtsJobOutcome DtsClient::resetDtsJob(const ResetDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ResetDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ResetDtsJobOutcome(ResetDtsJobResult(outcome.result())); - else - return ResetDtsJobOutcome(outcome.error()); -} - -void DtsClient::resetDtsJobAsync(const ResetDtsJobRequest& request, const ResetDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, resetDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ResetDtsJobOutcomeCallable DtsClient::resetDtsJobCallable(const ResetDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->resetDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::ResetSynchronizationJobOutcome DtsClient::resetSynchronizationJob(const ResetSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,222 +447,6 @@ DtsClient::ResetSynchronizationJobOutcomeCallable DtsClient::resetSynchronizatio return task->get_future(); } -DtsClient::ShieldPrecheckOutcome DtsClient::shieldPrecheck(const ShieldPrecheckRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ShieldPrecheckOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ShieldPrecheckOutcome(ShieldPrecheckResult(outcome.result())); - else - return ShieldPrecheckOutcome(outcome.error()); -} - -void DtsClient::shieldPrecheckAsync(const ShieldPrecheckRequest& request, const ShieldPrecheckAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, shieldPrecheck(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::ShieldPrecheckOutcomeCallable DtsClient::shieldPrecheckCallable(const ShieldPrecheckRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->shieldPrecheck(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::SkipPreCheckOutcome DtsClient::skipPreCheck(const SkipPreCheckRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SkipPreCheckOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SkipPreCheckOutcome(SkipPreCheckResult(outcome.result())); - else - return SkipPreCheckOutcome(outcome.error()); -} - -void DtsClient::skipPreCheckAsync(const SkipPreCheckRequest& request, const SkipPreCheckAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, skipPreCheck(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SkipPreCheckOutcomeCallable DtsClient::skipPreCheckCallable(const SkipPreCheckRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->skipPreCheck(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StartDtsJobOutcome DtsClient::startDtsJob(const StartDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartDtsJobOutcome(StartDtsJobResult(outcome.result())); - else - return StartDtsJobOutcome(outcome.error()); -} - -void DtsClient::startDtsJobAsync(const StartDtsJobRequest& request, const StartDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StartDtsJobOutcomeCallable DtsClient::startDtsJobCallable(const StartDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StartDtsJobsOutcome DtsClient::startDtsJobs(const StartDtsJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartDtsJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartDtsJobsOutcome(StartDtsJobsResult(outcome.result())); - else - return StartDtsJobsOutcome(outcome.error()); -} - -void DtsClient::startDtsJobsAsync(const StartDtsJobsRequest& request, const StartDtsJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startDtsJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StartDtsJobsOutcomeCallable DtsClient::startDtsJobsCallable(const StartDtsJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startDtsJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StartMigrationJobOutcome DtsClient::startMigrationJob(const StartMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartMigrationJobOutcome(StartMigrationJobResult(outcome.result())); - else - return StartMigrationJobOutcome(outcome.error()); -} - -void DtsClient::startMigrationJobAsync(const StartMigrationJobRequest& request, const StartMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StartMigrationJobOutcomeCallable DtsClient::startMigrationJobCallable(const StartMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StartSubscriptionInstanceOutcome DtsClient::startSubscriptionInstance(const StartSubscriptionInstanceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StartSubscriptionInstanceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StartSubscriptionInstanceOutcome(StartSubscriptionInstanceResult(outcome.result())); - else - return StartSubscriptionInstanceOutcome(outcome.error()); -} - -void DtsClient::startSubscriptionInstanceAsync(const StartSubscriptionInstanceRequest& request, const StartSubscriptionInstanceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, startSubscriptionInstance(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StartSubscriptionInstanceOutcomeCallable DtsClient::startSubscriptionInstanceCallable(const StartSubscriptionInstanceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->startSubscriptionInstance(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::StartSynchronizationJobOutcome DtsClient::startSynchronizationJob(const StartSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,294 +483,6 @@ DtsClient::StartSynchronizationJobOutcomeCallable DtsClient::startSynchronizatio return task->get_future(); } -DtsClient::StopDedicatedClusterOutcome DtsClient::stopDedicatedCluster(const StopDedicatedClusterRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopDedicatedClusterOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopDedicatedClusterOutcome(StopDedicatedClusterResult(outcome.result())); - else - return StopDedicatedClusterOutcome(outcome.error()); -} - -void DtsClient::stopDedicatedClusterAsync(const StopDedicatedClusterRequest& request, const StopDedicatedClusterAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopDedicatedCluster(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StopDedicatedClusterOutcomeCallable DtsClient::stopDedicatedClusterCallable(const StopDedicatedClusterRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopDedicatedCluster(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StopDtsJobOutcome DtsClient::stopDtsJob(const StopDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopDtsJobOutcome(StopDtsJobResult(outcome.result())); - else - return StopDtsJobOutcome(outcome.error()); -} - -void DtsClient::stopDtsJobAsync(const StopDtsJobRequest& request, const StopDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StopDtsJobOutcomeCallable DtsClient::stopDtsJobCallable(const StopDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StopDtsJobsOutcome DtsClient::stopDtsJobs(const StopDtsJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopDtsJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopDtsJobsOutcome(StopDtsJobsResult(outcome.result())); - else - return StopDtsJobsOutcome(outcome.error()); -} - -void DtsClient::stopDtsJobsAsync(const StopDtsJobsRequest& request, const StopDtsJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopDtsJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StopDtsJobsOutcomeCallable DtsClient::stopDtsJobsCallable(const StopDtsJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopDtsJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::StopMigrationJobOutcome DtsClient::stopMigrationJob(const StopMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopMigrationJobOutcome(StopMigrationJobResult(outcome.result())); - else - return StopMigrationJobOutcome(outcome.error()); -} - -void DtsClient::stopMigrationJobAsync(const StopMigrationJobRequest& request, const StopMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::StopMigrationJobOutcomeCallable DtsClient::stopMigrationJobCallable(const StopMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::SummaryJobDetailOutcome DtsClient::summaryJobDetail(const SummaryJobDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SummaryJobDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SummaryJobDetailOutcome(SummaryJobDetailResult(outcome.result())); - else - return SummaryJobDetailOutcome(outcome.error()); -} - -void DtsClient::summaryJobDetailAsync(const SummaryJobDetailRequest& request, const SummaryJobDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, summaryJobDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SummaryJobDetailOutcomeCallable DtsClient::summaryJobDetailCallable(const SummaryJobDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->summaryJobDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::SuspendDtsJobOutcome DtsClient::suspendDtsJob(const SuspendDtsJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SuspendDtsJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SuspendDtsJobOutcome(SuspendDtsJobResult(outcome.result())); - else - return SuspendDtsJobOutcome(outcome.error()); -} - -void DtsClient::suspendDtsJobAsync(const SuspendDtsJobRequest& request, const SuspendDtsJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, suspendDtsJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SuspendDtsJobOutcomeCallable DtsClient::suspendDtsJobCallable(const SuspendDtsJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->suspendDtsJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::SuspendDtsJobsOutcome DtsClient::suspendDtsJobs(const SuspendDtsJobsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SuspendDtsJobsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SuspendDtsJobsOutcome(SuspendDtsJobsResult(outcome.result())); - else - return SuspendDtsJobsOutcome(outcome.error()); -} - -void DtsClient::suspendDtsJobsAsync(const SuspendDtsJobsRequest& request, const SuspendDtsJobsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, suspendDtsJobs(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SuspendDtsJobsOutcomeCallable DtsClient::suspendDtsJobsCallable(const SuspendDtsJobsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->suspendDtsJobs(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::SuspendMigrationJobOutcome DtsClient::suspendMigrationJob(const SuspendMigrationJobRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SuspendMigrationJobOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SuspendMigrationJobOutcome(SuspendMigrationJobResult(outcome.result())); - else - return SuspendMigrationJobOutcome(outcome.error()); -} - -void DtsClient::suspendMigrationJobAsync(const SuspendMigrationJobRequest& request, const SuspendMigrationJobAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, suspendMigrationJob(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SuspendMigrationJobOutcomeCallable DtsClient::suspendMigrationJobCallable(const SuspendMigrationJobRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->suspendMigrationJob(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::SuspendSynchronizationJobOutcome DtsClient::suspendSynchronizationJob(const SuspendSynchronizationJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,42 +519,6 @@ DtsClient::SuspendSynchronizationJobOutcomeCallable DtsClient::suspendSynchroniz return task->get_future(); } -DtsClient::SwitchPhysicalDtsJobToCloudOutcome DtsClient::switchPhysicalDtsJobToCloud(const SwitchPhysicalDtsJobToCloudRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return SwitchPhysicalDtsJobToCloudOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return SwitchPhysicalDtsJobToCloudOutcome(SwitchPhysicalDtsJobToCloudResult(outcome.result())); - else - return SwitchPhysicalDtsJobToCloudOutcome(outcome.error()); -} - -void DtsClient::switchPhysicalDtsJobToCloudAsync(const SwitchPhysicalDtsJobToCloudRequest& request, const SwitchPhysicalDtsJobToCloudAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, switchPhysicalDtsJobToCloud(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::SwitchPhysicalDtsJobToCloudOutcomeCallable DtsClient::switchPhysicalDtsJobToCloudCallable(const SwitchPhysicalDtsJobToCloudRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->switchPhysicalDtsJobToCloud(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - DtsClient::SwitchSynchronizationEndpointOutcome DtsClient::switchSynchronizationEndpoint(const SwitchSynchronizationEndpointRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3615,219 +555,3 @@ DtsClient::SwitchSynchronizationEndpointOutcomeCallable DtsClient::switchSynchro return task->get_future(); } -DtsClient::TagResourcesOutcome DtsClient::tagResources(const TagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TagResourcesOutcome(TagResourcesResult(outcome.result())); - else - return TagResourcesOutcome(outcome.error()); -} - -void DtsClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, tagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::TagResourcesOutcomeCallable DtsClient::tagResourcesCallable(const TagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->tagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::TransferInstanceClassOutcome DtsClient::transferInstanceClass(const TransferInstanceClassRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TransferInstanceClassOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TransferInstanceClassOutcome(TransferInstanceClassResult(outcome.result())); - else - return TransferInstanceClassOutcome(outcome.error()); -} - -void DtsClient::transferInstanceClassAsync(const TransferInstanceClassRequest& request, const TransferInstanceClassAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, transferInstanceClass(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::TransferInstanceClassOutcomeCallable DtsClient::transferInstanceClassCallable(const TransferInstanceClassRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->transferInstanceClass(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::TransferPayTypeOutcome DtsClient::transferPayType(const TransferPayTypeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TransferPayTypeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TransferPayTypeOutcome(TransferPayTypeResult(outcome.result())); - else - return TransferPayTypeOutcome(outcome.error()); -} - -void DtsClient::transferPayTypeAsync(const TransferPayTypeRequest& request, const TransferPayTypeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, transferPayType(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::TransferPayTypeOutcomeCallable DtsClient::transferPayTypeCallable(const TransferPayTypeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->transferPayType(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::UntagResourcesOutcome DtsClient::untagResources(const UntagResourcesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UntagResourcesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); - else - return UntagResourcesOutcome(outcome.error()); -} - -void DtsClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, untagResources(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::UntagResourcesOutcomeCallable DtsClient::untagResourcesCallable(const UntagResourcesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->untagResources(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::UpgradeTwoWayOutcome DtsClient::upgradeTwoWay(const UpgradeTwoWayRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpgradeTwoWayOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpgradeTwoWayOutcome(UpgradeTwoWayResult(outcome.result())); - else - return UpgradeTwoWayOutcome(outcome.error()); -} - -void DtsClient::upgradeTwoWayAsync(const UpgradeTwoWayRequest& request, const UpgradeTwoWayAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, upgradeTwoWay(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::UpgradeTwoWayOutcomeCallable DtsClient::upgradeTwoWayCallable(const UpgradeTwoWayRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->upgradeTwoWay(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -DtsClient::WhiteIpListOutcome DtsClient::whiteIpList(const WhiteIpListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return WhiteIpListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return WhiteIpListOutcome(WhiteIpListResult(outcome.result())); - else - return WhiteIpListOutcome(outcome.error()); -} - -void DtsClient::whiteIpListAsync(const WhiteIpListRequest& request, const WhiteIpListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, whiteIpList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -DtsClient::WhiteIpListOutcomeCallable DtsClient::whiteIpListCallable(const WhiteIpListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->whiteIpList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/dts/src/model/ConfigureDtsJobRequest.cc b/dts/src/model/ConfigureDtsJobRequest.cc deleted file mode 100644 index 9e10c9bf8..000000000 --- a/dts/src/model/ConfigureDtsJobRequest.cc +++ /dev/null @@ -1,423 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureDtsJobRequest; - -ConfigureDtsJobRequest::ConfigureDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureDtsJobRequest::~ConfigureDtsJobRequest() {} - -std::string ConfigureDtsJobRequest::getCheckpoint() const { - return checkpoint_; -} - -void ConfigureDtsJobRequest::setCheckpoint(const std::string &checkpoint) { - checkpoint_ = checkpoint; - setParameter(std::string("Checkpoint"), checkpoint); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointUserName() const { - return sourceEndpointUserName_; -} - -void ConfigureDtsJobRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); -} - -std::string ConfigureDtsJobRequest::getDelayPhone() const { - return delayPhone_; -} - -void ConfigureDtsJobRequest::setDelayPhone(const std::string &delayPhone) { - delayPhone_ = delayPhone; - setParameter(std::string("DelayPhone"), delayPhone); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointIP() const { - return sourceEndpointIP_; -} - -void ConfigureDtsJobRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { - sourceEndpointIP_ = sourceEndpointIP; - setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); -} - -std::string ConfigureDtsJobRequest::getErrorPhone() const { - return errorPhone_; -} - -void ConfigureDtsJobRequest::setErrorPhone(const std::string &errorPhone) { - errorPhone_ = errorPhone; - setParameter(std::string("ErrorPhone"), errorPhone); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointUserName() const { - return destinationEndpointUserName_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) { - destinationEndpointUserName_ = destinationEndpointUserName; - setParameter(std::string("DestinationEndpointUserName"), destinationEndpointUserName); -} - -std::string ConfigureDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ConfigureDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ConfigureDtsJobRequest::getDbList() const { - return dbList_; -} - -void ConfigureDtsJobRequest::setDbList(const std::string &dbList) { - dbList_ = dbList; - setBodyParameter(std::string("DbList"), dbList); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointOracleSID() const { - return destinationEndpointOracleSID_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID) { - destinationEndpointOracleSID_ = destinationEndpointOracleSID; - setParameter(std::string("DestinationEndpointOracleSID"), destinationEndpointOracleSID); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointPort() const { - return destinationEndpointPort_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointPort(const std::string &destinationEndpointPort) { - destinationEndpointPort_ = destinationEndpointPort; - setParameter(std::string("DestinationEndpointPort"), destinationEndpointPort); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointPassword() const { - return sourceEndpointPassword_; -} - -void ConfigureDtsJobRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); -} - -std::string ConfigureDtsJobRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureDtsJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ConfigureDtsJobRequest::getJobType() const { - return jobType_; -} - -void ConfigureDtsJobRequest::setJobType(const std::string &jobType) { - jobType_ = jobType; - setParameter(std::string("JobType"), jobType); -} - -long ConfigureDtsJobRequest::getDelayRuleTime() const { - return delayRuleTime_; -} - -void ConfigureDtsJobRequest::setDelayRuleTime(long delayRuleTime) { - delayRuleTime_ = delayRuleTime; - setParameter(std::string("DelayRuleTime"), std::to_string(delayRuleTime)); -} - -bool ConfigureDtsJobRequest::getDisasterRecoveryJob() const { - return disasterRecoveryJob_; -} - -void ConfigureDtsJobRequest::setDisasterRecoveryJob(bool disasterRecoveryJob) { - disasterRecoveryJob_ = disasterRecoveryJob; - setParameter(std::string("DisasterRecoveryJob"), disasterRecoveryJob ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointIP() const { - return destinationEndpointIP_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointIP(const std::string &destinationEndpointIP) { - destinationEndpointIP_ = destinationEndpointIP; - setParameter(std::string("DestinationEndpointIP"), destinationEndpointIP); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void ConfigureDtsJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); -} - -std::string ConfigureDtsJobRequest::getDtsJobName() const { - return dtsJobName_; -} - -void ConfigureDtsJobRequest::setDtsJobName(const std::string &dtsJobName) { - dtsJobName_ = dtsJobName; - setParameter(std::string("DtsJobName"), dtsJobName); -} - -std::string ConfigureDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ConfigureDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string ConfigureDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void ConfigureDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointRegion() const { - return sourceEndpointRegion_; -} - -void ConfigureDtsJobRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); -} - -bool ConfigureDtsJobRequest::getDelayNotice() const { - return delayNotice_; -} - -void ConfigureDtsJobRequest::setDelayNotice(bool delayNotice) { - delayNotice_ = delayNotice; - setParameter(std::string("DelayNotice"), delayNotice ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointInstanceType() const { - return destinationEndpointInstanceType_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) { - destinationEndpointInstanceType_ = destinationEndpointInstanceType; - setParameter(std::string("DestinationEndpointInstanceType"), destinationEndpointInstanceType); -} - -bool ConfigureDtsJobRequest::getDataInitialization() const { - return dataInitialization_; -} - -void ConfigureDtsJobRequest::setDataInitialization(bool dataInitialization) { - dataInitialization_ = dataInitialization; - setParameter(std::string("DataInitialization"), dataInitialization ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointInstanceID() const { - return sourceEndpointInstanceID_; -} - -void ConfigureDtsJobRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); -} - -bool ConfigureDtsJobRequest::getStructureInitialization() const { - return structureInitialization_; -} - -void ConfigureDtsJobRequest::setStructureInitialization(bool structureInitialization) { - structureInitialization_ = structureInitialization; - setParameter(std::string("StructureInitialization"), structureInitialization ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointOwnerID() const { - return sourceEndpointOwnerID_; -} - -void ConfigureDtsJobRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) { - sourceEndpointOwnerID_ = sourceEndpointOwnerID; - setParameter(std::string("SourceEndpointOwnerID"), sourceEndpointOwnerID); -} - -std::string ConfigureDtsJobRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void ConfigureDtsJobRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void ConfigureDtsJobRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointRegion() const { - return destinationEndpointRegion_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) { - destinationEndpointRegion_ = destinationEndpointRegion; - setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion); -} - -std::string ConfigureDtsJobRequest::getDataCheckConfigure() const { - return dataCheckConfigure_; -} - -void ConfigureDtsJobRequest::setDataCheckConfigure(const std::string &dataCheckConfigure) { - dataCheckConfigure_ = dataCheckConfigure; - setParameter(std::string("DataCheckConfigure"), dataCheckConfigure); -} - -std::string ConfigureDtsJobRequest::getRegionId() const { - return regionId_; -} - -void ConfigureDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureDtsJobRequest::getReserve() const { - return reserve_; -} - -void ConfigureDtsJobRequest::setReserve(const std::string &reserve) { - reserve_ = reserve; - setBodyParameter(std::string("Reserve"), reserve); -} - -bool ConfigureDtsJobRequest::getDataSynchronization() const { - return dataSynchronization_; -} - -void ConfigureDtsJobRequest::setDataSynchronization(bool dataSynchronization) { - dataSynchronization_ = dataSynchronization; - setParameter(std::string("DataSynchronization"), dataSynchronization ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getFileOssUrl() const { - return fileOssUrl_; -} - -void ConfigureDtsJobRequest::setFileOssUrl(const std::string &fileOssUrl) { - fileOssUrl_ = fileOssUrl; - setParameter(std::string("FileOssUrl"), fileOssUrl); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointEngineName() const { - return destinationEndpointEngineName_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName) { - destinationEndpointEngineName_ = destinationEndpointEngineName; - setParameter(std::string("DestinationEndpointEngineName"), destinationEndpointEngineName); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointInstanceID() const { - return destinationEndpointInstanceID_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) { - destinationEndpointInstanceID_ = destinationEndpointInstanceID; - setParameter(std::string("DestinationEndpointInstanceID"), destinationEndpointInstanceID); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointPort() const { - return sourceEndpointPort_; -} - -void ConfigureDtsJobRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) { - sourceEndpointPort_ = sourceEndpointPort; - setParameter(std::string("SourceEndpointPort"), sourceEndpointPort); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointOracleSID() const { - return sourceEndpointOracleSID_; -} - -void ConfigureDtsJobRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointDataBaseName() const { - return destinationEndpointDataBaseName_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName) { - destinationEndpointDataBaseName_ = destinationEndpointDataBaseName; - setParameter(std::string("DestinationEndpointDataBaseName"), destinationEndpointDataBaseName); -} - -bool ConfigureDtsJobRequest::getErrorNotice() const { - return errorNotice_; -} - -void ConfigureDtsJobRequest::setErrorNotice(bool errorNotice) { - errorNotice_ = errorNotice; - setParameter(std::string("ErrorNotice"), errorNotice ? "true" : "false"); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointRole() const { - return sourceEndpointRole_; -} - -void ConfigureDtsJobRequest::setSourceEndpointRole(const std::string &sourceEndpointRole) { - sourceEndpointRole_ = sourceEndpointRole; - setParameter(std::string("SourceEndpointRole"), sourceEndpointRole); -} - -std::string ConfigureDtsJobRequest::getDestinationEndpointPassword() const { - return destinationEndpointPassword_; -} - -void ConfigureDtsJobRequest::setDestinationEndpointPassword(const std::string &destinationEndpointPassword) { - destinationEndpointPassword_ = destinationEndpointPassword; - setParameter(std::string("DestinationEndpointPassword"), destinationEndpointPassword); -} - -std::string ConfigureDtsJobRequest::getSourceEndpointEngineName() const { - return sourceEndpointEngineName_; -} - -void ConfigureDtsJobRequest::setSourceEndpointEngineName(const std::string &sourceEndpointEngineName) { - sourceEndpointEngineName_ = sourceEndpointEngineName; - setParameter(std::string("SourceEndpointEngineName"), sourceEndpointEngineName); -} - diff --git a/dts/src/model/ConfigureDtsJobResult.cc b/dts/src/model/ConfigureDtsJobResult.cc deleted file mode 100644 index e82bfaa76..000000000 --- a/dts/src/model/ConfigureDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureDtsJobResult::ConfigureDtsJobResult() : - ServiceResult() -{} - -ConfigureDtsJobResult::ConfigureDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureDtsJobResult::~ConfigureDtsJobResult() -{} - -void ConfigureDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["DtsInstanceId"].isNull()) - dtsInstanceId_ = value["DtsInstanceId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureDtsJobResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string ConfigureDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ConfigureDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureDtsJobResult::getDtsInstanceId()const -{ - return dtsInstanceId_; -} - -std::string ConfigureDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureMigrationJobAlertRequest.cc b/dts/src/model/ConfigureMigrationJobAlertRequest.cc deleted file mode 100644 index 9e467cbcc..000000000 --- a/dts/src/model/ConfigureMigrationJobAlertRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureMigrationJobAlertRequest; - -ConfigureMigrationJobAlertRequest::ConfigureMigrationJobAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureMigrationJobAlert") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureMigrationJobAlertRequest::~ConfigureMigrationJobAlertRequest() {} - -std::string ConfigureMigrationJobAlertRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void ConfigureMigrationJobAlertRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string ConfigureMigrationJobAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureMigrationJobAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureMigrationJobAlertRequest::getAccountId() const { - return accountId_; -} - -void ConfigureMigrationJobAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureMigrationJobAlertRequest::getRegionId() const { - return regionId_; -} - -void ConfigureMigrationJobAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureMigrationJobAlertRequest::getDelayAlertPhone() const { - return delayAlertPhone_; -} - -void ConfigureMigrationJobAlertRequest::setDelayAlertPhone(const std::string &delayAlertPhone) { - delayAlertPhone_ = delayAlertPhone; - setParameter(std::string("DelayAlertPhone"), delayAlertPhone); -} - -std::string ConfigureMigrationJobAlertRequest::getDelayOverSeconds() const { - return delayOverSeconds_; -} - -void ConfigureMigrationJobAlertRequest::setDelayOverSeconds(const std::string &delayOverSeconds) { - delayOverSeconds_ = delayOverSeconds; - setParameter(std::string("DelayOverSeconds"), delayOverSeconds); -} - -std::string ConfigureMigrationJobAlertRequest::getDelayAlertStatus() const { - return delayAlertStatus_; -} - -void ConfigureMigrationJobAlertRequest::setDelayAlertStatus(const std::string &delayAlertStatus) { - delayAlertStatus_ = delayAlertStatus; - setParameter(std::string("DelayAlertStatus"), delayAlertStatus); -} - -std::string ConfigureMigrationJobAlertRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureMigrationJobAlertRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ConfigureMigrationJobAlertRequest::getErrorAlertPhone() const { - return errorAlertPhone_; -} - -void ConfigureMigrationJobAlertRequest::setErrorAlertPhone(const std::string &errorAlertPhone) { - errorAlertPhone_ = errorAlertPhone; - setParameter(std::string("ErrorAlertPhone"), errorAlertPhone); -} - -std::string ConfigureMigrationJobAlertRequest::getErrorAlertStatus() const { - return errorAlertStatus_; -} - -void ConfigureMigrationJobAlertRequest::setErrorAlertStatus(const std::string &errorAlertStatus) { - errorAlertStatus_ = errorAlertStatus; - setParameter(std::string("ErrorAlertStatus"), errorAlertStatus); -} - diff --git a/dts/src/model/ConfigureMigrationJobAlertResult.cc b/dts/src/model/ConfigureMigrationJobAlertResult.cc deleted file mode 100644 index 9bf1c1a83..000000000 --- a/dts/src/model/ConfigureMigrationJobAlertResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureMigrationJobAlertResult::ConfigureMigrationJobAlertResult() : - ServiceResult() -{} - -ConfigureMigrationJobAlertResult::ConfigureMigrationJobAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureMigrationJobAlertResult::~ConfigureMigrationJobAlertResult() -{} - -void ConfigureMigrationJobAlertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureMigrationJobAlertResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureMigrationJobAlertResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureMigrationJobAlertResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureMigrationJobRequest.cc b/dts/src/model/ConfigureMigrationJobRequest.cc deleted file mode 100644 index 5945e3efb..000000000 --- a/dts/src/model/ConfigureMigrationJobRequest.cc +++ /dev/null @@ -1,333 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureMigrationJobRequest; - -ConfigureMigrationJobRequest::ConfigureMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureMigrationJobRequest::~ConfigureMigrationJobRequest() {} - -std::string ConfigureMigrationJobRequest::getSourceEndpointInstanceID() const { - return sourceEndpointInstanceID_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter(std::string("SourceEndpoint.InstanceID"), sourceEndpointInstanceID); -} - -std::string ConfigureMigrationJobRequest::getCheckpoint() const { - return checkpoint_; -} - -void ConfigureMigrationJobRequest::setCheckpoint(const std::string &checkpoint) { - checkpoint_ = checkpoint; - setParameter(std::string("Checkpoint"), checkpoint); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointInstanceID() const { - return destinationEndpointInstanceID_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) { - destinationEndpointInstanceID_ = destinationEndpointInstanceID; - setParameter(std::string("DestinationEndpoint.InstanceID"), destinationEndpointInstanceID); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointIP() const { - return sourceEndpointIP_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { - sourceEndpointIP_ = sourceEndpointIP; - setParameter(std::string("SourceEndpoint.IP"), sourceEndpointIP); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointPassword() const { - return destinationEndpointPassword_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointPassword(const std::string &destinationEndpointPassword) { - destinationEndpointPassword_ = destinationEndpointPassword; - setParameter(std::string("DestinationEndpoint.Password"), destinationEndpointPassword); -} - -bool ConfigureMigrationJobRequest::getMigrationModeDataIntialization() const { - return migrationModeDataIntialization_; -} - -void ConfigureMigrationJobRequest::setMigrationModeDataIntialization(bool migrationModeDataIntialization) { - migrationModeDataIntialization_ = migrationModeDataIntialization; - setParameter(std::string("MigrationMode.DataIntialization"), migrationModeDataIntialization ? "true" : "false"); -} - -std::string ConfigureMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void ConfigureMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -bool ConfigureMigrationJobRequest::getMigrationModeStructureIntialization() const { - return migrationModeStructureIntialization_; -} - -void ConfigureMigrationJobRequest::setMigrationModeStructureIntialization(bool migrationModeStructureIntialization) { - migrationModeStructureIntialization_ = migrationModeStructureIntialization; - setParameter(std::string("MigrationMode.StructureIntialization"), migrationModeStructureIntialization ? "true" : "false"); -} - -bool ConfigureMigrationJobRequest::getMigrationModeDataSynchronization() const { - return migrationModeDataSynchronization_; -} - -void ConfigureMigrationJobRequest::setMigrationModeDataSynchronization(bool migrationModeDataSynchronization) { - migrationModeDataSynchronization_ = migrationModeDataSynchronization; - setParameter(std::string("MigrationMode.DataSynchronization"), migrationModeDataSynchronization ? "true" : "false"); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointRegion() const { - return destinationEndpointRegion_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) { - destinationEndpointRegion_ = destinationEndpointRegion; - setParameter(std::string("DestinationEndpoint.Region"), destinationEndpointRegion); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointUserName() const { - return sourceEndpointUserName_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter(std::string("SourceEndpoint.UserName"), sourceEndpointUserName); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpoint.DatabaseName"), sourceEndpointDatabaseName); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointPort() const { - return sourceEndpointPort_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) { - sourceEndpointPort_ = sourceEndpointPort; - setParameter(std::string("SourceEndpoint.Port"), sourceEndpointPort); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointOwnerID() const { - return sourceEndpointOwnerID_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) { - sourceEndpointOwnerID_ = sourceEndpointOwnerID; - setParameter(std::string("SourceEndpoint.OwnerID"), sourceEndpointOwnerID); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointPort() const { - return destinationEndpointPort_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointPort(const std::string &destinationEndpointPort) { - destinationEndpointPort_ = destinationEndpointPort; - setParameter(std::string("DestinationEndpoint.Port"), destinationEndpointPort); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointRole() const { - return sourceEndpointRole_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointRole(const std::string &sourceEndpointRole) { - sourceEndpointRole_ = sourceEndpointRole; - setParameter(std::string("SourceEndpoint.Role"), sourceEndpointRole); -} - -std::string ConfigureMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointPassword() const { - return sourceEndpointPassword_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter(std::string("SourceEndpoint.Password"), sourceEndpointPassword); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointIP() const { - return destinationEndpointIP_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointIP(const std::string &destinationEndpointIP) { - destinationEndpointIP_ = destinationEndpointIP; - setParameter(std::string("DestinationEndpoint.IP"), destinationEndpointIP); -} - -std::string ConfigureMigrationJobRequest::getMigrationJobName() const { - return migrationJobName_; -} - -void ConfigureMigrationJobRequest::setMigrationJobName(const std::string &migrationJobName) { - migrationJobName_ = migrationJobName; - setParameter(std::string("MigrationJobName"), migrationJobName); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointInstanceType() const { - return destinationEndpointInstanceType_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) { - destinationEndpointInstanceType_ = destinationEndpointInstanceType; - setParameter(std::string("DestinationEndpoint.InstanceType"), destinationEndpointInstanceType); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointEngineName() const { - return sourceEndpointEngineName_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointEngineName(const std::string &sourceEndpointEngineName) { - sourceEndpointEngineName_ = sourceEndpointEngineName; - setParameter(std::string("SourceEndpoint.EngineName"), sourceEndpointEngineName); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointOracleSID() const { - return sourceEndpointOracleSID_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter(std::string("SourceEndpoint.OracleSID"), sourceEndpointOracleSID); -} - -std::string ConfigureMigrationJobRequest::getMigrationObject() const { - return migrationObject_; -} - -void ConfigureMigrationJobRequest::setMigrationObject(const std::string &migrationObject) { - migrationObject_ = migrationObject; - setBodyParameter(std::string("MigrationObject"), migrationObject); -} - -std::string ConfigureMigrationJobRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void ConfigureMigrationJobRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointEngineName() const { - return destinationEndpointEngineName_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName) { - destinationEndpointEngineName_ = destinationEndpointEngineName; - setParameter(std::string("DestinationEndpoint.EngineName"), destinationEndpointEngineName); -} - -std::string ConfigureMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void ConfigureMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointUserName() const { - return destinationEndpointUserName_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) { - destinationEndpointUserName_ = destinationEndpointUserName; - setParameter(std::string("DestinationEndpoint.UserName"), destinationEndpointUserName); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointOracleSID() const { - return destinationEndpointOracleSID_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID) { - destinationEndpointOracleSID_ = destinationEndpointOracleSID; - setParameter(std::string("DestinationEndpoint.OracleSID"), destinationEndpointOracleSID); -} - -std::string ConfigureMigrationJobRequest::getSourceEndpointRegion() const { - return sourceEndpointRegion_; -} - -void ConfigureMigrationJobRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter(std::string("SourceEndpoint.Region"), sourceEndpointRegion); -} - -std::string ConfigureMigrationJobRequest::getDestinationEndpointDataBaseName() const { - return destinationEndpointDataBaseName_; -} - -void ConfigureMigrationJobRequest::setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName) { - destinationEndpointDataBaseName_ = destinationEndpointDataBaseName; - setParameter(std::string("DestinationEndpoint.DataBaseName"), destinationEndpointDataBaseName); -} - -std::string ConfigureMigrationJobRequest::getMigrationReserved() const { - return migrationReserved_; -} - -void ConfigureMigrationJobRequest::setMigrationReserved(const std::string &migrationReserved) { - migrationReserved_ = migrationReserved; - setParameter(std::string("MigrationReserved"), migrationReserved); -} - diff --git a/dts/src/model/ConfigureMigrationJobResult.cc b/dts/src/model/ConfigureMigrationJobResult.cc deleted file mode 100644 index 323504115..000000000 --- a/dts/src/model/ConfigureMigrationJobResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureMigrationJobResult::ConfigureMigrationJobResult() : - ServiceResult() -{} - -ConfigureMigrationJobResult::ConfigureMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureMigrationJobResult::~ConfigureMigrationJobResult() -{} - -void ConfigureMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureSubscriptionInstanceAlertRequest.cc b/dts/src/model/ConfigureSubscriptionInstanceAlertRequest.cc deleted file mode 100644 index c82c3212d..000000000 --- a/dts/src/model/ConfigureSubscriptionInstanceAlertRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureSubscriptionInstanceAlertRequest; - -ConfigureSubscriptionInstanceAlertRequest::ConfigureSubscriptionInstanceAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSubscriptionInstanceAlert") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureSubscriptionInstanceAlertRequest::~ConfigureSubscriptionInstanceAlertRequest() {} - -std::string ConfigureSubscriptionInstanceAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getAccountId() const { - return accountId_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getDelayAlertPhone() const { - return delayAlertPhone_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setDelayAlertPhone(const std::string &delayAlertPhone) { - delayAlertPhone_ = delayAlertPhone; - setParameter(std::string("DelayAlertPhone"), delayAlertPhone); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getDelayOverSeconds() const { - return delayOverSeconds_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setDelayOverSeconds(const std::string &delayOverSeconds) { - delayOverSeconds_ = delayOverSeconds; - setParameter(std::string("DelayOverSeconds"), delayOverSeconds); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getDelayAlertStatus() const { - return delayAlertStatus_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setDelayAlertStatus(const std::string &delayAlertStatus) { - delayAlertStatus_ = delayAlertStatus; - setParameter(std::string("DelayAlertStatus"), delayAlertStatus); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getErrorAlertPhone() const { - return errorAlertPhone_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setErrorAlertPhone(const std::string &errorAlertPhone) { - errorAlertPhone_ = errorAlertPhone; - setParameter(std::string("ErrorAlertPhone"), errorAlertPhone); -} - -std::string ConfigureSubscriptionInstanceAlertRequest::getErrorAlertStatus() const { - return errorAlertStatus_; -} - -void ConfigureSubscriptionInstanceAlertRequest::setErrorAlertStatus(const std::string &errorAlertStatus) { - errorAlertStatus_ = errorAlertStatus; - setParameter(std::string("ErrorAlertStatus"), errorAlertStatus); -} - diff --git a/dts/src/model/ConfigureSubscriptionInstanceAlertResult.cc b/dts/src/model/ConfigureSubscriptionInstanceAlertResult.cc deleted file mode 100644 index 3ec4402be..000000000 --- a/dts/src/model/ConfigureSubscriptionInstanceAlertResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureSubscriptionInstanceAlertResult::ConfigureSubscriptionInstanceAlertResult() : - ServiceResult() -{} - -ConfigureSubscriptionInstanceAlertResult::ConfigureSubscriptionInstanceAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureSubscriptionInstanceAlertResult::~ConfigureSubscriptionInstanceAlertResult() -{} - -void ConfigureSubscriptionInstanceAlertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureSubscriptionInstanceAlertResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureSubscriptionInstanceAlertResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureSubscriptionInstanceAlertResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureSubscriptionInstanceRequest.cc b/dts/src/model/ConfigureSubscriptionInstanceRequest.cc deleted file mode 100644 index 85a80db95..000000000 --- a/dts/src/model/ConfigureSubscriptionInstanceRequest.cc +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureSubscriptionInstanceRequest; - -ConfigureSubscriptionInstanceRequest::ConfigureSubscriptionInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSubscriptionInstance") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureSubscriptionInstanceRequest::~ConfigureSubscriptionInstanceRequest() {} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointInstanceID() const { - return sourceEndpointInstanceID_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter(std::string("SourceEndpoint.InstanceID"), sourceEndpointInstanceID); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointOracleSID() const { - return sourceEndpointOracleSID_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter(std::string("SourceEndpoint.OracleSID"), sourceEndpointOracleSID); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointIP() const { - return sourceEndpointIP_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { - sourceEndpointIP_ = sourceEndpointIP; - setParameter(std::string("SourceEndpoint.IP"), sourceEndpointIP); -} - -bool ConfigureSubscriptionInstanceRequest::getSubscriptionDataTypeDML() const { - return subscriptionDataTypeDML_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionDataTypeDML(bool subscriptionDataTypeDML) { - subscriptionDataTypeDML_ = subscriptionDataTypeDML; - setParameter(std::string("SubscriptionDataType.DML"), subscriptionDataTypeDML ? "true" : "false"); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); -} - -std::string ConfigureSubscriptionInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureSubscriptionInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureSubscriptionInstanceRequest::getAccountId() const { - return accountId_; -} - -void ConfigureSubscriptionInstanceRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureSubscriptionInstanceRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSubscriptionInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionObject() const { - return subscriptionObject_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionObject(const std::string &subscriptionObject) { - subscriptionObject_ = subscriptionObject; - setBodyParameter(std::string("SubscriptionObject"), subscriptionObject); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionInstanceVSwitchId() const { - return subscriptionInstanceVSwitchId_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionInstanceVSwitchId(const std::string &subscriptionInstanceVSwitchId) { - subscriptionInstanceVSwitchId_ = subscriptionInstanceVSwitchId; - setParameter(std::string("SubscriptionInstance.VSwitchId"), subscriptionInstanceVSwitchId); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointUserName() const { - return sourceEndpointUserName_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter(std::string("SourceEndpoint.UserName"), sourceEndpointUserName); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpoint.DatabaseName"), sourceEndpointDatabaseName); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointPort() const { - return sourceEndpointPort_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) { - sourceEndpointPort_ = sourceEndpointPort; - setParameter(std::string("SourceEndpoint.Port"), sourceEndpointPort); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointOwnerID() const { - return sourceEndpointOwnerID_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) { - sourceEndpointOwnerID_ = sourceEndpointOwnerID; - setParameter(std::string("SourceEndpoint.OwnerID"), sourceEndpointOwnerID); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionInstanceVPCId() const { - return subscriptionInstanceVPCId_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionInstanceVPCId(const std::string &subscriptionInstanceVPCId) { - subscriptionInstanceVPCId_ = subscriptionInstanceVPCId; - setParameter(std::string("SubscriptionInstance.VPCId"), subscriptionInstanceVPCId); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionInstanceNetworkType() const { - return subscriptionInstanceNetworkType_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionInstanceNetworkType(const std::string &subscriptionInstanceNetworkType) { - subscriptionInstanceNetworkType_ = subscriptionInstanceNetworkType; - setParameter(std::string("SubscriptionInstanceNetworkType"), subscriptionInstanceNetworkType); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointRole() const { - return sourceEndpointRole_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointRole(const std::string &sourceEndpointRole) { - sourceEndpointRole_ = sourceEndpointRole; - setParameter(std::string("SourceEndpoint.Role"), sourceEndpointRole); -} - -std::string ConfigureSubscriptionInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureSubscriptionInstanceRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -bool ConfigureSubscriptionInstanceRequest::getSubscriptionDataTypeDDL() const { - return subscriptionDataTypeDDL_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL) { - subscriptionDataTypeDDL_ = subscriptionDataTypeDDL; - setParameter(std::string("SubscriptionDataType.DDL"), subscriptionDataTypeDDL ? "true" : "false"); -} - -std::string ConfigureSubscriptionInstanceRequest::getSourceEndpointPassword() const { - return sourceEndpointPassword_; -} - -void ConfigureSubscriptionInstanceRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter(std::string("SourceEndpoint.Password"), sourceEndpointPassword); -} - -std::string ConfigureSubscriptionInstanceRequest::getSubscriptionInstanceName() const { - return subscriptionInstanceName_; -} - -void ConfigureSubscriptionInstanceRequest::setSubscriptionInstanceName(const std::string &subscriptionInstanceName) { - subscriptionInstanceName_ = subscriptionInstanceName; - setParameter(std::string("SubscriptionInstanceName"), subscriptionInstanceName); -} - diff --git a/dts/src/model/ConfigureSubscriptionInstanceResult.cc b/dts/src/model/ConfigureSubscriptionInstanceResult.cc deleted file mode 100644 index 9ef9e44be..000000000 --- a/dts/src/model/ConfigureSubscriptionInstanceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureSubscriptionInstanceResult::ConfigureSubscriptionInstanceResult() : - ServiceResult() -{} - -ConfigureSubscriptionInstanceResult::ConfigureSubscriptionInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureSubscriptionInstanceResult::~ConfigureSubscriptionInstanceResult() -{} - -void ConfigureSubscriptionInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureSubscriptionInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureSubscriptionInstanceResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureSubscriptionInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureSubscriptionRequest.cc b/dts/src/model/ConfigureSubscriptionRequest.cc deleted file mode 100644 index b73e91360..000000000 --- a/dts/src/model/ConfigureSubscriptionRequest.cc +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureSubscriptionRequest; - -ConfigureSubscriptionRequest::ConfigureSubscriptionRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSubscription") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureSubscriptionRequest::~ConfigureSubscriptionRequest() {} - -std::string ConfigureSubscriptionRequest::getSourceEndpointRegion() const { - return sourceEndpointRegion_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); -} - -std::string ConfigureSubscriptionRequest::getCheckpoint() const { - return checkpoint_; -} - -void ConfigureSubscriptionRequest::setCheckpoint(const std::string &checkpoint) { - checkpoint_ = checkpoint; - setParameter(std::string("Checkpoint"), checkpoint); -} - -std::string ConfigureSubscriptionRequest::getSubscriptionInstanceVSwitchId() const { - return subscriptionInstanceVSwitchId_; -} - -void ConfigureSubscriptionRequest::setSubscriptionInstanceVSwitchId(const std::string &subscriptionInstanceVSwitchId) { - subscriptionInstanceVSwitchId_ = subscriptionInstanceVSwitchId; - setParameter(std::string("SubscriptionInstanceVSwitchId"), subscriptionInstanceVSwitchId); -} - -bool ConfigureSubscriptionRequest::getDelayNotice() const { - return delayNotice_; -} - -void ConfigureSubscriptionRequest::setDelayNotice(bool delayNotice) { - delayNotice_ = delayNotice; - setParameter(std::string("DelayNotice"), delayNotice ? "true" : "false"); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointInstanceID() const { - return sourceEndpointInstanceID_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointUserName() const { - return sourceEndpointUserName_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointOwnerID() const { - return sourceEndpointOwnerID_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) { - sourceEndpointOwnerID_ = sourceEndpointOwnerID; - setParameter(std::string("SourceEndpointOwnerID"), sourceEndpointOwnerID); -} - -std::string ConfigureSubscriptionRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void ConfigureSubscriptionRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string ConfigureSubscriptionRequest::getDelayPhone() const { - return delayPhone_; -} - -void ConfigureSubscriptionRequest::setDelayPhone(const std::string &delayPhone) { - delayPhone_ = delayPhone; - setParameter(std::string("DelayPhone"), delayPhone); -} - -bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDML() const { - return subscriptionDataTypeDML_; -} - -void ConfigureSubscriptionRequest::setSubscriptionDataTypeDML(bool subscriptionDataTypeDML) { - subscriptionDataTypeDML_ = subscriptionDataTypeDML; - setParameter(std::string("SubscriptionDataTypeDML"), subscriptionDataTypeDML ? "true" : "false"); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointIP() const { - return sourceEndpointIP_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { - sourceEndpointIP_ = sourceEndpointIP; - setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); -} - -std::string ConfigureSubscriptionRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSubscriptionRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureSubscriptionRequest::getErrorPhone() const { - return errorPhone_; -} - -void ConfigureSubscriptionRequest::setErrorPhone(const std::string &errorPhone) { - errorPhone_ = errorPhone; - setParameter(std::string("ErrorPhone"), errorPhone); -} - -std::string ConfigureSubscriptionRequest::getReserve() const { - return reserve_; -} - -void ConfigureSubscriptionRequest::setReserve(const std::string &reserve) { - reserve_ = reserve; - setParameter(std::string("Reserve"), reserve); -} - -std::string ConfigureSubscriptionRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ConfigureSubscriptionRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ConfigureSubscriptionRequest::getDbList() const { - return dbList_; -} - -void ConfigureSubscriptionRequest::setDbList(const std::string &dbList) { - dbList_ = dbList; - setParameter(std::string("DbList"), dbList); -} - -std::string ConfigureSubscriptionRequest::getSubscriptionInstanceNetworkType() const { - return subscriptionInstanceNetworkType_; -} - -void ConfigureSubscriptionRequest::setSubscriptionInstanceNetworkType(const std::string &subscriptionInstanceNetworkType) { - subscriptionInstanceNetworkType_ = subscriptionInstanceNetworkType; - setParameter(std::string("SubscriptionInstanceNetworkType"), subscriptionInstanceNetworkType); -} - -bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDDL() const { - return subscriptionDataTypeDDL_; -} - -void ConfigureSubscriptionRequest::setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL) { - subscriptionDataTypeDDL_ = subscriptionDataTypeDDL; - setParameter(std::string("SubscriptionDataTypeDDL"), subscriptionDataTypeDDL ? "true" : "false"); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointPassword() const { - return sourceEndpointPassword_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointPort() const { - return sourceEndpointPort_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) { - sourceEndpointPort_ = sourceEndpointPort; - setParameter(std::string("SourceEndpointPort"), sourceEndpointPort); -} - -std::string ConfigureSubscriptionRequest::getSubscriptionInstanceVPCId() const { - return subscriptionInstanceVPCId_; -} - -void ConfigureSubscriptionRequest::setSubscriptionInstanceVPCId(const std::string &subscriptionInstanceVPCId) { - subscriptionInstanceVPCId_ = subscriptionInstanceVPCId; - setParameter(std::string("SubscriptionInstanceVPCId"), subscriptionInstanceVPCId); -} - -long ConfigureSubscriptionRequest::getDelayRuleTime() const { - return delayRuleTime_; -} - -void ConfigureSubscriptionRequest::setDelayRuleTime(long delayRuleTime) { - delayRuleTime_ = delayRuleTime; - setParameter(std::string("DelayRuleTime"), std::to_string(delayRuleTime)); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); -} - -std::string ConfigureSubscriptionRequest::getDtsJobName() const { - return dtsJobName_; -} - -void ConfigureSubscriptionRequest::setDtsJobName(const std::string &dtsJobName) { - dtsJobName_ = dtsJobName; - setParameter(std::string("DtsJobName"), dtsJobName); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointOracleSID() const { - return sourceEndpointOracleSID_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); -} - -bool ConfigureSubscriptionRequest::getErrorNotice() const { - return errorNotice_; -} - -void ConfigureSubscriptionRequest::setErrorNotice(bool errorNotice) { - errorNotice_ = errorNotice; - setParameter(std::string("ErrorNotice"), errorNotice ? "true" : "false"); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointRole() const { - return sourceEndpointRole_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointRole(const std::string &sourceEndpointRole) { - sourceEndpointRole_ = sourceEndpointRole; - setParameter(std::string("SourceEndpointRole"), sourceEndpointRole); -} - -std::string ConfigureSubscriptionRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ConfigureSubscriptionRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string ConfigureSubscriptionRequest::getSourceEndpointEngineName() const { - return sourceEndpointEngineName_; -} - -void ConfigureSubscriptionRequest::setSourceEndpointEngineName(const std::string &sourceEndpointEngineName) { - sourceEndpointEngineName_ = sourceEndpointEngineName; - setParameter(std::string("SourceEndpointEngineName"), sourceEndpointEngineName); -} - diff --git a/dts/src/model/ConfigureSubscriptionResult.cc b/dts/src/model/ConfigureSubscriptionResult.cc deleted file mode 100644 index 08b428364..000000000 --- a/dts/src/model/ConfigureSubscriptionResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureSubscriptionResult::ConfigureSubscriptionResult() : - ServiceResult() -{} - -ConfigureSubscriptionResult::ConfigureSubscriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureSubscriptionResult::~ConfigureSubscriptionResult() -{} - -void ConfigureSubscriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["DtsInstanceId"].isNull()) - dtsInstanceId_ = value["DtsInstanceId"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureSubscriptionResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string ConfigureSubscriptionResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ConfigureSubscriptionResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureSubscriptionResult::getDtsInstanceId()const -{ - return dtsInstanceId_; -} - -std::string ConfigureSubscriptionResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureSubscriptionResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureSynchronizationJobAlertRequest.cc b/dts/src/model/ConfigureSynchronizationJobAlertRequest.cc index fdde3ab46..89b1636fe 100644 --- a/dts/src/model/ConfigureSynchronizationJobAlertRequest.cc +++ b/dts/src/model/ConfigureSynchronizationJobAlertRequest.cc @@ -19,57 +19,12 @@ using AlibabaCloud::Dts::Model::ConfigureSynchronizationJobAlertRequest; ConfigureSynchronizationJobAlertRequest::ConfigureSynchronizationJobAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSynchronizationJobAlert") { + : RpcServiceRequest("dts", "2019-09-01", "ConfigureSynchronizationJobAlert") { setMethod(HttpRequest::Method::Post); } ConfigureSynchronizationJobAlertRequest::~ConfigureSynchronizationJobAlertRequest() {} -std::string ConfigureSynchronizationJobAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureSynchronizationJobAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureSynchronizationJobAlertRequest::getSynchronizationJobId() const { - return synchronizationJobId_; -} - -void ConfigureSynchronizationJobAlertRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { - synchronizationJobId_ = synchronizationJobId; - setParameter(std::string("SynchronizationJobId"), synchronizationJobId); -} - -std::string ConfigureSynchronizationJobAlertRequest::getAccountId() const { - return accountId_; -} - -void ConfigureSynchronizationJobAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureSynchronizationJobAlertRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSynchronizationJobAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureSynchronizationJobAlertRequest::getDelayAlertPhone() const { - return delayAlertPhone_; -} - -void ConfigureSynchronizationJobAlertRequest::setDelayAlertPhone(const std::string &delayAlertPhone) { - delayAlertPhone_ = delayAlertPhone; - setParameter(std::string("DelayAlertPhone"), delayAlertPhone); -} - std::string ConfigureSynchronizationJobAlertRequest::getDelayOverSeconds() const { return delayOverSeconds_; } @@ -97,6 +52,15 @@ void ConfigureSynchronizationJobAlertRequest::setOwnerId(const std::string &owne setParameter(std::string("OwnerId"), ownerId); } +std::string ConfigureSynchronizationJobAlertRequest::getSynchronizationJobId() const { + return synchronizationJobId_; +} + +void ConfigureSynchronizationJobAlertRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { + synchronizationJobId_ = synchronizationJobId; + setParameter(std::string("SynchronizationJobId"), synchronizationJobId); +} + std::string ConfigureSynchronizationJobAlertRequest::getErrorAlertPhone() const { return errorAlertPhone_; } @@ -106,6 +70,15 @@ void ConfigureSynchronizationJobAlertRequest::setErrorAlertPhone(const std::stri setParameter(std::string("ErrorAlertPhone"), errorAlertPhone); } +std::string ConfigureSynchronizationJobAlertRequest::getDelayAlertPhone() const { + return delayAlertPhone_; +} + +void ConfigureSynchronizationJobAlertRequest::setDelayAlertPhone(const std::string &delayAlertPhone) { + delayAlertPhone_ = delayAlertPhone; + setParameter(std::string("DelayAlertPhone"), delayAlertPhone); +} + std::string ConfigureSynchronizationJobAlertRequest::getErrorAlertStatus() const { return errorAlertStatus_; } diff --git a/dts/src/model/ConfigureSynchronizationJobReplicatorCompareRequest.cc b/dts/src/model/ConfigureSynchronizationJobReplicatorCompareRequest.cc deleted file mode 100644 index 784457d17..000000000 --- a/dts/src/model/ConfigureSynchronizationJobReplicatorCompareRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ConfigureSynchronizationJobReplicatorCompareRequest; - -ConfigureSynchronizationJobReplicatorCompareRequest::ConfigureSynchronizationJobReplicatorCompareRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSynchronizationJobReplicatorCompare") { - setMethod(HttpRequest::Method::Post); -} - -ConfigureSynchronizationJobReplicatorCompareRequest::~ConfigureSynchronizationJobReplicatorCompareRequest() {} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getClientToken() const { - return clientToken_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getSynchronizationJobId() const { - return synchronizationJobId_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { - synchronizationJobId_ = synchronizationJobId; - setParameter(std::string("SynchronizationJobId"), synchronizationJobId); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getAccountId() const { - return accountId_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getOwnerId() const { - return ownerId_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -bool ConfigureSynchronizationJobReplicatorCompareRequest::getSynchronizationReplicatorCompareEnable() const { - return synchronizationReplicatorCompareEnable_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setSynchronizationReplicatorCompareEnable(bool synchronizationReplicatorCompareEnable) { - synchronizationReplicatorCompareEnable_ = synchronizationReplicatorCompareEnable; - setParameter(std::string("SynchronizationReplicatorCompareEnable"), synchronizationReplicatorCompareEnable ? "true" : "false"); -} - -std::string ConfigureSynchronizationJobReplicatorCompareRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void ConfigureSynchronizationJobReplicatorCompareRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc b/dts/src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc deleted file mode 100644 index 04d8cc968..000000000 --- a/dts/src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ConfigureSynchronizationJobReplicatorCompareResult::ConfigureSynchronizationJobReplicatorCompareResult() : - ServiceResult() -{} - -ConfigureSynchronizationJobReplicatorCompareResult::ConfigureSynchronizationJobReplicatorCompareResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ConfigureSynchronizationJobReplicatorCompareResult::~ConfigureSynchronizationJobReplicatorCompareResult() -{} - -void ConfigureSynchronizationJobReplicatorCompareResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ConfigureSynchronizationJobReplicatorCompareResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ConfigureSynchronizationJobReplicatorCompareResult::getSuccess()const -{ - return success_; -} - -std::string ConfigureSynchronizationJobReplicatorCompareResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ConfigureSynchronizationJobRequest.cc b/dts/src/model/ConfigureSynchronizationJobRequest.cc index 2ed7f8169..937d14512 100644 --- a/dts/src/model/ConfigureSynchronizationJobRequest.cc +++ b/dts/src/model/ConfigureSynchronizationJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::ConfigureSynchronizationJobRequest; ConfigureSynchronizationJobRequest::ConfigureSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ConfigureSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "ConfigureSynchronizationJob") { setMethod(HttpRequest::Method::Post); } @@ -67,7 +67,7 @@ std::string ConfigureSynchronizationJobRequest::getSynchronizationObjects() cons void ConfigureSynchronizationJobRequest::setSynchronizationObjects(const std::string &synchronizationObjects) { synchronizationObjects_ = synchronizationObjects; - setBodyParameter(std::string("SynchronizationObjects"), synchronizationObjects); + setParameter(std::string("SynchronizationObjects"), synchronizationObjects); } std::string ConfigureSynchronizationJobRequest::getDestinationEndpointPassword() const { @@ -124,15 +124,6 @@ void ConfigureSynchronizationJobRequest::setSourceEndpointInstanceType(const std setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); } -std::string ConfigureSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ConfigureSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string ConfigureSynchronizationJobRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -151,24 +142,6 @@ void ConfigureSynchronizationJobRequest::setSynchronizationJobName(const std::st setParameter(std::string("SynchronizationJobName"), synchronizationJobName); } -std::string ConfigureSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void ConfigureSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ConfigureSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void ConfigureSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ConfigureSynchronizationJobRequest::getSourceEndpointUserName() const { return sourceEndpointUserName_; } @@ -178,15 +151,6 @@ void ConfigureSynchronizationJobRequest::setSourceEndpointUserName(const std::st setParameter(std::string("SourceEndpoint.UserName"), sourceEndpointUserName); } -std::string ConfigureSynchronizationJobRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void ConfigureSynchronizationJobRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpoint.DatabaseName"), sourceEndpointDatabaseName); -} - bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Month() const { return partitionKeyModifyTime_Month_; } @@ -268,15 +232,6 @@ void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Hour(bool par setParameter(std::string("PartitionKey.ModifyTime_Hour"), partitionKeyModifyTime_Hour ? "true" : "false"); } -std::string ConfigureSynchronizationJobRequest::getDestinationEndpointDataBaseName() const { - return destinationEndpointDataBaseName_; -} - -void ConfigureSynchronizationJobRequest::setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName) { - destinationEndpointDataBaseName_ = destinationEndpointDataBaseName; - setParameter(std::string("DestinationEndpoint.DataBaseName"), destinationEndpointDataBaseName); -} - std::string ConfigureSynchronizationJobRequest::getSourceEndpointPassword() const { return sourceEndpointPassword_; } diff --git a/dts/src/model/CountJobByConditionRequest.cc b/dts/src/model/CountJobByConditionRequest.cc deleted file mode 100644 index fae041e3a..000000000 --- a/dts/src/model/CountJobByConditionRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CountJobByConditionRequest; - -CountJobByConditionRequest::CountJobByConditionRequest() - : RpcServiceRequest("dts", "2020-01-01", "CountJobByCondition") { - setMethod(HttpRequest::Method::Post); -} - -CountJobByConditionRequest::~CountJobByConditionRequest() {} - -std::string CountJobByConditionRequest::getType() const { - return type_; -} - -void CountJobByConditionRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -std::string CountJobByConditionRequest::getSrcDbType() const { - return srcDbType_; -} - -void CountJobByConditionRequest::setSrcDbType(const std::string &srcDbType) { - srcDbType_ = srcDbType; - setParameter(std::string("SrcDbType"), srcDbType); -} - -std::string CountJobByConditionRequest::getRegionId() const { - return regionId_; -} - -void CountJobByConditionRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CountJobByConditionRequest::getGroupId() const { - return groupId_; -} - -void CountJobByConditionRequest::setGroupId(const std::string &groupId) { - groupId_ = groupId; - setParameter(std::string("GroupId"), groupId); -} - -std::string CountJobByConditionRequest::getParams() const { - return params_; -} - -void CountJobByConditionRequest::setParams(const std::string ¶ms) { - params_ = params; - setParameter(std::string("Params"), params); -} - -std::string CountJobByConditionRequest::getJobType() const { - return jobType_; -} - -void CountJobByConditionRequest::setJobType(const std::string &jobType) { - jobType_ = jobType; - setParameter(std::string("JobType"), jobType); -} - -std::string CountJobByConditionRequest::getDestDbType() const { - return destDbType_; -} - -void CountJobByConditionRequest::setDestDbType(const std::string &destDbType) { - destDbType_ = destDbType; - setParameter(std::string("DestDbType"), destDbType); -} - -std::string CountJobByConditionRequest::getRegion() const { - return region_; -} - -void CountJobByConditionRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string CountJobByConditionRequest::getStatus() const { - return status_; -} - -void CountJobByConditionRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/dts/src/model/CountJobByConditionResult.cc b/dts/src/model/CountJobByConditionResult.cc deleted file mode 100644 index 81125ec80..000000000 --- a/dts/src/model/CountJobByConditionResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CountJobByConditionResult::CountJobByConditionResult() : - ServiceResult() -{} - -CountJobByConditionResult::CountJobByConditionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CountJobByConditionResult::~CountJobByConditionResult() -{} - -void CountJobByConditionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - -} - -long CountJobByConditionResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int CountJobByConditionResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CountJobByConditionResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string CountJobByConditionResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string CountJobByConditionResult::getErrMessage()const -{ - return errMessage_; -} - -bool CountJobByConditionResult::getSuccess()const -{ - return success_; -} - -std::string CountJobByConditionResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateConsumerChannelRequest.cc b/dts/src/model/CreateConsumerChannelRequest.cc deleted file mode 100644 index c657afa43..000000000 --- a/dts/src/model/CreateConsumerChannelRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateConsumerChannelRequest; - -CreateConsumerChannelRequest::CreateConsumerChannelRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateConsumerChannel") { - setMethod(HttpRequest::Method::Post); -} - -CreateConsumerChannelRequest::~CreateConsumerChannelRequest() {} - -std::string CreateConsumerChannelRequest::getConsumerGroupName() const { - return consumerGroupName_; -} - -void CreateConsumerChannelRequest::setConsumerGroupName(const std::string &consumerGroupName) { - consumerGroupName_ = consumerGroupName; - setParameter(std::string("ConsumerGroupName"), consumerGroupName); -} - -std::string CreateConsumerChannelRequest::getConsumerGroupPassword() const { - return consumerGroupPassword_; -} - -void CreateConsumerChannelRequest::setConsumerGroupPassword(const std::string &consumerGroupPassword) { - consumerGroupPassword_ = consumerGroupPassword; - setParameter(std::string("ConsumerGroupPassword"), consumerGroupPassword); -} - -std::string CreateConsumerChannelRequest::getConsumerGroupUserName() const { - return consumerGroupUserName_; -} - -void CreateConsumerChannelRequest::setConsumerGroupUserName(const std::string &consumerGroupUserName) { - consumerGroupUserName_ = consumerGroupUserName; - setParameter(std::string("ConsumerGroupUserName"), consumerGroupUserName); -} - -std::string CreateConsumerChannelRequest::getRegionId() const { - return regionId_; -} - -void CreateConsumerChannelRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateConsumerChannelRequest::getDtsJobId() const { - return dtsJobId_; -} - -void CreateConsumerChannelRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string CreateConsumerChannelRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void CreateConsumerChannelRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/CreateConsumerChannelResult.cc b/dts/src/model/CreateConsumerChannelResult.cc deleted file mode 100644 index 5ec82cb63..000000000 --- a/dts/src/model/CreateConsumerChannelResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateConsumerChannelResult::CreateConsumerChannelResult() : - ServiceResult() -{} - -CreateConsumerChannelResult::CreateConsumerChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConsumerChannelResult::~CreateConsumerChannelResult() -{} - -void CreateConsumerChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["ConsumerGroupID"].isNull()) - consumerGroupID_ = value["ConsumerGroupID"].asString(); - -} - -std::string CreateConsumerChannelResult::getConsumerGroupID()const -{ - return consumerGroupID_; -} - -std::string CreateConsumerChannelResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateConsumerChannelResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateConsumerChannelResult::getSuccess()const -{ - return success_; -} - -std::string CreateConsumerChannelResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateConsumerGroupRequest.cc b/dts/src/model/CreateConsumerGroupRequest.cc deleted file mode 100644 index 6b079f6de..000000000 --- a/dts/src/model/CreateConsumerGroupRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateConsumerGroupRequest; - -CreateConsumerGroupRequest::CreateConsumerGroupRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateConsumerGroup") { - setMethod(HttpRequest::Method::Post); -} - -CreateConsumerGroupRequest::~CreateConsumerGroupRequest() {} - -std::string CreateConsumerGroupRequest::getConsumerGroupPassword() const { - return consumerGroupPassword_; -} - -void CreateConsumerGroupRequest::setConsumerGroupPassword(const std::string &consumerGroupPassword) { - consumerGroupPassword_ = consumerGroupPassword; - setParameter(std::string("ConsumerGroupPassword"), consumerGroupPassword); -} - -std::string CreateConsumerGroupRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateConsumerGroupRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateConsumerGroupRequest::getAccountId() const { - return accountId_; -} - -void CreateConsumerGroupRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string CreateConsumerGroupRequest::getConsumerGroupUserName() const { - return consumerGroupUserName_; -} - -void CreateConsumerGroupRequest::setConsumerGroupUserName(const std::string &consumerGroupUserName) { - consumerGroupUserName_ = consumerGroupUserName; - setParameter(std::string("ConsumerGroupUserName"), consumerGroupUserName); -} - -std::string CreateConsumerGroupRequest::getRegionId() const { - return regionId_; -} - -void CreateConsumerGroupRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateConsumerGroupRequest::getConsumerGroupName() const { - return consumerGroupName_; -} - -void CreateConsumerGroupRequest::setConsumerGroupName(const std::string &consumerGroupName) { - consumerGroupName_ = consumerGroupName; - setParameter(std::string("ConsumerGroupName"), consumerGroupName); -} - -std::string CreateConsumerGroupRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void CreateConsumerGroupRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string CreateConsumerGroupRequest::getOwnerId() const { - return ownerId_; -} - -void CreateConsumerGroupRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - diff --git a/dts/src/model/CreateConsumerGroupResult.cc b/dts/src/model/CreateConsumerGroupResult.cc deleted file mode 100644 index 99c3eb532..000000000 --- a/dts/src/model/CreateConsumerGroupResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateConsumerGroupResult::CreateConsumerGroupResult() : - ServiceResult() -{} - -CreateConsumerGroupResult::CreateConsumerGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateConsumerGroupResult::~CreateConsumerGroupResult() -{} - -void CreateConsumerGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ConsumerGroupID"].isNull()) - consumerGroupID_ = value["ConsumerGroupID"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string CreateConsumerGroupResult::getConsumerGroupID()const -{ - return consumerGroupID_; -} - -std::string CreateConsumerGroupResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateConsumerGroupResult::getSuccess()const -{ - return success_; -} - -std::string CreateConsumerGroupResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateDedicatedClusterMonitorRuleRequest.cc b/dts/src/model/CreateDedicatedClusterMonitorRuleRequest.cc deleted file mode 100644 index 31a25e95c..000000000 --- a/dts/src/model/CreateDedicatedClusterMonitorRuleRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateDedicatedClusterMonitorRuleRequest; - -CreateDedicatedClusterMonitorRuleRequest::CreateDedicatedClusterMonitorRuleRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateDedicatedClusterMonitorRule") { - setMethod(HttpRequest::Method::Post); -} - -CreateDedicatedClusterMonitorRuleRequest::~CreateDedicatedClusterMonitorRuleRequest() {} - -long CreateDedicatedClusterMonitorRuleRequest::getCpuAlarmThreshold() const { - return cpuAlarmThreshold_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setCpuAlarmThreshold(long cpuAlarmThreshold) { - cpuAlarmThreshold_ = cpuAlarmThreshold; - setParameter(std::string("CpuAlarmThreshold"), std::to_string(cpuAlarmThreshold)); -} - -std::string CreateDedicatedClusterMonitorRuleRequest::getPhones() const { - return phones_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setPhones(const std::string &phones) { - phones_ = phones; - setParameter(std::string("Phones"), phones); -} - -std::string CreateDedicatedClusterMonitorRuleRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -long CreateDedicatedClusterMonitorRuleRequest::getDiskAlarmThreshold() const { - return diskAlarmThreshold_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setDiskAlarmThreshold(long diskAlarmThreshold) { - diskAlarmThreshold_ = diskAlarmThreshold; - setParameter(std::string("DiskAlarmThreshold"), std::to_string(diskAlarmThreshold)); -} - -std::string CreateDedicatedClusterMonitorRuleRequest::getRegionId() const { - return regionId_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -long CreateDedicatedClusterMonitorRuleRequest::getMemAlarmThreshold() const { - return memAlarmThreshold_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setMemAlarmThreshold(long memAlarmThreshold) { - memAlarmThreshold_ = memAlarmThreshold; - setParameter(std::string("MemAlarmThreshold"), std::to_string(memAlarmThreshold)); -} - -long CreateDedicatedClusterMonitorRuleRequest::getDuAlarmThreshold() const { - return duAlarmThreshold_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setDuAlarmThreshold(long duAlarmThreshold) { - duAlarmThreshold_ = duAlarmThreshold; - setParameter(std::string("DuAlarmThreshold"), std::to_string(duAlarmThreshold)); -} - -std::string CreateDedicatedClusterMonitorRuleRequest::getOwnerId() const { - return ownerId_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -long CreateDedicatedClusterMonitorRuleRequest::getNoticeSwitch() const { - return noticeSwitch_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setNoticeSwitch(long noticeSwitch) { - noticeSwitch_ = noticeSwitch; - setParameter(std::string("NoticeSwitch"), std::to_string(noticeSwitch)); -} - -std::string CreateDedicatedClusterMonitorRuleRequest::getInstanceId() const { - return instanceId_; -} - -void CreateDedicatedClusterMonitorRuleRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - diff --git a/dts/src/model/CreateDedicatedClusterMonitorRuleResult.cc b/dts/src/model/CreateDedicatedClusterMonitorRuleResult.cc deleted file mode 100644 index 026331366..000000000 --- a/dts/src/model/CreateDedicatedClusterMonitorRuleResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateDedicatedClusterMonitorRuleResult::CreateDedicatedClusterMonitorRuleResult() : - ServiceResult() -{} - -CreateDedicatedClusterMonitorRuleResult::CreateDedicatedClusterMonitorRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDedicatedClusterMonitorRuleResult::~CreateDedicatedClusterMonitorRuleResult() -{} - -void CreateDedicatedClusterMonitorRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string CreateDedicatedClusterMonitorRuleResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateDedicatedClusterMonitorRuleResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateDedicatedClusterMonitorRuleResult::getSuccess()const -{ - return success_; -} - -std::string CreateDedicatedClusterMonitorRuleResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateDtsInstanceRequest.cc b/dts/src/model/CreateDtsInstanceRequest.cc deleted file mode 100644 index 25e7060e1..000000000 --- a/dts/src/model/CreateDtsInstanceRequest.cc +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateDtsInstanceRequest; - -CreateDtsInstanceRequest::CreateDtsInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateDtsInstance") { - setMethod(HttpRequest::Method::Post); -} - -CreateDtsInstanceRequest::~CreateDtsInstanceRequest() {} - -bool CreateDtsInstanceRequest::getAutoStart() const { - return autoStart_; -} - -void CreateDtsInstanceRequest::setAutoStart(bool autoStart) { - autoStart_ = autoStart; - setParameter(std::string("AutoStart"), autoStart ? "true" : "false"); -} - -std::string CreateDtsInstanceRequest::getType() const { - return type_; -} - -void CreateDtsInstanceRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -std::string CreateDtsInstanceRequest::getInstanceClass() const { - return instanceClass_; -} - -void CreateDtsInstanceRequest::setInstanceClass(const std::string &instanceClass) { - instanceClass_ = instanceClass; - setParameter(std::string("InstanceClass"), instanceClass); -} - -int CreateDtsInstanceRequest::getDatabaseCount() const { - return databaseCount_; -} - -void CreateDtsInstanceRequest::setDatabaseCount(int databaseCount) { - databaseCount_ = databaseCount; - setParameter(std::string("DatabaseCount"), std::to_string(databaseCount)); -} - -std::string CreateDtsInstanceRequest::getJobId() const { - return jobId_; -} - -void CreateDtsInstanceRequest::setJobId(const std::string &jobId) { - jobId_ = jobId; - setParameter(std::string("JobId"), jobId); -} - -int CreateDtsInstanceRequest::getDu() const { - return du_; -} - -void CreateDtsInstanceRequest::setDu(int du) { - du_ = du; - setParameter(std::string("Du"), std::to_string(du)); -} - -std::string CreateDtsInstanceRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void CreateDtsInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string CreateDtsInstanceRequest::getRegionId() const { - return regionId_; -} - -void CreateDtsInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int CreateDtsInstanceRequest::getComputeUnit() const { - return computeUnit_; -} - -void CreateDtsInstanceRequest::setComputeUnit(int computeUnit) { - computeUnit_ = computeUnit; - setParameter(std::string("ComputeUnit"), std::to_string(computeUnit)); -} - -std::string CreateDtsInstanceRequest::getFeeType() const { - return feeType_; -} - -void CreateDtsInstanceRequest::setFeeType(const std::string &feeType) { - feeType_ = feeType; - setParameter(std::string("FeeType"), feeType); -} - -std::string CreateDtsInstanceRequest::getDestinationRegion() const { - return destinationRegion_; -} - -void CreateDtsInstanceRequest::setDestinationRegion(const std::string &destinationRegion) { - destinationRegion_ = destinationRegion; - setParameter(std::string("DestinationRegion"), destinationRegion); -} - -std::string CreateDtsInstanceRequest::getPeriod() const { - return period_; -} - -void CreateDtsInstanceRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string CreateDtsInstanceRequest::getDestinationEndpointEngineName() const { - return destinationEndpointEngineName_; -} - -void CreateDtsInstanceRequest::setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName) { - destinationEndpointEngineName_ = destinationEndpointEngineName; - setParameter(std::string("DestinationEndpointEngineName"), destinationEndpointEngineName); -} - -int CreateDtsInstanceRequest::getQuantity() const { - return quantity_; -} - -void CreateDtsInstanceRequest::setQuantity(int quantity) { - quantity_ = quantity; - setParameter(std::string("Quantity"), std::to_string(quantity)); -} - -bool CreateDtsInstanceRequest::getAutoPay() const { - return autoPay_; -} - -void CreateDtsInstanceRequest::setAutoPay(bool autoPay) { - autoPay_ = autoPay; - setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); -} - -int CreateDtsInstanceRequest::getUsedTime() const { - return usedTime_; -} - -void CreateDtsInstanceRequest::setUsedTime(int usedTime) { - usedTime_ = usedTime; - setParameter(std::string("UsedTime"), std::to_string(usedTime)); -} - -std::string CreateDtsInstanceRequest::getSyncArchitecture() const { - return syncArchitecture_; -} - -void CreateDtsInstanceRequest::setSyncArchitecture(const std::string &syncArchitecture) { - syncArchitecture_ = syncArchitecture; - setParameter(std::string("SyncArchitecture"), syncArchitecture); -} - -std::string CreateDtsInstanceRequest::getPayType() const { - return payType_; -} - -void CreateDtsInstanceRequest::setPayType(const std::string &payType) { - payType_ = payType; - setParameter(std::string("PayType"), payType); -} - -std::string CreateDtsInstanceRequest::getSourceRegion() const { - return sourceRegion_; -} - -void CreateDtsInstanceRequest::setSourceRegion(const std::string &sourceRegion) { - sourceRegion_ = sourceRegion; - setParameter(std::string("SourceRegion"), sourceRegion); -} - -std::string CreateDtsInstanceRequest::getSourceEndpointEngineName() const { - return sourceEndpointEngineName_; -} - -void CreateDtsInstanceRequest::setSourceEndpointEngineName(const std::string &sourceEndpointEngineName) { - sourceEndpointEngineName_ = sourceEndpointEngineName; - setParameter(std::string("SourceEndpointEngineName"), sourceEndpointEngineName); -} - diff --git a/dts/src/model/CreateDtsInstanceResult.cc b/dts/src/model/CreateDtsInstanceResult.cc deleted file mode 100644 index 6362262f6..000000000 --- a/dts/src/model/CreateDtsInstanceResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateDtsInstanceResult::CreateDtsInstanceResult() : - ServiceResult() -{} - -CreateDtsInstanceResult::CreateDtsInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateDtsInstanceResult::~CreateDtsInstanceResult() -{} - -void CreateDtsInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["JobId"].isNull()) - jobId_ = value["JobId"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::string CreateDtsInstanceResult::getInstanceId()const -{ - return instanceId_; -} - -std::string CreateDtsInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateDtsInstanceResult::getSuccess()const -{ - return success_; -} - -std::string CreateDtsInstanceResult::getJobId()const -{ - return jobId_; -} - -std::string CreateDtsInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateJobMonitorRuleRequest.cc b/dts/src/model/CreateJobMonitorRuleRequest.cc deleted file mode 100644 index b92fefe47..000000000 --- a/dts/src/model/CreateJobMonitorRuleRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateJobMonitorRuleRequest; - -CreateJobMonitorRuleRequest::CreateJobMonitorRuleRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateJobMonitorRule") { - setMethod(HttpRequest::Method::Post); -} - -CreateJobMonitorRuleRequest::~CreateJobMonitorRuleRequest() {} - -std::string CreateJobMonitorRuleRequest::getType() const { - return type_; -} - -void CreateJobMonitorRuleRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -int CreateJobMonitorRuleRequest::getNoticeValue() const { - return noticeValue_; -} - -void CreateJobMonitorRuleRequest::setNoticeValue(int noticeValue) { - noticeValue_ = noticeValue; - setParameter(std::string("NoticeValue"), std::to_string(noticeValue)); -} - -int CreateJobMonitorRuleRequest::getTimes() const { - return times_; -} - -void CreateJobMonitorRuleRequest::setTimes(int times) { - times_ = times; - setParameter(std::string("Times"), std::to_string(times)); -} - -std::string CreateJobMonitorRuleRequest::getRegionId() const { - return regionId_; -} - -void CreateJobMonitorRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateJobMonitorRuleRequest::getDtsJobId() const { - return dtsJobId_; -} - -void CreateJobMonitorRuleRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string CreateJobMonitorRuleRequest::getState() const { - return state_; -} - -void CreateJobMonitorRuleRequest::setState(const std::string &state) { - state_ = state; - setParameter(std::string("State"), state); -} - -int CreateJobMonitorRuleRequest::getPeriod() const { - return period_; -} - -void CreateJobMonitorRuleRequest::setPeriod(int period) { - period_ = period; - setParameter(std::string("Period"), std::to_string(period)); -} - -long CreateJobMonitorRuleRequest::getDelayRuleTime() const { - return delayRuleTime_; -} - -void CreateJobMonitorRuleRequest::setDelayRuleTime(long delayRuleTime) { - delayRuleTime_ = delayRuleTime; - setParameter(std::string("DelayRuleTime"), std::to_string(delayRuleTime)); -} - -std::string CreateJobMonitorRuleRequest::getPhone() const { - return phone_; -} - -void CreateJobMonitorRuleRequest::setPhone(const std::string &phone) { - phone_ = phone; - setParameter(std::string("Phone"), phone); -} - diff --git a/dts/src/model/CreateJobMonitorRuleResult.cc b/dts/src/model/CreateJobMonitorRuleResult.cc deleted file mode 100644 index dd43beede..000000000 --- a/dts/src/model/CreateJobMonitorRuleResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateJobMonitorRuleResult::CreateJobMonitorRuleResult() : - ServiceResult() -{} - -CreateJobMonitorRuleResult::CreateJobMonitorRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateJobMonitorRuleResult::~CreateJobMonitorRuleResult() -{} - -void CreateJobMonitorRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - -} - -std::string CreateJobMonitorRuleResult::getDtsJobId()const -{ - return dtsJobId_; -} - -int CreateJobMonitorRuleResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string CreateJobMonitorRuleResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string CreateJobMonitorRuleResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateJobMonitorRuleResult::getCode()const -{ - return code_; -} - -bool CreateJobMonitorRuleResult::getSuccess()const -{ - return success_; -} - -std::string CreateJobMonitorRuleResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateMigrationJobRequest.cc b/dts/src/model/CreateMigrationJobRequest.cc deleted file mode 100644 index f11f7d7dc..000000000 --- a/dts/src/model/CreateMigrationJobRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateMigrationJobRequest; - -CreateMigrationJobRequest::CreateMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -CreateMigrationJobRequest::~CreateMigrationJobRequest() {} - -std::string CreateMigrationJobRequest::getClientToken() const { - return clientToken_; -} - -void CreateMigrationJobRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void CreateMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string CreateMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void CreateMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string CreateMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void CreateMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateMigrationJobRequest::getRegion() const { - return region_; -} - -void CreateMigrationJobRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string CreateMigrationJobRequest::getMigrationJobClass() const { - return migrationJobClass_; -} - -void CreateMigrationJobRequest::setMigrationJobClass(const std::string &migrationJobClass) { - migrationJobClass_ = migrationJobClass; - setParameter(std::string("MigrationJobClass"), migrationJobClass); -} - diff --git a/dts/src/model/CreateMigrationJobResult.cc b/dts/src/model/CreateMigrationJobResult.cc deleted file mode 100644 index 1fe32e921..000000000 --- a/dts/src/model/CreateMigrationJobResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateMigrationJobResult::CreateMigrationJobResult() : - ServiceResult() -{} - -CreateMigrationJobResult::CreateMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMigrationJobResult::~CreateMigrationJobResult() -{} - -void CreateMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["MigrationJobId"].isNull()) - migrationJobId_ = value["MigrationJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string CreateMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string CreateMigrationJobResult::getMigrationJobId()const -{ - return migrationJobId_; -} - -std::string CreateMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateSubscriptionInstanceRequest.cc b/dts/src/model/CreateSubscriptionInstanceRequest.cc deleted file mode 100644 index b18443fd5..000000000 --- a/dts/src/model/CreateSubscriptionInstanceRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::CreateSubscriptionInstanceRequest; - -CreateSubscriptionInstanceRequest::CreateSubscriptionInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateSubscriptionInstance") { - setMethod(HttpRequest::Method::Post); -} - -CreateSubscriptionInstanceRequest::~CreateSubscriptionInstanceRequest() {} - -std::string CreateSubscriptionInstanceRequest::getClientToken() const { - return clientToken_; -} - -void CreateSubscriptionInstanceRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateSubscriptionInstanceRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void CreateSubscriptionInstanceRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); -} - -std::string CreateSubscriptionInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateSubscriptionInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateSubscriptionInstanceRequest::getAccountId() const { - return accountId_; -} - -void CreateSubscriptionInstanceRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string CreateSubscriptionInstanceRequest::getRegionId() const { - return regionId_; -} - -void CreateSubscriptionInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateSubscriptionInstanceRequest::getPeriod() const { - return period_; -} - -void CreateSubscriptionInstanceRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string CreateSubscriptionInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void CreateSubscriptionInstanceRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -int CreateSubscriptionInstanceRequest::getUsedTime() const { - return usedTime_; -} - -void CreateSubscriptionInstanceRequest::setUsedTime(int usedTime) { - usedTime_ = usedTime; - setParameter(std::string("UsedTime"), std::to_string(usedTime)); -} - -std::string CreateSubscriptionInstanceRequest::getRegion() const { - return region_; -} - -void CreateSubscriptionInstanceRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string CreateSubscriptionInstanceRequest::getPayType() const { - return payType_; -} - -void CreateSubscriptionInstanceRequest::setPayType(const std::string &payType) { - payType_ = payType; - setParameter(std::string("PayType"), payType); -} - diff --git a/dts/src/model/CreateSubscriptionInstanceResult.cc b/dts/src/model/CreateSubscriptionInstanceResult.cc deleted file mode 100644 index 2eeb99006..000000000 --- a/dts/src/model/CreateSubscriptionInstanceResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -CreateSubscriptionInstanceResult::CreateSubscriptionInstanceResult() : - ServiceResult() -{} - -CreateSubscriptionInstanceResult::CreateSubscriptionInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateSubscriptionInstanceResult::~CreateSubscriptionInstanceResult() -{} - -void CreateSubscriptionInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["SubscriptionInstanceId"].isNull()) - subscriptionInstanceId_ = value["SubscriptionInstanceId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string CreateSubscriptionInstanceResult::getSubscriptionInstanceId()const -{ - return subscriptionInstanceId_; -} - -std::string CreateSubscriptionInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string CreateSubscriptionInstanceResult::getSuccess()const -{ - return success_; -} - -std::string CreateSubscriptionInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/CreateSynchronizationJobRequest.cc b/dts/src/model/CreateSynchronizationJobRequest.cc index 7caa7122f..835e8a524 100644 --- a/dts/src/model/CreateSynchronizationJobRequest.cc +++ b/dts/src/model/CreateSynchronizationJobRequest.cc @@ -19,75 +19,12 @@ using AlibabaCloud::Dts::Model::CreateSynchronizationJobRequest; CreateSynchronizationJobRequest::CreateSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "CreateSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "CreateSynchronizationJob") { setMethod(HttpRequest::Method::Post); } CreateSynchronizationJobRequest::~CreateSynchronizationJobRequest() {} -std::string CreateSynchronizationJobRequest::getClientToken() const { - return clientToken_; -} - -void CreateSynchronizationJobRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string CreateSynchronizationJobRequest::getNetworkType() const { - return networkType_; -} - -void CreateSynchronizationJobRequest::setNetworkType(const std::string &networkType) { - networkType_ = networkType; - setParameter(std::string("networkType"), networkType); -} - -std::string CreateSynchronizationJobRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void CreateSynchronizationJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); -} - -std::string CreateSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string CreateSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void CreateSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string CreateSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void CreateSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string CreateSynchronizationJobRequest::getSynchronizationJobClass() const { - return synchronizationJobClass_; -} - -void CreateSynchronizationJobRequest::setSynchronizationJobClass(const std::string &synchronizationJobClass) { - synchronizationJobClass_ = synchronizationJobClass; - setParameter(std::string("SynchronizationJobClass"), synchronizationJobClass); -} - std::string CreateSynchronizationJobRequest::getPeriod() const { return period_; } @@ -106,6 +43,15 @@ void CreateSynchronizationJobRequest::setDestRegion(const std::string &destRegio setParameter(std::string("DestRegion"), destRegion); } +std::string CreateSynchronizationJobRequest::getClientToken() const { + return clientToken_; +} + +void CreateSynchronizationJobRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + std::string CreateSynchronizationJobRequest::getTopology() const { return topology_; } @@ -115,6 +61,15 @@ void CreateSynchronizationJobRequest::setTopology(const std::string &topology) { setParameter(std::string("Topology"), topology); } +std::string CreateSynchronizationJobRequest::getNetworkType() const { + return networkType_; +} + +void CreateSynchronizationJobRequest::setNetworkType(const std::string &networkType) { + networkType_ = networkType; + setParameter(std::string("networkType"), networkType); +} + std::string CreateSynchronizationJobRequest::getOwnerId() const { return ownerId_; } @@ -133,13 +88,22 @@ void CreateSynchronizationJobRequest::setUsedTime(int usedTime) { setParameter(std::string("UsedTime"), std::to_string(usedTime)); } -int CreateSynchronizationJobRequest::getDBInstanceCount() const { - return dBInstanceCount_; +std::string CreateSynchronizationJobRequest::getSourceEndpointInstanceType() const { + return sourceEndpointInstanceType_; } -void CreateSynchronizationJobRequest::setDBInstanceCount(int dBInstanceCount) { - dBInstanceCount_ = dBInstanceCount; - setParameter(std::string("DBInstanceCount"), std::to_string(dBInstanceCount)); +void CreateSynchronizationJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { + sourceEndpointInstanceType_ = sourceEndpointInstanceType; + setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType); +} + +std::string CreateSynchronizationJobRequest::getSynchronizationJobClass() const { + return synchronizationJobClass_; +} + +void CreateSynchronizationJobRequest::setSynchronizationJobClass(const std::string &synchronizationJobClass) { + synchronizationJobClass_ = synchronizationJobClass; + setParameter(std::string("SynchronizationJobClass"), synchronizationJobClass); } std::string CreateSynchronizationJobRequest::getSourceRegion() const { diff --git a/dts/src/model/DeleteConsumerChannelRequest.cc b/dts/src/model/DeleteConsumerChannelRequest.cc deleted file mode 100644 index 1f817771d..000000000 --- a/dts/src/model/DeleteConsumerChannelRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteConsumerChannelRequest; - -DeleteConsumerChannelRequest::DeleteConsumerChannelRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteConsumerChannel") { - setMethod(HttpRequest::Method::Post); -} - -DeleteConsumerChannelRequest::~DeleteConsumerChannelRequest() {} - -std::string DeleteConsumerChannelRequest::getConsumerGroupId() const { - return consumerGroupId_; -} - -void DeleteConsumerChannelRequest::setConsumerGroupId(const std::string &consumerGroupId) { - consumerGroupId_ = consumerGroupId; - setParameter(std::string("ConsumerGroupId"), consumerGroupId); -} - -std::string DeleteConsumerChannelRequest::getRegionId() const { - return regionId_; -} - -void DeleteConsumerChannelRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DeleteConsumerChannelRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DeleteConsumerChannelRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DeleteConsumerChannelRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DeleteConsumerChannelRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/DeleteConsumerChannelResult.cc b/dts/src/model/DeleteConsumerChannelResult.cc deleted file mode 100644 index e5a8ef02a..000000000 --- a/dts/src/model/DeleteConsumerChannelResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteConsumerChannelResult::DeleteConsumerChannelResult() : - ServiceResult() -{} - -DeleteConsumerChannelResult::DeleteConsumerChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteConsumerChannelResult::~DeleteConsumerChannelResult() -{} - -void DeleteConsumerChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string DeleteConsumerChannelResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeleteConsumerChannelResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DeleteConsumerChannelResult::getSuccess()const -{ - return success_; -} - -std::string DeleteConsumerChannelResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteConsumerGroupRequest.cc b/dts/src/model/DeleteConsumerGroupRequest.cc deleted file mode 100644 index d006abbc1..000000000 --- a/dts/src/model/DeleteConsumerGroupRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteConsumerGroupRequest; - -DeleteConsumerGroupRequest::DeleteConsumerGroupRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteConsumerGroup") { - setMethod(HttpRequest::Method::Post); -} - -DeleteConsumerGroupRequest::~DeleteConsumerGroupRequest() {} - -std::string DeleteConsumerGroupRequest::getConsumerGroupID() const { - return consumerGroupID_; -} - -void DeleteConsumerGroupRequest::setConsumerGroupID(const std::string &consumerGroupID) { - consumerGroupID_ = consumerGroupID; - setParameter(std::string("ConsumerGroupID"), consumerGroupID); -} - -std::string DeleteConsumerGroupRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void DeleteConsumerGroupRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string DeleteConsumerGroupRequest::getOwnerId() const { - return ownerId_; -} - -void DeleteConsumerGroupRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DeleteConsumerGroupRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteConsumerGroupRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteConsumerGroupRequest::getAccountId() const { - return accountId_; -} - -void DeleteConsumerGroupRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DeleteConsumerGroupRequest::getRegionId() const { - return regionId_; -} - -void DeleteConsumerGroupRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DeleteConsumerGroupResult.cc b/dts/src/model/DeleteConsumerGroupResult.cc deleted file mode 100644 index 3051fbfd7..000000000 --- a/dts/src/model/DeleteConsumerGroupResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteConsumerGroupResult::DeleteConsumerGroupResult() : - ServiceResult() -{} - -DeleteConsumerGroupResult::DeleteConsumerGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteConsumerGroupResult::~DeleteConsumerGroupResult() -{} - -void DeleteConsumerGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string DeleteConsumerGroupResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DeleteConsumerGroupResult::getSuccess()const -{ - return success_; -} - -std::string DeleteConsumerGroupResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteDtsJobRequest.cc b/dts/src/model/DeleteDtsJobRequest.cc deleted file mode 100644 index 3cb4397ed..000000000 --- a/dts/src/model/DeleteDtsJobRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteDtsJobRequest; - -DeleteDtsJobRequest::DeleteDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -DeleteDtsJobRequest::~DeleteDtsJobRequest() {} - -std::string DeleteDtsJobRequest::getRegionId() const { - return regionId_; -} - -void DeleteDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DeleteDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DeleteDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DeleteDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DeleteDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string DeleteDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void DeleteDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/DeleteDtsJobResult.cc b/dts/src/model/DeleteDtsJobResult.cc deleted file mode 100644 index bc2661de7..000000000 --- a/dts/src/model/DeleteDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteDtsJobResult::DeleteDtsJobResult() : - ServiceResult() -{} - -DeleteDtsJobResult::DeleteDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDtsJobResult::~DeleteDtsJobResult() -{} - -void DeleteDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int DeleteDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeleteDtsJobResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DeleteDtsJobResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DeleteDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool DeleteDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string DeleteDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteDtsJobsRequest.cc b/dts/src/model/DeleteDtsJobsRequest.cc deleted file mode 100644 index 71b2791e3..000000000 --- a/dts/src/model/DeleteDtsJobsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteDtsJobsRequest; - -DeleteDtsJobsRequest::DeleteDtsJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteDtsJobs") { - setMethod(HttpRequest::Method::Post); -} - -DeleteDtsJobsRequest::~DeleteDtsJobsRequest() {} - -std::string DeleteDtsJobsRequest::getDtsJobIds() const { - return dtsJobIds_; -} - -void DeleteDtsJobsRequest::setDtsJobIds(const std::string &dtsJobIds) { - dtsJobIds_ = dtsJobIds; - setParameter(std::string("DtsJobIds"), dtsJobIds); -} - -std::string DeleteDtsJobsRequest::getRegionId() const { - return regionId_; -} - -void DeleteDtsJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DeleteDtsJobsResult.cc b/dts/src/model/DeleteDtsJobsResult.cc deleted file mode 100644 index e3238b1e8..000000000 --- a/dts/src/model/DeleteDtsJobsResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteDtsJobsResult::DeleteDtsJobsResult() : - ServiceResult() -{} - -DeleteDtsJobsResult::DeleteDtsJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteDtsJobsResult::~DeleteDtsJobsResult() -{} - -void DeleteDtsJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int DeleteDtsJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DeleteDtsJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DeleteDtsJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DeleteDtsJobsResult::getErrMessage()const -{ - return errMessage_; -} - -bool DeleteDtsJobsResult::getSuccess()const -{ - return success_; -} - -std::string DeleteDtsJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteMigrationJobRequest.cc b/dts/src/model/DeleteMigrationJobRequest.cc deleted file mode 100644 index 429b2a9fd..000000000 --- a/dts/src/model/DeleteMigrationJobRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteMigrationJobRequest; - -DeleteMigrationJobRequest::DeleteMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -DeleteMigrationJobRequest::~DeleteMigrationJobRequest() {} - -std::string DeleteMigrationJobRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void DeleteMigrationJobRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string DeleteMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void DeleteMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DeleteMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void DeleteMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DeleteMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void DeleteMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DeleteMigrationJobResult.cc b/dts/src/model/DeleteMigrationJobResult.cc deleted file mode 100644 index ba8d76a06..000000000 --- a/dts/src/model/DeleteMigrationJobResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteMigrationJobResult::DeleteMigrationJobResult() : - ServiceResult() -{} - -DeleteMigrationJobResult::DeleteMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMigrationJobResult::~DeleteMigrationJobResult() -{} - -void DeleteMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string DeleteMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DeleteMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string DeleteMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteSubscriptionInstanceRequest.cc b/dts/src/model/DeleteSubscriptionInstanceRequest.cc deleted file mode 100644 index cfc75e3de..000000000 --- a/dts/src/model/DeleteSubscriptionInstanceRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DeleteSubscriptionInstanceRequest; - -DeleteSubscriptionInstanceRequest::DeleteSubscriptionInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteSubscriptionInstance") { - setMethod(HttpRequest::Method::Post); -} - -DeleteSubscriptionInstanceRequest::~DeleteSubscriptionInstanceRequest() {} - -std::string DeleteSubscriptionInstanceRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void DeleteSubscriptionInstanceRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string DeleteSubscriptionInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void DeleteSubscriptionInstanceRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DeleteSubscriptionInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteSubscriptionInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DeleteSubscriptionInstanceRequest::getAccountId() const { - return accountId_; -} - -void DeleteSubscriptionInstanceRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DeleteSubscriptionInstanceRequest::getRegionId() const { - return regionId_; -} - -void DeleteSubscriptionInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DeleteSubscriptionInstanceResult.cc b/dts/src/model/DeleteSubscriptionInstanceResult.cc deleted file mode 100644 index 468dbe60e..000000000 --- a/dts/src/model/DeleteSubscriptionInstanceResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DeleteSubscriptionInstanceResult::DeleteSubscriptionInstanceResult() : - ServiceResult() -{} - -DeleteSubscriptionInstanceResult::DeleteSubscriptionInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSubscriptionInstanceResult::~DeleteSubscriptionInstanceResult() -{} - -void DeleteSubscriptionInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string DeleteSubscriptionInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DeleteSubscriptionInstanceResult::getSuccess()const -{ - return success_; -} - -std::string DeleteSubscriptionInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DeleteSynchronizationJobRequest.cc b/dts/src/model/DeleteSynchronizationJobRequest.cc index 93537f83b..64ebc0def 100644 --- a/dts/src/model/DeleteSynchronizationJobRequest.cc +++ b/dts/src/model/DeleteSynchronizationJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DeleteSynchronizationJobRequest; DeleteSynchronizationJobRequest::DeleteSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "DeleteSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "DeleteSynchronizationJob") { setMethod(HttpRequest::Method::Post); } @@ -34,15 +34,6 @@ void DeleteSynchronizationJobRequest::setOwnerId(const std::string &ownerId) { setParameter(std::string("OwnerId"), ownerId); } -std::string DeleteSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DeleteSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string DeleteSynchronizationJobRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -52,21 +43,3 @@ void DeleteSynchronizationJobRequest::setSynchronizationJobId(const std::string setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string DeleteSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void DeleteSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DeleteSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void DeleteSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeCheckJobsRequest.cc b/dts/src/model/DescribeCheckJobsRequest.cc deleted file mode 100644 index 8b22975e1..000000000 --- a/dts/src/model/DescribeCheckJobsRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeCheckJobsRequest; - -DescribeCheckJobsRequest::DescribeCheckJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeCheckJobs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeCheckJobsRequest::~DescribeCheckJobsRequest() {} - -int DescribeCheckJobsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeCheckJobsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -int DescribeCheckJobsRequest::getCheckType() const { - return checkType_; -} - -void DescribeCheckJobsRequest::setCheckType(int checkType) { - checkType_ = checkType; - setParameter(std::string("CheckType"), std::to_string(checkType)); -} - -std::string DescribeCheckJobsRequest::getInstanceId() const { - return instanceId_; -} - -void DescribeCheckJobsRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -int DescribeCheckJobsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeCheckJobsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeCheckJobsRequest::getJobName() const { - return jobName_; -} - -void DescribeCheckJobsRequest::setJobName(const std::string &jobName) { - jobName_ = jobName; - setParameter(std::string("JobName"), jobName); -} - diff --git a/dts/src/model/DescribeCheckJobsResult.cc b/dts/src/model/DescribeCheckJobsResult.cc deleted file mode 100644 index e3e846d22..000000000 --- a/dts/src/model/DescribeCheckJobsResult.cc +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeCheckJobsResult::DescribeCheckJobsResult() : - ServiceResult() -{} - -DescribeCheckJobsResult::DescribeCheckJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCheckJobsResult::~DescribeCheckJobsResult() -{} - -void DescribeCheckJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCheckJobsNode = value["CheckJobs"]["checkJobsItem"]; - for (auto valueCheckJobscheckJobsItem : allCheckJobsNode) - { - CheckJobsItem checkJobsObject; - if(!valueCheckJobscheckJobsItem["DtsJobId"].isNull()) - checkJobsObject.dtsJobId = valueCheckJobscheckJobsItem["DtsJobId"].asString(); - if(!valueCheckJobscheckJobsItem["JobStepId"].isNull()) - checkJobsObject.jobStepId = valueCheckJobscheckJobsItem["JobStepId"].asString(); - if(!valueCheckJobscheckJobsItem["JobName"].isNull()) - checkJobsObject.jobName = valueCheckJobscheckJobsItem["JobName"].asString(); - if(!valueCheckJobscheckJobsItem["Status"].isNull()) - checkJobsObject.status = std::stoi(valueCheckJobscheckJobsItem["Status"].asString()); - if(!valueCheckJobscheckJobsItem["CheckType"].isNull()) - checkJobsObject.checkType = std::stoi(valueCheckJobscheckJobsItem["CheckType"].asString()); - if(!valueCheckJobscheckJobsItem["InstanceClass"].isNull()) - checkJobsObject.instanceClass = valueCheckJobscheckJobsItem["InstanceClass"].asString(); - if(!valueCheckJobscheckJobsItem["CheckPoint"].isNull()) - checkJobsObject.checkPoint = std::stol(valueCheckJobscheckJobsItem["CheckPoint"].asString()); - if(!valueCheckJobscheckJobsItem["TotalCount"].isNull()) - checkJobsObject.totalCount = std::stol(valueCheckJobscheckJobsItem["TotalCount"].asString()); - if(!valueCheckJobscheckJobsItem["DiffCount"].isNull()) - checkJobsObject.diffCount = std::stol(valueCheckJobscheckJobsItem["DiffCount"].asString()); - if(!valueCheckJobscheckJobsItem["DiffSum"].isNull()) - checkJobsObject.diffSum = std::stol(valueCheckJobscheckJobsItem["DiffSum"].asString()); - if(!valueCheckJobscheckJobsItem["FinishCount"].isNull()) - checkJobsObject.finishCount = std::stol(valueCheckJobscheckJobsItem["FinishCount"].asString()); - if(!valueCheckJobscheckJobsItem["GroupId"].isNull()) - checkJobsObject.groupId = valueCheckJobscheckJobsItem["GroupId"].asString(); - if(!valueCheckJobscheckJobsItem["DtsInstanceID"].isNull()) - checkJobsObject.dtsInstanceID = valueCheckJobscheckJobsItem["DtsInstanceID"].asString(); - if(!valueCheckJobscheckJobsItem["ChargeType"].isNull()) - checkJobsObject.chargeType = valueCheckJobscheckJobsItem["ChargeType"].asString(); - if(!valueCheckJobscheckJobsItem["ParentJobType"].isNull()) - checkJobsObject.parentJobType = valueCheckJobscheckJobsItem["ParentJobType"].asString(); - if(!valueCheckJobscheckJobsItem["RegionId"].isNull()) - checkJobsObject.regionId = valueCheckJobscheckJobsItem["RegionId"].asString(); - checkJobs_.push_back(checkJobsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stol(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - -} - -long DescribeCheckJobsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -std::vector DescribeCheckJobsResult::getCheckJobs()const -{ - return checkJobs_; -} - -long DescribeCheckJobsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeCheckJobsResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeCheckJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeCheckJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeCheckJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeCheckJobsResult::getErrMessage()const -{ - return errMessage_; -} - -bool DescribeCheckJobsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeCheckJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeClusterOperateLogsRequest.cc b/dts/src/model/DescribeClusterOperateLogsRequest.cc deleted file mode 100644 index ef70fd816..000000000 --- a/dts/src/model/DescribeClusterOperateLogsRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeClusterOperateLogsRequest; - -DescribeClusterOperateLogsRequest::DescribeClusterOperateLogsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeClusterOperateLogs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeClusterOperateLogsRequest::~DescribeClusterOperateLogsRequest() {} - -std::string DescribeClusterOperateLogsRequest::getClientToken() const { - return clientToken_; -} - -void DescribeClusterOperateLogsRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeClusterOperateLogsRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void DescribeClusterOperateLogsRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setBodyParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -long DescribeClusterOperateLogsRequest::getStartTime() const { - return startTime_; -} - -void DescribeClusterOperateLogsRequest::setStartTime(long startTime) { - startTime_ = startTime; - setBodyParameter(std::string("StartTime"), std::to_string(startTime)); -} - -int DescribeClusterOperateLogsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeClusterOperateLogsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setBodyParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeClusterOperateLogsRequest::getAccountId() const { - return accountId_; -} - -void DescribeClusterOperateLogsRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setBodyParameter(std::string("AccountId"), accountId); -} - -int DescribeClusterOperateLogsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeClusterOperateLogsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setBodyParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeClusterOperateLogsRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeClusterOperateLogsRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setBodyParameter(std::string("DtsJobId"), dtsJobId); -} - -long DescribeClusterOperateLogsRequest::getEndTime() const { - return endTime_; -} - -void DescribeClusterOperateLogsRequest::setEndTime(long endTime) { - endTime_ = endTime; - setBodyParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string DescribeClusterOperateLogsRequest::getOwnerID() const { - return ownerID_; -} - -void DescribeClusterOperateLogsRequest::setOwnerID(const std::string &ownerID) { - ownerID_ = ownerID; - setBodyParameter(std::string("OwnerID"), ownerID); -} - diff --git a/dts/src/model/DescribeClusterOperateLogsResult.cc b/dts/src/model/DescribeClusterOperateLogsResult.cc deleted file mode 100644 index 44172ba20..000000000 --- a/dts/src/model/DescribeClusterOperateLogsResult.cc +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeClusterOperateLogsResult::DescribeClusterOperateLogsResult() : - ServiceResult() -{} - -DescribeClusterOperateLogsResult::DescribeClusterOperateLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeClusterOperateLogsResult::~DescribeClusterOperateLogsResult() -{} - -void DescribeClusterOperateLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataPointsNode = value["DataPoints"]["DataPoint"]; - for (auto valueDataPointsDataPoint : allDataPointsNode) - { - DataPoint dataPointsObject; - if(!valueDataPointsDataPoint["Id"].isNull()) - dataPointsObject.id = valueDataPointsDataPoint["Id"].asString(); - if(!valueDataPointsDataPoint["LogDatetime"].isNull()) - dataPointsObject.logDatetime = std::stol(valueDataPointsDataPoint["LogDatetime"].asString()); - if(!valueDataPointsDataPoint["OperationName"].isNull()) - dataPointsObject.operationName = valueDataPointsDataPoint["OperationName"].asString(); - if(!valueDataPointsDataPoint["OperationUser"].isNull()) - dataPointsObject.operationUser = valueDataPointsDataPoint["OperationUser"].asString(); - if(!valueDataPointsDataPoint["OldValue"].isNull()) - dataPointsObject.oldValue = valueDataPointsDataPoint["OldValue"].asString(); - if(!valueDataPointsDataPoint["NewValue"].isNull()) - dataPointsObject.newValue = valueDataPointsDataPoint["NewValue"].asString(); - if(!valueDataPointsDataPoint["Content"].isNull()) - dataPointsObject.content = valueDataPointsDataPoint["Content"].asString(); - if(!valueDataPointsDataPoint["Success"].isNull()) - dataPointsObject.success = std::stoi(valueDataPointsDataPoint["Success"].asString()); - dataPoints_.push_back(dataPointsObject); - } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - -long DescribeClusterOperateLogsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeClusterOperateLogsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeClusterOperateLogsResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeClusterOperateLogsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector DescribeClusterOperateLogsResult::getDataPoints()const -{ - return dataPoints_; -} - -std::string DescribeClusterOperateLogsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeClusterOperateLogsResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeClusterOperateLogsResult::getCode()const -{ - return code_; -} - -bool DescribeClusterOperateLogsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeClusterOperateLogsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeClusterUsedUtilizationRequest.cc b/dts/src/model/DescribeClusterUsedUtilizationRequest.cc deleted file mode 100644 index e868104e0..000000000 --- a/dts/src/model/DescribeClusterUsedUtilizationRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeClusterUsedUtilizationRequest; - -DescribeClusterUsedUtilizationRequest::DescribeClusterUsedUtilizationRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeClusterUsedUtilization") { - setMethod(HttpRequest::Method::Post); -} - -DescribeClusterUsedUtilizationRequest::~DescribeClusterUsedUtilizationRequest() {} - -std::string DescribeClusterUsedUtilizationRequest::getMetricType() const { - return metricType_; -} - -void DescribeClusterUsedUtilizationRequest::setMetricType(const std::string &metricType) { - metricType_ = metricType; - setBodyParameter(std::string("MetricType"), metricType); -} - -std::string DescribeClusterUsedUtilizationRequest::getClientToken() const { - return clientToken_; -} - -void DescribeClusterUsedUtilizationRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeClusterUsedUtilizationRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void DescribeClusterUsedUtilizationRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setBodyParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string DescribeClusterUsedUtilizationRequest::getEnv() const { - return env_; -} - -void DescribeClusterUsedUtilizationRequest::setEnv(const std::string &env) { - env_ = env; - setBodyParameter(std::string("Env"), env); -} - -std::string DescribeClusterUsedUtilizationRequest::getOwnerID() const { - return ownerID_; -} - -void DescribeClusterUsedUtilizationRequest::setOwnerID(const std::string &ownerID) { - ownerID_ = ownerID; - setBodyParameter(std::string("OwnerID"), ownerID); -} - -std::string DescribeClusterUsedUtilizationRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeClusterUsedUtilizationRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setBodyParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeClusterUsedUtilizationRequest::getAccountId() const { - return accountId_; -} - -void DescribeClusterUsedUtilizationRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setBodyParameter(std::string("AccountId"), accountId); -} - -std::string DescribeClusterUsedUtilizationRequest::getRegionId() const { - return regionId_; -} - -void DescribeClusterUsedUtilizationRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setBodyParameter(std::string("RegionId"), regionId); -} - -std::string DescribeClusterUsedUtilizationRequest::getSecurityToken() const { - return securityToken_; -} - -void DescribeClusterUsedUtilizationRequest::setSecurityToken(const std::string &securityToken) { - securityToken_ = securityToken; - setBodyParameter(std::string("SecurityToken"), securityToken); -} - -std::string DescribeClusterUsedUtilizationRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeClusterUsedUtilizationRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setBodyParameter(std::string("DtsJobId"), dtsJobId); -} - diff --git a/dts/src/model/DescribeClusterUsedUtilizationResult.cc b/dts/src/model/DescribeClusterUsedUtilizationResult.cc deleted file mode 100644 index f03f9ecf2..000000000 --- a/dts/src/model/DescribeClusterUsedUtilizationResult.cc +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeClusterUsedUtilizationResult::DescribeClusterUsedUtilizationResult() : - ServiceResult() -{} - -DescribeClusterUsedUtilizationResult::DescribeClusterUsedUtilizationResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeClusterUsedUtilizationResult::~DescribeClusterUsedUtilizationResult() -{} - -void DescribeClusterUsedUtilizationResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["DedicatedClusterId"].isNull()) - dedicatedClusterId_ = value["DedicatedClusterId"].asString(); - if(!value["CpuTotal"].isNull()) - cpuTotal_ = std::stof(value["CpuTotal"].asString()); - if(!value["MemoryUsed"].isNull()) - memoryUsed_ = std::stof(value["MemoryUsed"].asString()); - if(!value["MemoryTotal"].isNull()) - memoryTotal_ = std::stof(value["MemoryTotal"].asString()); - if(!value["DiskTotal"].isNull()) - diskTotal_ = std::stof(value["DiskTotal"].asString()); - if(!value["DiskUsed"].isNull()) - diskUsed_ = std::stof(value["DiskUsed"].asString()); - if(!value["DuTotal"].isNull()) - duTotal_ = std::stoi(value["DuTotal"].asString()); - if(!value["DuUsed"].isNull()) - duUsed_ = std::stoi(value["DuUsed"].asString()); - if(!value["TaskRunning"].isNull()) - taskRunning_ = std::stoi(value["TaskRunning"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["MemoryUsedPercentage"].isNull()) - memoryUsedPercentage_ = std::stof(value["MemoryUsedPercentage"].asString()); - -} - -std::string DescribeClusterUsedUtilizationResult::getDedicatedClusterId()const -{ - return dedicatedClusterId_; -} - -std::string DescribeClusterUsedUtilizationResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -int DescribeClusterUsedUtilizationResult::getDuUsed()const -{ - return duUsed_; -} - -std::string DescribeClusterUsedUtilizationResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeClusterUsedUtilizationResult::getCode()const -{ - return code_; -} - -bool DescribeClusterUsedUtilizationResult::getSuccess()const -{ - return success_; -} - -std::string DescribeClusterUsedUtilizationResult::getErrCode()const -{ - return errCode_; -} - -int DescribeClusterUsedUtilizationResult::getDuTotal()const -{ - return duTotal_; -} - -float DescribeClusterUsedUtilizationResult::getDiskTotal()const -{ - return diskTotal_; -} - -int DescribeClusterUsedUtilizationResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -float DescribeClusterUsedUtilizationResult::getMemoryUsedPercentage()const -{ - return memoryUsedPercentage_; -} - -float DescribeClusterUsedUtilizationResult::getMemoryUsed()const -{ - return memoryUsed_; -} - -int DescribeClusterUsedUtilizationResult::getTaskRunning()const -{ - return taskRunning_; -} - -float DescribeClusterUsedUtilizationResult::getDiskUsed()const -{ - return diskUsed_; -} - -float DescribeClusterUsedUtilizationResult::getMemoryTotal()const -{ - return memoryTotal_; -} - -float DescribeClusterUsedUtilizationResult::getCpuTotal()const -{ - return cpuTotal_; -} - diff --git a/dts/src/model/DescribeConnectionStatusRequest.cc b/dts/src/model/DescribeConnectionStatusRequest.cc deleted file mode 100644 index f8f6401bd..000000000 --- a/dts/src/model/DescribeConnectionStatusRequest.cc +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeConnectionStatusRequest; - -DescribeConnectionStatusRequest::DescribeConnectionStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeConnectionStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribeConnectionStatusRequest::~DescribeConnectionStatusRequest() {} - -std::string DescribeConnectionStatusRequest::getSourceEndpointRegion() const { - return sourceEndpointRegion_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointArchitecture() const { - return sourceEndpointArchitecture_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointArchitecture(const std::string &sourceEndpointArchitecture) { - sourceEndpointArchitecture_ = sourceEndpointArchitecture; - setParameter(std::string("SourceEndpointArchitecture"), sourceEndpointArchitecture); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointInstanceType() const { - return destinationEndpointInstanceType_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType) { - destinationEndpointInstanceType_ = destinationEndpointInstanceType; - setParameter(std::string("DestinationEndpointInstanceType"), destinationEndpointInstanceType); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointInstanceID() const { - return sourceEndpointInstanceID_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) { - sourceEndpointInstanceID_ = sourceEndpointInstanceID; - setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointUserName() const { - return sourceEndpointUserName_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointUserName(const std::string &sourceEndpointUserName) { - sourceEndpointUserName_ = sourceEndpointUserName; - setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointDatabaseName() const { - return sourceEndpointDatabaseName_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) { - sourceEndpointDatabaseName_ = sourceEndpointDatabaseName; - setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointRegion() const { - return destinationEndpointRegion_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) { - destinationEndpointRegion_ = destinationEndpointRegion; - setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointIP() const { - return sourceEndpointIP_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointIP(const std::string &sourceEndpointIP) { - sourceEndpointIP_ = sourceEndpointIP; - setParameter(std::string("SourceEndpointIP"), sourceEndpointIP); -} - -std::string DescribeConnectionStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeConnectionStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointUserName() const { - return destinationEndpointUserName_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) { - destinationEndpointUserName_ = destinationEndpointUserName; - setParameter(std::string("DestinationEndpointUserName"), destinationEndpointUserName); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointArchitecture() const { - return destinationEndpointArchitecture_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointArchitecture(const std::string &destinationEndpointArchitecture) { - destinationEndpointArchitecture_ = destinationEndpointArchitecture; - setParameter(std::string("DestinationEndpointArchitecture"), destinationEndpointArchitecture); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointOracleSID() const { - return destinationEndpointOracleSID_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointOracleSID(const std::string &destinationEndpointOracleSID) { - destinationEndpointOracleSID_ = destinationEndpointOracleSID; - setParameter(std::string("DestinationEndpointOracleSID"), destinationEndpointOracleSID); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointEngineName() const { - return destinationEndpointEngineName_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointEngineName(const std::string &destinationEndpointEngineName) { - destinationEndpointEngineName_ = destinationEndpointEngineName; - setParameter(std::string("DestinationEndpointEngineName"), destinationEndpointEngineName); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointInstanceID() const { - return destinationEndpointInstanceID_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointInstanceID(const std::string &destinationEndpointInstanceID) { - destinationEndpointInstanceID_ = destinationEndpointInstanceID; - setParameter(std::string("DestinationEndpointInstanceID"), destinationEndpointInstanceID); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointPort() const { - return destinationEndpointPort_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointPort(const std::string &destinationEndpointPort) { - destinationEndpointPort_ = destinationEndpointPort; - setParameter(std::string("DestinationEndpointPort"), destinationEndpointPort); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointPassword() const { - return sourceEndpointPassword_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointPassword(const std::string &sourceEndpointPassword) { - sourceEndpointPassword_ = sourceEndpointPassword; - setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointPort() const { - return sourceEndpointPort_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) { - sourceEndpointPort_ = sourceEndpointPort; - setParameter(std::string("SourceEndpointPort"), sourceEndpointPort); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointIP() const { - return destinationEndpointIP_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointIP(const std::string &destinationEndpointIP) { - destinationEndpointIP_ = destinationEndpointIP; - setParameter(std::string("DestinationEndpointIP"), destinationEndpointIP); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointInstanceType() const { - return sourceEndpointInstanceType_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) { - sourceEndpointInstanceType_ = sourceEndpointInstanceType; - setParameter(std::string("SourceEndpointInstanceType"), sourceEndpointInstanceType); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointOracleSID() const { - return sourceEndpointOracleSID_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID) { - sourceEndpointOracleSID_ = sourceEndpointOracleSID; - setParameter(std::string("SourceEndpointOracleSID"), sourceEndpointOracleSID); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointDatabaseName() const { - return destinationEndpointDatabaseName_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointDatabaseName(const std::string &destinationEndpointDatabaseName) { - destinationEndpointDatabaseName_ = destinationEndpointDatabaseName; - setParameter(std::string("DestinationEndpointDatabaseName"), destinationEndpointDatabaseName); -} - -std::string DescribeConnectionStatusRequest::getDestinationEndpointPassword() const { - return destinationEndpointPassword_; -} - -void DescribeConnectionStatusRequest::setDestinationEndpointPassword(const std::string &destinationEndpointPassword) { - destinationEndpointPassword_ = destinationEndpointPassword; - setParameter(std::string("DestinationEndpointPassword"), destinationEndpointPassword); -} - -std::string DescribeConnectionStatusRequest::getSourceEndpointEngineName() const { - return sourceEndpointEngineName_; -} - -void DescribeConnectionStatusRequest::setSourceEndpointEngineName(const std::string &sourceEndpointEngineName) { - sourceEndpointEngineName_ = sourceEndpointEngineName; - setParameter(std::string("SourceEndpointEngineName"), sourceEndpointEngineName); -} - diff --git a/dts/src/model/DescribeConnectionStatusResult.cc b/dts/src/model/DescribeConnectionStatusResult.cc deleted file mode 100644 index 35447b940..000000000 --- a/dts/src/model/DescribeConnectionStatusResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeConnectionStatusResult::DescribeConnectionStatusResult() : - ServiceResult() -{} - -DescribeConnectionStatusResult::DescribeConnectionStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConnectionStatusResult::~DescribeConnectionStatusResult() -{} - -void DescribeConnectionStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["SourceConnectionStatus"].isNull()) - sourceConnectionStatus_ = value["SourceConnectionStatus"].asString(); - if(!value["DestinationConnectionStatus"].isNull()) - destinationConnectionStatus_ = value["DestinationConnectionStatus"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string DescribeConnectionStatusResult::getSourceConnectionStatus()const -{ - return sourceConnectionStatus_; -} - -std::string DescribeConnectionStatusResult::getDestinationConnectionStatus()const -{ - return destinationConnectionStatus_; -} - -std::string DescribeConnectionStatusResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeConnectionStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeConnectionStatusResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeConsumerChannelRequest.cc b/dts/src/model/DescribeConsumerChannelRequest.cc deleted file mode 100644 index 94ae79290..000000000 --- a/dts/src/model/DescribeConsumerChannelRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeConsumerChannelRequest; - -DescribeConsumerChannelRequest::DescribeConsumerChannelRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeConsumerChannel") { - setMethod(HttpRequest::Method::Post); -} - -DescribeConsumerChannelRequest::~DescribeConsumerChannelRequest() {} - -int DescribeConsumerChannelRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeConsumerChannelRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeConsumerChannelRequest::getRegionId() const { - return regionId_; -} - -void DescribeConsumerChannelRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeConsumerChannelRequest::getParentChannelId() const { - return parentChannelId_; -} - -void DescribeConsumerChannelRequest::setParentChannelId(const std::string &parentChannelId) { - parentChannelId_ = parentChannelId; - setParameter(std::string("ParentChannelId"), parentChannelId); -} - -int DescribeConsumerChannelRequest::getPageSize() const { - return pageSize_; -} - -void DescribeConsumerChannelRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeConsumerChannelRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeConsumerChannelRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeConsumerChannelRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DescribeConsumerChannelRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/DescribeConsumerChannelResult.cc b/dts/src/model/DescribeConsumerChannelResult.cc deleted file mode 100644 index ca1f0d776..000000000 --- a/dts/src/model/DescribeConsumerChannelResult.cc +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeConsumerChannelResult::DescribeConsumerChannelResult() : - ServiceResult() -{} - -DescribeConsumerChannelResult::DescribeConsumerChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConsumerChannelResult::~DescribeConsumerChannelResult() -{} - -void DescribeConsumerChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allConsumerChannelsNode = value["ConsumerChannels"]["ConsumerChannel"]; - for (auto valueConsumerChannelsConsumerChannel : allConsumerChannelsNode) - { - ConsumerChannel consumerChannelsObject; - if(!valueConsumerChannelsConsumerChannel["ConsumerGroupUserName"].isNull()) - consumerChannelsObject.consumerGroupUserName = valueConsumerChannelsConsumerChannel["ConsumerGroupUserName"].asString(); - if(!valueConsumerChannelsConsumerChannel["ConsumerGroupId"].isNull()) - consumerChannelsObject.consumerGroupId = valueConsumerChannelsConsumerChannel["ConsumerGroupId"].asString(); - if(!valueConsumerChannelsConsumerChannel["MessageDelay"].isNull()) - consumerChannelsObject.messageDelay = std::stol(valueConsumerChannelsConsumerChannel["MessageDelay"].asString()); - if(!valueConsumerChannelsConsumerChannel["ConsumerGroupName"].isNull()) - consumerChannelsObject.consumerGroupName = valueConsumerChannelsConsumerChannel["ConsumerGroupName"].asString(); - if(!valueConsumerChannelsConsumerChannel["ConsumptionCheckpoint"].isNull()) - consumerChannelsObject.consumptionCheckpoint = valueConsumerChannelsConsumerChannel["ConsumptionCheckpoint"].asString(); - if(!valueConsumerChannelsConsumerChannel["UnconsumedData"].isNull()) - consumerChannelsObject.unconsumedData = std::stol(valueConsumerChannelsConsumerChannel["UnconsumedData"].asString()); - consumerChannels_.push_back(consumerChannelsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -long DescribeConsumerChannelResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeConsumerChannelResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeConsumerChannelResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeConsumerChannelResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector DescribeConsumerChannelResult::getConsumerChannels()const -{ - return consumerChannels_; -} - -std::string DescribeConsumerChannelResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeConsumerChannelResult::getSuccess()const -{ - return success_; -} - -std::string DescribeConsumerChannelResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeConsumerGroupRequest.cc b/dts/src/model/DescribeConsumerGroupRequest.cc deleted file mode 100644 index 0526e1eb1..000000000 --- a/dts/src/model/DescribeConsumerGroupRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeConsumerGroupRequest; - -DescribeConsumerGroupRequest::DescribeConsumerGroupRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeConsumerGroup") { - setMethod(HttpRequest::Method::Post); -} - -DescribeConsumerGroupRequest::~DescribeConsumerGroupRequest() {} - -std::string DescribeConsumerGroupRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void DescribeConsumerGroupRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -int DescribeConsumerGroupRequest::getPageNum() const { - return pageNum_; -} - -void DescribeConsumerGroupRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string DescribeConsumerGroupRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeConsumerGroupRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeConsumerGroupRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeConsumerGroupRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeConsumerGroupRequest::getAccountId() const { - return accountId_; -} - -void DescribeConsumerGroupRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeConsumerGroupRequest::getRegionId() const { - return regionId_; -} - -void DescribeConsumerGroupRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeConsumerGroupRequest::getPageSize() const { - return pageSize_; -} - -void DescribeConsumerGroupRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - diff --git a/dts/src/model/DescribeConsumerGroupResult.cc b/dts/src/model/DescribeConsumerGroupResult.cc deleted file mode 100644 index fcc6094e0..000000000 --- a/dts/src/model/DescribeConsumerGroupResult.cc +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeConsumerGroupResult::DescribeConsumerGroupResult() : - ServiceResult() -{} - -DescribeConsumerGroupResult::DescribeConsumerGroupResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeConsumerGroupResult::~DescribeConsumerGroupResult() -{} - -void DescribeConsumerGroupResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allConsumerChannelsNode = value["ConsumerChannels"]["DescribeConsumerChannel"]; - for (auto valueConsumerChannelsDescribeConsumerChannel : allConsumerChannelsNode) - { - DescribeConsumerChannel consumerChannelsObject; - if(!valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupUserName"].isNull()) - consumerChannelsObject.consumerGroupUserName = valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupUserName"].asString(); - if(!valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupID"].isNull()) - consumerChannelsObject.consumerGroupID = valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupID"].asString(); - if(!valueConsumerChannelsDescribeConsumerChannel["MessageDelay"].isNull()) - consumerChannelsObject.messageDelay = std::stol(valueConsumerChannelsDescribeConsumerChannel["MessageDelay"].asString()); - if(!valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupName"].isNull()) - consumerChannelsObject.consumerGroupName = valueConsumerChannelsDescribeConsumerChannel["ConsumerGroupName"].asString(); - if(!valueConsumerChannelsDescribeConsumerChannel["ConsumptionCheckpoint"].isNull()) - consumerChannelsObject.consumptionCheckpoint = valueConsumerChannelsDescribeConsumerChannel["ConsumptionCheckpoint"].asString(); - if(!valueConsumerChannelsDescribeConsumerChannel["UnconsumedData"].isNull()) - consumerChannelsObject.unconsumedData = std::stol(valueConsumerChannelsDescribeConsumerChannel["UnconsumedData"].asString()); - consumerChannels_.push_back(consumerChannelsObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int DescribeConsumerGroupResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeConsumerGroupResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeConsumerGroupResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeConsumerGroupResult::getConsumerChannels()const -{ - return consumerChannels_; -} - -std::string DescribeConsumerGroupResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeConsumerGroupResult::getSuccess()const -{ - return success_; -} - -std::string DescribeConsumerGroupResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDTSIPRequest.cc b/dts/src/model/DescribeDTSIPRequest.cc deleted file mode 100644 index ddc643dfa..000000000 --- a/dts/src/model/DescribeDTSIPRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDTSIPRequest; - -DescribeDTSIPRequest::DescribeDTSIPRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDTSIP") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDTSIPRequest::~DescribeDTSIPRequest() {} - -std::string DescribeDTSIPRequest::getSourceEndpointRegion() const { - return sourceEndpointRegion_; -} - -void DescribeDTSIPRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) { - sourceEndpointRegion_ = sourceEndpointRegion; - setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion); -} - -std::string DescribeDTSIPRequest::getDestinationEndpointRegion() const { - return destinationEndpointRegion_; -} - -void DescribeDTSIPRequest::setDestinationEndpointRegion(const std::string &destinationEndpointRegion) { - destinationEndpointRegion_ = destinationEndpointRegion; - setParameter(std::string("DestinationEndpointRegion"), destinationEndpointRegion); -} - -std::string DescribeDTSIPRequest::getRegionId() const { - return regionId_; -} - -void DescribeDTSIPRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeDTSIPResult.cc b/dts/src/model/DescribeDTSIPResult.cc deleted file mode 100644 index ef0163f7b..000000000 --- a/dts/src/model/DescribeDTSIPResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDTSIPResult::DescribeDTSIPResult() : - ServiceResult() -{} - -DescribeDTSIPResult::DescribeDTSIPResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDTSIPResult::~DescribeDTSIPResult() -{} - -void DescribeDTSIPResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -std::string DescribeDTSIPResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeDTSIPResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDTSIPResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeDTSIPResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDTSIPResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDataCheckReportUrlRequest.cc b/dts/src/model/DescribeDataCheckReportUrlRequest.cc deleted file mode 100644 index 040725305..000000000 --- a/dts/src/model/DescribeDataCheckReportUrlRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDataCheckReportUrlRequest; - -DescribeDataCheckReportUrlRequest::DescribeDataCheckReportUrlRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDataCheckReportUrl") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDataCheckReportUrlRequest::~DescribeDataCheckReportUrlRequest() {} - -std::string DescribeDataCheckReportUrlRequest::getJobStepId() const { - return jobStepId_; -} - -void DescribeDataCheckReportUrlRequest::setJobStepId(const std::string &jobStepId) { - jobStepId_ = jobStepId; - setParameter(std::string("JobStepId"), jobStepId); -} - -std::string DescribeDataCheckReportUrlRequest::getTbName() const { - return tbName_; -} - -void DescribeDataCheckReportUrlRequest::setTbName(const std::string &tbName) { - tbName_ = tbName; - setParameter(std::string("TbName"), tbName); -} - -std::string DescribeDataCheckReportUrlRequest::getDbName() const { - return dbName_; -} - -void DescribeDataCheckReportUrlRequest::setDbName(const std::string &dbName) { - dbName_ = dbName; - setParameter(std::string("DbName"), dbName); -} - diff --git a/dts/src/model/DescribeDataCheckReportUrlResult.cc b/dts/src/model/DescribeDataCheckReportUrlResult.cc deleted file mode 100644 index 18c2841c8..000000000 --- a/dts/src/model/DescribeDataCheckReportUrlResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDataCheckReportUrlResult::DescribeDataCheckReportUrlResult() : - ServiceResult() -{} - -DescribeDataCheckReportUrlResult::DescribeDataCheckReportUrlResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataCheckReportUrlResult::~DescribeDataCheckReportUrlResult() -{} - -void DescribeDataCheckReportUrlResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - -int DescribeDataCheckReportUrlResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeDataCheckReportUrlResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDataCheckReportUrlResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeDataCheckReportUrlResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDataCheckReportUrlResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDataCheckTableDetailsRequest.cc b/dts/src/model/DescribeDataCheckTableDetailsRequest.cc deleted file mode 100644 index 2469b0368..000000000 --- a/dts/src/model/DescribeDataCheckTableDetailsRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDataCheckTableDetailsRequest; - -DescribeDataCheckTableDetailsRequest::DescribeDataCheckTableDetailsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDataCheckTableDetails") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDataCheckTableDetailsRequest::~DescribeDataCheckTableDetailsRequest() {} - -int DescribeDataCheckTableDetailsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeDataCheckTableDetailsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeDataCheckTableDetailsRequest::getJobStepId() const { - return jobStepId_; -} - -void DescribeDataCheckTableDetailsRequest::setJobStepId(const std::string &jobStepId) { - jobStepId_ = jobStepId; - setParameter(std::string("JobStepId"), jobStepId); -} - -int DescribeDataCheckTableDetailsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeDataCheckTableDetailsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeDataCheckTableDetailsRequest::getTableName() const { - return tableName_; -} - -void DescribeDataCheckTableDetailsRequest::setTableName(const std::string &tableName) { - tableName_ = tableName; - setParameter(std::string("TableName"), tableName); -} - -std::string DescribeDataCheckTableDetailsRequest::getStatus() const { - return status_; -} - -void DescribeDataCheckTableDetailsRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/dts/src/model/DescribeDataCheckTableDetailsResult.cc b/dts/src/model/DescribeDataCheckTableDetailsResult.cc deleted file mode 100644 index c897336f2..000000000 --- a/dts/src/model/DescribeDataCheckTableDetailsResult.cc +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDataCheckTableDetailsResult::DescribeDataCheckTableDetailsResult() : - ServiceResult() -{} - -DescribeDataCheckTableDetailsResult::DescribeDataCheckTableDetailsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataCheckTableDetailsResult::~DescribeDataCheckTableDetailsResult() -{} - -void DescribeDataCheckTableDetailsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTableDetailsNode = value["TableDetails"]["TableDetailsItem"]; - for (auto valueTableDetailsTableDetailsItem : allTableDetailsNode) - { - TableDetailsItem tableDetailsObject; - if(!valueTableDetailsTableDetailsItem["Status"].isNull()) - tableDetailsObject.status = valueTableDetailsTableDetailsItem["Status"].asString(); - if(!valueTableDetailsTableDetailsItem["Id"].isNull()) - tableDetailsObject.id = std::stol(valueTableDetailsTableDetailsItem["Id"].asString()); - if(!valueTableDetailsTableDetailsItem["SourceDbName"].isNull()) - tableDetailsObject.sourceDbName = valueTableDetailsTableDetailsItem["SourceDbName"].asString(); - if(!valueTableDetailsTableDetailsItem["TargetDbName"].isNull()) - tableDetailsObject.targetDbName = valueTableDetailsTableDetailsItem["TargetDbName"].asString(); - if(!valueTableDetailsTableDetailsItem["SourceTbName"].isNull()) - tableDetailsObject.sourceTbName = valueTableDetailsTableDetailsItem["SourceTbName"].asString(); - if(!valueTableDetailsTableDetailsItem["TargetTbName"].isNull()) - tableDetailsObject.targetTbName = valueTableDetailsTableDetailsItem["TargetTbName"].asString(); - if(!valueTableDetailsTableDetailsItem["TotalCount"].isNull()) - tableDetailsObject.totalCount = std::stol(valueTableDetailsTableDetailsItem["TotalCount"].asString()); - if(!valueTableDetailsTableDetailsItem["FinishCount"].isNull()) - tableDetailsObject.finishCount = std::stol(valueTableDetailsTableDetailsItem["FinishCount"].asString()); - if(!valueTableDetailsTableDetailsItem["DiffCount"].isNull()) - tableDetailsObject.diffCount = std::stol(valueTableDetailsTableDetailsItem["DiffCount"].asString()); - if(!valueTableDetailsTableDetailsItem["BootTime"].isNull()) - tableDetailsObject.bootTime = valueTableDetailsTableDetailsItem["BootTime"].asString(); - tableDetails_.push_back(tableDetailsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["RunningCount"].isNull()) - runningCount_ = std::stol(value["RunningCount"].asString()); - if(!value["WarningCount"].isNull()) - warningCount_ = std::stol(value["WarningCount"].asString()); - if(!value["FailedCount"].isNull()) - failedCount_ = std::stol(value["FailedCount"].asString()); - if(!value["InitCount"].isNull()) - initCount_ = std::stol(value["InitCount"].asString()); - if(!value["FinishedCount"].isNull()) - finishedCount_ = std::stol(value["FinishedCount"].asString()); - if(!value["DiffRowCount"].isNull()) - diffRowCount_ = std::stol(value["DiffRowCount"].asString()); - -} - -long DescribeDataCheckTableDetailsResult::getWarningCount()const -{ - return warningCount_; -} - -std::vector DescribeDataCheckTableDetailsResult::getTableDetails()const -{ - return tableDetails_; -} - -long DescribeDataCheckTableDetailsResult::getRunningCount()const -{ - return runningCount_; -} - -std::string DescribeDataCheckTableDetailsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDataCheckTableDetailsResult::getErrMessage()const -{ - return errMessage_; -} - -bool DescribeDataCheckTableDetailsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDataCheckTableDetailsResult::getErrCode()const -{ - return errCode_; -} - -long DescribeDataCheckTableDetailsResult::getTotalCount()const -{ - return totalCount_; -} - -int DescribeDataCheckTableDetailsResult::getPageNumber()const -{ - return pageNumber_; -} - -long DescribeDataCheckTableDetailsResult::getInitCount()const -{ - return initCount_; -} - -long DescribeDataCheckTableDetailsResult::getFinishedCount()const -{ - return finishedCount_; -} - -long DescribeDataCheckTableDetailsResult::getDiffRowCount()const -{ - return diffRowCount_; -} - -int DescribeDataCheckTableDetailsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -long DescribeDataCheckTableDetailsResult::getFailedCount()const -{ - return failedCount_; -} - -std::string DescribeDataCheckTableDetailsResult::getDynamicCode()const -{ - return dynamicCode_; -} - diff --git a/dts/src/model/DescribeDataCheckTableDiffDetailsRequest.cc b/dts/src/model/DescribeDataCheckTableDiffDetailsRequest.cc deleted file mode 100644 index a3ad9a89a..000000000 --- a/dts/src/model/DescribeDataCheckTableDiffDetailsRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDataCheckTableDiffDetailsRequest; - -DescribeDataCheckTableDiffDetailsRequest::DescribeDataCheckTableDiffDetailsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDataCheckTableDiffDetails") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDataCheckTableDiffDetailsRequest::~DescribeDataCheckTableDiffDetailsRequest() {} - -std::string DescribeDataCheckTableDiffDetailsRequest::getJobStepId() const { - return jobStepId_; -} - -void DescribeDataCheckTableDiffDetailsRequest::setJobStepId(const std::string &jobStepId) { - jobStepId_ = jobStepId; - setParameter(std::string("JobStepId"), jobStepId); -} - -long DescribeDataCheckTableDiffDetailsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeDataCheckTableDiffDetailsRequest::setPageNumber(long pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -long DescribeDataCheckTableDiffDetailsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeDataCheckTableDiffDetailsRequest::setPageSize(long pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeDataCheckTableDiffDetailsRequest::getTbName() const { - return tbName_; -} - -void DescribeDataCheckTableDiffDetailsRequest::setTbName(const std::string &tbName) { - tbName_ = tbName; - setParameter(std::string("TbName"), tbName); -} - -std::string DescribeDataCheckTableDiffDetailsRequest::getDbName() const { - return dbName_; -} - -void DescribeDataCheckTableDiffDetailsRequest::setDbName(const std::string &dbName) { - dbName_ = dbName; - setParameter(std::string("DbName"), dbName); -} - diff --git a/dts/src/model/DescribeDataCheckTableDiffDetailsResult.cc b/dts/src/model/DescribeDataCheckTableDiffDetailsResult.cc deleted file mode 100644 index 0d3df4e6b..000000000 --- a/dts/src/model/DescribeDataCheckTableDiffDetailsResult.cc +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDataCheckTableDiffDetailsResult::DescribeDataCheckTableDiffDetailsResult() : - ServiceResult() -{} - -DescribeDataCheckTableDiffDetailsResult::DescribeDataCheckTableDiffDetailsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDataCheckTableDiffDetailsResult::~DescribeDataCheckTableDiffDetailsResult() -{} - -void DescribeDataCheckTableDiffDetailsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDiffDetailsNode = value["DiffDetails"]["DiffDetailsItem"]; - for (auto valueDiffDetailsDiffDetailsItem : allDiffDetailsNode) - { - DiffDetailsItem diffDetailsObject; - if(!valueDiffDetailsDiffDetailsItem["Id"].isNull()) - diffDetailsObject.id = std::stol(valueDiffDetailsDiffDetailsItem["Id"].asString()); - if(!valueDiffDetailsDiffDetailsItem["GmtCreated"].isNull()) - diffDetailsObject.gmtCreated = valueDiffDetailsDiffDetailsItem["GmtCreated"].asString(); - if(!valueDiffDetailsDiffDetailsItem["Diff"].isNull()) - diffDetailsObject.diff = valueDiffDetailsDiffDetailsItem["Diff"].asString(); - diffDetails_.push_back(diffDetailsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["TbName"].isNull()) - tbName_ = value["TbName"].asString(); - if(!value["DbName"].isNull()) - dbName_ = value["DbName"].asString(); - if(!value["DiffCount"].isNull()) - diffCount_ = std::stol(value["DiffCount"].asString()); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::vector DescribeDataCheckTableDiffDetailsResult::getDiffDetails()const -{ - return diffDetails_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getInstanceId()const -{ - return instanceId_; -} - -int DescribeDataCheckTableDiffDetailsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getTbName()const -{ - return tbName_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getDbName()const -{ - return dbName_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getErrMessage()const -{ - return errMessage_; -} - -long DescribeDataCheckTableDiffDetailsResult::getDiffCount()const -{ - return diffCount_; -} - -bool DescribeDataCheckTableDiffDetailsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDataCheckTableDiffDetailsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDedicatedClusterMonitorRuleRequest.cc b/dts/src/model/DescribeDedicatedClusterMonitorRuleRequest.cc deleted file mode 100644 index 6885872ed..000000000 --- a/dts/src/model/DescribeDedicatedClusterMonitorRuleRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDedicatedClusterMonitorRuleRequest; - -DescribeDedicatedClusterMonitorRuleRequest::DescribeDedicatedClusterMonitorRuleRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDedicatedClusterMonitorRule") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedClusterMonitorRuleRequest::~DescribeDedicatedClusterMonitorRuleRequest() {} - -std::string DescribeDedicatedClusterMonitorRuleRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void DescribeDedicatedClusterMonitorRuleRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string DescribeDedicatedClusterMonitorRuleRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDedicatedClusterMonitorRuleRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeDedicatedClusterMonitorRuleRequest::getRegionId() const { - return regionId_; -} - -void DescribeDedicatedClusterMonitorRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeDedicatedClusterMonitorRuleResult.cc b/dts/src/model/DescribeDedicatedClusterMonitorRuleResult.cc deleted file mode 100644 index 9a46b0736..000000000 --- a/dts/src/model/DescribeDedicatedClusterMonitorRuleResult.cc +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDedicatedClusterMonitorRuleResult::DescribeDedicatedClusterMonitorRuleResult() : - ServiceResult() -{} - -DescribeDedicatedClusterMonitorRuleResult::DescribeDedicatedClusterMonitorRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedClusterMonitorRuleResult::~DescribeDedicatedClusterMonitorRuleResult() -{} - -void DescribeDedicatedClusterMonitorRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DedicatedClusterId"].isNull()) - dedicatedClusterId_ = value["DedicatedClusterId"].asString(); - if(!value["NoticeSwitch"].isNull()) - noticeSwitch_ = value["NoticeSwitch"].asString(); - if(!value["DuAlarmThreshold"].isNull()) - duAlarmThreshold_ = value["DuAlarmThreshold"].asString(); - if(!value["CpuAlarmThreshold"].isNull()) - cpuAlarmThreshold_ = value["CpuAlarmThreshold"].asString(); - if(!value["MemAlarmThreshold"].isNull()) - memAlarmThreshold_ = value["MemAlarmThreshold"].asString(); - if(!value["DiskAlarmThreshold"].isNull()) - diskAlarmThreshold_ = value["DiskAlarmThreshold"].asString(); - if(!value["Phones"].isNull()) - phones_ = value["Phones"].asString(); - -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getNoticeSwitch()const -{ - return noticeSwitch_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getDedicatedClusterId()const -{ - return dedicatedClusterId_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getPhones()const -{ - return phones_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getDuAlarmThreshold()const -{ - return duAlarmThreshold_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getCpuAlarmThreshold()const -{ - return cpuAlarmThreshold_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getMemAlarmThreshold()const -{ - return memAlarmThreshold_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getDiskAlarmThreshold()const -{ - return diskAlarmThreshold_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDedicatedClusterMonitorRuleResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDedicatedClusterRequest.cc b/dts/src/model/DescribeDedicatedClusterRequest.cc deleted file mode 100644 index 03ec82b32..000000000 --- a/dts/src/model/DescribeDedicatedClusterRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDedicatedClusterRequest; - -DescribeDedicatedClusterRequest::DescribeDedicatedClusterRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDedicatedCluster") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDedicatedClusterRequest::~DescribeDedicatedClusterRequest() {} - -std::string DescribeDedicatedClusterRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void DescribeDedicatedClusterRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string DescribeDedicatedClusterRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDedicatedClusterRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeDedicatedClusterRequest::getRegionId() const { - return regionId_; -} - -void DescribeDedicatedClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeDedicatedClusterResult.cc b/dts/src/model/DescribeDedicatedClusterResult.cc deleted file mode 100644 index a330cf135..000000000 --- a/dts/src/model/DescribeDedicatedClusterResult.cc +++ /dev/null @@ -1,219 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDedicatedClusterResult::DescribeDedicatedClusterResult() : - ServiceResult() -{} - -DescribeDedicatedClusterResult::DescribeDedicatedClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDedicatedClusterResult::~DescribeDedicatedClusterResult() -{} - -void DescribeDedicatedClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DedicatedClusterId"].isNull()) - dedicatedClusterId_ = value["DedicatedClusterId"].asString(); - if(!value["DedicatedClusterName"].isNull()) - dedicatedClusterName_ = value["DedicatedClusterName"].asString(); - if(!value["Du"].isNull()) - du_ = std::stol(value["Du"].asString()); - if(!value["OversoldDu"].isNull()) - oversoldDu_ = std::stol(value["OversoldDu"].asString()); - if(!value["UsedDu"].isNull()) - usedDu_ = std::stol(value["UsedDu"].asString()); - if(!value["State"].isNull()) - state_ = value["State"].asString(); - if(!value["RegionId"].isNull()) - regionId_ = value["RegionId"].asString(); - if(!value["NodeCount"].isNull()) - nodeCount_ = std::stol(value["NodeCount"].asString()); - if(!value["DuUtilization"].isNull()) - duUtilization_ = std::stol(value["DuUtilization"].asString()); - if(!value["CpuUtilization"].isNull()) - cpuUtilization_ = std::stol(value["CpuUtilization"].asString()); - if(!value["TotalCpuCore"].isNull()) - totalCpuCore_ = std::stol(value["TotalCpuCore"].asString()); - if(!value["UsedCpuCore"].isNull()) - usedCpuCore_ = std::stol(value["UsedCpuCore"].asString()); - if(!value["MemUtilization"].isNull()) - memUtilization_ = std::stol(value["MemUtilization"].asString()); - if(!value["TotalMemGBSize"].isNull()) - totalMemGBSize_ = std::stol(value["TotalMemGBSize"].asString()); - if(!value["UsedMemGBSize"].isNull()) - usedMemGBSize_ = std::stol(value["UsedMemGBSize"].asString()); - if(!value["DiskUtilization"].isNull()) - diskUtilization_ = std::stol(value["DiskUtilization"].asString()); - if(!value["TotalDiskGBSize"].isNull()) - totalDiskGBSize_ = std::stol(value["TotalDiskGBSize"].asString()); - if(!value["UsedDiskGBSize"].isNull()) - usedDiskGBSize_ = std::stol(value["UsedDiskGBSize"].asString()); - if(!value["GmtCreated"].isNull()) - gmtCreated_ = std::stol(value["GmtCreated"].asString()); - if(!value["GmtFinished"].isNull()) - gmtFinished_ = std::stol(value["GmtFinished"].asString()); - if(!value["DtsInstanceID"].isNull()) - dtsInstanceID_ = value["DtsInstanceID"].asString(); - -} - -long DescribeDedicatedClusterResult::getUsedDu()const -{ - return usedDu_; -} - -long DescribeDedicatedClusterResult::getDuUtilization()const -{ - return duUtilization_; -} - -long DescribeDedicatedClusterResult::getUsedDiskGBSize()const -{ - return usedDiskGBSize_; -} - -long DescribeDedicatedClusterResult::getGmtCreated()const -{ - return gmtCreated_; -} - -std::string DescribeDedicatedClusterResult::getDedicatedClusterName()const -{ - return dedicatedClusterName_; -} - -std::string DescribeDedicatedClusterResult::getDtsInstanceID()const -{ - return dtsInstanceID_; -} - -std::string DescribeDedicatedClusterResult::getSuccess()const -{ - return success_; -} - -long DescribeDedicatedClusterResult::getTotalMemGBSize()const -{ - return totalMemGBSize_; -} - -long DescribeDedicatedClusterResult::getMemUtilization()const -{ - return memUtilization_; -} - -std::string DescribeDedicatedClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -long DescribeDedicatedClusterResult::getUsedCpuCore()const -{ - return usedCpuCore_; -} - -std::string DescribeDedicatedClusterResult::getDedicatedClusterId()const -{ - return dedicatedClusterId_; -} - -long DescribeDedicatedClusterResult::getNodeCount()const -{ - return nodeCount_; -} - -long DescribeDedicatedClusterResult::getOversoldDu()const -{ - return oversoldDu_; -} - -long DescribeDedicatedClusterResult::getTotalDiskGBSize()const -{ - return totalDiskGBSize_; -} - -long DescribeDedicatedClusterResult::getDiskUtilization()const -{ - return diskUtilization_; -} - -long DescribeDedicatedClusterResult::getGmtFinished()const -{ - return gmtFinished_; -} - -long DescribeDedicatedClusterResult::getUsedMemGBSize()const -{ - return usedMemGBSize_; -} - -std::string DescribeDedicatedClusterResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeDedicatedClusterResult::getErrCode()const -{ - return errCode_; -} - -long DescribeDedicatedClusterResult::getDu()const -{ - return du_; -} - -std::string DescribeDedicatedClusterResult::getState()const -{ - return state_; -} - -long DescribeDedicatedClusterResult::getTotalCpuCore()const -{ - return totalCpuCore_; -} - -std::string DescribeDedicatedClusterResult::getRegionId()const -{ - return regionId_; -} - -long DescribeDedicatedClusterResult::getCpuUtilization()const -{ - return cpuUtilization_; -} - diff --git a/dts/src/model/DescribeDtsEtlJobVersionInfoRequest.cc b/dts/src/model/DescribeDtsEtlJobVersionInfoRequest.cc deleted file mode 100644 index ee617a674..000000000 --- a/dts/src/model/DescribeDtsEtlJobVersionInfoRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDtsEtlJobVersionInfoRequest; - -DescribeDtsEtlJobVersionInfoRequest::DescribeDtsEtlJobVersionInfoRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDtsEtlJobVersionInfo") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDtsEtlJobVersionInfoRequest::~DescribeDtsEtlJobVersionInfoRequest() {} - -int DescribeDtsEtlJobVersionInfoRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeDtsEtlJobVersionInfoRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeDtsEtlJobVersionInfoRequest::getRegionId() const { - return regionId_; -} - -void DescribeDtsEtlJobVersionInfoRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeDtsEtlJobVersionInfoRequest::getPageSize() const { - return pageSize_; -} - -void DescribeDtsEtlJobVersionInfoRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeDtsEtlJobVersionInfoRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeDtsEtlJobVersionInfoRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeDtsEtlJobVersionInfoRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DescribeDtsEtlJobVersionInfoRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/DescribeDtsEtlJobVersionInfoResult.cc b/dts/src/model/DescribeDtsEtlJobVersionInfoResult.cc deleted file mode 100644 index 67712572c..000000000 --- a/dts/src/model/DescribeDtsEtlJobVersionInfoResult.cc +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDtsEtlJobVersionInfoResult::DescribeDtsEtlJobVersionInfoResult() : - ServiceResult() -{} - -DescribeDtsEtlJobVersionInfoResult::DescribeDtsEtlJobVersionInfoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDtsEtlJobVersionInfoResult::~DescribeDtsEtlJobVersionInfoResult() -{} - -void DescribeDtsEtlJobVersionInfoResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDtsEtlJobVersionInfosNode = value["DtsEtlJobVersionInfos"]["DtsEtlJobVersionInfo"]; - for (auto valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo : allDtsEtlJobVersionInfosNode) - { - DtsEtlJobVersionInfo dtsEtlJobVersionInfosObject; - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Status"].isNull()) - dtsEtlJobVersionInfosObject.status = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Status"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsJobName"].isNull()) - dtsEtlJobVersionInfosObject.dtsJobName = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsJobName"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsJobId"].isNull()) - dtsEtlJobVersionInfosObject.dtsJobId = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsJobId"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Version"].isNull()) - dtsEtlJobVersionInfosObject.version = std::stoi(valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Version"].asString()); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsInstanceId"].isNull()) - dtsEtlJobVersionInfosObject.dtsInstanceId = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["DtsInstanceId"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["CreateTime"].isNull()) - dtsEtlJobVersionInfosObject.createTime = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["CreateTime"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["SafeCheckpoint"].isNull()) - dtsEtlJobVersionInfosObject.safeCheckpoint = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["SafeCheckpoint"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Creator"].isNull()) - dtsEtlJobVersionInfosObject.creator = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["Creator"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["ModifyTime"].isNull()) - dtsEtlJobVersionInfosObject.modifyTime = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["ModifyTime"].asString(); - if(!valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["CreatorName"].isNull()) - dtsEtlJobVersionInfosObject.creatorName = valueDtsEtlJobVersionInfosDtsEtlJobVersionInfo["CreatorName"].asString(); - dtsEtlJobVersionInfos_.push_back(dtsEtlJobVersionInfosObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - -} - -int DescribeDtsEtlJobVersionInfoResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeDtsEtlJobVersionInfoResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeDtsEtlJobVersionInfoResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeDtsEtlJobVersionInfoResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector DescribeDtsEtlJobVersionInfoResult::getDtsEtlJobVersionInfos()const -{ - return dtsEtlJobVersionInfos_; -} - -std::string DescribeDtsEtlJobVersionInfoResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeDtsEtlJobVersionInfoResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDtsEtlJobVersionInfoResult::getErrMessage()const -{ - return errMessage_; -} - -bool DescribeDtsEtlJobVersionInfoResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDtsEtlJobVersionInfoResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDtsJobDetailRequest.cc b/dts/src/model/DescribeDtsJobDetailRequest.cc deleted file mode 100644 index 30667b09b..000000000 --- a/dts/src/model/DescribeDtsJobDetailRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDtsJobDetailRequest; - -DescribeDtsJobDetailRequest::DescribeDtsJobDetailRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDtsJobDetail") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDtsJobDetailRequest::~DescribeDtsJobDetailRequest() {} - -bool DescribeDtsJobDetailRequest::getSyncSubJobHistory() const { - return syncSubJobHistory_; -} - -void DescribeDtsJobDetailRequest::setSyncSubJobHistory(bool syncSubJobHistory) { - syncSubJobHistory_ = syncSubJobHistory; - setParameter(std::string("SyncSubJobHistory"), syncSubJobHistory ? "true" : "false"); -} - -std::string DescribeDtsJobDetailRequest::getRegionId() const { - return regionId_; -} - -void DescribeDtsJobDetailRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeDtsJobDetailRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeDtsJobDetailRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeDtsJobDetailRequest::getDtsInstanceID() const { - return dtsInstanceID_; -} - -void DescribeDtsJobDetailRequest::setDtsInstanceID(const std::string &dtsInstanceID) { - dtsInstanceID_ = dtsInstanceID; - setParameter(std::string("DtsInstanceID"), dtsInstanceID); -} - -std::string DescribeDtsJobDetailRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void DescribeDtsJobDetailRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/DescribeDtsJobDetailResult.cc b/dts/src/model/DescribeDtsJobDetailResult.cc deleted file mode 100644 index 60083ed5b..000000000 --- a/dts/src/model/DescribeDtsJobDetailResult.cc +++ /dev/null @@ -1,1517 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDtsJobDetailResult::DescribeDtsJobDetailResult() : - ServiceResult() -{} - -DescribeDtsJobDetailResult::DescribeDtsJobDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDtsJobDetailResult::~DescribeDtsJobDetailResult() -{} - -void DescribeDtsJobDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSubDistributedJobNode = value["SubDistributedJob"]["SubDistributedJobItem"]; - for (auto valueSubDistributedJobSubDistributedJobItem : allSubDistributedJobNode) - { - SubDistributedJobItem subDistributedJobObject; - if(!valueSubDistributedJobSubDistributedJobItem["DtsInstanceID"].isNull()) - subDistributedJobObject.dtsInstanceID = valueSubDistributedJobSubDistributedJobItem["DtsInstanceID"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DtsJobId"].isNull()) - subDistributedJobObject.dtsJobId = valueSubDistributedJobSubDistributedJobItem["DtsJobId"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DtsJobName"].isNull()) - subDistributedJobObject.dtsJobName = valueSubDistributedJobSubDistributedJobItem["DtsJobName"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["GroupId"].isNull()) - subDistributedJobObject.groupId = valueSubDistributedJobSubDistributedJobItem["GroupId"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DatabaseCount"].isNull()) - subDistributedJobObject.databaseCount = std::stoi(valueSubDistributedJobSubDistributedJobItem["DatabaseCount"].asString()); - if(!valueSubDistributedJobSubDistributedJobItem["DtsJobClass"].isNull()) - subDistributedJobObject.dtsJobClass = valueSubDistributedJobSubDistributedJobItem["DtsJobClass"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DtsJobDirection"].isNull()) - subDistributedJobObject.dtsJobDirection = valueSubDistributedJobSubDistributedJobItem["DtsJobDirection"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["SynchronizationDirection"].isNull()) - subDistributedJobObject.synchronizationDirection = valueSubDistributedJobSubDistributedJobItem["SynchronizationDirection"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["PayType"].isNull()) - subDistributedJobObject.payType = valueSubDistributedJobSubDistributedJobItem["PayType"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["ExpireTime"].isNull()) - subDistributedJobObject.expireTime = valueSubDistributedJobSubDistributedJobItem["ExpireTime"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["CreateTime"].isNull()) - subDistributedJobObject.createTime = valueSubDistributedJobSubDistributedJobItem["CreateTime"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["FinishTime"].isNull()) - subDistributedJobObject.finishTime = valueSubDistributedJobSubDistributedJobItem["FinishTime"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DbObject"].isNull()) - subDistributedJobObject.dbObject = valueSubDistributedJobSubDistributedJobItem["DbObject"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["Status"].isNull()) - subDistributedJobObject.status = valueSubDistributedJobSubDistributedJobItem["Status"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["ErrorMessage"].isNull()) - subDistributedJobObject.errorMessage = valueSubDistributedJobSubDistributedJobItem["ErrorMessage"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["Delay"].isNull()) - subDistributedJobObject.delay = std::stol(valueSubDistributedJobSubDistributedJobItem["Delay"].asString()); - if(!valueSubDistributedJobSubDistributedJobItem["Checkpoint"].isNull()) - subDistributedJobObject.checkpoint = valueSubDistributedJobSubDistributedJobItem["Checkpoint"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["Reserved"].isNull()) - subDistributedJobObject.reserved = valueSubDistributedJobSubDistributedJobItem["Reserved"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["SubscribeTopic"].isNull()) - subDistributedJobObject.subscribeTopic = valueSubDistributedJobSubDistributedJobItem["SubscribeTopic"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["ConsumptionCheckpoint"].isNull()) - subDistributedJobObject.consumptionCheckpoint = valueSubDistributedJobSubDistributedJobItem["ConsumptionCheckpoint"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["BeginTimestamp"].isNull()) - subDistributedJobObject.beginTimestamp = valueSubDistributedJobSubDistributedJobItem["BeginTimestamp"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["EndTimestamp"].isNull()) - subDistributedJobObject.endTimestamp = valueSubDistributedJobSubDistributedJobItem["EndTimestamp"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["ConsumptionClient"].isNull()) - subDistributedJobObject.consumptionClient = valueSubDistributedJobSubDistributedJobItem["ConsumptionClient"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["DestNetType"].isNull()) - subDistributedJobObject.destNetType = valueSubDistributedJobSubDistributedJobItem["DestNetType"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["AppName"].isNull()) - subDistributedJobObject.appName = valueSubDistributedJobSubDistributedJobItem["AppName"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["EtlCalculator"].isNull()) - subDistributedJobObject.etlCalculator = valueSubDistributedJobSubDistributedJobItem["EtlCalculator"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["OriginType"].isNull()) - subDistributedJobObject.originType = valueSubDistributedJobSubDistributedJobItem["OriginType"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["JobType"].isNull()) - subDistributedJobObject.jobType = valueSubDistributedJobSubDistributedJobItem["JobType"].asString(); - if(!valueSubDistributedJobSubDistributedJobItem["IsDemoJob"].isNull()) - subDistributedJobObject.isDemoJob = valueSubDistributedJobSubDistributedJobItem["IsDemoJob"].asString() == "true"; - if(!valueSubDistributedJobSubDistributedJobItem["TaskType"].isNull()) - subDistributedJobObject.taskType = valueSubDistributedJobSubDistributedJobItem["TaskType"].asString(); - auto allTagListNode = valueSubDistributedJobSubDistributedJobItem["TagList"]["TagListItem"]; - for (auto valueSubDistributedJobSubDistributedJobItemTagListTagListItem : allTagListNode) - { - SubDistributedJobItem::TagListItem tagListObject; - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Id"].isNull()) - tagListObject.id = std::stol(valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Id"].asString()); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["GmtCreate"].isNull()) - tagListObject.gmtCreate = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["GmtCreate"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["GmtModified"].isNull()) - tagListObject.gmtModified = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["GmtModified"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["ResourceId"].isNull()) - tagListObject.resourceId = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["ResourceId"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["ResourceType"].isNull()) - tagListObject.resourceType = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["ResourceType"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["RegionId"].isNull()) - tagListObject.regionId = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["RegionId"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["AliUid"].isNull()) - tagListObject.aliUid = std::stol(valueSubDistributedJobSubDistributedJobItemTagListTagListItem["AliUid"].asString()); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagKey"].isNull()) - tagListObject.tagKey = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagKey"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagValue"].isNull()) - tagListObject.tagValue = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagValue"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagCategory"].isNull()) - tagListObject.tagCategory = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["TagCategory"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["SrcRegion"].isNull()) - tagListObject.srcRegion = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["SrcRegion"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Scope"].isNull()) - tagListObject.scope = valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Scope"].asString(); - if(!valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Creator"].isNull()) - tagListObject.creator = std::stol(valueSubDistributedJobSubDistributedJobItemTagListTagListItem["Creator"].asString()); - subDistributedJobObject.tagList.push_back(tagListObject); - } - auto sourceEndpoint2Node = value["SourceEndpoint"]; - if(!sourceEndpoint2Node["InstanceID"].isNull()) - subDistributedJobObject.sourceEndpoint2.instanceID = sourceEndpoint2Node["InstanceID"].asString(); - if(!sourceEndpoint2Node["Region"].isNull()) - subDistributedJobObject.sourceEndpoint2.region = sourceEndpoint2Node["Region"].asString(); - if(!sourceEndpoint2Node["InstanceType"].isNull()) - subDistributedJobObject.sourceEndpoint2.instanceType = sourceEndpoint2Node["InstanceType"].asString(); - if(!sourceEndpoint2Node["EngineName"].isNull()) - subDistributedJobObject.sourceEndpoint2.engineName = sourceEndpoint2Node["EngineName"].asString(); - if(!sourceEndpoint2Node["Ip"].isNull()) - subDistributedJobObject.sourceEndpoint2.ip = sourceEndpoint2Node["Ip"].asString(); - if(!sourceEndpoint2Node["Port"].isNull()) - subDistributedJobObject.sourceEndpoint2.port = sourceEndpoint2Node["Port"].asString(); - if(!sourceEndpoint2Node["DatabaseName"].isNull()) - subDistributedJobObject.sourceEndpoint2.databaseName = sourceEndpoint2Node["DatabaseName"].asString(); - if(!sourceEndpoint2Node["OracleSID"].isNull()) - subDistributedJobObject.sourceEndpoint2.oracleSID = sourceEndpoint2Node["OracleSID"].asString(); - if(!sourceEndpoint2Node["UserName"].isNull()) - subDistributedJobObject.sourceEndpoint2.userName = sourceEndpoint2Node["UserName"].asString(); - if(!sourceEndpoint2Node["SslSolutionEnum"].isNull()) - subDistributedJobObject.sourceEndpoint2.sslSolutionEnum = sourceEndpoint2Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint2Node["RoleName"].isNull()) - subDistributedJobObject.sourceEndpoint2.roleName = sourceEndpoint2Node["RoleName"].asString(); - if(!sourceEndpoint2Node["AliyunUid"].isNull()) - subDistributedJobObject.sourceEndpoint2.aliyunUid = sourceEndpoint2Node["AliyunUid"].asString(); - auto destinationEndpoint3Node = value["DestinationEndpoint"]; - if(!destinationEndpoint3Node["InstanceID"].isNull()) - subDistributedJobObject.destinationEndpoint3.instanceID = destinationEndpoint3Node["InstanceID"].asString(); - if(!destinationEndpoint3Node["Region"].isNull()) - subDistributedJobObject.destinationEndpoint3.region = destinationEndpoint3Node["Region"].asString(); - if(!destinationEndpoint3Node["InstanceType"].isNull()) - subDistributedJobObject.destinationEndpoint3.instanceType = destinationEndpoint3Node["InstanceType"].asString(); - if(!destinationEndpoint3Node["EngineName"].isNull()) - subDistributedJobObject.destinationEndpoint3.engineName = destinationEndpoint3Node["EngineName"].asString(); - if(!destinationEndpoint3Node["Ip"].isNull()) - subDistributedJobObject.destinationEndpoint3.ip = destinationEndpoint3Node["Ip"].asString(); - if(!destinationEndpoint3Node["Port"].isNull()) - subDistributedJobObject.destinationEndpoint3.port = destinationEndpoint3Node["Port"].asString(); - if(!destinationEndpoint3Node["DatabaseName"].isNull()) - subDistributedJobObject.destinationEndpoint3.databaseName = destinationEndpoint3Node["DatabaseName"].asString(); - if(!destinationEndpoint3Node["OracleSID"].isNull()) - subDistributedJobObject.destinationEndpoint3.oracleSID = destinationEndpoint3Node["OracleSID"].asString(); - if(!destinationEndpoint3Node["UserName"].isNull()) - subDistributedJobObject.destinationEndpoint3.userName = destinationEndpoint3Node["UserName"].asString(); - if(!destinationEndpoint3Node["SslSolutionEnum"].isNull()) - subDistributedJobObject.destinationEndpoint3.sslSolutionEnum = destinationEndpoint3Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint3Node["RoleName"].isNull()) - subDistributedJobObject.destinationEndpoint3.roleName = destinationEndpoint3Node["RoleName"].asString(); - if(!destinationEndpoint3Node["AliyunUid"].isNull()) - subDistributedJobObject.destinationEndpoint3.aliyunUid = destinationEndpoint3Node["AliyunUid"].asString(); - auto migrationMode4Node = value["MigrationMode"]; - if(!migrationMode4Node["StructureInitialization"].isNull()) - subDistributedJobObject.migrationMode4.structureInitialization = migrationMode4Node["StructureInitialization"].asString() == "true"; - if(!migrationMode4Node["DataInitialization"].isNull()) - subDistributedJobObject.migrationMode4.dataInitialization = migrationMode4Node["DataInitialization"].asString() == "true"; - if(!migrationMode4Node["DataSynchronization"].isNull()) - subDistributedJobObject.migrationMode4.dataSynchronization = migrationMode4Node["DataSynchronization"].asString() == "true"; - if(!migrationMode4Node["DataExtractTransformLoad"].isNull()) - subDistributedJobObject.migrationMode4.dataExtractTransformLoad = migrationMode4Node["DataExtractTransformLoad"].asString() == "true"; - auto precheckStatusNode = value["PrecheckStatus"]; - if(!precheckStatusNode["Status"].isNull()) - subDistributedJobObject.precheckStatus.status = precheckStatusNode["Status"].asString(); - if(!precheckStatusNode["Percent"].isNull()) - subDistributedJobObject.precheckStatus.percent = precheckStatusNode["Percent"].asString(); - if(!precheckStatusNode["ErrorMessage"].isNull()) - subDistributedJobObject.precheckStatus.errorMessage = precheckStatusNode["ErrorMessage"].asString(); - auto allDetailNode = precheckStatusNode["Detail"]["DetailItem"]; - for (auto precheckStatusNodeDetailDetailItem : allDetailNode) - { - SubDistributedJobItem::PrecheckStatus::DetailItem detailItemObject; - if(!precheckStatusNodeDetailDetailItem["CheckItem"].isNull()) - detailItemObject.checkItem = precheckStatusNodeDetailDetailItem["CheckItem"].asString(); - if(!precheckStatusNodeDetailDetailItem["CheckItemDescription"].isNull()) - detailItemObject.checkItemDescription = precheckStatusNodeDetailDetailItem["CheckItemDescription"].asString(); - if(!precheckStatusNodeDetailDetailItem["CheckResult"].isNull()) - detailItemObject.checkResult = precheckStatusNodeDetailDetailItem["CheckResult"].asString(); - if(!precheckStatusNodeDetailDetailItem["FailedReason"].isNull()) - detailItemObject.failedReason = precheckStatusNodeDetailDetailItem["FailedReason"].asString(); - if(!precheckStatusNodeDetailDetailItem["RepairMethod"].isNull()) - detailItemObject.repairMethod = precheckStatusNodeDetailDetailItem["RepairMethod"].asString(); - subDistributedJobObject.precheckStatus.detail.push_back(detailItemObject); - } - auto structureInitializationStatusNode = value["StructureInitializationStatus"]; - if(!structureInitializationStatusNode["Status"].isNull()) - subDistributedJobObject.structureInitializationStatus.status = structureInitializationStatusNode["Status"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - subDistributedJobObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); - if(!structureInitializationStatusNode["Percent"].isNull()) - subDistributedJobObject.structureInitializationStatus.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["Progress"].isNull()) - subDistributedJobObject.structureInitializationStatus.progress = structureInitializationStatusNode["Progress"].asString(); - if(!structureInitializationStatusNode["NeedUpgrade"].isNull()) - subDistributedJobObject.structureInitializationStatus.needUpgrade = structureInitializationStatusNode["NeedUpgrade"].asString() == "true"; - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - subDistributedJobObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - subDistributedJobObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - subDistributedJobObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - subDistributedJobObject.dataInitializationStatus.progress = dataInitializationStatusNode["Progress"].asString(); - if(!dataInitializationStatusNode["NeedUpgrade"].isNull()) - subDistributedJobObject.dataInitializationStatus.needUpgrade = dataInitializationStatusNode["NeedUpgrade"].asString() == "true"; - auto dataSynchronizationStatus5Node = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus5Node["Status"].isNull()) - subDistributedJobObject.dataSynchronizationStatus5.status = dataSynchronizationStatus5Node["Status"].asString(); - if(!dataSynchronizationStatus5Node["ErrorMessage"].isNull()) - subDistributedJobObject.dataSynchronizationStatus5.errorMessage = dataSynchronizationStatus5Node["ErrorMessage"].asString(); - if(!dataSynchronizationStatus5Node["Percent"].isNull()) - subDistributedJobObject.dataSynchronizationStatus5.percent = dataSynchronizationStatus5Node["Percent"].asString(); - if(!dataSynchronizationStatus5Node["Progress"].isNull()) - subDistributedJobObject.dataSynchronizationStatus5.progress = dataSynchronizationStatus5Node["Progress"].asString(); - if(!dataSynchronizationStatus5Node["NeedUpgrade"].isNull()) - subDistributedJobObject.dataSynchronizationStatus5.needUpgrade = dataSynchronizationStatus5Node["NeedUpgrade"].asString() == "true"; - auto dataEtlStatusNode = value["DataEtlStatus"]; - if(!dataEtlStatusNode["Status"].isNull()) - subDistributedJobObject.dataEtlStatus.status = dataEtlStatusNode["Status"].asString(); - if(!dataEtlStatusNode["ErrorMessage"].isNull()) - subDistributedJobObject.dataEtlStatus.errorMessage = dataEtlStatusNode["ErrorMessage"].asString(); - if(!dataEtlStatusNode["Percent"].isNull()) - subDistributedJobObject.dataEtlStatus.percent = dataEtlStatusNode["Percent"].asString(); - if(!dataEtlStatusNode["Progress"].isNull()) - subDistributedJobObject.dataEtlStatus.progress = dataEtlStatusNode["Progress"].asString(); - if(!dataEtlStatusNode["NeedUpgrade"].isNull()) - subDistributedJobObject.dataEtlStatus.needUpgrade = dataEtlStatusNode["NeedUpgrade"].asString() == "true"; - auto performanceNode = value["Performance"]; - if(!performanceNode["Rps"].isNull()) - subDistributedJobObject.performance.rps = performanceNode["Rps"].asString(); - if(!performanceNode["Flow"].isNull()) - subDistributedJobObject.performance.flow = performanceNode["Flow"].asString(); - auto reverseJobNode = value["ReverseJob"]; - if(!reverseJobNode["DtsInstanceID"].isNull()) - subDistributedJobObject.reverseJob.dtsInstanceID = reverseJobNode["DtsInstanceID"].asString(); - if(!reverseJobNode["DtsJobId"].isNull()) - subDistributedJobObject.reverseJob.dtsJobId = reverseJobNode["DtsJobId"].asString(); - if(!reverseJobNode["DtsJobName"].isNull()) - subDistributedJobObject.reverseJob.dtsJobName = reverseJobNode["DtsJobName"].asString(); - if(!reverseJobNode["GroupId"].isNull()) - subDistributedJobObject.reverseJob.groupId = reverseJobNode["GroupId"].asString(); - if(!reverseJobNode["DatabaseCount"].isNull()) - subDistributedJobObject.reverseJob.databaseCount = std::stoi(reverseJobNode["DatabaseCount"].asString()); - if(!reverseJobNode["DtsJobClass"].isNull()) - subDistributedJobObject.reverseJob.dtsJobClass = reverseJobNode["DtsJobClass"].asString(); - if(!reverseJobNode["DtsJobDirection"].isNull()) - subDistributedJobObject.reverseJob.dtsJobDirection = reverseJobNode["DtsJobDirection"].asString(); - if(!reverseJobNode["SynchronizationDirection"].isNull()) - subDistributedJobObject.reverseJob.synchronizationDirection = reverseJobNode["SynchronizationDirection"].asString(); - if(!reverseJobNode["PayType"].isNull()) - subDistributedJobObject.reverseJob.payType = reverseJobNode["PayType"].asString(); - if(!reverseJobNode["ExpireTime"].isNull()) - subDistributedJobObject.reverseJob.expireTime = reverseJobNode["ExpireTime"].asString(); - if(!reverseJobNode["CreateTime"].isNull()) - subDistributedJobObject.reverseJob.createTime = reverseJobNode["CreateTime"].asString(); - if(!reverseJobNode["FinishTime"].isNull()) - subDistributedJobObject.reverseJob.finishTime = reverseJobNode["FinishTime"].asString(); - if(!reverseJobNode["DbObject"].isNull()) - subDistributedJobObject.reverseJob.dbObject = reverseJobNode["DbObject"].asString(); - if(!reverseJobNode["Status"].isNull()) - subDistributedJobObject.reverseJob.status = reverseJobNode["Status"].asString(); - if(!reverseJobNode["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.errorMessage = reverseJobNode["ErrorMessage"].asString(); - if(!reverseJobNode["Delay"].isNull()) - subDistributedJobObject.reverseJob.delay = std::stol(reverseJobNode["Delay"].asString()); - if(!reverseJobNode["Checkpoint"].isNull()) - subDistributedJobObject.reverseJob.checkpoint = reverseJobNode["Checkpoint"].asString(); - if(!reverseJobNode["ReverseJob"].isNull()) - subDistributedJobObject.reverseJob.reverseJob = reverseJobNode["ReverseJob"].asString(); - if(!reverseJobNode["Reserved"].isNull()) - subDistributedJobObject.reverseJob.reserved = reverseJobNode["Reserved"].asString(); - if(!reverseJobNode["SubscribeTopic"].isNull()) - subDistributedJobObject.reverseJob.subscribeTopic = reverseJobNode["SubscribeTopic"].asString(); - if(!reverseJobNode["ConsumptionCheckpoint"].isNull()) - subDistributedJobObject.reverseJob.consumptionCheckpoint = reverseJobNode["ConsumptionCheckpoint"].asString(); - if(!reverseJobNode["BeginTimestamp"].isNull()) - subDistributedJobObject.reverseJob.beginTimestamp = reverseJobNode["BeginTimestamp"].asString(); - if(!reverseJobNode["EndTimestamp"].isNull()) - subDistributedJobObject.reverseJob.endTimestamp = reverseJobNode["EndTimestamp"].asString(); - if(!reverseJobNode["ConsumptionClient"].isNull()) - subDistributedJobObject.reverseJob.consumptionClient = reverseJobNode["ConsumptionClient"].asString(); - if(!reverseJobNode["DestNetType"].isNull()) - subDistributedJobObject.reverseJob.destNetType = reverseJobNode["DestNetType"].asString(); - if(!reverseJobNode["AppName"].isNull()) - subDistributedJobObject.reverseJob.appName = reverseJobNode["AppName"].asString(); - if(!reverseJobNode["EtlCalculator"].isNull()) - subDistributedJobObject.reverseJob.etlCalculator = reverseJobNode["EtlCalculator"].asString(); - if(!reverseJobNode["OriginType"].isNull()) - subDistributedJobObject.reverseJob.originType = reverseJobNode["OriginType"].asString(); - if(!reverseJobNode["JobType"].isNull()) - subDistributedJobObject.reverseJob.jobType = reverseJobNode["JobType"].asString(); - if(!reverseJobNode["IsDemoJob"].isNull()) - subDistributedJobObject.reverseJob.isDemoJob = reverseJobNode["IsDemoJob"].asString() == "true"; - if(!reverseJobNode["TaskType"].isNull()) - subDistributedJobObject.reverseJob.taskType = reverseJobNode["TaskType"].asString(); - auto allTagList21Node = reverseJobNode["TagList"]["TagListItem"]; - for (auto reverseJobNodeTagListTagListItem : allTagList21Node) - { - SubDistributedJobItem::ReverseJob::TagListItem22 tagListItem22Object; - if(!reverseJobNodeTagListTagListItem["Id"].isNull()) - tagListItem22Object.id = std::stol(reverseJobNodeTagListTagListItem["Id"].asString()); - if(!reverseJobNodeTagListTagListItem["GmtCreate"].isNull()) - tagListItem22Object.gmtCreate = reverseJobNodeTagListTagListItem["GmtCreate"].asString(); - if(!reverseJobNodeTagListTagListItem["GmtModified"].isNull()) - tagListItem22Object.gmtModified = reverseJobNodeTagListTagListItem["GmtModified"].asString(); - if(!reverseJobNodeTagListTagListItem["ResourceId"].isNull()) - tagListItem22Object.resourceId = reverseJobNodeTagListTagListItem["ResourceId"].asString(); - if(!reverseJobNodeTagListTagListItem["ResourceType"].isNull()) - tagListItem22Object.resourceType = reverseJobNodeTagListTagListItem["ResourceType"].asString(); - if(!reverseJobNodeTagListTagListItem["RegionId"].isNull()) - tagListItem22Object.regionId = reverseJobNodeTagListTagListItem["RegionId"].asString(); - if(!reverseJobNodeTagListTagListItem["AliUid"].isNull()) - tagListItem22Object.aliUid = std::stol(reverseJobNodeTagListTagListItem["AliUid"].asString()); - if(!reverseJobNodeTagListTagListItem["TagKey"].isNull()) - tagListItem22Object.tagKey = reverseJobNodeTagListTagListItem["TagKey"].asString(); - if(!reverseJobNodeTagListTagListItem["TagValue"].isNull()) - tagListItem22Object.tagValue = reverseJobNodeTagListTagListItem["TagValue"].asString(); - if(!reverseJobNodeTagListTagListItem["TagCategory"].isNull()) - tagListItem22Object.tagCategory = reverseJobNodeTagListTagListItem["TagCategory"].asString(); - if(!reverseJobNodeTagListTagListItem["SrcRegion"].isNull()) - tagListItem22Object.srcRegion = reverseJobNodeTagListTagListItem["SrcRegion"].asString(); - if(!reverseJobNodeTagListTagListItem["Scope"].isNull()) - tagListItem22Object.scope = reverseJobNodeTagListTagListItem["Scope"].asString(); - if(!reverseJobNodeTagListTagListItem["Creator"].isNull()) - tagListItem22Object.creator = std::stol(reverseJobNodeTagListTagListItem["Creator"].asString()); - subDistributedJobObject.reverseJob.tagList21.push_back(tagListItem22Object); - } - auto sourceEndpoint9Node = reverseJobNode["SourceEndpoint"]; - if(!sourceEndpoint9Node["InstanceID"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.instanceID = sourceEndpoint9Node["InstanceID"].asString(); - if(!sourceEndpoint9Node["Region"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.region = sourceEndpoint9Node["Region"].asString(); - if(!sourceEndpoint9Node["InstanceType"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.instanceType = sourceEndpoint9Node["InstanceType"].asString(); - if(!sourceEndpoint9Node["EngineName"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.engineName = sourceEndpoint9Node["EngineName"].asString(); - if(!sourceEndpoint9Node["Ip"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.ip = sourceEndpoint9Node["Ip"].asString(); - if(!sourceEndpoint9Node["Port"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.port = sourceEndpoint9Node["Port"].asString(); - if(!sourceEndpoint9Node["DatabaseName"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.databaseName = sourceEndpoint9Node["DatabaseName"].asString(); - if(!sourceEndpoint9Node["OracleSID"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.oracleSID = sourceEndpoint9Node["OracleSID"].asString(); - if(!sourceEndpoint9Node["UserName"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.userName = sourceEndpoint9Node["UserName"].asString(); - if(!sourceEndpoint9Node["SslSolutionEnum"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.sslSolutionEnum = sourceEndpoint9Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint9Node["RoleName"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.roleName = sourceEndpoint9Node["RoleName"].asString(); - if(!sourceEndpoint9Node["AliyunUid"].isNull()) - subDistributedJobObject.reverseJob.sourceEndpoint9.aliyunUid = sourceEndpoint9Node["AliyunUid"].asString(); - auto destinationEndpoint10Node = reverseJobNode["DestinationEndpoint"]; - if(!destinationEndpoint10Node["InstanceID"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.instanceID = destinationEndpoint10Node["InstanceID"].asString(); - if(!destinationEndpoint10Node["Region"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.region = destinationEndpoint10Node["Region"].asString(); - if(!destinationEndpoint10Node["InstanceType"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.instanceType = destinationEndpoint10Node["InstanceType"].asString(); - if(!destinationEndpoint10Node["EngineName"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.engineName = destinationEndpoint10Node["EngineName"].asString(); - if(!destinationEndpoint10Node["Ip"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.ip = destinationEndpoint10Node["Ip"].asString(); - if(!destinationEndpoint10Node["Port"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.port = destinationEndpoint10Node["Port"].asString(); - if(!destinationEndpoint10Node["DatabaseName"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.databaseName = destinationEndpoint10Node["DatabaseName"].asString(); - if(!destinationEndpoint10Node["OracleSID"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.oracleSID = destinationEndpoint10Node["OracleSID"].asString(); - if(!destinationEndpoint10Node["UserName"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.userName = destinationEndpoint10Node["UserName"].asString(); - if(!destinationEndpoint10Node["SslSolutionEnum"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.sslSolutionEnum = destinationEndpoint10Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint10Node["RoleName"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.roleName = destinationEndpoint10Node["RoleName"].asString(); - if(!destinationEndpoint10Node["AliyunUid"].isNull()) - subDistributedJobObject.reverseJob.destinationEndpoint10.aliyunUid = destinationEndpoint10Node["AliyunUid"].asString(); - auto migrationMode11Node = reverseJobNode["MigrationMode"]; - if(!migrationMode11Node["StructureInitialization"].isNull()) - subDistributedJobObject.reverseJob.migrationMode11.structureInitialization = migrationMode11Node["StructureInitialization"].asString() == "true"; - if(!migrationMode11Node["DataInitialization"].isNull()) - subDistributedJobObject.reverseJob.migrationMode11.dataInitialization = migrationMode11Node["DataInitialization"].asString() == "true"; - if(!migrationMode11Node["DataSynchronization"].isNull()) - subDistributedJobObject.reverseJob.migrationMode11.dataSynchronization = migrationMode11Node["DataSynchronization"].asString() == "true"; - if(!migrationMode11Node["DataExtractTransformLoad"].isNull()) - subDistributedJobObject.reverseJob.migrationMode11.dataExtractTransformLoad = migrationMode11Node["DataExtractTransformLoad"].asString() == "true"; - auto precheckStatus12Node = reverseJobNode["PrecheckStatus"]; - if(!precheckStatus12Node["Status"].isNull()) - subDistributedJobObject.reverseJob.precheckStatus12.status = precheckStatus12Node["Status"].asString(); - if(!precheckStatus12Node["Percent"].isNull()) - subDistributedJobObject.reverseJob.precheckStatus12.percent = precheckStatus12Node["Percent"].asString(); - if(!precheckStatus12Node["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.precheckStatus12.errorMessage = precheckStatus12Node["ErrorMessage"].asString(); - auto allDetail23Node = precheckStatus12Node["Detail"]["DetailItem"]; - for (auto precheckStatus12NodeDetailDetailItem : allDetail23Node) - { - SubDistributedJobItem::ReverseJob::PrecheckStatus12::DetailItem24 detailItem24Object; - if(!precheckStatus12NodeDetailDetailItem["CheckItem"].isNull()) - detailItem24Object.checkItem = precheckStatus12NodeDetailDetailItem["CheckItem"].asString(); - if(!precheckStatus12NodeDetailDetailItem["CheckItemDescription"].isNull()) - detailItem24Object.checkItemDescription = precheckStatus12NodeDetailDetailItem["CheckItemDescription"].asString(); - if(!precheckStatus12NodeDetailDetailItem["CheckResult"].isNull()) - detailItem24Object.checkResult = precheckStatus12NodeDetailDetailItem["CheckResult"].asString(); - if(!precheckStatus12NodeDetailDetailItem["FailedReason"].isNull()) - detailItem24Object.failedReason = precheckStatus12NodeDetailDetailItem["FailedReason"].asString(); - if(!precheckStatus12NodeDetailDetailItem["RepairMethod"].isNull()) - detailItem24Object.repairMethod = precheckStatus12NodeDetailDetailItem["RepairMethod"].asString(); - subDistributedJobObject.reverseJob.precheckStatus12.detail23.push_back(detailItem24Object); - } - auto structureInitializationStatus13Node = reverseJobNode["StructureInitializationStatus"]; - if(!structureInitializationStatus13Node["Status"].isNull()) - subDistributedJobObject.reverseJob.structureInitializationStatus13.status = structureInitializationStatus13Node["Status"].asString(); - if(!structureInitializationStatus13Node["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.structureInitializationStatus13.errorMessage = structureInitializationStatus13Node["ErrorMessage"].asString(); - if(!structureInitializationStatus13Node["Percent"].isNull()) - subDistributedJobObject.reverseJob.structureInitializationStatus13.percent = structureInitializationStatus13Node["Percent"].asString(); - if(!structureInitializationStatus13Node["Progress"].isNull()) - subDistributedJobObject.reverseJob.structureInitializationStatus13.progress = structureInitializationStatus13Node["Progress"].asString(); - if(!structureInitializationStatus13Node["NeedUpgrade"].isNull()) - subDistributedJobObject.reverseJob.structureInitializationStatus13.needUpgrade = structureInitializationStatus13Node["NeedUpgrade"].asString() == "true"; - auto dataInitializationStatus14Node = reverseJobNode["DataInitializationStatus"]; - if(!dataInitializationStatus14Node["Status"].isNull()) - subDistributedJobObject.reverseJob.dataInitializationStatus14.status = dataInitializationStatus14Node["Status"].asString(); - if(!dataInitializationStatus14Node["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.dataInitializationStatus14.errorMessage = dataInitializationStatus14Node["ErrorMessage"].asString(); - if(!dataInitializationStatus14Node["Percent"].isNull()) - subDistributedJobObject.reverseJob.dataInitializationStatus14.percent = dataInitializationStatus14Node["Percent"].asString(); - if(!dataInitializationStatus14Node["Progress"].isNull()) - subDistributedJobObject.reverseJob.dataInitializationStatus14.progress = dataInitializationStatus14Node["Progress"].asString(); - if(!dataInitializationStatus14Node["NeedUpgrade"].isNull()) - subDistributedJobObject.reverseJob.dataInitializationStatus14.needUpgrade = dataInitializationStatus14Node["NeedUpgrade"].asString() == "true"; - auto dataSynchronizationStatus15Node = reverseJobNode["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus15Node["Status"].isNull()) - subDistributedJobObject.reverseJob.dataSynchronizationStatus15.status = dataSynchronizationStatus15Node["Status"].asString(); - if(!dataSynchronizationStatus15Node["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.dataSynchronizationStatus15.errorMessage = dataSynchronizationStatus15Node["ErrorMessage"].asString(); - if(!dataSynchronizationStatus15Node["Percent"].isNull()) - subDistributedJobObject.reverseJob.dataSynchronizationStatus15.percent = dataSynchronizationStatus15Node["Percent"].asString(); - if(!dataSynchronizationStatus15Node["Progress"].isNull()) - subDistributedJobObject.reverseJob.dataSynchronizationStatus15.progress = dataSynchronizationStatus15Node["Progress"].asString(); - if(!dataSynchronizationStatus15Node["NeedUpgrade"].isNull()) - subDistributedJobObject.reverseJob.dataSynchronizationStatus15.needUpgrade = dataSynchronizationStatus15Node["NeedUpgrade"].asString() == "true"; - auto dataEtlStatus16Node = reverseJobNode["DataEtlStatus"]; - if(!dataEtlStatus16Node["Status"].isNull()) - subDistributedJobObject.reverseJob.dataEtlStatus16.status = dataEtlStatus16Node["Status"].asString(); - if(!dataEtlStatus16Node["ErrorMessage"].isNull()) - subDistributedJobObject.reverseJob.dataEtlStatus16.errorMessage = dataEtlStatus16Node["ErrorMessage"].asString(); - if(!dataEtlStatus16Node["Percent"].isNull()) - subDistributedJobObject.reverseJob.dataEtlStatus16.percent = dataEtlStatus16Node["Percent"].asString(); - if(!dataEtlStatus16Node["Progress"].isNull()) - subDistributedJobObject.reverseJob.dataEtlStatus16.progress = dataEtlStatus16Node["Progress"].asString(); - if(!dataEtlStatus16Node["NeedUpgrade"].isNull()) - subDistributedJobObject.reverseJob.dataEtlStatus16.needUpgrade = dataEtlStatus16Node["NeedUpgrade"].asString() == "true"; - auto performance17Node = reverseJobNode["Performance"]; - if(!performance17Node["Rps"].isNull()) - subDistributedJobObject.reverseJob.performance17.rps = performance17Node["Rps"].asString(); - if(!performance17Node["Flow"].isNull()) - subDistributedJobObject.reverseJob.performance17.flow = performance17Node["Flow"].asString(); - auto subscriptionHost18Node = reverseJobNode["SubscriptionHost"]; - if(!subscriptionHost18Node["PublicHost"].isNull()) - subDistributedJobObject.reverseJob.subscriptionHost18.publicHost = subscriptionHost18Node["PublicHost"].asString(); - if(!subscriptionHost18Node["PrivateHost"].isNull()) - subDistributedJobObject.reverseJob.subscriptionHost18.privateHost = subscriptionHost18Node["PrivateHost"].asString(); - if(!subscriptionHost18Node["VpcHost"].isNull()) - subDistributedJobObject.reverseJob.subscriptionHost18.vpcHost = subscriptionHost18Node["VpcHost"].asString(); - auto subscriptionDataType19Node = reverseJobNode["SubscriptionDataType"]; - if(!subscriptionDataType19Node["Ddl"].isNull()) - subDistributedJobObject.reverseJob.subscriptionDataType19.ddl = subscriptionDataType19Node["Ddl"].asString() == "true"; - if(!subscriptionDataType19Node["Dml"].isNull()) - subDistributedJobObject.reverseJob.subscriptionDataType19.dml = subscriptionDataType19Node["Dml"].asString() == "true"; - auto retryState20Node = reverseJobNode["RetryState"]; - if(!retryState20Node["JobId"].isNull()) - subDistributedJobObject.reverseJob.retryState20.jobId = retryState20Node["JobId"].asString(); - if(!retryState20Node["MaxRetryTime"].isNull()) - subDistributedJobObject.reverseJob.retryState20.maxRetryTime = std::stoi(retryState20Node["MaxRetryTime"].asString()); - if(!retryState20Node["RetryTime"].isNull()) - subDistributedJobObject.reverseJob.retryState20.retryTime = std::stoi(retryState20Node["RetryTime"].asString()); - if(!retryState20Node["RetryCount"].isNull()) - subDistributedJobObject.reverseJob.retryState20.retryCount = std::stoi(retryState20Node["RetryCount"].asString()); - if(!retryState20Node["Retrying"].isNull()) - subDistributedJobObject.reverseJob.retryState20.retrying = retryState20Node["Retrying"].asString() == "true"; - if(!retryState20Node["Module"].isNull()) - subDistributedJobObject.reverseJob.retryState20.module = retryState20Node["Module"].asString(); - if(!retryState20Node["RetryTarget"].isNull()) - subDistributedJobObject.reverseJob.retryState20.retryTarget = retryState20Node["RetryTarget"].asString(); - if(!retryState20Node["ErrMsg"].isNull()) - subDistributedJobObject.reverseJob.retryState20.errMsg = retryState20Node["ErrMsg"].asString(); - auto subscriptionHost6Node = value["SubscriptionHost"]; - if(!subscriptionHost6Node["PublicHost"].isNull()) - subDistributedJobObject.subscriptionHost6.publicHost = subscriptionHost6Node["PublicHost"].asString(); - if(!subscriptionHost6Node["PrivateHost"].isNull()) - subDistributedJobObject.subscriptionHost6.privateHost = subscriptionHost6Node["PrivateHost"].asString(); - if(!subscriptionHost6Node["VpcHost"].isNull()) - subDistributedJobObject.subscriptionHost6.vpcHost = subscriptionHost6Node["VpcHost"].asString(); - auto subscriptionDataType7Node = value["SubscriptionDataType"]; - if(!subscriptionDataType7Node["Ddl"].isNull()) - subDistributedJobObject.subscriptionDataType7.ddl = subscriptionDataType7Node["Ddl"].asString() == "true"; - if(!subscriptionDataType7Node["Dml"].isNull()) - subDistributedJobObject.subscriptionDataType7.dml = subscriptionDataType7Node["Dml"].asString() == "true"; - auto retryState8Node = value["RetryState"]; - if(!retryState8Node["JobId"].isNull()) - subDistributedJobObject.retryState8.jobId = retryState8Node["JobId"].asString(); - if(!retryState8Node["MaxRetryTime"].isNull()) - subDistributedJobObject.retryState8.maxRetryTime = std::stoi(retryState8Node["MaxRetryTime"].asString()); - if(!retryState8Node["RetryTime"].isNull()) - subDistributedJobObject.retryState8.retryTime = std::stoi(retryState8Node["RetryTime"].asString()); - if(!retryState8Node["RetryCount"].isNull()) - subDistributedJobObject.retryState8.retryCount = std::stoi(retryState8Node["RetryCount"].asString()); - if(!retryState8Node["Retrying"].isNull()) - subDistributedJobObject.retryState8.retrying = retryState8Node["Retrying"].asString() == "true"; - if(!retryState8Node["Module"].isNull()) - subDistributedJobObject.retryState8.module = retryState8Node["Module"].asString(); - if(!retryState8Node["RetryTarget"].isNull()) - subDistributedJobObject.retryState8.retryTarget = retryState8Node["RetryTarget"].asString(); - if(!retryState8Node["ErrMsg"].isNull()) - subDistributedJobObject.retryState8.errMsg = retryState8Node["ErrMsg"].asString(); - auto allSubSyncJob1 = value["SubSyncJob"]["SubSyncJob"]; - for (auto value : allSubSyncJob1) - subDistributedJobObject.subSyncJob1.push_back(value.asString()); - subDistributedJob_.push_back(subDistributedJobObject); - } - auto allSubSyncJobNode = value["SubSyncJob"]["SubSyncJobItem"]; - for (auto valueSubSyncJobSubSyncJobItem : allSubSyncJobNode) - { - SubSyncJobItem subSyncJobObject; - if(!valueSubSyncJobSubSyncJobItem["DtsInstanceID"].isNull()) - subSyncJobObject.dtsInstanceID = valueSubSyncJobSubSyncJobItem["DtsInstanceID"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DtsJobId"].isNull()) - subSyncJobObject.dtsJobId = valueSubSyncJobSubSyncJobItem["DtsJobId"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DtsJobName"].isNull()) - subSyncJobObject.dtsJobName = valueSubSyncJobSubSyncJobItem["DtsJobName"].asString(); - if(!valueSubSyncJobSubSyncJobItem["GroupId"].isNull()) - subSyncJobObject.groupId = valueSubSyncJobSubSyncJobItem["GroupId"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DatabaseCount"].isNull()) - subSyncJobObject.databaseCount = std::stoi(valueSubSyncJobSubSyncJobItem["DatabaseCount"].asString()); - if(!valueSubSyncJobSubSyncJobItem["DtsJobClass"].isNull()) - subSyncJobObject.dtsJobClass = valueSubSyncJobSubSyncJobItem["DtsJobClass"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DtsJobDirection"].isNull()) - subSyncJobObject.dtsJobDirection = valueSubSyncJobSubSyncJobItem["DtsJobDirection"].asString(); - if(!valueSubSyncJobSubSyncJobItem["SynchronizationDirection"].isNull()) - subSyncJobObject.synchronizationDirection = valueSubSyncJobSubSyncJobItem["SynchronizationDirection"].asString(); - if(!valueSubSyncJobSubSyncJobItem["PayType"].isNull()) - subSyncJobObject.payType = valueSubSyncJobSubSyncJobItem["PayType"].asString(); - if(!valueSubSyncJobSubSyncJobItem["ExpireTime"].isNull()) - subSyncJobObject.expireTime = valueSubSyncJobSubSyncJobItem["ExpireTime"].asString(); - if(!valueSubSyncJobSubSyncJobItem["CreateTime"].isNull()) - subSyncJobObject.createTime = valueSubSyncJobSubSyncJobItem["CreateTime"].asString(); - if(!valueSubSyncJobSubSyncJobItem["FinishTime"].isNull()) - subSyncJobObject.finishTime = valueSubSyncJobSubSyncJobItem["FinishTime"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DbObject"].isNull()) - subSyncJobObject.dbObject = valueSubSyncJobSubSyncJobItem["DbObject"].asString(); - if(!valueSubSyncJobSubSyncJobItem["Status"].isNull()) - subSyncJobObject.status = valueSubSyncJobSubSyncJobItem["Status"].asString(); - if(!valueSubSyncJobSubSyncJobItem["ErrorMessage"].isNull()) - subSyncJobObject.errorMessage = valueSubSyncJobSubSyncJobItem["ErrorMessage"].asString(); - if(!valueSubSyncJobSubSyncJobItem["Delay"].isNull()) - subSyncJobObject.delay = std::stol(valueSubSyncJobSubSyncJobItem["Delay"].asString()); - if(!valueSubSyncJobSubSyncJobItem["Checkpoint"].isNull()) - subSyncJobObject.checkpoint = valueSubSyncJobSubSyncJobItem["Checkpoint"].asString(); - if(!valueSubSyncJobSubSyncJobItem["Reserved"].isNull()) - subSyncJobObject.reserved = valueSubSyncJobSubSyncJobItem["Reserved"].asString(); - if(!valueSubSyncJobSubSyncJobItem["SubscribeTopic"].isNull()) - subSyncJobObject.subscribeTopic = valueSubSyncJobSubSyncJobItem["SubscribeTopic"].asString(); - if(!valueSubSyncJobSubSyncJobItem["ConsumptionCheckpoint"].isNull()) - subSyncJobObject.consumptionCheckpoint = valueSubSyncJobSubSyncJobItem["ConsumptionCheckpoint"].asString(); - if(!valueSubSyncJobSubSyncJobItem["BeginTimestamp"].isNull()) - subSyncJobObject.beginTimestamp = valueSubSyncJobSubSyncJobItem["BeginTimestamp"].asString(); - if(!valueSubSyncJobSubSyncJobItem["EndTimestamp"].isNull()) - subSyncJobObject.endTimestamp = valueSubSyncJobSubSyncJobItem["EndTimestamp"].asString(); - if(!valueSubSyncJobSubSyncJobItem["ConsumptionClient"].isNull()) - subSyncJobObject.consumptionClient = valueSubSyncJobSubSyncJobItem["ConsumptionClient"].asString(); - if(!valueSubSyncJobSubSyncJobItem["DestNetType"].isNull()) - subSyncJobObject.destNetType = valueSubSyncJobSubSyncJobItem["DestNetType"].asString(); - if(!valueSubSyncJobSubSyncJobItem["AppName"].isNull()) - subSyncJobObject.appName = valueSubSyncJobSubSyncJobItem["AppName"].asString(); - if(!valueSubSyncJobSubSyncJobItem["EtlCalculator"].isNull()) - subSyncJobObject.etlCalculator = valueSubSyncJobSubSyncJobItem["EtlCalculator"].asString(); - if(!valueSubSyncJobSubSyncJobItem["OriginType"].isNull()) - subSyncJobObject.originType = valueSubSyncJobSubSyncJobItem["OriginType"].asString(); - if(!valueSubSyncJobSubSyncJobItem["JobType"].isNull()) - subSyncJobObject.jobType = valueSubSyncJobSubSyncJobItem["JobType"].asString(); - if(!valueSubSyncJobSubSyncJobItem["IsDemoJob"].isNull()) - subSyncJobObject.isDemoJob = valueSubSyncJobSubSyncJobItem["IsDemoJob"].asString() == "true"; - if(!valueSubSyncJobSubSyncJobItem["TaskType"].isNull()) - subSyncJobObject.taskType = valueSubSyncJobSubSyncJobItem["TaskType"].asString(); - auto allTagList39Node = valueSubSyncJobSubSyncJobItem["TagList"]["TagListItem"]; - for (auto valueSubSyncJobSubSyncJobItemTagListTagListItem : allTagList39Node) - { - SubSyncJobItem::TagListItem40 tagList39Object; - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["Id"].isNull()) - tagList39Object.id = std::stol(valueSubSyncJobSubSyncJobItemTagListTagListItem["Id"].asString()); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["GmtCreate"].isNull()) - tagList39Object.gmtCreate = valueSubSyncJobSubSyncJobItemTagListTagListItem["GmtCreate"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["GmtModified"].isNull()) - tagList39Object.gmtModified = valueSubSyncJobSubSyncJobItemTagListTagListItem["GmtModified"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["ResourceId"].isNull()) - tagList39Object.resourceId = valueSubSyncJobSubSyncJobItemTagListTagListItem["ResourceId"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["ResourceType"].isNull()) - tagList39Object.resourceType = valueSubSyncJobSubSyncJobItemTagListTagListItem["ResourceType"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["RegionId"].isNull()) - tagList39Object.regionId = valueSubSyncJobSubSyncJobItemTagListTagListItem["RegionId"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["AliUid"].isNull()) - tagList39Object.aliUid = std::stol(valueSubSyncJobSubSyncJobItemTagListTagListItem["AliUid"].asString()); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["TagKey"].isNull()) - tagList39Object.tagKey = valueSubSyncJobSubSyncJobItemTagListTagListItem["TagKey"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["TagValue"].isNull()) - tagList39Object.tagValue = valueSubSyncJobSubSyncJobItemTagListTagListItem["TagValue"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["TagCategory"].isNull()) - tagList39Object.tagCategory = valueSubSyncJobSubSyncJobItemTagListTagListItem["TagCategory"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["SrcRegion"].isNull()) - tagList39Object.srcRegion = valueSubSyncJobSubSyncJobItemTagListTagListItem["SrcRegion"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["Scope"].isNull()) - tagList39Object.scope = valueSubSyncJobSubSyncJobItemTagListTagListItem["Scope"].asString(); - if(!valueSubSyncJobSubSyncJobItemTagListTagListItem["Creator"].isNull()) - tagList39Object.creator = std::stol(valueSubSyncJobSubSyncJobItemTagListTagListItem["Creator"].asString()); - subSyncJobObject.tagList39.push_back(tagList39Object); - } - auto sourceEndpoint26Node = value["SourceEndpoint"]; - if(!sourceEndpoint26Node["InstanceID"].isNull()) - subSyncJobObject.sourceEndpoint26.instanceID = sourceEndpoint26Node["InstanceID"].asString(); - if(!sourceEndpoint26Node["Region"].isNull()) - subSyncJobObject.sourceEndpoint26.region = sourceEndpoint26Node["Region"].asString(); - if(!sourceEndpoint26Node["InstanceType"].isNull()) - subSyncJobObject.sourceEndpoint26.instanceType = sourceEndpoint26Node["InstanceType"].asString(); - if(!sourceEndpoint26Node["EngineName"].isNull()) - subSyncJobObject.sourceEndpoint26.engineName = sourceEndpoint26Node["EngineName"].asString(); - if(!sourceEndpoint26Node["Ip"].isNull()) - subSyncJobObject.sourceEndpoint26.ip = sourceEndpoint26Node["Ip"].asString(); - if(!sourceEndpoint26Node["Port"].isNull()) - subSyncJobObject.sourceEndpoint26.port = sourceEndpoint26Node["Port"].asString(); - if(!sourceEndpoint26Node["DatabaseName"].isNull()) - subSyncJobObject.sourceEndpoint26.databaseName = sourceEndpoint26Node["DatabaseName"].asString(); - if(!sourceEndpoint26Node["OracleSID"].isNull()) - subSyncJobObject.sourceEndpoint26.oracleSID = sourceEndpoint26Node["OracleSID"].asString(); - if(!sourceEndpoint26Node["UserName"].isNull()) - subSyncJobObject.sourceEndpoint26.userName = sourceEndpoint26Node["UserName"].asString(); - if(!sourceEndpoint26Node["SslSolutionEnum"].isNull()) - subSyncJobObject.sourceEndpoint26.sslSolutionEnum = sourceEndpoint26Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint26Node["RoleName"].isNull()) - subSyncJobObject.sourceEndpoint26.roleName = sourceEndpoint26Node["RoleName"].asString(); - if(!sourceEndpoint26Node["AliyunUid"].isNull()) - subSyncJobObject.sourceEndpoint26.aliyunUid = sourceEndpoint26Node["AliyunUid"].asString(); - auto destinationEndpoint27Node = value["DestinationEndpoint"]; - if(!destinationEndpoint27Node["InstanceID"].isNull()) - subSyncJobObject.destinationEndpoint27.instanceID = destinationEndpoint27Node["InstanceID"].asString(); - if(!destinationEndpoint27Node["Region"].isNull()) - subSyncJobObject.destinationEndpoint27.region = destinationEndpoint27Node["Region"].asString(); - if(!destinationEndpoint27Node["InstanceType"].isNull()) - subSyncJobObject.destinationEndpoint27.instanceType = destinationEndpoint27Node["InstanceType"].asString(); - if(!destinationEndpoint27Node["EngineName"].isNull()) - subSyncJobObject.destinationEndpoint27.engineName = destinationEndpoint27Node["EngineName"].asString(); - if(!destinationEndpoint27Node["Ip"].isNull()) - subSyncJobObject.destinationEndpoint27.ip = destinationEndpoint27Node["Ip"].asString(); - if(!destinationEndpoint27Node["Port"].isNull()) - subSyncJobObject.destinationEndpoint27.port = destinationEndpoint27Node["Port"].asString(); - if(!destinationEndpoint27Node["DatabaseName"].isNull()) - subSyncJobObject.destinationEndpoint27.databaseName = destinationEndpoint27Node["DatabaseName"].asString(); - if(!destinationEndpoint27Node["OracleSID"].isNull()) - subSyncJobObject.destinationEndpoint27.oracleSID = destinationEndpoint27Node["OracleSID"].asString(); - if(!destinationEndpoint27Node["UserName"].isNull()) - subSyncJobObject.destinationEndpoint27.userName = destinationEndpoint27Node["UserName"].asString(); - if(!destinationEndpoint27Node["SslSolutionEnum"].isNull()) - subSyncJobObject.destinationEndpoint27.sslSolutionEnum = destinationEndpoint27Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint27Node["RoleName"].isNull()) - subSyncJobObject.destinationEndpoint27.roleName = destinationEndpoint27Node["RoleName"].asString(); - if(!destinationEndpoint27Node["AliyunUid"].isNull()) - subSyncJobObject.destinationEndpoint27.aliyunUid = destinationEndpoint27Node["AliyunUid"].asString(); - auto migrationMode28Node = value["MigrationMode"]; - if(!migrationMode28Node["StructureInitialization"].isNull()) - subSyncJobObject.migrationMode28.structureInitialization = migrationMode28Node["StructureInitialization"].asString() == "true"; - if(!migrationMode28Node["DataInitialization"].isNull()) - subSyncJobObject.migrationMode28.dataInitialization = migrationMode28Node["DataInitialization"].asString() == "true"; - if(!migrationMode28Node["DataSynchronization"].isNull()) - subSyncJobObject.migrationMode28.dataSynchronization = migrationMode28Node["DataSynchronization"].asString() == "true"; - if(!migrationMode28Node["DataExtractTransformLoad"].isNull()) - subSyncJobObject.migrationMode28.dataExtractTransformLoad = migrationMode28Node["DataExtractTransformLoad"].asString() == "true"; - auto precheckStatus29Node = value["PrecheckStatus"]; - if(!precheckStatus29Node["Status"].isNull()) - subSyncJobObject.precheckStatus29.status = precheckStatus29Node["Status"].asString(); - if(!precheckStatus29Node["Percent"].isNull()) - subSyncJobObject.precheckStatus29.percent = precheckStatus29Node["Percent"].asString(); - if(!precheckStatus29Node["ErrorMessage"].isNull()) - subSyncJobObject.precheckStatus29.errorMessage = precheckStatus29Node["ErrorMessage"].asString(); - auto allDetail41Node = precheckStatus29Node["Detail"]["DetailItem"]; - for (auto precheckStatus29NodeDetailDetailItem : allDetail41Node) - { - SubSyncJobItem::PrecheckStatus29::DetailItem42 detailItem42Object; - if(!precheckStatus29NodeDetailDetailItem["CheckItem"].isNull()) - detailItem42Object.checkItem = precheckStatus29NodeDetailDetailItem["CheckItem"].asString(); - if(!precheckStatus29NodeDetailDetailItem["CheckItemDescription"].isNull()) - detailItem42Object.checkItemDescription = precheckStatus29NodeDetailDetailItem["CheckItemDescription"].asString(); - if(!precheckStatus29NodeDetailDetailItem["CheckResult"].isNull()) - detailItem42Object.checkResult = precheckStatus29NodeDetailDetailItem["CheckResult"].asString(); - if(!precheckStatus29NodeDetailDetailItem["FailedReason"].isNull()) - detailItem42Object.failedReason = precheckStatus29NodeDetailDetailItem["FailedReason"].asString(); - if(!precheckStatus29NodeDetailDetailItem["RepairMethod"].isNull()) - detailItem42Object.repairMethod = precheckStatus29NodeDetailDetailItem["RepairMethod"].asString(); - subSyncJobObject.precheckStatus29.detail41.push_back(detailItem42Object); - } - auto structureInitializationStatus30Node = value["StructureInitializationStatus"]; - if(!structureInitializationStatus30Node["Status"].isNull()) - subSyncJobObject.structureInitializationStatus30.status = structureInitializationStatus30Node["Status"].asString(); - if(!structureInitializationStatus30Node["ErrorMessage"].isNull()) - subSyncJobObject.structureInitializationStatus30.errorMessage = structureInitializationStatus30Node["ErrorMessage"].asString(); - if(!structureInitializationStatus30Node["Percent"].isNull()) - subSyncJobObject.structureInitializationStatus30.percent = structureInitializationStatus30Node["Percent"].asString(); - if(!structureInitializationStatus30Node["Progress"].isNull()) - subSyncJobObject.structureInitializationStatus30.progress = structureInitializationStatus30Node["Progress"].asString(); - if(!structureInitializationStatus30Node["NeedUpgrade"].isNull()) - subSyncJobObject.structureInitializationStatus30.needUpgrade = structureInitializationStatus30Node["NeedUpgrade"].asString() == "true"; - auto dataInitializationStatus31Node = value["DataInitializationStatus"]; - if(!dataInitializationStatus31Node["Status"].isNull()) - subSyncJobObject.dataInitializationStatus31.status = dataInitializationStatus31Node["Status"].asString(); - if(!dataInitializationStatus31Node["ErrorMessage"].isNull()) - subSyncJobObject.dataInitializationStatus31.errorMessage = dataInitializationStatus31Node["ErrorMessage"].asString(); - if(!dataInitializationStatus31Node["Percent"].isNull()) - subSyncJobObject.dataInitializationStatus31.percent = dataInitializationStatus31Node["Percent"].asString(); - if(!dataInitializationStatus31Node["Progress"].isNull()) - subSyncJobObject.dataInitializationStatus31.progress = dataInitializationStatus31Node["Progress"].asString(); - if(!dataInitializationStatus31Node["NeedUpgrade"].isNull()) - subSyncJobObject.dataInitializationStatus31.needUpgrade = dataInitializationStatus31Node["NeedUpgrade"].asString() == "true"; - auto dataSynchronizationStatus32Node = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus32Node["Status"].isNull()) - subSyncJobObject.dataSynchronizationStatus32.status = dataSynchronizationStatus32Node["Status"].asString(); - if(!dataSynchronizationStatus32Node["ErrorMessage"].isNull()) - subSyncJobObject.dataSynchronizationStatus32.errorMessage = dataSynchronizationStatus32Node["ErrorMessage"].asString(); - if(!dataSynchronizationStatus32Node["Percent"].isNull()) - subSyncJobObject.dataSynchronizationStatus32.percent = dataSynchronizationStatus32Node["Percent"].asString(); - if(!dataSynchronizationStatus32Node["Progress"].isNull()) - subSyncJobObject.dataSynchronizationStatus32.progress = dataSynchronizationStatus32Node["Progress"].asString(); - if(!dataSynchronizationStatus32Node["NeedUpgrade"].isNull()) - subSyncJobObject.dataSynchronizationStatus32.needUpgrade = dataSynchronizationStatus32Node["NeedUpgrade"].asString() == "true"; - auto dataEtlStatus33Node = value["DataEtlStatus"]; - if(!dataEtlStatus33Node["Status"].isNull()) - subSyncJobObject.dataEtlStatus33.status = dataEtlStatus33Node["Status"].asString(); - if(!dataEtlStatus33Node["ErrorMessage"].isNull()) - subSyncJobObject.dataEtlStatus33.errorMessage = dataEtlStatus33Node["ErrorMessage"].asString(); - if(!dataEtlStatus33Node["Percent"].isNull()) - subSyncJobObject.dataEtlStatus33.percent = dataEtlStatus33Node["Percent"].asString(); - if(!dataEtlStatus33Node["Progress"].isNull()) - subSyncJobObject.dataEtlStatus33.progress = dataEtlStatus33Node["Progress"].asString(); - if(!dataEtlStatus33Node["NeedUpgrade"].isNull()) - subSyncJobObject.dataEtlStatus33.needUpgrade = dataEtlStatus33Node["NeedUpgrade"].asString() == "true"; - auto performance34Node = value["Performance"]; - if(!performance34Node["Rps"].isNull()) - subSyncJobObject.performance34.rps = performance34Node["Rps"].asString(); - if(!performance34Node["Flow"].isNull()) - subSyncJobObject.performance34.flow = performance34Node["Flow"].asString(); - auto reverseJob35Node = value["ReverseJob"]; - if(!reverseJob35Node["DtsInstanceID"].isNull()) - subSyncJobObject.reverseJob35.dtsInstanceID = reverseJob35Node["DtsInstanceID"].asString(); - if(!reverseJob35Node["DtsJobId"].isNull()) - subSyncJobObject.reverseJob35.dtsJobId = reverseJob35Node["DtsJobId"].asString(); - if(!reverseJob35Node["DtsJobName"].isNull()) - subSyncJobObject.reverseJob35.dtsJobName = reverseJob35Node["DtsJobName"].asString(); - if(!reverseJob35Node["GroupId"].isNull()) - subSyncJobObject.reverseJob35.groupId = reverseJob35Node["GroupId"].asString(); - if(!reverseJob35Node["DatabaseCount"].isNull()) - subSyncJobObject.reverseJob35.databaseCount = std::stoi(reverseJob35Node["DatabaseCount"].asString()); - if(!reverseJob35Node["DtsJobClass"].isNull()) - subSyncJobObject.reverseJob35.dtsJobClass = reverseJob35Node["DtsJobClass"].asString(); - if(!reverseJob35Node["DtsJobDirection"].isNull()) - subSyncJobObject.reverseJob35.dtsJobDirection = reverseJob35Node["DtsJobDirection"].asString(); - if(!reverseJob35Node["SynchronizationDirection"].isNull()) - subSyncJobObject.reverseJob35.synchronizationDirection = reverseJob35Node["SynchronizationDirection"].asString(); - if(!reverseJob35Node["PayType"].isNull()) - subSyncJobObject.reverseJob35.payType = reverseJob35Node["PayType"].asString(); - if(!reverseJob35Node["ExpireTime"].isNull()) - subSyncJobObject.reverseJob35.expireTime = reverseJob35Node["ExpireTime"].asString(); - if(!reverseJob35Node["CreateTime"].isNull()) - subSyncJobObject.reverseJob35.createTime = reverseJob35Node["CreateTime"].asString(); - if(!reverseJob35Node["FinishTime"].isNull()) - subSyncJobObject.reverseJob35.finishTime = reverseJob35Node["FinishTime"].asString(); - if(!reverseJob35Node["DbObject"].isNull()) - subSyncJobObject.reverseJob35.dbObject = reverseJob35Node["DbObject"].asString(); - if(!reverseJob35Node["Status"].isNull()) - subSyncJobObject.reverseJob35.status = reverseJob35Node["Status"].asString(); - if(!reverseJob35Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.errorMessage = reverseJob35Node["ErrorMessage"].asString(); - if(!reverseJob35Node["Delay"].isNull()) - subSyncJobObject.reverseJob35.delay = std::stol(reverseJob35Node["Delay"].asString()); - if(!reverseJob35Node["Checkpoint"].isNull()) - subSyncJobObject.reverseJob35.checkpoint = reverseJob35Node["Checkpoint"].asString(); - if(!reverseJob35Node["ReverseJob"].isNull()) - subSyncJobObject.reverseJob35.reverseJob = reverseJob35Node["ReverseJob"].asString(); - if(!reverseJob35Node["Reserved"].isNull()) - subSyncJobObject.reverseJob35.reserved = reverseJob35Node["Reserved"].asString(); - if(!reverseJob35Node["SubscribeTopic"].isNull()) - subSyncJobObject.reverseJob35.subscribeTopic = reverseJob35Node["SubscribeTopic"].asString(); - if(!reverseJob35Node["ConsumptionCheckpoint"].isNull()) - subSyncJobObject.reverseJob35.consumptionCheckpoint = reverseJob35Node["ConsumptionCheckpoint"].asString(); - if(!reverseJob35Node["BeginTimestamp"].isNull()) - subSyncJobObject.reverseJob35.beginTimestamp = reverseJob35Node["BeginTimestamp"].asString(); - if(!reverseJob35Node["EndTimestamp"].isNull()) - subSyncJobObject.reverseJob35.endTimestamp = reverseJob35Node["EndTimestamp"].asString(); - if(!reverseJob35Node["ConsumptionClient"].isNull()) - subSyncJobObject.reverseJob35.consumptionClient = reverseJob35Node["ConsumptionClient"].asString(); - if(!reverseJob35Node["DestNetType"].isNull()) - subSyncJobObject.reverseJob35.destNetType = reverseJob35Node["DestNetType"].asString(); - if(!reverseJob35Node["AppName"].isNull()) - subSyncJobObject.reverseJob35.appName = reverseJob35Node["AppName"].asString(); - if(!reverseJob35Node["EtlCalculator"].isNull()) - subSyncJobObject.reverseJob35.etlCalculator = reverseJob35Node["EtlCalculator"].asString(); - if(!reverseJob35Node["OriginType"].isNull()) - subSyncJobObject.reverseJob35.originType = reverseJob35Node["OriginType"].asString(); - if(!reverseJob35Node["JobType"].isNull()) - subSyncJobObject.reverseJob35.jobType = reverseJob35Node["JobType"].asString(); - if(!reverseJob35Node["IsDemoJob"].isNull()) - subSyncJobObject.reverseJob35.isDemoJob = reverseJob35Node["IsDemoJob"].asString() == "true"; - if(!reverseJob35Node["TaskType"].isNull()) - subSyncJobObject.reverseJob35.taskType = reverseJob35Node["TaskType"].asString(); - auto allTagList55Node = reverseJob35Node["TagList"]["TagListItem"]; - for (auto reverseJob35NodeTagListTagListItem : allTagList55Node) - { - SubSyncJobItem::ReverseJob35::TagListItem56 tagListItem56Object; - if(!reverseJob35NodeTagListTagListItem["Id"].isNull()) - tagListItem56Object.id = std::stol(reverseJob35NodeTagListTagListItem["Id"].asString()); - if(!reverseJob35NodeTagListTagListItem["GmtCreate"].isNull()) - tagListItem56Object.gmtCreate = reverseJob35NodeTagListTagListItem["GmtCreate"].asString(); - if(!reverseJob35NodeTagListTagListItem["GmtModified"].isNull()) - tagListItem56Object.gmtModified = reverseJob35NodeTagListTagListItem["GmtModified"].asString(); - if(!reverseJob35NodeTagListTagListItem["ResourceId"].isNull()) - tagListItem56Object.resourceId = reverseJob35NodeTagListTagListItem["ResourceId"].asString(); - if(!reverseJob35NodeTagListTagListItem["ResourceType"].isNull()) - tagListItem56Object.resourceType = reverseJob35NodeTagListTagListItem["ResourceType"].asString(); - if(!reverseJob35NodeTagListTagListItem["RegionId"].isNull()) - tagListItem56Object.regionId = reverseJob35NodeTagListTagListItem["RegionId"].asString(); - if(!reverseJob35NodeTagListTagListItem["AliUid"].isNull()) - tagListItem56Object.aliUid = std::stol(reverseJob35NodeTagListTagListItem["AliUid"].asString()); - if(!reverseJob35NodeTagListTagListItem["TagKey"].isNull()) - tagListItem56Object.tagKey = reverseJob35NodeTagListTagListItem["TagKey"].asString(); - if(!reverseJob35NodeTagListTagListItem["TagValue"].isNull()) - tagListItem56Object.tagValue = reverseJob35NodeTagListTagListItem["TagValue"].asString(); - if(!reverseJob35NodeTagListTagListItem["TagCategory"].isNull()) - tagListItem56Object.tagCategory = reverseJob35NodeTagListTagListItem["TagCategory"].asString(); - if(!reverseJob35NodeTagListTagListItem["SrcRegion"].isNull()) - tagListItem56Object.srcRegion = reverseJob35NodeTagListTagListItem["SrcRegion"].asString(); - if(!reverseJob35NodeTagListTagListItem["Scope"].isNull()) - tagListItem56Object.scope = reverseJob35NodeTagListTagListItem["Scope"].asString(); - if(!reverseJob35NodeTagListTagListItem["Creator"].isNull()) - tagListItem56Object.creator = std::stol(reverseJob35NodeTagListTagListItem["Creator"].asString()); - subSyncJobObject.reverseJob35.tagList55.push_back(tagListItem56Object); - } - auto sourceEndpoint43Node = reverseJob35Node["SourceEndpoint"]; - if(!sourceEndpoint43Node["InstanceID"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.instanceID = sourceEndpoint43Node["InstanceID"].asString(); - if(!sourceEndpoint43Node["Region"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.region = sourceEndpoint43Node["Region"].asString(); - if(!sourceEndpoint43Node["InstanceType"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.instanceType = sourceEndpoint43Node["InstanceType"].asString(); - if(!sourceEndpoint43Node["EngineName"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.engineName = sourceEndpoint43Node["EngineName"].asString(); - if(!sourceEndpoint43Node["Ip"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.ip = sourceEndpoint43Node["Ip"].asString(); - if(!sourceEndpoint43Node["Port"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.port = sourceEndpoint43Node["Port"].asString(); - if(!sourceEndpoint43Node["DatabaseName"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.databaseName = sourceEndpoint43Node["DatabaseName"].asString(); - if(!sourceEndpoint43Node["OracleSID"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.oracleSID = sourceEndpoint43Node["OracleSID"].asString(); - if(!sourceEndpoint43Node["UserName"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.userName = sourceEndpoint43Node["UserName"].asString(); - if(!sourceEndpoint43Node["SslSolutionEnum"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.sslSolutionEnum = sourceEndpoint43Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint43Node["RoleName"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.roleName = sourceEndpoint43Node["RoleName"].asString(); - if(!sourceEndpoint43Node["AliyunUid"].isNull()) - subSyncJobObject.reverseJob35.sourceEndpoint43.aliyunUid = sourceEndpoint43Node["AliyunUid"].asString(); - auto destinationEndpoint44Node = reverseJob35Node["DestinationEndpoint"]; - if(!destinationEndpoint44Node["InstanceID"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.instanceID = destinationEndpoint44Node["InstanceID"].asString(); - if(!destinationEndpoint44Node["Region"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.region = destinationEndpoint44Node["Region"].asString(); - if(!destinationEndpoint44Node["InstanceType"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.instanceType = destinationEndpoint44Node["InstanceType"].asString(); - if(!destinationEndpoint44Node["EngineName"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.engineName = destinationEndpoint44Node["EngineName"].asString(); - if(!destinationEndpoint44Node["Ip"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.ip = destinationEndpoint44Node["Ip"].asString(); - if(!destinationEndpoint44Node["Port"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.port = destinationEndpoint44Node["Port"].asString(); - if(!destinationEndpoint44Node["DatabaseName"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.databaseName = destinationEndpoint44Node["DatabaseName"].asString(); - if(!destinationEndpoint44Node["OracleSID"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.oracleSID = destinationEndpoint44Node["OracleSID"].asString(); - if(!destinationEndpoint44Node["UserName"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.userName = destinationEndpoint44Node["UserName"].asString(); - if(!destinationEndpoint44Node["SslSolutionEnum"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.sslSolutionEnum = destinationEndpoint44Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint44Node["RoleName"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.roleName = destinationEndpoint44Node["RoleName"].asString(); - if(!destinationEndpoint44Node["AliyunUid"].isNull()) - subSyncJobObject.reverseJob35.destinationEndpoint44.aliyunUid = destinationEndpoint44Node["AliyunUid"].asString(); - auto migrationMode45Node = reverseJob35Node["MigrationMode"]; - if(!migrationMode45Node["StructureInitialization"].isNull()) - subSyncJobObject.reverseJob35.migrationMode45.structureInitialization = migrationMode45Node["StructureInitialization"].asString() == "true"; - if(!migrationMode45Node["DataInitialization"].isNull()) - subSyncJobObject.reverseJob35.migrationMode45.dataInitialization = migrationMode45Node["DataInitialization"].asString() == "true"; - if(!migrationMode45Node["DataSynchronization"].isNull()) - subSyncJobObject.reverseJob35.migrationMode45.dataSynchronization = migrationMode45Node["DataSynchronization"].asString() == "true"; - if(!migrationMode45Node["DataExtractTransformLoad"].isNull()) - subSyncJobObject.reverseJob35.migrationMode45.dataExtractTransformLoad = migrationMode45Node["DataExtractTransformLoad"].asString() == "true"; - auto precheckStatus46Node = reverseJob35Node["PrecheckStatus"]; - if(!precheckStatus46Node["Status"].isNull()) - subSyncJobObject.reverseJob35.precheckStatus46.status = precheckStatus46Node["Status"].asString(); - if(!precheckStatus46Node["Percent"].isNull()) - subSyncJobObject.reverseJob35.precheckStatus46.percent = precheckStatus46Node["Percent"].asString(); - if(!precheckStatus46Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.precheckStatus46.errorMessage = precheckStatus46Node["ErrorMessage"].asString(); - auto allDetail57Node = precheckStatus46Node["Detail"]["DetailItem"]; - for (auto precheckStatus46NodeDetailDetailItem : allDetail57Node) - { - SubSyncJobItem::ReverseJob35::PrecheckStatus46::DetailItem58 detailItem58Object; - if(!precheckStatus46NodeDetailDetailItem["CheckItem"].isNull()) - detailItem58Object.checkItem = precheckStatus46NodeDetailDetailItem["CheckItem"].asString(); - if(!precheckStatus46NodeDetailDetailItem["CheckItemDescription"].isNull()) - detailItem58Object.checkItemDescription = precheckStatus46NodeDetailDetailItem["CheckItemDescription"].asString(); - if(!precheckStatus46NodeDetailDetailItem["CheckResult"].isNull()) - detailItem58Object.checkResult = precheckStatus46NodeDetailDetailItem["CheckResult"].asString(); - if(!precheckStatus46NodeDetailDetailItem["FailedReason"].isNull()) - detailItem58Object.failedReason = precheckStatus46NodeDetailDetailItem["FailedReason"].asString(); - if(!precheckStatus46NodeDetailDetailItem["RepairMethod"].isNull()) - detailItem58Object.repairMethod = precheckStatus46NodeDetailDetailItem["RepairMethod"].asString(); - subSyncJobObject.reverseJob35.precheckStatus46.detail57.push_back(detailItem58Object); - } - auto structureInitializationStatus47Node = reverseJob35Node["StructureInitializationStatus"]; - if(!structureInitializationStatus47Node["Status"].isNull()) - subSyncJobObject.reverseJob35.structureInitializationStatus47.status = structureInitializationStatus47Node["Status"].asString(); - if(!structureInitializationStatus47Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.structureInitializationStatus47.errorMessage = structureInitializationStatus47Node["ErrorMessage"].asString(); - if(!structureInitializationStatus47Node["Percent"].isNull()) - subSyncJobObject.reverseJob35.structureInitializationStatus47.percent = structureInitializationStatus47Node["Percent"].asString(); - if(!structureInitializationStatus47Node["Progress"].isNull()) - subSyncJobObject.reverseJob35.structureInitializationStatus47.progress = structureInitializationStatus47Node["Progress"].asString(); - if(!structureInitializationStatus47Node["NeedUpgrade"].isNull()) - subSyncJobObject.reverseJob35.structureInitializationStatus47.needUpgrade = structureInitializationStatus47Node["NeedUpgrade"].asString() == "true"; - auto dataInitializationStatus48Node = reverseJob35Node["DataInitializationStatus"]; - if(!dataInitializationStatus48Node["Status"].isNull()) - subSyncJobObject.reverseJob35.dataInitializationStatus48.status = dataInitializationStatus48Node["Status"].asString(); - if(!dataInitializationStatus48Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.dataInitializationStatus48.errorMessage = dataInitializationStatus48Node["ErrorMessage"].asString(); - if(!dataInitializationStatus48Node["Percent"].isNull()) - subSyncJobObject.reverseJob35.dataInitializationStatus48.percent = dataInitializationStatus48Node["Percent"].asString(); - if(!dataInitializationStatus48Node["Progress"].isNull()) - subSyncJobObject.reverseJob35.dataInitializationStatus48.progress = dataInitializationStatus48Node["Progress"].asString(); - if(!dataInitializationStatus48Node["NeedUpgrade"].isNull()) - subSyncJobObject.reverseJob35.dataInitializationStatus48.needUpgrade = dataInitializationStatus48Node["NeedUpgrade"].asString() == "true"; - auto dataSynchronizationStatus49Node = reverseJob35Node["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus49Node["Status"].isNull()) - subSyncJobObject.reverseJob35.dataSynchronizationStatus49.status = dataSynchronizationStatus49Node["Status"].asString(); - if(!dataSynchronizationStatus49Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.dataSynchronizationStatus49.errorMessage = dataSynchronizationStatus49Node["ErrorMessage"].asString(); - if(!dataSynchronizationStatus49Node["Percent"].isNull()) - subSyncJobObject.reverseJob35.dataSynchronizationStatus49.percent = dataSynchronizationStatus49Node["Percent"].asString(); - if(!dataSynchronizationStatus49Node["Progress"].isNull()) - subSyncJobObject.reverseJob35.dataSynchronizationStatus49.progress = dataSynchronizationStatus49Node["Progress"].asString(); - if(!dataSynchronizationStatus49Node["NeedUpgrade"].isNull()) - subSyncJobObject.reverseJob35.dataSynchronizationStatus49.needUpgrade = dataSynchronizationStatus49Node["NeedUpgrade"].asString() == "true"; - auto dataEtlStatus50Node = reverseJob35Node["DataEtlStatus"]; - if(!dataEtlStatus50Node["Status"].isNull()) - subSyncJobObject.reverseJob35.dataEtlStatus50.status = dataEtlStatus50Node["Status"].asString(); - if(!dataEtlStatus50Node["ErrorMessage"].isNull()) - subSyncJobObject.reverseJob35.dataEtlStatus50.errorMessage = dataEtlStatus50Node["ErrorMessage"].asString(); - if(!dataEtlStatus50Node["Percent"].isNull()) - subSyncJobObject.reverseJob35.dataEtlStatus50.percent = dataEtlStatus50Node["Percent"].asString(); - if(!dataEtlStatus50Node["Progress"].isNull()) - subSyncJobObject.reverseJob35.dataEtlStatus50.progress = dataEtlStatus50Node["Progress"].asString(); - if(!dataEtlStatus50Node["NeedUpgrade"].isNull()) - subSyncJobObject.reverseJob35.dataEtlStatus50.needUpgrade = dataEtlStatus50Node["NeedUpgrade"].asString() == "true"; - auto performance51Node = reverseJob35Node["Performance"]; - if(!performance51Node["Rps"].isNull()) - subSyncJobObject.reverseJob35.performance51.rps = performance51Node["Rps"].asString(); - if(!performance51Node["Flow"].isNull()) - subSyncJobObject.reverseJob35.performance51.flow = performance51Node["Flow"].asString(); - auto subscriptionHost52Node = reverseJob35Node["SubscriptionHost"]; - if(!subscriptionHost52Node["PublicHost"].isNull()) - subSyncJobObject.reverseJob35.subscriptionHost52.publicHost = subscriptionHost52Node["PublicHost"].asString(); - if(!subscriptionHost52Node["PrivateHost"].isNull()) - subSyncJobObject.reverseJob35.subscriptionHost52.privateHost = subscriptionHost52Node["PrivateHost"].asString(); - if(!subscriptionHost52Node["VpcHost"].isNull()) - subSyncJobObject.reverseJob35.subscriptionHost52.vpcHost = subscriptionHost52Node["VpcHost"].asString(); - auto subscriptionDataType53Node = reverseJob35Node["SubscriptionDataType"]; - if(!subscriptionDataType53Node["Ddl"].isNull()) - subSyncJobObject.reverseJob35.subscriptionDataType53.ddl = subscriptionDataType53Node["Ddl"].asString() == "true"; - if(!subscriptionDataType53Node["Dml"].isNull()) - subSyncJobObject.reverseJob35.subscriptionDataType53.dml = subscriptionDataType53Node["Dml"].asString() == "true"; - auto retryState54Node = reverseJob35Node["RetryState"]; - if(!retryState54Node["JobId"].isNull()) - subSyncJobObject.reverseJob35.retryState54.jobId = retryState54Node["JobId"].asString(); - if(!retryState54Node["MaxRetryTime"].isNull()) - subSyncJobObject.reverseJob35.retryState54.maxRetryTime = std::stoi(retryState54Node["MaxRetryTime"].asString()); - if(!retryState54Node["RetryTime"].isNull()) - subSyncJobObject.reverseJob35.retryState54.retryTime = std::stoi(retryState54Node["RetryTime"].asString()); - if(!retryState54Node["RetryCount"].isNull()) - subSyncJobObject.reverseJob35.retryState54.retryCount = std::stoi(retryState54Node["RetryCount"].asString()); - if(!retryState54Node["Retrying"].isNull()) - subSyncJobObject.reverseJob35.retryState54.retrying = retryState54Node["Retrying"].asString() == "true"; - if(!retryState54Node["Module"].isNull()) - subSyncJobObject.reverseJob35.retryState54.module = retryState54Node["Module"].asString(); - if(!retryState54Node["RetryTarget"].isNull()) - subSyncJobObject.reverseJob35.retryState54.retryTarget = retryState54Node["RetryTarget"].asString(); - if(!retryState54Node["ErrMsg"].isNull()) - subSyncJobObject.reverseJob35.retryState54.errMsg = retryState54Node["ErrMsg"].asString(); - auto subscriptionHost36Node = value["SubscriptionHost"]; - if(!subscriptionHost36Node["PublicHost"].isNull()) - subSyncJobObject.subscriptionHost36.publicHost = subscriptionHost36Node["PublicHost"].asString(); - if(!subscriptionHost36Node["PrivateHost"].isNull()) - subSyncJobObject.subscriptionHost36.privateHost = subscriptionHost36Node["PrivateHost"].asString(); - if(!subscriptionHost36Node["VpcHost"].isNull()) - subSyncJobObject.subscriptionHost36.vpcHost = subscriptionHost36Node["VpcHost"].asString(); - auto subscriptionDataType37Node = value["SubscriptionDataType"]; - if(!subscriptionDataType37Node["Ddl"].isNull()) - subSyncJobObject.subscriptionDataType37.ddl = subscriptionDataType37Node["Ddl"].asString() == "true"; - if(!subscriptionDataType37Node["Dml"].isNull()) - subSyncJobObject.subscriptionDataType37.dml = subscriptionDataType37Node["Dml"].asString() == "true"; - auto retryState38Node = value["RetryState"]; - if(!retryState38Node["JobId"].isNull()) - subSyncJobObject.retryState38.jobId = retryState38Node["JobId"].asString(); - if(!retryState38Node["MaxRetryTime"].isNull()) - subSyncJobObject.retryState38.maxRetryTime = std::stoi(retryState38Node["MaxRetryTime"].asString()); - if(!retryState38Node["RetryTime"].isNull()) - subSyncJobObject.retryState38.retryTime = std::stoi(retryState38Node["RetryTime"].asString()); - if(!retryState38Node["RetryCount"].isNull()) - subSyncJobObject.retryState38.retryCount = std::stoi(retryState38Node["RetryCount"].asString()); - if(!retryState38Node["Retrying"].isNull()) - subSyncJobObject.retryState38.retrying = retryState38Node["Retrying"].asString() == "true"; - if(!retryState38Node["Module"].isNull()) - subSyncJobObject.retryState38.module = retryState38Node["Module"].asString(); - if(!retryState38Node["RetryTarget"].isNull()) - subSyncJobObject.retryState38.retryTarget = retryState38Node["RetryTarget"].asString(); - if(!retryState38Node["ErrMsg"].isNull()) - subSyncJobObject.retryState38.errMsg = retryState38Node["ErrMsg"].asString(); - auto allSubSyncJob25 = value["SubSyncJob"]["SubSyncJob"]; - for (auto value : allSubSyncJob25) - subSyncJobObject.subSyncJob25.push_back(value.asString()); - subSyncJob_.push_back(subSyncJobObject); - } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["OracleSID"].isNull()) - sourceEndpoint_.oracleSID = sourceEndpointNode["OracleSID"].asString(); - if(!sourceEndpointNode["SslSolutionEnum"].isNull()) - sourceEndpoint_.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString(); - if(!sourceEndpointNode["Ip"].isNull()) - sourceEndpoint_.ip = sourceEndpointNode["Ip"].asString(); - if(!sourceEndpointNode["InstanceID"].isNull()) - sourceEndpoint_.instanceID = sourceEndpointNode["InstanceID"].asString(); - if(!sourceEndpointNode["RoleName"].isNull()) - sourceEndpoint_.roleName = sourceEndpointNode["RoleName"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - sourceEndpoint_.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString(); - if(!sourceEndpointNode["Region"].isNull()) - sourceEndpoint_.region = sourceEndpointNode["Region"].asString(); - if(!sourceEndpointNode["DatabaseName"].isNull()) - sourceEndpoint_.databaseName = sourceEndpointNode["DatabaseName"].asString(); - if(!sourceEndpointNode["AliyunUid"].isNull()) - sourceEndpoint_.aliyunUid = sourceEndpointNode["AliyunUid"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString(); - auto destinationEndpointNode = value["DestinationEndpoint"]; - if(!destinationEndpointNode["SslSolutionEnum"].isNull()) - destinationEndpoint_.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString(); - if(!destinationEndpointNode["OracleSID"].isNull()) - destinationEndpoint_.oracleSID = destinationEndpointNode["OracleSID"].asString(); - if(!destinationEndpointNode["DatabaseName"].isNull()) - destinationEndpoint_.databaseName = destinationEndpointNode["DatabaseName"].asString(); - if(!destinationEndpointNode["Region"].isNull()) - destinationEndpoint_.region = destinationEndpointNode["Region"].asString(); - if(!destinationEndpointNode["Ip"].isNull()) - destinationEndpoint_.ip = destinationEndpointNode["Ip"].asString(); - if(!destinationEndpointNode["InstanceID"].isNull()) - destinationEndpoint_.instanceID = destinationEndpointNode["InstanceID"].asString(); - if(!destinationEndpointNode["Port"].isNull()) - destinationEndpoint_.port = destinationEndpointNode["Port"].asString(); - if(!destinationEndpointNode["InstanceType"].isNull()) - destinationEndpoint_.instanceType = destinationEndpointNode["InstanceType"].asString(); - if(!destinationEndpointNode["UserName"].isNull()) - destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString(); - if(!destinationEndpointNode["EngineName"].isNull()) - destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString(); - auto migrationModeNode = value["MigrationMode"]; - if(!migrationModeNode["DataExtractTransformLoad"].isNull()) - migrationMode_.dataExtractTransformLoad = migrationModeNode["DataExtractTransformLoad"].asString() == "true"; - if(!migrationModeNode["DataInitialization"].isNull()) - migrationMode_.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true"; - if(!migrationModeNode["DataSynchronization"].isNull()) - migrationMode_.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true"; - if(!migrationModeNode["StructureInitialization"].isNull()) - migrationMode_.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true"; - auto subscriptionHostNode = value["SubscriptionHost"]; - if(!subscriptionHostNode["VpcHost"].isNull()) - subscriptionHost_.vpcHost = subscriptionHostNode["VpcHost"].asString(); - if(!subscriptionHostNode["PublicHost"].isNull()) - subscriptionHost_.publicHost = subscriptionHostNode["PublicHost"].asString(); - if(!subscriptionHostNode["PrivateHost"].isNull()) - subscriptionHost_.privateHost = subscriptionHostNode["PrivateHost"].asString(); - auto subscriptionDataTypeNode = value["SubscriptionDataType"]; - if(!subscriptionDataTypeNode["Dml"].isNull()) - subscriptionDataType_.dml = subscriptionDataTypeNode["Dml"].asString() == "true"; - if(!subscriptionDataTypeNode["Ddl"].isNull()) - subscriptionDataType_.ddl = subscriptionDataTypeNode["Ddl"].asString() == "true"; - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["NeedUpgrade"].isNull()) - dataSynchronizationStatus_.needUpgrade = dataSynchronizationStatusNode["NeedUpgrade"].asString() == "true"; - if(!dataSynchronizationStatusNode["Percent"].isNull()) - dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["Progress"].isNull()) - dataSynchronizationStatus_.progress = dataSynchronizationStatusNode["Progress"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); - auto retryStateNode = value["RetryState"]; - if(!retryStateNode["RetryCount"].isNull()) - retryState_.retryCount = std::stoi(retryStateNode["RetryCount"].asString()); - if(!retryStateNode["MaxRetryTime"].isNull()) - retryState_.maxRetryTime = std::stoi(retryStateNode["MaxRetryTime"].asString()); - if(!retryStateNode["ErrMessage"].isNull()) - retryState_.errMessage = retryStateNode["ErrMessage"].asString(); - if(!retryStateNode["RetryTarget"].isNull()) - retryState_.retryTarget = retryStateNode["RetryTarget"].asString(); - if(!retryStateNode["RetryTime"].isNull()) - retryState_.retryTime = std::stoi(retryStateNode["RetryTime"].asString()); - if(!retryStateNode["Module"].isNull()) - retryState_.module = retryStateNode["Module"].asString(); - if(!retryStateNode["JobId"].isNull()) - retryState_.jobId = retryStateNode["JobId"].asString(); - if(!retryStateNode["Retrying"].isNull()) - retryState_.retrying = retryStateNode["Retrying"].asString() == "true"; - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["DtsJobName"].isNull()) - dtsJobName_ = value["DtsJobName"].asString(); - if(!value["FinishTime"].isNull()) - finishTime_ = value["FinishTime"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["PayType"].isNull()) - payType_ = value["PayType"].asString(); - if(!value["Reserved"].isNull()) - reserved_ = value["Reserved"].asString(); - if(!value["DatabaseCount"].isNull()) - databaseCount_ = std::stoi(value["DatabaseCount"].asString()); - if(!value["DtsJobClass"].isNull()) - dtsJobClass_ = value["DtsJobClass"].asString(); - if(!value["EndTimestamp"].isNull()) - endTimestamp_ = value["EndTimestamp"].asString(); - if(!value["AppName"].isNull()) - appName_ = value["AppName"].asString(); - if(!value["DestNetType"].isNull()) - destNetType_ = value["DestNetType"].asString(); - if(!value["SubscribeTopic"].isNull()) - subscribeTopic_ = value["SubscribeTopic"].asString(); - if(!value["DtsInstanceID"].isNull()) - dtsInstanceID_ = value["DtsInstanceID"].asString(); - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Checkpoint"].isNull()) - checkpoint_ = std::stol(value["Checkpoint"].asString()); - if(!value["Delay"].isNull()) - delay_ = std::stol(value["Delay"].asString()); - if(!value["ExpireTime"].isNull()) - expireTime_ = value["ExpireTime"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["ConsumptionClient"].isNull()) - consumptionClient_ = value["ConsumptionClient"].asString(); - if(!value["DbObject"].isNull()) - dbObject_ = value["DbObject"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["ConsumptionCheckpoint"].isNull()) - consumptionCheckpoint_ = value["ConsumptionCheckpoint"].asString(); - if(!value["EtlCalculator"].isNull()) - etlCalculator_ = value["EtlCalculator"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["BeginTimestamp"].isNull()) - beginTimestamp_ = value["BeginTimestamp"].asString(); - if(!value["GroupId"].isNull()) - groupId_ = value["GroupId"].asString(); - if(!value["SynchronizationDirection"].isNull()) - synchronizationDirection_ = value["SynchronizationDirection"].asString(); - if(!value["DtsJobDirection"].isNull()) - dtsJobDirection_ = value["DtsJobDirection"].asString(); - if(!value["DemoJob"].isNull()) - demoJob_ = value["DemoJob"].asString() == "true"; - if(!value["JobType"].isNull()) - jobType_ = value["JobType"].asString(); - if(!value["TaskType"].isNull()) - taskType_ = value["TaskType"].asString(); - if(!value["DedicatedClusterId"].isNull()) - dedicatedClusterId_ = value["DedicatedClusterId"].asString(); - if(!value["BootTime"].isNull()) - bootTime_ = value["BootTime"].asString(); - if(!value["Binlog"].isNull()) - binlog_ = value["Binlog"].asString(); - if(!value["BinlogSite"].isNull()) - binlogSite_ = value["BinlogSite"].asString(); - if(!value["BinlogTime"].isNull()) - binlogTime_ = value["BinlogTime"].asString(); - if(!value["LastUpdateTime"].isNull()) - lastUpdateTime_ = value["LastUpdateTime"].asString(); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["ResourceGroupDisplayName"].isNull()) - resourceGroupDisplayName_ = value["ResourceGroupDisplayName"].asString(); - -} - -DescribeDtsJobDetailResult::SubscriptionHost DescribeDtsJobDetailResult::getSubscriptionHost()const -{ - return subscriptionHost_; -} - -std::string DescribeDtsJobDetailResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -std::string DescribeDtsJobDetailResult::getDtsJobName()const -{ - return dtsJobName_; -} - -std::string DescribeDtsJobDetailResult::getEndTimestamp()const -{ - return endTimestamp_; -} - -std::string DescribeDtsJobDetailResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDtsJobDetailResult::getDtsInstanceID()const -{ - return dtsInstanceID_; -} - -DescribeDtsJobDetailResult::MigrationMode DescribeDtsJobDetailResult::getMigrationMode()const -{ - return migrationMode_; -} - -long DescribeDtsJobDetailResult::getDelay()const -{ - return delay_; -} - -bool DescribeDtsJobDetailResult::getSuccess()const -{ - return success_; -} - -bool DescribeDtsJobDetailResult::getDemoJob()const -{ - return demoJob_; -} - -DescribeDtsJobDetailResult::SubscriptionDataType DescribeDtsJobDetailResult::getSubscriptionDataType()const -{ - return subscriptionDataType_; -} - -std::string DescribeDtsJobDetailResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string DescribeDtsJobDetailResult::getLastUpdateTime()const -{ - return lastUpdateTime_; -} - -std::string DescribeDtsJobDetailResult::getTaskType()const -{ - return taskType_; -} - -int DescribeDtsJobDetailResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -DescribeDtsJobDetailResult::DataSynchronizationStatus DescribeDtsJobDetailResult::getDataSynchronizationStatus()const -{ - return dataSynchronizationStatus_; -} - -std::string DescribeDtsJobDetailResult::getEtlCalculator()const -{ - return etlCalculator_; -} - -std::string DescribeDtsJobDetailResult::getStatus()const -{ - return status_; -} - -std::string DescribeDtsJobDetailResult::getDedicatedClusterId()const -{ - return dedicatedClusterId_; -} - -std::string DescribeDtsJobDetailResult::getDbObject()const -{ - return dbObject_; -} - -std::string DescribeDtsJobDetailResult::getBootTime()const -{ - return bootTime_; -} - -std::string DescribeDtsJobDetailResult::getPayType()const -{ - return payType_; -} - -std::string DescribeDtsJobDetailResult::getErrMessage()const -{ - return errMessage_; -} - -int DescribeDtsJobDetailResult::getCode()const -{ - return code_; -} - -std::string DescribeDtsJobDetailResult::getErrCode()const -{ - return errCode_; -} - -std::string DescribeDtsJobDetailResult::getSubscribeTopic()const -{ - return subscribeTopic_; -} - -std::string DescribeDtsJobDetailResult::getConsumptionClient()const -{ - return consumptionClient_; -} - -DescribeDtsJobDetailResult::SourceEndpoint DescribeDtsJobDetailResult::getSourceEndpoint()const -{ - return sourceEndpoint_; -} - -std::string DescribeDtsJobDetailResult::getExpireTime()const -{ - return expireTime_; -} - -DescribeDtsJobDetailResult::RetryState DescribeDtsJobDetailResult::getRetryState()const -{ - return retryState_; -} - -std::string DescribeDtsJobDetailResult::getReserved()const -{ - return reserved_; -} - -std::vector DescribeDtsJobDetailResult::getSubSyncJob()const -{ - return subSyncJob_; -} - -std::string DescribeDtsJobDetailResult::getBinlogTime()const -{ - return binlogTime_; -} - -std::string DescribeDtsJobDetailResult::getAppName()const -{ - return appName_; -} - -std::string DescribeDtsJobDetailResult::getDtsJobClass()const -{ - return dtsJobClass_; -} - -std::string DescribeDtsJobDetailResult::getFinishTime()const -{ - return finishTime_; -} - -std::string DescribeDtsJobDetailResult::getDestNetType()const -{ - return destNetType_; -} - -std::string DescribeDtsJobDetailResult::getBinlog()const -{ - return binlog_; -} - -std::string DescribeDtsJobDetailResult::getCreateTime()const -{ - return createTime_; -} - -std::vector DescribeDtsJobDetailResult::getSubDistributedJob()const -{ - return subDistributedJob_; -} - -std::string DescribeDtsJobDetailResult::getGroupId()const -{ - return groupId_; -} - -long DescribeDtsJobDetailResult::getCheckpoint()const -{ - return checkpoint_; -} - -std::string DescribeDtsJobDetailResult::getConsumptionCheckpoint()const -{ - return consumptionCheckpoint_; -} - -std::string DescribeDtsJobDetailResult::getDtsJobDirection()const -{ - return dtsJobDirection_; -} - -std::string DescribeDtsJobDetailResult::getJobType()const -{ - return jobType_; -} - -int DescribeDtsJobDetailResult::getDatabaseCount()const -{ - return databaseCount_; -} - -DescribeDtsJobDetailResult::DestinationEndpoint DescribeDtsJobDetailResult::getDestinationEndpoint()const -{ - return destinationEndpoint_; -} - -std::string DescribeDtsJobDetailResult::getBinlogSite()const -{ - return binlogSite_; -} - -std::string DescribeDtsJobDetailResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::string DescribeDtsJobDetailResult::getResourceGroupDisplayName()const -{ - return resourceGroupDisplayName_; -} - -std::string DescribeDtsJobDetailResult::getBeginTimestamp()const -{ - return beginTimestamp_; -} - -std::string DescribeDtsJobDetailResult::getSynchronizationDirection()const -{ - return synchronizationDirection_; -} - diff --git a/dts/src/model/DescribeDtsJobsRequest.cc b/dts/src/model/DescribeDtsJobsRequest.cc deleted file mode 100644 index b90914518..000000000 --- a/dts/src/model/DescribeDtsJobsRequest.cc +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDtsJobsRequest; - -DescribeDtsJobsRequest::DescribeDtsJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDtsJobs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDtsJobsRequest::~DescribeDtsJobsRequest() {} - -std::string DescribeDtsJobsRequest::getOrderDirection() const { - return orderDirection_; -} - -void DescribeDtsJobsRequest::setOrderDirection(const std::string &orderDirection) { - orderDirection_ = orderDirection; - setParameter(std::string("OrderDirection"), orderDirection); -} - -std::string DescribeDtsJobsRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void DescribeDtsJobsRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string DescribeDtsJobsRequest::getType() const { - return type_; -} - -void DescribeDtsJobsRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -int DescribeDtsJobsRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeDtsJobsRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeDtsJobsRequest::getOrderColumn() const { - return orderColumn_; -} - -void DescribeDtsJobsRequest::setOrderColumn(const std::string &orderColumn) { - orderColumn_ = orderColumn; - setParameter(std::string("OrderColumn"), orderColumn); -} - -std::string DescribeDtsJobsRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void DescribeDtsJobsRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string DescribeDtsJobsRequest::getRegionId() const { - return regionId_; -} - -void DescribeDtsJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeDtsJobsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeDtsJobsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeDtsJobsRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeDtsJobsRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeDtsJobsRequest::getOriginType() const { - return originType_; -} - -void DescribeDtsJobsRequest::setOriginType(const std::string &originType) { - originType_ = originType; - setParameter(std::string("OriginType"), originType); -} - -std::string DescribeDtsJobsRequest::getGroupId() const { - return groupId_; -} - -void DescribeDtsJobsRequest::setGroupId(const std::string &groupId) { - groupId_ = groupId; - setParameter(std::string("GroupId"), groupId); -} - -std::string DescribeDtsJobsRequest::getParams() const { - return params_; -} - -void DescribeDtsJobsRequest::setParams(const std::string ¶ms) { - params_ = params; - setParameter(std::string("Params"), params); -} - -std::string DescribeDtsJobsRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeDtsJobsRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeDtsJobsRequest::getJobType() const { - return jobType_; -} - -void DescribeDtsJobsRequest::setJobType(const std::string &jobType) { - jobType_ = jobType; - setParameter(std::string("JobType"), jobType); -} - -std::string DescribeDtsJobsRequest::getTags() const { - return tags_; -} - -void DescribeDtsJobsRequest::setTags(const std::string &tags) { - tags_ = tags; - setParameter(std::string("Tags"), tags); -} - -std::string DescribeDtsJobsRequest::getRegion() const { - return region_; -} - -void DescribeDtsJobsRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - -std::string DescribeDtsJobsRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DescribeDtsJobsRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string DescribeDtsJobsRequest::getStatus() const { - return status_; -} - -void DescribeDtsJobsRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/dts/src/model/DescribeDtsJobsResult.cc b/dts/src/model/DescribeDtsJobsResult.cc deleted file mode 100644 index 47b51bff5..000000000 --- a/dts/src/model/DescribeDtsJobsResult.cc +++ /dev/null @@ -1,842 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDtsJobsResult::DescribeDtsJobsResult() : - ServiceResult() -{} - -DescribeDtsJobsResult::DescribeDtsJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDtsJobsResult::~DescribeDtsJobsResult() -{} - -void DescribeDtsJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDtsJobListNode = value["DtsJobList"]["DtsJobStatus"]; - for (auto valueDtsJobListDtsJobStatus : allDtsJobListNode) - { - DtsJobStatus dtsJobListObject; - if(!valueDtsJobListDtsJobStatus["Status"].isNull()) - dtsJobListObject.status = valueDtsJobListDtsJobStatus["Status"].asString(); - if(!valueDtsJobListDtsJobStatus["OriginType"].isNull()) - dtsJobListObject.originType = valueDtsJobListDtsJobStatus["OriginType"].asString(); - if(!valueDtsJobListDtsJobStatus["DtsJobName"].isNull()) - dtsJobListObject.dtsJobName = valueDtsJobListDtsJobStatus["DtsJobName"].asString(); - if(!valueDtsJobListDtsJobStatus["Delay"].isNull()) - dtsJobListObject.delay = std::stol(valueDtsJobListDtsJobStatus["Delay"].asString()); - if(!valueDtsJobListDtsJobStatus["ErrorMessage"].isNull()) - dtsJobListObject.errorMessage = valueDtsJobListDtsJobStatus["ErrorMessage"].asString(); - if(!valueDtsJobListDtsJobStatus["ExpireTime"].isNull()) - dtsJobListObject.expireTime = valueDtsJobListDtsJobStatus["ExpireTime"].asString(); - if(!valueDtsJobListDtsJobStatus["DtsJobId"].isNull()) - dtsJobListObject.dtsJobId = valueDtsJobListDtsJobStatus["DtsJobId"].asString(); - if(!valueDtsJobListDtsJobStatus["CreateTime"].isNull()) - dtsJobListObject.createTime = valueDtsJobListDtsJobStatus["CreateTime"].asString(); - if(!valueDtsJobListDtsJobStatus["PayType"].isNull()) - dtsJobListObject.payType = valueDtsJobListDtsJobStatus["PayType"].asString(); - if(!valueDtsJobListDtsJobStatus["Reserved"].isNull()) - dtsJobListObject.reserved = valueDtsJobListDtsJobStatus["Reserved"].asString(); - if(!valueDtsJobListDtsJobStatus["ConsumptionClient"].isNull()) - dtsJobListObject.consumptionClient = valueDtsJobListDtsJobStatus["ConsumptionClient"].asString(); - if(!valueDtsJobListDtsJobStatus["DbObject"].isNull()) - dtsJobListObject.dbObject = valueDtsJobListDtsJobStatus["DbObject"].asString(); - if(!valueDtsJobListDtsJobStatus["DtsJobClass"].isNull()) - dtsJobListObject.dtsJobClass = valueDtsJobListDtsJobStatus["DtsJobClass"].asString(); - if(!valueDtsJobListDtsJobStatus["ConsumptionCheckpoint"].isNull()) - dtsJobListObject.consumptionCheckpoint = valueDtsJobListDtsJobStatus["ConsumptionCheckpoint"].asString(); - if(!valueDtsJobListDtsJobStatus["EndTimestamp"].isNull()) - dtsJobListObject.endTimestamp = valueDtsJobListDtsJobStatus["EndTimestamp"].asString(); - if(!valueDtsJobListDtsJobStatus["AppName"].isNull()) - dtsJobListObject.appName = valueDtsJobListDtsJobStatus["AppName"].asString(); - if(!valueDtsJobListDtsJobStatus["BeginTimestamp"].isNull()) - dtsJobListObject.beginTimestamp = valueDtsJobListDtsJobStatus["BeginTimestamp"].asString(); - if(!valueDtsJobListDtsJobStatus["DtsInstanceID"].isNull()) - dtsJobListObject.dtsInstanceID = valueDtsJobListDtsJobStatus["DtsInstanceID"].asString(); - if(!valueDtsJobListDtsJobStatus["DtsJobDirection"].isNull()) - dtsJobListObject.dtsJobDirection = valueDtsJobListDtsJobStatus["DtsJobDirection"].asString(); - if(!valueDtsJobListDtsJobStatus["Checkpoint"].isNull()) - dtsJobListObject.checkpoint = valueDtsJobListDtsJobStatus["Checkpoint"].asString(); - if(!valueDtsJobListDtsJobStatus["JobType"].isNull()) - dtsJobListObject.jobType = valueDtsJobListDtsJobStatus["JobType"].asString(); - if(!valueDtsJobListDtsJobStatus["DuUsage"].isNull()) - dtsJobListObject.duUsage = std::stol(valueDtsJobListDtsJobStatus["DuUsage"].asString()); - if(!valueDtsJobListDtsJobStatus["CpuUsage"].isNull()) - dtsJobListObject.cpuUsage = valueDtsJobListDtsJobStatus["CpuUsage"].asString(); - if(!valueDtsJobListDtsJobStatus["MemUsage"].isNull()) - dtsJobListObject.memUsage = valueDtsJobListDtsJobStatus["MemUsage"].asString(); - if(!valueDtsJobListDtsJobStatus["DedicatedClusterId"].isNull()) - dtsJobListObject.dedicatedClusterId = valueDtsJobListDtsJobStatus["DedicatedClusterId"].asString(); - if(!valueDtsJobListDtsJobStatus["ResourceGroupId"].isNull()) - dtsJobListObject.resourceGroupId = valueDtsJobListDtsJobStatus["ResourceGroupId"].asString(); - if(!valueDtsJobListDtsJobStatus["ResourceGroupDisplayName"].isNull()) - dtsJobListObject.resourceGroupDisplayName = valueDtsJobListDtsJobStatus["ResourceGroupDisplayName"].asString(); - if(!valueDtsJobListDtsJobStatus["MigrationErrMsg"].isNull()) - dtsJobListObject.migrationErrMsg = valueDtsJobListDtsJobStatus["MigrationErrMsg"].asString(); - if(!valueDtsJobListDtsJobStatus["MigrationErrHelpDocId"].isNull()) - dtsJobListObject.migrationErrHelpDocId = valueDtsJobListDtsJobStatus["MigrationErrHelpDocId"].asString(); - if(!valueDtsJobListDtsJobStatus["MigrationErrWorkaround"].isNull()) - dtsJobListObject.migrationErrWorkaround = valueDtsJobListDtsJobStatus["MigrationErrWorkaround"].asString(); - if(!valueDtsJobListDtsJobStatus["MigrationErrCode"].isNull()) - dtsJobListObject.migrationErrCode = valueDtsJobListDtsJobStatus["MigrationErrCode"].asString(); - if(!valueDtsJobListDtsJobStatus["MigrationErrHelpDocKey"].isNull()) - dtsJobListObject.migrationErrHelpDocKey = valueDtsJobListDtsJobStatus["MigrationErrHelpDocKey"].asString(); - auto allTagListNode = valueDtsJobListDtsJobStatus["TagList"]["DtsTag"]; - for (auto valueDtsJobListDtsJobStatusTagListDtsTag : allTagListNode) - { - DtsJobStatus::DtsTag tagListObject; - if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].isNull()) - tagListObject.tagValue = valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].asString(); - if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].isNull()) - tagListObject.tagKey = valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].asString(); - dtsJobListObject.tagList.push_back(tagListObject); - } - auto allErrorDetailsNode = valueDtsJobListDtsJobStatus["ErrorDetails"]["ErrorDetail"]; - for (auto valueDtsJobListDtsJobStatusErrorDetailsErrorDetail : allErrorDetailsNode) - { - DtsJobStatus::ErrorDetail errorDetailsObject; - if(!valueDtsJobListDtsJobStatusErrorDetailsErrorDetail["ErrorCode"].isNull()) - errorDetailsObject.errorCode = valueDtsJobListDtsJobStatusErrorDetailsErrorDetail["ErrorCode"].asString(); - if(!valueDtsJobListDtsJobStatusErrorDetailsErrorDetail["HelpUrl"].isNull()) - errorDetailsObject.helpUrl = valueDtsJobListDtsJobStatusErrorDetailsErrorDetail["HelpUrl"].asString(); - dtsJobListObject.errorDetails.push_back(errorDetailsObject); - } - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - dtsJobListObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - dtsJobListObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - dtsJobListObject.dataInitializationStatus.progress = dataInitializationStatusNode["Progress"].asString(); - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - dtsJobListObject.dataSynchronizationStatus.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["NeedUpgrade"].isNull()) - dtsJobListObject.dataSynchronizationStatus.needUpgrade = dataSynchronizationStatusNode["NeedUpgrade"].asString() == "true"; - if(!dataSynchronizationStatusNode["Percent"].isNull()) - dtsJobListObject.dataSynchronizationStatus.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["Progress"].isNull()) - dtsJobListObject.dataSynchronizationStatus.progress = dataSynchronizationStatusNode["Progress"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.dataSynchronizationStatus.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); - auto dataEtlStatusNode = value["DataEtlStatus"]; - if(!dataEtlStatusNode["Status"].isNull()) - dtsJobListObject.dataEtlStatus.status = dataEtlStatusNode["Status"].asString(); - if(!dataEtlStatusNode["Percent"].isNull()) - dtsJobListObject.dataEtlStatus.percent = dataEtlStatusNode["Percent"].asString(); - if(!dataEtlStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.dataEtlStatus.errorMessage = dataEtlStatusNode["ErrorMessage"].asString(); - if(!dataEtlStatusNode["Progress"].isNull()) - dtsJobListObject.dataEtlStatus.progress = dataEtlStatusNode["Progress"].asString(); - auto destinationEndpointNode = value["DestinationEndpoint"]; - if(!destinationEndpointNode["SslSolutionEnum"].isNull()) - dtsJobListObject.destinationEndpoint.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString(); - if(!destinationEndpointNode["OracleSID"].isNull()) - dtsJobListObject.destinationEndpoint.oracleSID = destinationEndpointNode["OracleSID"].asString(); - if(!destinationEndpointNode["Region"].isNull()) - dtsJobListObject.destinationEndpoint.region = destinationEndpointNode["Region"].asString(); - if(!destinationEndpointNode["DatabaseName"].isNull()) - dtsJobListObject.destinationEndpoint.databaseName = destinationEndpointNode["DatabaseName"].asString(); - if(!destinationEndpointNode["Ip"].isNull()) - dtsJobListObject.destinationEndpoint.ip = destinationEndpointNode["Ip"].asString(); - if(!destinationEndpointNode["InstanceID"].isNull()) - dtsJobListObject.destinationEndpoint.instanceID = destinationEndpointNode["InstanceID"].asString(); - if(!destinationEndpointNode["Port"].isNull()) - dtsJobListObject.destinationEndpoint.port = destinationEndpointNode["Port"].asString(); - if(!destinationEndpointNode["InstanceType"].isNull()) - dtsJobListObject.destinationEndpoint.instanceType = destinationEndpointNode["InstanceType"].asString(); - if(!destinationEndpointNode["UserName"].isNull()) - dtsJobListObject.destinationEndpoint.userName = destinationEndpointNode["UserName"].asString(); - if(!destinationEndpointNode["EngineName"].isNull()) - dtsJobListObject.destinationEndpoint.engineName = destinationEndpointNode["EngineName"].asString(); - auto migrationModeNode = value["MigrationMode"]; - if(!migrationModeNode["DataInitialization"].isNull()) - dtsJobListObject.migrationMode.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true"; - if(!migrationModeNode["DataSynchronization"].isNull()) - dtsJobListObject.migrationMode.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true"; - if(!migrationModeNode["StructureInitialization"].isNull()) - dtsJobListObject.migrationMode.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true"; - auto performanceNode = value["Performance"]; - if(!performanceNode["Rps"].isNull()) - dtsJobListObject.performance.rps = performanceNode["Rps"].asString(); - if(!performanceNode["Flow"].isNull()) - dtsJobListObject.performance.flow = performanceNode["Flow"].asString(); - auto precheckStatusNode = value["PrecheckStatus"]; - if(!precheckStatusNode["Status"].isNull()) - dtsJobListObject.precheckStatus.status = precheckStatusNode["Status"].asString(); - if(!precheckStatusNode["Percent"].isNull()) - dtsJobListObject.precheckStatus.percent = precheckStatusNode["Percent"].asString(); - if(!precheckStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.precheckStatus.errorMessage = precheckStatusNode["ErrorMessage"].asString(); - auto allDetailNode = precheckStatusNode["Detail"]["PrecheckDetail"]; - for (auto precheckStatusNodeDetailPrecheckDetail : allDetailNode) - { - DtsJobStatus::PrecheckStatus::PrecheckDetail precheckDetailObject; - if(!precheckStatusNodeDetailPrecheckDetail["CheckResult"].isNull()) - precheckDetailObject.checkResult = precheckStatusNodeDetailPrecheckDetail["CheckResult"].asString(); - if(!precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].isNull()) - precheckDetailObject.checkItemDescription = precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].asString(); - if(!precheckStatusNodeDetailPrecheckDetail["CheckItem"].isNull()) - precheckDetailObject.checkItem = precheckStatusNodeDetailPrecheckDetail["CheckItem"].asString(); - if(!precheckStatusNodeDetailPrecheckDetail["RepairMethod"].isNull()) - precheckDetailObject.repairMethod = precheckStatusNodeDetailPrecheckDetail["RepairMethod"].asString(); - if(!precheckStatusNodeDetailPrecheckDetail["FailedReason"].isNull()) - precheckDetailObject.failedReason = precheckStatusNodeDetailPrecheckDetail["FailedReason"].asString(); - dtsJobListObject.precheckStatus.detail.push_back(precheckDetailObject); - } - auto reverseJobNode = value["ReverseJob"]; - if(!reverseJobNode["Status"].isNull()) - dtsJobListObject.reverseJob.status = reverseJobNode["Status"].asString(); - if(!reverseJobNode["DtsJobName"].isNull()) - dtsJobListObject.reverseJob.dtsJobName = reverseJobNode["DtsJobName"].asString(); - if(!reverseJobNode["Delay"].isNull()) - dtsJobListObject.reverseJob.delay = std::stol(reverseJobNode["Delay"].asString()); - if(!reverseJobNode["ErrorMessage"].isNull()) - dtsJobListObject.reverseJob.errorMessage = reverseJobNode["ErrorMessage"].asString(); - if(!reverseJobNode["DtsJobId"].isNull()) - dtsJobListObject.reverseJob.dtsJobId = reverseJobNode["DtsJobId"].asString(); - if(!reverseJobNode["ExpireTime"].isNull()) - dtsJobListObject.reverseJob.expireTime = reverseJobNode["ExpireTime"].asString(); - if(!reverseJobNode["CreateTime"].isNull()) - dtsJobListObject.reverseJob.createTime = reverseJobNode["CreateTime"].asString(); - if(!reverseJobNode["PayType"].isNull()) - dtsJobListObject.reverseJob.payType = reverseJobNode["PayType"].asString(); - if(!reverseJobNode["Reserved"].isNull()) - dtsJobListObject.reverseJob.reserved = reverseJobNode["Reserved"].asString(); - if(!reverseJobNode["DbObject"].isNull()) - dtsJobListObject.reverseJob.dbObject = reverseJobNode["DbObject"].asString(); - if(!reverseJobNode["DtsJobClass"].isNull()) - dtsJobListObject.reverseJob.dtsJobClass = reverseJobNode["DtsJobClass"].asString(); - if(!reverseJobNode["DtsInstanceID"].isNull()) - dtsJobListObject.reverseJob.dtsInstanceID = reverseJobNode["DtsInstanceID"].asString(); - if(!reverseJobNode["DtsJobDirection"].isNull()) - dtsJobListObject.reverseJob.dtsJobDirection = reverseJobNode["DtsJobDirection"].asString(); - if(!reverseJobNode["Checkpoint"].isNull()) - dtsJobListObject.reverseJob.checkpoint = reverseJobNode["Checkpoint"].asString(); - if(!reverseJobNode["DuUsage"].isNull()) - dtsJobListObject.reverseJob.duUsage = std::stol(reverseJobNode["DuUsage"].asString()); - if(!reverseJobNode["CpuUsage"].isNull()) - dtsJobListObject.reverseJob.cpuUsage = reverseJobNode["CpuUsage"].asString(); - if(!reverseJobNode["MemUsage"].isNull()) - dtsJobListObject.reverseJob.memUsage = reverseJobNode["MemUsage"].asString(); - if(!reverseJobNode["DedicatedClusterId"].isNull()) - dtsJobListObject.reverseJob.dedicatedClusterId = reverseJobNode["DedicatedClusterId"].asString(); - auto allErrorDetails9Node = reverseJobNode["ErrorDetails"]["ErrorDetail"]; - for (auto reverseJobNodeErrorDetailsErrorDetail : allErrorDetails9Node) - { - DtsJobStatus::ReverseJob::ErrorDetail10 errorDetail10Object; - if(!reverseJobNodeErrorDetailsErrorDetail["ErrorCode"].isNull()) - errorDetail10Object.errorCode = reverseJobNodeErrorDetailsErrorDetail["ErrorCode"].asString(); - if(!reverseJobNodeErrorDetailsErrorDetail["HelpUrl"].isNull()) - errorDetail10Object.helpUrl = reverseJobNodeErrorDetailsErrorDetail["HelpUrl"].asString(); - dtsJobListObject.reverseJob.errorDetails9.push_back(errorDetail10Object); - } - auto dataInitializationStatus1Node = reverseJobNode["DataInitializationStatus"]; - if(!dataInitializationStatus1Node["Status"].isNull()) - dtsJobListObject.reverseJob.dataInitializationStatus1.status = dataInitializationStatus1Node["Status"].asString(); - if(!dataInitializationStatus1Node["Percent"].isNull()) - dtsJobListObject.reverseJob.dataInitializationStatus1.percent = dataInitializationStatus1Node["Percent"].asString(); - if(!dataInitializationStatus1Node["ErrorMessage"].isNull()) - dtsJobListObject.reverseJob.dataInitializationStatus1.errorMessage = dataInitializationStatus1Node["ErrorMessage"].asString(); - if(!dataInitializationStatus1Node["Progress"].isNull()) - dtsJobListObject.reverseJob.dataInitializationStatus1.progress = dataInitializationStatus1Node["Progress"].asString(); - auto dataSynchronizationStatus2Node = reverseJobNode["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus2Node["Status"].isNull()) - dtsJobListObject.reverseJob.dataSynchronizationStatus2.status = dataSynchronizationStatus2Node["Status"].asString(); - if(!dataSynchronizationStatus2Node["NeedUpgrade"].isNull()) - dtsJobListObject.reverseJob.dataSynchronizationStatus2.needUpgrade = dataSynchronizationStatus2Node["NeedUpgrade"].asString() == "true"; - if(!dataSynchronizationStatus2Node["Percent"].isNull()) - dtsJobListObject.reverseJob.dataSynchronizationStatus2.percent = dataSynchronizationStatus2Node["Percent"].asString(); - if(!dataSynchronizationStatus2Node["Progress"].isNull()) - dtsJobListObject.reverseJob.dataSynchronizationStatus2.progress = dataSynchronizationStatus2Node["Progress"].asString(); - if(!dataSynchronizationStatus2Node["ErrorMessage"].isNull()) - dtsJobListObject.reverseJob.dataSynchronizationStatus2.errorMessage = dataSynchronizationStatus2Node["ErrorMessage"].asString(); - auto destinationEndpoint3Node = reverseJobNode["DestinationEndpoint"]; - if(!destinationEndpoint3Node["SslSolutionEnum"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.sslSolutionEnum = destinationEndpoint3Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint3Node["OracleSID"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.oracleSID = destinationEndpoint3Node["OracleSID"].asString(); - if(!destinationEndpoint3Node["Region"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.region = destinationEndpoint3Node["Region"].asString(); - if(!destinationEndpoint3Node["DatabaseName"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.databaseName = destinationEndpoint3Node["DatabaseName"].asString(); - if(!destinationEndpoint3Node["Ip"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.ip = destinationEndpoint3Node["Ip"].asString(); - if(!destinationEndpoint3Node["InstanceID"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.instanceID = destinationEndpoint3Node["InstanceID"].asString(); - if(!destinationEndpoint3Node["Port"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.port = destinationEndpoint3Node["Port"].asString(); - if(!destinationEndpoint3Node["InstanceType"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.instanceType = destinationEndpoint3Node["InstanceType"].asString(); - if(!destinationEndpoint3Node["UserName"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.userName = destinationEndpoint3Node["UserName"].asString(); - if(!destinationEndpoint3Node["EngineName"].isNull()) - dtsJobListObject.reverseJob.destinationEndpoint3.engineName = destinationEndpoint3Node["EngineName"].asString(); - auto migrationMode4Node = reverseJobNode["MigrationMode"]; - if(!migrationMode4Node["DataInitialization"].isNull()) - dtsJobListObject.reverseJob.migrationMode4.dataInitialization = migrationMode4Node["DataInitialization"].asString() == "true"; - if(!migrationMode4Node["DataSynchronization"].isNull()) - dtsJobListObject.reverseJob.migrationMode4.dataSynchronization = migrationMode4Node["DataSynchronization"].asString() == "true"; - if(!migrationMode4Node["StructureInitialization"].isNull()) - dtsJobListObject.reverseJob.migrationMode4.structureInitialization = migrationMode4Node["StructureInitialization"].asString() == "true"; - auto performance5Node = reverseJobNode["Performance"]; - if(!performance5Node["Rps"].isNull()) - dtsJobListObject.reverseJob.performance5.rps = performance5Node["Rps"].asString(); - if(!performance5Node["Flow"].isNull()) - dtsJobListObject.reverseJob.performance5.flow = performance5Node["Flow"].asString(); - auto precheckStatus6Node = reverseJobNode["PrecheckStatus"]; - if(!precheckStatus6Node["Status"].isNull()) - dtsJobListObject.reverseJob.precheckStatus6.status = precheckStatus6Node["Status"].asString(); - if(!precheckStatus6Node["Percent"].isNull()) - dtsJobListObject.reverseJob.precheckStatus6.percent = precheckStatus6Node["Percent"].asString(); - if(!precheckStatus6Node["ErrorMessage"].isNull()) - dtsJobListObject.reverseJob.precheckStatus6.errorMessage = precheckStatus6Node["ErrorMessage"].asString(); - auto allDetail11Node = precheckStatus6Node["Detail"]["PrecheckDetail"]; - for (auto precheckStatus6NodeDetailPrecheckDetail : allDetail11Node) - { - DtsJobStatus::ReverseJob::PrecheckStatus6::PrecheckDetail12 precheckDetail12Object; - if(!precheckStatus6NodeDetailPrecheckDetail["CheckResult"].isNull()) - precheckDetail12Object.checkResult = precheckStatus6NodeDetailPrecheckDetail["CheckResult"].asString(); - if(!precheckStatus6NodeDetailPrecheckDetail["CheckItemDescription"].isNull()) - precheckDetail12Object.checkItemDescription = precheckStatus6NodeDetailPrecheckDetail["CheckItemDescription"].asString(); - if(!precheckStatus6NodeDetailPrecheckDetail["CheckItem"].isNull()) - precheckDetail12Object.checkItem = precheckStatus6NodeDetailPrecheckDetail["CheckItem"].asString(); - if(!precheckStatus6NodeDetailPrecheckDetail["RepairMethod"].isNull()) - precheckDetail12Object.repairMethod = precheckStatus6NodeDetailPrecheckDetail["RepairMethod"].asString(); - if(!precheckStatus6NodeDetailPrecheckDetail["FailedReason"].isNull()) - precheckDetail12Object.failedReason = precheckStatus6NodeDetailPrecheckDetail["FailedReason"].asString(); - dtsJobListObject.reverseJob.precheckStatus6.detail11.push_back(precheckDetail12Object); - } - auto sourceEndpoint7Node = reverseJobNode["SourceEndpoint"]; - if(!sourceEndpoint7Node["SslSolutionEnum"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.sslSolutionEnum = sourceEndpoint7Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint7Node["OracleSID"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.oracleSID = sourceEndpoint7Node["OracleSID"].asString(); - if(!sourceEndpoint7Node["Region"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.region = sourceEndpoint7Node["Region"].asString(); - if(!sourceEndpoint7Node["DatabaseName"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.databaseName = sourceEndpoint7Node["DatabaseName"].asString(); - if(!sourceEndpoint7Node["Ip"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.ip = sourceEndpoint7Node["Ip"].asString(); - if(!sourceEndpoint7Node["InstanceID"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.instanceID = sourceEndpoint7Node["InstanceID"].asString(); - if(!sourceEndpoint7Node["Port"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.port = sourceEndpoint7Node["Port"].asString(); - if(!sourceEndpoint7Node["InstanceType"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.instanceType = sourceEndpoint7Node["InstanceType"].asString(); - if(!sourceEndpoint7Node["UserName"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.userName = sourceEndpoint7Node["UserName"].asString(); - if(!sourceEndpoint7Node["EngineName"].isNull()) - dtsJobListObject.reverseJob.sourceEndpoint7.engineName = sourceEndpoint7Node["EngineName"].asString(); - auto structureInitializationStatus8Node = reverseJobNode["StructureInitializationStatus"]; - if(!structureInitializationStatus8Node["Status"].isNull()) - dtsJobListObject.reverseJob.structureInitializationStatus8.status = structureInitializationStatus8Node["Status"].asString(); - if(!structureInitializationStatus8Node["Percent"].isNull()) - dtsJobListObject.reverseJob.structureInitializationStatus8.percent = structureInitializationStatus8Node["Percent"].asString(); - if(!structureInitializationStatus8Node["ErrorMessage"].isNull()) - dtsJobListObject.reverseJob.structureInitializationStatus8.errorMessage = structureInitializationStatus8Node["ErrorMessage"].asString(); - if(!structureInitializationStatus8Node["Progress"].isNull()) - dtsJobListObject.reverseJob.structureInitializationStatus8.progress = structureInitializationStatus8Node["Progress"].asString(); - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["SslSolutionEnum"].isNull()) - dtsJobListObject.sourceEndpoint.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString(); - if(!sourceEndpointNode["OracleSID"].isNull()) - dtsJobListObject.sourceEndpoint.oracleSID = sourceEndpointNode["OracleSID"].asString(); - if(!sourceEndpointNode["Region"].isNull()) - dtsJobListObject.sourceEndpoint.region = sourceEndpointNode["Region"].asString(); - if(!sourceEndpointNode["DatabaseName"].isNull()) - dtsJobListObject.sourceEndpoint.databaseName = sourceEndpointNode["DatabaseName"].asString(); - if(!sourceEndpointNode["Ip"].isNull()) - dtsJobListObject.sourceEndpoint.ip = sourceEndpointNode["Ip"].asString(); - if(!sourceEndpointNode["InstanceID"].isNull()) - dtsJobListObject.sourceEndpoint.instanceID = sourceEndpointNode["InstanceID"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - dtsJobListObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - dtsJobListObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - dtsJobListObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - dtsJobListObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString(); - auto structureInitializationStatusNode = value["StructureInitializationStatus"]; - if(!structureInitializationStatusNode["Status"].isNull()) - dtsJobListObject.structureInitializationStatus.status = structureInitializationStatusNode["Status"].asString(); - if(!structureInitializationStatusNode["Percent"].isNull()) - dtsJobListObject.structureInitializationStatus.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); - if(!structureInitializationStatusNode["Progress"].isNull()) - dtsJobListObject.structureInitializationStatus.progress = structureInitializationStatusNode["Progress"].asString(); - auto retryStateNode = value["RetryState"]; - if(!retryStateNode["RetryCount"].isNull()) - dtsJobListObject.retryState.retryCount = std::stoi(retryStateNode["RetryCount"].asString()); - if(!retryStateNode["MaxRetryTime"].isNull()) - dtsJobListObject.retryState.maxRetryTime = std::stoi(retryStateNode["MaxRetryTime"].asString()); - if(!retryStateNode["ErrMessage"].isNull()) - dtsJobListObject.retryState.errMessage = retryStateNode["ErrMessage"].asString(); - if(!retryStateNode["RetryTarget"].isNull()) - dtsJobListObject.retryState.retryTarget = retryStateNode["RetryTarget"].asString(); - if(!retryStateNode["RetryTime"].isNull()) - dtsJobListObject.retryState.retryTime = std::stoi(retryStateNode["RetryTime"].asString()); - if(!retryStateNode["Module"].isNull()) - dtsJobListObject.retryState.module = retryStateNode["Module"].asString(); - if(!retryStateNode["JobId"].isNull()) - dtsJobListObject.retryState.jobId = retryStateNode["JobId"].asString(); - if(!retryStateNode["Retrying"].isNull()) - dtsJobListObject.retryState.retrying = retryStateNode["Retrying"].asString() == "true"; - if(!retryStateNode["MigrationErrHelpDocId"].isNull()) - dtsJobListObject.retryState.migrationErrHelpDocId = retryStateNode["MigrationErrHelpDocId"].asString(); - if(!retryStateNode["MigrationErrHelpDocKey"].isNull()) - dtsJobListObject.retryState.migrationErrHelpDocKey = retryStateNode["MigrationErrHelpDocKey"].asString(); - if(!retryStateNode["MigrationErrCode"].isNull()) - dtsJobListObject.retryState.migrationErrCode = retryStateNode["MigrationErrCode"].asString(); - if(!retryStateNode["MigrationErrMsg"].isNull()) - dtsJobListObject.retryState.migrationErrMsg = retryStateNode["MigrationErrMsg"].asString(); - if(!retryStateNode["MigrationErrWorkaround"].isNull()) - dtsJobListObject.retryState.migrationErrWorkaround = retryStateNode["MigrationErrWorkaround"].asString(); - auto dataCloudStatusNode = value["DataCloudStatus"]; - if(!dataCloudStatusNode["Status"].isNull()) - dtsJobListObject.dataCloudStatus.status = dataCloudStatusNode["Status"].asString(); - if(!dataCloudStatusNode["NeedUpgrade"].isNull()) - dtsJobListObject.dataCloudStatus.needUpgrade = dataCloudStatusNode["NeedUpgrade"].asString() == "true"; - if(!dataCloudStatusNode["Percent"].isNull()) - dtsJobListObject.dataCloudStatus.percent = dataCloudStatusNode["Percent"].asString(); - if(!dataCloudStatusNode["Progress"].isNull()) - dtsJobListObject.dataCloudStatus.progress = dataCloudStatusNode["Progress"].asString(); - if(!dataCloudStatusNode["ErrorMessage"].isNull()) - dtsJobListObject.dataCloudStatus.errorMessage = dataCloudStatusNode["ErrorMessage"].asString(); - dtsJobList_.push_back(dtsJobListObject); - } - auto allEtlDemoListNode = value["EtlDemoList"]["DtsJobStatus"]; - for (auto valueEtlDemoListDtsJobStatus : allEtlDemoListNode) - { - DtsJobStatus13 etlDemoListObject; - if(!valueEtlDemoListDtsJobStatus["Status"].isNull()) - etlDemoListObject.status = valueEtlDemoListDtsJobStatus["Status"].asString(); - if(!valueEtlDemoListDtsJobStatus["OriginType"].isNull()) - etlDemoListObject.originType = valueEtlDemoListDtsJobStatus["OriginType"].asString(); - if(!valueEtlDemoListDtsJobStatus["DtsJobName"].isNull()) - etlDemoListObject.dtsJobName = valueEtlDemoListDtsJobStatus["DtsJobName"].asString(); - if(!valueEtlDemoListDtsJobStatus["Delay"].isNull()) - etlDemoListObject.delay = std::stol(valueEtlDemoListDtsJobStatus["Delay"].asString()); - if(!valueEtlDemoListDtsJobStatus["ErrorMessage"].isNull()) - etlDemoListObject.errorMessage = valueEtlDemoListDtsJobStatus["ErrorMessage"].asString(); - if(!valueEtlDemoListDtsJobStatus["ExpireTime"].isNull()) - etlDemoListObject.expireTime = valueEtlDemoListDtsJobStatus["ExpireTime"].asString(); - if(!valueEtlDemoListDtsJobStatus["DtsJobId"].isNull()) - etlDemoListObject.dtsJobId = valueEtlDemoListDtsJobStatus["DtsJobId"].asString(); - if(!valueEtlDemoListDtsJobStatus["CreateTime"].isNull()) - etlDemoListObject.createTime = valueEtlDemoListDtsJobStatus["CreateTime"].asString(); - if(!valueEtlDemoListDtsJobStatus["PayType"].isNull()) - etlDemoListObject.payType = valueEtlDemoListDtsJobStatus["PayType"].asString(); - if(!valueEtlDemoListDtsJobStatus["Reserved"].isNull()) - etlDemoListObject.reserved = valueEtlDemoListDtsJobStatus["Reserved"].asString(); - if(!valueEtlDemoListDtsJobStatus["ConsumptionClient"].isNull()) - etlDemoListObject.consumptionClient = valueEtlDemoListDtsJobStatus["ConsumptionClient"].asString(); - if(!valueEtlDemoListDtsJobStatus["DbObject"].isNull()) - etlDemoListObject.dbObject = valueEtlDemoListDtsJobStatus["DbObject"].asString(); - if(!valueEtlDemoListDtsJobStatus["DtsJobClass"].isNull()) - etlDemoListObject.dtsJobClass = valueEtlDemoListDtsJobStatus["DtsJobClass"].asString(); - if(!valueEtlDemoListDtsJobStatus["ConsumptionCheckpoint"].isNull()) - etlDemoListObject.consumptionCheckpoint = valueEtlDemoListDtsJobStatus["ConsumptionCheckpoint"].asString(); - if(!valueEtlDemoListDtsJobStatus["EndTimestamp"].isNull()) - etlDemoListObject.endTimestamp = valueEtlDemoListDtsJobStatus["EndTimestamp"].asString(); - if(!valueEtlDemoListDtsJobStatus["AppName"].isNull()) - etlDemoListObject.appName = valueEtlDemoListDtsJobStatus["AppName"].asString(); - if(!valueEtlDemoListDtsJobStatus["BeginTimestamp"].isNull()) - etlDemoListObject.beginTimestamp = valueEtlDemoListDtsJobStatus["BeginTimestamp"].asString(); - if(!valueEtlDemoListDtsJobStatus["DtsInstanceID"].isNull()) - etlDemoListObject.dtsInstanceID = valueEtlDemoListDtsJobStatus["DtsInstanceID"].asString(); - if(!valueEtlDemoListDtsJobStatus["DtsJobDirection"].isNull()) - etlDemoListObject.dtsJobDirection = valueEtlDemoListDtsJobStatus["DtsJobDirection"].asString(); - if(!valueEtlDemoListDtsJobStatus["Checkpoint"].isNull()) - etlDemoListObject.checkpoint = valueEtlDemoListDtsJobStatus["Checkpoint"].asString(); - if(!valueEtlDemoListDtsJobStatus["JobType"].isNull()) - etlDemoListObject.jobType = valueEtlDemoListDtsJobStatus["JobType"].asString(); - if(!valueEtlDemoListDtsJobStatus["ResourceGroupId"].isNull()) - etlDemoListObject.resourceGroupId = valueEtlDemoListDtsJobStatus["ResourceGroupId"].asString(); - if(!valueEtlDemoListDtsJobStatus["ResourceGroupDisplayName"].isNull()) - etlDemoListObject.resourceGroupDisplayName = valueEtlDemoListDtsJobStatus["ResourceGroupDisplayName"].asString(); - auto allTagList25Node = valueEtlDemoListDtsJobStatus["TagList"]["DtsTag"]; - for (auto valueEtlDemoListDtsJobStatusTagListDtsTag : allTagList25Node) - { - DtsJobStatus13::DtsTag tagList25Object; - if(!valueEtlDemoListDtsJobStatusTagListDtsTag["TagValue"].isNull()) - tagList25Object.tagValue = valueEtlDemoListDtsJobStatusTagListDtsTag["TagValue"].asString(); - if(!valueEtlDemoListDtsJobStatusTagListDtsTag["TagKey"].isNull()) - tagList25Object.tagKey = valueEtlDemoListDtsJobStatusTagListDtsTag["TagKey"].asString(); - etlDemoListObject.tagList25.push_back(tagList25Object); - } - auto dataInitializationStatus14Node = value["DataInitializationStatus"]; - if(!dataInitializationStatus14Node["Status"].isNull()) - etlDemoListObject.dataInitializationStatus14.status = dataInitializationStatus14Node["Status"].asString(); - if(!dataInitializationStatus14Node["Percent"].isNull()) - etlDemoListObject.dataInitializationStatus14.percent = dataInitializationStatus14Node["Percent"].asString(); - if(!dataInitializationStatus14Node["ErrorMessage"].isNull()) - etlDemoListObject.dataInitializationStatus14.errorMessage = dataInitializationStatus14Node["ErrorMessage"].asString(); - if(!dataInitializationStatus14Node["Progress"].isNull()) - etlDemoListObject.dataInitializationStatus14.progress = dataInitializationStatus14Node["Progress"].asString(); - auto dataSynchronizationStatus15Node = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus15Node["Status"].isNull()) - etlDemoListObject.dataSynchronizationStatus15.status = dataSynchronizationStatus15Node["Status"].asString(); - if(!dataSynchronizationStatus15Node["NeedUpgrade"].isNull()) - etlDemoListObject.dataSynchronizationStatus15.needUpgrade = dataSynchronizationStatus15Node["NeedUpgrade"].asString() == "true"; - if(!dataSynchronizationStatus15Node["Percent"].isNull()) - etlDemoListObject.dataSynchronizationStatus15.percent = dataSynchronizationStatus15Node["Percent"].asString(); - if(!dataSynchronizationStatus15Node["Progress"].isNull()) - etlDemoListObject.dataSynchronizationStatus15.progress = dataSynchronizationStatus15Node["Progress"].asString(); - if(!dataSynchronizationStatus15Node["ErrorMessage"].isNull()) - etlDemoListObject.dataSynchronizationStatus15.errorMessage = dataSynchronizationStatus15Node["ErrorMessage"].asString(); - auto dataEtlStatus16Node = value["DataEtlStatus"]; - if(!dataEtlStatus16Node["Status"].isNull()) - etlDemoListObject.dataEtlStatus16.status = dataEtlStatus16Node["Status"].asString(); - if(!dataEtlStatus16Node["Percent"].isNull()) - etlDemoListObject.dataEtlStatus16.percent = dataEtlStatus16Node["Percent"].asString(); - if(!dataEtlStatus16Node["ErrorMessage"].isNull()) - etlDemoListObject.dataEtlStatus16.errorMessage = dataEtlStatus16Node["ErrorMessage"].asString(); - if(!dataEtlStatus16Node["Progress"].isNull()) - etlDemoListObject.dataEtlStatus16.progress = dataEtlStatus16Node["Progress"].asString(); - auto destinationEndpoint17Node = value["DestinationEndpoint"]; - if(!destinationEndpoint17Node["SslSolutionEnum"].isNull()) - etlDemoListObject.destinationEndpoint17.sslSolutionEnum = destinationEndpoint17Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint17Node["OracleSID"].isNull()) - etlDemoListObject.destinationEndpoint17.oracleSID = destinationEndpoint17Node["OracleSID"].asString(); - if(!destinationEndpoint17Node["Region"].isNull()) - etlDemoListObject.destinationEndpoint17.region = destinationEndpoint17Node["Region"].asString(); - if(!destinationEndpoint17Node["DatabaseName"].isNull()) - etlDemoListObject.destinationEndpoint17.databaseName = destinationEndpoint17Node["DatabaseName"].asString(); - if(!destinationEndpoint17Node["Ip"].isNull()) - etlDemoListObject.destinationEndpoint17.ip = destinationEndpoint17Node["Ip"].asString(); - if(!destinationEndpoint17Node["InstanceID"].isNull()) - etlDemoListObject.destinationEndpoint17.instanceID = destinationEndpoint17Node["InstanceID"].asString(); - if(!destinationEndpoint17Node["Port"].isNull()) - etlDemoListObject.destinationEndpoint17.port = destinationEndpoint17Node["Port"].asString(); - if(!destinationEndpoint17Node["InstanceType"].isNull()) - etlDemoListObject.destinationEndpoint17.instanceType = destinationEndpoint17Node["InstanceType"].asString(); - if(!destinationEndpoint17Node["UserName"].isNull()) - etlDemoListObject.destinationEndpoint17.userName = destinationEndpoint17Node["UserName"].asString(); - if(!destinationEndpoint17Node["EngineName"].isNull()) - etlDemoListObject.destinationEndpoint17.engineName = destinationEndpoint17Node["EngineName"].asString(); - auto migrationMode18Node = value["MigrationMode"]; - if(!migrationMode18Node["DataInitialization"].isNull()) - etlDemoListObject.migrationMode18.dataInitialization = migrationMode18Node["DataInitialization"].asString() == "true"; - if(!migrationMode18Node["DataSynchronization"].isNull()) - etlDemoListObject.migrationMode18.dataSynchronization = migrationMode18Node["DataSynchronization"].asString() == "true"; - if(!migrationMode18Node["StructureInitialization"].isNull()) - etlDemoListObject.migrationMode18.structureInitialization = migrationMode18Node["StructureInitialization"].asString() == "true"; - auto performance19Node = value["Performance"]; - if(!performance19Node["Rps"].isNull()) - etlDemoListObject.performance19.rps = performance19Node["Rps"].asString(); - if(!performance19Node["Flow"].isNull()) - etlDemoListObject.performance19.flow = performance19Node["Flow"].asString(); - auto precheckStatus20Node = value["PrecheckStatus"]; - if(!precheckStatus20Node["Status"].isNull()) - etlDemoListObject.precheckStatus20.status = precheckStatus20Node["Status"].asString(); - if(!precheckStatus20Node["Percent"].isNull()) - etlDemoListObject.precheckStatus20.percent = precheckStatus20Node["Percent"].asString(); - if(!precheckStatus20Node["ErrorMessage"].isNull()) - etlDemoListObject.precheckStatus20.errorMessage = precheckStatus20Node["ErrorMessage"].asString(); - auto allDetailNode = precheckStatus20Node["Detail"]["PrecheckDetail"]; - for (auto precheckStatus20NodeDetailPrecheckDetail : allDetailNode) - { - DtsJobStatus13::PrecheckStatus20::PrecheckDetail precheckDetailObject; - if(!precheckStatus20NodeDetailPrecheckDetail["CheckResult"].isNull()) - precheckDetailObject.checkResult = precheckStatus20NodeDetailPrecheckDetail["CheckResult"].asString(); - if(!precheckStatus20NodeDetailPrecheckDetail["CheckItemDescription"].isNull()) - precheckDetailObject.checkItemDescription = precheckStatus20NodeDetailPrecheckDetail["CheckItemDescription"].asString(); - if(!precheckStatus20NodeDetailPrecheckDetail["CheckItem"].isNull()) - precheckDetailObject.checkItem = precheckStatus20NodeDetailPrecheckDetail["CheckItem"].asString(); - if(!precheckStatus20NodeDetailPrecheckDetail["RepairMethod"].isNull()) - precheckDetailObject.repairMethod = precheckStatus20NodeDetailPrecheckDetail["RepairMethod"].asString(); - if(!precheckStatus20NodeDetailPrecheckDetail["FailedReason"].isNull()) - precheckDetailObject.failedReason = precheckStatus20NodeDetailPrecheckDetail["FailedReason"].asString(); - etlDemoListObject.precheckStatus20.detail.push_back(precheckDetailObject); - } - auto reverseJob21Node = value["ReverseJob"]; - if(!reverseJob21Node["Status"].isNull()) - etlDemoListObject.reverseJob21.status = reverseJob21Node["Status"].asString(); - if(!reverseJob21Node["DtsJobName"].isNull()) - etlDemoListObject.reverseJob21.dtsJobName = reverseJob21Node["DtsJobName"].asString(); - if(!reverseJob21Node["Delay"].isNull()) - etlDemoListObject.reverseJob21.delay = std::stol(reverseJob21Node["Delay"].asString()); - if(!reverseJob21Node["ErrorMessage"].isNull()) - etlDemoListObject.reverseJob21.errorMessage = reverseJob21Node["ErrorMessage"].asString(); - if(!reverseJob21Node["DtsJobId"].isNull()) - etlDemoListObject.reverseJob21.dtsJobId = reverseJob21Node["DtsJobId"].asString(); - if(!reverseJob21Node["ExpireTime"].isNull()) - etlDemoListObject.reverseJob21.expireTime = reverseJob21Node["ExpireTime"].asString(); - if(!reverseJob21Node["CreateTime"].isNull()) - etlDemoListObject.reverseJob21.createTime = reverseJob21Node["CreateTime"].asString(); - if(!reverseJob21Node["PayType"].isNull()) - etlDemoListObject.reverseJob21.payType = reverseJob21Node["PayType"].asString(); - if(!reverseJob21Node["Reserved"].isNull()) - etlDemoListObject.reverseJob21.reserved = reverseJob21Node["Reserved"].asString(); - if(!reverseJob21Node["DbObject"].isNull()) - etlDemoListObject.reverseJob21.dbObject = reverseJob21Node["DbObject"].asString(); - if(!reverseJob21Node["DtsJobClass"].isNull()) - etlDemoListObject.reverseJob21.dtsJobClass = reverseJob21Node["DtsJobClass"].asString(); - if(!reverseJob21Node["DtsInstanceID"].isNull()) - etlDemoListObject.reverseJob21.dtsInstanceID = reverseJob21Node["DtsInstanceID"].asString(); - if(!reverseJob21Node["DtsJobDirection"].isNull()) - etlDemoListObject.reverseJob21.dtsJobDirection = reverseJob21Node["DtsJobDirection"].asString(); - if(!reverseJob21Node["Checkpoint"].isNull()) - etlDemoListObject.reverseJob21.checkpoint = reverseJob21Node["Checkpoint"].asString(); - auto dataInitializationStatus26Node = reverseJob21Node["DataInitializationStatus"]; - if(!dataInitializationStatus26Node["Status"].isNull()) - etlDemoListObject.reverseJob21.dataInitializationStatus26.status = dataInitializationStatus26Node["Status"].asString(); - if(!dataInitializationStatus26Node["Percent"].isNull()) - etlDemoListObject.reverseJob21.dataInitializationStatus26.percent = dataInitializationStatus26Node["Percent"].asString(); - if(!dataInitializationStatus26Node["ErrorMessage"].isNull()) - etlDemoListObject.reverseJob21.dataInitializationStatus26.errorMessage = dataInitializationStatus26Node["ErrorMessage"].asString(); - if(!dataInitializationStatus26Node["Progress"].isNull()) - etlDemoListObject.reverseJob21.dataInitializationStatus26.progress = dataInitializationStatus26Node["Progress"].asString(); - auto dataSynchronizationStatus27Node = reverseJob21Node["DataSynchronizationStatus"]; - if(!dataSynchronizationStatus27Node["Status"].isNull()) - etlDemoListObject.reverseJob21.dataSynchronizationStatus27.status = dataSynchronizationStatus27Node["Status"].asString(); - if(!dataSynchronizationStatus27Node["NeedUpgrade"].isNull()) - etlDemoListObject.reverseJob21.dataSynchronizationStatus27.needUpgrade = dataSynchronizationStatus27Node["NeedUpgrade"].asString() == "true"; - if(!dataSynchronizationStatus27Node["Percent"].isNull()) - etlDemoListObject.reverseJob21.dataSynchronizationStatus27.percent = dataSynchronizationStatus27Node["Percent"].asString(); - if(!dataSynchronizationStatus27Node["Progress"].isNull()) - etlDemoListObject.reverseJob21.dataSynchronizationStatus27.progress = dataSynchronizationStatus27Node["Progress"].asString(); - if(!dataSynchronizationStatus27Node["ErrorMessage"].isNull()) - etlDemoListObject.reverseJob21.dataSynchronizationStatus27.errorMessage = dataSynchronizationStatus27Node["ErrorMessage"].asString(); - auto destinationEndpoint28Node = reverseJob21Node["DestinationEndpoint"]; - if(!destinationEndpoint28Node["SslSolutionEnum"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.sslSolutionEnum = destinationEndpoint28Node["SslSolutionEnum"].asString(); - if(!destinationEndpoint28Node["OracleSID"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.oracleSID = destinationEndpoint28Node["OracleSID"].asString(); - if(!destinationEndpoint28Node["Region"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.region = destinationEndpoint28Node["Region"].asString(); - if(!destinationEndpoint28Node["DatabaseName"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.databaseName = destinationEndpoint28Node["DatabaseName"].asString(); - if(!destinationEndpoint28Node["Ip"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.ip = destinationEndpoint28Node["Ip"].asString(); - if(!destinationEndpoint28Node["InstanceID"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.instanceID = destinationEndpoint28Node["InstanceID"].asString(); - if(!destinationEndpoint28Node["Port"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.port = destinationEndpoint28Node["Port"].asString(); - if(!destinationEndpoint28Node["InstanceType"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.instanceType = destinationEndpoint28Node["InstanceType"].asString(); - if(!destinationEndpoint28Node["UserName"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.userName = destinationEndpoint28Node["UserName"].asString(); - if(!destinationEndpoint28Node["EngineName"].isNull()) - etlDemoListObject.reverseJob21.destinationEndpoint28.engineName = destinationEndpoint28Node["EngineName"].asString(); - auto migrationMode29Node = reverseJob21Node["MigrationMode"]; - if(!migrationMode29Node["DataInitialization"].isNull()) - etlDemoListObject.reverseJob21.migrationMode29.dataInitialization = migrationMode29Node["DataInitialization"].asString() == "true"; - if(!migrationMode29Node["DataSynchronization"].isNull()) - etlDemoListObject.reverseJob21.migrationMode29.dataSynchronization = migrationMode29Node["DataSynchronization"].asString() == "true"; - if(!migrationMode29Node["StructureInitialization"].isNull()) - etlDemoListObject.reverseJob21.migrationMode29.structureInitialization = migrationMode29Node["StructureInitialization"].asString() == "true"; - auto performance30Node = reverseJob21Node["Performance"]; - if(!performance30Node["Rps"].isNull()) - etlDemoListObject.reverseJob21.performance30.rps = performance30Node["Rps"].asString(); - if(!performance30Node["Flow"].isNull()) - etlDemoListObject.reverseJob21.performance30.flow = performance30Node["Flow"].asString(); - auto precheckStatus31Node = reverseJob21Node["PrecheckStatus"]; - if(!precheckStatus31Node["Status"].isNull()) - etlDemoListObject.reverseJob21.precheckStatus31.status = precheckStatus31Node["Status"].asString(); - if(!precheckStatus31Node["Percent"].isNull()) - etlDemoListObject.reverseJob21.precheckStatus31.percent = precheckStatus31Node["Percent"].asString(); - if(!precheckStatus31Node["ErrorMessage"].isNull()) - etlDemoListObject.reverseJob21.precheckStatus31.errorMessage = precheckStatus31Node["ErrorMessage"].asString(); - auto allDetail34Node = precheckStatus31Node["Detail"]["PrecheckDetail"]; - for (auto precheckStatus31NodeDetailPrecheckDetail : allDetail34Node) - { - DtsJobStatus13::ReverseJob21::PrecheckStatus31::PrecheckDetail35 precheckDetail35Object; - if(!precheckStatus31NodeDetailPrecheckDetail["CheckResult"].isNull()) - precheckDetail35Object.checkResult = precheckStatus31NodeDetailPrecheckDetail["CheckResult"].asString(); - if(!precheckStatus31NodeDetailPrecheckDetail["CheckItemDescription"].isNull()) - precheckDetail35Object.checkItemDescription = precheckStatus31NodeDetailPrecheckDetail["CheckItemDescription"].asString(); - if(!precheckStatus31NodeDetailPrecheckDetail["CheckItem"].isNull()) - precheckDetail35Object.checkItem = precheckStatus31NodeDetailPrecheckDetail["CheckItem"].asString(); - if(!precheckStatus31NodeDetailPrecheckDetail["RepairMethod"].isNull()) - precheckDetail35Object.repairMethod = precheckStatus31NodeDetailPrecheckDetail["RepairMethod"].asString(); - if(!precheckStatus31NodeDetailPrecheckDetail["FailedReason"].isNull()) - precheckDetail35Object.failedReason = precheckStatus31NodeDetailPrecheckDetail["FailedReason"].asString(); - etlDemoListObject.reverseJob21.precheckStatus31.detail34.push_back(precheckDetail35Object); - } - auto sourceEndpoint32Node = reverseJob21Node["SourceEndpoint"]; - if(!sourceEndpoint32Node["SslSolutionEnum"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.sslSolutionEnum = sourceEndpoint32Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint32Node["OracleSID"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.oracleSID = sourceEndpoint32Node["OracleSID"].asString(); - if(!sourceEndpoint32Node["Region"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.region = sourceEndpoint32Node["Region"].asString(); - if(!sourceEndpoint32Node["DatabaseName"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.databaseName = sourceEndpoint32Node["DatabaseName"].asString(); - if(!sourceEndpoint32Node["Ip"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.ip = sourceEndpoint32Node["Ip"].asString(); - if(!sourceEndpoint32Node["InstanceID"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.instanceID = sourceEndpoint32Node["InstanceID"].asString(); - if(!sourceEndpoint32Node["Port"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.port = sourceEndpoint32Node["Port"].asString(); - if(!sourceEndpoint32Node["InstanceType"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.instanceType = sourceEndpoint32Node["InstanceType"].asString(); - if(!sourceEndpoint32Node["UserName"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.userName = sourceEndpoint32Node["UserName"].asString(); - if(!sourceEndpoint32Node["EngineName"].isNull()) - etlDemoListObject.reverseJob21.sourceEndpoint32.engineName = sourceEndpoint32Node["EngineName"].asString(); - auto structureInitializationStatus33Node = reverseJob21Node["StructureInitializationStatus"]; - if(!structureInitializationStatus33Node["Status"].isNull()) - etlDemoListObject.reverseJob21.structureInitializationStatus33.status = structureInitializationStatus33Node["Status"].asString(); - if(!structureInitializationStatus33Node["Percent"].isNull()) - etlDemoListObject.reverseJob21.structureInitializationStatus33.percent = structureInitializationStatus33Node["Percent"].asString(); - if(!structureInitializationStatus33Node["ErrorMessage"].isNull()) - etlDemoListObject.reverseJob21.structureInitializationStatus33.errorMessage = structureInitializationStatus33Node["ErrorMessage"].asString(); - if(!structureInitializationStatus33Node["Progress"].isNull()) - etlDemoListObject.reverseJob21.structureInitializationStatus33.progress = structureInitializationStatus33Node["Progress"].asString(); - auto sourceEndpoint22Node = value["SourceEndpoint"]; - if(!sourceEndpoint22Node["SslSolutionEnum"].isNull()) - etlDemoListObject.sourceEndpoint22.sslSolutionEnum = sourceEndpoint22Node["SslSolutionEnum"].asString(); - if(!sourceEndpoint22Node["OracleSID"].isNull()) - etlDemoListObject.sourceEndpoint22.oracleSID = sourceEndpoint22Node["OracleSID"].asString(); - if(!sourceEndpoint22Node["Region"].isNull()) - etlDemoListObject.sourceEndpoint22.region = sourceEndpoint22Node["Region"].asString(); - if(!sourceEndpoint22Node["DatabaseName"].isNull()) - etlDemoListObject.sourceEndpoint22.databaseName = sourceEndpoint22Node["DatabaseName"].asString(); - if(!sourceEndpoint22Node["Ip"].isNull()) - etlDemoListObject.sourceEndpoint22.ip = sourceEndpoint22Node["Ip"].asString(); - if(!sourceEndpoint22Node["InstanceID"].isNull()) - etlDemoListObject.sourceEndpoint22.instanceID = sourceEndpoint22Node["InstanceID"].asString(); - if(!sourceEndpoint22Node["Port"].isNull()) - etlDemoListObject.sourceEndpoint22.port = sourceEndpoint22Node["Port"].asString(); - if(!sourceEndpoint22Node["InstanceType"].isNull()) - etlDemoListObject.sourceEndpoint22.instanceType = sourceEndpoint22Node["InstanceType"].asString(); - if(!sourceEndpoint22Node["UserName"].isNull()) - etlDemoListObject.sourceEndpoint22.userName = sourceEndpoint22Node["UserName"].asString(); - if(!sourceEndpoint22Node["EngineName"].isNull()) - etlDemoListObject.sourceEndpoint22.engineName = sourceEndpoint22Node["EngineName"].asString(); - auto structureInitializationStatus23Node = value["StructureInitializationStatus"]; - if(!structureInitializationStatus23Node["Status"].isNull()) - etlDemoListObject.structureInitializationStatus23.status = structureInitializationStatus23Node["Status"].asString(); - if(!structureInitializationStatus23Node["Percent"].isNull()) - etlDemoListObject.structureInitializationStatus23.percent = structureInitializationStatus23Node["Percent"].asString(); - if(!structureInitializationStatus23Node["ErrorMessage"].isNull()) - etlDemoListObject.structureInitializationStatus23.errorMessage = structureInitializationStatus23Node["ErrorMessage"].asString(); - if(!structureInitializationStatus23Node["Progress"].isNull()) - etlDemoListObject.structureInitializationStatus23.progress = structureInitializationStatus23Node["Progress"].asString(); - auto retryState24Node = value["RetryState"]; - if(!retryState24Node["RetryCount"].isNull()) - etlDemoListObject.retryState24.retryCount = std::stoi(retryState24Node["RetryCount"].asString()); - if(!retryState24Node["MaxRetryTime"].isNull()) - etlDemoListObject.retryState24.maxRetryTime = std::stoi(retryState24Node["MaxRetryTime"].asString()); - if(!retryState24Node["ErrMessage"].isNull()) - etlDemoListObject.retryState24.errMessage = retryState24Node["ErrMessage"].asString(); - if(!retryState24Node["RetryTarget"].isNull()) - etlDemoListObject.retryState24.retryTarget = retryState24Node["RetryTarget"].asString(); - if(!retryState24Node["RetryTime"].isNull()) - etlDemoListObject.retryState24.retryTime = std::stoi(retryState24Node["RetryTime"].asString()); - if(!retryState24Node["Module"].isNull()) - etlDemoListObject.retryState24.module = retryState24Node["Module"].asString(); - if(!retryState24Node["JobId"].isNull()) - etlDemoListObject.retryState24.jobId = retryState24Node["JobId"].asString(); - if(!retryState24Node["Retrying"].isNull()) - etlDemoListObject.retryState24.retrying = retryState24Node["Retrying"].asString() == "true"; - etlDemoList_.push_back(etlDemoListObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int DescribeDtsJobsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -std::vector DescribeDtsJobsResult::getDtsJobList()const -{ - return dtsJobList_; -} - -int DescribeDtsJobsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeDtsJobsResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeDtsJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeDtsJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeDtsJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDtsJobsResult::getErrMessage()const -{ - return errMessage_; -} - -std::vector DescribeDtsJobsResult::getEtlDemoList()const -{ - return etlDemoList_; -} - -bool DescribeDtsJobsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDtsJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeDtsServiceLogRequest.cc b/dts/src/model/DescribeDtsServiceLogRequest.cc deleted file mode 100644 index 664b25c15..000000000 --- a/dts/src/model/DescribeDtsServiceLogRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeDtsServiceLogRequest; - -DescribeDtsServiceLogRequest::DescribeDtsServiceLogRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeDtsServiceLog") { - setMethod(HttpRequest::Method::Post); -} - -DescribeDtsServiceLogRequest::~DescribeDtsServiceLogRequest() {} - -long DescribeDtsServiceLogRequest::getStartTime() const { - return startTime_; -} - -void DescribeDtsServiceLogRequest::setStartTime(long startTime) { - startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); -} - -int DescribeDtsServiceLogRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeDtsServiceLogRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeDtsServiceLogRequest::getRegionId() const { - return regionId_; -} - -void DescribeDtsServiceLogRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeDtsServiceLogRequest::getPageSize() const { - return pageSize_; -} - -void DescribeDtsServiceLogRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeDtsServiceLogRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeDtsServiceLogRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeDtsServiceLogRequest::getKeyword() const { - return keyword_; -} - -void DescribeDtsServiceLogRequest::setKeyword(const std::string &keyword) { - keyword_ = keyword; - setParameter(std::string("Keyword"), keyword); -} - -std::string DescribeDtsServiceLogRequest::getSubJobType() const { - return subJobType_; -} - -void DescribeDtsServiceLogRequest::setSubJobType(const std::string &subJobType) { - subJobType_ = subJobType; - setParameter(std::string("SubJobType"), subJobType); -} - -long DescribeDtsServiceLogRequest::getEndTime() const { - return endTime_; -} - -void DescribeDtsServiceLogRequest::setEndTime(long endTime) { - endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string DescribeDtsServiceLogRequest::getStatus() const { - return status_; -} - -void DescribeDtsServiceLogRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - diff --git a/dts/src/model/DescribeDtsServiceLogResult.cc b/dts/src/model/DescribeDtsServiceLogResult.cc deleted file mode 100644 index 361637174..000000000 --- a/dts/src/model/DescribeDtsServiceLogResult.cc +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeDtsServiceLogResult::DescribeDtsServiceLogResult() : - ServiceResult() -{} - -DescribeDtsServiceLogResult::DescribeDtsServiceLogResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeDtsServiceLogResult::~DescribeDtsServiceLogResult() -{} - -void DescribeDtsServiceLogResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allServiceLogContextsNode = value["ServiceLogContexts"]["ServiceLogContext"]; - for (auto valueServiceLogContextsServiceLogContext : allServiceLogContextsNode) - { - ServiceLogContext serviceLogContextsObject; - if(!valueServiceLogContextsServiceLogContext["Context"].isNull()) - serviceLogContextsObject.context = valueServiceLogContextsServiceLogContext["Context"].asString(); - if(!valueServiceLogContextsServiceLogContext["Time"].isNull()) - serviceLogContextsObject.time = valueServiceLogContextsServiceLogContext["Time"].asString(); - if(!valueServiceLogContextsServiceLogContext["State"].isNull()) - serviceLogContextsObject.state = valueServiceLogContextsServiceLogContext["State"].asString(); - serviceLogContexts_.push_back(serviceLogContextsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -long DescribeDtsServiceLogResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -std::vector DescribeDtsServiceLogResult::getServiceLogContexts()const -{ - return serviceLogContexts_; -} - -int DescribeDtsServiceLogResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeDtsServiceLogResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeDtsServiceLogResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeDtsServiceLogResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeDtsServiceLogResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeDtsServiceLogResult::getErrMessage()const -{ - return errMessage_; -} - -bool DescribeDtsServiceLogResult::getSuccess()const -{ - return success_; -} - -std::string DescribeDtsServiceLogResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeEndpointSwitchStatusRequest.cc b/dts/src/model/DescribeEndpointSwitchStatusRequest.cc index c484ed634..62ef4cc66 100644 --- a/dts/src/model/DescribeEndpointSwitchStatusRequest.cc +++ b/dts/src/model/DescribeEndpointSwitchStatusRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DescribeEndpointSwitchStatusRequest; DescribeEndpointSwitchStatusRequest::DescribeEndpointSwitchStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeEndpointSwitchStatus") { + : RpcServiceRequest("dts", "2019-09-01", "DescribeEndpointSwitchStatus") { setMethod(HttpRequest::Method::Post); } @@ -43,33 +43,6 @@ void DescribeEndpointSwitchStatusRequest::setOwnerId(const std::string &ownerId) setParameter(std::string("OwnerId"), ownerId); } -std::string DescribeEndpointSwitchStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeEndpointSwitchStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeEndpointSwitchStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeEndpointSwitchStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeEndpointSwitchStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeEndpointSwitchStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string DescribeEndpointSwitchStatusRequest::getTaskId() const { return taskId_; } diff --git a/dts/src/model/DescribeEndpointSwitchStatusResult.cc b/dts/src/model/DescribeEndpointSwitchStatusResult.cc index ad26f92ac..131c3caa8 100644 --- a/dts/src/model/DescribeEndpointSwitchStatusResult.cc +++ b/dts/src/model/DescribeEndpointSwitchStatusResult.cc @@ -43,12 +43,6 @@ void DescribeEndpointSwitchStatusResult::parse(const std::string &payload) status_ = value["Status"].asString(); if(!value["ErrorMessage"].isNull()) errorMessage_ = value["ErrorMessage"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); } @@ -62,18 +56,3 @@ std::string DescribeEndpointSwitchStatusResult::getErrorMessage()const return errorMessage_; } -std::string DescribeEndpointSwitchStatusResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeEndpointSwitchStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeEndpointSwitchStatusResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeEtlJobLogsRequest.cc b/dts/src/model/DescribeEtlJobLogsRequest.cc deleted file mode 100644 index 1155a5100..000000000 --- a/dts/src/model/DescribeEtlJobLogsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeEtlJobLogsRequest; - -DescribeEtlJobLogsRequest::DescribeEtlJobLogsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeEtlJobLogs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeEtlJobLogsRequest::~DescribeEtlJobLogsRequest() {} - -std::string DescribeEtlJobLogsRequest::getRegionId() const { - return regionId_; -} - -void DescribeEtlJobLogsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeEtlJobLogsRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeEtlJobLogsRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - diff --git a/dts/src/model/DescribeEtlJobLogsResult.cc b/dts/src/model/DescribeEtlJobLogsResult.cc deleted file mode 100644 index c27944ec9..000000000 --- a/dts/src/model/DescribeEtlJobLogsResult.cc +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeEtlJobLogsResult::DescribeEtlJobLogsResult() : - ServiceResult() -{} - -DescribeEtlJobLogsResult::DescribeEtlJobLogsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeEtlJobLogsResult::~DescribeEtlJobLogsResult() -{} - -void DescribeEtlJobLogsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allEtlRunningLogsNode = value["EtlRunningLogs"]["EtlRunningLog"]; - for (auto valueEtlRunningLogsEtlRunningLog : allEtlRunningLogsNode) - { - EtlRunningLog etlRunningLogsObject; - if(!valueEtlRunningLogsEtlRunningLog["EtlId"].isNull()) - etlRunningLogsObject.etlId = valueEtlRunningLogsEtlRunningLog["EtlId"].asString(); - if(!valueEtlRunningLogsEtlRunningLog["UserId"].isNull()) - etlRunningLogsObject.userId = valueEtlRunningLogsEtlRunningLog["UserId"].asString(); - if(!valueEtlRunningLogsEtlRunningLog["ContentKey"].isNull()) - etlRunningLogsObject.contentKey = valueEtlRunningLogsEtlRunningLog["ContentKey"].asString(); - if(!valueEtlRunningLogsEtlRunningLog["Content"].isNull()) - etlRunningLogsObject.content = valueEtlRunningLogsEtlRunningLog["Content"].asString(); - if(!valueEtlRunningLogsEtlRunningLog["Status"].isNull()) - etlRunningLogsObject.status = valueEtlRunningLogsEtlRunningLog["Status"].asString(); - if(!valueEtlRunningLogsEtlRunningLog["LogDatetime"].isNull()) - etlRunningLogsObject.logDatetime = valueEtlRunningLogsEtlRunningLog["LogDatetime"].asString(); - etlRunningLogs_.push_back(etlRunningLogsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -std::vector DescribeEtlJobLogsResult::getEtlRunningLogs()const -{ - return etlRunningLogs_; -} - -int DescribeEtlJobLogsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeEtlJobLogsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string DescribeEtlJobLogsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeEtlJobLogsResult::getErrMessage()const -{ - return errMessage_; -} - -bool DescribeEtlJobLogsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeEtlJobLogsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeInitializationStatusRequest.cc b/dts/src/model/DescribeInitializationStatusRequest.cc deleted file mode 100644 index 649e170c1..000000000 --- a/dts/src/model/DescribeInitializationStatusRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeInitializationStatusRequest; - -DescribeInitializationStatusRequest::DescribeInitializationStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeInitializationStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribeInitializationStatusRequest::~DescribeInitializationStatusRequest() {} - -int DescribeInitializationStatusRequest::getPageNum() const { - return pageNum_; -} - -void DescribeInitializationStatusRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string DescribeInitializationStatusRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeInitializationStatusRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeInitializationStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeInitializationStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeInitializationStatusRequest::getSynchronizationJobId() const { - return synchronizationJobId_; -} - -void DescribeInitializationStatusRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { - synchronizationJobId_ = synchronizationJobId; - setParameter(std::string("SynchronizationJobId"), synchronizationJobId); -} - -std::string DescribeInitializationStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeInitializationStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeInitializationStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeInitializationStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeInitializationStatusRequest::getPageSize() const { - return pageSize_; -} - -void DescribeInitializationStatusRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - diff --git a/dts/src/model/DescribeInitializationStatusResult.cc b/dts/src/model/DescribeInitializationStatusResult.cc deleted file mode 100644 index 36e3a25b0..000000000 --- a/dts/src/model/DescribeInitializationStatusResult.cc +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeInitializationStatusResult::DescribeInitializationStatusResult() : - ServiceResult() -{} - -DescribeInitializationStatusResult::DescribeInitializationStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeInitializationStatusResult::~DescribeInitializationStatusResult() -{} - -void DescribeInitializationStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataInitializationDetailsNode = value["DataInitializationDetails"]["DataInitializationDetail"]; - for (auto valueDataInitializationDetailsDataInitializationDetail : allDataInitializationDetailsNode) - { - DataInitializationDetail dataInitializationDetailsObject; - if(!valueDataInitializationDetailsDataInitializationDetail["SourceOwnerDBName"].isNull()) - dataInitializationDetailsObject.sourceOwnerDBName = valueDataInitializationDetailsDataInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["Status"].isNull()) - dataInitializationDetailsObject.status = valueDataInitializationDetailsDataInitializationDetail["Status"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["UsedTime"].isNull()) - dataInitializationDetailsObject.usedTime = valueDataInitializationDetailsDataInitializationDetail["UsedTime"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["TableName"].isNull()) - dataInitializationDetailsObject.tableName = valueDataInitializationDetailsDataInitializationDetail["TableName"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["ErrorMessage"].isNull()) - dataInitializationDetailsObject.errorMessage = valueDataInitializationDetailsDataInitializationDetail["ErrorMessage"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["FinishRowNum"].isNull()) - dataInitializationDetailsObject.finishRowNum = valueDataInitializationDetailsDataInitializationDetail["FinishRowNum"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["DestinationOwnerDBName"].isNull()) - dataInitializationDetailsObject.destinationOwnerDBName = valueDataInitializationDetailsDataInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueDataInitializationDetailsDataInitializationDetail["TotalRowNum"].isNull()) - dataInitializationDetailsObject.totalRowNum = valueDataInitializationDetailsDataInitializationDetail["TotalRowNum"].asString(); - dataInitializationDetails_.push_back(dataInitializationDetailsObject); - } - auto allDataSynchronizationDetailsNode = value["DataSynchronizationDetails"]["DataSynchronizationDetail"]; - for (auto valueDataSynchronizationDetailsDataSynchronizationDetail : allDataSynchronizationDetailsNode) - { - DataSynchronizationDetail dataSynchronizationDetailsObject; - if(!valueDataSynchronizationDetailsDataSynchronizationDetail["Status"].isNull()) - dataSynchronizationDetailsObject.status = valueDataSynchronizationDetailsDataSynchronizationDetail["Status"].asString(); - if(!valueDataSynchronizationDetailsDataSynchronizationDetail["SourceOwnerDBName"].isNull()) - dataSynchronizationDetailsObject.sourceOwnerDBName = valueDataSynchronizationDetailsDataSynchronizationDetail["SourceOwnerDBName"].asString(); - if(!valueDataSynchronizationDetailsDataSynchronizationDetail["TableName"].isNull()) - dataSynchronizationDetailsObject.tableName = valueDataSynchronizationDetailsDataSynchronizationDetail["TableName"].asString(); - if(!valueDataSynchronizationDetailsDataSynchronizationDetail["ErrorMessage"].isNull()) - dataSynchronizationDetailsObject.errorMessage = valueDataSynchronizationDetailsDataSynchronizationDetail["ErrorMessage"].asString(); - if(!valueDataSynchronizationDetailsDataSynchronizationDetail["DestinationOwnerDBName"].isNull()) - dataSynchronizationDetailsObject.destinationOwnerDBName = valueDataSynchronizationDetailsDataSynchronizationDetail["DestinationOwnerDBName"].asString(); - dataSynchronizationDetails_.push_back(dataSynchronizationDetailsObject); - } - auto allStructureInitializationDetailsNode = value["StructureInitializationDetails"]["StructureInitializationDetail"]; - for (auto valueStructureInitializationDetailsStructureInitializationDetail : allStructureInitializationDetailsNode) - { - StructureInitializationDetail structureInitializationDetailsObject; - if(!valueStructureInitializationDetailsStructureInitializationDetail["Status"].isNull()) - structureInitializationDetailsObject.status = valueStructureInitializationDetailsStructureInitializationDetail["Status"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["SourceOwnerDBName"].isNull()) - structureInitializationDetailsObject.sourceOwnerDBName = valueStructureInitializationDetailsStructureInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["ObjectDefinition"].isNull()) - structureInitializationDetailsObject.objectDefinition = valueStructureInitializationDetailsStructureInitializationDetail["ObjectDefinition"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["ObjectType"].isNull()) - structureInitializationDetailsObject.objectType = valueStructureInitializationDetailsStructureInitializationDetail["ObjectType"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["ErrorMessage"].isNull()) - structureInitializationDetailsObject.errorMessage = valueStructureInitializationDetailsStructureInitializationDetail["ErrorMessage"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["DestinationOwnerDBName"].isNull()) - structureInitializationDetailsObject.destinationOwnerDBName = valueStructureInitializationDetailsStructureInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetail["ObjectName"].isNull()) - structureInitializationDetailsObject.objectName = valueStructureInitializationDetailsStructureInitializationDetail["ObjectName"].asString(); - auto allConstraintsNode = valueStructureInitializationDetailsStructureInitializationDetail["Constraints"]["StructureInitializationDetail"]; - for (auto valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail : allConstraintsNode) - { - StructureInitializationDetail::StructureInitializationDetail1 constraintsObject; - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["Status"].isNull()) - constraintsObject.status = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["Status"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["SourceOwnerDBName"].isNull()) - constraintsObject.sourceOwnerDBName = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectDefinition"].isNull()) - constraintsObject.objectDefinition = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectDefinition"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectType"].isNull()) - constraintsObject.objectType = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectType"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ErrorMessage"].isNull()) - constraintsObject.errorMessage = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ErrorMessage"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["DestinationOwnerDBName"].isNull()) - constraintsObject.destinationOwnerDBName = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectName"].isNull()) - constraintsObject.objectName = valueStructureInitializationDetailsStructureInitializationDetailConstraintsStructureInitializationDetail["ObjectName"].asString(); - structureInitializationDetailsObject.constraints.push_back(constraintsObject); - } - structureInitializationDetails_.push_back(structureInitializationDetailsObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::vector DescribeInitializationStatusResult::getStructureInitializationDetails()const -{ - return structureInitializationDetails_; -} - -std::vector DescribeInitializationStatusResult::getDataInitializationDetails()const -{ - return dataInitializationDetails_; -} - -std::string DescribeInitializationStatusResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeInitializationStatusResult::getSuccess()const -{ - return success_; -} - -std::vector DescribeInitializationStatusResult::getDataSynchronizationDetails()const -{ - return dataSynchronizationDetails_; -} - -std::string DescribeInitializationStatusResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeJobMonitorRuleRequest.cc b/dts/src/model/DescribeJobMonitorRuleRequest.cc deleted file mode 100644 index 1537f0f5d..000000000 --- a/dts/src/model/DescribeJobMonitorRuleRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeJobMonitorRuleRequest; - -DescribeJobMonitorRuleRequest::DescribeJobMonitorRuleRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeJobMonitorRule") { - setMethod(HttpRequest::Method::Post); -} - -DescribeJobMonitorRuleRequest::~DescribeJobMonitorRuleRequest() {} - -std::string DescribeJobMonitorRuleRequest::getRegionId() const { - return regionId_; -} - -void DescribeJobMonitorRuleRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeJobMonitorRuleRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeJobMonitorRuleRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - diff --git a/dts/src/model/DescribeJobMonitorRuleResult.cc b/dts/src/model/DescribeJobMonitorRuleResult.cc deleted file mode 100644 index 4c61c0938..000000000 --- a/dts/src/model/DescribeJobMonitorRuleResult.cc +++ /dev/null @@ -1,130 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeJobMonitorRuleResult::DescribeJobMonitorRuleResult() : - ServiceResult() -{} - -DescribeJobMonitorRuleResult::DescribeJobMonitorRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeJobMonitorRuleResult::~DescribeJobMonitorRuleResult() -{} - -void DescribeJobMonitorRuleResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allMonitorRulesNode = value["MonitorRules"]["MonitorRule"]; - for (auto valueMonitorRulesMonitorRule : allMonitorRulesNode) - { - MonitorRule monitorRulesObject; - if(!valueMonitorRulesMonitorRule["Type"].isNull()) - monitorRulesObject.type = valueMonitorRulesMonitorRule["Type"].asString(); - if(!valueMonitorRulesMonitorRule["DelayRuleTime"].isNull()) - monitorRulesObject.delayRuleTime = std::stol(valueMonitorRulesMonitorRule["DelayRuleTime"].asString()); - if(!valueMonitorRulesMonitorRule["State"].isNull()) - monitorRulesObject.state = valueMonitorRulesMonitorRule["State"].asString(); - if(!valueMonitorRulesMonitorRule["Phone"].isNull()) - monitorRulesObject.phone = valueMonitorRulesMonitorRule["Phone"].asString(); - if(!valueMonitorRulesMonitorRule["JobType"].isNull()) - monitorRulesObject.jobType = valueMonitorRulesMonitorRule["JobType"].asString(); - if(!valueMonitorRulesMonitorRule["Period"].isNull()) - monitorRulesObject.period = std::stoi(valueMonitorRulesMonitorRule["Period"].asString()); - if(!valueMonitorRulesMonitorRule["Times"].isNull()) - monitorRulesObject.times = std::stoi(valueMonitorRulesMonitorRule["Times"].asString()); - if(!valueMonitorRulesMonitorRule["NoticeValue"].isNull()) - monitorRulesObject.noticeValue = std::stoi(valueMonitorRulesMonitorRule["NoticeValue"].asString()); - if(!valueMonitorRulesMonitorRule["JobId"].isNull()) - monitorRulesObject.jobId = valueMonitorRulesMonitorRule["JobId"].asString(); - monitorRules_.push_back(monitorRulesObject); - } - auto allTopics = value["Topics"]["Topics"]; - for (const auto &item : allTopics) - topics_.push_back(item.asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - -} - -std::vector DescribeJobMonitorRuleResult::getTopics()const -{ - return topics_; -} - -std::string DescribeJobMonitorRuleResult::getDtsJobId()const -{ - return dtsJobId_; -} - -int DescribeJobMonitorRuleResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::vector DescribeJobMonitorRuleResult::getMonitorRules()const -{ - return monitorRules_; -} - -std::string DescribeJobMonitorRuleResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeJobMonitorRuleResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeJobMonitorRuleResult::getCode()const -{ - return code_; -} - -bool DescribeJobMonitorRuleResult::getSuccess()const -{ - return success_; -} - -std::string DescribeJobMonitorRuleResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeMetricListRequest.cc b/dts/src/model/DescribeMetricListRequest.cc deleted file mode 100644 index 06cb50265..000000000 --- a/dts/src/model/DescribeMetricListRequest.cc +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeMetricListRequest; - -DescribeMetricListRequest::DescribeMetricListRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeMetricList") { - setMethod(HttpRequest::Method::Post); -} - -DescribeMetricListRequest::~DescribeMetricListRequest() {} - -std::string DescribeMetricListRequest::getMetricType() const { - return metricType_; -} - -void DescribeMetricListRequest::setMetricType(const std::string &metricType) { - metricType_ = metricType; - setBodyParameter(std::string("MetricType"), metricType); -} - -std::string DescribeMetricListRequest::getClientToken() const { - return clientToken_; -} - -void DescribeMetricListRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setBodyParameter(std::string("ClientToken"), clientToken); -} - -long DescribeMetricListRequest::getStartTime() const { - return startTime_; -} - -void DescribeMetricListRequest::setStartTime(long startTime) { - startTime_ = startTime; - setBodyParameter(std::string("StartTime"), std::to_string(startTime)); -} - -std::string DescribeMetricListRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeMetricListRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setBodyParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeMetricListRequest::getAccountId() const { - return accountId_; -} - -void DescribeMetricListRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setBodyParameter(std::string("AccountId"), accountId); -} - -std::string DescribeMetricListRequest::getParam() const { - return param_; -} - -void DescribeMetricListRequest::setParam(const std::string ¶m) { - param_ = param; - setBodyParameter(std::string("Param"), param); -} - -std::string DescribeMetricListRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribeMetricListRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setBodyParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribeMetricListRequest::getMetricName() const { - return metricName_; -} - -void DescribeMetricListRequest::setMetricName(const std::string &metricName) { - metricName_ = metricName; - setBodyParameter(std::string("MetricName"), metricName); -} - -long DescribeMetricListRequest::getPeriod() const { - return period_; -} - -void DescribeMetricListRequest::setPeriod(long period) { - period_ = period; - setBodyParameter(std::string("Period"), std::to_string(period)); -} - -long DescribeMetricListRequest::getEndTime() const { - return endTime_; -} - -void DescribeMetricListRequest::setEndTime(long endTime) { - endTime_ = endTime; - setBodyParameter(std::string("EndTime"), std::to_string(endTime)); -} - -std::string DescribeMetricListRequest::getEnv() const { - return env_; -} - -void DescribeMetricListRequest::setEnv(const std::string &env) { - env_ = env; - setBodyParameter(std::string("Env"), env); -} - -std::string DescribeMetricListRequest::getOwnerID() const { - return ownerID_; -} - -void DescribeMetricListRequest::setOwnerID(const std::string &ownerID) { - ownerID_ = ownerID; - setBodyParameter(std::string("OwnerID"), ownerID); -} - diff --git a/dts/src/model/DescribeMetricListResult.cc b/dts/src/model/DescribeMetricListResult.cc deleted file mode 100644 index a566ef728..000000000 --- a/dts/src/model/DescribeMetricListResult.cc +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeMetricListResult::DescribeMetricListResult() : - ServiceResult() -{} - -DescribeMetricListResult::DescribeMetricListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMetricListResult::~DescribeMetricListResult() -{} - -void DescribeMetricListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataPointsNode = value["DataPoints"]["DataPoint"]; - for (auto valueDataPointsDataPoint : allDataPointsNode) - { - DataPoint dataPointsObject; - if(!valueDataPointsDataPoint["Timestamp"].isNull()) - dataPointsObject.timestamp = std::stol(valueDataPointsDataPoint["Timestamp"].asString()); - if(!valueDataPointsDataPoint["Statistics"].isNull()) - dataPointsObject.statistics = std::stof(valueDataPointsDataPoint["Statistics"].asString()); - dataPoints_.push_back(dataPointsObject); - } - if(!value["MetricType"].isNull()) - metricType_ = value["MetricType"].asString(); - if(!value["Param"].isNull()) - param_ = value["Param"].asString(); - if(!value["MetricName"].isNull()) - metricName_ = value["MetricName"].asString(); - if(!value["Period"].isNull()) - period_ = std::stol(value["Period"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - -std::string DescribeMetricListResult::getMetricName()const -{ - return metricName_; -} - -std::string DescribeMetricListResult::getMetricType()const -{ - return metricType_; -} - -std::string DescribeMetricListResult::getParam()const -{ - return param_; -} - -int DescribeMetricListResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -long DescribeMetricListResult::getPeriod()const -{ - return period_; -} - -std::vector DescribeMetricListResult::getDataPoints()const -{ - return dataPoints_; -} - -std::string DescribeMetricListResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string DescribeMetricListResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeMetricListResult::getCode()const -{ - return code_; -} - -bool DescribeMetricListResult::getSuccess()const -{ - return success_; -} - -std::string DescribeMetricListResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeMigrationJobAlertRequest.cc b/dts/src/model/DescribeMigrationJobAlertRequest.cc deleted file mode 100644 index 8b89a775d..000000000 --- a/dts/src/model/DescribeMigrationJobAlertRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeMigrationJobAlertRequest; - -DescribeMigrationJobAlertRequest::DescribeMigrationJobAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeMigrationJobAlert") { - setMethod(HttpRequest::Method::Post); -} - -DescribeMigrationJobAlertRequest::~DescribeMigrationJobAlertRequest() {} - -std::string DescribeMigrationJobAlertRequest::getClientToken() const { - return clientToken_; -} - -void DescribeMigrationJobAlertRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeMigrationJobAlertRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void DescribeMigrationJobAlertRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string DescribeMigrationJobAlertRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeMigrationJobAlertRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeMigrationJobAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeMigrationJobAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeMigrationJobAlertRequest::getAccountId() const { - return accountId_; -} - -void DescribeMigrationJobAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeMigrationJobAlertRequest::getRegionId() const { - return regionId_; -} - -void DescribeMigrationJobAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeMigrationJobAlertResult.cc b/dts/src/model/DescribeMigrationJobAlertResult.cc deleted file mode 100644 index 7f81825ac..000000000 --- a/dts/src/model/DescribeMigrationJobAlertResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeMigrationJobAlertResult::DescribeMigrationJobAlertResult() : - ServiceResult() -{} - -DescribeMigrationJobAlertResult::DescribeMigrationJobAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrationJobAlertResult::~DescribeMigrationJobAlertResult() -{} - -void DescribeMigrationJobAlertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["MigrationJobName"].isNull()) - migrationJobName_ = value["MigrationJobName"].asString(); - if(!value["ErrorAlertStatus"].isNull()) - errorAlertStatus_ = value["ErrorAlertStatus"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrorAlertPhone"].isNull()) - errorAlertPhone_ = value["ErrorAlertPhone"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DelayAlertStatus"].isNull()) - delayAlertStatus_ = value["DelayAlertStatus"].asString(); - if(!value["DelayAlertPhone"].isNull()) - delayAlertPhone_ = value["DelayAlertPhone"].asString(); - if(!value["MigrationJobId"].isNull()) - migrationJobId_ = value["MigrationJobId"].asString(); - if(!value["DelayOverSeconds"].isNull()) - delayOverSeconds_ = value["DelayOverSeconds"].asString(); - -} - -std::string DescribeMigrationJobAlertResult::getErrorAlertPhone()const -{ - return errorAlertPhone_; -} - -std::string DescribeMigrationJobAlertResult::getDelayAlertPhone()const -{ - return delayAlertPhone_; -} - -std::string DescribeMigrationJobAlertResult::getMigrationJobName()const -{ - return migrationJobName_; -} - -std::string DescribeMigrationJobAlertResult::getErrorAlertStatus()const -{ - return errorAlertStatus_; -} - -std::string DescribeMigrationJobAlertResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeMigrationJobAlertResult::getDelayAlertStatus()const -{ - return delayAlertStatus_; -} - -std::string DescribeMigrationJobAlertResult::getSuccess()const -{ - return success_; -} - -std::string DescribeMigrationJobAlertResult::getDelayOverSeconds()const -{ - return delayOverSeconds_; -} - -std::string DescribeMigrationJobAlertResult::getErrCode()const -{ - return errCode_; -} - -std::string DescribeMigrationJobAlertResult::getMigrationJobId()const -{ - return migrationJobId_; -} - diff --git a/dts/src/model/DescribeMigrationJobDetailRequest.cc b/dts/src/model/DescribeMigrationJobDetailRequest.cc deleted file mode 100644 index 095827308..000000000 --- a/dts/src/model/DescribeMigrationJobDetailRequest.cc +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeMigrationJobDetailRequest; - -DescribeMigrationJobDetailRequest::DescribeMigrationJobDetailRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeMigrationJobDetail") { - setMethod(HttpRequest::Method::Post); -} - -DescribeMigrationJobDetailRequest::~DescribeMigrationJobDetailRequest() {} - -std::string DescribeMigrationJobDetailRequest::getClientToken() const { - return clientToken_; -} - -void DescribeMigrationJobDetailRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -bool DescribeMigrationJobDetailRequest::getMigrationModeDataInitialization() const { - return migrationModeDataInitialization_; -} - -void DescribeMigrationJobDetailRequest::setMigrationModeDataInitialization(bool migrationModeDataInitialization) { - migrationModeDataInitialization_ = migrationModeDataInitialization; - setParameter(std::string("MigrationMode.DataInitialization"), migrationModeDataInitialization ? "true" : "false"); -} - -std::string DescribeMigrationJobDetailRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void DescribeMigrationJobDetailRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -int DescribeMigrationJobDetailRequest::getPageNum() const { - return pageNum_; -} - -void DescribeMigrationJobDetailRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string DescribeMigrationJobDetailRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeMigrationJobDetailRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeMigrationJobDetailRequest::getAccountId() const { - return accountId_; -} - -void DescribeMigrationJobDetailRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -bool DescribeMigrationJobDetailRequest::getMigrationModeDataSynchronization() const { - return migrationModeDataSynchronization_; -} - -void DescribeMigrationJobDetailRequest::setMigrationModeDataSynchronization(bool migrationModeDataSynchronization) { - migrationModeDataSynchronization_ = migrationModeDataSynchronization; - setParameter(std::string("MigrationMode.DataSynchronization"), migrationModeDataSynchronization ? "true" : "false"); -} - -std::string DescribeMigrationJobDetailRequest::getRegionId() const { - return regionId_; -} - -void DescribeMigrationJobDetailRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeMigrationJobDetailRequest::getPageSize() const { - return pageSize_; -} - -void DescribeMigrationJobDetailRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeMigrationJobDetailRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeMigrationJobDetailRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -bool DescribeMigrationJobDetailRequest::getMigrationModeStructureInitialization() const { - return migrationModeStructureInitialization_; -} - -void DescribeMigrationJobDetailRequest::setMigrationModeStructureInitialization(bool migrationModeStructureInitialization) { - migrationModeStructureInitialization_ = migrationModeStructureInitialization; - setParameter(std::string("MigrationMode.StructureInitialization"), migrationModeStructureInitialization ? "true" : "false"); -} - diff --git a/dts/src/model/DescribeMigrationJobDetailResult.cc b/dts/src/model/DescribeMigrationJobDetailResult.cc deleted file mode 100644 index 1945aa26a..000000000 --- a/dts/src/model/DescribeMigrationJobDetailResult.cc +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeMigrationJobDetailResult::DescribeMigrationJobDetailResult() : - ServiceResult() -{} - -DescribeMigrationJobDetailResult::DescribeMigrationJobDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrationJobDetailResult::~DescribeMigrationJobDetailResult() -{} - -void DescribeMigrationJobDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDataInitializationDetailListNode = value["DataInitializationDetailList"]["DataInitializationDetail"]; - for (auto valueDataInitializationDetailListDataInitializationDetail : allDataInitializationDetailListNode) - { - DataInitializationDetail dataInitializationDetailListObject; - if(!valueDataInitializationDetailListDataInitializationDetail["SourceOwnerDBName"].isNull()) - dataInitializationDetailListObject.sourceOwnerDBName = valueDataInitializationDetailListDataInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["Status"].isNull()) - dataInitializationDetailListObject.status = valueDataInitializationDetailListDataInitializationDetail["Status"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["TableName"].isNull()) - dataInitializationDetailListObject.tableName = valueDataInitializationDetailListDataInitializationDetail["TableName"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["ErrorMessage"].isNull()) - dataInitializationDetailListObject.errorMessage = valueDataInitializationDetailListDataInitializationDetail["ErrorMessage"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["FinishRowNum"].isNull()) - dataInitializationDetailListObject.finishRowNum = valueDataInitializationDetailListDataInitializationDetail["FinishRowNum"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["MigrationTime"].isNull()) - dataInitializationDetailListObject.migrationTime = valueDataInitializationDetailListDataInitializationDetail["MigrationTime"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["DestinationOwnerDBName"].isNull()) - dataInitializationDetailListObject.destinationOwnerDBName = valueDataInitializationDetailListDataInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueDataInitializationDetailListDataInitializationDetail["TotalRowNum"].isNull()) - dataInitializationDetailListObject.totalRowNum = valueDataInitializationDetailListDataInitializationDetail["TotalRowNum"].asString(); - dataInitializationDetailList_.push_back(dataInitializationDetailListObject); - } - auto allDataSynchronizationDetailListNode = value["DataSynchronizationDetailList"]["DataSynchronizationDetail"]; - for (auto valueDataSynchronizationDetailListDataSynchronizationDetail : allDataSynchronizationDetailListNode) - { - DataSynchronizationDetail dataSynchronizationDetailListObject; - if(!valueDataSynchronizationDetailListDataSynchronizationDetail["Status"].isNull()) - dataSynchronizationDetailListObject.status = valueDataSynchronizationDetailListDataSynchronizationDetail["Status"].asString(); - if(!valueDataSynchronizationDetailListDataSynchronizationDetail["SourceOwnerDBName"].isNull()) - dataSynchronizationDetailListObject.sourceOwnerDBName = valueDataSynchronizationDetailListDataSynchronizationDetail["SourceOwnerDBName"].asString(); - if(!valueDataSynchronizationDetailListDataSynchronizationDetail["TableName"].isNull()) - dataSynchronizationDetailListObject.tableName = valueDataSynchronizationDetailListDataSynchronizationDetail["TableName"].asString(); - if(!valueDataSynchronizationDetailListDataSynchronizationDetail["ErrorMessage"].isNull()) - dataSynchronizationDetailListObject.errorMessage = valueDataSynchronizationDetailListDataSynchronizationDetail["ErrorMessage"].asString(); - if(!valueDataSynchronizationDetailListDataSynchronizationDetail["DestinationOwnerDBName"].isNull()) - dataSynchronizationDetailListObject.destinationOwnerDBName = valueDataSynchronizationDetailListDataSynchronizationDetail["DestinationOwnerDBName"].asString(); - dataSynchronizationDetailList_.push_back(dataSynchronizationDetailListObject); - } - auto allStructureInitializationDetailListNode = value["StructureInitializationDetailList"]["StructureInitializationDetail"]; - for (auto valueStructureInitializationDetailListStructureInitializationDetail : allStructureInitializationDetailListNode) - { - StructureInitializationDetail structureInitializationDetailListObject; - if(!valueStructureInitializationDetailListStructureInitializationDetail["Status"].isNull()) - structureInitializationDetailListObject.status = valueStructureInitializationDetailListStructureInitializationDetail["Status"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["SourceOwnerDBName"].isNull()) - structureInitializationDetailListObject.sourceOwnerDBName = valueStructureInitializationDetailListStructureInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["ObjectDefinition"].isNull()) - structureInitializationDetailListObject.objectDefinition = valueStructureInitializationDetailListStructureInitializationDetail["ObjectDefinition"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["ObjectType"].isNull()) - structureInitializationDetailListObject.objectType = valueStructureInitializationDetailListStructureInitializationDetail["ObjectType"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["ErrorMessage"].isNull()) - structureInitializationDetailListObject.errorMessage = valueStructureInitializationDetailListStructureInitializationDetail["ErrorMessage"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["DestinationOwnerDBName"].isNull()) - structureInitializationDetailListObject.destinationOwnerDBName = valueStructureInitializationDetailListStructureInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetail["ObjectName"].isNull()) - structureInitializationDetailListObject.objectName = valueStructureInitializationDetailListStructureInitializationDetail["ObjectName"].asString(); - auto allConstraintListNode = valueStructureInitializationDetailListStructureInitializationDetail["ConstraintList"]["StructureInitializationDetail"]; - for (auto valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail : allConstraintListNode) - { - StructureInitializationDetail::StructureInitializationDetail1 constraintListObject; - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["Status"].isNull()) - constraintListObject.status = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["Status"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["SourceOwnerDBName"].isNull()) - constraintListObject.sourceOwnerDBName = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["SourceOwnerDBName"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectDefinition"].isNull()) - constraintListObject.objectDefinition = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectDefinition"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectType"].isNull()) - constraintListObject.objectType = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectType"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ErrorMessage"].isNull()) - constraintListObject.errorMessage = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ErrorMessage"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["DestinationOwnerDBName"].isNull()) - constraintListObject.destinationOwnerDBName = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["DestinationOwnerDBName"].asString(); - if(!valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectName"].isNull()) - constraintListObject.objectName = valueStructureInitializationDetailListStructureInitializationDetailConstraintListStructureInitializationDetail["ObjectName"].asString(); - structureInitializationDetailListObject.constraintList.push_back(constraintListObject); - } - structureInitializationDetailList_.push_back(structureInitializationDetailListObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -long DescribeMigrationJobDetailResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -std::vector DescribeMigrationJobDetailResult::getDataSynchronizationDetailList()const -{ - return dataSynchronizationDetailList_; -} - -int DescribeMigrationJobDetailResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeMigrationJobDetailResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeMigrationJobDetailResult::getDataInitializationDetailList()const -{ - return dataInitializationDetailList_; -} - -std::string DescribeMigrationJobDetailResult::getErrMessage()const -{ - return errMessage_; -} - -std::vector DescribeMigrationJobDetailResult::getStructureInitializationDetailList()const -{ - return structureInitializationDetailList_; -} - -std::string DescribeMigrationJobDetailResult::getSuccess()const -{ - return success_; -} - -std::string DescribeMigrationJobDetailResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeMigrationJobStatusRequest.cc b/dts/src/model/DescribeMigrationJobStatusRequest.cc deleted file mode 100644 index 0ffc9deac..000000000 --- a/dts/src/model/DescribeMigrationJobStatusRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeMigrationJobStatusRequest; - -DescribeMigrationJobStatusRequest::DescribeMigrationJobStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeMigrationJobStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribeMigrationJobStatusRequest::~DescribeMigrationJobStatusRequest() {} - -std::string DescribeMigrationJobStatusRequest::getClientToken() const { - return clientToken_; -} - -void DescribeMigrationJobStatusRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeMigrationJobStatusRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void DescribeMigrationJobStatusRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string DescribeMigrationJobStatusRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeMigrationJobStatusRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeMigrationJobStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeMigrationJobStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeMigrationJobStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeMigrationJobStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeMigrationJobStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeMigrationJobStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeMigrationJobStatusResult.cc b/dts/src/model/DescribeMigrationJobStatusResult.cc deleted file mode 100644 index 2b6ed4947..000000000 --- a/dts/src/model/DescribeMigrationJobStatusResult.cc +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeMigrationJobStatusResult::DescribeMigrationJobStatusResult() : - ServiceResult() -{} - -DescribeMigrationJobStatusResult::DescribeMigrationJobStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrationJobStatusResult::~DescribeMigrationJobStatusResult() -{} - -void DescribeMigrationJobStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - dataInitializationStatus_.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - dataInitializationStatus_.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - dataInitializationStatus_.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - dataInitializationStatus_.progress = dataInitializationStatusNode["Progress"].asString(); - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["Percent"].isNull()) - dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["Delay"].isNull()) - dataSynchronizationStatus_.delay = dataSynchronizationStatusNode["Delay"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); - if(!dataSynchronizationStatusNode["Checkpoint"].isNull()) - dataSynchronizationStatus_.checkpoint = dataSynchronizationStatusNode["Checkpoint"].asString(); - auto destinationEndpointNode = value["DestinationEndpoint"]; - if(!destinationEndpointNode["DatabaseName"].isNull()) - destinationEndpoint_.databaseName = destinationEndpointNode["DatabaseName"].asString(); - if(!destinationEndpointNode["InstanceId"].isNull()) - destinationEndpoint_.instanceId = destinationEndpointNode["InstanceId"].asString(); - if(!destinationEndpointNode["IP"].isNull()) - destinationEndpoint_.iP = destinationEndpointNode["IP"].asString(); - if(!destinationEndpointNode["InstanceType"].isNull()) - destinationEndpoint_.instanceType = destinationEndpointNode["InstanceType"].asString(); - if(!destinationEndpointNode["Port"].isNull()) - destinationEndpoint_.port = destinationEndpointNode["Port"].asString(); - if(!destinationEndpointNode["UserName"].isNull()) - destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString(); - if(!destinationEndpointNode["oracleSID"].isNull()) - destinationEndpoint_.oracleSID = destinationEndpointNode["oracleSID"].asString(); - if(!destinationEndpointNode["EngineName"].isNull()) - destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString(); - auto migrationModeNode = value["MigrationMode"]; - if(!migrationModeNode["dataInitialization"].isNull()) - migrationMode_.dataInitialization = migrationModeNode["dataInitialization"].asString() == "true"; - if(!migrationModeNode["dataSynchronization"].isNull()) - migrationMode_.dataSynchronization = migrationModeNode["dataSynchronization"].asString() == "true"; - if(!migrationModeNode["structureInitialization"].isNull()) - migrationMode_.structureInitialization = migrationModeNode["structureInitialization"].asString() == "true"; - auto precheckStatusNode = value["PrecheckStatus"]; - if(!precheckStatusNode["Status"].isNull()) - precheckStatus_.status = precheckStatusNode["Status"].asString(); - if(!precheckStatusNode["Percent"].isNull()) - precheckStatus_.percent = precheckStatusNode["Percent"].asString(); - auto allDetailNode = precheckStatusNode["Detail"]["CheckItem"]; - for (auto precheckStatusNodeDetailCheckItem : allDetailNode) - { - PrecheckStatus::CheckItem checkItemObject; - if(!precheckStatusNodeDetailCheckItem["CheckStatus"].isNull()) - checkItemObject.checkStatus = precheckStatusNodeDetailCheckItem["CheckStatus"].asString(); - if(!precheckStatusNodeDetailCheckItem["ErrorMessage"].isNull()) - checkItemObject.errorMessage = precheckStatusNodeDetailCheckItem["ErrorMessage"].asString(); - if(!precheckStatusNodeDetailCheckItem["ItemName"].isNull()) - checkItemObject.itemName = precheckStatusNodeDetailCheckItem["ItemName"].asString(); - if(!precheckStatusNodeDetailCheckItem["RepairMethod"].isNull()) - checkItemObject.repairMethod = precheckStatusNodeDetailCheckItem["RepairMethod"].asString(); - precheckStatus_.detail.push_back(checkItemObject); - } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["DatabaseName"].isNull()) - sourceEndpoint_.databaseName = sourceEndpointNode["DatabaseName"].asString(); - if(!sourceEndpointNode["InstanceId"].isNull()) - sourceEndpoint_.instanceId = sourceEndpointNode["InstanceId"].asString(); - if(!sourceEndpointNode["IP"].isNull()) - sourceEndpoint_.iP = sourceEndpointNode["IP"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - sourceEndpoint_.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString(); - if(!sourceEndpointNode["oracleSID"].isNull()) - sourceEndpoint_.oracleSID = sourceEndpointNode["oracleSID"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString(); - auto structureInitializationStatusNode = value["StructureInitializationStatus"]; - if(!structureInitializationStatusNode["Status"].isNull()) - structureInitializationStatus_.status = structureInitializationStatusNode["Status"].asString(); - if(!structureInitializationStatusNode["Percent"].isNull()) - structureInitializationStatus_.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - structureInitializationStatus_.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); - if(!structureInitializationStatusNode["Progress"].isNull()) - structureInitializationStatus_.progress = structureInitializationStatusNode["Progress"].asString(); - if(!value["MigrationJobName"].isNull()) - migrationJobName_ = value["MigrationJobName"].asString(); - if(!value["MigrationJobStatus"].isNull()) - migrationJobStatus_ = value["MigrationJobStatus"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["PayType"].isNull()) - payType_ = value["PayType"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["MigrationObject"].isNull()) - migrationObject_ = value["MigrationObject"].asString(); - if(!value["MigrationJobId"].isNull()) - migrationJobId_ = value["MigrationJobId"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - if(!value["MigrationJobClass"].isNull()) - migrationJobClass_ = value["MigrationJobClass"].asString(); - -} - -DescribeMigrationJobStatusResult::DataInitializationStatus DescribeMigrationJobStatusResult::getDataInitializationStatus()const -{ - return dataInitializationStatus_; -} - -std::string DescribeMigrationJobStatusResult::getTaskId()const -{ - return taskId_; -} - -std::string DescribeMigrationJobStatusResult::getMigrationJobName()const -{ - return migrationJobName_; -} - -std::string DescribeMigrationJobStatusResult::getPayType()const -{ - return payType_; -} - -std::string DescribeMigrationJobStatusResult::getErrMessage()const -{ - return errMessage_; -} - -DescribeMigrationJobStatusResult::MigrationMode DescribeMigrationJobStatusResult::getMigrationMode()const -{ - return migrationMode_; -} - -std::string DescribeMigrationJobStatusResult::getMigrationJobStatus()const -{ - return migrationJobStatus_; -} - -std::string DescribeMigrationJobStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeMigrationJobStatusResult::getErrCode()const -{ - return errCode_; -} - -std::string DescribeMigrationJobStatusResult::getMigrationJobId()const -{ - return migrationJobId_; -} - -DescribeMigrationJobStatusResult::PrecheckStatus DescribeMigrationJobStatusResult::getPrecheckStatus()const -{ - return precheckStatus_; -} - -std::string DescribeMigrationJobStatusResult::getMigrationObject()const -{ - return migrationObject_; -} - -DescribeMigrationJobStatusResult::DestinationEndpoint DescribeMigrationJobStatusResult::getDestinationEndpoint()const -{ - return destinationEndpoint_; -} - -DescribeMigrationJobStatusResult::SourceEndpoint DescribeMigrationJobStatusResult::getSourceEndpoint()const -{ - return sourceEndpoint_; -} - -std::string DescribeMigrationJobStatusResult::getMigrationJobClass()const -{ - return migrationJobClass_; -} - -DescribeMigrationJobStatusResult::DataSynchronizationStatus DescribeMigrationJobStatusResult::getDataSynchronizationStatus()const -{ - return dataSynchronizationStatus_; -} - -DescribeMigrationJobStatusResult::StructureInitializationStatus DescribeMigrationJobStatusResult::getStructureInitializationStatus()const -{ - return structureInitializationStatus_; -} - diff --git a/dts/src/model/DescribeMigrationJobsRequest.cc b/dts/src/model/DescribeMigrationJobsRequest.cc deleted file mode 100644 index 0a1be2ac5..000000000 --- a/dts/src/model/DescribeMigrationJobsRequest.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeMigrationJobsRequest; - -DescribeMigrationJobsRequest::DescribeMigrationJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeMigrationJobs") { - setMethod(HttpRequest::Method::Post); -} - -DescribeMigrationJobsRequest::~DescribeMigrationJobsRequest() {} - -std::string DescribeMigrationJobsRequest::getInstFilterRegion() const { - return instFilterRegion_; -} - -void DescribeMigrationJobsRequest::setInstFilterRegion(const std::string &instFilterRegion) { - instFilterRegion_ = instFilterRegion; - setParameter(std::string("InstFilterRegion"), instFilterRegion); -} - -int DescribeMigrationJobsRequest::getPageNum() const { - return pageNum_; -} - -void DescribeMigrationJobsRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string DescribeMigrationJobsRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeMigrationJobsRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeMigrationJobsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeMigrationJobsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeMigrationJobsRequest::getAccountId() const { - return accountId_; -} - -void DescribeMigrationJobsRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeMigrationJobsRequest::getRegionId() const { - return regionId_; -} - -void DescribeMigrationJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeMigrationJobsRequest::getPageSize() const { - return pageSize_; -} - -void DescribeMigrationJobsRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeMigrationJobsRequest::getMigrationJobName() const { - return migrationJobName_; -} - -void DescribeMigrationJobsRequest::setMigrationJobName(const std::string &migrationJobName) { - migrationJobName_ = migrationJobName; - setParameter(std::string("MigrationJobName"), migrationJobName); -} - -std::vector DescribeMigrationJobsRequest::getTag() const { - return tag_; -} - -void DescribeMigrationJobsRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - diff --git a/dts/src/model/DescribeMigrationJobsResult.cc b/dts/src/model/DescribeMigrationJobsResult.cc deleted file mode 100644 index 70298533d..000000000 --- a/dts/src/model/DescribeMigrationJobsResult.cc +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeMigrationJobsResult::DescribeMigrationJobsResult() : - ServiceResult() -{} - -DescribeMigrationJobsResult::DescribeMigrationJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeMigrationJobsResult::~DescribeMigrationJobsResult() -{} - -void DescribeMigrationJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allMigrationJobsNode = value["MigrationJobs"]["MigrationJob"]; - for (auto valueMigrationJobsMigrationJob : allMigrationJobsNode) - { - MigrationJob migrationJobsObject; - if(!valueMigrationJobsMigrationJob["MigrationJobName"].isNull()) - migrationJobsObject.migrationJobName = valueMigrationJobsMigrationJob["MigrationJobName"].asString(); - if(!valueMigrationJobsMigrationJob["MigrationJobStatus"].isNull()) - migrationJobsObject.migrationJobStatus = valueMigrationJobsMigrationJob["MigrationJobStatus"].asString(); - if(!valueMigrationJobsMigrationJob["PayType"].isNull()) - migrationJobsObject.payType = valueMigrationJobsMigrationJob["PayType"].asString(); - if(!valueMigrationJobsMigrationJob["MigrationJobClass"].isNull()) - migrationJobsObject.migrationJobClass = valueMigrationJobsMigrationJob["MigrationJobClass"].asString(); - if(!valueMigrationJobsMigrationJob["InstanceCreateTime"].isNull()) - migrationJobsObject.instanceCreateTime = valueMigrationJobsMigrationJob["InstanceCreateTime"].asString(); - if(!valueMigrationJobsMigrationJob["MigrationJobID"].isNull()) - migrationJobsObject.migrationJobID = valueMigrationJobsMigrationJob["MigrationJobID"].asString(); - if(!valueMigrationJobsMigrationJob["JobCreateTime"].isNull()) - migrationJobsObject.jobCreateTime = valueMigrationJobsMigrationJob["JobCreateTime"].asString(); - auto allMigrationObjectNode = valueMigrationJobsMigrationJob["MigrationObject"]["SynchronousObject"]; - for (auto valueMigrationJobsMigrationJobMigrationObjectSynchronousObject : allMigrationObjectNode) - { - MigrationJob::SynchronousObject migrationObjectObject; - if(!valueMigrationJobsMigrationJobMigrationObjectSynchronousObject["DatabaseName"].isNull()) - migrationObjectObject.databaseName = valueMigrationJobsMigrationJobMigrationObjectSynchronousObject["DatabaseName"].asString(); - if(!valueMigrationJobsMigrationJobMigrationObjectSynchronousObject["WholeDatabase"].isNull()) - migrationObjectObject.wholeDatabase = valueMigrationJobsMigrationJobMigrationObjectSynchronousObject["WholeDatabase"].asString(); - auto allTableList = value["TableList"]["Table"]; - for (auto value : allTableList) - migrationObjectObject.tableList.push_back(value.asString()); - migrationJobsObject.migrationObject.push_back(migrationObjectObject); - } - auto allTagsNode = valueMigrationJobsMigrationJob["Tags"]["Tag"]; - for (auto valueMigrationJobsMigrationJobTagsTag : allTagsNode) - { - MigrationJob::Tag tagsObject; - if(!valueMigrationJobsMigrationJobTagsTag["Key"].isNull()) - tagsObject.key = valueMigrationJobsMigrationJobTagsTag["Key"].asString(); - if(!valueMigrationJobsMigrationJobTagsTag["Value"].isNull()) - tagsObject.value = valueMigrationJobsMigrationJobTagsTag["Value"].asString(); - migrationJobsObject.tags.push_back(tagsObject); - } - auto dataInitializationNode = value["DataInitialization"]; - if(!dataInitializationNode["Percent"].isNull()) - migrationJobsObject.dataInitialization.percent = dataInitializationNode["Percent"].asString(); - if(!dataInitializationNode["status"].isNull()) - migrationJobsObject.dataInitialization.status = dataInitializationNode["status"].asString(); - if(!dataInitializationNode["ErrorMessage"].isNull()) - migrationJobsObject.dataInitialization.errorMessage = dataInitializationNode["ErrorMessage"].asString(); - if(!dataInitializationNode["Progress"].isNull()) - migrationJobsObject.dataInitialization.progress = dataInitializationNode["Progress"].asString(); - auto dataSynchronizationNode = value["DataSynchronization"]; - if(!dataSynchronizationNode["Delay"].isNull()) - migrationJobsObject.dataSynchronization.delay = dataSynchronizationNode["Delay"].asString(); - if(!dataSynchronizationNode["Percent"].isNull()) - migrationJobsObject.dataSynchronization.percent = dataSynchronizationNode["Percent"].asString(); - if(!dataSynchronizationNode["status"].isNull()) - migrationJobsObject.dataSynchronization.status = dataSynchronizationNode["status"].asString(); - if(!dataSynchronizationNode["ErrorMessage"].isNull()) - migrationJobsObject.dataSynchronization.errorMessage = dataSynchronizationNode["ErrorMessage"].asString(); - auto destinationEndpointNode = value["DestinationEndpoint"]; - if(!destinationEndpointNode["OracleSID"].isNull()) - migrationJobsObject.destinationEndpoint.oracleSID = destinationEndpointNode["OracleSID"].asString(); - if(!destinationEndpointNode["DatabaseName"].isNull()) - migrationJobsObject.destinationEndpoint.databaseName = destinationEndpointNode["DatabaseName"].asString(); - if(!destinationEndpointNode["InstanceID"].isNull()) - migrationJobsObject.destinationEndpoint.instanceID = destinationEndpointNode["InstanceID"].asString(); - if(!destinationEndpointNode["Port"].isNull()) - migrationJobsObject.destinationEndpoint.port = destinationEndpointNode["Port"].asString(); - if(!destinationEndpointNode["IP"].isNull()) - migrationJobsObject.destinationEndpoint.iP = destinationEndpointNode["IP"].asString(); - if(!destinationEndpointNode["InstanceType"].isNull()) - migrationJobsObject.destinationEndpoint.instanceType = destinationEndpointNode["InstanceType"].asString(); - if(!destinationEndpointNode["UserName"].isNull()) - migrationJobsObject.destinationEndpoint.userName = destinationEndpointNode["UserName"].asString(); - if(!destinationEndpointNode["EngineName"].isNull()) - migrationJobsObject.destinationEndpoint.engineName = destinationEndpointNode["EngineName"].asString(); - auto migrationModeNode = value["MigrationMode"]; - if(!migrationModeNode["DataInitialization"].isNull()) - migrationJobsObject.migrationMode.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true"; - if(!migrationModeNode["DataSynchronization"].isNull()) - migrationJobsObject.migrationMode.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true"; - if(!migrationModeNode["StructureInitialization"].isNull()) - migrationJobsObject.migrationMode.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true"; - auto precheckNode = value["Precheck"]; - if(!precheckNode["Status"].isNull()) - migrationJobsObject.precheck.status = precheckNode["Status"].asString(); - if(!precheckNode["Percent"].isNull()) - migrationJobsObject.precheck.percent = precheckNode["Percent"].asString(); - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["OracleSID"].isNull()) - migrationJobsObject.sourceEndpoint.oracleSID = sourceEndpointNode["OracleSID"].asString(); - if(!sourceEndpointNode["DatabaseName"].isNull()) - migrationJobsObject.sourceEndpoint.databaseName = sourceEndpointNode["DatabaseName"].asString(); - if(!sourceEndpointNode["InstanceID"].isNull()) - migrationJobsObject.sourceEndpoint.instanceID = sourceEndpointNode["InstanceID"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - migrationJobsObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["IP"].isNull()) - migrationJobsObject.sourceEndpoint.iP = sourceEndpointNode["IP"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - migrationJobsObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - migrationJobsObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - migrationJobsObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString(); - auto structureInitializationNode = value["StructureInitialization"]; - if(!structureInitializationNode["Percent"].isNull()) - migrationJobsObject.structureInitialization.percent = structureInitializationNode["Percent"].asString(); - if(!structureInitializationNode["status"].isNull()) - migrationJobsObject.structureInitialization.status = structureInitializationNode["status"].asString(); - if(!structureInitializationNode["ErrorMessage"].isNull()) - migrationJobsObject.structureInitialization.errorMessage = structureInitializationNode["ErrorMessage"].asString(); - if(!structureInitializationNode["Progress"].isNull()) - migrationJobsObject.structureInitialization.progress = structureInitializationNode["Progress"].asString(); - migrationJobs_.push_back(migrationJobsObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -long DescribeMigrationJobsResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeMigrationJobsResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeMigrationJobsResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeMigrationJobsResult::getMigrationJobs()const -{ - return migrationJobs_; -} - -std::string DescribeMigrationJobsResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeMigrationJobsResult::getSuccess()const -{ - return success_; -} - -std::string DescribeMigrationJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribePreCheckStatusRequest.cc b/dts/src/model/DescribePreCheckStatusRequest.cc deleted file mode 100644 index 02f0c03fc..000000000 --- a/dts/src/model/DescribePreCheckStatusRequest.cc +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribePreCheckStatusRequest; - -DescribePreCheckStatusRequest::DescribePreCheckStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribePreCheckStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribePreCheckStatusRequest::~DescribePreCheckStatusRequest() {} - -std::string DescribePreCheckStatusRequest::getStructType() const { - return structType_; -} - -void DescribePreCheckStatusRequest::setStructType(const std::string &structType) { - structType_ = structType; - setParameter(std::string("StructType"), structType); -} - -std::string DescribePreCheckStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribePreCheckStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribePreCheckStatusRequest::getPageSize() const { - return pageSize_; -} - -void DescribePreCheckStatusRequest::setPageSize(const std::string &pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), pageSize); -} - -std::string DescribePreCheckStatusRequest::getDtsJobId() const { - return dtsJobId_; -} - -void DescribePreCheckStatusRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string DescribePreCheckStatusRequest::getPageNo() const { - return pageNo_; -} - -void DescribePreCheckStatusRequest::setPageNo(const std::string &pageNo) { - pageNo_ = pageNo; - setParameter(std::string("PageNo"), pageNo); -} - -std::string DescribePreCheckStatusRequest::getJobCode() const { - return jobCode_; -} - -void DescribePreCheckStatusRequest::setJobCode(const std::string &jobCode) { - jobCode_ = jobCode; - setParameter(std::string("JobCode"), jobCode); -} - -std::string DescribePreCheckStatusRequest::getName() const { - return name_; -} - -void DescribePreCheckStatusRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - -std::string DescribePreCheckStatusRequest::getStructPhase() const { - return structPhase_; -} - -void DescribePreCheckStatusRequest::setStructPhase(const std::string &structPhase) { - structPhase_ = structPhase; - setParameter(std::string("StructPhase"), structPhase); -} - diff --git a/dts/src/model/DescribePreCheckStatusResult.cc b/dts/src/model/DescribePreCheckStatusResult.cc deleted file mode 100644 index 0ce8d56c1..000000000 --- a/dts/src/model/DescribePreCheckStatusResult.cc +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribePreCheckStatusResult::DescribePreCheckStatusResult() : - ServiceResult() -{} - -DescribePreCheckStatusResult::DescribePreCheckStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePreCheckStatusResult::~DescribePreCheckStatusResult() -{} - -void DescribePreCheckStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allJobProgressNode = value["JobProgress"]["ProgressInfo"]; - for (auto valueJobProgressProgressInfo : allJobProgressNode) - { - ProgressInfo jobProgressObject; - if(!valueJobProgressProgressInfo["Skip"].isNull()) - jobProgressObject.skip = valueJobProgressProgressInfo["Skip"].asString() == "true"; - if(!valueJobProgressProgressInfo["FinishTime"].isNull()) - jobProgressObject.finishTime = valueJobProgressProgressInfo["FinishTime"].asString(); - if(!valueJobProgressProgressInfo["IgnoreFlag"].isNull()) - jobProgressObject.ignoreFlag = valueJobProgressProgressInfo["IgnoreFlag"].asString(); - if(!valueJobProgressProgressInfo["DelaySeconds"].isNull()) - jobProgressObject.delaySeconds = std::stoi(valueJobProgressProgressInfo["DelaySeconds"].asString()); - if(!valueJobProgressProgressInfo["DdlSql"].isNull()) - jobProgressObject.ddlSql = valueJobProgressProgressInfo["DdlSql"].asString(); - if(!valueJobProgressProgressInfo["State"].isNull()) - jobProgressObject.state = valueJobProgressProgressInfo["State"].asString(); - if(!valueJobProgressProgressInfo["BootTime"].isNull()) - jobProgressObject.bootTime = valueJobProgressProgressInfo["BootTime"].asString(); - if(!valueJobProgressProgressInfo["Item"].isNull()) - jobProgressObject.item = valueJobProgressProgressInfo["Item"].asString(); - if(!valueJobProgressProgressInfo["Sub"].isNull()) - jobProgressObject.sub = valueJobProgressProgressInfo["Sub"].asString(); - if(!valueJobProgressProgressInfo["Total"].isNull()) - jobProgressObject.total = std::stoi(valueJobProgressProgressInfo["Total"].asString()); - if(!valueJobProgressProgressInfo["TargetNames"].isNull()) - jobProgressObject.targetNames = valueJobProgressProgressInfo["TargetNames"].asString(); - if(!valueJobProgressProgressInfo["CanSkip"].isNull()) - jobProgressObject.canSkip = valueJobProgressProgressInfo["CanSkip"].asString() == "true"; - if(!valueJobProgressProgressInfo["Names"].isNull()) - jobProgressObject.names = valueJobProgressProgressInfo["Names"].asString(); - if(!valueJobProgressProgressInfo["ErrDetail"].isNull()) - jobProgressObject.errDetail = valueJobProgressProgressInfo["ErrDetail"].asString(); - if(!valueJobProgressProgressInfo["DiffRow"].isNull()) - jobProgressObject.diffRow = std::stol(valueJobProgressProgressInfo["DiffRow"].asString()); - if(!valueJobProgressProgressInfo["JobId"].isNull()) - jobProgressObject.jobId = valueJobProgressProgressInfo["JobId"].asString(); - if(!valueJobProgressProgressInfo["SourceSchema"].isNull()) - jobProgressObject.sourceSchema = valueJobProgressProgressInfo["SourceSchema"].asString(); - if(!valueJobProgressProgressInfo["DestSchema"].isNull()) - jobProgressObject.destSchema = valueJobProgressProgressInfo["DestSchema"].asString(); - if(!valueJobProgressProgressInfo["ParentObj"].isNull()) - jobProgressObject.parentObj = valueJobProgressProgressInfo["ParentObj"].asString(); - if(!valueJobProgressProgressInfo["ErrMsg"].isNull()) - jobProgressObject.errMsg = valueJobProgressProgressInfo["ErrMsg"].asString(); - if(!valueJobProgressProgressInfo["OrderNum"].isNull()) - jobProgressObject.orderNum = std::stoi(valueJobProgressProgressInfo["OrderNum"].asString()); - if(!valueJobProgressProgressInfo["RepairMethod"].isNull()) - jobProgressObject.repairMethod = valueJobProgressProgressInfo["RepairMethod"].asString(); - if(!valueJobProgressProgressInfo["Id"].isNull()) - jobProgressObject.id = valueJobProgressProgressInfo["Id"].asString(); - if(!valueJobProgressProgressInfo["Current"].isNull()) - jobProgressObject.current = valueJobProgressProgressInfo["Current"].asString(); - auto allLogsNode = valueJobProgressProgressInfo["Logs"]["JobLog"]; - for (auto valueJobProgressProgressInfoLogsJobLog : allLogsNode) - { - ProgressInfo::JobLog logsObject; - if(!valueJobProgressProgressInfoLogsJobLog["ErrData"].isNull()) - logsObject.errData = valueJobProgressProgressInfoLogsJobLog["ErrData"].asString(); - if(!valueJobProgressProgressInfoLogsJobLog["ErrMsg"].isNull()) - logsObject.errMsg = valueJobProgressProgressInfoLogsJobLog["ErrMsg"].asString(); - if(!valueJobProgressProgressInfoLogsJobLog["LogLevel"].isNull()) - logsObject.logLevel = valueJobProgressProgressInfoLogsJobLog["LogLevel"].asString(); - if(!valueJobProgressProgressInfoLogsJobLog["ErrType"].isNull()) - logsObject.errType = valueJobProgressProgressInfoLogsJobLog["ErrType"].asString(); - jobProgressObject.logs.push_back(logsObject); - } - jobProgress_.push_back(jobProgressObject); - } - auto allSubDistributedJobStatusNode = value["SubDistributedJobStatus"]["SubDistributedJobStatusItem"]; - for (auto valueSubDistributedJobStatusSubDistributedJobStatusItem : allSubDistributedJobStatusNode) - { - SubDistributedJobStatusItem subDistributedJobStatusObject; - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["JobName"].isNull()) - subDistributedJobStatusObject.jobName = valueSubDistributedJobStatusSubDistributedJobStatusItem["JobName"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["State"].isNull()) - subDistributedJobStatusObject.state = valueSubDistributedJobStatusSubDistributedJobStatusItem["State"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["JobId"].isNull()) - subDistributedJobStatusObject.jobId = valueSubDistributedJobStatusSubDistributedJobStatusItem["JobId"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["ErrorItem"].isNull()) - subDistributedJobStatusObject.errorItem = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItem["ErrorItem"].asString()); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["Code"].isNull()) - subDistributedJobStatusObject.code = valueSubDistributedJobStatusSubDistributedJobStatusItem["Code"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["Total"].isNull()) - subDistributedJobStatusObject.total = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItem["Total"].asString()); - auto allJobProgress1Node = valueSubDistributedJobStatusSubDistributedJobStatusItem["JobProgress"]["ProgressInfo"]; - for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo : allJobProgress1Node) - { - SubDistributedJobStatusItem::ProgressInfo2 jobProgress1Object; - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Skip"].isNull()) - jobProgress1Object.skip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Skip"].asString() == "true"; - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["FinishTime"].isNull()) - jobProgress1Object.finishTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["FinishTime"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["IgnoreFlag"].isNull()) - jobProgress1Object.ignoreFlag = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["IgnoreFlag"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DelaySeconds"].isNull()) - jobProgress1Object.delaySeconds = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DelaySeconds"].asString()); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DdlSql"].isNull()) - jobProgress1Object.ddlSql = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DdlSql"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["State"].isNull()) - jobProgress1Object.state = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["State"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["BootTime"].isNull()) - jobProgress1Object.bootTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["BootTime"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Item"].isNull()) - jobProgress1Object.item = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Item"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Sub"].isNull()) - jobProgress1Object.sub = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Sub"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Total"].isNull()) - jobProgress1Object.total = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Total"].asString()); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["TargetNames"].isNull()) - jobProgress1Object.targetNames = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["TargetNames"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["CanSkip"].isNull()) - jobProgress1Object.canSkip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["CanSkip"].asString() == "true"; - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Names"].isNull()) - jobProgress1Object.names = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Names"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrDetail"].isNull()) - jobProgress1Object.errDetail = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrDetail"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DiffRow"].isNull()) - jobProgress1Object.diffRow = std::stol(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DiffRow"].asString()); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["JobId"].isNull()) - jobProgress1Object.jobId = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["JobId"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["SourceSchema"].isNull()) - jobProgress1Object.sourceSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["SourceSchema"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DestSchema"].isNull()) - jobProgress1Object.destSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DestSchema"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ParentObj"].isNull()) - jobProgress1Object.parentObj = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ParentObj"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrMsg"].isNull()) - jobProgress1Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrMsg"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["OrderNum"].isNull()) - jobProgress1Object.orderNum = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["OrderNum"].asString()); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["RepairMethod"].isNull()) - jobProgress1Object.repairMethod = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["RepairMethod"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Id"].isNull()) - jobProgress1Object.id = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Id"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Current"].isNull()) - jobProgress1Object.current = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Current"].asString(); - auto allLogs3Node = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Logs"]["JobLog"]; - for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog : allLogs3Node) - { - SubDistributedJobStatusItem::ProgressInfo2::JobLog4 logs3Object; - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].isNull()) - logs3Object.errData = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].isNull()) - logs3Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].isNull()) - logs3Object.logLevel = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].asString(); - if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].isNull()) - logs3Object.errType = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].asString(); - jobProgress1Object.logs3.push_back(logs3Object); - } - subDistributedJobStatusObject.jobProgress1.push_back(jobProgress1Object); - } - subDistributedJobStatus_.push_back(subDistributedJobStatusObject); - } - if(!value["State"].isNull()) - state_ = value["State"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stol(value["PageRecordCount"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["JobName"].isNull()) - jobName_ = value["JobName"].asString(); - if(!value["JobId"].isNull()) - jobId_ = value["JobId"].asString(); - if(!value["ErrorItem"].isNull()) - errorItem_ = std::stoi(value["ErrorItem"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - -} - -long DescribePreCheckStatusResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -long DescribePreCheckStatusResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -std::string DescribePreCheckStatusResult::getJobName()const -{ - return jobName_; -} - -int DescribePreCheckStatusResult::getErrorItem()const -{ - return errorItem_; -} - -std::vector DescribePreCheckStatusResult::getSubDistributedJobStatus()const -{ - return subDistributedJobStatus_; -} - -std::string DescribePreCheckStatusResult::getCode()const -{ - return code_; -} - -bool DescribePreCheckStatusResult::getSuccess()const -{ - return success_; -} - -long DescribePreCheckStatusResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribePreCheckStatusResult::getState()const -{ - return state_; -} - -int DescribePreCheckStatusResult::getTotal()const -{ - return total_; -} - -int DescribePreCheckStatusResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribePreCheckStatusResult::getJobId()const -{ - return jobId_; -} - -std::vector DescribePreCheckStatusResult::getJobProgress()const -{ - return jobProgress_; -} - diff --git a/dts/src/model/DescribeSubscriptionInstanceAlertRequest.cc b/dts/src/model/DescribeSubscriptionInstanceAlertRequest.cc deleted file mode 100644 index d8491ff43..000000000 --- a/dts/src/model/DescribeSubscriptionInstanceAlertRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSubscriptionInstanceAlertRequest; - -DescribeSubscriptionInstanceAlertRequest::DescribeSubscriptionInstanceAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSubscriptionInstanceAlert") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSubscriptionInstanceAlertRequest::~DescribeSubscriptionInstanceAlertRequest() {} - -std::string DescribeSubscriptionInstanceAlertRequest::getClientToken() const { - return clientToken_; -} - -void DescribeSubscriptionInstanceAlertRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeSubscriptionInstanceAlertRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void DescribeSubscriptionInstanceAlertRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string DescribeSubscriptionInstanceAlertRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSubscriptionInstanceAlertRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeSubscriptionInstanceAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSubscriptionInstanceAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSubscriptionInstanceAlertRequest::getAccountId() const { - return accountId_; -} - -void DescribeSubscriptionInstanceAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSubscriptionInstanceAlertRequest::getRegionId() const { - return regionId_; -} - -void DescribeSubscriptionInstanceAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeSubscriptionInstanceAlertResult.cc b/dts/src/model/DescribeSubscriptionInstanceAlertResult.cc deleted file mode 100644 index 782a1c65a..000000000 --- a/dts/src/model/DescribeSubscriptionInstanceAlertResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSubscriptionInstanceAlertResult::DescribeSubscriptionInstanceAlertResult() : - ServiceResult() -{} - -DescribeSubscriptionInstanceAlertResult::DescribeSubscriptionInstanceAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSubscriptionInstanceAlertResult::~DescribeSubscriptionInstanceAlertResult() -{} - -void DescribeSubscriptionInstanceAlertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorAlertStatus"].isNull()) - errorAlertStatus_ = value["ErrorAlertStatus"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrorAlertPhone"].isNull()) - errorAlertPhone_ = value["ErrorAlertPhone"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DelayAlertStatus"].isNull()) - delayAlertStatus_ = value["DelayAlertStatus"].asString(); - if(!value["SubscriptionInstanceName"].isNull()) - subscriptionInstanceName_ = value["SubscriptionInstanceName"].asString(); - if(!value["DelayAlertPhone"].isNull()) - delayAlertPhone_ = value["DelayAlertPhone"].asString(); - if(!value["SubscriptionInstanceID"].isNull()) - subscriptionInstanceID_ = value["SubscriptionInstanceID"].asString(); - if(!value["DelayOverSeconds"].isNull()) - delayOverSeconds_ = value["DelayOverSeconds"].asString(); - -} - -std::string DescribeSubscriptionInstanceAlertResult::getErrorAlertPhone()const -{ - return errorAlertPhone_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getSubscriptionInstanceName()const -{ - return subscriptionInstanceName_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getDelayAlertPhone()const -{ - return delayAlertPhone_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getErrorAlertStatus()const -{ - return errorAlertStatus_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getSubscriptionInstanceID()const -{ - return subscriptionInstanceID_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getDelayAlertStatus()const -{ - return delayAlertStatus_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getDelayOverSeconds()const -{ - return delayOverSeconds_; -} - -std::string DescribeSubscriptionInstanceAlertResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeSubscriptionInstanceStatusRequest.cc b/dts/src/model/DescribeSubscriptionInstanceStatusRequest.cc deleted file mode 100644 index af5fb4fed..000000000 --- a/dts/src/model/DescribeSubscriptionInstanceStatusRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSubscriptionInstanceStatusRequest; - -DescribeSubscriptionInstanceStatusRequest::DescribeSubscriptionInstanceStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSubscriptionInstanceStatus") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSubscriptionInstanceStatusRequest::~DescribeSubscriptionInstanceStatusRequest() {} - -std::string DescribeSubscriptionInstanceStatusRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void DescribeSubscriptionInstanceStatusRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string DescribeSubscriptionInstanceStatusRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSubscriptionInstanceStatusRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeSubscriptionInstanceStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSubscriptionInstanceStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSubscriptionInstanceStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeSubscriptionInstanceStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSubscriptionInstanceStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeSubscriptionInstanceStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeSubscriptionInstanceStatusResult.cc b/dts/src/model/DescribeSubscriptionInstanceStatusResult.cc deleted file mode 100644 index 700767c60..000000000 --- a/dts/src/model/DescribeSubscriptionInstanceStatusResult.cc +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSubscriptionInstanceStatusResult::DescribeSubscriptionInstanceStatusResult() : - ServiceResult() -{} - -DescribeSubscriptionInstanceStatusResult::DescribeSubscriptionInstanceStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSubscriptionInstanceStatusResult::~DescribeSubscriptionInstanceStatusResult() -{} - -void DescribeSubscriptionInstanceStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSubscriptionObjectNode = value["SubscriptionObject"]["SynchronousObject"]; - for (auto valueSubscriptionObjectSynchronousObject : allSubscriptionObjectNode) - { - SynchronousObject subscriptionObjectObject; - if(!valueSubscriptionObjectSynchronousObject["DatabaseName"].isNull()) - subscriptionObjectObject.databaseName = valueSubscriptionObjectSynchronousObject["DatabaseName"].asString(); - if(!valueSubscriptionObjectSynchronousObject["WholeDatabase"].isNull()) - subscriptionObjectObject.wholeDatabase = valueSubscriptionObjectSynchronousObject["WholeDatabase"].asString(); - auto allTableList = value["TableList"]["Table"]; - for (auto value : allTableList) - subscriptionObjectObject.tableList.push_back(value.asString()); - subscriptionObject_.push_back(subscriptionObjectObject); - } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["InstanceType"].isNull()) - sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["InstanceID"].isNull()) - sourceEndpoint_.instanceID = sourceEndpointNode["InstanceID"].asString(); - auto subscriptionDataTypeNode = value["SubscriptionDataType"]; - if(!subscriptionDataTypeNode["DML"].isNull()) - subscriptionDataType_.dML = subscriptionDataTypeNode["DML"].asString() == "true"; - if(!subscriptionDataTypeNode["DDL"].isNull()) - subscriptionDataType_.dDL = subscriptionDataTypeNode["DDL"].asString() == "true"; - auto subscriptionHostNode = value["SubscriptionHost"]; - if(!subscriptionHostNode["VPCHost"].isNull()) - subscriptionHost_.vPCHost = subscriptionHostNode["VPCHost"].asString(); - if(!subscriptionHostNode["PublicHost"].isNull()) - subscriptionHost_.publicHost = subscriptionHostNode["PublicHost"].asString(); - if(!subscriptionHostNode["PrivateHost"].isNull()) - subscriptionHost_.privateHost = subscriptionHostNode["PrivateHost"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PayType"].isNull()) - payType_ = value["PayType"].asString(); - if(!value["ConsumptionClient"].isNull()) - consumptionClient_ = value["ConsumptionClient"].asString(); - if(!value["ConsumptionCheckpoint"].isNull()) - consumptionCheckpoint_ = value["ConsumptionCheckpoint"].asString(); - if(!value["EndTimestamp"].isNull()) - endTimestamp_ = value["EndTimestamp"].asString(); - if(!value["BeginTimestamp"].isNull()) - beginTimestamp_ = value["BeginTimestamp"].asString(); - if(!value["SubscribeTopic"].isNull()) - subscribeTopic_ = value["SubscribeTopic"].asString(); - if(!value["SubscriptionInstanceName"].isNull()) - subscriptionInstanceName_ = value["SubscriptionInstanceName"].asString(); - if(!value["SubscriptionInstanceID"].isNull()) - subscriptionInstanceID_ = value["SubscriptionInstanceID"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - -} - -std::string DescribeSubscriptionInstanceStatusResult::getStatus()const -{ - return status_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getTaskId()const -{ - return taskId_; -} - -DescribeSubscriptionInstanceStatusResult::SubscriptionHost DescribeSubscriptionInstanceStatusResult::getSubscriptionHost()const -{ - return subscriptionHost_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getEndTimestamp()const -{ - return endTimestamp_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getPayType()const -{ - return payType_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getSubscriptionInstanceID()const -{ - return subscriptionInstanceID_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getErrCode()const -{ - return errCode_; -} - -std::vector DescribeSubscriptionInstanceStatusResult::getSubscriptionObject()const -{ - return subscriptionObject_; -} - -DescribeSubscriptionInstanceStatusResult::SubscriptionDataType DescribeSubscriptionInstanceStatusResult::getSubscriptionDataType()const -{ - return subscriptionDataType_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getConsumptionCheckpoint()const -{ - return consumptionCheckpoint_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getSubscriptionInstanceName()const -{ - return subscriptionInstanceName_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getSubscribeTopic()const -{ - return subscribeTopic_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getConsumptionClient()const -{ - return consumptionClient_; -} - -DescribeSubscriptionInstanceStatusResult::SourceEndpoint DescribeSubscriptionInstanceStatusResult::getSourceEndpoint()const -{ - return sourceEndpoint_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::string DescribeSubscriptionInstanceStatusResult::getBeginTimestamp()const -{ - return beginTimestamp_; -} - diff --git a/dts/src/model/DescribeSubscriptionInstancesRequest.cc b/dts/src/model/DescribeSubscriptionInstancesRequest.cc deleted file mode 100644 index c029d6357..000000000 --- a/dts/src/model/DescribeSubscriptionInstancesRequest.cc +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSubscriptionInstancesRequest; - -DescribeSubscriptionInstancesRequest::DescribeSubscriptionInstancesRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSubscriptionInstances") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSubscriptionInstancesRequest::~DescribeSubscriptionInstancesRequest() {} - -std::string DescribeSubscriptionInstancesRequest::getClientToken() const { - return clientToken_; -} - -void DescribeSubscriptionInstancesRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -int DescribeSubscriptionInstancesRequest::getPageNum() const { - return pageNum_; -} - -void DescribeSubscriptionInstancesRequest::setPageNum(int pageNum) { - pageNum_ = pageNum; - setParameter(std::string("PageNum"), std::to_string(pageNum)); -} - -std::string DescribeSubscriptionInstancesRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSubscriptionInstancesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSubscriptionInstancesRequest::getAccountId() const { - return accountId_; -} - -void DescribeSubscriptionInstancesRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSubscriptionInstancesRequest::getRegionId() const { - return regionId_; -} - -void DescribeSubscriptionInstancesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeSubscriptionInstancesRequest::getPageSize() const { - return pageSize_; -} - -void DescribeSubscriptionInstancesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::vector DescribeSubscriptionInstancesRequest::getTag() const { - return tag_; -} - -void DescribeSubscriptionInstancesRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - -std::string DescribeSubscriptionInstancesRequest::getInstFilterRegion() const { - return instFilterRegion_; -} - -void DescribeSubscriptionInstancesRequest::setInstFilterRegion(const std::string &instFilterRegion) { - instFilterRegion_ = instFilterRegion; - setParameter(std::string("InstFilterRegion"), instFilterRegion); -} - -std::string DescribeSubscriptionInstancesRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSubscriptionInstancesRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeSubscriptionInstancesRequest::getSubscriptionInstanceName() const { - return subscriptionInstanceName_; -} - -void DescribeSubscriptionInstancesRequest::setSubscriptionInstanceName(const std::string &subscriptionInstanceName) { - subscriptionInstanceName_ = subscriptionInstanceName; - setParameter(std::string("SubscriptionInstanceName"), subscriptionInstanceName); -} - diff --git a/dts/src/model/DescribeSubscriptionInstancesResult.cc b/dts/src/model/DescribeSubscriptionInstancesResult.cc deleted file mode 100644 index 2bcc9dc54..000000000 --- a/dts/src/model/DescribeSubscriptionInstancesResult.cc +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSubscriptionInstancesResult::DescribeSubscriptionInstancesResult() : - ServiceResult() -{} - -DescribeSubscriptionInstancesResult::DescribeSubscriptionInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSubscriptionInstancesResult::~DescribeSubscriptionInstancesResult() -{} - -void DescribeSubscriptionInstancesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSubscriptionInstancesNode = value["SubscriptionInstances"]["SubscriptionInstance"]; - for (auto valueSubscriptionInstancesSubscriptionInstance : allSubscriptionInstancesNode) - { - SubscriptionInstance subscriptionInstancesObject; - if(!valueSubscriptionInstancesSubscriptionInstance["Status"].isNull()) - subscriptionInstancesObject.status = valueSubscriptionInstancesSubscriptionInstance["Status"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["ErrorMessage"].isNull()) - subscriptionInstancesObject.errorMessage = valueSubscriptionInstancesSubscriptionInstance["ErrorMessage"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["PayType"].isNull()) - subscriptionInstancesObject.payType = valueSubscriptionInstancesSubscriptionInstance["PayType"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["ConsumptionClient"].isNull()) - subscriptionInstancesObject.consumptionClient = valueSubscriptionInstancesSubscriptionInstance["ConsumptionClient"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["ConsumptionCheckpoint"].isNull()) - subscriptionInstancesObject.consumptionCheckpoint = valueSubscriptionInstancesSubscriptionInstance["ConsumptionCheckpoint"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["EndTimestamp"].isNull()) - subscriptionInstancesObject.endTimestamp = valueSubscriptionInstancesSubscriptionInstance["EndTimestamp"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["InstanceCreateTime"].isNull()) - subscriptionInstancesObject.instanceCreateTime = valueSubscriptionInstancesSubscriptionInstance["InstanceCreateTime"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["BeginTimestamp"].isNull()) - subscriptionInstancesObject.beginTimestamp = valueSubscriptionInstancesSubscriptionInstance["BeginTimestamp"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["SubscribeTopic"].isNull()) - subscriptionInstancesObject.subscribeTopic = valueSubscriptionInstancesSubscriptionInstance["SubscribeTopic"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["SubscriptionInstanceName"].isNull()) - subscriptionInstancesObject.subscriptionInstanceName = valueSubscriptionInstancesSubscriptionInstance["SubscriptionInstanceName"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["SubscriptionInstanceID"].isNull()) - subscriptionInstancesObject.subscriptionInstanceID = valueSubscriptionInstancesSubscriptionInstance["SubscriptionInstanceID"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstance["JobCreateTime"].isNull()) - subscriptionInstancesObject.jobCreateTime = valueSubscriptionInstancesSubscriptionInstance["JobCreateTime"].asString(); - auto allSubscriptionObjectNode = valueSubscriptionInstancesSubscriptionInstance["SubscriptionObject"]["SynchronousObject"]; - for (auto valueSubscriptionInstancesSubscriptionInstanceSubscriptionObjectSynchronousObject : allSubscriptionObjectNode) - { - SubscriptionInstance::SynchronousObject subscriptionObjectObject; - if(!valueSubscriptionInstancesSubscriptionInstanceSubscriptionObjectSynchronousObject["DatabaseName"].isNull()) - subscriptionObjectObject.databaseName = valueSubscriptionInstancesSubscriptionInstanceSubscriptionObjectSynchronousObject["DatabaseName"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstanceSubscriptionObjectSynchronousObject["WholeDatabase"].isNull()) - subscriptionObjectObject.wholeDatabase = valueSubscriptionInstancesSubscriptionInstanceSubscriptionObjectSynchronousObject["WholeDatabase"].asString(); - auto allTableList = value["TableList"]["Table"]; - for (auto value : allTableList) - subscriptionObjectObject.tableList.push_back(value.asString()); - subscriptionInstancesObject.subscriptionObject.push_back(subscriptionObjectObject); - } - auto allTagsNode = valueSubscriptionInstancesSubscriptionInstance["Tags"]["Tag"]; - for (auto valueSubscriptionInstancesSubscriptionInstanceTagsTag : allTagsNode) - { - SubscriptionInstance::Tag tagsObject; - if(!valueSubscriptionInstancesSubscriptionInstanceTagsTag["Key"].isNull()) - tagsObject.key = valueSubscriptionInstancesSubscriptionInstanceTagsTag["Key"].asString(); - if(!valueSubscriptionInstancesSubscriptionInstanceTagsTag["Value"].isNull()) - tagsObject.value = valueSubscriptionInstancesSubscriptionInstanceTagsTag["Value"].asString(); - subscriptionInstancesObject.tags.push_back(tagsObject); - } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["InstanceType"].isNull()) - subscriptionInstancesObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["InstanceID"].isNull()) - subscriptionInstancesObject.sourceEndpoint.instanceID = sourceEndpointNode["InstanceID"].asString(); - auto subscriptionDataTypeNode = value["SubscriptionDataType"]; - if(!subscriptionDataTypeNode["DML"].isNull()) - subscriptionInstancesObject.subscriptionDataType.dML = subscriptionDataTypeNode["DML"].asString() == "true"; - if(!subscriptionDataTypeNode["DDL"].isNull()) - subscriptionInstancesObject.subscriptionDataType.dDL = subscriptionDataTypeNode["DDL"].asString() == "true"; - auto subscriptionHostNode = value["SubscriptionHost"]; - if(!subscriptionHostNode["VPCHost"].isNull()) - subscriptionInstancesObject.subscriptionHost.vPCHost = subscriptionHostNode["VPCHost"].asString(); - if(!subscriptionHostNode["PublicHost"].isNull()) - subscriptionInstancesObject.subscriptionHost.publicHost = subscriptionHostNode["PublicHost"].asString(); - if(!subscriptionHostNode["PrivateHost"].isNull()) - subscriptionInstancesObject.subscriptionHost.privateHost = subscriptionHostNode["PrivateHost"].asString(); - subscriptionInstances_.push_back(subscriptionInstancesObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -long DescribeSubscriptionInstancesResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeSubscriptionInstancesResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSubscriptionInstancesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeSubscriptionInstancesResult::getErrMessage()const -{ - return errMessage_; -} - -std::vector DescribeSubscriptionInstancesResult::getSubscriptionInstances()const -{ - return subscriptionInstances_; -} - -std::string DescribeSubscriptionInstancesResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSubscriptionInstancesResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeSubscriptionMetaRequest.cc b/dts/src/model/DescribeSubscriptionMetaRequest.cc deleted file mode 100644 index 32a220bc6..000000000 --- a/dts/src/model/DescribeSubscriptionMetaRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSubscriptionMetaRequest; - -DescribeSubscriptionMetaRequest::DescribeSubscriptionMetaRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSubscriptionMeta") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSubscriptionMetaRequest::~DescribeSubscriptionMetaRequest() {} - -std::string DescribeSubscriptionMetaRequest::getTopics() const { - return topics_; -} - -void DescribeSubscriptionMetaRequest::setTopics(const std::string &topics) { - topics_ = topics; - setParameter(std::string("Topics"), topics); -} - -std::string DescribeSubscriptionMetaRequest::getSid() const { - return sid_; -} - -void DescribeSubscriptionMetaRequest::setSid(const std::string &sid) { - sid_ = sid; - setParameter(std::string("Sid"), sid); -} - -std::string DescribeSubscriptionMetaRequest::getRegionId() const { - return regionId_; -} - -void DescribeSubscriptionMetaRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeSubscriptionMetaRequest::getSubMigrationJobIds() const { - return subMigrationJobIds_; -} - -void DescribeSubscriptionMetaRequest::setSubMigrationJobIds(const std::string &subMigrationJobIds) { - subMigrationJobIds_ = subMigrationJobIds; - setParameter(std::string("SubMigrationJobIds"), subMigrationJobIds); -} - -std::string DescribeSubscriptionMetaRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void DescribeSubscriptionMetaRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/DescribeSubscriptionMetaResult.cc b/dts/src/model/DescribeSubscriptionMetaResult.cc deleted file mode 100644 index f4bea2028..000000000 --- a/dts/src/model/DescribeSubscriptionMetaResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSubscriptionMetaResult::DescribeSubscriptionMetaResult() : - ServiceResult() -{} - -DescribeSubscriptionMetaResult::DescribeSubscriptionMetaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSubscriptionMetaResult::~DescribeSubscriptionMetaResult() -{} - -void DescribeSubscriptionMetaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSubscriptionMetaListNode = value["SubscriptionMetaList"]["SubscriptionMetaListItem"]; - for (auto valueSubscriptionMetaListSubscriptionMetaListItem : allSubscriptionMetaListNode) - { - SubscriptionMetaListItem subscriptionMetaListObject; - if(!valueSubscriptionMetaListSubscriptionMetaListItem["Sid"].isNull()) - subscriptionMetaListObject.sid = valueSubscriptionMetaListSubscriptionMetaListItem["Sid"].asString(); - if(!valueSubscriptionMetaListSubscriptionMetaListItem["Checkpoint"].isNull()) - subscriptionMetaListObject.checkpoint = std::stol(valueSubscriptionMetaListSubscriptionMetaListItem["Checkpoint"].asString()); - if(!valueSubscriptionMetaListSubscriptionMetaListItem["DProxyUrl"].isNull()) - subscriptionMetaListObject.dProxyUrl = valueSubscriptionMetaListSubscriptionMetaListItem["DProxyUrl"].asString(); - if(!valueSubscriptionMetaListSubscriptionMetaListItem["DBList"].isNull()) - subscriptionMetaListObject.dBList = valueSubscriptionMetaListSubscriptionMetaListItem["DBList"].asString(); - if(!valueSubscriptionMetaListSubscriptionMetaListItem["Topic"].isNull()) - subscriptionMetaListObject.topic = valueSubscriptionMetaListSubscriptionMetaListItem["Topic"].asString(); - subscriptionMetaList_.push_back(subscriptionMetaListObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::vector DescribeSubscriptionMetaResult::getSubscriptionMetaList()const -{ - return subscriptionMetaList_; -} - -std::string DescribeSubscriptionMetaResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string DescribeSubscriptionMetaResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeSubscriptionMetaResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSubscriptionMetaResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeSynchronizationJobAlertRequest.cc b/dts/src/model/DescribeSynchronizationJobAlertRequest.cc index 42542954a..a532915b3 100644 --- a/dts/src/model/DescribeSynchronizationJobAlertRequest.cc +++ b/dts/src/model/DescribeSynchronizationJobAlertRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DescribeSynchronizationJobAlertRequest; DescribeSynchronizationJobAlertRequest::DescribeSynchronizationJobAlertRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationJobAlert") { + : RpcServiceRequest("dts", "2019-09-01", "DescribeSynchronizationJobAlert") { setMethod(HttpRequest::Method::Post); } @@ -43,15 +43,6 @@ void DescribeSynchronizationJobAlertRequest::setOwnerId(const std::string &owner setParameter(std::string("OwnerId"), ownerId); } -std::string DescribeSynchronizationJobAlertRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSynchronizationJobAlertRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string DescribeSynchronizationJobAlertRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -61,24 +52,6 @@ void DescribeSynchronizationJobAlertRequest::setSynchronizationJobId(const std:: setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string DescribeSynchronizationJobAlertRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationJobAlertRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationJobAlertRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationJobAlertRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string DescribeSynchronizationJobAlertRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc b/dts/src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc deleted file mode 100644 index 7314b0c13..000000000 --- a/dts/src/model/DescribeSynchronizationJobReplicatorCompareRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSynchronizationJobReplicatorCompareRequest; - -DescribeSynchronizationJobReplicatorCompareRequest::DescribeSynchronizationJobReplicatorCompareRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationJobReplicatorCompare") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSynchronizationJobReplicatorCompareRequest::~DescribeSynchronizationJobReplicatorCompareRequest() {} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getClientToken() const { - return clientToken_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getSynchronizationJobId() const { - return synchronizationJobId_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { - synchronizationJobId_ = synchronizationJobId; - setParameter(std::string("SynchronizationJobId"), synchronizationJobId); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string DescribeSynchronizationJobReplicatorCompareRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void DescribeSynchronizationJobReplicatorCompareRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/DescribeSynchronizationJobReplicatorCompareResult.cc b/dts/src/model/DescribeSynchronizationJobReplicatorCompareResult.cc deleted file mode 100644 index c20ffae0e..000000000 --- a/dts/src/model/DescribeSynchronizationJobReplicatorCompareResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSynchronizationJobReplicatorCompareResult::DescribeSynchronizationJobReplicatorCompareResult() : - ServiceResult() -{} - -DescribeSynchronizationJobReplicatorCompareResult::DescribeSynchronizationJobReplicatorCompareResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSynchronizationJobReplicatorCompareResult::~DescribeSynchronizationJobReplicatorCompareResult() -{} - -void DescribeSynchronizationJobReplicatorCompareResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["SynchronizationReplicatorCompareEnable"].isNull()) - synchronizationReplicatorCompareEnable_ = value["SynchronizationReplicatorCompareEnable"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -bool DescribeSynchronizationJobReplicatorCompareResult::getSynchronizationReplicatorCompareEnable()const -{ - return synchronizationReplicatorCompareEnable_; -} - -std::string DescribeSynchronizationJobReplicatorCompareResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeSynchronizationJobReplicatorCompareResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSynchronizationJobReplicatorCompareResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeSynchronizationJobStatusListRequest.cc b/dts/src/model/DescribeSynchronizationJobStatusListRequest.cc deleted file mode 100644 index 24b8a0095..000000000 --- a/dts/src/model/DescribeSynchronizationJobStatusListRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeSynchronizationJobStatusListRequest; - -DescribeSynchronizationJobStatusListRequest::DescribeSynchronizationJobStatusListRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationJobStatusList") { - setMethod(HttpRequest::Method::Post); -} - -DescribeSynchronizationJobStatusListRequest::~DescribeSynchronizationJobStatusListRequest() {} - -std::string DescribeSynchronizationJobStatusListRequest::getClientToken() const { - return clientToken_; -} - -void DescribeSynchronizationJobStatusListRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string DescribeSynchronizationJobStatusListRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSynchronizationJobStatusListRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string DescribeSynchronizationJobStatusListRequest::getSynchronizationJobIdListJsonStr() const { - return synchronizationJobIdListJsonStr_; -} - -void DescribeSynchronizationJobStatusListRequest::setSynchronizationJobIdListJsonStr(const std::string &synchronizationJobIdListJsonStr) { - synchronizationJobIdListJsonStr_ = synchronizationJobIdListJsonStr; - setParameter(std::string("SynchronizationJobIdListJsonStr"), synchronizationJobIdListJsonStr); -} - -std::string DescribeSynchronizationJobStatusListRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSynchronizationJobStatusListRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSynchronizationJobStatusListRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationJobStatusListRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationJobStatusListRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationJobStatusListRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/DescribeSynchronizationJobStatusListResult.cc b/dts/src/model/DescribeSynchronizationJobStatusListResult.cc deleted file mode 100644 index 3a337f129..000000000 --- a/dts/src/model/DescribeSynchronizationJobStatusListResult.cc +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeSynchronizationJobStatusListResult::DescribeSynchronizationJobStatusListResult() : - ServiceResult() -{} - -DescribeSynchronizationJobStatusListResult::DescribeSynchronizationJobStatusListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSynchronizationJobStatusListResult::~DescribeSynchronizationJobStatusListResult() -{} - -void DescribeSynchronizationJobStatusListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allSynchronizationJobListStatusListNode = value["SynchronizationJobListStatusList"]["SynchronizationJobStatusInfo"]; - for (auto valueSynchronizationJobListStatusListSynchronizationJobStatusInfo : allSynchronizationJobListStatusListNode) - { - SynchronizationJobStatusInfo synchronizationJobListStatusListObject; - if(!valueSynchronizationJobListStatusListSynchronizationJobStatusInfo["SynchronizationJobId"].isNull()) - synchronizationJobListStatusListObject.synchronizationJobId = valueSynchronizationJobListStatusListSynchronizationJobStatusInfo["SynchronizationJobId"].asString(); - auto allSynchronizationDirectionInfoListNode = valueSynchronizationJobListStatusListSynchronizationJobStatusInfo["SynchronizationDirectionInfoList"]["SynchronizationDirectionInfo"]; - for (auto valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo : allSynchronizationDirectionInfoListNode) - { - SynchronizationJobStatusInfo::SynchronizationDirectionInfo synchronizationDirectionInfoListObject; - if(!valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["Status"].isNull()) - synchronizationDirectionInfoListObject.status = valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["Status"].asString(); - if(!valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["SynchronizationDirection"].isNull()) - synchronizationDirectionInfoListObject.synchronizationDirection = valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["SynchronizationDirection"].asString(); - if(!valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["Checkpoint"].isNull()) - synchronizationDirectionInfoListObject.checkpoint = valueSynchronizationJobListStatusListSynchronizationJobStatusInfoSynchronizationDirectionInfoListSynchronizationDirectionInfo["Checkpoint"].asString(); - synchronizationJobListStatusListObject.synchronizationDirectionInfoList.push_back(synchronizationDirectionInfoListObject); - } - synchronizationJobListStatusList_.push_back(synchronizationJobListStatusListObject); - } - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stol(value["TotalRecordCount"].asString()); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -long DescribeSynchronizationJobStatusListResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int DescribeSynchronizationJobStatusListResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int DescribeSynchronizationJobStatusListResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeSynchronizationJobStatusListResult::getSynchronizationJobListStatusList()const -{ - return synchronizationJobListStatusList_; -} - -std::string DescribeSynchronizationJobStatusListResult::getErrMessage()const -{ - return errMessage_; -} - -std::string DescribeSynchronizationJobStatusListResult::getSuccess()const -{ - return success_; -} - -std::string DescribeSynchronizationJobStatusListResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeSynchronizationJobStatusRequest.cc b/dts/src/model/DescribeSynchronizationJobStatusRequest.cc index bb1d9f6a6..45b3075b2 100644 --- a/dts/src/model/DescribeSynchronizationJobStatusRequest.cc +++ b/dts/src/model/DescribeSynchronizationJobStatusRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DescribeSynchronizationJobStatusRequest; DescribeSynchronizationJobStatusRequest::DescribeSynchronizationJobStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationJobStatus") { + : RpcServiceRequest("dts", "2019-09-01", "DescribeSynchronizationJobStatus") { setMethod(HttpRequest::Method::Post); } @@ -43,15 +43,6 @@ void DescribeSynchronizationJobStatusRequest::setOwnerId(const std::string &owne setParameter(std::string("OwnerId"), ownerId); } -std::string DescribeSynchronizationJobStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSynchronizationJobStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string DescribeSynchronizationJobStatusRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -61,24 +52,6 @@ void DescribeSynchronizationJobStatusRequest::setSynchronizationJobId(const std: setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string DescribeSynchronizationJobStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationJobStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationJobStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationJobStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string DescribeSynchronizationJobStatusRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/DescribeSynchronizationJobStatusResult.cc b/dts/src/model/DescribeSynchronizationJobStatusResult.cc index a3c7ca1a0..975285327 100644 --- a/dts/src/model/DescribeSynchronizationJobStatusResult.cc +++ b/dts/src/model/DescribeSynchronizationJobStatusResult.cc @@ -47,14 +47,6 @@ void DescribeSynchronizationJobStatusResult::parse(const std::string &payload) synchronizationObjectsObject.newSchemaName = valueSynchronizationObjectsSynchronizationObject["NewSchemaName"].asString(); if(!valueSynchronizationObjectsSynchronizationObject["SchemaName"].isNull()) synchronizationObjectsObject.schemaName = valueSynchronizationObjectsSynchronizationObject["SchemaName"].asString(); - auto allTableExcludesNode = valueSynchronizationObjectsSynchronizationObject["TableExcludes"]["TableExclude"]; - for (auto valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude : allTableExcludesNode) - { - SynchronizationObject::TableExclude tableExcludesObject; - if(!valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].isNull()) - tableExcludesObject.tableName = valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].asString(); - synchronizationObjectsObject.tableExcludes.push_back(tableExcludesObject); - } auto allTableIncludesNode = valueSynchronizationObjectsSynchronizationObject["TableIncludes"]["TableInclude"]; for (auto valueSynchronizationObjectsSynchronizationObjectTableIncludesTableInclude : allTableIncludesNode) { @@ -63,48 +55,42 @@ void DescribeSynchronizationJobStatusResult::parse(const std::string &payload) tableIncludesObject.tableName = valueSynchronizationObjectsSynchronizationObjectTableIncludesTableInclude["TableName"].asString(); synchronizationObjectsObject.tableIncludes.push_back(tableIncludesObject); } + auto allTableExcludesNode = valueSynchronizationObjectsSynchronizationObject["TableExcludes"]["TableExclude"]; + for (auto valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude : allTableExcludesNode) + { + SynchronizationObject::TableExclude tableExcludesObject; + if(!valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].isNull()) + tableExcludesObject.tableName = valueSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].asString(); + synchronizationObjectsObject.tableExcludes.push_back(tableExcludesObject); + } synchronizationObjects_.push_back(synchronizationObjectsObject); } - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - dataInitializationStatus_.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - dataInitializationStatus_.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - dataInitializationStatus_.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - dataInitializationStatus_.progress = dataInitializationStatusNode["Progress"].asString(); - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["Delay"].isNull()) - dataSynchronizationStatus_.delay = dataSynchronizationStatusNode["Delay"].asString(); - if(!dataSynchronizationStatusNode["Percent"].isNull()) - dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); - if(!dataSynchronizationStatusNode["DelayMillis"].isNull()) - dataSynchronizationStatus_.delayMillis = std::stol(dataSynchronizationStatusNode["DelayMillis"].asString()); - if(!dataSynchronizationStatusNode["Checkpoint"].isNull()) - dataSynchronizationStatus_.checkpoint = dataSynchronizationStatusNode["Checkpoint"].asString(); + auto sourceEndpointNode = value["SourceEndpoint"]; + if(!sourceEndpointNode["InstanceId"].isNull()) + sourceEndpoint_.instanceId = sourceEndpointNode["InstanceId"].asString(); + if(!sourceEndpointNode["InstanceType"].isNull()) + sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString(); + if(!sourceEndpointNode["IP"].isNull()) + sourceEndpoint_.iP = sourceEndpointNode["IP"].asString(); + if(!sourceEndpointNode["Port"].isNull()) + sourceEndpoint_.port = sourceEndpointNode["Port"].asString(); + if(!sourceEndpointNode["UserName"].isNull()) + sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString(); + if(!sourceEndpointNode["EngineName"].isNull()) + sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString(); auto destinationEndpointNode = value["DestinationEndpoint"]; if(!destinationEndpointNode["InstanceId"].isNull()) destinationEndpoint_.instanceId = destinationEndpointNode["InstanceId"].asString(); - if(!destinationEndpointNode["IP"].isNull()) - destinationEndpoint_.iP = destinationEndpointNode["IP"].asString(); if(!destinationEndpointNode["InstanceType"].isNull()) destinationEndpoint_.instanceType = destinationEndpointNode["InstanceType"].asString(); + if(!destinationEndpointNode["IP"].isNull()) + destinationEndpoint_.iP = destinationEndpointNode["IP"].asString(); if(!destinationEndpointNode["Port"].isNull()) destinationEndpoint_.port = destinationEndpointNode["Port"].asString(); if(!destinationEndpointNode["UserName"].isNull()) destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString(); if(!destinationEndpointNode["EngineName"].isNull()) destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString(); - auto performanceNode = value["Performance"]; - if(!performanceNode["RPS"].isNull()) - performance_.rPS = performanceNode["RPS"].asString(); - if(!performanceNode["FLOW"].isNull()) - performance_.fLOW = performanceNode["FLOW"].asString(); auto precheckStatusNode = value["PrecheckStatus"]; if(!precheckStatusNode["Status"].isNull()) precheckStatus_.status = precheckStatusNode["Status"].asString(); @@ -124,65 +110,72 @@ void DescribeSynchronizationJobStatusResult::parse(const std::string &payload) checkItemObject.repairMethod = precheckStatusNodeDetailCheckItem["RepairMethod"].asString(); precheckStatus_.detail.push_back(checkItemObject); } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["InstanceId"].isNull()) - sourceEndpoint_.instanceId = sourceEndpointNode["InstanceId"].asString(); - if(!sourceEndpointNode["IP"].isNull()) - sourceEndpoint_.iP = sourceEndpointNode["IP"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - sourceEndpoint_.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString(); auto structureInitializationStatusNode = value["StructureInitializationStatus"]; if(!structureInitializationStatusNode["Status"].isNull()) structureInitializationStatus_.status = structureInitializationStatusNode["Status"].asString(); if(!structureInitializationStatusNode["Percent"].isNull()) structureInitializationStatus_.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - structureInitializationStatus_.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); if(!structureInitializationStatusNode["Progress"].isNull()) structureInitializationStatus_.progress = structureInitializationStatusNode["Progress"].asString(); + if(!structureInitializationStatusNode["ErrorMessage"].isNull()) + structureInitializationStatus_.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); + auto dataInitializationStatusNode = value["DataInitializationStatus"]; + if(!dataInitializationStatusNode["Status"].isNull()) + dataInitializationStatus_.status = dataInitializationStatusNode["Status"].asString(); + if(!dataInitializationStatusNode["Percent"].isNull()) + dataInitializationStatus_.percent = dataInitializationStatusNode["Percent"].asString(); + if(!dataInitializationStatusNode["Progress"].isNull()) + dataInitializationStatus_.progress = dataInitializationStatusNode["Progress"].asString(); + if(!dataInitializationStatusNode["ErrorMessage"].isNull()) + dataInitializationStatus_.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); + auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; + if(!dataSynchronizationStatusNode["Status"].isNull()) + dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); + if(!dataSynchronizationStatusNode["Delay"].isNull()) + dataSynchronizationStatus_.delay = dataSynchronizationStatusNode["Delay"].asString(); + if(!dataSynchronizationStatusNode["Percent"].isNull()) + dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); + if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) + dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); + if(!dataSynchronizationStatusNode["Checkpoint"].isNull()) + dataSynchronizationStatus_.checkpoint = dataSynchronizationStatusNode["Checkpoint"].asString(); + auto performanceNode = value["Performance"]; + if(!performanceNode["RPS"].isNull()) + performance_.rPS = performanceNode["RPS"].asString(); + if(!performanceNode["FLOW"].isNull()) + performance_.fLOW = performanceNode["FLOW"].asString(); if(!value["SynchronizationJobName"].isNull()) synchronizationJobName_ = value["SynchronizationJobName"].asString(); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); if(!value["DataInitialization"].isNull()) dataInitialization_ = value["DataInitialization"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); if(!value["Delay"].isNull()) delay_ = value["Delay"].asString(); if(!value["ErrorMessage"].isNull()) errorMessage_ = value["ErrorMessage"].asString(); if(!value["ExpireTime"].isNull()) expireTime_ = value["ExpireTime"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["StructureInitialization"].isNull()) - structureInitialization_ = value["StructureInitialization"].asString(); if(!value["PayType"].isNull()) payType_ = value["PayType"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); + if(!value["StructureInitialization"].isNull()) + structureInitialization_ = value["StructureInitialization"].asString(); if(!value["SynchronizationJobClass"].isNull()) synchronizationJobClass_ = value["SynchronizationJobClass"].asString(); if(!value["SynchronizationJobId"].isNull()) synchronizationJobId_ = value["SynchronizationJobId"].asString(); - if(!value["DelayMillis"].isNull()) - delayMillis_ = std::stol(value["DelayMillis"].asString()); if(!value["SynchronizationDirection"].isNull()) synchronizationDirection_ = value["SynchronizationDirection"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); if(!value["Checkpoint"].isNull()) checkpoint_ = value["Checkpoint"].asString(); } +std::string DescribeSynchronizationJobStatusResult::getStatus()const +{ + return status_; +} + std::vector DescribeSynchronizationJobStatusResult::getSynchronizationObjects()const { return synchronizationObjects_; @@ -193,46 +186,6 @@ DescribeSynchronizationJobStatusResult::DataInitializationStatus DescribeSynchro return dataInitializationStatus_; } -std::string DescribeSynchronizationJobStatusResult::getTaskId()const -{ - return taskId_; -} - -std::string DescribeSynchronizationJobStatusResult::getDelay()const -{ - return delay_; -} - -std::string DescribeSynchronizationJobStatusResult::getSuccess()const -{ - return success_; -} - -long DescribeSynchronizationJobStatusResult::getDelayMillis()const -{ - return delayMillis_; -} - -std::string DescribeSynchronizationJobStatusResult::getDataInitialization()const -{ - return dataInitialization_; -} - -std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobClass()const -{ - return synchronizationJobClass_; -} - -DescribeSynchronizationJobStatusResult::DataSynchronizationStatus DescribeSynchronizationJobStatusResult::getDataSynchronizationStatus()const -{ - return dataSynchronizationStatus_; -} - -std::string DescribeSynchronizationJobStatusResult::getStatus()const -{ - return status_; -} - std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobName()const { return synchronizationJobName_; @@ -243,14 +196,9 @@ std::string DescribeSynchronizationJobStatusResult::getPayType()const return payType_; } -std::string DescribeSynchronizationJobStatusResult::getErrMessage()const +std::string DescribeSynchronizationJobStatusResult::getDelay()const { - return errMessage_; -} - -std::string DescribeSynchronizationJobStatusResult::getErrCode()const -{ - return errCode_; + return delay_; } DescribeSynchronizationJobStatusResult::PrecheckStatus DescribeSynchronizationJobStatusResult::getPrecheckStatus()const @@ -268,6 +216,11 @@ std::string DescribeSynchronizationJobStatusResult::getCheckpoint()const return checkpoint_; } +std::string DescribeSynchronizationJobStatusResult::getDataInitialization()const +{ + return dataInitialization_; +} + DescribeSynchronizationJobStatusResult::DestinationEndpoint DescribeSynchronizationJobStatusResult::getDestinationEndpoint()const { return destinationEndpoint_; @@ -298,6 +251,11 @@ std::string DescribeSynchronizationJobStatusResult::getExpireTime()const return expireTime_; } +std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobClass()const +{ + return synchronizationJobClass_; +} + std::string DescribeSynchronizationJobStatusResult::getSynchronizationDirection()const { return synchronizationDirection_; @@ -308,3 +266,8 @@ DescribeSynchronizationJobStatusResult::StructureInitializationStatus DescribeSy return structureInitializationStatus_; } +DescribeSynchronizationJobStatusResult::DataSynchronizationStatus DescribeSynchronizationJobStatusResult::getDataSynchronizationStatus()const +{ + return dataSynchronizationStatus_; +} + diff --git a/dts/src/model/DescribeSynchronizationJobsRequest.cc b/dts/src/model/DescribeSynchronizationJobsRequest.cc index 4bed13d19..5f39e2408 100644 --- a/dts/src/model/DescribeSynchronizationJobsRequest.cc +++ b/dts/src/model/DescribeSynchronizationJobsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DescribeSynchronizationJobsRequest; DescribeSynchronizationJobsRequest::DescribeSynchronizationJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationJobs") { + : RpcServiceRequest("dts", "2019-09-01", "DescribeSynchronizationJobs") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,13 @@ void DescribeSynchronizationJobsRequest::setPageNum(int pageNum) { setParameter(std::string("PageNum"), std::to_string(pageNum)); } -std::string DescribeSynchronizationJobsRequest::getAccessKeyId() const { - return accessKeyId_; +std::string DescribeSynchronizationJobsRequest::getOwnerId() const { + return ownerId_; } -void DescribeSynchronizationJobsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DescribeSynchronizationJobsRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } std::string DescribeSynchronizationJobsRequest::getSynchronizationJobName() const { @@ -61,24 +61,6 @@ void DescribeSynchronizationJobsRequest::setSynchronizationJobName(const std::st setParameter(std::string("SynchronizationJobName"), synchronizationJobName); } -std::string DescribeSynchronizationJobsRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationJobsRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationJobsRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - int DescribeSynchronizationJobsRequest::getPageSize() const { return pageSize_; } @@ -88,35 +70,3 @@ void DescribeSynchronizationJobsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } -std::vector DescribeSynchronizationJobsRequest::getTag() const { - return tag_; -} - -void DescribeSynchronizationJobsRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - -std::string DescribeSynchronizationJobsRequest::getInstFilterRegion() const { - return instFilterRegion_; -} - -void DescribeSynchronizationJobsRequest::setInstFilterRegion(const std::string &instFilterRegion) { - instFilterRegion_ = instFilterRegion; - setParameter(std::string("InstFilterRegion"), instFilterRegion); -} - -std::string DescribeSynchronizationJobsRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeSynchronizationJobsRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - diff --git a/dts/src/model/DescribeSynchronizationJobsResult.cc b/dts/src/model/DescribeSynchronizationJobsResult.cc index 894cb66b4..3ff8edec8 100644 --- a/dts/src/model/DescribeSynchronizationJobsResult.cc +++ b/dts/src/model/DescribeSynchronizationJobsResult.cc @@ -43,10 +43,10 @@ void DescribeSynchronizationJobsResult::parse(const std::string &payload) for (auto valueSynchronizationInstancesSynchronizationInstance : allSynchronizationInstancesNode) { SynchronizationInstance synchronizationInstancesObject; - if(!valueSynchronizationInstancesSynchronizationInstance["DataInitialization"].isNull()) - synchronizationInstancesObject.dataInitialization = valueSynchronizationInstancesSynchronizationInstance["DataInitialization"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["Status"].isNull()) synchronizationInstancesObject.status = valueSynchronizationInstancesSynchronizationInstance["Status"].asString(); + if(!valueSynchronizationInstancesSynchronizationInstance["DataInitialization"].isNull()) + synchronizationInstancesObject.dataInitialization = valueSynchronizationInstancesSynchronizationInstance["DataInitialization"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobName"].isNull()) synchronizationInstancesObject.synchronizationJobName = valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobName"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["Delay"].isNull()) @@ -55,32 +55,16 @@ void DescribeSynchronizationJobsResult::parse(const std::string &payload) synchronizationInstancesObject.errorMessage = valueSynchronizationInstancesSynchronizationInstance["ErrorMessage"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["ExpireTime"].isNull()) synchronizationInstancesObject.expireTime = valueSynchronizationInstancesSynchronizationInstance["ExpireTime"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["CreateTime"].isNull()) - synchronizationInstancesObject.createTime = valueSynchronizationInstancesSynchronizationInstance["CreateTime"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["PayType"].isNull()) - synchronizationInstancesObject.payType = valueSynchronizationInstancesSynchronizationInstance["PayType"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["StructureInitialization"].isNull()) - synchronizationInstancesObject.structureInitialization = valueSynchronizationInstancesSynchronizationInstance["StructureInitialization"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobClass"].isNull()) - synchronizationInstancesObject.synchronizationJobClass = valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobClass"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["InstanceCreateTime"].isNull()) - synchronizationInstancesObject.instanceCreateTime = valueSynchronizationInstancesSynchronizationInstance["InstanceCreateTime"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobId"].isNull()) synchronizationInstancesObject.synchronizationJobId = valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobId"].asString(); + if(!valueSynchronizationInstancesSynchronizationInstance["StructureInitialization"].isNull()) + synchronizationInstancesObject.structureInitialization = valueSynchronizationInstancesSynchronizationInstance["StructureInitialization"].asString(); + if(!valueSynchronizationInstancesSynchronizationInstance["PayType"].isNull()) + synchronizationInstancesObject.payType = valueSynchronizationInstancesSynchronizationInstance["PayType"].asString(); + if(!valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobClass"].isNull()) + synchronizationInstancesObject.synchronizationJobClass = valueSynchronizationInstancesSynchronizationInstance["SynchronizationJobClass"].asString(); if(!valueSynchronizationInstancesSynchronizationInstance["SynchronizationDirection"].isNull()) synchronizationInstancesObject.synchronizationDirection = valueSynchronizationInstancesSynchronizationInstance["SynchronizationDirection"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstance["JobCreateTime"].isNull()) - synchronizationInstancesObject.jobCreateTime = valueSynchronizationInstancesSynchronizationInstance["JobCreateTime"].asString(); - auto allTagsNode = valueSynchronizationInstancesSynchronizationInstance["Tags"]["Tag"]; - for (auto valueSynchronizationInstancesSynchronizationInstanceTagsTag : allTagsNode) - { - SynchronizationInstance::Tag tagsObject; - if(!valueSynchronizationInstancesSynchronizationInstanceTagsTag["Key"].isNull()) - tagsObject.key = valueSynchronizationInstancesSynchronizationInstanceTagsTag["Key"].asString(); - if(!valueSynchronizationInstancesSynchronizationInstanceTagsTag["Value"].isNull()) - tagsObject.value = valueSynchronizationInstancesSynchronizationInstanceTagsTag["Value"].asString(); - synchronizationInstancesObject.tags.push_back(tagsObject); - } auto allSynchronizationObjectsNode = valueSynchronizationInstancesSynchronizationInstance["SynchronizationObjects"]["SynchronizationObject"]; for (auto valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject : allSynchronizationObjectsNode) { @@ -89,14 +73,6 @@ void DescribeSynchronizationJobsResult::parse(const std::string &payload) synchronizationObjectsObject.newSchemaName = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["NewSchemaName"].asString(); if(!valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["SchemaName"].isNull()) synchronizationObjectsObject.schemaName = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["SchemaName"].asString(); - auto allTableExcludesNode = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["TableExcludes"]["TableExclude"]; - for (auto valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude : allTableExcludesNode) - { - SynchronizationInstance::SynchronizationObject::TableExclude tableExcludesObject; - if(!valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].isNull()) - tableExcludesObject.tableName = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].asString(); - synchronizationObjectsObject.tableExcludes.push_back(tableExcludesObject); - } auto allTableIncludesNode = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["TableIncludes"]["TableInclude"]; for (auto valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableIncludesTableInclude : allTableIncludesNode) { @@ -105,44 +81,42 @@ void DescribeSynchronizationJobsResult::parse(const std::string &payload) tableIncludesObject.tableName = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableIncludesTableInclude["TableName"].asString(); synchronizationObjectsObject.tableIncludes.push_back(tableIncludesObject); } + auto allTableExcludesNode = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObject["TableExcludes"]["TableExclude"]; + for (auto valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude : allTableExcludesNode) + { + SynchronizationInstance::SynchronizationObject::TableExclude tableExcludesObject; + if(!valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].isNull()) + tableExcludesObject.tableName = valueSynchronizationInstancesSynchronizationInstanceSynchronizationObjectsSynchronizationObjectTableExcludesTableExclude["TableName"].asString(); + synchronizationObjectsObject.tableExcludes.push_back(tableExcludesObject); + } synchronizationInstancesObject.synchronizationObjects.push_back(synchronizationObjectsObject); } - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - synchronizationInstancesObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - synchronizationInstancesObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - synchronizationInstancesObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - synchronizationInstancesObject.dataInitializationStatus.progress = dataInitializationStatusNode["Progress"].asString(); - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - synchronizationInstancesObject.dataSynchronizationStatus.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["Delay"].isNull()) - synchronizationInstancesObject.dataSynchronizationStatus.delay = dataSynchronizationStatusNode["Delay"].asString(); - if(!dataSynchronizationStatusNode["Percent"].isNull()) - synchronizationInstancesObject.dataSynchronizationStatus.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - synchronizationInstancesObject.dataSynchronizationStatus.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); + auto sourceEndpointNode = value["SourceEndpoint"]; + if(!sourceEndpointNode["InstanceId"].isNull()) + synchronizationInstancesObject.sourceEndpoint.instanceId = sourceEndpointNode["InstanceId"].asString(); + if(!sourceEndpointNode["InstanceType"].isNull()) + synchronizationInstancesObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString(); + if(!sourceEndpointNode["IP"].isNull()) + synchronizationInstancesObject.sourceEndpoint.iP = sourceEndpointNode["IP"].asString(); + if(!sourceEndpointNode["Port"].isNull()) + synchronizationInstancesObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString(); + if(!sourceEndpointNode["UserName"].isNull()) + synchronizationInstancesObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString(); + if(!sourceEndpointNode["EngineName"].isNull()) + synchronizationInstancesObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString(); auto destinationEndpointNode = value["DestinationEndpoint"]; if(!destinationEndpointNode["InstanceId"].isNull()) synchronizationInstancesObject.destinationEndpoint.instanceId = destinationEndpointNode["InstanceId"].asString(); - if(!destinationEndpointNode["IP"].isNull()) - synchronizationInstancesObject.destinationEndpoint.iP = destinationEndpointNode["IP"].asString(); if(!destinationEndpointNode["InstanceType"].isNull()) synchronizationInstancesObject.destinationEndpoint.instanceType = destinationEndpointNode["InstanceType"].asString(); + if(!destinationEndpointNode["IP"].isNull()) + synchronizationInstancesObject.destinationEndpoint.iP = destinationEndpointNode["IP"].asString(); if(!destinationEndpointNode["Port"].isNull()) synchronizationInstancesObject.destinationEndpoint.port = destinationEndpointNode["Port"].asString(); if(!destinationEndpointNode["UserName"].isNull()) synchronizationInstancesObject.destinationEndpoint.userName = destinationEndpointNode["UserName"].asString(); if(!destinationEndpointNode["EngineName"].isNull()) synchronizationInstancesObject.destinationEndpoint.engineName = destinationEndpointNode["EngineName"].asString(); - auto performanceNode = value["Performance"]; - if(!performanceNode["RPS"].isNull()) - synchronizationInstancesObject.performance.rPS = performanceNode["RPS"].asString(); - if(!performanceNode["FLOW"].isNull()) - synchronizationInstancesObject.performance.fLOW = performanceNode["FLOW"].asString(); auto precheckStatusNode = value["PrecheckStatus"]; if(!precheckStatusNode["Status"].isNull()) synchronizationInstancesObject.precheckStatus.status = precheckStatusNode["Status"].asString(); @@ -162,28 +136,38 @@ void DescribeSynchronizationJobsResult::parse(const std::string &payload) checkItemObject.repairMethod = precheckStatusNodeDetailCheckItem["RepairMethod"].asString(); synchronizationInstancesObject.precheckStatus.detail.push_back(checkItemObject); } - auto sourceEndpointNode = value["SourceEndpoint"]; - if(!sourceEndpointNode["InstanceId"].isNull()) - synchronizationInstancesObject.sourceEndpoint.instanceId = sourceEndpointNode["InstanceId"].asString(); - if(!sourceEndpointNode["IP"].isNull()) - synchronizationInstancesObject.sourceEndpoint.iP = sourceEndpointNode["IP"].asString(); - if(!sourceEndpointNode["InstanceType"].isNull()) - synchronizationInstancesObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString(); - if(!sourceEndpointNode["Port"].isNull()) - synchronizationInstancesObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString(); - if(!sourceEndpointNode["UserName"].isNull()) - synchronizationInstancesObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString(); - if(!sourceEndpointNode["EngineName"].isNull()) - synchronizationInstancesObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString(); auto structureInitializationStatusNode = value["StructureInitializationStatus"]; if(!structureInitializationStatusNode["Status"].isNull()) synchronizationInstancesObject.structureInitializationStatus.status = structureInitializationStatusNode["Status"].asString(); if(!structureInitializationStatusNode["Percent"].isNull()) synchronizationInstancesObject.structureInitializationStatus.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - synchronizationInstancesObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); if(!structureInitializationStatusNode["Progress"].isNull()) synchronizationInstancesObject.structureInitializationStatus.progress = structureInitializationStatusNode["Progress"].asString(); + if(!structureInitializationStatusNode["ErrorMessage"].isNull()) + synchronizationInstancesObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); + auto dataInitializationStatusNode = value["DataInitializationStatus"]; + if(!dataInitializationStatusNode["Status"].isNull()) + synchronizationInstancesObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString(); + if(!dataInitializationStatusNode["Percent"].isNull()) + synchronizationInstancesObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].asString(); + if(!dataInitializationStatusNode["Progress"].isNull()) + synchronizationInstancesObject.dataInitializationStatus.progress = dataInitializationStatusNode["Progress"].asString(); + if(!dataInitializationStatusNode["ErrorMessage"].isNull()) + synchronizationInstancesObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); + auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; + if(!dataSynchronizationStatusNode["Status"].isNull()) + synchronizationInstancesObject.dataSynchronizationStatus.status = dataSynchronizationStatusNode["Status"].asString(); + if(!dataSynchronizationStatusNode["Delay"].isNull()) + synchronizationInstancesObject.dataSynchronizationStatus.delay = dataSynchronizationStatusNode["Delay"].asString(); + if(!dataSynchronizationStatusNode["Percent"].isNull()) + synchronizationInstancesObject.dataSynchronizationStatus.percent = dataSynchronizationStatusNode["Percent"].asString(); + if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) + synchronizationInstancesObject.dataSynchronizationStatus.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); + auto performanceNode = value["Performance"]; + if(!performanceNode["RPS"].isNull()) + synchronizationInstancesObject.performance.rPS = performanceNode["RPS"].asString(); + if(!performanceNode["FLOW"].isNull()) + synchronizationInstancesObject.performance.fLOW = performanceNode["FLOW"].asString(); synchronizationInstances_.push_back(synchronizationInstancesObject); } if(!value["PageNumber"].isNull()) diff --git a/dts/src/model/DescribeSynchronizationObjectModifyStatusRequest.cc b/dts/src/model/DescribeSynchronizationObjectModifyStatusRequest.cc index 8c2af4f2b..58826c0fe 100644 --- a/dts/src/model/DescribeSynchronizationObjectModifyStatusRequest.cc +++ b/dts/src/model/DescribeSynchronizationObjectModifyStatusRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::DescribeSynchronizationObjectModifyStatusRequest; DescribeSynchronizationObjectModifyStatusRequest::DescribeSynchronizationObjectModifyStatusRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeSynchronizationObjectModifyStatus") { + : RpcServiceRequest("dts", "2019-09-01", "DescribeSynchronizationObjectModifyStatus") { setMethod(HttpRequest::Method::Post); } @@ -43,33 +43,6 @@ void DescribeSynchronizationObjectModifyStatusRequest::setOwnerId(const std::str setParameter(std::string("OwnerId"), ownerId); } -std::string DescribeSynchronizationObjectModifyStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeSynchronizationObjectModifyStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeSynchronizationObjectModifyStatusRequest::getAccountId() const { - return accountId_; -} - -void DescribeSynchronizationObjectModifyStatusRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string DescribeSynchronizationObjectModifyStatusRequest::getRegionId() const { - return regionId_; -} - -void DescribeSynchronizationObjectModifyStatusRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string DescribeSynchronizationObjectModifyStatusRequest::getTaskId() const { return taskId_; } diff --git a/dts/src/model/DescribeSynchronizationObjectModifyStatusResult.cc b/dts/src/model/DescribeSynchronizationObjectModifyStatusResult.cc index 4e3838ff1..a5294871c 100644 --- a/dts/src/model/DescribeSynchronizationObjectModifyStatusResult.cc +++ b/dts/src/model/DescribeSynchronizationObjectModifyStatusResult.cc @@ -39,24 +39,6 @@ void DescribeSynchronizationObjectModifyStatusResult::parse(const std::string &p Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto dataInitializationStatusNode = value["DataInitializationStatus"]; - if(!dataInitializationStatusNode["Status"].isNull()) - dataInitializationStatus_.status = dataInitializationStatusNode["Status"].asString(); - if(!dataInitializationStatusNode["Percent"].isNull()) - dataInitializationStatus_.percent = dataInitializationStatusNode["Percent"].asString(); - if(!dataInitializationStatusNode["ErrorMessage"].isNull()) - dataInitializationStatus_.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); - if(!dataInitializationStatusNode["Progress"].isNull()) - dataInitializationStatus_.progress = dataInitializationStatusNode["Progress"].asString(); - auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; - if(!dataSynchronizationStatusNode["Status"].isNull()) - dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); - if(!dataSynchronizationStatusNode["Delay"].isNull()) - dataSynchronizationStatus_.delay = dataSynchronizationStatusNode["Delay"].asString(); - if(!dataSynchronizationStatusNode["Percent"].isNull()) - dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); - if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) - dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); auto precheckStatusNode = value["PrecheckStatus"]; if(!precheckStatusNode["Status"].isNull()) precheckStatus_.status = precheckStatusNode["Status"].asString(); @@ -81,20 +63,32 @@ void DescribeSynchronizationObjectModifyStatusResult::parse(const std::string &p structureInitializationStatus_.status = structureInitializationStatusNode["Status"].asString(); if(!structureInitializationStatusNode["Percent"].isNull()) structureInitializationStatus_.percent = structureInitializationStatusNode["Percent"].asString(); - if(!structureInitializationStatusNode["ErrorMessage"].isNull()) - structureInitializationStatus_.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); if(!structureInitializationStatusNode["Progress"].isNull()) structureInitializationStatus_.progress = structureInitializationStatusNode["Progress"].asString(); + if(!structureInitializationStatusNode["ErrorMessage"].isNull()) + structureInitializationStatus_.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString(); + auto dataInitializationStatusNode = value["DataInitializationStatus"]; + if(!dataInitializationStatusNode["Status"].isNull()) + dataInitializationStatus_.status = dataInitializationStatusNode["Status"].asString(); + if(!dataInitializationStatusNode["Percent"].isNull()) + dataInitializationStatus_.percent = dataInitializationStatusNode["Percent"].asString(); + if(!dataInitializationStatusNode["Progress"].isNull()) + dataInitializationStatus_.progress = dataInitializationStatusNode["Progress"].asString(); + if(!dataInitializationStatusNode["ErrorMessage"].isNull()) + dataInitializationStatus_.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString(); + auto dataSynchronizationStatusNode = value["DataSynchronizationStatus"]; + if(!dataSynchronizationStatusNode["Status"].isNull()) + dataSynchronizationStatus_.status = dataSynchronizationStatusNode["Status"].asString(); + if(!dataSynchronizationStatusNode["Delay"].isNull()) + dataSynchronizationStatus_.delay = dataSynchronizationStatusNode["Delay"].asString(); + if(!dataSynchronizationStatusNode["Percent"].isNull()) + dataSynchronizationStatus_.percent = dataSynchronizationStatusNode["Percent"].asString(); + if(!dataSynchronizationStatusNode["ErrorMessage"].isNull()) + dataSynchronizationStatus_.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); if(!value["ErrorMessage"].isNull()) errorMessage_ = value["ErrorMessage"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); } @@ -118,14 +112,9 @@ std::string DescribeSynchronizationObjectModifyStatusResult::getErrorMessage()co return errorMessage_; } -std::string DescribeSynchronizationObjectModifyStatusResult::getErrMessage()const +DescribeSynchronizationObjectModifyStatusResult::StructureInitializationStatus DescribeSynchronizationObjectModifyStatusResult::getStructureInitializationStatus()const { - return errMessage_; -} - -std::string DescribeSynchronizationObjectModifyStatusResult::getSuccess()const -{ - return success_; + return structureInitializationStatus_; } DescribeSynchronizationObjectModifyStatusResult::DataSynchronizationStatus DescribeSynchronizationObjectModifyStatusResult::getDataSynchronizationStatus()const @@ -133,13 +122,3 @@ DescribeSynchronizationObjectModifyStatusResult::DataSynchronizationStatus Descr return dataSynchronizationStatus_; } -DescribeSynchronizationObjectModifyStatusResult::StructureInitializationStatus DescribeSynchronizationObjectModifyStatusResult::getStructureInitializationStatus()const -{ - return structureInitializationStatus_; -} - -std::string DescribeSynchronizationObjectModifyStatusResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/DescribeTagKeysRequest.cc b/dts/src/model/DescribeTagKeysRequest.cc deleted file mode 100644 index 1a78ce7e6..000000000 --- a/dts/src/model/DescribeTagKeysRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeTagKeysRequest; - -DescribeTagKeysRequest::DescribeTagKeysRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeTagKeys") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTagKeysRequest::~DescribeTagKeysRequest() {} - -int DescribeTagKeysRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeTagKeysRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeTagKeysRequest::getRegionId() const { - return regionId_; -} - -void DescribeTagKeysRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeTagKeysRequest::getPageSize() const { - return pageSize_; -} - -void DescribeTagKeysRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeTagKeysRequest::getResourceId() const { - return resourceId_; -} - -void DescribeTagKeysRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string DescribeTagKeysRequest::getResourceType() const { - return resourceType_; -} - -void DescribeTagKeysRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string DescribeTagKeysRequest::getCategory() const { - return category_; -} - -void DescribeTagKeysRequest::setCategory(const std::string &category) { - category_ = category; - setParameter(std::string("Category"), category); -} - diff --git a/dts/src/model/DescribeTagKeysResult.cc b/dts/src/model/DescribeTagKeysResult.cc deleted file mode 100644 index d196d7ebc..000000000 --- a/dts/src/model/DescribeTagKeysResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeTagKeysResult::DescribeTagKeysResult() : - ServiceResult() -{} - -DescribeTagKeysResult::DescribeTagKeysResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTagKeysResult::~DescribeTagKeysResult() -{} - -void DescribeTagKeysResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagKeys = value["TagKeys"]["TagKey"]; - for (const auto &item : allTagKeys) - tagKeys_.push_back(item.asString()); - if(!value["Category"].isNull()) - category_ = value["Category"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int DescribeTagKeysResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeTagKeysResult::getCategory()const -{ - return category_; -} - -int DescribeTagKeysResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTagKeysResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeTagKeysResult::getTagKeys()const -{ - return tagKeys_; -} - diff --git a/dts/src/model/DescribeTagValuesRequest.cc b/dts/src/model/DescribeTagValuesRequest.cc deleted file mode 100644 index 756e9fd1a..000000000 --- a/dts/src/model/DescribeTagValuesRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::DescribeTagValuesRequest; - -DescribeTagValuesRequest::DescribeTagValuesRequest() - : RpcServiceRequest("dts", "2020-01-01", "DescribeTagValues") { - setMethod(HttpRequest::Method::Post); -} - -DescribeTagValuesRequest::~DescribeTagValuesRequest() {} - -int DescribeTagValuesRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeTagValuesRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeTagValuesRequest::getRegionId() const { - return regionId_; -} - -void DescribeTagValuesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeTagValuesRequest::getPageSize() const { - return pageSize_; -} - -void DescribeTagValuesRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeTagValuesRequest::getKey() const { - return key_; -} - -void DescribeTagValuesRequest::setKey(const std::string &key) { - key_ = key; - setParameter(std::string("Key"), key); -} - -std::string DescribeTagValuesRequest::getResourceId() const { - return resourceId_; -} - -void DescribeTagValuesRequest::setResourceId(const std::string &resourceId) { - resourceId_ = resourceId; - setParameter(std::string("ResourceId"), resourceId); -} - -std::string DescribeTagValuesRequest::getResourceType() const { - return resourceType_; -} - -void DescribeTagValuesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::string DescribeTagValuesRequest::getCategory() const { - return category_; -} - -void DescribeTagValuesRequest::setCategory(const std::string &category) { - category_ = category; - setParameter(std::string("Category"), category); -} - diff --git a/dts/src/model/DescribeTagValuesResult.cc b/dts/src/model/DescribeTagValuesResult.cc deleted file mode 100644 index 52aadef67..000000000 --- a/dts/src/model/DescribeTagValuesResult.cc +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -DescribeTagValuesResult::DescribeTagValuesResult() : - ServiceResult() -{} - -DescribeTagValuesResult::DescribeTagValuesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTagValuesResult::~DescribeTagValuesResult() -{} - -void DescribeTagValuesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagValues = value["TagValues"]["TagValue"]; - for (const auto &item : allTagValues) - tagValues_.push_back(item.asString()); - if(!value["Category"].isNull()) - category_ = value["Category"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int DescribeTagValuesResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeTagValuesResult::getCategory()const -{ - return category_; -} - -int DescribeTagValuesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTagValuesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector DescribeTagValuesResult::getTagValues()const -{ - return tagValues_; -} - diff --git a/dts/src/model/InitDtsRdsInstanceRequest.cc b/dts/src/model/InitDtsRdsInstanceRequest.cc deleted file mode 100644 index 94b8e30c4..000000000 --- a/dts/src/model/InitDtsRdsInstanceRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::InitDtsRdsInstanceRequest; - -InitDtsRdsInstanceRequest::InitDtsRdsInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "InitDtsRdsInstance") { - setMethod(HttpRequest::Method::Post); -} - -InitDtsRdsInstanceRequest::~InitDtsRdsInstanceRequest() {} - -std::string InitDtsRdsInstanceRequest::getEndpointInstanceId() const { - return endpointInstanceId_; -} - -void InitDtsRdsInstanceRequest::setEndpointInstanceId(const std::string &endpointInstanceId) { - endpointInstanceId_ = endpointInstanceId; - setParameter(std::string("EndpointInstanceId"), endpointInstanceId); -} - -std::string InitDtsRdsInstanceRequest::getEndpointRegion() const { - return endpointRegion_; -} - -void InitDtsRdsInstanceRequest::setEndpointRegion(const std::string &endpointRegion) { - endpointRegion_ = endpointRegion; - setParameter(std::string("EndpointRegion"), endpointRegion); -} - -std::string InitDtsRdsInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void InitDtsRdsInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string InitDtsRdsInstanceRequest::getRegionId() const { - return regionId_; -} - -void InitDtsRdsInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string InitDtsRdsInstanceRequest::getEndpointCenId() const { - return endpointCenId_; -} - -void InitDtsRdsInstanceRequest::setEndpointCenId(const std::string &endpointCenId) { - endpointCenId_ = endpointCenId; - setParameter(std::string("EndpointCenId"), endpointCenId); -} - -std::string InitDtsRdsInstanceRequest::getEndpointInstanceType() const { - return endpointInstanceType_; -} - -void InitDtsRdsInstanceRequest::setEndpointInstanceType(const std::string &endpointInstanceType) { - endpointInstanceType_ = endpointInstanceType; - setParameter(std::string("EndpointInstanceType"), endpointInstanceType); -} - -std::string InitDtsRdsInstanceRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void InitDtsRdsInstanceRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/InitDtsRdsInstanceResult.cc b/dts/src/model/InitDtsRdsInstanceResult.cc deleted file mode 100644 index 263ced3a9..000000000 --- a/dts/src/model/InitDtsRdsInstanceResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -InitDtsRdsInstanceResult::InitDtsRdsInstanceResult() : - ServiceResult() -{} - -InitDtsRdsInstanceResult::InitDtsRdsInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -InitDtsRdsInstanceResult::~InitDtsRdsInstanceResult() -{} - -void InitDtsRdsInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["AdminAccount"].isNull()) - adminAccount_ = value["AdminAccount"].asString(); - if(!value["AdminPassword"].isNull()) - adminPassword_ = value["AdminPassword"].asString(); - -} - -std::string InitDtsRdsInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string InitDtsRdsInstanceResult::getAdminAccount()const -{ - return adminAccount_; -} - -std::string InitDtsRdsInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string InitDtsRdsInstanceResult::getSuccess()const -{ - return success_; -} - -std::string InitDtsRdsInstanceResult::getAdminPassword()const -{ - return adminPassword_; -} - -std::string InitDtsRdsInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ListDedicatedClusterRequest.cc b/dts/src/model/ListDedicatedClusterRequest.cc deleted file mode 100644 index 1b69843a2..000000000 --- a/dts/src/model/ListDedicatedClusterRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ListDedicatedClusterRequest; - -ListDedicatedClusterRequest::ListDedicatedClusterRequest() - : RpcServiceRequest("dts", "2020-01-01", "ListDedicatedCluster") { - setMethod(HttpRequest::Method::Post); -} - -ListDedicatedClusterRequest::~ListDedicatedClusterRequest() {} - -std::string ListDedicatedClusterRequest::getOrderDirection() const { - return orderDirection_; -} - -void ListDedicatedClusterRequest::setOrderDirection(const std::string &orderDirection) { - orderDirection_ = orderDirection; - setParameter(std::string("OrderDirection"), orderDirection); -} - -std::string ListDedicatedClusterRequest::getType() const { - return type_; -} - -void ListDedicatedClusterRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -int ListDedicatedClusterRequest::getPageNumber() const { - return pageNumber_; -} - -void ListDedicatedClusterRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string ListDedicatedClusterRequest::getOrderColumn() const { - return orderColumn_; -} - -void ListDedicatedClusterRequest::setOrderColumn(const std::string &orderColumn) { - orderColumn_ = orderColumn; - setParameter(std::string("OrderColumn"), orderColumn); -} - -std::string ListDedicatedClusterRequest::getRegionId() const { - return regionId_; -} - -void ListDedicatedClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int ListDedicatedClusterRequest::getPageSize() const { - return pageSize_; -} - -void ListDedicatedClusterRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string ListDedicatedClusterRequest::getState() const { - return state_; -} - -void ListDedicatedClusterRequest::setState(const std::string &state) { - state_ = state; - setParameter(std::string("State"), state); -} - -std::string ListDedicatedClusterRequest::getOwnerId() const { - return ownerId_; -} - -void ListDedicatedClusterRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ListDedicatedClusterRequest::getParams() const { - return params_; -} - -void ListDedicatedClusterRequest::setParams(const std::string ¶ms) { - params_ = params; - setParameter(std::string("Params"), params); -} - diff --git a/dts/src/model/ListDedicatedClusterResult.cc b/dts/src/model/ListDedicatedClusterResult.cc deleted file mode 100644 index 970e34ea6..000000000 --- a/dts/src/model/ListDedicatedClusterResult.cc +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ListDedicatedClusterResult::ListDedicatedClusterResult() : - ServiceResult() -{} - -ListDedicatedClusterResult::ListDedicatedClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListDedicatedClusterResult::~ListDedicatedClusterResult() -{} - -void ListDedicatedClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDedicatedClusterStatusListNode = value["DedicatedClusterStatusList"]["DedicatedClusterStatus"]; - for (auto valueDedicatedClusterStatusListDedicatedClusterStatus : allDedicatedClusterStatusListNode) - { - DedicatedClusterStatus dedicatedClusterStatusListObject; - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["DtsInstanceID"].isNull()) - dedicatedClusterStatusListObject.dtsInstanceID = valueDedicatedClusterStatusListDedicatedClusterStatus["DtsInstanceID"].asString(); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["DedicatedClusterId"].isNull()) - dedicatedClusterStatusListObject.dedicatedClusterId = valueDedicatedClusterStatusListDedicatedClusterStatus["DedicatedClusterId"].asString(); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["DedicatedClusterName"].isNull()) - dedicatedClusterStatusListObject.dedicatedClusterName = valueDedicatedClusterStatusListDedicatedClusterStatus["DedicatedClusterName"].asString(); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["Du"].isNull()) - dedicatedClusterStatusListObject.du = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["Du"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["OversoldDu"].isNull()) - dedicatedClusterStatusListObject.oversoldDu = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["OversoldDu"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["UsedDu"].isNull()) - dedicatedClusterStatusListObject.usedDu = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["UsedDu"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["State"].isNull()) - dedicatedClusterStatusListObject.state = valueDedicatedClusterStatusListDedicatedClusterStatus["State"].asString(); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["RegionId"].isNull()) - dedicatedClusterStatusListObject.regionId = valueDedicatedClusterStatusListDedicatedClusterStatus["RegionId"].asString(); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["GmtCreated"].isNull()) - dedicatedClusterStatusListObject.gmtCreated = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["GmtCreated"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["NodeCount"].isNull()) - dedicatedClusterStatusListObject.nodeCount = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["NodeCount"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["DuUtilization"].isNull()) - dedicatedClusterStatusListObject.duUtilization = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["DuUtilization"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["CpuUtilization"].isNull()) - dedicatedClusterStatusListObject.cpuUtilization = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["CpuUtilization"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["TotalCpuCore"].isNull()) - dedicatedClusterStatusListObject.totalCpuCore = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["TotalCpuCore"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["UsedCpuCore"].isNull()) - dedicatedClusterStatusListObject.usedCpuCore = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["UsedCpuCore"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["MemUtilization"].isNull()) - dedicatedClusterStatusListObject.memUtilization = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["MemUtilization"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["TotalMemGBSize"].isNull()) - dedicatedClusterStatusListObject.totalMemGBSize = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["TotalMemGBSize"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["UsedMemGBSize"].isNull()) - dedicatedClusterStatusListObject.usedMemGBSize = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["UsedMemGBSize"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["DiskUtilization"].isNull()) - dedicatedClusterStatusListObject.diskUtilization = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["DiskUtilization"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["TotalDiskGBSize"].isNull()) - dedicatedClusterStatusListObject.totalDiskGBSize = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["TotalDiskGBSize"].asString()); - if(!valueDedicatedClusterStatusListDedicatedClusterStatus["UsedDiskGBSize"].isNull()) - dedicatedClusterStatusListObject.usedDiskGBSize = std::stol(valueDedicatedClusterStatusListDedicatedClusterStatus["UsedDiskGBSize"].asString()); - dedicatedClusterStatusList_.push_back(dedicatedClusterStatusListObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - -} - -int ListDedicatedClusterResult::getTotalRecordCount()const -{ - return totalRecordCount_; -} - -int ListDedicatedClusterResult::getPageRecordCount()const -{ - return pageRecordCount_; -} - -int ListDedicatedClusterResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListDedicatedClusterResult::getDedicatedClusterStatusList()const -{ - return dedicatedClusterStatusList_; -} - -std::string ListDedicatedClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListDedicatedClusterResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ListDedicatedClusterResult::getSuccess()const -{ - return success_; -} - -std::string ListDedicatedClusterResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ListTagResourcesRequest.cc b/dts/src/model/ListTagResourcesRequest.cc deleted file mode 100644 index 8ae8684c7..000000000 --- a/dts/src/model/ListTagResourcesRequest.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() - : RpcServiceRequest("dts", "2020-01-01", "ListTagResources") { - setMethod(HttpRequest::Method::Post); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() {} - -std::string ListTagResourcesRequest::getRegionId() const { - return regionId_; -} - -void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ListTagResourcesRequest::getNextToken() const { - return nextToken_; -} - -void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { - nextToken_ = nextToken; - setParameter(std::string("NextToken"), nextToken); -} - -std::vector ListTagResourcesRequest::getTag() const { - return tag_; -} - -void ListTagResourcesRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - -std::vector ListTagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string ListTagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - diff --git a/dts/src/model/ListTagResourcesResult.cc b/dts/src/model/ListTagResourcesResult.cc deleted file mode 100644 index 741a59345..000000000 --- a/dts/src/model/ListTagResourcesResult.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ListTagResourcesResult::ListTagResourcesResult() : - ServiceResult() -{} - -ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListTagResourcesResult::~ListTagResourcesResult() -{} - -void ListTagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTagResourcesNode = value["TagResources"]["TagResource"]; - for (auto valueTagResourcesTagResource : allTagResourcesNode) - { - TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagValue"].isNull()) - tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); - if(!valueTagResourcesTagResource["ResourceType"].isNull()) - tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); - if(!valueTagResourcesTagResource["ResourceId"].isNull()) - tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); - tagResources_.push_back(tagResourcesObject); - } - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ListTagResourcesResult::getNextToken()const -{ - return nextToken_; -} - -std::vector ListTagResourcesResult::getTagResources()const -{ - return tagResources_; -} - -std::string ListTagResourcesResult::getErrMessage()const -{ - return errMessage_; -} - -bool ListTagResourcesResult::getSuccess()const -{ - return success_; -} - -std::string ListTagResourcesResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyConsumerChannelRequest.cc b/dts/src/model/ModifyConsumerChannelRequest.cc deleted file mode 100644 index 7b546e41e..000000000 --- a/dts/src/model/ModifyConsumerChannelRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyConsumerChannelRequest; - -ModifyConsumerChannelRequest::ModifyConsumerChannelRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyConsumerChannel") { - setMethod(HttpRequest::Method::Post); -} - -ModifyConsumerChannelRequest::~ModifyConsumerChannelRequest() {} - -std::string ModifyConsumerChannelRequest::getConsumerGroupId() const { - return consumerGroupId_; -} - -void ModifyConsumerChannelRequest::setConsumerGroupId(const std::string &consumerGroupId) { - consumerGroupId_ = consumerGroupId; - setParameter(std::string("ConsumerGroupId"), consumerGroupId); -} - -std::string ModifyConsumerChannelRequest::getConsumerGroupPassword() const { - return consumerGroupPassword_; -} - -void ModifyConsumerChannelRequest::setConsumerGroupPassword(const std::string &consumerGroupPassword) { - consumerGroupPassword_ = consumerGroupPassword; - setParameter(std::string("ConsumerGroupPassword"), consumerGroupPassword); -} - -std::string ModifyConsumerChannelRequest::getConsumerGroupUserName() const { - return consumerGroupUserName_; -} - -void ModifyConsumerChannelRequest::setConsumerGroupUserName(const std::string &consumerGroupUserName) { - consumerGroupUserName_ = consumerGroupUserName; - setParameter(std::string("ConsumerGroupUserName"), consumerGroupUserName); -} - -std::string ModifyConsumerChannelRequest::getRegionId() const { - return regionId_; -} - -void ModifyConsumerChannelRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyConsumerChannelRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ModifyConsumerChannelRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ModifyConsumerChannelRequest::getConsumerGroupName() const { - return consumerGroupName_; -} - -void ModifyConsumerChannelRequest::setConsumerGroupName(const std::string &consumerGroupName) { - consumerGroupName_ = consumerGroupName; - setParameter(std::string("ConsumerGroupName"), consumerGroupName); -} - -std::string ModifyConsumerChannelRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ModifyConsumerChannelRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/ModifyConsumerChannelResult.cc b/dts/src/model/ModifyConsumerChannelResult.cc deleted file mode 100644 index f1af2397e..000000000 --- a/dts/src/model/ModifyConsumerChannelResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyConsumerChannelResult::ModifyConsumerChannelResult() : - ServiceResult() -{} - -ModifyConsumerChannelResult::ModifyConsumerChannelResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyConsumerChannelResult::~ModifyConsumerChannelResult() -{} - -void ModifyConsumerChannelResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ModifyConsumerChannelResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyConsumerChannelResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyConsumerChannelResult::getSuccess()const -{ - return success_; -} - -std::string ModifyConsumerChannelResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyConsumerGroupPasswordRequest.cc b/dts/src/model/ModifyConsumerGroupPasswordRequest.cc deleted file mode 100644 index d26699961..000000000 --- a/dts/src/model/ModifyConsumerGroupPasswordRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyConsumerGroupPasswordRequest; - -ModifyConsumerGroupPasswordRequest::ModifyConsumerGroupPasswordRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyConsumerGroupPassword") { - setMethod(HttpRequest::Method::Post); -} - -ModifyConsumerGroupPasswordRequest::~ModifyConsumerGroupPasswordRequest() {} - -std::string ModifyConsumerGroupPasswordRequest::getConsumerGroupID() const { - return consumerGroupID_; -} - -void ModifyConsumerGroupPasswordRequest::setConsumerGroupID(const std::string &consumerGroupID) { - consumerGroupID_ = consumerGroupID; - setParameter(std::string("ConsumerGroupID"), consumerGroupID); -} - -std::string ModifyConsumerGroupPasswordRequest::getConsumerGroupPassword() const { - return consumerGroupPassword_; -} - -void ModifyConsumerGroupPasswordRequest::setConsumerGroupPassword(const std::string &consumerGroupPassword) { - consumerGroupPassword_ = consumerGroupPassword; - setParameter(std::string("ConsumerGroupPassword"), consumerGroupPassword); -} - -std::string ModifyConsumerGroupPasswordRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyConsumerGroupPasswordRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyConsumerGroupPasswordRequest::getAccountId() const { - return accountId_; -} - -void ModifyConsumerGroupPasswordRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ModifyConsumerGroupPasswordRequest::getConsumerGroupUserName() const { - return consumerGroupUserName_; -} - -void ModifyConsumerGroupPasswordRequest::setConsumerGroupUserName(const std::string &consumerGroupUserName) { - consumerGroupUserName_ = consumerGroupUserName; - setParameter(std::string("ConsumerGroupUserName"), consumerGroupUserName); -} - -std::string ModifyConsumerGroupPasswordRequest::getRegionId() const { - return regionId_; -} - -void ModifyConsumerGroupPasswordRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyConsumerGroupPasswordRequest::getConsumerGroupName() const { - return consumerGroupName_; -} - -void ModifyConsumerGroupPasswordRequest::setConsumerGroupName(const std::string &consumerGroupName) { - consumerGroupName_ = consumerGroupName; - setParameter(std::string("ConsumerGroupName"), consumerGroupName); -} - -std::string ModifyConsumerGroupPasswordRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void ModifyConsumerGroupPasswordRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string ModifyConsumerGroupPasswordRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyConsumerGroupPasswordRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifyConsumerGroupPasswordRequest::getConsumerGroupNewPassword() const { - return consumerGroupNewPassword_; -} - -void ModifyConsumerGroupPasswordRequest::setConsumerGroupNewPassword(const std::string &consumerGroupNewPassword) { - consumerGroupNewPassword_ = consumerGroupNewPassword; - setParameter(std::string("consumerGroupNewPassword"), consumerGroupNewPassword); -} - diff --git a/dts/src/model/ModifyConsumerGroupPasswordResult.cc b/dts/src/model/ModifyConsumerGroupPasswordResult.cc deleted file mode 100644 index 14d5e4da7..000000000 --- a/dts/src/model/ModifyConsumerGroupPasswordResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyConsumerGroupPasswordResult::ModifyConsumerGroupPasswordResult() : - ServiceResult() -{} - -ModifyConsumerGroupPasswordResult::ModifyConsumerGroupPasswordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyConsumerGroupPasswordResult::~ModifyConsumerGroupPasswordResult() -{} - -void ModifyConsumerGroupPasswordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ModifyConsumerGroupPasswordResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyConsumerGroupPasswordResult::getSuccess()const -{ - return success_; -} - -std::string ModifyConsumerGroupPasswordResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyConsumptionTimestampRequest.cc b/dts/src/model/ModifyConsumptionTimestampRequest.cc deleted file mode 100644 index cabefda0d..000000000 --- a/dts/src/model/ModifyConsumptionTimestampRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyConsumptionTimestampRequest; - -ModifyConsumptionTimestampRequest::ModifyConsumptionTimestampRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyConsumptionTimestamp") { - setMethod(HttpRequest::Method::Post); -} - -ModifyConsumptionTimestampRequest::~ModifyConsumptionTimestampRequest() {} - -std::string ModifyConsumptionTimestampRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void ModifyConsumptionTimestampRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string ModifyConsumptionTimestampRequest::getConsumptionTimestamp() const { - return consumptionTimestamp_; -} - -void ModifyConsumptionTimestampRequest::setConsumptionTimestamp(const std::string &consumptionTimestamp) { - consumptionTimestamp_ = consumptionTimestamp; - setParameter(std::string("ConsumptionTimestamp"), consumptionTimestamp); -} - -std::string ModifyConsumptionTimestampRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyConsumptionTimestampRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifyConsumptionTimestampRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyConsumptionTimestampRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyConsumptionTimestampRequest::getAccountId() const { - return accountId_; -} - -void ModifyConsumptionTimestampRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ModifyConsumptionTimestampRequest::getRegionId() const { - return regionId_; -} - -void ModifyConsumptionTimestampRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/ModifyConsumptionTimestampResult.cc b/dts/src/model/ModifyConsumptionTimestampResult.cc deleted file mode 100644 index cdfc96c58..000000000 --- a/dts/src/model/ModifyConsumptionTimestampResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyConsumptionTimestampResult::ModifyConsumptionTimestampResult() : - ServiceResult() -{} - -ModifyConsumptionTimestampResult::ModifyConsumptionTimestampResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyConsumptionTimestampResult::~ModifyConsumptionTimestampResult() -{} - -void ModifyConsumptionTimestampResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ModifyConsumptionTimestampResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyConsumptionTimestampResult::getSuccess()const -{ - return success_; -} - -std::string ModifyConsumptionTimestampResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDedicatedClusterRequest.cc b/dts/src/model/ModifyDedicatedClusterRequest.cc deleted file mode 100644 index 563173071..000000000 --- a/dts/src/model/ModifyDedicatedClusterRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDedicatedClusterRequest; - -ModifyDedicatedClusterRequest::ModifyDedicatedClusterRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDedicatedCluster") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDedicatedClusterRequest::~ModifyDedicatedClusterRequest() {} - -std::string ModifyDedicatedClusterRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void ModifyDedicatedClusterRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string ModifyDedicatedClusterRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDedicatedClusterRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifyDedicatedClusterRequest::getDedicatedClusterName() const { - return dedicatedClusterName_; -} - -void ModifyDedicatedClusterRequest::setDedicatedClusterName(const std::string &dedicatedClusterName) { - dedicatedClusterName_ = dedicatedClusterName; - setParameter(std::string("DedicatedClusterName"), dedicatedClusterName); -} - -std::string ModifyDedicatedClusterRequest::getInstanceId() const { - return instanceId_; -} - -void ModifyDedicatedClusterRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ModifyDedicatedClusterRequest::getRegionId() const { - return regionId_; -} - -void ModifyDedicatedClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int ModifyDedicatedClusterRequest::getOversoldRatio() const { - return oversoldRatio_; -} - -void ModifyDedicatedClusterRequest::setOversoldRatio(int oversoldRatio) { - oversoldRatio_ = oversoldRatio; - setParameter(std::string("OversoldRatio"), std::to_string(oversoldRatio)); -} - diff --git a/dts/src/model/ModifyDedicatedClusterResult.cc b/dts/src/model/ModifyDedicatedClusterResult.cc deleted file mode 100644 index 7a4d19d28..000000000 --- a/dts/src/model/ModifyDedicatedClusterResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDedicatedClusterResult::ModifyDedicatedClusterResult() : - ServiceResult() -{} - -ModifyDedicatedClusterResult::ModifyDedicatedClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDedicatedClusterResult::~ModifyDedicatedClusterResult() -{} - -void ModifyDedicatedClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DedicatedClusterId"].isNull()) - dedicatedClusterId_ = value["DedicatedClusterId"].asString(); - -} - -std::string ModifyDedicatedClusterResult::getDedicatedClusterId()const -{ - return dedicatedClusterId_; -} - -std::string ModifyDedicatedClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyDedicatedClusterResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyDedicatedClusterResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDedicatedClusterResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDtsJobDedicatedClusterRequest.cc b/dts/src/model/ModifyDtsJobDedicatedClusterRequest.cc deleted file mode 100644 index 203b205a3..000000000 --- a/dts/src/model/ModifyDtsJobDedicatedClusterRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDtsJobDedicatedClusterRequest; - -ModifyDtsJobDedicatedClusterRequest::ModifyDtsJobDedicatedClusterRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobDedicatedCluster") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDtsJobDedicatedClusterRequest::~ModifyDtsJobDedicatedClusterRequest() {} - -std::string ModifyDtsJobDedicatedClusterRequest::getDtsJobIds() const { - return dtsJobIds_; -} - -void ModifyDtsJobDedicatedClusterRequest::setDtsJobIds(const std::string &dtsJobIds) { - dtsJobIds_ = dtsJobIds; - setParameter(std::string("DtsJobIds"), dtsJobIds); -} - -std::string ModifyDtsJobDedicatedClusterRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void ModifyDtsJobDedicatedClusterRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string ModifyDtsJobDedicatedClusterRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDtsJobDedicatedClusterRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifyDtsJobDedicatedClusterRequest::getRegionId() const { - return regionId_; -} - -void ModifyDtsJobDedicatedClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/ModifyDtsJobDedicatedClusterResult.cc b/dts/src/model/ModifyDtsJobDedicatedClusterResult.cc deleted file mode 100644 index 0ec58acea..000000000 --- a/dts/src/model/ModifyDtsJobDedicatedClusterResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDtsJobDedicatedClusterResult::ModifyDtsJobDedicatedClusterResult() : - ServiceResult() -{} - -ModifyDtsJobDedicatedClusterResult::ModifyDtsJobDedicatedClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDtsJobDedicatedClusterResult::~ModifyDtsJobDedicatedClusterResult() -{} - -void ModifyDtsJobDedicatedClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - -} - -long ModifyDtsJobDedicatedClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyDtsJobDedicatedClusterResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string ModifyDtsJobDedicatedClusterResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyDtsJobDedicatedClusterResult::getCode()const -{ - return code_; -} - -bool ModifyDtsJobDedicatedClusterResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDtsJobDedicatedClusterResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDtsJobDuLimitRequest.cc b/dts/src/model/ModifyDtsJobDuLimitRequest.cc deleted file mode 100644 index 279018b8f..000000000 --- a/dts/src/model/ModifyDtsJobDuLimitRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDtsJobDuLimitRequest; - -ModifyDtsJobDuLimitRequest::ModifyDtsJobDuLimitRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobDuLimit") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDtsJobDuLimitRequest::~ModifyDtsJobDuLimitRequest() {} - -std::string ModifyDtsJobDuLimitRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDtsJobDuLimitRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -long ModifyDtsJobDuLimitRequest::getDuLimit() const { - return duLimit_; -} - -void ModifyDtsJobDuLimitRequest::setDuLimit(long duLimit) { - duLimit_ = duLimit; - setParameter(std::string("DuLimit"), std::to_string(duLimit)); -} - -std::string ModifyDtsJobDuLimitRequest::getRegionId() const { - return regionId_; -} - -void ModifyDtsJobDuLimitRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyDtsJobDuLimitRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ModifyDtsJobDuLimitRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - diff --git a/dts/src/model/ModifyDtsJobDuLimitResult.cc b/dts/src/model/ModifyDtsJobDuLimitResult.cc deleted file mode 100644 index e5873d11c..000000000 --- a/dts/src/model/ModifyDtsJobDuLimitResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDtsJobDuLimitResult::ModifyDtsJobDuLimitResult() : - ServiceResult() -{} - -ModifyDtsJobDuLimitResult::ModifyDtsJobDuLimitResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDtsJobDuLimitResult::~ModifyDtsJobDuLimitResult() -{} - -void ModifyDtsJobDuLimitResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stol(value["HttpStatusCode"].asString()); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - -} - -long ModifyDtsJobDuLimitResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyDtsJobDuLimitResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string ModifyDtsJobDuLimitResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyDtsJobDuLimitResult::getCode()const -{ - return code_; -} - -bool ModifyDtsJobDuLimitResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDtsJobDuLimitResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDtsJobNameRequest.cc b/dts/src/model/ModifyDtsJobNameRequest.cc deleted file mode 100644 index 0cd2c5c57..000000000 --- a/dts/src/model/ModifyDtsJobNameRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDtsJobNameRequest; - -ModifyDtsJobNameRequest::ModifyDtsJobNameRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobName") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDtsJobNameRequest::~ModifyDtsJobNameRequest() {} - -std::string ModifyDtsJobNameRequest::getDtsJobName() const { - return dtsJobName_; -} - -void ModifyDtsJobNameRequest::setDtsJobName(const std::string &dtsJobName) { - dtsJobName_ = dtsJobName; - setParameter(std::string("DtsJobName"), dtsJobName); -} - -std::string ModifyDtsJobNameRequest::getRegionId() const { - return regionId_; -} - -void ModifyDtsJobNameRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyDtsJobNameRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ModifyDtsJobNameRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - diff --git a/dts/src/model/ModifyDtsJobNameResult.cc b/dts/src/model/ModifyDtsJobNameResult.cc deleted file mode 100644 index cf50ac205..000000000 --- a/dts/src/model/ModifyDtsJobNameResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDtsJobNameResult::ModifyDtsJobNameResult() : - ServiceResult() -{} - -ModifyDtsJobNameResult::ModifyDtsJobNameResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDtsJobNameResult::~ModifyDtsJobNameResult() -{} - -void ModifyDtsJobNameResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - -} - -int ModifyDtsJobNameResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyDtsJobNameResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string ModifyDtsJobNameResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyDtsJobNameResult::getCode()const -{ - return code_; -} - -bool ModifyDtsJobNameResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDtsJobNameResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDtsJobPasswordRequest.cc b/dts/src/model/ModifyDtsJobPasswordRequest.cc deleted file mode 100644 index f51ed5e93..000000000 --- a/dts/src/model/ModifyDtsJobPasswordRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDtsJobPasswordRequest; - -ModifyDtsJobPasswordRequest::ModifyDtsJobPasswordRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJobPassword") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDtsJobPasswordRequest::~ModifyDtsJobPasswordRequest() {} - -std::string ModifyDtsJobPasswordRequest::getPassword() const { - return password_; -} - -void ModifyDtsJobPasswordRequest::setPassword(const std::string &password) { - password_ = password; - setParameter(std::string("Password"), password); -} - -std::string ModifyDtsJobPasswordRequest::getEndpoint() const { - return endpoint_; -} - -void ModifyDtsJobPasswordRequest::setEndpoint(const std::string &endpoint) { - endpoint_ = endpoint; - setParameter(std::string("Endpoint"), endpoint); -} - -std::string ModifyDtsJobPasswordRequest::getRegionId() const { - return regionId_; -} - -void ModifyDtsJobPasswordRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyDtsJobPasswordRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ModifyDtsJobPasswordRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ModifyDtsJobPasswordRequest::getUserName() const { - return userName_; -} - -void ModifyDtsJobPasswordRequest::setUserName(const std::string &userName) { - userName_ = userName; - setParameter(std::string("UserName"), userName); -} - diff --git a/dts/src/model/ModifyDtsJobPasswordResult.cc b/dts/src/model/ModifyDtsJobPasswordResult.cc deleted file mode 100644 index 2c452970c..000000000 --- a/dts/src/model/ModifyDtsJobPasswordResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDtsJobPasswordResult::ModifyDtsJobPasswordResult() : - ServiceResult() -{} - -ModifyDtsJobPasswordResult::ModifyDtsJobPasswordResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDtsJobPasswordResult::~ModifyDtsJobPasswordResult() -{} - -void ModifyDtsJobPasswordResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - -} - -int ModifyDtsJobPasswordResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifyDtsJobPasswordResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string ModifyDtsJobPasswordResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifyDtsJobPasswordResult::getCode()const -{ - return code_; -} - -bool ModifyDtsJobPasswordResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDtsJobPasswordResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifyDtsJobRequest.cc b/dts/src/model/ModifyDtsJobRequest.cc deleted file mode 100644 index ea7ab3799..000000000 --- a/dts/src/model/ModifyDtsJobRequest.cc +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifyDtsJobRequest; - -ModifyDtsJobRequest::ModifyDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -ModifyDtsJobRequest::~ModifyDtsJobRequest() {} - -std::string ModifyDtsJobRequest::getClientToken() const { - return clientToken_; -} - -void ModifyDtsJobRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string ModifyDtsJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifyDtsJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifyDtsJobRequest::getRegionId() const { - return regionId_; -} - -void ModifyDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifyDtsJobRequest::getEtlOperatorColumnReference() const { - return etlOperatorColumnReference_; -} - -void ModifyDtsJobRequest::setEtlOperatorColumnReference(const std::string &etlOperatorColumnReference) { - etlOperatorColumnReference_ = etlOperatorColumnReference; - setBodyParameter(std::string("EtlOperatorColumnReference"), etlOperatorColumnReference); -} - -std::string ModifyDtsJobRequest::getDbList() const { - return dbList_; -} - -void ModifyDtsJobRequest::setDbList(const std::string &dbList) { - dbList_ = dbList; - setBodyParameter(std::string("DbList"), dbList); -} - -std::string ModifyDtsJobRequest::getFileOssUrl() const { - return fileOssUrl_; -} - -void ModifyDtsJobRequest::setFileOssUrl(const std::string &fileOssUrl) { - fileOssUrl_ = fileOssUrl; - setParameter(std::string("FileOssUrl"), fileOssUrl); -} - -std::string ModifyDtsJobRequest::getOwnerId() const { - return ownerId_; -} - -void ModifyDtsJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifyDtsJobRequest::getModifyTypeEnum() const { - return modifyTypeEnum_; -} - -void ModifyDtsJobRequest::setModifyTypeEnum(const std::string &modifyTypeEnum) { - modifyTypeEnum_ = modifyTypeEnum; - setBodyParameter(std::string("ModifyTypeEnum"), modifyTypeEnum); -} - -std::string ModifyDtsJobRequest::getReserved() const { - return reserved_; -} - -void ModifyDtsJobRequest::setReserved(const std::string &reserved) { - reserved_ = reserved; - setBodyParameter(std::string("Reserved"), reserved); -} - -std::string ModifyDtsJobRequest::getFilterTableName() const { - return filterTableName_; -} - -void ModifyDtsJobRequest::setFilterTableName(const std::string &filterTableName) { - filterTableName_ = filterTableName; - setBodyParameter(std::string("FilterTableName"), filterTableName); -} - -std::string ModifyDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ModifyDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string ModifyDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void ModifyDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/ModifyDtsJobResult.cc b/dts/src/model/ModifyDtsJobResult.cc deleted file mode 100644 index d6ca23619..000000000 --- a/dts/src/model/ModifyDtsJobResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifyDtsJobResult::ModifyDtsJobResult() : - ServiceResult() -{} - -ModifyDtsJobResult::ModifyDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyDtsJobResult::~ModifyDtsJobResult() -{} - -void ModifyDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString() == "true"; - -} - -std::string ModifyDtsJobResult::getStatus()const -{ - return status_; -} - -std::string ModifyDtsJobResult::getDtsJobId()const -{ - return dtsJobId_; -} - -bool ModifyDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool ModifyDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string ModifyDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifySubscriptionObjectRequest.cc b/dts/src/model/ModifySubscriptionObjectRequest.cc deleted file mode 100644 index 9f56bfe7f..000000000 --- a/dts/src/model/ModifySubscriptionObjectRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifySubscriptionObjectRequest; - -ModifySubscriptionObjectRequest::ModifySubscriptionObjectRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifySubscriptionObject") { - setMethod(HttpRequest::Method::Post); -} - -ModifySubscriptionObjectRequest::~ModifySubscriptionObjectRequest() {} - -std::string ModifySubscriptionObjectRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void ModifySubscriptionObjectRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string ModifySubscriptionObjectRequest::getOwnerId() const { - return ownerId_; -} - -void ModifySubscriptionObjectRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string ModifySubscriptionObjectRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifySubscriptionObjectRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string ModifySubscriptionObjectRequest::getAccountId() const { - return accountId_; -} - -void ModifySubscriptionObjectRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ModifySubscriptionObjectRequest::getRegionId() const { - return regionId_; -} - -void ModifySubscriptionObjectRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifySubscriptionObjectRequest::getSubscriptionObject() const { - return subscriptionObject_; -} - -void ModifySubscriptionObjectRequest::setSubscriptionObject(const std::string &subscriptionObject) { - subscriptionObject_ = subscriptionObject; - setParameter(std::string("SubscriptionObject"), subscriptionObject); -} - diff --git a/dts/src/model/ModifySubscriptionObjectResult.cc b/dts/src/model/ModifySubscriptionObjectResult.cc deleted file mode 100644 index 387348aa0..000000000 --- a/dts/src/model/ModifySubscriptionObjectResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifySubscriptionObjectResult::ModifySubscriptionObjectResult() : - ServiceResult() -{} - -ModifySubscriptionObjectResult::ModifySubscriptionObjectResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySubscriptionObjectResult::~ModifySubscriptionObjectResult() -{} - -void ModifySubscriptionObjectResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ModifySubscriptionObjectResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifySubscriptionObjectResult::getSuccess()const -{ - return success_; -} - -std::string ModifySubscriptionObjectResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifySubscriptionRequest.cc b/dts/src/model/ModifySubscriptionRequest.cc deleted file mode 100644 index 2894c45f8..000000000 --- a/dts/src/model/ModifySubscriptionRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ModifySubscriptionRequest; - -ModifySubscriptionRequest::ModifySubscriptionRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifySubscription") { - setMethod(HttpRequest::Method::Post); -} - -ModifySubscriptionRequest::~ModifySubscriptionRequest() {} - -std::string ModifySubscriptionRequest::getDbList() const { - return dbList_; -} - -void ModifySubscriptionRequest::setDbList(const std::string &dbList) { - dbList_ = dbList; - setParameter(std::string("DbList"), dbList); -} - -bool ModifySubscriptionRequest::getSubscriptionDataTypeDDL() const { - return subscriptionDataTypeDDL_; -} - -void ModifySubscriptionRequest::setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL) { - subscriptionDataTypeDDL_ = subscriptionDataTypeDDL; - setParameter(std::string("SubscriptionDataTypeDDL"), subscriptionDataTypeDDL ? "true" : "false"); -} - -bool ModifySubscriptionRequest::getSubscriptionDataTypeDML() const { - return subscriptionDataTypeDML_; -} - -void ModifySubscriptionRequest::setSubscriptionDataTypeDML(bool subscriptionDataTypeDML) { - subscriptionDataTypeDML_ = subscriptionDataTypeDML; - setParameter(std::string("SubscriptionDataTypeDML"), subscriptionDataTypeDML ? "true" : "false"); -} - -std::string ModifySubscriptionRequest::getRegionId() const { - return regionId_; -} - -void ModifySubscriptionRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ModifySubscriptionRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ModifySubscriptionRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ModifySubscriptionRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ModifySubscriptionRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/ModifySubscriptionResult.cc b/dts/src/model/ModifySubscriptionResult.cc deleted file mode 100644 index 71a5546fd..000000000 --- a/dts/src/model/ModifySubscriptionResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ModifySubscriptionResult::ModifySubscriptionResult() : - ServiceResult() -{} - -ModifySubscriptionResult::ModifySubscriptionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySubscriptionResult::~ModifySubscriptionResult() -{} - -void ModifySubscriptionResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ModifySubscriptionResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ModifySubscriptionResult::getErrMessage()const -{ - return errMessage_; -} - -std::string ModifySubscriptionResult::getSuccess()const -{ - return success_; -} - -std::string ModifySubscriptionResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ModifySynchronizationObjectRequest.cc b/dts/src/model/ModifySynchronizationObjectRequest.cc index 5a5304557..4f800c62c 100644 --- a/dts/src/model/ModifySynchronizationObjectRequest.cc +++ b/dts/src/model/ModifySynchronizationObjectRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::ModifySynchronizationObjectRequest; ModifySynchronizationObjectRequest::ModifySynchronizationObjectRequest() - : RpcServiceRequest("dts", "2020-01-01", "ModifySynchronizationObject") { + : RpcServiceRequest("dts", "2019-09-01", "ModifySynchronizationObject") { setMethod(HttpRequest::Method::Post); } @@ -31,7 +31,7 @@ std::string ModifySynchronizationObjectRequest::getSynchronizationObjects() cons void ModifySynchronizationObjectRequest::setSynchronizationObjects(const std::string &synchronizationObjects) { synchronizationObjects_ = synchronizationObjects; - setBodyParameter(std::string("SynchronizationObjects"), synchronizationObjects); + setParameter(std::string("SynchronizationObjects"), synchronizationObjects); } std::string ModifySynchronizationObjectRequest::getOwnerId() const { @@ -43,15 +43,6 @@ void ModifySynchronizationObjectRequest::setOwnerId(const std::string &ownerId) setParameter(std::string("OwnerId"), ownerId); } -std::string ModifySynchronizationObjectRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ModifySynchronizationObjectRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string ModifySynchronizationObjectRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -61,24 +52,6 @@ void ModifySynchronizationObjectRequest::setSynchronizationJobId(const std::stri setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string ModifySynchronizationObjectRequest::getAccountId() const { - return accountId_; -} - -void ModifySynchronizationObjectRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ModifySynchronizationObjectRequest::getRegionId() const { - return regionId_; -} - -void ModifySynchronizationObjectRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ModifySynchronizationObjectRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/RenewInstanceRequest.cc b/dts/src/model/RenewInstanceRequest.cc deleted file mode 100644 index 5e87b19a8..000000000 --- a/dts/src/model/RenewInstanceRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "RenewInstance") { - setMethod(HttpRequest::Method::Post); -} - -RenewInstanceRequest::~RenewInstanceRequest() {} - -std::string RenewInstanceRequest::getPeriod() const { - return period_; -} - -void RenewInstanceRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string RenewInstanceRequest::getBuyCount() const { - return buyCount_; -} - -void RenewInstanceRequest::setBuyCount(const std::string &buyCount) { - buyCount_ = buyCount; - setParameter(std::string("BuyCount"), buyCount); -} - -std::string RenewInstanceRequest::getRegionId() const { - return regionId_; -} - -void RenewInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string RenewInstanceRequest::getDtsJobId() const { - return dtsJobId_; -} - -void RenewInstanceRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string RenewInstanceRequest::getChargeType() const { - return chargeType_; -} - -void RenewInstanceRequest::setChargeType(const std::string &chargeType) { - chargeType_ = chargeType; - setParameter(std::string("ChargeType"), chargeType); -} - diff --git a/dts/src/model/RenewInstanceResult.cc b/dts/src/model/RenewInstanceResult.cc deleted file mode 100644 index 9b963fd60..000000000 --- a/dts/src/model/RenewInstanceResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -RenewInstanceResult::RenewInstanceResult() : - ServiceResult() -{} - -RenewInstanceResult::RenewInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewInstanceResult::~RenewInstanceResult() -{} - -void RenewInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::string RenewInstanceResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string RenewInstanceResult::getEndTime()const -{ - return endTime_; -} - -std::string RenewInstanceResult::getInstanceId()const -{ - return instanceId_; -} - -std::string RenewInstanceResult::getChargeType()const -{ - return chargeType_; -} - -int RenewInstanceResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string RenewInstanceResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string RenewInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string RenewInstanceResult::getCode()const -{ - return code_; -} - -bool RenewInstanceResult::getSuccess()const -{ - return success_; -} - -std::string RenewInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ResetDtsJobRequest.cc b/dts/src/model/ResetDtsJobRequest.cc deleted file mode 100644 index c5c4c2b4a..000000000 --- a/dts/src/model/ResetDtsJobRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ResetDtsJobRequest; - -ResetDtsJobRequest::ResetDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ResetDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -ResetDtsJobRequest::~ResetDtsJobRequest() {} - -std::string ResetDtsJobRequest::getRegionId() const { - return regionId_; -} - -void ResetDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ResetDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void ResetDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string ResetDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ResetDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string ResetDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void ResetDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/ResetDtsJobResult.cc b/dts/src/model/ResetDtsJobResult.cc deleted file mode 100644 index 8af15ac7f..000000000 --- a/dts/src/model/ResetDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ResetDtsJobResult::ResetDtsJobResult() : - ServiceResult() -{} - -ResetDtsJobResult::ResetDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ResetDtsJobResult::~ResetDtsJobResult() -{} - -void ResetDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int ResetDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ResetDtsJobResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string ResetDtsJobResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string ResetDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool ResetDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string ResetDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/ResetSynchronizationJobRequest.cc b/dts/src/model/ResetSynchronizationJobRequest.cc index 55160baf7..77e9a6608 100644 --- a/dts/src/model/ResetSynchronizationJobRequest.cc +++ b/dts/src/model/ResetSynchronizationJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::ResetSynchronizationJobRequest; ResetSynchronizationJobRequest::ResetSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "ResetSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "ResetSynchronizationJob") { setMethod(HttpRequest::Method::Post); } @@ -34,15 +34,6 @@ void ResetSynchronizationJobRequest::setOwnerId(const std::string &ownerId) { setParameter(std::string("OwnerId"), ownerId); } -std::string ResetSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void ResetSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string ResetSynchronizationJobRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -52,24 +43,6 @@ void ResetSynchronizationJobRequest::setSynchronizationJobId(const std::string & setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string ResetSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void ResetSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string ResetSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void ResetSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ResetSynchronizationJobRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/ShieldPrecheckRequest.cc b/dts/src/model/ShieldPrecheckRequest.cc deleted file mode 100644 index 04806e1c4..000000000 --- a/dts/src/model/ShieldPrecheckRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::ShieldPrecheckRequest; - -ShieldPrecheckRequest::ShieldPrecheckRequest() - : RpcServiceRequest("dts", "2020-01-01", "ShieldPrecheck") { - setMethod(HttpRequest::Method::Post); -} - -ShieldPrecheckRequest::~ShieldPrecheckRequest() {} - -std::string ShieldPrecheckRequest::getPrecheckItems() const { - return precheckItems_; -} - -void ShieldPrecheckRequest::setPrecheckItems(const std::string &precheckItems) { - precheckItems_ = precheckItems; - setParameter(std::string("PrecheckItems"), precheckItems); -} - -std::string ShieldPrecheckRequest::getRegionId() const { - return regionId_; -} - -void ShieldPrecheckRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string ShieldPrecheckRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void ShieldPrecheckRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - diff --git a/dts/src/model/ShieldPrecheckResult.cc b/dts/src/model/ShieldPrecheckResult.cc deleted file mode 100644 index a289219a8..000000000 --- a/dts/src/model/ShieldPrecheckResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -ShieldPrecheckResult::ShieldPrecheckResult() : - ServiceResult() -{} - -ShieldPrecheckResult::ShieldPrecheckResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ShieldPrecheckResult::~ShieldPrecheckResult() -{} - -void ShieldPrecheckResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string ShieldPrecheckResult::getErrMessage()const -{ - return errMessage_; -} - -bool ShieldPrecheckResult::getSuccess()const -{ - return success_; -} - -std::string ShieldPrecheckResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SkipPreCheckRequest.cc b/dts/src/model/SkipPreCheckRequest.cc deleted file mode 100644 index b57444278..000000000 --- a/dts/src/model/SkipPreCheckRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SkipPreCheckRequest; - -SkipPreCheckRequest::SkipPreCheckRequest() - : RpcServiceRequest("dts", "2020-01-01", "SkipPreCheck") { - setMethod(HttpRequest::Method::Post); -} - -SkipPreCheckRequest::~SkipPreCheckRequest() {} - -bool SkipPreCheckRequest::getSkip() const { - return skip_; -} - -void SkipPreCheckRequest::setSkip(bool skip) { - skip_ = skip; - setParameter(std::string("Skip"), skip ? "true" : "false"); -} - -std::string SkipPreCheckRequest::getJobId() const { - return jobId_; -} - -void SkipPreCheckRequest::setJobId(const std::string &jobId) { - jobId_ = jobId; - setParameter(std::string("JobId"), jobId); -} - -std::string SkipPreCheckRequest::getRegionId() const { - return regionId_; -} - -void SkipPreCheckRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string SkipPreCheckRequest::getSkipPreCheckNames() const { - return skipPreCheckNames_; -} - -void SkipPreCheckRequest::setSkipPreCheckNames(const std::string &skipPreCheckNames) { - skipPreCheckNames_ = skipPreCheckNames; - setParameter(std::string("SkipPreCheckNames"), skipPreCheckNames); -} - -std::string SkipPreCheckRequest::getDtsJobId() const { - return dtsJobId_; -} - -void SkipPreCheckRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string SkipPreCheckRequest::getSkipPreCheckItems() const { - return skipPreCheckItems_; -} - -void SkipPreCheckRequest::setSkipPreCheckItems(const std::string &skipPreCheckItems) { - skipPreCheckItems_ = skipPreCheckItems; - setParameter(std::string("SkipPreCheckItems"), skipPreCheckItems); -} - diff --git a/dts/src/model/SkipPreCheckResult.cc b/dts/src/model/SkipPreCheckResult.cc deleted file mode 100644 index bc51b2604..000000000 --- a/dts/src/model/SkipPreCheckResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SkipPreCheckResult::SkipPreCheckResult() : - ServiceResult() -{} - -SkipPreCheckResult::SkipPreCheckResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SkipPreCheckResult::~SkipPreCheckResult() -{} - -void SkipPreCheckResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["SkipNames"].isNull()) - skipNames_ = value["SkipNames"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ScheduleJobId"].isNull()) - scheduleJobId_ = value["ScheduleJobId"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["MigrationJobId"].isNull()) - migrationJobId_ = value["MigrationJobId"].asString(); - if(!value["SkipItems"].isNull()) - skipItems_ = value["SkipItems"].asString(); - -} - -std::string SkipPreCheckResult::getSkipItems()const -{ - return skipItems_; -} - -std::string SkipPreCheckResult::getScheduleJobId()const -{ - return scheduleJobId_; -} - -int SkipPreCheckResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SkipPreCheckResult::getSkipNames()const -{ - return skipNames_; -} - -std::string SkipPreCheckResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string SkipPreCheckResult::getErrMessage()const -{ - return errMessage_; -} - -std::string SkipPreCheckResult::getCode()const -{ - return code_; -} - -bool SkipPreCheckResult::getSuccess()const -{ - return success_; -} - -std::string SkipPreCheckResult::getErrCode()const -{ - return errCode_; -} - -std::string SkipPreCheckResult::getMigrationJobId()const -{ - return migrationJobId_; -} - diff --git a/dts/src/model/StartDtsJobRequest.cc b/dts/src/model/StartDtsJobRequest.cc deleted file mode 100644 index c07437577..000000000 --- a/dts/src/model/StartDtsJobRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StartDtsJobRequest; - -StartDtsJobRequest::StartDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "StartDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -StartDtsJobRequest::~StartDtsJobRequest() {} - -std::string StartDtsJobRequest::getResetCheckpoint() const { - return resetCheckpoint_; -} - -void StartDtsJobRequest::setResetCheckpoint(const std::string &resetCheckpoint) { - resetCheckpoint_ = resetCheckpoint; - setParameter(std::string("ResetCheckpoint"), resetCheckpoint); -} - -std::string StartDtsJobRequest::getRegionId() const { - return regionId_; -} - -void StartDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string StartDtsJobRequest::getResumeHoldJob() const { - return resumeHoldJob_; -} - -void StartDtsJobRequest::setResumeHoldJob(const std::string &resumeHoldJob) { - resumeHoldJob_ = resumeHoldJob; - setParameter(std::string("ResumeHoldJob"), resumeHoldJob); -} - -std::string StartDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void StartDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string StartDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void StartDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string StartDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void StartDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/StartDtsJobResult.cc b/dts/src/model/StartDtsJobResult.cc deleted file mode 100644 index de90dbc4b..000000000 --- a/dts/src/model/StartDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StartDtsJobResult::StartDtsJobResult() : - ServiceResult() -{} - -StartDtsJobResult::StartDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartDtsJobResult::~StartDtsJobResult() -{} - -void StartDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int StartDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string StartDtsJobResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string StartDtsJobResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string StartDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool StartDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string StartDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StartDtsJobsRequest.cc b/dts/src/model/StartDtsJobsRequest.cc deleted file mode 100644 index 85e5345c6..000000000 --- a/dts/src/model/StartDtsJobsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StartDtsJobsRequest; - -StartDtsJobsRequest::StartDtsJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "StartDtsJobs") { - setMethod(HttpRequest::Method::Post); -} - -StartDtsJobsRequest::~StartDtsJobsRequest() {} - -std::string StartDtsJobsRequest::getDtsJobIds() const { - return dtsJobIds_; -} - -void StartDtsJobsRequest::setDtsJobIds(const std::string &dtsJobIds) { - dtsJobIds_ = dtsJobIds; - setParameter(std::string("DtsJobIds"), dtsJobIds); -} - -std::string StartDtsJobsRequest::getRegionId() const { - return regionId_; -} - -void StartDtsJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StartDtsJobsResult.cc b/dts/src/model/StartDtsJobsResult.cc deleted file mode 100644 index cab9e88b0..000000000 --- a/dts/src/model/StartDtsJobsResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StartDtsJobsResult::StartDtsJobsResult() : - ServiceResult() -{} - -StartDtsJobsResult::StartDtsJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartDtsJobsResult::~StartDtsJobsResult() -{} - -void StartDtsJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int StartDtsJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string StartDtsJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string StartDtsJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string StartDtsJobsResult::getErrMessage()const -{ - return errMessage_; -} - -bool StartDtsJobsResult::getSuccess()const -{ - return success_; -} - -std::string StartDtsJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StartMigrationJobRequest.cc b/dts/src/model/StartMigrationJobRequest.cc deleted file mode 100644 index a491f08d5..000000000 --- a/dts/src/model/StartMigrationJobRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StartMigrationJobRequest; - -StartMigrationJobRequest::StartMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "StartMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -StartMigrationJobRequest::~StartMigrationJobRequest() {} - -std::string StartMigrationJobRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void StartMigrationJobRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string StartMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void StartMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string StartMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void StartMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string StartMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void StartMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string StartMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void StartMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StartMigrationJobResult.cc b/dts/src/model/StartMigrationJobResult.cc deleted file mode 100644 index 46c415831..000000000 --- a/dts/src/model/StartMigrationJobResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StartMigrationJobResult::StartMigrationJobResult() : - ServiceResult() -{} - -StartMigrationJobResult::StartMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartMigrationJobResult::~StartMigrationJobResult() -{} - -void StartMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string StartMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string StartMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string StartMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StartSubscriptionInstanceRequest.cc b/dts/src/model/StartSubscriptionInstanceRequest.cc deleted file mode 100644 index dd40ff6d8..000000000 --- a/dts/src/model/StartSubscriptionInstanceRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StartSubscriptionInstanceRequest; - -StartSubscriptionInstanceRequest::StartSubscriptionInstanceRequest() - : RpcServiceRequest("dts", "2020-01-01", "StartSubscriptionInstance") { - setMethod(HttpRequest::Method::Post); -} - -StartSubscriptionInstanceRequest::~StartSubscriptionInstanceRequest() {} - -std::string StartSubscriptionInstanceRequest::getSubscriptionInstanceId() const { - return subscriptionInstanceId_; -} - -void StartSubscriptionInstanceRequest::setSubscriptionInstanceId(const std::string &subscriptionInstanceId) { - subscriptionInstanceId_ = subscriptionInstanceId; - setParameter(std::string("SubscriptionInstanceId"), subscriptionInstanceId); -} - -std::string StartSubscriptionInstanceRequest::getOwnerId() const { - return ownerId_; -} - -void StartSubscriptionInstanceRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string StartSubscriptionInstanceRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void StartSubscriptionInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string StartSubscriptionInstanceRequest::getAccountId() const { - return accountId_; -} - -void StartSubscriptionInstanceRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string StartSubscriptionInstanceRequest::getRegionId() const { - return regionId_; -} - -void StartSubscriptionInstanceRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StartSubscriptionInstanceResult.cc b/dts/src/model/StartSubscriptionInstanceResult.cc deleted file mode 100644 index d0a2ccc9d..000000000 --- a/dts/src/model/StartSubscriptionInstanceResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StartSubscriptionInstanceResult::StartSubscriptionInstanceResult() : - ServiceResult() -{} - -StartSubscriptionInstanceResult::StartSubscriptionInstanceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StartSubscriptionInstanceResult::~StartSubscriptionInstanceResult() -{} - -void StartSubscriptionInstanceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["TaskId"].isNull()) - taskId_ = value["TaskId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string StartSubscriptionInstanceResult::getTaskId()const -{ - return taskId_; -} - -std::string StartSubscriptionInstanceResult::getErrMessage()const -{ - return errMessage_; -} - -std::string StartSubscriptionInstanceResult::getSuccess()const -{ - return success_; -} - -std::string StartSubscriptionInstanceResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StartSynchronizationJobRequest.cc b/dts/src/model/StartSynchronizationJobRequest.cc index c2e2b7560..1ddf2e883 100644 --- a/dts/src/model/StartSynchronizationJobRequest.cc +++ b/dts/src/model/StartSynchronizationJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::StartSynchronizationJobRequest; StartSynchronizationJobRequest::StartSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "StartSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "StartSynchronizationJob") { setMethod(HttpRequest::Method::Post); } @@ -34,15 +34,6 @@ void StartSynchronizationJobRequest::setOwnerId(const std::string &ownerId) { setParameter(std::string("OwnerId"), ownerId); } -std::string StartSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void StartSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string StartSynchronizationJobRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -52,24 +43,6 @@ void StartSynchronizationJobRequest::setSynchronizationJobId(const std::string & setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string StartSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void StartSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string StartSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void StartSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string StartSynchronizationJobRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/StopDedicatedClusterRequest.cc b/dts/src/model/StopDedicatedClusterRequest.cc deleted file mode 100644 index 6a78728f5..000000000 --- a/dts/src/model/StopDedicatedClusterRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StopDedicatedClusterRequest; - -StopDedicatedClusterRequest::StopDedicatedClusterRequest() - : RpcServiceRequest("dts", "2020-01-01", "StopDedicatedCluster") { - setMethod(HttpRequest::Method::Post); -} - -StopDedicatedClusterRequest::~StopDedicatedClusterRequest() {} - -std::string StopDedicatedClusterRequest::getDedicatedClusterId() const { - return dedicatedClusterId_; -} - -void StopDedicatedClusterRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) { - dedicatedClusterId_ = dedicatedClusterId; - setParameter(std::string("DedicatedClusterId"), dedicatedClusterId); -} - -std::string StopDedicatedClusterRequest::getOwnerId() const { - return ownerId_; -} - -void StopDedicatedClusterRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string StopDedicatedClusterRequest::getDedicatedClusterName() const { - return dedicatedClusterName_; -} - -void StopDedicatedClusterRequest::setDedicatedClusterName(const std::string &dedicatedClusterName) { - dedicatedClusterName_ = dedicatedClusterName; - setParameter(std::string("DedicatedClusterName"), dedicatedClusterName); -} - -std::string StopDedicatedClusterRequest::getInstanceId() const { - return instanceId_; -} - -void StopDedicatedClusterRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string StopDedicatedClusterRequest::getRegionId() const { - return regionId_; -} - -void StopDedicatedClusterRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StopDedicatedClusterResult.cc b/dts/src/model/StopDedicatedClusterResult.cc deleted file mode 100644 index 370015e63..000000000 --- a/dts/src/model/StopDedicatedClusterResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StopDedicatedClusterResult::StopDedicatedClusterResult() : - ServiceResult() -{} - -StopDedicatedClusterResult::StopDedicatedClusterResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopDedicatedClusterResult::~StopDedicatedClusterResult() -{} - -void StopDedicatedClusterResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = value["HttpStatusCode"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string StopDedicatedClusterResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string StopDedicatedClusterResult::getErrMessage()const -{ - return errMessage_; -} - -std::string StopDedicatedClusterResult::getSuccess()const -{ - return success_; -} - -std::string StopDedicatedClusterResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StopDtsJobRequest.cc b/dts/src/model/StopDtsJobRequest.cc deleted file mode 100644 index e42c91290..000000000 --- a/dts/src/model/StopDtsJobRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StopDtsJobRequest; - -StopDtsJobRequest::StopDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "StopDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -StopDtsJobRequest::~StopDtsJobRequest() {} - -std::string StopDtsJobRequest::getRegionId() const { - return regionId_; -} - -void StopDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string StopDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void StopDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string StopDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void StopDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string StopDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void StopDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/StopDtsJobResult.cc b/dts/src/model/StopDtsJobResult.cc deleted file mode 100644 index 6fd8c6ee9..000000000 --- a/dts/src/model/StopDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StopDtsJobResult::StopDtsJobResult() : - ServiceResult() -{} - -StopDtsJobResult::StopDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopDtsJobResult::~StopDtsJobResult() -{} - -void StopDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int StopDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string StopDtsJobResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string StopDtsJobResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string StopDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool StopDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string StopDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StopDtsJobsRequest.cc b/dts/src/model/StopDtsJobsRequest.cc deleted file mode 100644 index c4eeb71be..000000000 --- a/dts/src/model/StopDtsJobsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StopDtsJobsRequest; - -StopDtsJobsRequest::StopDtsJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "StopDtsJobs") { - setMethod(HttpRequest::Method::Post); -} - -StopDtsJobsRequest::~StopDtsJobsRequest() {} - -std::string StopDtsJobsRequest::getDtsJobIds() const { - return dtsJobIds_; -} - -void StopDtsJobsRequest::setDtsJobIds(const std::string &dtsJobIds) { - dtsJobIds_ = dtsJobIds; - setParameter(std::string("DtsJobIds"), dtsJobIds); -} - -std::string StopDtsJobsRequest::getRegionId() const { - return regionId_; -} - -void StopDtsJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StopDtsJobsResult.cc b/dts/src/model/StopDtsJobsResult.cc deleted file mode 100644 index 985e05e0d..000000000 --- a/dts/src/model/StopDtsJobsResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StopDtsJobsResult::StopDtsJobsResult() : - ServiceResult() -{} - -StopDtsJobsResult::StopDtsJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopDtsJobsResult::~StopDtsJobsResult() -{} - -void StopDtsJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int StopDtsJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string StopDtsJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string StopDtsJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string StopDtsJobsResult::getErrMessage()const -{ - return errMessage_; -} - -bool StopDtsJobsResult::getSuccess()const -{ - return success_; -} - -std::string StopDtsJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/StopMigrationJobRequest.cc b/dts/src/model/StopMigrationJobRequest.cc deleted file mode 100644 index 29718abf5..000000000 --- a/dts/src/model/StopMigrationJobRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::StopMigrationJobRequest; - -StopMigrationJobRequest::StopMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "StopMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -StopMigrationJobRequest::~StopMigrationJobRequest() {} - -std::string StopMigrationJobRequest::getClientToken() const { - return clientToken_; -} - -void StopMigrationJobRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string StopMigrationJobRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void StopMigrationJobRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string StopMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void StopMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string StopMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void StopMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string StopMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void StopMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string StopMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void StopMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/StopMigrationJobResult.cc b/dts/src/model/StopMigrationJobResult.cc deleted file mode 100644 index eb63fec59..000000000 --- a/dts/src/model/StopMigrationJobResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -StopMigrationJobResult::StopMigrationJobResult() : - ServiceResult() -{} - -StopMigrationJobResult::StopMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopMigrationJobResult::~StopMigrationJobResult() -{} - -void StopMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string StopMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string StopMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string StopMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SummaryJobDetailRequest.cc b/dts/src/model/SummaryJobDetailRequest.cc deleted file mode 100644 index d7f086299..000000000 --- a/dts/src/model/SummaryJobDetailRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SummaryJobDetailRequest; - -SummaryJobDetailRequest::SummaryJobDetailRequest() - : RpcServiceRequest("dts", "2020-01-01", "SummaryJobDetail") { - setMethod(HttpRequest::Method::Post); -} - -SummaryJobDetailRequest::~SummaryJobDetailRequest() {} - -std::string SummaryJobDetailRequest::getStructType() const { - return structType_; -} - -void SummaryJobDetailRequest::setStructType(const std::string &structType) { - structType_ = structType; - setParameter(std::string("StructType"), structType); -} - -std::string SummaryJobDetailRequest::getRegionId() const { - return regionId_; -} - -void SummaryJobDetailRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string SummaryJobDetailRequest::getDtsJobId() const { - return dtsJobId_; -} - -void SummaryJobDetailRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string SummaryJobDetailRequest::getJobCode() const { - return jobCode_; -} - -void SummaryJobDetailRequest::setJobCode(const std::string &jobCode) { - jobCode_ = jobCode; - setParameter(std::string("JobCode"), jobCode); -} - -std::string SummaryJobDetailRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void SummaryJobDetailRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string SummaryJobDetailRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void SummaryJobDetailRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/SummaryJobDetailResult.cc b/dts/src/model/SummaryJobDetailResult.cc deleted file mode 100644 index af3564749..000000000 --- a/dts/src/model/SummaryJobDetailResult.cc +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SummaryJobDetailResult::SummaryJobDetailResult() : - ServiceResult() -{} - -SummaryJobDetailResult::SummaryJobDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SummaryJobDetailResult::~SummaryJobDetailResult() -{} - -void SummaryJobDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allProgressSummaryDetailsNode = value["ProgressSummaryDetails"]["ProgressSummaryDetail"]; - for (auto valueProgressSummaryDetailsProgressSummaryDetail : allProgressSummaryDetailsNode) - { - ProgressSummaryDetail progressSummaryDetailsObject; - if(!valueProgressSummaryDetailsProgressSummaryDetail["Key"].isNull()) - progressSummaryDetailsObject.key = valueProgressSummaryDetailsProgressSummaryDetail["Key"].asString(); - if(!valueProgressSummaryDetailsProgressSummaryDetail["TotalCount"].isNull()) - progressSummaryDetailsObject.totalCount = std::stol(valueProgressSummaryDetailsProgressSummaryDetail["TotalCount"].asString()); - if(!valueProgressSummaryDetailsProgressSummaryDetail["State"].isNull()) - progressSummaryDetailsObject.state = std::stoi(valueProgressSummaryDetailsProgressSummaryDetail["State"].asString()); - progressSummaryDetails_.push_back(progressSummaryDetailsObject); - } - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["JobId"].isNull()) - jobId_ = value["JobId"].asString(); - -} - -std::vector SummaryJobDetailResult::getProgressSummaryDetails()const -{ - return progressSummaryDetails_; -} - -int SummaryJobDetailResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SummaryJobDetailResult::getCode()const -{ - return code_; -} - -bool SummaryJobDetailResult::getSuccess()const -{ - return success_; -} - -std::string SummaryJobDetailResult::getJobId()const -{ - return jobId_; -} - diff --git a/dts/src/model/SuspendDtsJobRequest.cc b/dts/src/model/SuspendDtsJobRequest.cc deleted file mode 100644 index 2a233f11a..000000000 --- a/dts/src/model/SuspendDtsJobRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SuspendDtsJobRequest; - -SuspendDtsJobRequest::SuspendDtsJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "SuspendDtsJob") { - setMethod(HttpRequest::Method::Post); -} - -SuspendDtsJobRequest::~SuspendDtsJobRequest() {} - -std::string SuspendDtsJobRequest::getRegionId() const { - return regionId_; -} - -void SuspendDtsJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string SuspendDtsJobRequest::getDtsJobId() const { - return dtsJobId_; -} - -void SuspendDtsJobRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string SuspendDtsJobRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void SuspendDtsJobRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string SuspendDtsJobRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void SuspendDtsJobRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/SuspendDtsJobResult.cc b/dts/src/model/SuspendDtsJobResult.cc deleted file mode 100644 index 20def2f01..000000000 --- a/dts/src/model/SuspendDtsJobResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SuspendDtsJobResult::SuspendDtsJobResult() : - ServiceResult() -{} - -SuspendDtsJobResult::SuspendDtsJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SuspendDtsJobResult::~SuspendDtsJobResult() -{} - -void SuspendDtsJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int SuspendDtsJobResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SuspendDtsJobResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string SuspendDtsJobResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string SuspendDtsJobResult::getErrMessage()const -{ - return errMessage_; -} - -bool SuspendDtsJobResult::getSuccess()const -{ - return success_; -} - -std::string SuspendDtsJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SuspendDtsJobsRequest.cc b/dts/src/model/SuspendDtsJobsRequest.cc deleted file mode 100644 index 67fbfa5fe..000000000 --- a/dts/src/model/SuspendDtsJobsRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SuspendDtsJobsRequest; - -SuspendDtsJobsRequest::SuspendDtsJobsRequest() - : RpcServiceRequest("dts", "2020-01-01", "SuspendDtsJobs") { - setMethod(HttpRequest::Method::Post); -} - -SuspendDtsJobsRequest::~SuspendDtsJobsRequest() {} - -std::string SuspendDtsJobsRequest::getDtsJobIds() const { - return dtsJobIds_; -} - -void SuspendDtsJobsRequest::setDtsJobIds(const std::string &dtsJobIds) { - dtsJobIds_ = dtsJobIds; - setParameter(std::string("DtsJobIds"), dtsJobIds); -} - -std::string SuspendDtsJobsRequest::getRegionId() const { - return regionId_; -} - -void SuspendDtsJobsRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/SuspendDtsJobsResult.cc b/dts/src/model/SuspendDtsJobsResult.cc deleted file mode 100644 index 2c6d86e82..000000000 --- a/dts/src/model/SuspendDtsJobsResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SuspendDtsJobsResult::SuspendDtsJobsResult() : - ServiceResult() -{} - -SuspendDtsJobsResult::SuspendDtsJobsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SuspendDtsJobsResult::~SuspendDtsJobsResult() -{} - -void SuspendDtsJobsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int SuspendDtsJobsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SuspendDtsJobsResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string SuspendDtsJobsResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string SuspendDtsJobsResult::getErrMessage()const -{ - return errMessage_; -} - -bool SuspendDtsJobsResult::getSuccess()const -{ - return success_; -} - -std::string SuspendDtsJobsResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SuspendMigrationJobRequest.cc b/dts/src/model/SuspendMigrationJobRequest.cc deleted file mode 100644 index e02d78a91..000000000 --- a/dts/src/model/SuspendMigrationJobRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SuspendMigrationJobRequest; - -SuspendMigrationJobRequest::SuspendMigrationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "SuspendMigrationJob") { - setMethod(HttpRequest::Method::Post); -} - -SuspendMigrationJobRequest::~SuspendMigrationJobRequest() {} - -std::string SuspendMigrationJobRequest::getClientToken() const { - return clientToken_; -} - -void SuspendMigrationJobRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); -} - -std::string SuspendMigrationJobRequest::getMigrationJobId() const { - return migrationJobId_; -} - -void SuspendMigrationJobRequest::setMigrationJobId(const std::string &migrationJobId) { - migrationJobId_ = migrationJobId; - setParameter(std::string("MigrationJobId"), migrationJobId); -} - -std::string SuspendMigrationJobRequest::getOwnerId() const { - return ownerId_; -} - -void SuspendMigrationJobRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string SuspendMigrationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SuspendMigrationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string SuspendMigrationJobRequest::getAccountId() const { - return accountId_; -} - -void SuspendMigrationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string SuspendMigrationJobRequest::getRegionId() const { - return regionId_; -} - -void SuspendMigrationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/SuspendMigrationJobResult.cc b/dts/src/model/SuspendMigrationJobResult.cc deleted file mode 100644 index bd9cde4a5..000000000 --- a/dts/src/model/SuspendMigrationJobResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SuspendMigrationJobResult::SuspendMigrationJobResult() : - ServiceResult() -{} - -SuspendMigrationJobResult::SuspendMigrationJobResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SuspendMigrationJobResult::~SuspendMigrationJobResult() -{} - -void SuspendMigrationJobResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string SuspendMigrationJobResult::getErrMessage()const -{ - return errMessage_; -} - -std::string SuspendMigrationJobResult::getSuccess()const -{ - return success_; -} - -std::string SuspendMigrationJobResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SuspendSynchronizationJobRequest.cc b/dts/src/model/SuspendSynchronizationJobRequest.cc index e10a5fc84..c988673e3 100644 --- a/dts/src/model/SuspendSynchronizationJobRequest.cc +++ b/dts/src/model/SuspendSynchronizationJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Dts::Model::SuspendSynchronizationJobRequest; SuspendSynchronizationJobRequest::SuspendSynchronizationJobRequest() - : RpcServiceRequest("dts", "2020-01-01", "SuspendSynchronizationJob") { + : RpcServiceRequest("dts", "2019-09-01", "SuspendSynchronizationJob") { setMethod(HttpRequest::Method::Post); } @@ -34,15 +34,6 @@ void SuspendSynchronizationJobRequest::setOwnerId(const std::string &ownerId) { setParameter(std::string("OwnerId"), ownerId); } -std::string SuspendSynchronizationJobRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SuspendSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string SuspendSynchronizationJobRequest::getSynchronizationJobId() const { return synchronizationJobId_; } @@ -52,24 +43,6 @@ void SuspendSynchronizationJobRequest::setSynchronizationJobId(const std::string setParameter(std::string("SynchronizationJobId"), synchronizationJobId); } -std::string SuspendSynchronizationJobRequest::getAccountId() const { - return accountId_; -} - -void SuspendSynchronizationJobRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string SuspendSynchronizationJobRequest::getRegionId() const { - return regionId_; -} - -void SuspendSynchronizationJobRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string SuspendSynchronizationJobRequest::getSynchronizationDirection() const { return synchronizationDirection_; } diff --git a/dts/src/model/SwitchPhysicalDtsJobToCloudRequest.cc b/dts/src/model/SwitchPhysicalDtsJobToCloudRequest.cc deleted file mode 100644 index 4ed7d7585..000000000 --- a/dts/src/model/SwitchPhysicalDtsJobToCloudRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::SwitchPhysicalDtsJobToCloudRequest; - -SwitchPhysicalDtsJobToCloudRequest::SwitchPhysicalDtsJobToCloudRequest() - : RpcServiceRequest("dts", "2020-01-01", "SwitchPhysicalDtsJobToCloud") { - setMethod(HttpRequest::Method::Post); -} - -SwitchPhysicalDtsJobToCloudRequest::~SwitchPhysicalDtsJobToCloudRequest() {} - -std::string SwitchPhysicalDtsJobToCloudRequest::getResetCheckpoint() const { - return resetCheckpoint_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setResetCheckpoint(const std::string &resetCheckpoint) { - resetCheckpoint_ = resetCheckpoint; - setParameter(std::string("ResetCheckpoint"), resetCheckpoint); -} - -std::string SwitchPhysicalDtsJobToCloudRequest::getRegionId() const { - return regionId_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string SwitchPhysicalDtsJobToCloudRequest::getResumeHoldJob() const { - return resumeHoldJob_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setResumeHoldJob(const std::string &resumeHoldJob) { - resumeHoldJob_ = resumeHoldJob; - setParameter(std::string("ResumeHoldJob"), resumeHoldJob); -} - -std::string SwitchPhysicalDtsJobToCloudRequest::getDtsJobId() const { - return dtsJobId_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string SwitchPhysicalDtsJobToCloudRequest::getDtsInstanceId() const { - return dtsInstanceId_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setDtsInstanceId(const std::string &dtsInstanceId) { - dtsInstanceId_ = dtsInstanceId; - setParameter(std::string("DtsInstanceId"), dtsInstanceId); -} - -std::string SwitchPhysicalDtsJobToCloudRequest::getSynchronizationDirection() const { - return synchronizationDirection_; -} - -void SwitchPhysicalDtsJobToCloudRequest::setSynchronizationDirection(const std::string &synchronizationDirection) { - synchronizationDirection_ = synchronizationDirection; - setParameter(std::string("SynchronizationDirection"), synchronizationDirection); -} - diff --git a/dts/src/model/SwitchPhysicalDtsJobToCloudResult.cc b/dts/src/model/SwitchPhysicalDtsJobToCloudResult.cc deleted file mode 100644 index 7e995a5b7..000000000 --- a/dts/src/model/SwitchPhysicalDtsJobToCloudResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -SwitchPhysicalDtsJobToCloudResult::SwitchPhysicalDtsJobToCloudResult() : - ServiceResult() -{} - -SwitchPhysicalDtsJobToCloudResult::SwitchPhysicalDtsJobToCloudResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -SwitchPhysicalDtsJobToCloudResult::~SwitchPhysicalDtsJobToCloudResult() -{} - -void SwitchPhysicalDtsJobToCloudResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int SwitchPhysicalDtsJobToCloudResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string SwitchPhysicalDtsJobToCloudResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string SwitchPhysicalDtsJobToCloudResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string SwitchPhysicalDtsJobToCloudResult::getErrMessage()const -{ - return errMessage_; -} - -bool SwitchPhysicalDtsJobToCloudResult::getSuccess()const -{ - return success_; -} - -std::string SwitchPhysicalDtsJobToCloudResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/SwitchSynchronizationEndpointRequest.cc b/dts/src/model/SwitchSynchronizationEndpointRequest.cc index 779b05947..59a1c0e59 100644 --- a/dts/src/model/SwitchSynchronizationEndpointRequest.cc +++ b/dts/src/model/SwitchSynchronizationEndpointRequest.cc @@ -19,66 +19,12 @@ using AlibabaCloud::Dts::Model::SwitchSynchronizationEndpointRequest; SwitchSynchronizationEndpointRequest::SwitchSynchronizationEndpointRequest() - : RpcServiceRequest("dts", "2020-01-01", "SwitchSynchronizationEndpoint") { + : RpcServiceRequest("dts", "2019-09-01", "SwitchSynchronizationEndpoint") { setMethod(HttpRequest::Method::Post); } SwitchSynchronizationEndpointRequest::~SwitchSynchronizationEndpointRequest() {} -std::string SwitchSynchronizationEndpointRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SwitchSynchronizationEndpointRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string SwitchSynchronizationEndpointRequest::getSynchronizationJobId() const { - return synchronizationJobId_; -} - -void SwitchSynchronizationEndpointRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { - synchronizationJobId_ = synchronizationJobId; - setParameter(std::string("SynchronizationJobId"), synchronizationJobId); -} - -std::string SwitchSynchronizationEndpointRequest::getEndpointType() const { - return endpointType_; -} - -void SwitchSynchronizationEndpointRequest::setEndpointType(const std::string &endpointType) { - endpointType_ = endpointType; - setParameter(std::string("Endpoint.Type"), endpointType); -} - -std::string SwitchSynchronizationEndpointRequest::getAccountId() const { - return accountId_; -} - -void SwitchSynchronizationEndpointRequest::setAccountId(const std::string &accountId) { - accountId_ = accountId; - setParameter(std::string("AccountId"), accountId); -} - -std::string SwitchSynchronizationEndpointRequest::getRegionId() const { - return regionId_; -} - -void SwitchSynchronizationEndpointRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string SwitchSynchronizationEndpointRequest::getEndpointPort() const { - return endpointPort_; -} - -void SwitchSynchronizationEndpointRequest::setEndpointPort(const std::string &endpointPort) { - endpointPort_ = endpointPort; - setParameter(std::string("Endpoint.Port"), endpointPort); -} - std::string SwitchSynchronizationEndpointRequest::getEndpointInstanceType() const { return endpointInstanceType_; } @@ -88,24 +34,6 @@ void SwitchSynchronizationEndpointRequest::setEndpointInstanceType(const std::st setParameter(std::string("Endpoint.InstanceType"), endpointInstanceType); } -std::string SwitchSynchronizationEndpointRequest::getSourceEndpointOwnerID() const { - return sourceEndpointOwnerID_; -} - -void SwitchSynchronizationEndpointRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) { - sourceEndpointOwnerID_ = sourceEndpointOwnerID; - setParameter(std::string("SourceEndpoint.OwnerID"), sourceEndpointOwnerID); -} - -std::string SwitchSynchronizationEndpointRequest::getSourceEndpointRole() const { - return sourceEndpointRole_; -} - -void SwitchSynchronizationEndpointRequest::setSourceEndpointRole(const std::string &sourceEndpointRole) { - sourceEndpointRole_ = sourceEndpointRole; - setParameter(std::string("SourceEndpoint.Role"), sourceEndpointRole); -} - std::string SwitchSynchronizationEndpointRequest::getEndpointIP() const { return endpointIP_; } @@ -124,6 +52,33 @@ void SwitchSynchronizationEndpointRequest::setOwnerId(const std::string &ownerId setParameter(std::string("OwnerId"), ownerId); } +std::string SwitchSynchronizationEndpointRequest::getSynchronizationJobId() const { + return synchronizationJobId_; +} + +void SwitchSynchronizationEndpointRequest::setSynchronizationJobId(const std::string &synchronizationJobId) { + synchronizationJobId_ = synchronizationJobId; + setParameter(std::string("SynchronizationJobId"), synchronizationJobId); +} + +std::string SwitchSynchronizationEndpointRequest::getEndpointType() const { + return endpointType_; +} + +void SwitchSynchronizationEndpointRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("Endpoint.Type"), endpointType); +} + +std::string SwitchSynchronizationEndpointRequest::getEndpointPort() const { + return endpointPort_; +} + +void SwitchSynchronizationEndpointRequest::setEndpointPort(const std::string &endpointPort) { + endpointPort_ = endpointPort; + setParameter(std::string("Endpoint.Port"), endpointPort); +} + std::string SwitchSynchronizationEndpointRequest::getEndpointInstanceId() const { return endpointInstanceId_; } diff --git a/dts/src/model/TagResourcesRequest.cc b/dts/src/model/TagResourcesRequest.cc deleted file mode 100644 index 9be985d3d..000000000 --- a/dts/src/model/TagResourcesRequest.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() - : RpcServiceRequest("dts", "2020-01-01", "TagResources") { - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() {} - -std::string TagResourcesRequest::getRegionId() const { - return regionId_; -} - -void TagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::vector TagResourcesRequest::getTag() const { - return tag_; -} - -void TagResourcesRequest::setTag(const std::vector &tag) { - tag_ = tag; - for(int dep1 = 0; dep1 != tag.size(); dep1++) { - auto tagObj = tag.at(dep1); - std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); - setParameter(tagObjStr + ".Value", tagObj.value); - setParameter(tagObjStr + ".Key", tagObj.key); - } -} - -std::vector TagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void TagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string TagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void TagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - diff --git a/dts/src/model/TagResourcesResult.cc b/dts/src/model/TagResourcesResult.cc deleted file mode 100644 index ba94ae123..000000000 --- a/dts/src/model/TagResourcesResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -TagResourcesResult::TagResourcesResult() : - ServiceResult() -{} - -TagResourcesResult::TagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TagResourcesResult::~TagResourcesResult() -{} - -void TagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string TagResourcesResult::getErrMessage()const -{ - return errMessage_; -} - -bool TagResourcesResult::getSuccess()const -{ - return success_; -} - -std::string TagResourcesResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/TransferInstanceClassRequest.cc b/dts/src/model/TransferInstanceClassRequest.cc deleted file mode 100644 index 866e64157..000000000 --- a/dts/src/model/TransferInstanceClassRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::TransferInstanceClassRequest; - -TransferInstanceClassRequest::TransferInstanceClassRequest() - : RpcServiceRequest("dts", "2020-01-01", "TransferInstanceClass") { - setMethod(HttpRequest::Method::Post); -} - -TransferInstanceClassRequest::~TransferInstanceClassRequest() {} - -std::string TransferInstanceClassRequest::getInstanceClass() const { - return instanceClass_; -} - -void TransferInstanceClassRequest::setInstanceClass(const std::string &instanceClass) { - instanceClass_ = instanceClass; - setParameter(std::string("InstanceClass"), instanceClass); -} - -std::string TransferInstanceClassRequest::getRegionId() const { - return regionId_; -} - -void TransferInstanceClassRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string TransferInstanceClassRequest::getDtsJobId() const { - return dtsJobId_; -} - -void TransferInstanceClassRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string TransferInstanceClassRequest::getOrderType() const { - return orderType_; -} - -void TransferInstanceClassRequest::setOrderType(const std::string &orderType) { - orderType_ = orderType; - setParameter(std::string("OrderType"), orderType); -} - diff --git a/dts/src/model/TransferInstanceClassResult.cc b/dts/src/model/TransferInstanceClassResult.cc deleted file mode 100644 index b2ce957d2..000000000 --- a/dts/src/model/TransferInstanceClassResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -TransferInstanceClassResult::TransferInstanceClassResult() : - ServiceResult() -{} - -TransferInstanceClassResult::TransferInstanceClassResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TransferInstanceClassResult::~TransferInstanceClassResult() -{} - -void TransferInstanceClassResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::string TransferInstanceClassResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string TransferInstanceClassResult::getEndTime()const -{ - return endTime_; -} - -std::string TransferInstanceClassResult::getInstanceId()const -{ - return instanceId_; -} - -std::string TransferInstanceClassResult::getChargeType()const -{ - return chargeType_; -} - -int TransferInstanceClassResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string TransferInstanceClassResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string TransferInstanceClassResult::getErrMessage()const -{ - return errMessage_; -} - -std::string TransferInstanceClassResult::getCode()const -{ - return code_; -} - -bool TransferInstanceClassResult::getSuccess()const -{ - return success_; -} - -std::string TransferInstanceClassResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/TransferPayTypeRequest.cc b/dts/src/model/TransferPayTypeRequest.cc deleted file mode 100644 index 02d4d5820..000000000 --- a/dts/src/model/TransferPayTypeRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::TransferPayTypeRequest; - -TransferPayTypeRequest::TransferPayTypeRequest() - : RpcServiceRequest("dts", "2020-01-01", "TransferPayType") { - setMethod(HttpRequest::Method::Post); -} - -TransferPayTypeRequest::~TransferPayTypeRequest() {} - -std::string TransferPayTypeRequest::getPeriod() const { - return period_; -} - -void TransferPayTypeRequest::setPeriod(const std::string &period) { - period_ = period; - setParameter(std::string("Period"), period); -} - -std::string TransferPayTypeRequest::getBuyCount() const { - return buyCount_; -} - -void TransferPayTypeRequest::setBuyCount(const std::string &buyCount) { - buyCount_ = buyCount; - setParameter(std::string("BuyCount"), buyCount); -} - -std::string TransferPayTypeRequest::getRegionId() const { - return regionId_; -} - -void TransferPayTypeRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string TransferPayTypeRequest::getDtsJobId() const { - return dtsJobId_; -} - -void TransferPayTypeRequest::setDtsJobId(const std::string &dtsJobId) { - dtsJobId_ = dtsJobId; - setParameter(std::string("DtsJobId"), dtsJobId); -} - -std::string TransferPayTypeRequest::getChargeType() const { - return chargeType_; -} - -void TransferPayTypeRequest::setChargeType(const std::string &chargeType) { - chargeType_ = chargeType; - setParameter(std::string("ChargeType"), chargeType); -} - diff --git a/dts/src/model/TransferPayTypeResult.cc b/dts/src/model/TransferPayTypeResult.cc deleted file mode 100644 index 041fff924..000000000 --- a/dts/src/model/TransferPayTypeResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -TransferPayTypeResult::TransferPayTypeResult() : - ServiceResult() -{} - -TransferPayTypeResult::TransferPayTypeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TransferPayTypeResult::~TransferPayTypeResult() -{} - -void TransferPayTypeResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = value["EndTime"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["DtsJobId"].isNull()) - dtsJobId_ = value["DtsJobId"].asString(); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ChargeType"].isNull()) - chargeType_ = value["ChargeType"].asString(); - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::string TransferPayTypeResult::getDtsJobId()const -{ - return dtsJobId_; -} - -std::string TransferPayTypeResult::getEndTime()const -{ - return endTime_; -} - -std::string TransferPayTypeResult::getInstanceId()const -{ - return instanceId_; -} - -std::string TransferPayTypeResult::getChargeType()const -{ - return chargeType_; -} - -int TransferPayTypeResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string TransferPayTypeResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string TransferPayTypeResult::getErrMessage()const -{ - return errMessage_; -} - -std::string TransferPayTypeResult::getCode()const -{ - return code_; -} - -bool TransferPayTypeResult::getSuccess()const -{ - return success_; -} - -std::string TransferPayTypeResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/UntagResourcesRequest.cc b/dts/src/model/UntagResourcesRequest.cc deleted file mode 100644 index 8bc287d72..000000000 --- a/dts/src/model/UntagResourcesRequest.cc +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() - : RpcServiceRequest("dts", "2020-01-01", "UntagResources") { - setMethod(HttpRequest::Method::Post); -} - -UntagResourcesRequest::~UntagResourcesRequest() {} - -std::string UntagResourcesRequest::getRegionId() const { - return regionId_; -} - -void UntagResourcesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -bool UntagResourcesRequest::getAll() const { - return all_; -} - -void UntagResourcesRequest::setAll(bool all) { - all_ = all; - setParameter(std::string("All"), all ? "true" : "false"); -} - -std::vector UntagResourcesRequest::getResourceId() const { - return resourceId_; -} - -void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { - resourceId_ = resourceId; -} - -std::string UntagResourcesRequest::getResourceType() const { - return resourceType_; -} - -void UntagResourcesRequest::setResourceType(const std::string &resourceType) { - resourceType_ = resourceType; - setParameter(std::string("ResourceType"), resourceType); -} - -std::vector UntagResourcesRequest::getTagKey() const { - return tagKey_; -} - -void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { - tagKey_ = tagKey; -} - diff --git a/dts/src/model/UntagResourcesResult.cc b/dts/src/model/UntagResourcesResult.cc deleted file mode 100644 index ca3de0b2d..000000000 --- a/dts/src/model/UntagResourcesResult.cc +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -UntagResourcesResult::UntagResourcesResult() : - ServiceResult() -{} - -UntagResourcesResult::UntagResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UntagResourcesResult::~UntagResourcesResult() -{} - -void UntagResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - -} - -std::string UntagResourcesResult::getErrMessage()const -{ - return errMessage_; -} - -bool UntagResourcesResult::getSuccess()const -{ - return success_; -} - -std::string UntagResourcesResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/UpgradeTwoWayRequest.cc b/dts/src/model/UpgradeTwoWayRequest.cc deleted file mode 100644 index 771d28b4d..000000000 --- a/dts/src/model/UpgradeTwoWayRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::UpgradeTwoWayRequest; - -UpgradeTwoWayRequest::UpgradeTwoWayRequest() - : RpcServiceRequest("dts", "2020-01-01", "UpgradeTwoWay") { - setMethod(HttpRequest::Method::Post); -} - -UpgradeTwoWayRequest::~UpgradeTwoWayRequest() {} - -std::string UpgradeTwoWayRequest::getInstanceClass() const { - return instanceClass_; -} - -void UpgradeTwoWayRequest::setInstanceClass(const std::string &instanceClass) { - instanceClass_ = instanceClass; - setParameter(std::string("InstanceClass"), instanceClass); -} - -std::string UpgradeTwoWayRequest::getInstanceId() const { - return instanceId_; -} - -void UpgradeTwoWayRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string UpgradeTwoWayRequest::getRegionId() const { - return regionId_; -} - -void UpgradeTwoWayRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/dts/src/model/UpgradeTwoWayResult.cc b/dts/src/model/UpgradeTwoWayResult.cc deleted file mode 100644 index ae5bc5d90..000000000 --- a/dts/src/model/UpgradeTwoWayResult.cc +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -UpgradeTwoWayResult::UpgradeTwoWayResult() : - ServiceResult() -{} - -UpgradeTwoWayResult::UpgradeTwoWayResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpgradeTwoWayResult::~UpgradeTwoWayResult() -{} - -void UpgradeTwoWayResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -int UpgradeTwoWayResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string UpgradeTwoWayResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string UpgradeTwoWayResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string UpgradeTwoWayResult::getErrMessage()const -{ - return errMessage_; -} - -bool UpgradeTwoWayResult::getSuccess()const -{ - return success_; -} - -std::string UpgradeTwoWayResult::getErrCode()const -{ - return errCode_; -} - diff --git a/dts/src/model/WhiteIpListRequest.cc b/dts/src/model/WhiteIpListRequest.cc deleted file mode 100644 index ebd35907a..000000000 --- a/dts/src/model/WhiteIpListRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts::Model::WhiteIpListRequest; - -WhiteIpListRequest::WhiteIpListRequest() - : RpcServiceRequest("dts", "2020-01-01", "WhiteIpList") { - setMethod(HttpRequest::Method::Post); -} - -WhiteIpListRequest::~WhiteIpListRequest() {} - -std::string WhiteIpListRequest::getDestinationRegion() const { - return destinationRegion_; -} - -void WhiteIpListRequest::setDestinationRegion(const std::string &destinationRegion) { - destinationRegion_ = destinationRegion; - setParameter(std::string("DestinationRegion"), destinationRegion); -} - -std::string WhiteIpListRequest::getType() const { - return type_; -} - -void WhiteIpListRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -std::string WhiteIpListRequest::getRegionId() const { - return regionId_; -} - -void WhiteIpListRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -std::string WhiteIpListRequest::getRegion() const { - return region_; -} - -void WhiteIpListRequest::setRegion(const std::string ®ion) { - region_ = region; - setParameter(std::string("Region"), region); -} - diff --git a/dts/src/model/WhiteIpListResult.cc b/dts/src/model/WhiteIpListResult.cc deleted file mode 100644 index 559444983..000000000 --- a/dts/src/model/WhiteIpListResult.cc +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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::Dts; -using namespace AlibabaCloud::Dts::Model; - -WhiteIpListResult::WhiteIpListResult() : - ServiceResult() -{} - -WhiteIpListResult::WhiteIpListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -WhiteIpListResult::~WhiteIpListResult() -{} - -void WhiteIpListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["ErrCode"].isNull()) - errCode_ = value["ErrCode"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrMessage"].isNull()) - errMessage_ = value["ErrMessage"].asString(); - if(!value["IpList"].isNull()) - ipList_ = value["IpList"].asString(); - if(!value["DynamicMessage"].isNull()) - dynamicMessage_ = value["DynamicMessage"].asString(); - if(!value["DynamicCode"].isNull()) - dynamicCode_ = value["DynamicCode"].asString(); - -} - -std::string WhiteIpListResult::getIpList()const -{ - return ipList_; -} - -int WhiteIpListResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string WhiteIpListResult::getDynamicCode()const -{ - return dynamicCode_; -} - -std::string WhiteIpListResult::getDynamicMessage()const -{ - return dynamicMessage_; -} - -std::string WhiteIpListResult::getErrMessage()const -{ - return errMessage_; -} - -bool WhiteIpListResult::getSuccess()const -{ - return success_; -} - -std::string WhiteIpListResult::getErrCode()const -{ - return errCode_; -} -