Compare commits

..

6 Commits

Author SHA1 Message Date
sdk-team
00cc6ef6d2 Supported ModifyDtsJob and DeleteDtsJob. 2021-04-08 12:33:24 +00:00
sdk-team
b4aaee558a Add DetectIPCVideoObject. 2021-04-08 11:36:51 +00:00
sdk-team
bc4ce30725 Release DetectVideoIPCObject. 2021-04-08 06:21:50 +00:00
sdk-team
8375b83a58 Release MonitorExamination. 2021-04-06 02:15:14 +00:00
sdk-team
bd478f9248 Update ScreenChestCT DetectRibFracture. 2021-04-06 02:11:14 +00:00
sdk-team
731984c18d Add data service api, including ListAnalyticsData. 2021-04-01 06:55:44 +00:00
162 changed files with 6884 additions and 217 deletions

View File

@@ -1,3 +1,22 @@
2021-04-08 Version: 1.36.672
- Supported ModifyDtsJob and DeleteDtsJob.
2021-04-08 Version: 1.36.671
- Add DetectIPCVideoObject.
2021-04-08 Version: 1.36.670
- Release DetectVideoIPCObject.
2021-04-06 Version: 1.36.669
- Release MonitorExamination.
2021-04-06 Version: 1.36.668
- Update ScreenChestCT DetectRibFracture.
2021-04-01 Version: 1.36.667
- Add data service api, including ListAnalyticsData.
- Update file uploading api, including GenerateFileUploadURL.
2021-03-31 Version: 1.36.666
- Ecs support hibernation.
- DescribeSnapshotGroups add ProgressStatus.

View File

@@ -1 +1 @@
1.36.666
1.36.672

View File

@@ -21,6 +21,8 @@ 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
@@ -37,6 +39,8 @@ set(dts_public_header_model
include/alibabacloud/dts/model/ConfigureSynchronizationJobReplicatorCompareResult.h
include/alibabacloud/dts/model/CreateConsumerGroupRequest.h
include/alibabacloud/dts/model/CreateConsumerGroupResult.h
include/alibabacloud/dts/model/CreateDtsInstanceRequest.h
include/alibabacloud/dts/model/CreateDtsInstanceResult.h
include/alibabacloud/dts/model/CreateMigrationJobRequest.h
include/alibabacloud/dts/model/CreateMigrationJobResult.h
include/alibabacloud/dts/model/CreateSubscriptionInstanceRequest.h
@@ -45,6 +49,8 @@ set(dts_public_header_model
include/alibabacloud/dts/model/CreateSynchronizationJobResult.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/DeleteMigrationJobRequest.h
include/alibabacloud/dts/model/DeleteMigrationJobResult.h
include/alibabacloud/dts/model/DeleteSubscriptionInstanceRequest.h
@@ -57,6 +63,10 @@ set(dts_public_header_model
include/alibabacloud/dts/model/DescribeConsumerGroupResult.h
include/alibabacloud/dts/model/DescribeDTSIPRequest.h
include/alibabacloud/dts/model/DescribeDTSIPResult.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/DescribeEndpointSwitchStatusRequest.h
include/alibabacloud/dts/model/DescribeEndpointSwitchStatusResult.h
include/alibabacloud/dts/model/DescribeInitializationStatusRequest.h
@@ -69,6 +79,8 @@ set(dts_public_header_model
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
@@ -93,22 +105,38 @@ set(dts_public_header_model
include/alibabacloud/dts/model/ModifyConsumerGroupPasswordResult.h
include/alibabacloud/dts/model/ModifyConsumptionTimestampRequest.h
include/alibabacloud/dts/model/ModifyConsumptionTimestampResult.h
include/alibabacloud/dts/model/ModifyDtsJobRequest.h
include/alibabacloud/dts/model/ModifyDtsJobResult.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/ModifySubscriptionObjectRequest.h
include/alibabacloud/dts/model/ModifySubscriptionObjectResult.h
include/alibabacloud/dts/model/ModifySynchronizationObjectRequest.h
include/alibabacloud/dts/model/ModifySynchronizationObjectResult.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/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/StopDtsJobRequest.h
include/alibabacloud/dts/model/StopDtsJobResult.h
include/alibabacloud/dts/model/StopMigrationJobRequest.h
include/alibabacloud/dts/model/StopMigrationJobResult.h
include/alibabacloud/dts/model/SuspendDtsJobRequest.h
include/alibabacloud/dts/model/SuspendDtsJobResult.h
include/alibabacloud/dts/model/SuspendMigrationJobRequest.h
include/alibabacloud/dts/model/SuspendMigrationJobResult.h
include/alibabacloud/dts/model/SuspendSynchronizationJobRequest.h
@@ -122,6 +150,8 @@ set(dts_public_header_model
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
@@ -138,6 +168,8 @@ set(dts_src
src/model/ConfigureSynchronizationJobReplicatorCompareResult.cc
src/model/CreateConsumerGroupRequest.cc
src/model/CreateConsumerGroupResult.cc
src/model/CreateDtsInstanceRequest.cc
src/model/CreateDtsInstanceResult.cc
src/model/CreateMigrationJobRequest.cc
src/model/CreateMigrationJobResult.cc
src/model/CreateSubscriptionInstanceRequest.cc
@@ -146,6 +178,8 @@ set(dts_src
src/model/CreateSynchronizationJobResult.cc
src/model/DeleteConsumerGroupRequest.cc
src/model/DeleteConsumerGroupResult.cc
src/model/DeleteDtsJobRequest.cc
src/model/DeleteDtsJobResult.cc
src/model/DeleteMigrationJobRequest.cc
src/model/DeleteMigrationJobResult.cc
src/model/DeleteSubscriptionInstanceRequest.cc
@@ -158,6 +192,10 @@ set(dts_src
src/model/DescribeConsumerGroupResult.cc
src/model/DescribeDTSIPRequest.cc
src/model/DescribeDTSIPResult.cc
src/model/DescribeDtsJobDetailRequest.cc
src/model/DescribeDtsJobDetailResult.cc
src/model/DescribeDtsJobsRequest.cc
src/model/DescribeDtsJobsResult.cc
src/model/DescribeEndpointSwitchStatusRequest.cc
src/model/DescribeEndpointSwitchStatusResult.cc
src/model/DescribeInitializationStatusRequest.cc
@@ -170,6 +208,8 @@ set(dts_src
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
@@ -194,22 +234,38 @@ set(dts_src
src/model/ModifyConsumerGroupPasswordResult.cc
src/model/ModifyConsumptionTimestampRequest.cc
src/model/ModifyConsumptionTimestampResult.cc
src/model/ModifyDtsJobRequest.cc
src/model/ModifyDtsJobResult.cc
src/model/ModifyDtsJobNameRequest.cc
src/model/ModifyDtsJobNameResult.cc
src/model/ModifyDtsJobPasswordRequest.cc
src/model/ModifyDtsJobPasswordResult.cc
src/model/ModifySubscriptionObjectRequest.cc
src/model/ModifySubscriptionObjectResult.cc
src/model/ModifySynchronizationObjectRequest.cc
src/model/ModifySynchronizationObjectResult.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/StartMigrationJobRequest.cc
src/model/StartMigrationJobResult.cc
src/model/StartSubscriptionInstanceRequest.cc
src/model/StartSubscriptionInstanceResult.cc
src/model/StartSynchronizationJobRequest.cc
src/model/StartSynchronizationJobResult.cc
src/model/StopDtsJobRequest.cc
src/model/StopDtsJobResult.cc
src/model/StopMigrationJobRequest.cc
src/model/StopMigrationJobResult.cc
src/model/SuspendDtsJobRequest.cc
src/model/SuspendDtsJobResult.cc
src/model/SuspendMigrationJobRequest.cc
src/model/SuspendMigrationJobResult.cc
src/model/SuspendSynchronizationJobRequest.cc

View File

@@ -22,6 +22,8 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "DtsExport.h"
#include "model/ConfigureDtsJobRequest.h"
#include "model/ConfigureDtsJobResult.h"
#include "model/ConfigureMigrationJobRequest.h"
#include "model/ConfigureMigrationJobResult.h"
#include "model/ConfigureMigrationJobAlertRequest.h"
@@ -38,6 +40,8 @@
#include "model/ConfigureSynchronizationJobReplicatorCompareResult.h"
#include "model/CreateConsumerGroupRequest.h"
#include "model/CreateConsumerGroupResult.h"
#include "model/CreateDtsInstanceRequest.h"
#include "model/CreateDtsInstanceResult.h"
#include "model/CreateMigrationJobRequest.h"
#include "model/CreateMigrationJobResult.h"
#include "model/CreateSubscriptionInstanceRequest.h"
@@ -46,6 +50,8 @@
#include "model/CreateSynchronizationJobResult.h"
#include "model/DeleteConsumerGroupRequest.h"
#include "model/DeleteConsumerGroupResult.h"
#include "model/DeleteDtsJobRequest.h"
#include "model/DeleteDtsJobResult.h"
#include "model/DeleteMigrationJobRequest.h"
#include "model/DeleteMigrationJobResult.h"
#include "model/DeleteSubscriptionInstanceRequest.h"
@@ -58,6 +64,10 @@
#include "model/DescribeConsumerGroupResult.h"
#include "model/DescribeDTSIPRequest.h"
#include "model/DescribeDTSIPResult.h"
#include "model/DescribeDtsJobDetailRequest.h"
#include "model/DescribeDtsJobDetailResult.h"
#include "model/DescribeDtsJobsRequest.h"
#include "model/DescribeDtsJobsResult.h"
#include "model/DescribeEndpointSwitchStatusRequest.h"
#include "model/DescribeEndpointSwitchStatusResult.h"
#include "model/DescribeInitializationStatusRequest.h"
@@ -70,6 +80,8 @@
#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"
@@ -94,22 +106,38 @@
#include "model/ModifyConsumerGroupPasswordResult.h"
#include "model/ModifyConsumptionTimestampRequest.h"
#include "model/ModifyConsumptionTimestampResult.h"
#include "model/ModifyDtsJobRequest.h"
#include "model/ModifyDtsJobResult.h"
#include "model/ModifyDtsJobNameRequest.h"
#include "model/ModifyDtsJobNameResult.h"
#include "model/ModifyDtsJobPasswordRequest.h"
#include "model/ModifyDtsJobPasswordResult.h"
#include "model/ModifySubscriptionObjectRequest.h"
#include "model/ModifySubscriptionObjectResult.h"
#include "model/ModifySynchronizationObjectRequest.h"
#include "model/ModifySynchronizationObjectResult.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/StartMigrationJobRequest.h"
#include "model/StartMigrationJobResult.h"
#include "model/StartSubscriptionInstanceRequest.h"
#include "model/StartSubscriptionInstanceResult.h"
#include "model/StartSynchronizationJobRequest.h"
#include "model/StartSynchronizationJobResult.h"
#include "model/StopDtsJobRequest.h"
#include "model/StopDtsJobResult.h"
#include "model/StopMigrationJobRequest.h"
#include "model/StopMigrationJobResult.h"
#include "model/SuspendDtsJobRequest.h"
#include "model/SuspendDtsJobResult.h"
#include "model/SuspendMigrationJobRequest.h"
#include "model/SuspendMigrationJobResult.h"
#include "model/SuspendSynchronizationJobRequest.h"
@@ -129,6 +157,9 @@ namespace AlibabaCloud
class ALIBABACLOUD_DTS_EXPORT DtsClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::ConfigureDtsJobResult> ConfigureDtsJobOutcome;
typedef std::future<ConfigureDtsJobOutcome> ConfigureDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ConfigureDtsJobRequest&, const ConfigureDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureDtsJobAsyncHandler;
typedef Outcome<Error, Model::ConfigureMigrationJobResult> ConfigureMigrationJobOutcome;
typedef std::future<ConfigureMigrationJobOutcome> ConfigureMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ConfigureMigrationJobRequest&, const ConfigureMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigureMigrationJobAsyncHandler;
@@ -153,6 +184,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateConsumerGroupResult> CreateConsumerGroupOutcome;
typedef std::future<CreateConsumerGroupOutcome> CreateConsumerGroupOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateConsumerGroupRequest&, const CreateConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateConsumerGroupAsyncHandler;
typedef Outcome<Error, Model::CreateDtsInstanceResult> CreateDtsInstanceOutcome;
typedef std::future<CreateDtsInstanceOutcome> CreateDtsInstanceOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateDtsInstanceRequest&, const CreateDtsInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDtsInstanceAsyncHandler;
typedef Outcome<Error, Model::CreateMigrationJobResult> CreateMigrationJobOutcome;
typedef std::future<CreateMigrationJobOutcome> CreateMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::CreateMigrationJobRequest&, const CreateMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMigrationJobAsyncHandler;
@@ -165,6 +199,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteConsumerGroupResult> DeleteConsumerGroupOutcome;
typedef std::future<DeleteConsumerGroupOutcome> DeleteConsumerGroupOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteConsumerGroupRequest&, const DeleteConsumerGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteConsumerGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteDtsJobResult> DeleteDtsJobOutcome;
typedef std::future<DeleteDtsJobOutcome> DeleteDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteDtsJobRequest&, const DeleteDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDtsJobAsyncHandler;
typedef Outcome<Error, Model::DeleteMigrationJobResult> DeleteMigrationJobOutcome;
typedef std::future<DeleteMigrationJobOutcome> DeleteMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DeleteMigrationJobRequest&, const DeleteMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMigrationJobAsyncHandler;
@@ -183,6 +220,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDTSIPResult> DescribeDTSIPOutcome;
typedef std::future<DescribeDTSIPOutcome> DescribeDTSIPOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDTSIPRequest&, const DescribeDTSIPOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDTSIPAsyncHandler;
typedef Outcome<Error, Model::DescribeDtsJobDetailResult> DescribeDtsJobDetailOutcome;
typedef std::future<DescribeDtsJobDetailOutcome> DescribeDtsJobDetailOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDtsJobDetailRequest&, const DescribeDtsJobDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDtsJobDetailAsyncHandler;
typedef Outcome<Error, Model::DescribeDtsJobsResult> DescribeDtsJobsOutcome;
typedef std::future<DescribeDtsJobsOutcome> DescribeDtsJobsOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeDtsJobsRequest&, const DescribeDtsJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDtsJobsAsyncHandler;
typedef Outcome<Error, Model::DescribeEndpointSwitchStatusResult> DescribeEndpointSwitchStatusOutcome;
typedef std::future<DescribeEndpointSwitchStatusOutcome> DescribeEndpointSwitchStatusOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeEndpointSwitchStatusRequest&, const DescribeEndpointSwitchStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEndpointSwitchStatusAsyncHandler;
@@ -201,6 +244,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeMigrationJobsResult> DescribeMigrationJobsOutcome;
typedef std::future<DescribeMigrationJobsOutcome> DescribeMigrationJobsOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeMigrationJobsRequest&, const DescribeMigrationJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMigrationJobsAsyncHandler;
typedef Outcome<Error, Model::DescribePreCheckStatusResult> DescribePreCheckStatusOutcome;
typedef std::future<DescribePreCheckStatusOutcome> DescribePreCheckStatusOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribePreCheckStatusRequest&, const DescribePreCheckStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePreCheckStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeSubscriptionInstanceAlertResult> DescribeSubscriptionInstanceAlertOutcome;
typedef std::future<DescribeSubscriptionInstanceAlertOutcome> DescribeSubscriptionInstanceAlertOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::DescribeSubscriptionInstanceAlertRequest&, const DescribeSubscriptionInstanceAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSubscriptionInstanceAlertAsyncHandler;
@@ -237,18 +283,36 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyConsumptionTimestampResult> ModifyConsumptionTimestampOutcome;
typedef std::future<ModifyConsumptionTimestampOutcome> ModifyConsumptionTimestampOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyConsumptionTimestampRequest&, const ModifyConsumptionTimestampOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyConsumptionTimestampAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobResult> ModifyDtsJobOutcome;
typedef std::future<ModifyDtsJobOutcome> ModifyDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobRequest&, const ModifyDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobNameResult> ModifyDtsJobNameOutcome;
typedef std::future<ModifyDtsJobNameOutcome> ModifyDtsJobNameOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobNameRequest&, const ModifyDtsJobNameOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobNameAsyncHandler;
typedef Outcome<Error, Model::ModifyDtsJobPasswordResult> ModifyDtsJobPasswordOutcome;
typedef std::future<ModifyDtsJobPasswordOutcome> ModifyDtsJobPasswordOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifyDtsJobPasswordRequest&, const ModifyDtsJobPasswordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDtsJobPasswordAsyncHandler;
typedef Outcome<Error, Model::ModifySubscriptionObjectResult> ModifySubscriptionObjectOutcome;
typedef std::future<ModifySubscriptionObjectOutcome> ModifySubscriptionObjectOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifySubscriptionObjectRequest&, const ModifySubscriptionObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySubscriptionObjectAsyncHandler;
typedef Outcome<Error, Model::ModifySynchronizationObjectResult> ModifySynchronizationObjectOutcome;
typedef std::future<ModifySynchronizationObjectOutcome> ModifySynchronizationObjectOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ModifySynchronizationObjectRequest&, const ModifySynchronizationObjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySynchronizationObjectAsyncHandler;
typedef Outcome<Error, Model::ResetDtsJobResult> ResetDtsJobOutcome;
typedef std::future<ResetDtsJobOutcome> ResetDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ResetDtsJobRequest&, const ResetDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetDtsJobAsyncHandler;
typedef Outcome<Error, Model::ResetSynchronizationJobResult> ResetSynchronizationJobOutcome;
typedef std::future<ResetSynchronizationJobOutcome> ResetSynchronizationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ResetSynchronizationJobRequest&, const ResetSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ResetSynchronizationJobAsyncHandler;
typedef Outcome<Error, Model::ShieldPrecheckResult> ShieldPrecheckOutcome;
typedef std::future<ShieldPrecheckOutcome> ShieldPrecheckOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::ShieldPrecheckRequest&, const ShieldPrecheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ShieldPrecheckAsyncHandler;
typedef Outcome<Error, Model::SkipPreCheckResult> SkipPreCheckOutcome;
typedef std::future<SkipPreCheckOutcome> SkipPreCheckOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SkipPreCheckRequest&, const SkipPreCheckOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SkipPreCheckAsyncHandler;
typedef Outcome<Error, Model::StartDtsJobResult> StartDtsJobOutcome;
typedef std::future<StartDtsJobOutcome> StartDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartDtsJobRequest&, const StartDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartDtsJobAsyncHandler;
typedef Outcome<Error, Model::StartMigrationJobResult> StartMigrationJobOutcome;
typedef std::future<StartMigrationJobOutcome> StartMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartMigrationJobRequest&, const StartMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartMigrationJobAsyncHandler;
@@ -258,9 +322,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StartSynchronizationJobResult> StartSynchronizationJobOutcome;
typedef std::future<StartSynchronizationJobOutcome> StartSynchronizationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StartSynchronizationJobRequest&, const StartSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartSynchronizationJobAsyncHandler;
typedef Outcome<Error, Model::StopDtsJobResult> StopDtsJobOutcome;
typedef std::future<StopDtsJobOutcome> StopDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StopDtsJobRequest&, const StopDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDtsJobAsyncHandler;
typedef Outcome<Error, Model::StopMigrationJobResult> StopMigrationJobOutcome;
typedef std::future<StopMigrationJobOutcome> StopMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::StopMigrationJobRequest&, const StopMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMigrationJobAsyncHandler;
typedef Outcome<Error, Model::SuspendDtsJobResult> SuspendDtsJobOutcome;
typedef std::future<SuspendDtsJobOutcome> SuspendDtsJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SuspendDtsJobRequest&, const SuspendDtsJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendDtsJobAsyncHandler;
typedef Outcome<Error, Model::SuspendMigrationJobResult> SuspendMigrationJobOutcome;
typedef std::future<SuspendMigrationJobOutcome> SuspendMigrationJobOutcomeCallable;
typedef std::function<void(const DtsClient*, const Model::SuspendMigrationJobRequest&, const SuspendMigrationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SuspendMigrationJobAsyncHandler;
@@ -281,6 +351,9 @@ namespace AlibabaCloud
DtsClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
ConfigureMigrationJobOutcomeCallable configureMigrationJobCallable(const Model::ConfigureMigrationJobRequest& request) const;
@@ -305,6 +378,9 @@ namespace AlibabaCloud
CreateConsumerGroupOutcome createConsumerGroup(const Model::CreateConsumerGroupRequest &request)const;
void createConsumerGroupAsync(const Model::CreateConsumerGroupRequest& request, const CreateConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateConsumerGroupOutcomeCallable createConsumerGroupCallable(const Model::CreateConsumerGroupRequest& request) const;
CreateDtsInstanceOutcome createDtsInstance(const Model::CreateDtsInstanceRequest &request)const;
void createDtsInstanceAsync(const Model::CreateDtsInstanceRequest& request, const CreateDtsInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDtsInstanceOutcomeCallable createDtsInstanceCallable(const Model::CreateDtsInstanceRequest& request) const;
CreateMigrationJobOutcome createMigrationJob(const Model::CreateMigrationJobRequest &request)const;
void createMigrationJobAsync(const Model::CreateMigrationJobRequest& request, const CreateMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateMigrationJobOutcomeCallable createMigrationJobCallable(const Model::CreateMigrationJobRequest& request) const;
@@ -317,6 +393,9 @@ namespace AlibabaCloud
DeleteConsumerGroupOutcome deleteConsumerGroup(const Model::DeleteConsumerGroupRequest &request)const;
void deleteConsumerGroupAsync(const Model::DeleteConsumerGroupRequest& request, const DeleteConsumerGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DeleteDtsJobOutcomeCallable deleteDtsJobCallable(const Model::DeleteDtsJobRequest& request) const;
DeleteMigrationJobOutcome deleteMigrationJob(const Model::DeleteMigrationJobRequest &request)const;
void deleteMigrationJobAsync(const Model::DeleteMigrationJobRequest& request, const DeleteMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMigrationJobOutcomeCallable deleteMigrationJobCallable(const Model::DeleteMigrationJobRequest& request) const;
@@ -335,6 +414,12 @@ namespace AlibabaCloud
DescribeDTSIPOutcome describeDTSIP(const Model::DescribeDTSIPRequest &request)const;
void describeDTSIPAsync(const Model::DescribeDTSIPRequest& request, const DescribeDTSIPAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDTSIPOutcomeCallable describeDTSIPCallable(const Model::DescribeDTSIPRequest& request) const;
DescribeDtsJobDetailOutcome describeDtsJobDetail(const Model::DescribeDtsJobDetailRequest &request)const;
void describeDtsJobDetailAsync(const Model::DescribeDtsJobDetailRequest& request, const DescribeDtsJobDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DescribeDtsJobsOutcomeCallable describeDtsJobsCallable(const Model::DescribeDtsJobsRequest& request) const;
DescribeEndpointSwitchStatusOutcome describeEndpointSwitchStatus(const Model::DescribeEndpointSwitchStatusRequest &request)const;
void describeEndpointSwitchStatusAsync(const Model::DescribeEndpointSwitchStatusRequest& request, const DescribeEndpointSwitchStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeEndpointSwitchStatusOutcomeCallable describeEndpointSwitchStatusCallable(const Model::DescribeEndpointSwitchStatusRequest& request) const;
@@ -353,6 +438,9 @@ namespace AlibabaCloud
DescribeMigrationJobsOutcome describeMigrationJobs(const Model::DescribeMigrationJobsRequest &request)const;
void describeMigrationJobsAsync(const Model::DescribeMigrationJobsRequest& request, const DescribeMigrationJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
DescribeSubscriptionInstanceAlertOutcomeCallable describeSubscriptionInstanceAlertCallable(const Model::DescribeSubscriptionInstanceAlertRequest& request) const;
@@ -389,18 +477,36 @@ namespace AlibabaCloud
ModifyConsumptionTimestampOutcome modifyConsumptionTimestamp(const Model::ModifyConsumptionTimestampRequest &request)const;
void modifyConsumptionTimestampAsync(const Model::ModifyConsumptionTimestampRequest& request, const ModifyConsumptionTimestampAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyConsumptionTimestampOutcomeCallable modifyConsumptionTimestampCallable(const Model::ModifyConsumptionTimestampRequest& request) const;
ModifyDtsJobOutcome modifyDtsJob(const Model::ModifyDtsJobRequest &request)const;
void modifyDtsJobAsync(const Model::ModifyDtsJobRequest& request, const ModifyDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDtsJobOutcomeCallable modifyDtsJobCallable(const Model::ModifyDtsJobRequest& request) const;
ModifyDtsJobNameOutcome modifyDtsJobName(const Model::ModifyDtsJobNameRequest &request)const;
void modifyDtsJobNameAsync(const Model::ModifyDtsJobNameRequest& request, const ModifyDtsJobNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
ModifyDtsJobPasswordOutcomeCallable modifyDtsJobPasswordCallable(const Model::ModifyDtsJobPasswordRequest& request) const;
ModifySubscriptionObjectOutcome modifySubscriptionObject(const Model::ModifySubscriptionObjectRequest &request)const;
void modifySubscriptionObjectAsync(const Model::ModifySubscriptionObjectRequest& request, const ModifySubscriptionObjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
ModifySynchronizationObjectOutcomeCallable modifySynchronizationObjectCallable(const Model::ModifySynchronizationObjectRequest& request) const;
ResetDtsJobOutcome resetDtsJob(const Model::ResetDtsJobRequest &request)const;
void resetDtsJobAsync(const Model::ResetDtsJobRequest& request, const ResetDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
StartDtsJobOutcomeCallable startDtsJobCallable(const Model::StartDtsJobRequest& request) const;
StartMigrationJobOutcome startMigrationJob(const Model::StartMigrationJobRequest &request)const;
void startMigrationJobAsync(const Model::StartMigrationJobRequest& request, const StartMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartMigrationJobOutcomeCallable startMigrationJobCallable(const Model::StartMigrationJobRequest& request) const;
@@ -410,9 +516,15 @@ namespace AlibabaCloud
StartSynchronizationJobOutcome startSynchronizationJob(const Model::StartSynchronizationJobRequest &request)const;
void startSynchronizationJobAsync(const Model::StartSynchronizationJobRequest& request, const StartSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StartSynchronizationJobOutcomeCallable startSynchronizationJobCallable(const Model::StartSynchronizationJobRequest& request) const;
StopDtsJobOutcome stopDtsJob(const Model::StopDtsJobRequest &request)const;
void stopDtsJobAsync(const Model::StopDtsJobRequest& request, const StopDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopDtsJobOutcomeCallable stopDtsJobCallable(const Model::StopDtsJobRequest& request) const;
StopMigrationJobOutcome stopMigrationJob(const Model::StopMigrationJobRequest &request)const;
void stopMigrationJobAsync(const Model::StopMigrationJobRequest& request, const StopMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMigrationJobOutcomeCallable stopMigrationJobCallable(const Model::StopMigrationJobRequest& request) const;
SuspendDtsJobOutcome suspendDtsJob(const Model::SuspendDtsJobRequest &request)const;
void suspendDtsJobAsync(const Model::SuspendDtsJobRequest& request, const SuspendDtsJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SuspendDtsJobOutcomeCallable suspendDtsJobCallable(const Model::SuspendDtsJobRequest& request) const;
SuspendMigrationJobOutcome suspendMigrationJob(const Model::SuspendMigrationJobRequest &request)const;
void suspendMigrationJobAsync(const Model::SuspendMigrationJobRequest& request, const SuspendMigrationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SuspendMigrationJobOutcomeCallable suspendMigrationJobCallable(const Model::SuspendMigrationJobRequest& request) const;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobRequest : public RpcServiceRequest
{
public:
DeleteDtsJobRequest();
~DeleteDtsJobRequest();
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 dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_DELETEDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -53,10 +53,10 @@ namespace AlibabaCloud
void setSourceEndpointIP(const std::string& sourceEndpointIP);
std::string getDestinationEndpointUserName()const;
void setDestinationEndpointUserName(const std::string& destinationEndpointUserName);
bool getDestinationEndpointArchitecture()const;
void setDestinationEndpointArchitecture(bool destinationEndpointArchitecture);
bool getDestinationEndpointOracleSID()const;
void setDestinationEndpointOracleSID(bool destinationEndpointOracleSID);
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;
@@ -90,8 +90,8 @@ namespace AlibabaCloud
std::string destinationEndpointRegion_;
std::string sourceEndpointIP_;
std::string destinationEndpointUserName_;
bool destinationEndpointArchitecture_;
bool destinationEndpointOracleSID_;
std::string destinationEndpointArchitecture_;
std::string destinationEndpointOracleSID_;
std::string destinationEndpointEngineName_;
std::string destinationEndpointInstanceID_;
std::string destinationEndpointPort_;

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobDetailRequest : public RpcServiceRequest
{
public:
DescribeDtsJobDetailRequest();
~DescribeDtsJobDetailRequest();
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILREQUEST_H_

View File

@@ -0,0 +1,131 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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 structureInitialization;
};
DescribeDtsJobDetailResult();
explicit DescribeDtsJobDetailResult(const std::string &payload);
~DescribeDtsJobDetailResult();
std::string getStatus()const;
std::string getDbObject()const;
std::string getCreateTime()const;
std::string getDtsJobName()const;
std::string getDynamicMessage()const;
std::string getPayType()const;
std::string getErrMessage()const;
int getCode()const;
std::string getDtsInstanceID()const;
MigrationMode getMigrationMode()const;
bool getSuccess()const;
int getDelay()const;
std::string getErrCode()const;
std::string getDtsJobClass()const;
int getCheckpoint()const;
std::string getDtsJobId()const;
std::string getDtsJobDirection()const;
std::string getFinishTime()const;
DestinationEndpoint getDestinationEndpoint()const;
SourceEndpoint getSourceEndpoint()const;
int getHttpStatusCode()const;
std::string getExpireTime()const;
std::string getErrorMessage()const;
std::string getReserved()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
std::string dbObject_;
std::string createTime_;
std::string dtsJobName_;
std::string dynamicMessage_;
std::string payType_;
std::string errMessage_;
int code_;
std::string dtsInstanceID_;
MigrationMode migrationMode_;
bool success_;
int delay_;
std::string errCode_;
std::string dtsJobClass_;
int checkpoint_;
std::string dtsJobId_;
std::string dtsJobDirection_;
std::string finishTime_;
DestinationEndpoint destinationEndpoint_;
SourceEndpoint sourceEndpoint_;
int httpStatusCode_;
std::string expireTime_;
std::string errorMessage_;
std::string reserved_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBDETAILRESULT_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
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 getType()const;
void setType(const std::string& type);
std::string getParams()const;
void setParams(const std::string& params);
std::string getJobType()const;
void setJobType(const std::string& jobType);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getTags()const;
void setTags(const std::string& tags);
std::string getOrderColumn()const;
void setOrderColumn(const std::string& orderColumn);
int getPageSize()const;
void setPageSize(int pageSize);
std::string getRegion()const;
void setRegion(const std::string& region);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
std::string orderDirection_;
std::string type_;
std::string params_;
std::string jobType_;
int pageNumber_;
std::string tags_;
std::string orderColumn_;
int pageSize_;
std::string region_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSREQUEST_H_

View File

@@ -0,0 +1,272 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsResult : public ServiceResult
{
public:
struct DtsJobStatus
{
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 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 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<PrecheckDetail> detail;
};
struct StructureInitializationStatus
{
std::string status;
std::string progress;
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 progress;
std::string percent;
std::string errorMessage;
};
struct Performance
{
std::string rps;
std::string flow;
};
struct ReverseJob
{
struct SourceEndpoint1
{
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 DestinationEndpoint2
{
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 MigrationMode3
{
bool dataInitialization;
bool dataSynchronization;
bool structureInitialization;
};
struct PrecheckStatus4
{
struct PrecheckDetail10
{
std::string repairMethod;
std::string checkItem;
std::string checkResult;
std::string failedReason;
std::string checkItemDescription;
};
std::string status;
std::string percent;
std::vector<PrecheckDetail10> detail9;
std::string errorMessage;
};
struct StructureInitializationStatus5
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataInitializationStatus6
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct DataSynchronizationStatus7
{
std::string status;
std::string progress;
std::string percent;
std::string errorMessage;
};
struct Performance8
{
std::string rps;
std::string flow;
};
std::string status;
Performance8 performance8;
SourceEndpoint1 sourceEndpoint1;
std::string dbObject;
std::string createTime;
PrecheckStatus4 precheckStatus4;
std::string dtsJobName;
std::string payType;
MigrationMode3 migrationMode3;
std::string dtsInstanceID;
int delay;
StructureInitializationStatus5 structureInitializationStatus5;
DestinationEndpoint2 destinationEndpoint2;
std::string dtsJobClass;
std::string checkpoint;
std::string dtsJobId;
std::string dtsJobDirection;
DataInitializationStatus6 dataInitializationStatus6;
DataSynchronizationStatus7 dataSynchronizationStatus7;
std::string expireTime;
std::string errorMessage;
std::string reserved;
};
struct DtsTag
{
std::string tagKey;
std::string tagValue;
};
std::string status;
DataInitializationStatus dataInitializationStatus;
std::string dbObject;
std::string createTime;
ReverseJob reverseJob;
std::string dtsJobName;
std::string payType;
std::string dtsInstanceID;
MigrationMode migrationMode;
int delay;
PrecheckStatus precheckStatus;
std::string dtsJobClass;
std::string checkpoint;
std::string dtsJobId;
std::string dtsJobDirection;
DestinationEndpoint destinationEndpoint;
SourceEndpoint sourceEndpoint;
std::vector<DtsJobStatus::DtsTag> tagList;
Performance performance;
std::string expireTime;
std::string errorMessage;
StructureInitializationStatus structureInitializationStatus;
DataSynchronizationStatus dataSynchronizationStatus;
std::string reserved;
};
DescribeDtsJobsResult();
explicit DescribeDtsJobsResult(const std::string &payload);
~DescribeDtsJobsResult();
int getTotalRecordCount()const;
std::vector<DtsJobStatus> getDtsJobList()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:
int totalRecordCount_;
std::vector<DtsJobStatus> dtsJobList_;
int pageRecordCount_;
int pageNumber_;
int httpStatusCode_;
std::string dynamicCode_;
std::string dynamicMessage_;
std::string errMessage_;
bool success_;
std::string errCode_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEDTSJOBSRESULT_H_

View File

@@ -101,6 +101,7 @@ namespace AlibabaCloud
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;
@@ -121,6 +122,7 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
DataInitializationStatus dataInitializationStatus_;
std::string taskId_;
std::string migrationJobName_;
std::string payType_;
std::string errMessage_;

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
DescribeMigrationJobsRequest();
~DescribeMigrationJobsRequest();
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
@@ -57,6 +59,7 @@ namespace AlibabaCloud
void setTag(const std::vector<Tag>& tag);
private:
std::string instFilterRegion_;
int pageNum_;
std::string ownerId_;
std::string accessKeyId_;

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
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 getPageNo()const;
void setPageNo(const std::string& pageNo);
std::string getPageSize()const;
void setPageSize(const std::string& pageSize);
std::string getJobCode()const;
void setJobCode(const std::string& jobCode);
std::string getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string structType_;
std::string pageNo_;
std::string pageSize_;
std::string jobCode_;
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSREQUEST_H_

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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 sub;
std::string destSchema;
std::string errMsg;
std::string targetNames;
long bootTime;
std::vector<ProgressInfo::JobLog> logs;
std::string names;
std::string item;
bool canSkip;
std::string repairMethod;
int delaySeconds;
long finishTime;
int orderNum;
long diffRow;
std::string parentObj;
std::string ignoreFlag;
std::string state;
int total;
bool skip;
std::string errDetail;
std::string jobId;
std::string ddlSql;
};
DescribePreCheckStatusResult();
explicit DescribePreCheckStatusResult(const std::string &payload);
~DescribePreCheckStatusResult();
std::string getState()const;
int getTotal()const;
int getHttpStatusCode()const;
std::string getJobName()const;
int getErrorItem()const;
std::string getCode()const;
bool getSuccess()const;
std::vector<ProgressInfo> getJobProgress()const;
protected:
void parse(const std::string &payload);
private:
std::string state_;
int total_;
int httpStatusCode_;
std::string jobName_;
int errorItem_;
std::string code_;
bool success_;
std::vector<ProgressInfo> jobProgress_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBEPRECHECKSTATUSRESULT_H_

View File

@@ -60,6 +60,7 @@ namespace AlibabaCloud
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;
@@ -82,6 +83,7 @@ namespace AlibabaCloud
void parse(const std::string &payload);
private:
std::string status_;
std::string taskId_;
SubscriptionHost subscriptionHost_;
std::string endTimestamp_;
std::string payType_;

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
@@ -60,6 +62,7 @@ namespace AlibabaCloud
private:
std::string clientToken_;
std::string instFilterRegion_;
int pageNum_;
std::string ownerId_;
std::string accessKeyId_;

View File

@@ -111,57 +111,59 @@ namespace AlibabaCloud
DescribeSynchronizationJobStatusResult();
explicit DescribeSynchronizationJobStatusResult(const std::string &payload);
~DescribeSynchronizationJobStatusResult();
std::string getStatus()const;
DataInitializationStatus getDataInitializationStatus()const;
std::vector<SynchronizationObject> 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 getDelay()const;
std::string getSuccess()const;
std::string getErrCode()const;
PrecheckStatus getPrecheckStatus()const;
std::string getCheckpoint()const;
long getDelayMillis()const;
std::string getSynchronizationJobId()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;
DataSynchronizationStatus getDataSynchronizationStatus()const;
StructureInitializationStatus getStructureInitializationStatus()const;
protected:
void parse(const std::string &payload);
private:
std::string status_;
DataInitializationStatus dataInitializationStatus_;
std::vector<SynchronizationObject> 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 delay_;
std::string success_;
std::string errCode_;
PrecheckStatus precheckStatus_;
std::string checkpoint_;
long delayMillis_;
std::string synchronizationJobId_;
std::string dataInitialization_;
DestinationEndpoint destinationEndpoint_;
SourceEndpoint sourceEndpoint_;
std::string structureInitialization_;
Performance performance_;
std::string errorMessage_;
std::string expireTime_;
std::string synchronizationJobClass_;
std::string synchronizationDirection_;
DataSynchronizationStatus dataSynchronizationStatus_;
StructureInitializationStatus structureInitializationStatus_;
};

View File

@@ -43,6 +43,8 @@ namespace AlibabaCloud
std::string getClientToken()const;
void setClientToken(const std::string& clientToken);
std::string getInstFilterRegion()const;
void setInstFilterRegion(const std::string& instFilterRegion);
int getPageNum()const;
void setPageNum(int pageNum);
std::string getOwnerId()const;
@@ -60,6 +62,7 @@ namespace AlibabaCloud
private:
std::string clientToken_;
std::string instFilterRegion_;
int pageNum_;
std::string ownerId_;
std::string accessKeyId_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
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 getDtsJobId()const;
void setDtsJobId(const std::string& dtsJobId);
private:
std::string dtsJobName_;
std::string dtsJobId_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMEREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBNAMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
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 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 dtsJobId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBPASSWORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobRequest : public RpcServiceRequest
{
public:
ModifyDtsJobRequest();
~ModifyDtsJobRequest();
std::string getDbList()const;
void setDbList(const std::string& dbList);
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 getDtsInstanceId()const;
void setDtsInstanceId(const std::string& dtsInstanceId);
std::string getSynchronizationDirection()const;
void setSynchronizationDirection(const std::string& synchronizationDirection);
private:
std::string dbList_;
std::string clientToken_;
std::string ownerId_;
std::string accessKeyId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_MODIFYDTSJOBREQUEST_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT ResetDtsJobRequest : public RpcServiceRequest
{
public:
ResetDtsJobRequest();
~ResetDtsJobRequest();
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 dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_RESETDTSJOBREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_RESETDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SkipPreCheckRequest : public RpcServiceRequest
{
public:
SkipPreCheckRequest();
~SkipPreCheckRequest();
std::string getSkipPreCheckItems()const;
void setSkipPreCheckItems(const std::string& skipPreCheckItems);
bool getSkip()const;
void setSkip(bool skip);
std::string getJobId()const;
void setJobId(const std::string& jobId);
std::string getSkipPreCheckNames()const;
void setSkipPreCheckNames(const std::string& skipPreCheckNames);
private:
std::string skipPreCheckItems_;
bool skip_;
std::string jobId_;
std::string skipPreCheckNames_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKREQUEST_H_

View File

@@ -0,0 +1,69 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_SKIPPRECHECKRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT StopDtsJobRequest : public RpcServiceRequest
{
public:
StopDtsJobRequest();
~StopDtsJobRequest();
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 dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_STOPDTSJOBREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_STOPDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_
#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/dts/DtsExport.h>
namespace AlibabaCloud
{
namespace Dts
{
namespace Model
{
class ALIBABACLOUD_DTS_EXPORT SuspendDtsJobRequest : public RpcServiceRequest
{
public:
SuspendDtsJobRequest();
~SuspendDtsJobRequest();
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 dtsJobId_;
std::string dtsInstanceId_;
std::string synchronizationDirection_;
};
}
}
}
#endif // !ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_
#define ALIBABACLOUD_DTS_MODEL_SUSPENDDTSJOBRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/dts/DtsExport.h>
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_

View File

@@ -51,6 +51,42 @@ DtsClient::DtsClient(const std::string & accessKeyId, const std::string & access
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<const AsyncCallerContext>& 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<std::packaged_task<ConfigureDtsJobOutcome()>>(
[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();
@@ -339,6 +375,42 @@ DtsClient::CreateConsumerGroupOutcomeCallable DtsClient::createConsumerGroupCall
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<const AsyncCallerContext>& 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<std::packaged_task<CreateDtsInstanceOutcome()>>(
[this, request]()
{
return this->createDtsInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::CreateMigrationJobOutcome DtsClient::createMigrationJob(const CreateMigrationJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -483,6 +555,42 @@ DtsClient::DeleteConsumerGroupOutcomeCallable DtsClient::deleteConsumerGroupCall
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<const AsyncCallerContext>& 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<std::packaged_task<DeleteDtsJobOutcome()>>(
[this, request]()
{
return this->deleteDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DeleteMigrationJobOutcome DtsClient::deleteMigrationJob(const DeleteMigrationJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,6 +807,78 @@ DtsClient::DescribeDTSIPOutcomeCallable DtsClient::describeDTSIPCallable(const D
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<const AsyncCallerContext>& 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<std::packaged_task<DescribeDtsJobDetailOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<DescribeDtsJobsOutcome()>>(
[this, request]()
{
return this->describeDtsJobs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::DescribeEndpointSwitchStatusOutcome DtsClient::describeEndpointSwitchStatus(const DescribeEndpointSwitchStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,6 +1095,42 @@ DtsClient::DescribeMigrationJobsOutcomeCallable DtsClient::describeMigrationJobs
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<const AsyncCallerContext>& 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<std::packaged_task<DescribePreCheckStatusOutcome()>>(
[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();
@@ -1347,6 +1563,114 @@ DtsClient::ModifyConsumptionTimestampOutcomeCallable DtsClient::modifyConsumptio
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<const AsyncCallerContext>& 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<std::packaged_task<ModifyDtsJobOutcome()>>(
[this, request]()
{
return this->modifyDtsJob(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<const AsyncCallerContext>& 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<std::packaged_task<ModifyDtsJobNameOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<ModifyDtsJobPasswordOutcome()>>(
[this, request]()
{
return this->modifyDtsJobPassword(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::ModifySubscriptionObjectOutcome DtsClient::modifySubscriptionObject(const ModifySubscriptionObjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1419,6 +1743,42 @@ DtsClient::ModifySynchronizationObjectOutcomeCallable DtsClient::modifySynchroni
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<const AsyncCallerContext>& 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<std::packaged_task<ResetDtsJobOutcome()>>(
[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();
@@ -1491,6 +1851,78 @@ DtsClient::ShieldPrecheckOutcomeCallable DtsClient::shieldPrecheckCallable(const
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<const AsyncCallerContext>& 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<std::packaged_task<SkipPreCheckOutcome()>>(
[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<const AsyncCallerContext>& 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<std::packaged_task<StartDtsJobOutcome()>>(
[this, request]()
{
return this->startDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::StartMigrationJobOutcome DtsClient::startMigrationJob(const StartMigrationJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1599,6 +2031,42 @@ DtsClient::StartSynchronizationJobOutcomeCallable DtsClient::startSynchronizatio
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<const AsyncCallerContext>& 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<std::packaged_task<StopDtsJobOutcome()>>(
[this, request]()
{
return this->stopDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::StopMigrationJobOutcome DtsClient::stopMigrationJob(const StopMigrationJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1635,6 +2103,42 @@ DtsClient::StopMigrationJobOutcomeCallable DtsClient::stopMigrationJobCallable(c
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<const AsyncCallerContext>& 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<std::packaged_task<SuspendDtsJobOutcome()>>(
[this, request]()
{
return this->suspendDtsJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
DtsClient::SuspendMigrationJobOutcome DtsClient::suspendMigrationJob(const SuspendMigrationJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DeleteDtsJobRequest.h>
using AlibabaCloud::Dts::Model::DeleteDtsJobRequest;
DeleteDtsJobRequest::DeleteDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "DeleteDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDtsJobRequest::~DeleteDtsJobRequest()
{}
std::string DeleteDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DeleteDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string DeleteDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void DeleteDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string DeleteDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void DeleteDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DeleteDtsJobResult.h>
#include <json/json.h>
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["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

View File

@@ -126,26 +126,26 @@ void DescribeConnectionStatusRequest::setDestinationEndpointUserName(const std::
setParameter("DestinationEndpointUserName", destinationEndpointUserName);
}
bool DescribeConnectionStatusRequest::getDestinationEndpointArchitecture()const
std::string DescribeConnectionStatusRequest::getDestinationEndpointArchitecture()const
{
return destinationEndpointArchitecture_;
}
void DescribeConnectionStatusRequest::setDestinationEndpointArchitecture(bool destinationEndpointArchitecture)
void DescribeConnectionStatusRequest::setDestinationEndpointArchitecture(const std::string& destinationEndpointArchitecture)
{
destinationEndpointArchitecture_ = destinationEndpointArchitecture;
setParameter("DestinationEndpointArchitecture", destinationEndpointArchitecture ? "true" : "false");
setParameter("DestinationEndpointArchitecture", destinationEndpointArchitecture);
}
bool DescribeConnectionStatusRequest::getDestinationEndpointOracleSID()const
std::string DescribeConnectionStatusRequest::getDestinationEndpointOracleSID()const
{
return destinationEndpointOracleSID_;
}
void DescribeConnectionStatusRequest::setDestinationEndpointOracleSID(bool destinationEndpointOracleSID)
void DescribeConnectionStatusRequest::setDestinationEndpointOracleSID(const std::string& destinationEndpointOracleSID)
{
destinationEndpointOracleSID_ = destinationEndpointOracleSID;
setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID ? "true" : "false");
setParameter("DestinationEndpointOracleSID", destinationEndpointOracleSID);
}
std::string DescribeConnectionStatusRequest::getDestinationEndpointEngineName()const

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobDetailRequest.h>
using AlibabaCloud::Dts::Model::DescribeDtsJobDetailRequest;
DescribeDtsJobDetailRequest::DescribeDtsJobDetailRequest() :
RpcServiceRequest("dts", "2020-01-01", "DescribeDtsJobDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDtsJobDetailRequest::~DescribeDtsJobDetailRequest()
{}
std::string DescribeDtsJobDetailRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DescribeDtsJobDetailRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

@@ -0,0 +1,259 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobDetailResult.h>
#include <json/json.h>
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 sourceEndpointNode = value["SourceEndpoint"];
if(!sourceEndpointNode["InstanceID"].isNull())
sourceEndpoint_.instanceID = sourceEndpointNode["InstanceID"].asString();
if(!sourceEndpointNode["Region"].isNull())
sourceEndpoint_.region = sourceEndpointNode["Region"].asString();
if(!sourceEndpointNode["InstanceType"].isNull())
sourceEndpoint_.instanceType = sourceEndpointNode["InstanceType"].asString();
if(!sourceEndpointNode["EngineName"].isNull())
sourceEndpoint_.engineName = sourceEndpointNode["EngineName"].asString();
if(!sourceEndpointNode["Ip"].isNull())
sourceEndpoint_.ip = sourceEndpointNode["Ip"].asString();
if(!sourceEndpointNode["Port"].isNull())
sourceEndpoint_.port = sourceEndpointNode["Port"].asString();
if(!sourceEndpointNode["DatabaseName"].isNull())
sourceEndpoint_.databaseName = sourceEndpointNode["DatabaseName"].asString();
if(!sourceEndpointNode["OracleSID"].isNull())
sourceEndpoint_.oracleSID = sourceEndpointNode["OracleSID"].asString();
if(!sourceEndpointNode["UserName"].isNull())
sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString();
if(!sourceEndpointNode["SslSolutionEnum"].isNull())
sourceEndpoint_.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString();
if(!sourceEndpointNode["RoleName"].isNull())
sourceEndpoint_.roleName = sourceEndpointNode["RoleName"].asString();
if(!sourceEndpointNode["AliyunUid"].isNull())
sourceEndpoint_.aliyunUid = sourceEndpointNode["AliyunUid"].asString();
auto destinationEndpointNode = value["DestinationEndpoint"];
if(!destinationEndpointNode["InstanceID"].isNull())
destinationEndpoint_.instanceID = destinationEndpointNode["InstanceID"].asString();
if(!destinationEndpointNode["Region"].isNull())
destinationEndpoint_.region = destinationEndpointNode["Region"].asString();
if(!destinationEndpointNode["InstanceType"].isNull())
destinationEndpoint_.instanceType = destinationEndpointNode["InstanceType"].asString();
if(!destinationEndpointNode["EngineName"].isNull())
destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString();
if(!destinationEndpointNode["Ip"].isNull())
destinationEndpoint_.ip = destinationEndpointNode["Ip"].asString();
if(!destinationEndpointNode["Port"].isNull())
destinationEndpoint_.port = destinationEndpointNode["Port"].asString();
if(!destinationEndpointNode["DatabaseName"].isNull())
destinationEndpoint_.databaseName = destinationEndpointNode["DatabaseName"].asString();
if(!destinationEndpointNode["OracleSID"].isNull())
destinationEndpoint_.oracleSID = destinationEndpointNode["OracleSID"].asString();
if(!destinationEndpointNode["UserName"].isNull())
destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString();
if(!destinationEndpointNode["SslSolutionEnum"].isNull())
destinationEndpoint_.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString();
auto migrationModeNode = value["MigrationMode"];
if(!migrationModeNode["StructureInitialization"].isNull())
migrationMode_.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true";
if(!migrationModeNode["DataInitialization"].isNull())
migrationMode_.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true";
if(!migrationModeNode["DataSynchronization"].isNull())
migrationMode_.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(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["DtsInstanceID"].isNull())
dtsInstanceID_ = value["DtsInstanceID"].asString();
if(!value["DtsJobId"].isNull())
dtsJobId_ = value["DtsJobId"].asString();
if(!value["DtsJobName"].isNull())
dtsJobName_ = value["DtsJobName"].asString();
if(!value["DtsJobClass"].isNull())
dtsJobClass_ = value["DtsJobClass"].asString();
if(!value["DtsJobDirection"].isNull())
dtsJobDirection_ = value["DtsJobDirection"].asString();
if(!value["PayType"].isNull())
payType_ = value["PayType"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["FinishTime"].isNull())
finishTime_ = value["FinishTime"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Checkpoint"].isNull())
checkpoint_ = std::stoi(value["Checkpoint"].asString());
if(!value["Delay"].isNull())
delay_ = std::stoi(value["Delay"].asString());
if(!value["Reserved"].isNull())
reserved_ = value["Reserved"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["DbObject"].isNull())
dbObject_ = value["DbObject"].asString();
}
std::string DescribeDtsJobDetailResult::getStatus()const
{
return status_;
}
std::string DescribeDtsJobDetailResult::getDbObject()const
{
return dbObject_;
}
std::string DescribeDtsJobDetailResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeDtsJobDetailResult::getDtsJobName()const
{
return dtsJobName_;
}
std::string DescribeDtsJobDetailResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string DescribeDtsJobDetailResult::getPayType()const
{
return payType_;
}
std::string DescribeDtsJobDetailResult::getErrMessage()const
{
return errMessage_;
}
int DescribeDtsJobDetailResult::getCode()const
{
return code_;
}
std::string DescribeDtsJobDetailResult::getDtsInstanceID()const
{
return dtsInstanceID_;
}
DescribeDtsJobDetailResult::MigrationMode DescribeDtsJobDetailResult::getMigrationMode()const
{
return migrationMode_;
}
bool DescribeDtsJobDetailResult::getSuccess()const
{
return success_;
}
int DescribeDtsJobDetailResult::getDelay()const
{
return delay_;
}
std::string DescribeDtsJobDetailResult::getErrCode()const
{
return errCode_;
}
std::string DescribeDtsJobDetailResult::getDtsJobClass()const
{
return dtsJobClass_;
}
int DescribeDtsJobDetailResult::getCheckpoint()const
{
return checkpoint_;
}
std::string DescribeDtsJobDetailResult::getDtsJobId()const
{
return dtsJobId_;
}
std::string DescribeDtsJobDetailResult::getDtsJobDirection()const
{
return dtsJobDirection_;
}
std::string DescribeDtsJobDetailResult::getFinishTime()const
{
return finishTime_;
}
DescribeDtsJobDetailResult::DestinationEndpoint DescribeDtsJobDetailResult::getDestinationEndpoint()const
{
return destinationEndpoint_;
}
DescribeDtsJobDetailResult::SourceEndpoint DescribeDtsJobDetailResult::getSourceEndpoint()const
{
return sourceEndpoint_;
}
int DescribeDtsJobDetailResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribeDtsJobDetailResult::getExpireTime()const
{
return expireTime_;
}
std::string DescribeDtsJobDetailResult::getErrorMessage()const
{
return errorMessage_;
}
std::string DescribeDtsJobDetailResult::getReserved()const
{
return reserved_;
}

View File

@@ -0,0 +1,139 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobsRequest.h>
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("OrderDirection", orderDirection);
}
std::string DescribeDtsJobsRequest::getType()const
{
return type_;
}
void DescribeDtsJobsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeDtsJobsRequest::getParams()const
{
return params_;
}
void DescribeDtsJobsRequest::setParams(const std::string& params)
{
params_ = params;
setParameter("Params", params);
}
std::string DescribeDtsJobsRequest::getJobType()const
{
return jobType_;
}
void DescribeDtsJobsRequest::setJobType(const std::string& jobType)
{
jobType_ = jobType;
setParameter("JobType", jobType);
}
int DescribeDtsJobsRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeDtsJobsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDtsJobsRequest::getTags()const
{
return tags_;
}
void DescribeDtsJobsRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string DescribeDtsJobsRequest::getOrderColumn()const
{
return orderColumn_;
}
void DescribeDtsJobsRequest::setOrderColumn(const std::string& orderColumn)
{
orderColumn_ = orderColumn;
setParameter("OrderColumn", orderColumn);
}
int DescribeDtsJobsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeDtsJobsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeDtsJobsRequest::getRegion()const
{
return region_;
}
void DescribeDtsJobsRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string DescribeDtsJobsRequest::getStatus()const
{
return status_;
}
void DescribeDtsJobsRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,393 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribeDtsJobsResult.h>
#include <json/json.h>
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["DtsInstanceID"].isNull())
dtsJobListObject.dtsInstanceID = valueDtsJobListDtsJobStatus["DtsInstanceID"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobId"].isNull())
dtsJobListObject.dtsJobId = valueDtsJobListDtsJobStatus["DtsJobId"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobName"].isNull())
dtsJobListObject.dtsJobName = valueDtsJobListDtsJobStatus["DtsJobName"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobClass"].isNull())
dtsJobListObject.dtsJobClass = valueDtsJobListDtsJobStatus["DtsJobClass"].asString();
if(!valueDtsJobListDtsJobStatus["DtsJobDirection"].isNull())
dtsJobListObject.dtsJobDirection = valueDtsJobListDtsJobStatus["DtsJobDirection"].asString();
if(!valueDtsJobListDtsJobStatus["PayType"].isNull())
dtsJobListObject.payType = valueDtsJobListDtsJobStatus["PayType"].asString();
if(!valueDtsJobListDtsJobStatus["ExpireTime"].isNull())
dtsJobListObject.expireTime = valueDtsJobListDtsJobStatus["ExpireTime"].asString();
if(!valueDtsJobListDtsJobStatus["CreateTime"].isNull())
dtsJobListObject.createTime = valueDtsJobListDtsJobStatus["CreateTime"].asString();
if(!valueDtsJobListDtsJobStatus["Status"].isNull())
dtsJobListObject.status = valueDtsJobListDtsJobStatus["Status"].asString();
if(!valueDtsJobListDtsJobStatus["ErrorMessage"].isNull())
dtsJobListObject.errorMessage = valueDtsJobListDtsJobStatus["ErrorMessage"].asString();
if(!valueDtsJobListDtsJobStatus["Delay"].isNull())
dtsJobListObject.delay = std::stoi(valueDtsJobListDtsJobStatus["Delay"].asString());
if(!valueDtsJobListDtsJobStatus["Checkpoint"].isNull())
dtsJobListObject.checkpoint = valueDtsJobListDtsJobStatus["Checkpoint"].asString();
if(!valueDtsJobListDtsJobStatus["DbObject"].isNull())
dtsJobListObject.dbObject = valueDtsJobListDtsJobStatus["DbObject"].asString();
if(!valueDtsJobListDtsJobStatus["Reserved"].isNull())
dtsJobListObject.reserved = valueDtsJobListDtsJobStatus["Reserved"].asString();
auto allTagListNode = valueDtsJobListDtsJobStatus["TagList"]["DtsTag"];
for (auto valueDtsJobListDtsJobStatusTagListDtsTag : allTagListNode)
{
DtsJobStatus::DtsTag tagListObject;
if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].isNull())
tagListObject.tagKey = valueDtsJobListDtsJobStatusTagListDtsTag["TagKey"].asString();
if(!valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].isNull())
tagListObject.tagValue = valueDtsJobListDtsJobStatusTagListDtsTag["TagValue"].asString();
dtsJobListObject.tagList.push_back(tagListObject);
}
auto sourceEndpointNode = value["SourceEndpoint"];
if(!sourceEndpointNode["InstanceID"].isNull())
dtsJobListObject.sourceEndpoint.instanceID = sourceEndpointNode["InstanceID"].asString();
if(!sourceEndpointNode["InstanceType"].isNull())
dtsJobListObject.sourceEndpoint.instanceType = sourceEndpointNode["InstanceType"].asString();
if(!sourceEndpointNode["EngineName"].isNull())
dtsJobListObject.sourceEndpoint.engineName = sourceEndpointNode["EngineName"].asString();
if(!sourceEndpointNode["Ip"].isNull())
dtsJobListObject.sourceEndpoint.ip = sourceEndpointNode["Ip"].asString();
if(!sourceEndpointNode["Port"].isNull())
dtsJobListObject.sourceEndpoint.port = sourceEndpointNode["Port"].asString();
if(!sourceEndpointNode["DatabaseName"].isNull())
dtsJobListObject.sourceEndpoint.databaseName = sourceEndpointNode["DatabaseName"].asString();
if(!sourceEndpointNode["OracleSID"].isNull())
dtsJobListObject.sourceEndpoint.oracleSID = sourceEndpointNode["OracleSID"].asString();
if(!sourceEndpointNode["UserName"].isNull())
dtsJobListObject.sourceEndpoint.userName = sourceEndpointNode["UserName"].asString();
if(!sourceEndpointNode["SslSolutionEnum"].isNull())
dtsJobListObject.sourceEndpoint.sslSolutionEnum = sourceEndpointNode["SslSolutionEnum"].asString();
if(!sourceEndpointNode["Region"].isNull())
dtsJobListObject.sourceEndpoint.region = sourceEndpointNode["Region"].asString();
auto destinationEndpointNode = value["DestinationEndpoint"];
if(!destinationEndpointNode["InstanceID"].isNull())
dtsJobListObject.destinationEndpoint.instanceID = destinationEndpointNode["InstanceID"].asString();
if(!destinationEndpointNode["InstanceType"].isNull())
dtsJobListObject.destinationEndpoint.instanceType = destinationEndpointNode["InstanceType"].asString();
if(!destinationEndpointNode["EngineName"].isNull())
dtsJobListObject.destinationEndpoint.engineName = destinationEndpointNode["EngineName"].asString();
if(!destinationEndpointNode["Ip"].isNull())
dtsJobListObject.destinationEndpoint.ip = destinationEndpointNode["Ip"].asString();
if(!destinationEndpointNode["Port"].isNull())
dtsJobListObject.destinationEndpoint.port = destinationEndpointNode["Port"].asString();
if(!destinationEndpointNode["DatabaseName"].isNull())
dtsJobListObject.destinationEndpoint.databaseName = destinationEndpointNode["DatabaseName"].asString();
if(!destinationEndpointNode["OracleSID"].isNull())
dtsJobListObject.destinationEndpoint.oracleSID = destinationEndpointNode["OracleSID"].asString();
if(!destinationEndpointNode["UserName"].isNull())
dtsJobListObject.destinationEndpoint.userName = destinationEndpointNode["UserName"].asString();
if(!destinationEndpointNode["SslSolutionEnum"].isNull())
dtsJobListObject.destinationEndpoint.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString();
if(!destinationEndpointNode["Region"].isNull())
dtsJobListObject.destinationEndpoint.region = destinationEndpointNode["Region"].asString();
auto migrationModeNode = value["MigrationMode"];
if(!migrationModeNode["StructureInitialization"].isNull())
dtsJobListObject.migrationMode.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true";
if(!migrationModeNode["DataInitialization"].isNull())
dtsJobListObject.migrationMode.dataInitialization = migrationModeNode["DataInitialization"].asString() == "true";
if(!migrationModeNode["DataSynchronization"].isNull())
dtsJobListObject.migrationMode.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true";
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["CheckItem"].isNull())
precheckDetailObject.checkItem = precheckStatusNodeDetailPrecheckDetail["CheckItem"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].isNull())
precheckDetailObject.checkItemDescription = precheckStatusNodeDetailPrecheckDetail["CheckItemDescription"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["CheckResult"].isNull())
precheckDetailObject.checkResult = precheckStatusNodeDetailPrecheckDetail["CheckResult"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["FailedReason"].isNull())
precheckDetailObject.failedReason = precheckStatusNodeDetailPrecheckDetail["FailedReason"].asString();
if(!precheckStatusNodeDetailPrecheckDetail["RepairMethod"].isNull())
precheckDetailObject.repairMethod = precheckStatusNodeDetailPrecheckDetail["RepairMethod"].asString();
dtsJobListObject.precheckStatus.detail.push_back(precheckDetailObject);
}
auto structureInitializationStatusNode = value["StructureInitializationStatus"];
if(!structureInitializationStatusNode["Status"].isNull())
dtsJobListObject.structureInitializationStatus.status = structureInitializationStatusNode["Status"].asString();
if(!structureInitializationStatusNode["ErrorMessage"].isNull())
dtsJobListObject.structureInitializationStatus.errorMessage = structureInitializationStatusNode["ErrorMessage"].asString();
if(!structureInitializationStatusNode["Percent"].isNull())
dtsJobListObject.structureInitializationStatus.percent = structureInitializationStatusNode["Percent"].asString();
if(!structureInitializationStatusNode["Progress"].isNull())
dtsJobListObject.structureInitializationStatus.progress = structureInitializationStatusNode["Progress"].asString();
auto dataInitializationStatusNode = value["DataInitializationStatus"];
if(!dataInitializationStatusNode["Status"].isNull())
dtsJobListObject.dataInitializationStatus.status = dataInitializationStatusNode["Status"].asString();
if(!dataInitializationStatusNode["ErrorMessage"].isNull())
dtsJobListObject.dataInitializationStatus.errorMessage = dataInitializationStatusNode["ErrorMessage"].asString();
if(!dataInitializationStatusNode["Percent"].isNull())
dtsJobListObject.dataInitializationStatus.percent = dataInitializationStatusNode["Percent"].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["ErrorMessage"].isNull())
dtsJobListObject.dataSynchronizationStatus.errorMessage = dataSynchronizationStatusNode["ErrorMessage"].asString();
if(!dataSynchronizationStatusNode["Percent"].isNull())
dtsJobListObject.dataSynchronizationStatus.percent = dataSynchronizationStatusNode["Percent"].asString();
if(!dataSynchronizationStatusNode["Progress"].isNull())
dtsJobListObject.dataSynchronizationStatus.progress = dataSynchronizationStatusNode["Progress"].asString();
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 reverseJobNode = value["ReverseJob"];
if(!reverseJobNode["DtsInstanceID"].isNull())
dtsJobListObject.reverseJob.dtsInstanceID = reverseJobNode["DtsInstanceID"].asString();
if(!reverseJobNode["DtsJobId"].isNull())
dtsJobListObject.reverseJob.dtsJobId = reverseJobNode["DtsJobId"].asString();
if(!reverseJobNode["DtsJobName"].isNull())
dtsJobListObject.reverseJob.dtsJobName = reverseJobNode["DtsJobName"].asString();
if(!reverseJobNode["DtsJobClass"].isNull())
dtsJobListObject.reverseJob.dtsJobClass = reverseJobNode["DtsJobClass"].asString();
if(!reverseJobNode["DtsJobDirection"].isNull())
dtsJobListObject.reverseJob.dtsJobDirection = reverseJobNode["DtsJobDirection"].asString();
if(!reverseJobNode["PayType"].isNull())
dtsJobListObject.reverseJob.payType = reverseJobNode["PayType"].asString();
if(!reverseJobNode["ExpireTime"].isNull())
dtsJobListObject.reverseJob.expireTime = reverseJobNode["ExpireTime"].asString();
if(!reverseJobNode["CreateTime"].isNull())
dtsJobListObject.reverseJob.createTime = reverseJobNode["CreateTime"].asString();
if(!reverseJobNode["Status"].isNull())
dtsJobListObject.reverseJob.status = reverseJobNode["Status"].asString();
if(!reverseJobNode["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.errorMessage = reverseJobNode["ErrorMessage"].asString();
if(!reverseJobNode["Delay"].isNull())
dtsJobListObject.reverseJob.delay = std::stoi(reverseJobNode["Delay"].asString());
if(!reverseJobNode["Checkpoint"].isNull())
dtsJobListObject.reverseJob.checkpoint = reverseJobNode["Checkpoint"].asString();
if(!reverseJobNode["DbObject"].isNull())
dtsJobListObject.reverseJob.dbObject = reverseJobNode["DbObject"].asString();
if(!reverseJobNode["Reserved"].isNull())
dtsJobListObject.reverseJob.reserved = reverseJobNode["Reserved"].asString();
auto sourceEndpoint1Node = reverseJobNode["SourceEndpoint"];
if(!sourceEndpoint1Node["InstanceID"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.instanceID = sourceEndpoint1Node["InstanceID"].asString();
if(!sourceEndpoint1Node["InstanceType"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.instanceType = sourceEndpoint1Node["InstanceType"].asString();
if(!sourceEndpoint1Node["EngineName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.engineName = sourceEndpoint1Node["EngineName"].asString();
if(!sourceEndpoint1Node["Ip"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.ip = sourceEndpoint1Node["Ip"].asString();
if(!sourceEndpoint1Node["Port"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.port = sourceEndpoint1Node["Port"].asString();
if(!sourceEndpoint1Node["DatabaseName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.databaseName = sourceEndpoint1Node["DatabaseName"].asString();
if(!sourceEndpoint1Node["OracleSID"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.oracleSID = sourceEndpoint1Node["OracleSID"].asString();
if(!sourceEndpoint1Node["UserName"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.userName = sourceEndpoint1Node["UserName"].asString();
if(!sourceEndpoint1Node["SslSolutionEnum"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.sslSolutionEnum = sourceEndpoint1Node["SslSolutionEnum"].asString();
if(!sourceEndpoint1Node["Region"].isNull())
dtsJobListObject.reverseJob.sourceEndpoint1.region = sourceEndpoint1Node["Region"].asString();
auto destinationEndpoint2Node = reverseJobNode["DestinationEndpoint"];
if(!destinationEndpoint2Node["InstanceID"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.instanceID = destinationEndpoint2Node["InstanceID"].asString();
if(!destinationEndpoint2Node["InstanceType"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.instanceType = destinationEndpoint2Node["InstanceType"].asString();
if(!destinationEndpoint2Node["EngineName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.engineName = destinationEndpoint2Node["EngineName"].asString();
if(!destinationEndpoint2Node["Ip"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.ip = destinationEndpoint2Node["Ip"].asString();
if(!destinationEndpoint2Node["Port"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.port = destinationEndpoint2Node["Port"].asString();
if(!destinationEndpoint2Node["DatabaseName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.databaseName = destinationEndpoint2Node["DatabaseName"].asString();
if(!destinationEndpoint2Node["OracleSID"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.oracleSID = destinationEndpoint2Node["OracleSID"].asString();
if(!destinationEndpoint2Node["UserName"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.userName = destinationEndpoint2Node["UserName"].asString();
if(!destinationEndpoint2Node["SslSolutionEnum"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.sslSolutionEnum = destinationEndpoint2Node["SslSolutionEnum"].asString();
if(!destinationEndpoint2Node["Region"].isNull())
dtsJobListObject.reverseJob.destinationEndpoint2.region = destinationEndpoint2Node["Region"].asString();
auto migrationMode3Node = reverseJobNode["MigrationMode"];
if(!migrationMode3Node["StructureInitialization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.structureInitialization = migrationMode3Node["StructureInitialization"].asString() == "true";
if(!migrationMode3Node["DataInitialization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.dataInitialization = migrationMode3Node["DataInitialization"].asString() == "true";
if(!migrationMode3Node["DataSynchronization"].isNull())
dtsJobListObject.reverseJob.migrationMode3.dataSynchronization = migrationMode3Node["DataSynchronization"].asString() == "true";
auto precheckStatus4Node = reverseJobNode["PrecheckStatus"];
if(!precheckStatus4Node["Status"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.status = precheckStatus4Node["Status"].asString();
if(!precheckStatus4Node["Percent"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.percent = precheckStatus4Node["Percent"].asString();
if(!precheckStatus4Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.precheckStatus4.errorMessage = precheckStatus4Node["ErrorMessage"].asString();
auto allDetail9Node = precheckStatus4Node["Detail"]["PrecheckDetail"];
for (auto precheckStatus4NodeDetailPrecheckDetail : allDetail9Node)
{
DtsJobStatus::ReverseJob::PrecheckStatus4::PrecheckDetail10 precheckDetail10Object;
if(!precheckStatus4NodeDetailPrecheckDetail["CheckItem"].isNull())
precheckDetail10Object.checkItem = precheckStatus4NodeDetailPrecheckDetail["CheckItem"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["CheckItemDescription"].isNull())
precheckDetail10Object.checkItemDescription = precheckStatus4NodeDetailPrecheckDetail["CheckItemDescription"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["CheckResult"].isNull())
precheckDetail10Object.checkResult = precheckStatus4NodeDetailPrecheckDetail["CheckResult"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["FailedReason"].isNull())
precheckDetail10Object.failedReason = precheckStatus4NodeDetailPrecheckDetail["FailedReason"].asString();
if(!precheckStatus4NodeDetailPrecheckDetail["RepairMethod"].isNull())
precheckDetail10Object.repairMethod = precheckStatus4NodeDetailPrecheckDetail["RepairMethod"].asString();
dtsJobListObject.reverseJob.precheckStatus4.detail9.push_back(precheckDetail10Object);
}
auto structureInitializationStatus5Node = reverseJobNode["StructureInitializationStatus"];
if(!structureInitializationStatus5Node["Status"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.status = structureInitializationStatus5Node["Status"].asString();
if(!structureInitializationStatus5Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.errorMessage = structureInitializationStatus5Node["ErrorMessage"].asString();
if(!structureInitializationStatus5Node["Percent"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.percent = structureInitializationStatus5Node["Percent"].asString();
if(!structureInitializationStatus5Node["Progress"].isNull())
dtsJobListObject.reverseJob.structureInitializationStatus5.progress = structureInitializationStatus5Node["Progress"].asString();
auto dataInitializationStatus6Node = reverseJobNode["DataInitializationStatus"];
if(!dataInitializationStatus6Node["Status"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.status = dataInitializationStatus6Node["Status"].asString();
if(!dataInitializationStatus6Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.errorMessage = dataInitializationStatus6Node["ErrorMessage"].asString();
if(!dataInitializationStatus6Node["Percent"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.percent = dataInitializationStatus6Node["Percent"].asString();
if(!dataInitializationStatus6Node["Progress"].isNull())
dtsJobListObject.reverseJob.dataInitializationStatus6.progress = dataInitializationStatus6Node["Progress"].asString();
auto dataSynchronizationStatus7Node = reverseJobNode["DataSynchronizationStatus"];
if(!dataSynchronizationStatus7Node["Status"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.status = dataSynchronizationStatus7Node["Status"].asString();
if(!dataSynchronizationStatus7Node["ErrorMessage"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.errorMessage = dataSynchronizationStatus7Node["ErrorMessage"].asString();
if(!dataSynchronizationStatus7Node["Percent"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.percent = dataSynchronizationStatus7Node["Percent"].asString();
if(!dataSynchronizationStatus7Node["Progress"].isNull())
dtsJobListObject.reverseJob.dataSynchronizationStatus7.progress = dataSynchronizationStatus7Node["Progress"].asString();
auto performance8Node = reverseJobNode["Performance"];
if(!performance8Node["Rps"].isNull())
dtsJobListObject.reverseJob.performance8.rps = performance8Node["Rps"].asString();
if(!performance8Node["Flow"].isNull())
dtsJobListObject.reverseJob.performance8.flow = performance8Node["Flow"].asString();
dtsJobList_.push_back(dtsJobListObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].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());
}
int DescribeDtsJobsResult::getTotalRecordCount()const
{
return totalRecordCount_;
}
std::vector<DescribeDtsJobsResult::DtsJobStatus> 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_;
}
bool DescribeDtsJobsResult::getSuccess()const
{
return success_;
}
std::string DescribeDtsJobsResult::getErrCode()const
{
return errCode_;
}

View File

@@ -146,6 +146,8 @@ void DescribeMigrationJobStatusResult::parse(const std::string &payload)
payType_ = value["PayType"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
@@ -154,6 +156,11 @@ DescribeMigrationJobStatusResult::DataInitializationStatus DescribeMigrationJobS
return dataInitializationStatus_;
}
std::string DescribeMigrationJobStatusResult::getTaskId()const
{
return taskId_;
}
std::string DescribeMigrationJobStatusResult::getMigrationJobName()const
{
return migrationJobName_;

View File

@@ -27,6 +27,17 @@ DescribeMigrationJobsRequest::DescribeMigrationJobsRequest() :
DescribeMigrationJobsRequest::~DescribeMigrationJobsRequest()
{}
std::string DescribeMigrationJobsRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeMigrationJobsRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeMigrationJobsRequest::getPageNum()const
{
return pageNum_;

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribePreCheckStatusRequest.h>
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("StructType", structType);
}
std::string DescribePreCheckStatusRequest::getPageNo()const
{
return pageNo_;
}
void DescribePreCheckStatusRequest::setPageNo(const std::string& pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", pageNo);
}
std::string DescribePreCheckStatusRequest::getPageSize()const
{
return pageSize_;
}
void DescribePreCheckStatusRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", pageSize);
}
std::string DescribePreCheckStatusRequest::getJobCode()const
{
return jobCode_;
}
void DescribePreCheckStatusRequest::setJobCode(const std::string& jobCode)
{
jobCode_ = jobCode;
setParameter("JobCode", jobCode);
}
std::string DescribePreCheckStatusRequest::getDtsJobId()const
{
return dtsJobId_;
}
void DescribePreCheckStatusRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

@@ -0,0 +1,162 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/DescribePreCheckStatusResult.h>
#include <json/json.h>
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["BootTime"].isNull())
jobProgressObject.bootTime = std::stol(valueJobProgressProgressInfo["BootTime"].asString());
if(!valueJobProgressProgressInfo["CanSkip"].isNull())
jobProgressObject.canSkip = valueJobProgressProgressInfo["CanSkip"].asString() == "true";
if(!valueJobProgressProgressInfo["DelaySeconds"].isNull())
jobProgressObject.delaySeconds = std::stoi(valueJobProgressProgressInfo["DelaySeconds"].asString());
if(!valueJobProgressProgressInfo["FinishTime"].isNull())
jobProgressObject.finishTime = std::stol(valueJobProgressProgressInfo["FinishTime"].asString());
if(!valueJobProgressProgressInfo["IgnoreFlag"].isNull())
jobProgressObject.ignoreFlag = valueJobProgressProgressInfo["IgnoreFlag"].asString();
if(!valueJobProgressProgressInfo["Item"].isNull())
jobProgressObject.item = valueJobProgressProgressInfo["Item"].asString();
if(!valueJobProgressProgressInfo["JobId"].isNull())
jobProgressObject.jobId = valueJobProgressProgressInfo["JobId"].asString();
if(!valueJobProgressProgressInfo["Names"].isNull())
jobProgressObject.names = valueJobProgressProgressInfo["Names"].asString();
if(!valueJobProgressProgressInfo["OrderNum"].isNull())
jobProgressObject.orderNum = std::stoi(valueJobProgressProgressInfo["OrderNum"].asString());
if(!valueJobProgressProgressInfo["Skip"].isNull())
jobProgressObject.skip = valueJobProgressProgressInfo["Skip"].asString() == "true";
if(!valueJobProgressProgressInfo["State"].isNull())
jobProgressObject.state = valueJobProgressProgressInfo["State"].asString();
if(!valueJobProgressProgressInfo["Sub"].isNull())
jobProgressObject.sub = valueJobProgressProgressInfo["Sub"].asString();
if(!valueJobProgressProgressInfo["RepairMethod"].isNull())
jobProgressObject.repairMethod = valueJobProgressProgressInfo["RepairMethod"].asString();
if(!valueJobProgressProgressInfo["TargetNames"].isNull())
jobProgressObject.targetNames = valueJobProgressProgressInfo["TargetNames"].asString();
if(!valueJobProgressProgressInfo["Total"].isNull())
jobProgressObject.total = std::stoi(valueJobProgressProgressInfo["Total"].asString());
if(!valueJobProgressProgressInfo["SourceSchema"].isNull())
jobProgressObject.sourceSchema = valueJobProgressProgressInfo["SourceSchema"].asString();
if(!valueJobProgressProgressInfo["ParentObj"].isNull())
jobProgressObject.parentObj = valueJobProgressProgressInfo["ParentObj"].asString();
if(!valueJobProgressProgressInfo["DiffRow"].isNull())
jobProgressObject.diffRow = std::stol(valueJobProgressProgressInfo["DiffRow"].asString());
if(!valueJobProgressProgressInfo["DestSchema"].isNull())
jobProgressObject.destSchema = valueJobProgressProgressInfo["DestSchema"].asString();
if(!valueJobProgressProgressInfo["ErrDetail"].isNull())
jobProgressObject.errDetail = valueJobProgressProgressInfo["ErrDetail"].asString();
if(!valueJobProgressProgressInfo["ErrMsg"].isNull())
jobProgressObject.errMsg = valueJobProgressProgressInfo["ErrMsg"].asString();
if(!valueJobProgressProgressInfo["DdlSql"].isNull())
jobProgressObject.ddlSql = valueJobProgressProgressInfo["DdlSql"].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["ErrType"].isNull())
logsObject.errType = valueJobProgressProgressInfoLogsJobLog["ErrType"].asString();
if(!valueJobProgressProgressInfoLogsJobLog["LogLevel"].isNull())
logsObject.logLevel = valueJobProgressProgressInfoLogsJobLog["LogLevel"].asString();
jobProgressObject.logs.push_back(logsObject);
}
jobProgress_.push_back(jobProgressObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ErrorItem"].isNull())
errorItem_ = std::stoi(value["ErrorItem"].asString());
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["JobName"].isNull())
jobName_ = value["JobName"].asString();
if(!value["State"].isNull())
state_ = value["State"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::string DescribePreCheckStatusResult::getState()const
{
return state_;
}
int DescribePreCheckStatusResult::getTotal()const
{
return total_;
}
int DescribePreCheckStatusResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
std::string DescribePreCheckStatusResult::getJobName()const
{
return jobName_;
}
int DescribePreCheckStatusResult::getErrorItem()const
{
return errorItem_;
}
std::string DescribePreCheckStatusResult::getCode()const
{
return code_;
}
bool DescribePreCheckStatusResult::getSuccess()const
{
return success_;
}
std::vector<DescribePreCheckStatusResult::ProgressInfo> DescribePreCheckStatusResult::getJobProgress()const
{
return jobProgress_;
}

View File

@@ -97,6 +97,8 @@ void DescribeSubscriptionInstanceStatusResult::parse(const std::string &payload)
errorMessage_ = value["ErrorMessage"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage1_ = value["ErrorMessage"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
@@ -105,6 +107,11 @@ std::string DescribeSubscriptionInstanceStatusResult::getStatus()const
return status_;
}
std::string DescribeSubscriptionInstanceStatusResult::getTaskId()const
{
return taskId_;
}
DescribeSubscriptionInstanceStatusResult::SubscriptionHost DescribeSubscriptionInstanceStatusResult::getSubscriptionHost()const
{
return subscriptionHost_;

View File

@@ -38,6 +38,17 @@ void DescribeSubscriptionInstancesRequest::setClientToken(const std::string& cli
setParameter("ClientToken", clientToken);
}
std::string DescribeSubscriptionInstancesRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeSubscriptionInstancesRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeSubscriptionInstancesRequest::getPageNum()const
{
return pageNum_;

View File

@@ -178,14 +178,11 @@ void DescribeSynchronizationJobStatusResult::parse(const std::string &payload)
synchronizationJobId_ = value["SynchronizationJobId"].asString();
if(!value["SynchronizationJobName"].isNull())
synchronizationJobName_ = value["SynchronizationJobName"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
}
std::string DescribeSynchronizationJobStatusResult::getStatus()const
{
return status_;
}
std::vector<DescribeSynchronizationJobStatusResult::SynchronizationObject> DescribeSynchronizationJobStatusResult::getSynchronizationObjects()const
{
return synchronizationObjects_;
@@ -196,6 +193,46 @@ 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_;
@@ -211,16 +248,6 @@ std::string DescribeSynchronizationJobStatusResult::getErrMessage()const
return errMessage_;
}
std::string DescribeSynchronizationJobStatusResult::getDelay()const
{
return delay_;
}
std::string DescribeSynchronizationJobStatusResult::getSuccess()const
{
return success_;
}
std::string DescribeSynchronizationJobStatusResult::getErrCode()const
{
return errCode_;
@@ -236,21 +263,11 @@ std::string DescribeSynchronizationJobStatusResult::getCheckpoint()const
return checkpoint_;
}
long DescribeSynchronizationJobStatusResult::getDelayMillis()const
{
return delayMillis_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobId()const
{
return synchronizationJobId_;
}
std::string DescribeSynchronizationJobStatusResult::getDataInitialization()const
{
return dataInitialization_;
}
DescribeSynchronizationJobStatusResult::DestinationEndpoint DescribeSynchronizationJobStatusResult::getDestinationEndpoint()const
{
return destinationEndpoint_;
@@ -281,21 +298,11 @@ std::string DescribeSynchronizationJobStatusResult::getExpireTime()const
return expireTime_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationJobClass()const
{
return synchronizationJobClass_;
}
std::string DescribeSynchronizationJobStatusResult::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
DescribeSynchronizationJobStatusResult::DataSynchronizationStatus DescribeSynchronizationJobStatusResult::getDataSynchronizationStatus()const
{
return dataSynchronizationStatus_;
}
DescribeSynchronizationJobStatusResult::StructureInitializationStatus DescribeSynchronizationJobStatusResult::getStructureInitializationStatus()const
{
return structureInitializationStatus_;

View File

@@ -38,6 +38,17 @@ void DescribeSynchronizationJobsRequest::setClientToken(const std::string& clien
setParameter("ClientToken", clientToken);
}
std::string DescribeSynchronizationJobsRequest::getInstFilterRegion()const
{
return instFilterRegion_;
}
void DescribeSynchronizationJobsRequest::setInstFilterRegion(const std::string& instFilterRegion)
{
instFilterRegion_ = instFilterRegion;
setParameter("InstFilterRegion", instFilterRegion);
}
int DescribeSynchronizationJobsRequest::getPageNum()const
{
return pageNum_;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobNameRequest.h>
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("DtsJobName", dtsJobName);
}
std::string ModifyDtsJobNameRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ModifyDtsJobNameRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobNameResult.h>
#include <json/json.h>
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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobPasswordRequest.h>
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("Password", password);
}
std::string ModifyDtsJobPasswordRequest::getEndpoint()const
{
return endpoint_;
}
void ModifyDtsJobPasswordRequest::setEndpoint(const std::string& endpoint)
{
endpoint_ = endpoint;
setParameter("Endpoint", endpoint);
}
std::string ModifyDtsJobPasswordRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ModifyDtsJobPasswordRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string ModifyDtsJobPasswordRequest::getUserName()const
{
return userName_;
}
void ModifyDtsJobPasswordRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobPasswordResult.h>
#include <json/json.h>
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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobRequest.h>
using AlibabaCloud::Dts::Model::ModifyDtsJobRequest;
ModifyDtsJobRequest::ModifyDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "ModifyDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDtsJobRequest::~ModifyDtsJobRequest()
{}
std::string ModifyDtsJobRequest::getDbList()const
{
return dbList_;
}
void ModifyDtsJobRequest::setDbList(const std::string& dbList)
{
dbList_ = dbList;
setBodyParameter("DbList", dbList);
}
std::string ModifyDtsJobRequest::getClientToken()const
{
return clientToken_;
}
void ModifyDtsJobRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string ModifyDtsJobRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDtsJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string ModifyDtsJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDtsJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void ModifyDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string ModifyDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void ModifyDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ModifyDtsJobResult.h>
#include <json/json.h>
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["DtsJobId"].isNull())
dtsJobId_ = value["DtsJobId"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString() == "true";
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].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_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ResetDtsJobRequest.h>
using AlibabaCloud::Dts::Model::ResetDtsJobRequest;
ResetDtsJobRequest::ResetDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "ResetDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
ResetDtsJobRequest::~ResetDtsJobRequest()
{}
std::string ResetDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void ResetDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string ResetDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void ResetDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string ResetDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void ResetDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/ResetDtsJobResult.h>
#include <json/json.h>
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["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SkipPreCheckRequest.h>
using AlibabaCloud::Dts::Model::SkipPreCheckRequest;
SkipPreCheckRequest::SkipPreCheckRequest() :
RpcServiceRequest("dts", "2020-01-01", "SkipPreCheck")
{
setMethod(HttpRequest::Method::Post);
}
SkipPreCheckRequest::~SkipPreCheckRequest()
{}
std::string SkipPreCheckRequest::getSkipPreCheckItems()const
{
return skipPreCheckItems_;
}
void SkipPreCheckRequest::setSkipPreCheckItems(const std::string& skipPreCheckItems)
{
skipPreCheckItems_ = skipPreCheckItems;
setParameter("SkipPreCheckItems", skipPreCheckItems);
}
bool SkipPreCheckRequest::getSkip()const
{
return skip_;
}
void SkipPreCheckRequest::setSkip(bool skip)
{
skip_ = skip;
setParameter("Skip", skip ? "true" : "false");
}
std::string SkipPreCheckRequest::getJobId()const
{
return jobId_;
}
void SkipPreCheckRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
std::string SkipPreCheckRequest::getSkipPreCheckNames()const
{
return skipPreCheckNames_;
}
void SkipPreCheckRequest::setSkipPreCheckNames(const std::string& skipPreCheckNames)
{
skipPreCheckNames_ = skipPreCheckNames;
setParameter("SkipPreCheckNames", skipPreCheckNames);
}

View File

@@ -0,0 +1,114 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SkipPreCheckResult.h>
#include <json/json.h>
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["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["MigrationJobId"].isNull())
migrationJobId_ = value["MigrationJobId"].asString();
if(!value["ScheduleJobId"].isNull())
scheduleJobId_ = value["ScheduleJobId"].asString();
if(!value["SkipItems"].isNull())
skipItems_ = value["SkipItems"].asString();
if(!value["SkipNames"].isNull())
skipNames_ = value["SkipNames"].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_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/StopDtsJobRequest.h>
using AlibabaCloud::Dts::Model::StopDtsJobRequest;
StopDtsJobRequest::StopDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "StopDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
StopDtsJobRequest::~StopDtsJobRequest()
{}
std::string StopDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void StopDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string StopDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void StopDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string StopDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void StopDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/StopDtsJobResult.h>
#include <json/json.h>
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["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SuspendDtsJobRequest.h>
using AlibabaCloud::Dts::Model::SuspendDtsJobRequest;
SuspendDtsJobRequest::SuspendDtsJobRequest() :
RpcServiceRequest("dts", "2020-01-01", "SuspendDtsJob")
{
setMethod(HttpRequest::Method::Post);
}
SuspendDtsJobRequest::~SuspendDtsJobRequest()
{}
std::string SuspendDtsJobRequest::getDtsJobId()const
{
return dtsJobId_;
}
void SuspendDtsJobRequest::setDtsJobId(const std::string& dtsJobId)
{
dtsJobId_ = dtsJobId;
setParameter("DtsJobId", dtsJobId);
}
std::string SuspendDtsJobRequest::getDtsInstanceId()const
{
return dtsInstanceId_;
}
void SuspendDtsJobRequest::setDtsInstanceId(const std::string& dtsInstanceId)
{
dtsInstanceId_ = dtsInstanceId;
setParameter("DtsInstanceId", dtsInstanceId);
}
std::string SuspendDtsJobRequest::getSynchronizationDirection()const
{
return synchronizationDirection_;
}
void SuspendDtsJobRequest::setSynchronizationDirection(const std::string& synchronizationDirection)
{
synchronizationDirection_ = synchronizationDirection;
setParameter("SynchronizationDirection", synchronizationDirection);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dts/model/SuspendDtsJobResult.h>
#include <json/json.h>
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["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrCode"].isNull())
errCode_ = value["ErrCode"].asString();
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
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_;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -113,6 +113,8 @@ set(facebody_public_header_model
include/alibabacloud/facebody/model/ListFaceEntitiesResult.h
include/alibabacloud/facebody/model/MergeImageFaceRequest.h
include/alibabacloud/facebody/model/MergeImageFaceResult.h
include/alibabacloud/facebody/model/MonitorExaminationRequest.h
include/alibabacloud/facebody/model/MonitorExaminationResult.h
include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h
include/alibabacloud/facebody/model/PedestrianDetectAttributeResult.h
include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h
@@ -232,6 +234,8 @@ set(facebody_src
src/model/ListFaceEntitiesResult.cc
src/model/MergeImageFaceRequest.cc
src/model/MergeImageFaceResult.cc
src/model/MonitorExaminationRequest.cc
src/model/MonitorExaminationResult.cc
src/model/PedestrianDetectAttributeRequest.cc
src/model/PedestrianDetectAttributeResult.cc
src/model/QueryFaceImageTemplateRequest.cc

View File

@@ -114,6 +114,8 @@
#include "model/ListFaceEntitiesResult.h"
#include "model/MergeImageFaceRequest.h"
#include "model/MergeImageFaceResult.h"
#include "model/MonitorExaminationRequest.h"
#include "model/MonitorExaminationResult.h"
#include "model/PedestrianDetectAttributeRequest.h"
#include "model/PedestrianDetectAttributeResult.h"
#include "model/QueryFaceImageTemplateRequest.h"
@@ -285,6 +287,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::MergeImageFaceResult> MergeImageFaceOutcome;
typedef std::future<MergeImageFaceOutcome> MergeImageFaceOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::MergeImageFaceRequest&, const MergeImageFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MergeImageFaceAsyncHandler;
typedef Outcome<Error, Model::MonitorExaminationResult> MonitorExaminationOutcome;
typedef std::future<MonitorExaminationOutcome> MonitorExaminationOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::MonitorExaminationRequest&, const MonitorExaminationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MonitorExaminationAsyncHandler;
typedef Outcome<Error, Model::PedestrianDetectAttributeResult> PedestrianDetectAttributeOutcome;
typedef std::future<PedestrianDetectAttributeOutcome> PedestrianDetectAttributeOutcomeCallable;
typedef std::function<void(const FacebodyClient*, const Model::PedestrianDetectAttributeRequest&, const PedestrianDetectAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PedestrianDetectAttributeAsyncHandler;
@@ -464,6 +469,9 @@ namespace AlibabaCloud
MergeImageFaceOutcome mergeImageFace(const Model::MergeImageFaceRequest &request)const;
void mergeImageFaceAsync(const Model::MergeImageFaceRequest& request, const MergeImageFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MergeImageFaceOutcomeCallable mergeImageFaceCallable(const Model::MergeImageFaceRequest& request) const;
MonitorExaminationOutcome monitorExamination(const Model::MonitorExaminationRequest &request)const;
void monitorExaminationAsync(const Model::MonitorExaminationRequest& request, const MonitorExaminationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
MonitorExaminationOutcomeCallable monitorExaminationCallable(const Model::MonitorExaminationRequest& request) const;
PedestrianDetectAttributeOutcome pedestrianDetectAttribute(const Model::PedestrianDetectAttributeRequest &request)const;
void pedestrianDetectAttributeAsync(const Model::PedestrianDetectAttributeRequest& request, const PedestrianDetectAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PedestrianDetectAttributeOutcomeCallable pedestrianDetectAttributeCallable(const Model::PedestrianDetectAttributeRequest& request) const;

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
struct Tasks
{
std::string imageURL;
std::string imageData;
};
public:

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_
#define ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT MonitorExaminationRequest : public RpcServiceRequest
{
public:
MonitorExaminationRequest();
~MonitorExaminationRequest();
long getType()const;
void setType(long type);
std::string getImageURL()const;
void setImageURL(const std::string& imageURL);
private:
long type_;
std::string imageURL_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONRESULT_H_
#define ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/facebody/FacebodyExport.h>
namespace AlibabaCloud
{
namespace Facebody
{
namespace Model
{
class ALIBABACLOUD_FACEBODY_EXPORT MonitorExaminationResult : public ServiceResult
{
public:
struct Data
{
struct PersonInfo
{
struct EarPhone
{
float score;
float threshold;
};
struct CellPhone
{
float score;
float threshold;
};
long personNumber;
EarPhone earPhone;
CellPhone cellPhone;
};
struct FaceInfo
{
struct Pose
{
float pitch;
float roll;
float yaw;
};
long completeness;
Pose pose;
long faceNumber;
};
PersonInfo personInfo;
float chatScore;
FaceInfo faceInfo;
float threshold;
};
MonitorExaminationResult();
explicit MonitorExaminationResult(const std::string &payload);
~MonitorExaminationResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONRESULT_H_

View File

@@ -34,6 +34,7 @@ namespace AlibabaCloud
struct Task
{
std::string imageURL;
std::string imageData;
};
public:

View File

@@ -47,8 +47,8 @@ namespace AlibabaCloud
std::string name;
};
float w;
float h;
float x;
float h;
float y;
std::vector<SubResult::Face> faces;
};

View File

@@ -1707,6 +1707,42 @@ FacebodyClient::MergeImageFaceOutcomeCallable FacebodyClient::mergeImageFaceCall
return task->get_future();
}
FacebodyClient::MonitorExaminationOutcome FacebodyClient::monitorExamination(const MonitorExaminationRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return MonitorExaminationOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return MonitorExaminationOutcome(MonitorExaminationResult(outcome.result()));
else
return MonitorExaminationOutcome(outcome.error());
}
void FacebodyClient::monitorExaminationAsync(const MonitorExaminationRequest& request, const MonitorExaminationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, monitorExamination(request), context);
};
asyncExecute(new Runnable(fn));
}
FacebodyClient::MonitorExaminationOutcomeCallable FacebodyClient::monitorExaminationCallable(const MonitorExaminationRequest &request) const
{
auto task = std::make_shared<std::packaged_task<MonitorExaminationOutcome()>>(
[this, request]()
{
return this->monitorExamination(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
FacebodyClient::PedestrianDetectAttributeOutcome FacebodyClient::pedestrianDetectAttribute(const PedestrianDetectAttributeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -39,6 +39,7 @@ void DetectLivingFaceRequest::setTasks(const std::vector<Tasks>& tasks)
auto tasksObj = tasks.at(dep1);
std::string tasksObjStr = "Tasks." + std::to_string(dep1 + 1);
setParameter(tasksObjStr + ".ImageURL", tasksObj.imageURL);
setParameter(tasksObjStr + ".ImageData", tasksObj.imageData);
}
}

View File

@@ -52,12 +52,12 @@ void DetectLivingFaceResult::parse(const std::string &payload)
for (auto dataNodeElementsElementResultsResult : allResultsNode)
{
Data::Element::Result resultsObject;
if(!dataNodeElementsElementResultsResult["Label"].isNull())
resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString();
if(!dataNodeElementsElementResultsResult["Suggestion"].isNull())
resultsObject.suggestion = dataNodeElementsElementResultsResult["Suggestion"].asString();
if(!dataNodeElementsElementResultsResult["Rate"].isNull())
resultsObject.rate = std::stof(dataNodeElementsElementResultsResult["Rate"].asString());
if(!dataNodeElementsElementResultsResult["Label"].isNull())
resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString();
auto allFramesNode = dataNodeElementsElementResultsResult["Frames"]["Frame"];
for (auto dataNodeElementsElementResultsResultFramesFrame : allFramesNode)
{

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/facebody/model/MonitorExaminationRequest.h>
using AlibabaCloud::Facebody::Model::MonitorExaminationRequest;
MonitorExaminationRequest::MonitorExaminationRequest() :
RpcServiceRequest("facebody", "2019-12-30", "MonitorExamination")
{
setMethod(HttpRequest::Method::Post);
}
MonitorExaminationRequest::~MonitorExaminationRequest()
{}
long MonitorExaminationRequest::getType()const
{
return type_;
}
void MonitorExaminationRequest::setType(long type)
{
type_ = type;
setBodyParameter("Type", std::to_string(type));
}
std::string MonitorExaminationRequest::getImageURL()const
{
return imageURL_;
}
void MonitorExaminationRequest::setImageURL(const std::string& imageURL)
{
imageURL_ = imageURL;
setBodyParameter("ImageURL", imageURL);
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/facebody/model/MonitorExaminationResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Facebody;
using namespace AlibabaCloud::Facebody::Model;
MonitorExaminationResult::MonitorExaminationResult() :
ServiceResult()
{}
MonitorExaminationResult::MonitorExaminationResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
MonitorExaminationResult::~MonitorExaminationResult()
{}
void MonitorExaminationResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ChatScore"].isNull())
data_.chatScore = std::stof(dataNode["ChatScore"].asString());
if(!dataNode["Threshold"].isNull())
data_.threshold = std::stof(dataNode["Threshold"].asString());
auto personInfoNode = dataNode["PersonInfo"];
if(!personInfoNode["PersonNumber"].isNull())
data_.personInfo.personNumber = std::stol(personInfoNode["PersonNumber"].asString());
auto earPhoneNode = personInfoNode["EarPhone"];
if(!earPhoneNode["Score"].isNull())
data_.personInfo.earPhone.score = std::stof(earPhoneNode["Score"].asString());
if(!earPhoneNode["Threshold"].isNull())
data_.personInfo.earPhone.threshold = std::stof(earPhoneNode["Threshold"].asString());
auto cellPhoneNode = personInfoNode["CellPhone"];
if(!cellPhoneNode["Score"].isNull())
data_.personInfo.cellPhone.score = std::stof(cellPhoneNode["Score"].asString());
if(!cellPhoneNode["Threshold"].isNull())
data_.personInfo.cellPhone.threshold = std::stof(cellPhoneNode["Threshold"].asString());
auto faceInfoNode = dataNode["FaceInfo"];
if(!faceInfoNode["Completeness"].isNull())
data_.faceInfo.completeness = std::stol(faceInfoNode["Completeness"].asString());
if(!faceInfoNode["FaceNumber"].isNull())
data_.faceInfo.faceNumber = std::stol(faceInfoNode["FaceNumber"].asString());
auto poseNode = faceInfoNode["Pose"];
if(!poseNode["Pitch"].isNull())
data_.faceInfo.pose.pitch = std::stof(poseNode["Pitch"].asString());
if(!poseNode["Roll"].isNull())
data_.faceInfo.pose.roll = std::stof(poseNode["Roll"].asString());
if(!poseNode["Yaw"].isNull())
data_.faceInfo.pose.yaw = std::stof(poseNode["Yaw"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
std::string MonitorExaminationResult::getMessage()const
{
return message_;
}
MonitorExaminationResult::Data MonitorExaminationResult::getData()const
{
return data_;
}
std::string MonitorExaminationResult::getCode()const
{
return code_;
}

View File

@@ -39,6 +39,7 @@ void RecognizePublicFaceRequest::setTask(const std::vector<Task>& task)
auto taskObj = task.at(dep1);
std::string taskObjStr = "Task." + std::to_string(dep1 + 1);
setParameter(taskObjStr + ".ImageURL", taskObj.imageURL);
setParameter(taskObjStr + ".ImageData", taskObj.imageData);
}
}

View File

@@ -52,34 +52,34 @@ void RecognizePublicFaceResult::parse(const std::string &payload)
for (auto dataNodeElementsElementResultsResult : allResultsNode)
{
Data::Element::Result resultsObject;
if(!dataNodeElementsElementResultsResult["Label"].isNull())
resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString();
if(!dataNodeElementsElementResultsResult["Suggestion"].isNull())
resultsObject.suggestion = dataNodeElementsElementResultsResult["Suggestion"].asString();
if(!dataNodeElementsElementResultsResult["Rate"].isNull())
resultsObject.rate = std::stof(dataNodeElementsElementResultsResult["Rate"].asString());
if(!dataNodeElementsElementResultsResult["Label"].isNull())
resultsObject.label = dataNodeElementsElementResultsResult["Label"].asString();
auto allSubResultsNode = dataNodeElementsElementResultsResult["SubResults"]["SubResult"];
for (auto dataNodeElementsElementResultsResultSubResultsSubResult : allSubResultsNode)
{
Data::Element::Result::SubResult subResultsObject;
if(!dataNodeElementsElementResultsResultSubResultsSubResult["H"].isNull())
subResultsObject.h = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["H"].asString());
if(!dataNodeElementsElementResultsResultSubResultsSubResult["W"].isNull())
subResultsObject.w = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["W"].asString());
if(!dataNodeElementsElementResultsResultSubResultsSubResult["X"].isNull())
subResultsObject.x = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["X"].asString());
if(!dataNodeElementsElementResultsResultSubResultsSubResult["H"].isNull())
subResultsObject.h = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["H"].asString());
if(!dataNodeElementsElementResultsResultSubResultsSubResult["Y"].isNull())
subResultsObject.y = std::stof(dataNodeElementsElementResultsResultSubResultsSubResult["Y"].asString());
auto allFacesNode = dataNodeElementsElementResultsResultSubResultsSubResult["Faces"]["Face"];
for (auto dataNodeElementsElementResultsResultSubResultsSubResultFacesFace : allFacesNode)
{
Data::Element::Result::SubResult::Face facesObject;
if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].isNull())
facesObject.rate = std::stof(dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].asString());
if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Id"].isNull())
facesObject.id = dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Id"].asString();
if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Name"].isNull())
facesObject.name = dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Name"].asString();
if(!dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].isNull())
facesObject.rate = std::stof(dataNodeElementsElementResultsResultSubResultsSubResultFacesFace["Rate"].asString());
subResultsObject.faces.push_back(facesObject);
}
resultsObject.subResults.push_back(subResultsObject);

View File

@@ -1 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Version product="facebody" apiStyle="RPC" name="2019-12-30" isolationType="outer"><ErrorMapping exceptionExpress=""><ErrorCodes /></ErrorMapping><Apis><Api name="RecognizeHandGesture" /><Api name="QueryFaceImageTemplate" /><Api name="AddFaceImageTemplate" /><Api name="DeleteFaceImageTemplate" /><Api name="MergeImageFace" /><Api name="GenerateHumanSketchStyle" /><Api name="GenRealPersonVerificationToken" /><Api name="GetRealPersonVerificationResult" /><Api name="ListBodyPerson" /><Api name="ListBodyDbs" /><Api name="GetBodyPerson" /><Api name="SearchBodyTrace" /><Api name="DeleteBodyPerson" /><Api name="AddBodyTrace" /><Api name="CreateBodyPerson" /><Api name="CreateBodyDb" /><Api name="DeleteBodyDb" /><Api name="DetectPedestrianIntrusion" /><Api name="CountCrowd" /><Api name="GenerateHumanAnimeStyle" /><Api name="PedestrianDetectAttribute" /><Api name="DetectChefCap" /><Api name="ExtractPedestrianFeatureAttr" /><Api name="DetectIPCPedestrian" /><Api name="BlurFace" /><Api name="ExtractPedestrianFeatureAttribute" /><Api name="DetectCelebrity" /><Api name="VerifyFaceMask" /><Api name="RecognizeAction" /><Api name="DetectVideoLivingFace" /><Api name="SwapFacialFeatures" /><Api name="ListFaceLabels" /><Api name="AddFaceEntity" /><Api name="DeleteFaceEntity" /><Api name="ListFaceEntities" /><Api name="GetFaceEntity" /><Api name="UpdateFaceEntity" /><Api name="FaceMakeup" /><Api name="HandPosture" /><Api name="BodyPosture" /><Api name="DetectPedestrian" /><Api name="FaceBeauty" /><Api name="FaceFilter" /><Api name="EnhanceFace" /><Api name="FaceTidyup" /><Api name="SearchFace" /><Api name="ListFaceDbs" /><Api name="CreateFaceDb" /><Api name="DeleteFace" /><Api name="DeleteFaceDb" /><Api name="AddFace" /><Api name="ExtractFaceFeature" /><Api name="RecognizeExpression" /><Api name="RecognizePublicFace" /><Api name="DetectLivingFace" /><Api name="DetectBodyCount" /><Api name="DetectMask" /><Api name="RecognizeFace" /><Api name="CompareFace" /><Api name="DetectFace" /></Apis></Version>
<?xml version='1.0' encoding='UTF-8'?><Version product="facebody" apiStyle="RPC" name="2019-12-30" isolationType="outer"><ErrorMapping exceptionExpress=""><ErrorCodes /></ErrorMapping><Apis><Api name="MonitorExamination" /><Api name="RecognizeHandGesture" /><Api name="QueryFaceImageTemplate" /><Api name="AddFaceImageTemplate" /><Api name="DeleteFaceImageTemplate" /><Api name="MergeImageFace" /><Api name="GenerateHumanSketchStyle" /><Api name="GenRealPersonVerificationToken" /><Api name="GetRealPersonVerificationResult" /><Api name="ListBodyPerson" /><Api name="ListBodyDbs" /><Api name="GetBodyPerson" /><Api name="SearchBodyTrace" /><Api name="DeleteBodyPerson" /><Api name="AddBodyTrace" /><Api name="CreateBodyPerson" /><Api name="CreateBodyDb" /><Api name="DeleteBodyDb" /><Api name="DetectPedestrianIntrusion" /><Api name="CountCrowd" /><Api name="GenerateHumanAnimeStyle" /><Api name="PedestrianDetectAttribute" /><Api name="DetectChefCap" /><Api name="ExtractPedestrianFeatureAttr" /><Api name="DetectIPCPedestrian" /><Api name="BlurFace" /><Api name="ExtractPedestrianFeatureAttribute" /><Api name="DetectCelebrity" /><Api name="VerifyFaceMask" /><Api name="RecognizeAction" /><Api name="DetectVideoLivingFace" /><Api name="SwapFacialFeatures" /><Api name="ListFaceLabels" /><Api name="AddFaceEntity" /><Api name="DeleteFaceEntity" /><Api name="ListFaceEntities" /><Api name="GetFaceEntity" /><Api name="UpdateFaceEntity" /><Api name="FaceMakeup" /><Api name="HandPosture" /><Api name="BodyPosture" /><Api name="DetectPedestrian" /><Api name="FaceBeauty" /><Api name="FaceFilter" /><Api name="EnhanceFace" /><Api name="FaceTidyup" /><Api name="SearchFace" /><Api name="ListFaceDbs" /><Api name="CreateFaceDb" /><Api name="DeleteFace" /><Api name="DeleteFaceDb" /><Api name="AddFace" /><Api name="ExtractFaceFeature" /><Api name="RecognizeExpression" /><Api name="RecognizePublicFace" /><Api name="DetectLivingFace" /><Api name="DetectBodyCount" /><Api name="DetectMask" /><Api name="RecognizeFace" /><Api name="CompareFace" /><Api name="DetectFace" /></Apis></Version>

View File

@@ -1 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="imageprocess" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="DetectCovid19Cad" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="urlList" tagName="URLList" type="RepeatList" required="true" tagPosition="Body" checkRepeatListAll="false" maxNumber="600" invokeDataType="Json" visibility="Public"><Parameters><Parameter name="url" tagName="URL" type="String" required="true" checkRepeatListAll="false" checkBlank="false" visibility="Public"/></Parameters></Parameter><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="ip" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="DataFormat" tagName="DataFormat" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="OrgName" tagName="OrgName" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="OrgId" tagName="OrgId" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="3" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="NewProbability" visibility="Public" type="String" name="NewProbability" nullToEmpty="false"/><Member tagName="NormalProbability" visibility="Public" type="String" name="NormalProbability"/><Member tagName="OtherProbability" visibility="Public" type="String" name="OtherProbability"/><Member tagName="LesionRatio" visibility="Public" type="String" name="LesionRatio"/><Member tagName="Mask" visibility="Public" type="String" name="Mask"/></Struct></ResultMapping></Api>
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="imageprocess" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="DetectCovid19Cad" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="urlList" tagName="URLList" type="RepeatList" required="true" tagPosition="Body" checkRepeatListAll="false" maxNumber="600" invokeDataType="Json" visibility="Public"><Parameters><Parameter name="url" tagName="URL" type="String" required="true" checkRepeatListAll="false" checkBlank="false" visibility="Public"/></Parameters></Parameter><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="ip" tagName="proxy_original_source_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="DataFormat" tagName="DataFormat" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="OrgName" tagName="OrgName" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/><Parameter name="OrgId" tagName="OrgId" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1" apiDefault="3" /><PreIspProtocol sign="true" signKeyName="pre_key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="NewProbability" visibility="Public" type="String" name="NewProbability" nullToEmpty="false"/><Member tagName="NormalProbability" visibility="Public" type="String" name="NormalProbability"/><Member tagName="OtherProbability" visibility="Public" type="String" name="OtherProbability"/><Member tagName="LesionRatio" visibility="Public" type="String" name="LesionRatio"/><Member tagName="Mask" visibility="Public" type="String" name="Mask"/></Struct></ResultMapping></Api>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="imageprocess" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="GetAsyncJobResult" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="jobId" tagName="JobId" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1000" apiDefault="1000" /><PreIspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="JobId" visibility="Public" type="String" name="jobId" nullToEmpty="false"/><Member tagName="Status" visibility="Public" type="String" name="status" nullToEmpty="false"/><Member tagName="Result" visibility="Public" type="String" name="result" nullToEmpty="false"/><Member tagName="ErrorCode" visibility="Public" type="String" name="errorCode" nullToEmpty="false"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errorMessage" nullToEmpty="false"/></Struct></ResultMapping></Api>
<?xml version='1.0' encoding='UTF-8'?><Api responseBodyIsOriginalObject="" authType="AK" responseLog="enable" isolationType="outer" parameterType="Single" product="imageprocess" controlPolicy="black_list" visibility="Public" akProvenStatus="Disable" version="2020-03-20" keepClientResourceOwnerId="false" name="GetAsyncJobResult" showJsonItemName="false" status="online"><IsvProtocol protocol="HTTPS|HTTP" method="POST" /><ErrorMapping exceptionExpress="success=false,code,errorMessage,httpCode"><ErrorCodes /></ErrorMapping><IspProtocol sign="true" signKeyName="prod-key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_online/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><Parameters><Parameter name="requestId" tagName="RequestId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerType" tagName="callerType" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerUid" tagName="callerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="callerParentId" tagName="callerParentId" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityToken" tagName="SecurityToken" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="sourceIp" tagName="SourceIp" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="accessKeyId" tagName="AccessKeyId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="stsTokenCallerUid" tagName="stsTokenCallerUid" type="Long" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignatureSecretKey" tagName="IspSignatureSecretKey" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="ispSignature" tagName="IspSignature" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="action" tagName="Action" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="version" tagName="Version" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="eagleEyeTraceId" tagName="eagleEyeTraceId" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="signatureNonce" tagName="SignatureNonce" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="akMfaPresent" tagName="ak_mfa_present" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="securityTransport" tagName="security_transport" type="Boolean" required="false" tagPosition="System" checkBlank="false"/><Parameter name="appIp" tagName="app_ip" type="String" required="false" tagPosition="System" checkBlank="false"/><Parameter name="async" tagName="Async" type="Boolean" required="false" tagPosition="Body" docRequired="true" checkBlank="false" defaultValue="true" visibility="Private"/><Parameter name="jobId" tagName="JobId" type="String" required="true" tagPosition="Body" docRequired="true" checkBlank="false" visibility="Public"/></Parameters><FlowControl controlUnit="Second" userDefault="1000" apiDefault="1000" /><PreIspProtocol sign="true" signKeyName="pre_key" timeout="10000" protocol="http" httpHost="http://viapi_shanghai_pre/viapi/k8s/imageprocess#vpc" resultType="Object" signPolicy="Local" httpsValidation="true" retries="-1" /><ResultMapping><Member tagName="RequestId" visibility="Public" type="String" name="requestId" nullToEmpty="false"/><Struct tagName="Data" visibility="Public" name="data" nullToEmpty="false"><Member tagName="JobId" visibility="Public" type="String" name="jobId" nullToEmpty="false"/><Member tagName="Status" visibility="Public" type="String" name="status" nullToEmpty="false"/><Member tagName="Result" visibility="Public" type="String" name="result" nullToEmpty="false"/><Member tagName="ErrorCode" visibility="Public" type="String" name="errorCode" nullToEmpty="false"/><Member tagName="ErrorMessage" visibility="Public" type="String" name="errorMessage" nullToEmpty="false"/></Struct></ResultMapping></Api>

File diff suppressed because one or more lines are too long

View File

@@ -35,23 +35,23 @@ namespace AlibabaCloud
DetectHipKeypointXRayRequest();
~DetectHipKeypointXRayRequest();
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
std::string getTracerId()const;
void setTracerId(const std::string& tracerId);
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
std::string getImageUrl()const;
void setImageUrl(const std::string& imageUrl);
std::string getTracerId()const;
void setTracerId(const std::string& tracerId);
private:
std::string orgName_;
std::string tracerId_;
std::string dataFormat_;
std::string orgId_;
std::string orgName_;
std::string imageUrl_;
std::string tracerId_;
};
}

View File

@@ -40,26 +40,26 @@ namespace AlibabaCloud
DetectLungNoduleRequest();
~DetectLungNoduleRequest();
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
float getThreshold()const;
void setThreshold(float threshold);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::vector<URLList> getURLList()const;
void setURLList(const std::vector<URLList>& uRLList);
std::string getOrgId()const;
void setOrgId(const std::string& orgId);
bool getAsync()const;
void setAsync(bool async);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
private:
std::string dataFormat_;
float threshold_;
std::string orgName_;
std::string dataFormat_;
std::vector<URLList> uRLList_;
std::string orgId_;
bool async_;
std::string orgName_;
};
}

View File

@@ -40,6 +40,10 @@ namespace AlibabaCloud
DetectRibFractureRequest();
~DetectRibFractureRequest();
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
std::string getSourceType()const;
void setSourceType(const std::string& sourceType);
std::string getDataFormat()const;
void setDataFormat(const std::string& dataFormat);
std::vector<URLList> getURLList()const;
@@ -48,18 +52,14 @@ namespace AlibabaCloud
void setOrgId(const std::string& orgId);
bool getAsync()const;
void setAsync(bool async);
std::string getOrgName()const;
void setOrgName(const std::string& orgName);
std::string getSourceType()const;
void setSourceType(const std::string& sourceType);
private:
std::string orgName_;
std::string sourceType_;
std::string dataFormat_;
std::vector<URLList> uRLList_;
std::string orgId_;
bool async_;
std::string orgName_;
std::string sourceType_;
};
}

View File

@@ -36,10 +36,12 @@ namespace AlibabaCloud
{
struct DetectionsItem
{
float fractureConfidence;
std::string fractureCategory;
float fractureConfidence;
std::vector<std::string> coordinateImage;
std::vector<std::string> coordinates;
std::string fractureLocation;
long fractureSegment;
int fractureId;
};
std::vector<std::string> origin;

View File

@@ -84,6 +84,8 @@ namespace AlibabaCloud
float fractureConfidence;
std::vector<std::string> coordinateImage;
std::vector<std::string> coordinates;
std::string fractureLocation;
long fractureSegment;
long fractureId;
};
std::vector<std::string> origin1;

View File

@@ -27,6 +27,28 @@ DetectHipKeypointXRayRequest::DetectHipKeypointXRayRequest() :
DetectHipKeypointXRayRequest::~DetectHipKeypointXRayRequest()
{}
std::string DetectHipKeypointXRayRequest::getOrgName()const
{
return orgName_;
}
void DetectHipKeypointXRayRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string DetectHipKeypointXRayRequest::getTracerId()const
{
return tracerId_;
}
void DetectHipKeypointXRayRequest::setTracerId(const std::string& tracerId)
{
tracerId_ = tracerId;
setBodyParameter("TracerId", tracerId);
}
std::string DetectHipKeypointXRayRequest::getDataFormat()const
{
return dataFormat_;
@@ -49,17 +71,6 @@ void DetectHipKeypointXRayRequest::setOrgId(const std::string& orgId)
setBodyParameter("OrgId", orgId);
}
std::string DetectHipKeypointXRayRequest::getOrgName()const
{
return orgName_;
}
void DetectHipKeypointXRayRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string DetectHipKeypointXRayRequest::getImageUrl()const
{
return imageUrl_;
@@ -71,14 +82,3 @@ void DetectHipKeypointXRayRequest::setImageUrl(const std::string& imageUrl)
setBodyParameter("ImageUrl", imageUrl);
}
std::string DetectHipKeypointXRayRequest::getTracerId()const
{
return tracerId_;
}
void DetectHipKeypointXRayRequest::setTracerId(const std::string& tracerId)
{
tracerId_ = tracerId;
setBodyParameter("TracerId", tracerId);
}

View File

@@ -40,10 +40,10 @@ void DetectHipKeypointXRayResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ImageUrl"].isNull())
data_.imageUrl = dataNode["ImageUrl"].asString();
if(!dataNode["OrgId"].isNull())
data_.orgId = dataNode["OrgId"].asString();
if(!dataNode["ImageUrl"].isNull())
data_.imageUrl = dataNode["ImageUrl"].asString();
if(!dataNode["OrgName"].isNull())
data_.orgName = dataNode["OrgName"].asString();
auto allKeyPointsNode = dataNode["KeyPoints"]["KeyPointsItem"];
@@ -53,10 +53,10 @@ void DetectHipKeypointXRayResult::parse(const std::string &payload)
if(!dataNodeKeyPointsKeyPointsItem["Value"].isNull())
keyPointsItemObject.value = std::stof(dataNodeKeyPointsKeyPointsItem["Value"].asString());
auto tagNode = value["Tag"];
if(!tagNode["Direction"].isNull())
keyPointsItemObject.tag.direction = tagNode["Direction"].asString();
if(!tagNode["Label"].isNull())
keyPointsItemObject.tag.label = tagNode["Label"].asString();
if(!tagNode["Direction"].isNull())
keyPointsItemObject.tag.direction = tagNode["Direction"].asString();
auto allCoordinates = value["Coordinates"]["Coordinate"];
for (auto value : allCoordinates)
keyPointsItemObject.coordinates.push_back(value.asString());

View File

@@ -27,17 +27,6 @@ DetectLungNoduleRequest::DetectLungNoduleRequest() :
DetectLungNoduleRequest::~DetectLungNoduleRequest()
{}
std::string DetectLungNoduleRequest::getDataFormat()const
{
return dataFormat_;
}
void DetectLungNoduleRequest::setDataFormat(const std::string& dataFormat)
{
dataFormat_ = dataFormat;
setBodyParameter("DataFormat", dataFormat);
}
float DetectLungNoduleRequest::getThreshold()const
{
return threshold_;
@@ -49,6 +38,28 @@ void DetectLungNoduleRequest::setThreshold(float threshold)
setBodyParameter("Threshold", std::to_string(threshold));
}
std::string DetectLungNoduleRequest::getOrgName()const
{
return orgName_;
}
void DetectLungNoduleRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string DetectLungNoduleRequest::getDataFormat()const
{
return dataFormat_;
}
void DetectLungNoduleRequest::setDataFormat(const std::string& dataFormat)
{
dataFormat_ = dataFormat;
setBodyParameter("DataFormat", dataFormat);
}
std::vector<DetectLungNoduleRequest::URLList> DetectLungNoduleRequest::getURLList()const
{
return uRLList_;
@@ -86,14 +97,3 @@ void DetectLungNoduleRequest::setAsync(bool async)
setBodyParameter("Async", async ? "true" : "false");
}
std::string DetectLungNoduleRequest::getOrgName()const
{
return orgName_;
}
void DetectLungNoduleRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}

View File

@@ -27,6 +27,28 @@ DetectRibFractureRequest::DetectRibFractureRequest() :
DetectRibFractureRequest::~DetectRibFractureRequest()
{}
std::string DetectRibFractureRequest::getOrgName()const
{
return orgName_;
}
void DetectRibFractureRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string DetectRibFractureRequest::getSourceType()const
{
return sourceType_;
}
void DetectRibFractureRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setBodyParameter("SourceType", sourceType);
}
std::string DetectRibFractureRequest::getDataFormat()const
{
return dataFormat_;
@@ -75,25 +97,3 @@ void DetectRibFractureRequest::setAsync(bool async)
setBodyParameter("Async", async ? "true" : "false");
}
std::string DetectRibFractureRequest::getOrgName()const
{
return orgName_;
}
void DetectRibFractureRequest::setOrgName(const std::string& orgName)
{
orgName_ = orgName;
setBodyParameter("OrgName", orgName);
}
std::string DetectRibFractureRequest::getSourceType()const
{
return sourceType_;
}
void DetectRibFractureRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setBodyParameter("SourceType", sourceType);
}

View File

@@ -46,26 +46,30 @@ void DetectRibFractureResult::parse(const std::string &payload)
for (auto dataNodeDetectionsDetectionsItem : allDetectionsNode)
{
Data::DetectionsItem detectionsItemObject;
if(!dataNodeDetectionsDetectionsItem["FractureId"].isNull())
detectionsItemObject.fractureId = std::stoi(dataNodeDetectionsDetectionsItem["FractureId"].asString());
if(!dataNodeDetectionsDetectionsItem["FractureConfidence"].isNull())
detectionsItemObject.fractureConfidence = std::stof(dataNodeDetectionsDetectionsItem["FractureConfidence"].asString());
if(!dataNodeDetectionsDetectionsItem["FractureCategory"].isNull())
detectionsItemObject.fractureCategory = dataNodeDetectionsDetectionsItem["FractureCategory"].asString();
auto allCoordinates = value["Coordinates"]["Coordinates"];
for (auto value : allCoordinates)
detectionsItemObject.coordinates.push_back(value.asString());
if(!dataNodeDetectionsDetectionsItem["FractureConfidence"].isNull())
detectionsItemObject.fractureConfidence = std::stof(dataNodeDetectionsDetectionsItem["FractureConfidence"].asString());
if(!dataNodeDetectionsDetectionsItem["FractureLocation"].isNull())
detectionsItemObject.fractureLocation = dataNodeDetectionsDetectionsItem["FractureLocation"].asString();
if(!dataNodeDetectionsDetectionsItem["FractureSegment"].isNull())
detectionsItemObject.fractureSegment = std::stol(dataNodeDetectionsDetectionsItem["FractureSegment"].asString());
if(!dataNodeDetectionsDetectionsItem["FractureId"].isNull())
detectionsItemObject.fractureId = std::stoi(dataNodeDetectionsDetectionsItem["FractureId"].asString());
auto allCoordinateImage = value["CoordinateImage"]["CoordinateImage"];
for (auto value : allCoordinateImage)
detectionsItemObject.coordinateImage.push_back(value.asString());
auto allCoordinates = value["Coordinates"]["Coordinates"];
for (auto value : allCoordinates)
detectionsItemObject.coordinates.push_back(value.asString());
data_.detections.push_back(detectionsItemObject);
}
auto allSpacing = dataNode["Spacing"]["Spacing"];
for (auto value : allSpacing)
data_.spacing.push_back(value.asString());
auto allOrigin = dataNode["Origin"]["Origin"];
for (auto value : allOrigin)
data_.origin.push_back(value.asString());
auto allSpacing = dataNode["Spacing"]["Spacing"];
for (auto value : allSpacing)
data_.spacing.push_back(value.asString());
}

Some files were not shown because too many files have changed in this diff Show More