Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
410b5a1a3e | ||
|
|
1754f90722 | ||
|
|
17088253be | ||
|
|
2dcd1b2f62 |
@@ -71,6 +71,8 @@ set(dts_public_header_model
|
||||
include/alibabacloud/dts/model/DeleteSubscriptionInstanceResult.h
|
||||
include/alibabacloud/dts/model/DeleteSynchronizationJobRequest.h
|
||||
include/alibabacloud/dts/model/DeleteSynchronizationJobResult.h
|
||||
include/alibabacloud/dts/model/DescribeChannelAccountRequest.h
|
||||
include/alibabacloud/dts/model/DescribeChannelAccountResult.h
|
||||
include/alibabacloud/dts/model/DescribeCheckJobsRequest.h
|
||||
include/alibabacloud/dts/model/DescribeCheckJobsResult.h
|
||||
include/alibabacloud/dts/model/DescribeClusterOperateLogsRequest.h
|
||||
@@ -183,6 +185,8 @@ set(dts_public_header_model
|
||||
include/alibabacloud/dts/model/ResetDtsJobResult.h
|
||||
include/alibabacloud/dts/model/ResetSynchronizationJobRequest.h
|
||||
include/alibabacloud/dts/model/ResetSynchronizationJobResult.h
|
||||
include/alibabacloud/dts/model/ReverseTwoWayDirectionRequest.h
|
||||
include/alibabacloud/dts/model/ReverseTwoWayDirectionResult.h
|
||||
include/alibabacloud/dts/model/ShieldPrecheckRequest.h
|
||||
include/alibabacloud/dts/model/ShieldPrecheckResult.h
|
||||
include/alibabacloud/dts/model/SkipPreCheckRequest.h
|
||||
@@ -284,6 +288,8 @@ set(dts_src
|
||||
src/model/DeleteSubscriptionInstanceResult.cc
|
||||
src/model/DeleteSynchronizationJobRequest.cc
|
||||
src/model/DeleteSynchronizationJobResult.cc
|
||||
src/model/DescribeChannelAccountRequest.cc
|
||||
src/model/DescribeChannelAccountResult.cc
|
||||
src/model/DescribeCheckJobsRequest.cc
|
||||
src/model/DescribeCheckJobsResult.cc
|
||||
src/model/DescribeClusterOperateLogsRequest.cc
|
||||
@@ -396,6 +402,8 @@ set(dts_src
|
||||
src/model/ResetDtsJobResult.cc
|
||||
src/model/ResetSynchronizationJobRequest.cc
|
||||
src/model/ResetSynchronizationJobResult.cc
|
||||
src/model/ReverseTwoWayDirectionRequest.cc
|
||||
src/model/ReverseTwoWayDirectionResult.cc
|
||||
src/model/ShieldPrecheckRequest.cc
|
||||
src/model/ShieldPrecheckResult.cc
|
||||
src/model/SkipPreCheckRequest.cc
|
||||
|
||||
@@ -72,6 +72,8 @@
|
||||
#include "model/DeleteSubscriptionInstanceResult.h"
|
||||
#include "model/DeleteSynchronizationJobRequest.h"
|
||||
#include "model/DeleteSynchronizationJobResult.h"
|
||||
#include "model/DescribeChannelAccountRequest.h"
|
||||
#include "model/DescribeChannelAccountResult.h"
|
||||
#include "model/DescribeCheckJobsRequest.h"
|
||||
#include "model/DescribeCheckJobsResult.h"
|
||||
#include "model/DescribeClusterOperateLogsRequest.h"
|
||||
@@ -184,6 +186,8 @@
|
||||
#include "model/ResetDtsJobResult.h"
|
||||
#include "model/ResetSynchronizationJobRequest.h"
|
||||
#include "model/ResetSynchronizationJobResult.h"
|
||||
#include "model/ReverseTwoWayDirectionRequest.h"
|
||||
#include "model/ReverseTwoWayDirectionResult.h"
|
||||
#include "model/ShieldPrecheckRequest.h"
|
||||
#include "model/ShieldPrecheckResult.h"
|
||||
#include "model/SkipPreCheckRequest.h"
|
||||
@@ -316,6 +320,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteSynchronizationJobResult> DeleteSynchronizationJobOutcome;
|
||||
typedef std::future<DeleteSynchronizationJobOutcome> DeleteSynchronizationJobOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::DeleteSynchronizationJobRequest&, const DeleteSynchronizationJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSynchronizationJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeChannelAccountResult> DescribeChannelAccountOutcome;
|
||||
typedef std::future<DescribeChannelAccountOutcome> DescribeChannelAccountOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::DescribeChannelAccountRequest&, const DescribeChannelAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeChannelAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCheckJobsResult> DescribeCheckJobsOutcome;
|
||||
typedef std::future<DescribeCheckJobsOutcome> DescribeCheckJobsOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::DescribeCheckJobsRequest&, const DescribeCheckJobsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCheckJobsAsyncHandler;
|
||||
@@ -484,6 +491,9 @@ namespace AlibabaCloud
|
||||
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::ReverseTwoWayDirectionResult> ReverseTwoWayDirectionOutcome;
|
||||
typedef std::future<ReverseTwoWayDirectionOutcome> ReverseTwoWayDirectionOutcomeCallable;
|
||||
typedef std::function<void(const DtsClient*, const Model::ReverseTwoWayDirectionRequest&, const ReverseTwoWayDirectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReverseTwoWayDirectionAsyncHandler;
|
||||
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;
|
||||
@@ -636,6 +646,9 @@ namespace AlibabaCloud
|
||||
DeleteSynchronizationJobOutcome deleteSynchronizationJob(const Model::DeleteSynchronizationJobRequest &request)const;
|
||||
void deleteSynchronizationJobAsync(const Model::DeleteSynchronizationJobRequest& request, const DeleteSynchronizationJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSynchronizationJobOutcomeCallable deleteSynchronizationJobCallable(const Model::DeleteSynchronizationJobRequest& request) const;
|
||||
DescribeChannelAccountOutcome describeChannelAccount(const Model::DescribeChannelAccountRequest &request)const;
|
||||
void describeChannelAccountAsync(const Model::DescribeChannelAccountRequest& request, const DescribeChannelAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeChannelAccountOutcomeCallable describeChannelAccountCallable(const Model::DescribeChannelAccountRequest& request) const;
|
||||
DescribeCheckJobsOutcome describeCheckJobs(const Model::DescribeCheckJobsRequest &request)const;
|
||||
void describeCheckJobsAsync(const Model::DescribeCheckJobsRequest& request, const DescribeCheckJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeCheckJobsOutcomeCallable describeCheckJobsCallable(const Model::DescribeCheckJobsRequest& request) const;
|
||||
@@ -804,6 +817,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
ReverseTwoWayDirectionOutcome reverseTwoWayDirection(const Model::ReverseTwoWayDirectionRequest &request)const;
|
||||
void reverseTwoWayDirectionAsync(const Model::ReverseTwoWayDirectionRequest& request, const ReverseTwoWayDirectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReverseTwoWayDirectionOutcomeCallable reverseTwoWayDirectionCallable(const Model::ReverseTwoWayDirectionRequest& 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;
|
||||
|
||||
@@ -34,8 +34,12 @@ public:
|
||||
void setCheckpoint(const std::string &checkpoint);
|
||||
std::string getSourceEndpointUserName() const;
|
||||
void setSourceEndpointUserName(const std::string &sourceEndpointUserName);
|
||||
std::string getDestinationEndpointOwnerID() const;
|
||||
void setDestinationEndpointOwnerID(const std::string &destinationEndpointOwnerID);
|
||||
std::string getDelayPhone() const;
|
||||
void setDelayPhone(const std::string &delayPhone);
|
||||
std::string getDtsBisLabel() const;
|
||||
void setDtsBisLabel(const std::string &dtsBisLabel);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getErrorPhone() const;
|
||||
@@ -44,6 +48,8 @@ public:
|
||||
void setDestinationEndpointUserName(const std::string &destinationEndpointUserName);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getDestinationEndpointRole() const;
|
||||
void setDestinationEndpointRole(const std::string &destinationEndpointRole);
|
||||
std::string getDbList() const;
|
||||
void setDbList(const std::string &dbList);
|
||||
std::string getDestinationEndpointOracleSID() const;
|
||||
@@ -96,6 +102,8 @@ public:
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getReserve() const;
|
||||
void setReserve(const std::string &reserve);
|
||||
std::string getSourceEndpointVSwitchID() const;
|
||||
void setSourceEndpointVSwitchID(const std::string &sourceEndpointVSwitchID);
|
||||
bool getDataSynchronization() const;
|
||||
void setDataSynchronization(bool dataSynchronization);
|
||||
std::string getFileOssUrl() const;
|
||||
@@ -122,11 +130,14 @@ public:
|
||||
private:
|
||||
std::string checkpoint_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string destinationEndpointOwnerID_;
|
||||
std::string delayPhone_;
|
||||
std::string dtsBisLabel_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string errorPhone_;
|
||||
std::string destinationEndpointUserName_;
|
||||
std::string dtsJobId_;
|
||||
std::string destinationEndpointRole_;
|
||||
std::string dbList_;
|
||||
std::string destinationEndpointOracleSID_;
|
||||
std::string destinationEndpointPort_;
|
||||
@@ -153,6 +164,7 @@ private:
|
||||
std::string dataCheckConfigure_;
|
||||
std::string regionId_;
|
||||
std::string reserve_;
|
||||
std::string sourceEndpointVSwitchID_;
|
||||
bool dataSynchronization_;
|
||||
std::string fileOssUrl_;
|
||||
std::string destinationEndpointEngineName_;
|
||||
|
||||
@@ -30,48 +30,28 @@ class ALIBABACLOUD_DTS_EXPORT ConfigureSubscriptionRequest : public RpcServiceRe
|
||||
public:
|
||||
ConfigureSubscriptionRequest();
|
||||
~ConfigureSubscriptionRequest();
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
std::string getCheckpoint() const;
|
||||
void setCheckpoint(const std::string &checkpoint);
|
||||
std::string getSubscriptionInstanceVSwitchId() const;
|
||||
void setSubscriptionInstanceVSwitchId(const std::string &subscriptionInstanceVSwitchId);
|
||||
bool getDelayNotice() const;
|
||||
void setDelayNotice(bool delayNotice);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getSourceEndpointUserName() const;
|
||||
void setSourceEndpointUserName(const std::string &sourceEndpointUserName);
|
||||
std::string getSourceEndpointOwnerID() const;
|
||||
void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID);
|
||||
std::string getDedicatedClusterId() const;
|
||||
void setDedicatedClusterId(const std::string &dedicatedClusterId);
|
||||
std::string getDelayPhone() const;
|
||||
void setDelayPhone(const std::string &delayPhone);
|
||||
bool getSubscriptionDataTypeDML() const;
|
||||
void setSubscriptionDataTypeDML(bool subscriptionDataTypeDML);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
std::string getDtsBisLabel() const;
|
||||
void setDtsBisLabel(const std::string &dtsBisLabel);
|
||||
std::string getSourceEndpointIP() const;
|
||||
void setSourceEndpointIP(const std::string &sourceEndpointIP);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getErrorPhone() const;
|
||||
void setErrorPhone(const std::string &errorPhone);
|
||||
std::string getReserve() const;
|
||||
void setReserve(const std::string &reserve);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getDbList() const;
|
||||
void setDbList(const std::string &dbList);
|
||||
std::string getSubscriptionInstanceNetworkType() const;
|
||||
void setSubscriptionInstanceNetworkType(const std::string &subscriptionInstanceNetworkType);
|
||||
bool getSubscriptionDataTypeDDL() const;
|
||||
void setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL);
|
||||
std::string getSourceEndpointPassword() const;
|
||||
void setSourceEndpointPassword(const std::string &sourceEndpointPassword);
|
||||
std::string getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(const std::string &sourceEndpointPort);
|
||||
std::string getSubscriptionInstanceVPCId() const;
|
||||
void setSubscriptionInstanceVPCId(const std::string &subscriptionInstanceVPCId);
|
||||
long getDelayRuleTime() const;
|
||||
@@ -80,47 +60,70 @@ public:
|
||||
void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType);
|
||||
std::string getDtsJobName() const;
|
||||
void setDtsJobName(const std::string &dtsJobName);
|
||||
std::string getDtsInstanceId() const;
|
||||
void setDtsInstanceId(const std::string &dtsInstanceId);
|
||||
std::string getSourceEndpointRegion() const;
|
||||
void setSourceEndpointRegion(const std::string &sourceEndpointRegion);
|
||||
bool getDelayNotice() const;
|
||||
void setDelayNotice(bool delayNotice);
|
||||
std::string getSourceEndpointInstanceID() const;
|
||||
void setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID);
|
||||
std::string getSourceEndpointOwnerID() const;
|
||||
void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID);
|
||||
std::string getDedicatedClusterId() const;
|
||||
void setDedicatedClusterId(const std::string &dedicatedClusterId);
|
||||
bool getSubscriptionDataTypeDML() const;
|
||||
void setSubscriptionDataTypeDML(bool subscriptionDataTypeDML);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getReserve() const;
|
||||
void setReserve(const std::string &reserve);
|
||||
bool getSubscriptionDataTypeDDL() const;
|
||||
void setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL);
|
||||
std::string getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(const std::string &sourceEndpointPort);
|
||||
std::string getSourceEndpointOracleSID() const;
|
||||
void setSourceEndpointOracleSID(const std::string &sourceEndpointOracleSID);
|
||||
bool getErrorNotice() const;
|
||||
void setErrorNotice(bool errorNotice);
|
||||
std::string getSourceEndpointRole() const;
|
||||
void setSourceEndpointRole(const std::string &sourceEndpointRole);
|
||||
std::string getDtsInstanceId() const;
|
||||
void setDtsInstanceId(const std::string &dtsInstanceId);
|
||||
std::string getSourceEndpointEngineName() const;
|
||||
void setSourceEndpointEngineName(const std::string &sourceEndpointEngineName);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointRegion_;
|
||||
std::string checkpoint_;
|
||||
std::string subscriptionInstanceVSwitchId_;
|
||||
bool delayNotice_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string sourceEndpointOwnerID_;
|
||||
std::string dedicatedClusterId_;
|
||||
std::string delayPhone_;
|
||||
bool subscriptionDataTypeDML_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
std::string dtsBisLabel_;
|
||||
std::string sourceEndpointIP_;
|
||||
std::string regionId_;
|
||||
std::string errorPhone_;
|
||||
std::string reserve_;
|
||||
std::string dtsJobId_;
|
||||
std::string dbList_;
|
||||
std::string subscriptionInstanceNetworkType_;
|
||||
bool subscriptionDataTypeDDL_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string sourceEndpointPort_;
|
||||
std::string subscriptionInstanceVPCId_;
|
||||
long delayRuleTime_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string dtsJobName_;
|
||||
std::string dtsInstanceId_;
|
||||
std::string sourceEndpointRegion_;
|
||||
bool delayNotice_;
|
||||
std::string sourceEndpointInstanceID_;
|
||||
std::string sourceEndpointOwnerID_;
|
||||
std::string dedicatedClusterId_;
|
||||
bool subscriptionDataTypeDML_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
std::string regionId_;
|
||||
std::string reserve_;
|
||||
bool subscriptionDataTypeDDL_;
|
||||
std::string sourceEndpointPort_;
|
||||
std::string sourceEndpointOracleSID_;
|
||||
bool errorNotice_;
|
||||
std::string sourceEndpointRole_;
|
||||
std::string dtsInstanceId_;
|
||||
std::string sourceEndpointEngineName_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -42,38 +42,24 @@ public:
|
||||
void setSynchronizationObjects(const std::string &synchronizationObjects);
|
||||
std::string getDestinationEndpointPassword() const;
|
||||
void setDestinationEndpointPassword(const std::string &destinationEndpointPassword);
|
||||
bool getDataInitialization() const;
|
||||
void setDataInitialization(bool dataInitialization);
|
||||
bool getStructureInitialization() const;
|
||||
void setStructureInitialization(bool structureInitialization);
|
||||
bool getPartitionKeyModifyTime_Minute() const;
|
||||
void setPartitionKeyModifyTime_Minute(bool partitionKeyModifyTime_Minute);
|
||||
bool getPartitionKeyModifyTime_Day() const;
|
||||
void setPartitionKeyModifyTime_Day(bool partitionKeyModifyTime_Day);
|
||||
std::string getSourceEndpointInstanceType() const;
|
||||
void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSynchronizationJobId() const;
|
||||
void setSynchronizationJobId(const std::string &synchronizationJobId);
|
||||
std::string getSynchronizationJobName() const;
|
||||
void setSynchronizationJobName(const std::string &synchronizationJobName);
|
||||
std::string getAccountId() const;
|
||||
void setAccountId(const std::string &accountId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getSourceEndpointUserName() const;
|
||||
void setSourceEndpointUserName(const std::string &sourceEndpointUserName);
|
||||
std::string getSourceEndpointDatabaseName() const;
|
||||
void setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName);
|
||||
bool getPartitionKeyModifyTime_Month() const;
|
||||
void setPartitionKeyModifyTime_Month(bool partitionKeyModifyTime_Month);
|
||||
std::string getSourceEndpointPort() const;
|
||||
void setSourceEndpointPort(const std::string &sourceEndpointPort);
|
||||
std::string getSourceEndpointOwnerID() const;
|
||||
void setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID);
|
||||
std::string getDestinationEndpointUserName() const;
|
||||
void setDestinationEndpointUserName(const std::string &destinationEndpointUserName);
|
||||
std::string getDestinationEndpointPort() const;
|
||||
void setDestinationEndpointPort(const std::string &destinationEndpointPort);
|
||||
bool getPartitionKeyModifyTime_Year() const;
|
||||
@@ -82,20 +68,34 @@ public:
|
||||
void setSourceEndpointRole(const std::string &sourceEndpointRole);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
bool getPartitionKeyModifyTime_Hour() const;
|
||||
void setPartitionKeyModifyTime_Hour(bool partitionKeyModifyTime_Hour);
|
||||
std::string getDestinationEndpointDataBaseName() const;
|
||||
void setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName);
|
||||
std::string getSourceEndpointPassword() const;
|
||||
void setSourceEndpointPassword(const std::string &sourceEndpointPassword);
|
||||
std::string getMigrationReserved() const;
|
||||
void setMigrationReserved(const std::string &migrationReserved);
|
||||
std::string getDestinationEndpointIP() const;
|
||||
void setDestinationEndpointIP(const std::string &destinationEndpointIP);
|
||||
std::string getDestinationEndpointInstanceType() const;
|
||||
void setDestinationEndpointInstanceType(const std::string &destinationEndpointInstanceType);
|
||||
std::string getSynchronizationDirection() const;
|
||||
void setSynchronizationDirection(const std::string &synchronizationDirection);
|
||||
bool getDataInitialization() const;
|
||||
void setDataInitialization(bool dataInitialization);
|
||||
bool getStructureInitialization() const;
|
||||
void setStructureInitialization(bool structureInitialization);
|
||||
std::string getSourceEndpointInstanceType() const;
|
||||
void setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
bool getPartitionKeyModifyTime_Month() const;
|
||||
void setPartitionKeyModifyTime_Month(bool partitionKeyModifyTime_Month);
|
||||
std::string getDestinationEndpointUserName() const;
|
||||
void setDestinationEndpointUserName(const std::string &destinationEndpointUserName);
|
||||
bool getPartitionKeyModifyTime_Hour() const;
|
||||
void setPartitionKeyModifyTime_Hour(bool partitionKeyModifyTime_Hour);
|
||||
std::string getDestinationEndpointDataBaseName() const;
|
||||
void setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName);
|
||||
std::string getMigrationReserved() const;
|
||||
void setMigrationReserved(const std::string &migrationReserved);
|
||||
|
||||
private:
|
||||
std::string sourceEndpointInstanceId_;
|
||||
@@ -104,33 +104,33 @@ private:
|
||||
std::string sourceEndpointIP_;
|
||||
std::string synchronizationObjects_;
|
||||
std::string destinationEndpointPassword_;
|
||||
bool dataInitialization_;
|
||||
bool structureInitialization_;
|
||||
bool partitionKeyModifyTime_Minute_;
|
||||
bool partitionKeyModifyTime_Day_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string accessKeyId_;
|
||||
std::string synchronizationJobId_;
|
||||
std::string synchronizationJobName_;
|
||||
std::string accountId_;
|
||||
std::string regionId_;
|
||||
std::string sourceEndpointUserName_;
|
||||
std::string sourceEndpointDatabaseName_;
|
||||
bool partitionKeyModifyTime_Month_;
|
||||
std::string sourceEndpointPort_;
|
||||
std::string sourceEndpointOwnerID_;
|
||||
std::string destinationEndpointUserName_;
|
||||
std::string destinationEndpointPort_;
|
||||
bool partitionKeyModifyTime_Year_;
|
||||
std::string sourceEndpointRole_;
|
||||
std::string ownerId_;
|
||||
bool partitionKeyModifyTime_Hour_;
|
||||
std::string destinationEndpointDataBaseName_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string migrationReserved_;
|
||||
std::string destinationEndpointIP_;
|
||||
std::string destinationEndpointInstanceType_;
|
||||
std::string synchronizationDirection_;
|
||||
bool dataInitialization_;
|
||||
bool structureInitialization_;
|
||||
std::string sourceEndpointInstanceType_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
bool partitionKeyModifyTime_Month_;
|
||||
std::string destinationEndpointUserName_;
|
||||
bool partitionKeyModifyTime_Hour_;
|
||||
std::string destinationEndpointDataBaseName_;
|
||||
std::string migrationReserved_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DTS_EXPORT DeleteDtsJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeleteDtsJobRequest();
|
||||
~DeleteDtsJobRequest();
|
||||
std::string getJobType() const;
|
||||
void setJobType(const std::string &jobType);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getDtsJobId() const;
|
||||
@@ -40,6 +42,7 @@ public:
|
||||
void setSynchronizationDirection(const std::string &synchronizationDirection);
|
||||
|
||||
private:
|
||||
std::string jobType_;
|
||||
std::string regionId_;
|
||||
std::string dtsJobId_;
|
||||
std::string dtsInstanceId_;
|
||||
|
||||
@@ -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_DESCRIBECHANNELACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_DESCRIBECHANNELACCOUNTREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dts/DtsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dts {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DTS_EXPORT DescribeChannelAccountRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribeChannelAccountRequest();
|
||||
~DescribeChannelAccountRequest();
|
||||
std::string getType() const;
|
||||
void setType(const std::string &type);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getOriginType() const;
|
||||
void setOriginType(const std::string &originType);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getTags() const;
|
||||
void setTags(const std::string &tags);
|
||||
std::string getRegion() const;
|
||||
void setRegion(const std::string ®ion);
|
||||
|
||||
private:
|
||||
std::string type_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string dtsJobId_;
|
||||
std::string originType_;
|
||||
std::string ownerId_;
|
||||
std::string tags_;
|
||||
std::string region_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECHANNELACCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DTS_MODEL_DESCRIBECHANNELACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_DESCRIBECHANNELACCOUNTRESULT_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 DescribeChannelAccountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeChannelAccountResult();
|
||||
explicit DescribeChannelAccountResult(const std::string &payload);
|
||||
~DescribeChannelAccountResult();
|
||||
std::string getUsername()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
std::string getPassword()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string username_;
|
||||
int httpStatusCode_;
|
||||
std::string dynamicCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
std::string password_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DTS_MODEL_DESCRIBECHANNELACCOUNTRESULT_H_
|
||||
@@ -34,19 +34,19 @@ public:
|
||||
void setPageNumber(int pageNumber);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getJobName() const;
|
||||
void setJobName(const std::string &jobName);
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int checkType_;
|
||||
std::string instanceId_;
|
||||
int pageSize_;
|
||||
std::string jobName_;
|
||||
std::string instanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
|
||||
@@ -36,10 +36,6 @@ public:
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getDedicatedClusterId() const;
|
||||
void setDedicatedClusterId(const std::string &dedicatedClusterId);
|
||||
std::string getEnv() const;
|
||||
void setEnv(const std::string &env);
|
||||
std::string getOwnerID() const;
|
||||
void setOwnerID(const std::string &ownerID);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getAccountId() const;
|
||||
@@ -50,18 +46,22 @@ public:
|
||||
void setSecurityToken(const std::string &securityToken);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getEnv() const;
|
||||
void setEnv(const std::string &env);
|
||||
std::string getOwnerID() const;
|
||||
void setOwnerID(const std::string &ownerID);
|
||||
|
||||
private:
|
||||
std::string metricType_;
|
||||
std::string clientToken_;
|
||||
std::string dedicatedClusterId_;
|
||||
std::string env_;
|
||||
std::string ownerID_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountId_;
|
||||
std::string regionId_;
|
||||
std::string securityToken_;
|
||||
std::string dtsJobId_;
|
||||
std::string env_;
|
||||
std::string ownerID_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
|
||||
@@ -30,17 +30,20 @@ class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckReportUrlRequest : public RpcServ
|
||||
public:
|
||||
DescribeDataCheckReportUrlRequest();
|
||||
~DescribeDataCheckReportUrlRequest();
|
||||
std::string getJobStepId() const;
|
||||
void setJobStepId(const std::string &jobStepId);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
std::string getTbName() const;
|
||||
void setTbName(const std::string &tbName);
|
||||
std::string getDbName() const;
|
||||
void setDbName(const std::string &dbName);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
|
||||
private:
|
||||
std::string jobStepId_;
|
||||
int checkType_;
|
||||
std::string tbName_;
|
||||
std::string dbName_;
|
||||
std::string dtsJobId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
|
||||
@@ -32,10 +32,12 @@ public:
|
||||
~DescribeDataCheckTableDetailsRequest();
|
||||
int getPageNumber() const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getJobStepId() const;
|
||||
void setJobStepId(const std::string &jobStepId);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
int getPageSize() const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getTableName() const;
|
||||
void setTableName(const std::string &tableName);
|
||||
std::string getStatus() const;
|
||||
@@ -43,8 +45,9 @@ public:
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
std::string jobStepId_;
|
||||
int checkType_;
|
||||
int pageSize_;
|
||||
std::string dtsJobId_;
|
||||
std::string tableName_;
|
||||
std::string status_;
|
||||
};
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
long finishCount;
|
||||
std::string bootTime;
|
||||
long id;
|
||||
int errorCode;
|
||||
std::string sourceDbName;
|
||||
long diffCount;
|
||||
};
|
||||
@@ -50,40 +51,32 @@ namespace AlibabaCloud
|
||||
DescribeDataCheckTableDetailsResult();
|
||||
explicit DescribeDataCheckTableDetailsResult(const std::string &payload);
|
||||
~DescribeDataCheckTableDetailsResult();
|
||||
long getWarningCount()const;
|
||||
long getDiffTableCount()const;
|
||||
std::vector<TableDetailsItem> getTableDetails()const;
|
||||
long getRunningCount()const;
|
||||
long getTotalCount()const;
|
||||
int getPageNumber()const;
|
||||
long getFinishedCount()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::string getDynamicCode()const;
|
||||
std::string getDynamicMessage()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
long getTotalCount()const;
|
||||
int getPageNumber()const;
|
||||
long getInitCount()const;
|
||||
long getFinishedCount()const;
|
||||
long getDiffRowCount()const;
|
||||
int getHttpStatusCode()const;
|
||||
long getFailedCount()const;
|
||||
std::string getDynamicCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long warningCount_;
|
||||
long diffTableCount_;
|
||||
std::vector<TableDetailsItem> tableDetails_;
|
||||
long runningCount_;
|
||||
long totalCount_;
|
||||
int pageNumber_;
|
||||
long finishedCount_;
|
||||
int httpStatusCode_;
|
||||
std::string dynamicCode_;
|
||||
std::string dynamicMessage_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
long totalCount_;
|
||||
int pageNumber_;
|
||||
long initCount_;
|
||||
long finishedCount_;
|
||||
long diffRowCount_;
|
||||
int httpStatusCode_;
|
||||
long failedCount_;
|
||||
std::string dynamicCode_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,21 +30,24 @@ class ALIBABACLOUD_DTS_EXPORT DescribeDataCheckTableDiffDetailsRequest : public
|
||||
public:
|
||||
DescribeDataCheckTableDiffDetailsRequest();
|
||||
~DescribeDataCheckTableDiffDetailsRequest();
|
||||
std::string getJobStepId() const;
|
||||
void setJobStepId(const std::string &jobStepId);
|
||||
long getPageNumber() const;
|
||||
void setPageNumber(long pageNumber);
|
||||
int getCheckType() const;
|
||||
void setCheckType(int checkType);
|
||||
long getPageSize() const;
|
||||
void setPageSize(long pageSize);
|
||||
std::string getDtsJobId() const;
|
||||
void setDtsJobId(const std::string &dtsJobId);
|
||||
std::string getTbName() const;
|
||||
void setTbName(const std::string &tbName);
|
||||
std::string getDbName() const;
|
||||
void setDbName(const std::string &dbName);
|
||||
|
||||
private:
|
||||
std::string jobStepId_;
|
||||
long pageNumber_;
|
||||
int checkType_;
|
||||
long pageSize_;
|
||||
std::string dtsJobId_;
|
||||
std::string tbName_;
|
||||
std::string dbName_;
|
||||
};
|
||||
|
||||
@@ -35,17 +35,18 @@ namespace AlibabaCloud
|
||||
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 engineName;
|
||||
std::string roleName;
|
||||
std::string aliyunUid;
|
||||
std::string region;
|
||||
std::string instanceType;
|
||||
std::string engineName;
|
||||
bool canModifyPassword;
|
||||
};
|
||||
struct DestinationEndpoint
|
||||
{
|
||||
@@ -58,6 +59,7 @@ namespace AlibabaCloud
|
||||
std::string databaseName;
|
||||
std::string region;
|
||||
std::string instanceType;
|
||||
bool canModifyPassword;
|
||||
std::string engineName;
|
||||
};
|
||||
struct MigrationMode
|
||||
@@ -97,6 +99,14 @@ namespace AlibabaCloud
|
||||
bool retrying;
|
||||
std::string jobId;
|
||||
};
|
||||
struct DataDeliveryChannelInfo
|
||||
{
|
||||
int partitionNum;
|
||||
std::string region;
|
||||
std::string vpcDproxyUrl;
|
||||
std::string topic;
|
||||
std::string publicDproxyUrl;
|
||||
};
|
||||
struct SubDistributedJobItem
|
||||
{
|
||||
struct SourceEndpoint2
|
||||
@@ -837,10 +847,12 @@ namespace AlibabaCloud
|
||||
std::string getDtsJobClass()const;
|
||||
std::string getFinishTime()const;
|
||||
std::string getDestNetType()const;
|
||||
DataDeliveryChannelInfo getDataDeliveryChannelInfo()const;
|
||||
std::string getBinlog()const;
|
||||
std::string getCreateTime()const;
|
||||
std::vector<SubDistributedJobItem> getSubDistributedJob()const;
|
||||
std::string getGroupId()const;
|
||||
std::string getDtsBisLabel()const;
|
||||
long getCheckpoint()const;
|
||||
std::string getConsumptionCheckpoint()const;
|
||||
std::string getDtsJobDirection()const;
|
||||
@@ -893,10 +905,12 @@ namespace AlibabaCloud
|
||||
std::string dtsJobClass_;
|
||||
std::string finishTime_;
|
||||
std::string destNetType_;
|
||||
DataDeliveryChannelInfo dataDeliveryChannelInfo_;
|
||||
std::string binlog_;
|
||||
std::string createTime_;
|
||||
std::vector<SubDistributedJobItem> subDistributedJob_;
|
||||
std::string groupId_;
|
||||
std::string dtsBisLabel_;
|
||||
long checkpoint_;
|
||||
std::string consumptionCheckpoint_;
|
||||
std::string dtsJobDirection_;
|
||||
|
||||
@@ -30,6 +30,8 @@ class ALIBABACLOUD_DTS_EXPORT DescribeDtsJobsRequest : public RpcServiceRequest
|
||||
public:
|
||||
DescribeDtsJobsRequest();
|
||||
~DescribeDtsJobsRequest();
|
||||
bool getWithoutDbList() const;
|
||||
void setWithoutDbList(bool withoutDbList);
|
||||
std::string getOrderDirection() const;
|
||||
void setOrderDirection(const std::string &orderDirection);
|
||||
std::string getDedicatedClusterId() const;
|
||||
@@ -42,6 +44,8 @@ public:
|
||||
void setOrderColumn(const std::string &orderColumn);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getDtsBisLabel() const;
|
||||
void setDtsBisLabel(const std::string &dtsBisLabel);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
int getPageSize() const;
|
||||
@@ -68,12 +72,14 @@ public:
|
||||
void setStatus(const std::string &status);
|
||||
|
||||
private:
|
||||
bool withoutDbList_;
|
||||
std::string orderDirection_;
|
||||
std::string dedicatedClusterId_;
|
||||
std::string type_;
|
||||
int pageNumber_;
|
||||
std::string orderColumn_;
|
||||
std::string resourceGroupId_;
|
||||
std::string dtsBisLabel_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string dtsJobId_;
|
||||
|
||||
@@ -74,6 +74,8 @@ namespace AlibabaCloud
|
||||
bool dataInitialization;
|
||||
bool dataSynchronization;
|
||||
bool structureInitialization;
|
||||
bool fullDataCheck;
|
||||
bool incDataCheck;
|
||||
};
|
||||
struct Performance
|
||||
{
|
||||
@@ -186,6 +188,7 @@ namespace AlibabaCloud
|
||||
StructureInitializationStatus8 structureInitializationStatus8;
|
||||
std::string dtsInstanceID;
|
||||
long delay;
|
||||
std::string etlSafeCheckpoint;
|
||||
Performance5 performance5;
|
||||
std::string dtsJobClass;
|
||||
std::string dtsJobId;
|
||||
@@ -228,6 +231,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
int maxRetryTime;
|
||||
std::string retryTarget;
|
||||
std::string migrationErrType;
|
||||
std::string migrationErrCode;
|
||||
std::string migrationErrWorkaround;
|
||||
std::string errMessage;
|
||||
@@ -248,6 +252,20 @@ namespace AlibabaCloud
|
||||
bool needUpgrade;
|
||||
std::string errorMessage;
|
||||
};
|
||||
struct FullDataCheckStatus
|
||||
{
|
||||
std::string status;
|
||||
std::string progress;
|
||||
std::string percent;
|
||||
std::string errorMessage;
|
||||
};
|
||||
struct IncDataCheckStatus
|
||||
{
|
||||
std::string status;
|
||||
std::string progress;
|
||||
std::string percent;
|
||||
std::string errorMessage;
|
||||
};
|
||||
struct DtsTag
|
||||
{
|
||||
std::string tagKey;
|
||||
@@ -258,23 +276,17 @@ namespace AlibabaCloud
|
||||
std::string errorCode;
|
||||
std::string helpUrl;
|
||||
};
|
||||
long duUsage;
|
||||
DataInitializationStatus dataInitializationStatus;
|
||||
std::string resourceGroupId;
|
||||
std::string dtsJobName;
|
||||
std::string migrationErrWorkaround;
|
||||
std::string migrationErrCode;
|
||||
std::string endTimestamp;
|
||||
std::string cpuUsage;
|
||||
std::vector<DtsJobStatus::ErrorDetail> errorDetails;
|
||||
std::string dtsInstanceID;
|
||||
MigrationMode migrationMode;
|
||||
long delay;
|
||||
std::string appName;
|
||||
std::string dtsJobClass;
|
||||
DataCloudStatus dataCloudStatus;
|
||||
std::string etlSafeCheckpoint;
|
||||
std::string dtsJobId;
|
||||
std::vector<DtsJobStatus::DtsTag> tagList;
|
||||
std::string migrationErrHelpDocId;
|
||||
DataSynchronizationStatus dataSynchronizationStatus;
|
||||
std::string memUsage;
|
||||
@@ -283,27 +295,38 @@ namespace AlibabaCloud
|
||||
std::string dedicatedClusterId;
|
||||
DataEtlStatus dataEtlStatus;
|
||||
std::string dbObject;
|
||||
std::string createTime;
|
||||
ReverseJob reverseJob;
|
||||
std::string payType;
|
||||
PrecheckStatus precheckStatus;
|
||||
std::string consumptionCheckpoint;
|
||||
std::string checkpoint;
|
||||
std::string migrationErrHelpDocKey;
|
||||
std::string dtsJobDirection;
|
||||
std::string jobType;
|
||||
DestinationEndpoint destinationEndpoint;
|
||||
std::string consumptionClient;
|
||||
SourceEndpoint sourceEndpoint;
|
||||
Performance performance;
|
||||
std::string errorMessage;
|
||||
std::string expireTime;
|
||||
std::string resourceGroupDisplayName;
|
||||
std::string beginTimestamp;
|
||||
std::string migrationErrMsg;
|
||||
StructureInitializationStatus structureInitializationStatus;
|
||||
RetryState retryState;
|
||||
std::string reserved;
|
||||
IncDataCheckStatus incDataCheckStatus;
|
||||
long duUsage;
|
||||
std::string migrationErrType;
|
||||
FullDataCheckStatus fullDataCheckStatus;
|
||||
std::string cpuUsage;
|
||||
std::vector<DtsJobStatus::ErrorDetail> errorDetails;
|
||||
std::string appName;
|
||||
std::string dtsJobClass;
|
||||
DataCloudStatus dataCloudStatus;
|
||||
std::vector<DtsJobStatus::DtsTag> tagList;
|
||||
std::string createTime;
|
||||
std::string dtsBisLabel;
|
||||
std::string consumptionCheckpoint;
|
||||
std::string checkpoint;
|
||||
std::string dtsJobDirection;
|
||||
std::string jobType;
|
||||
DestinationEndpoint destinationEndpoint;
|
||||
std::string errorMessage;
|
||||
std::string resourceGroupDisplayName;
|
||||
std::string beginTimestamp;
|
||||
StructureInitializationStatus structureInitializationStatus;
|
||||
};
|
||||
struct DtsJobStatus13
|
||||
{
|
||||
@@ -455,6 +478,7 @@ namespace AlibabaCloud
|
||||
std::string payType;
|
||||
std::string dtsInstanceID;
|
||||
long delay;
|
||||
std::string etlSafeCheckpoint;
|
||||
MigrationMode29 migrationMode29;
|
||||
std::string dtsJobClass;
|
||||
std::string checkpoint;
|
||||
@@ -508,6 +532,7 @@ namespace AlibabaCloud
|
||||
std::string endTimestamp;
|
||||
std::string dtsInstanceID;
|
||||
long delay;
|
||||
std::string etlSafeCheckpoint;
|
||||
std::string appName;
|
||||
MigrationMode18 migrationMode18;
|
||||
std::string dtsJobClass;
|
||||
|
||||
@@ -67,11 +67,91 @@ namespace AlibabaCloud
|
||||
std::string id;
|
||||
std::string current;
|
||||
};
|
||||
struct AnalysisProgressInfo
|
||||
{
|
||||
struct JobLog2
|
||||
{
|
||||
std::string errData;
|
||||
std::string errMsg;
|
||||
std::string errType;
|
||||
std::string logLevel;
|
||||
};
|
||||
std::string sourceSchema;
|
||||
std::string destSchema;
|
||||
std::string errMsg;
|
||||
std::string names;
|
||||
std::string item;
|
||||
std::string repairMethod;
|
||||
std::string finishTime;
|
||||
long diffRow;
|
||||
int orderNum;
|
||||
std::string parentObj;
|
||||
std::string jobId;
|
||||
std::string ddlSql;
|
||||
std::vector<AnalysisProgressInfo::JobLog2> logs1;
|
||||
std::string sub;
|
||||
std::string targetNames;
|
||||
std::string bootTime;
|
||||
bool canSkip;
|
||||
int delaySeconds;
|
||||
std::string ignoreFlag;
|
||||
std::string state;
|
||||
int total;
|
||||
bool skip;
|
||||
std::string errDetail;
|
||||
std::string id;
|
||||
std::string current;
|
||||
};
|
||||
struct SubDistributedJobStatusItem
|
||||
{
|
||||
struct ProgressInfo2
|
||||
struct ProgressInfo4
|
||||
{
|
||||
struct JobLog4
|
||||
struct JobLog6
|
||||
{
|
||||
std::string errData;
|
||||
std::string errMsg;
|
||||
std::string errType;
|
||||
std::string logLevel;
|
||||
};
|
||||
std::string sourceSchema;
|
||||
std::string destSchema;
|
||||
std::string errMsg;
|
||||
std::string names;
|
||||
std::string item;
|
||||
std::string repairMethod;
|
||||
std::string finishTime;
|
||||
long diffRow;
|
||||
int orderNum;
|
||||
std::string parentObj;
|
||||
std::string jobId;
|
||||
std::string ddlSql;
|
||||
std::string sub;
|
||||
std::vector<ProgressInfo4::JobLog6> logs5;
|
||||
std::string targetNames;
|
||||
std::string bootTime;
|
||||
bool canSkip;
|
||||
int delaySeconds;
|
||||
std::string ignoreFlag;
|
||||
std::string state;
|
||||
int total;
|
||||
bool skip;
|
||||
std::string errDetail;
|
||||
std::string id;
|
||||
std::string current;
|
||||
};
|
||||
std::string state;
|
||||
int total;
|
||||
std::string jobName;
|
||||
int errorItem;
|
||||
std::string code;
|
||||
std::string jobId;
|
||||
std::vector<SubDistributedJobStatusItem::ProgressInfo4> jobProgress3;
|
||||
};
|
||||
struct FullNetCheckJobStatusItem
|
||||
{
|
||||
struct ProgressInfo8
|
||||
{
|
||||
struct JobLog10
|
||||
{
|
||||
std::string errData;
|
||||
std::string errMsg;
|
||||
@@ -92,7 +172,7 @@ namespace AlibabaCloud
|
||||
std::string ddlSql;
|
||||
std::string sub;
|
||||
std::string targetNames;
|
||||
std::vector<ProgressInfo2::JobLog4> logs3;
|
||||
std::vector<ProgressInfo8::JobLog10> logs9;
|
||||
std::string bootTime;
|
||||
bool canSkip;
|
||||
int delaySeconds;
|
||||
@@ -104,13 +184,20 @@ namespace AlibabaCloud
|
||||
std::string id;
|
||||
std::string current;
|
||||
};
|
||||
std::vector<SubDistributedJobStatusItem::ProgressInfo2> jobProgress1;
|
||||
std::string state;
|
||||
int total;
|
||||
std::string srcRegionCidr;
|
||||
std::string destRegionCidr;
|
||||
std::string hostRegion;
|
||||
std::string jobName;
|
||||
int errorItem;
|
||||
std::string sourceEndpointType;
|
||||
std::string code;
|
||||
std::string destinationEndpointType;
|
||||
std::string srcRegion;
|
||||
std::string state;
|
||||
int total;
|
||||
std::vector<FullNetCheckJobStatusItem::ProgressInfo8> jobProgress7;
|
||||
std::string jobId;
|
||||
std::string destRegion;
|
||||
};
|
||||
|
||||
|
||||
@@ -118,12 +205,15 @@ namespace AlibabaCloud
|
||||
explicit DescribePreCheckStatusResult(const std::string &payload);
|
||||
~DescribePreCheckStatusResult();
|
||||
long getTotalRecordCount()const;
|
||||
std::vector<AnalysisProgressInfo> getAnalysisJobProgress()const;
|
||||
long getPageRecordCount()const;
|
||||
std::vector<FullNetCheckJobStatusItem> getFullNetCheckJobStatus()const;
|
||||
std::string getJobName()const;
|
||||
int getErrorItem()const;
|
||||
std::vector<SubDistributedJobStatusItem> getSubDistributedJobStatus()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
int getErrorAnalysisItem()const;
|
||||
long getPageNumber()const;
|
||||
std::string getState()const;
|
||||
int getTotal()const;
|
||||
@@ -135,12 +225,15 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalRecordCount_;
|
||||
std::vector<AnalysisProgressInfo> analysisJobProgress_;
|
||||
long pageRecordCount_;
|
||||
std::vector<FullNetCheckJobStatusItem> fullNetCheckJobStatus_;
|
||||
std::string jobName_;
|
||||
int errorItem_;
|
||||
std::vector<SubDistributedJobStatusItem> subDistributedJobStatus_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
int errorAnalysisItem_;
|
||||
long pageNumber_;
|
||||
std::string state_;
|
||||
int total_;
|
||||
|
||||
@@ -30,22 +30,22 @@ class ALIBABACLOUD_DTS_EXPORT DescribeSubscriptionMetaRequest : public RpcServic
|
||||
public:
|
||||
DescribeSubscriptionMetaRequest();
|
||||
~DescribeSubscriptionMetaRequest();
|
||||
std::string getTopics() const;
|
||||
void setTopics(const std::string &topics);
|
||||
std::string getSid() const;
|
||||
void setSid(const std::string &sid);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getSubMigrationJobIds() const;
|
||||
void setSubMigrationJobIds(const std::string &subMigrationJobIds);
|
||||
std::string getTopics() const;
|
||||
void setTopics(const std::string &topics);
|
||||
std::string getDtsInstanceId() const;
|
||||
void setDtsInstanceId(const std::string &dtsInstanceId);
|
||||
|
||||
private:
|
||||
std::string topics_;
|
||||
std::string sid_;
|
||||
std::string regionId_;
|
||||
std::string subMigrationJobIds_;
|
||||
std::string topics_;
|
||||
std::string dtsInstanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -32,8 +32,6 @@ public:
|
||||
~DescribeSynchronizationJobStatusRequest();
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSynchronizationJobId() const;
|
||||
@@ -42,16 +40,18 @@ public:
|
||||
void setAccountId(const std::string &accountId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getOwnerId() const;
|
||||
void setOwnerId(const std::string &ownerId);
|
||||
std::string getSynchronizationDirection() const;
|
||||
void setSynchronizationDirection(const std::string &synchronizationDirection);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string synchronizationJobId_;
|
||||
std::string accountId_;
|
||||
std::string regionId_;
|
||||
std::string ownerId_;
|
||||
std::string synchronizationDirection_;
|
||||
};
|
||||
} // namespace Model
|
||||
|
||||
@@ -30,14 +30,20 @@ class ALIBABACLOUD_DTS_EXPORT ModifyDtsJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ModifyDtsJobRequest();
|
||||
~ModifyDtsJobRequest();
|
||||
bool getDataInitialization() const;
|
||||
void setDataInitialization(bool dataInitialization);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
bool getStructureInitialization() const;
|
||||
void setStructureInitialization(bool structureInitialization);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
std::string getEtlOperatorColumnReference() const;
|
||||
void setEtlOperatorColumnReference(const std::string &etlOperatorColumnReference);
|
||||
bool getDataSynchronization() const;
|
||||
void setDataSynchronization(bool dataSynchronization);
|
||||
std::string getDbList() const;
|
||||
void setDbList(const std::string &dbList);
|
||||
std::string getFileOssUrl() const;
|
||||
@@ -56,10 +62,13 @@ public:
|
||||
void setSynchronizationDirection(const std::string &synchronizationDirection);
|
||||
|
||||
private:
|
||||
bool dataInitialization_;
|
||||
std::string clientToken_;
|
||||
bool structureInitialization_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string etlOperatorColumnReference_;
|
||||
bool dataSynchronization_;
|
||||
std::string dbList_;
|
||||
std::string fileOssUrl_;
|
||||
std::string ownerId_;
|
||||
|
||||
@@ -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_REVERSETWOWAYDIRECTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_REVERSETWOWAYDIRECTIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/dts/DtsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Dts {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_DTS_EXPORT ReverseTwoWayDirectionRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ReverseTwoWayDirectionRequest();
|
||||
~ReverseTwoWayDirectionRequest();
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
bool getIgnoreErrorSubJob() const;
|
||||
void setIgnoreErrorSubJob(bool ignoreErrorSubJob);
|
||||
std::string getDtsInstanceId() const;
|
||||
void setDtsInstanceId(const std::string &dtsInstanceId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
bool ignoreErrorSubJob_;
|
||||
std::string dtsInstanceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Dts
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_DTS_MODEL_REVERSETWOWAYDIRECTIONREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DTS_MODEL_REVERSETWOWAYDIRECTIONRESULT_H_
|
||||
#define ALIBABACLOUD_DTS_MODEL_REVERSETWOWAYDIRECTIONRESULT_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 ReverseTwoWayDirectionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReverseTwoWayDirectionResult();
|
||||
explicit ReverseTwoWayDirectionResult(const std::string &payload);
|
||||
~ReverseTwoWayDirectionResult();
|
||||
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_REVERSETWOWAYDIRECTIONRESULT_H_
|
||||
@@ -951,6 +951,42 @@ DtsClient::DeleteSynchronizationJobOutcomeCallable DtsClient::deleteSynchronizat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::DescribeChannelAccountOutcome DtsClient::describeChannelAccount(const DescribeChannelAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeChannelAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeChannelAccountOutcome(DescribeChannelAccountResult(outcome.result()));
|
||||
else
|
||||
return DescribeChannelAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DtsClient::describeChannelAccountAsync(const DescribeChannelAccountRequest& request, const DescribeChannelAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeChannelAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DtsClient::DescribeChannelAccountOutcomeCallable DtsClient::describeChannelAccountCallable(const DescribeChannelAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeChannelAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeChannelAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::DescribeCheckJobsOutcome DtsClient::describeCheckJobs(const DescribeCheckJobsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2967,6 +3003,42 @@ DtsClient::ResetSynchronizationJobOutcomeCallable DtsClient::resetSynchronizatio
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::ReverseTwoWayDirectionOutcome DtsClient::reverseTwoWayDirection(const ReverseTwoWayDirectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReverseTwoWayDirectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReverseTwoWayDirectionOutcome(ReverseTwoWayDirectionResult(outcome.result()));
|
||||
else
|
||||
return ReverseTwoWayDirectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DtsClient::reverseTwoWayDirectionAsync(const ReverseTwoWayDirectionRequest& request, const ReverseTwoWayDirectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, reverseTwoWayDirection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DtsClient::ReverseTwoWayDirectionOutcomeCallable DtsClient::reverseTwoWayDirectionCallable(const ReverseTwoWayDirectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReverseTwoWayDirectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->reverseTwoWayDirection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DtsClient::ShieldPrecheckOutcome DtsClient::shieldPrecheck(const ShieldPrecheckRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -43,6 +43,15 @@ void ConfigureDtsJobRequest::setSourceEndpointUserName(const std::string &source
|
||||
setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getDestinationEndpointOwnerID() const {
|
||||
return destinationEndpointOwnerID_;
|
||||
}
|
||||
|
||||
void ConfigureDtsJobRequest::setDestinationEndpointOwnerID(const std::string &destinationEndpointOwnerID) {
|
||||
destinationEndpointOwnerID_ = destinationEndpointOwnerID;
|
||||
setParameter(std::string("DestinationEndpointOwnerID"), destinationEndpointOwnerID);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getDelayPhone() const {
|
||||
return delayPhone_;
|
||||
}
|
||||
@@ -52,6 +61,15 @@ void ConfigureDtsJobRequest::setDelayPhone(const std::string &delayPhone) {
|
||||
setParameter(std::string("DelayPhone"), delayPhone);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getDtsBisLabel() const {
|
||||
return dtsBisLabel_;
|
||||
}
|
||||
|
||||
void ConfigureDtsJobRequest::setDtsBisLabel(const std::string &dtsBisLabel) {
|
||||
dtsBisLabel_ = dtsBisLabel;
|
||||
setParameter(std::string("DtsBisLabel"), dtsBisLabel);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getSourceEndpointIP() const {
|
||||
return sourceEndpointIP_;
|
||||
}
|
||||
@@ -88,6 +106,15 @@ void ConfigureDtsJobRequest::setDtsJobId(const std::string &dtsJobId) {
|
||||
setParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getDestinationEndpointRole() const {
|
||||
return destinationEndpointRole_;
|
||||
}
|
||||
|
||||
void ConfigureDtsJobRequest::setDestinationEndpointRole(const std::string &destinationEndpointRole) {
|
||||
destinationEndpointRole_ = destinationEndpointRole;
|
||||
setParameter(std::string("DestinationEndpointRole"), destinationEndpointRole);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getDbList() const {
|
||||
return dbList_;
|
||||
}
|
||||
@@ -322,6 +349,15 @@ void ConfigureDtsJobRequest::setReserve(const std::string &reserve) {
|
||||
setBodyParameter(std::string("Reserve"), reserve);
|
||||
}
|
||||
|
||||
std::string ConfigureDtsJobRequest::getSourceEndpointVSwitchID() const {
|
||||
return sourceEndpointVSwitchID_;
|
||||
}
|
||||
|
||||
void ConfigureDtsJobRequest::setSourceEndpointVSwitchID(const std::string &sourceEndpointVSwitchID) {
|
||||
sourceEndpointVSwitchID_ = sourceEndpointVSwitchID;
|
||||
setParameter(std::string("SourceEndpointVSwitchID"), sourceEndpointVSwitchID);
|
||||
}
|
||||
|
||||
bool ConfigureDtsJobRequest::getDataSynchronization() const {
|
||||
return dataSynchronization_;
|
||||
}
|
||||
|
||||
@@ -25,15 +25,6 @@ ConfigureSubscriptionRequest::ConfigureSubscriptionRequest()
|
||||
|
||||
ConfigureSubscriptionRequest::~ConfigureSubscriptionRequest() {}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointRegion() const {
|
||||
return sourceEndpointRegion_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) {
|
||||
sourceEndpointRegion_ = sourceEndpointRegion;
|
||||
setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getCheckpoint() const {
|
||||
return checkpoint_;
|
||||
}
|
||||
@@ -52,24 +43,6 @@ void ConfigureSubscriptionRequest::setSubscriptionInstanceVSwitchId(const std::s
|
||||
setParameter(std::string("SubscriptionInstanceVSwitchId"), subscriptionInstanceVSwitchId);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getDelayNotice() const {
|
||||
return delayNotice_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDelayNotice(bool delayNotice) {
|
||||
delayNotice_ = delayNotice;
|
||||
setParameter(std::string("DelayNotice"), delayNotice ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointInstanceID() const {
|
||||
return sourceEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) {
|
||||
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
|
||||
setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointUserName() const {
|
||||
return sourceEndpointUserName_;
|
||||
}
|
||||
@@ -79,24 +52,6 @@ void ConfigureSubscriptionRequest::setSourceEndpointUserName(const std::string &
|
||||
setParameter(std::string("SourceEndpointUserName"), sourceEndpointUserName);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointOwnerID() const {
|
||||
return sourceEndpointOwnerID_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) {
|
||||
sourceEndpointOwnerID_ = sourceEndpointOwnerID;
|
||||
setParameter(std::string("SourceEndpointOwnerID"), sourceEndpointOwnerID);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDedicatedClusterId() const {
|
||||
return dedicatedClusterId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) {
|
||||
dedicatedClusterId_ = dedicatedClusterId;
|
||||
setParameter(std::string("DedicatedClusterId"), dedicatedClusterId);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDelayPhone() const {
|
||||
return delayPhone_;
|
||||
}
|
||||
@@ -106,22 +61,13 @@ void ConfigureSubscriptionRequest::setDelayPhone(const std::string &delayPhone)
|
||||
setParameter(std::string("DelayPhone"), delayPhone);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDML() const {
|
||||
return subscriptionDataTypeDML_;
|
||||
std::string ConfigureSubscriptionRequest::getDtsBisLabel() const {
|
||||
return dtsBisLabel_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSubscriptionDataTypeDML(bool subscriptionDataTypeDML) {
|
||||
subscriptionDataTypeDML_ = subscriptionDataTypeDML;
|
||||
setParameter(std::string("SubscriptionDataTypeDML"), subscriptionDataTypeDML ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointDatabaseName() const {
|
||||
return sourceEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) {
|
||||
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
|
||||
setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName);
|
||||
void ConfigureSubscriptionRequest::setDtsBisLabel(const std::string &dtsBisLabel) {
|
||||
dtsBisLabel_ = dtsBisLabel;
|
||||
setParameter(std::string("DtsBisLabel"), dtsBisLabel);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointIP() const {
|
||||
@@ -133,15 +79,6 @@ void ConfigureSubscriptionRequest::setSourceEndpointIP(const std::string &source
|
||||
setParameter(std::string("SourceEndpointIP"), sourceEndpointIP);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getErrorPhone() const {
|
||||
return errorPhone_;
|
||||
}
|
||||
@@ -151,15 +88,6 @@ void ConfigureSubscriptionRequest::setErrorPhone(const std::string &errorPhone)
|
||||
setParameter(std::string("ErrorPhone"), errorPhone);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getReserve() const {
|
||||
return reserve_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setReserve(const std::string &reserve) {
|
||||
reserve_ = reserve;
|
||||
setParameter(std::string("Reserve"), reserve);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDtsJobId() const {
|
||||
return dtsJobId_;
|
||||
}
|
||||
@@ -187,15 +115,6 @@ void ConfigureSubscriptionRequest::setSubscriptionInstanceNetworkType(const std:
|
||||
setParameter(std::string("SubscriptionInstanceNetworkType"), subscriptionInstanceNetworkType);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDDL() const {
|
||||
return subscriptionDataTypeDDL_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL) {
|
||||
subscriptionDataTypeDDL_ = subscriptionDataTypeDDL;
|
||||
setParameter(std::string("SubscriptionDataTypeDDL"), subscriptionDataTypeDDL ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointPassword() const {
|
||||
return sourceEndpointPassword_;
|
||||
}
|
||||
@@ -205,15 +124,6 @@ void ConfigureSubscriptionRequest::setSourceEndpointPassword(const std::string &
|
||||
setParameter(std::string("SourceEndpointPassword"), sourceEndpointPassword);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointPort() const {
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) {
|
||||
sourceEndpointPort_ = sourceEndpointPort;
|
||||
setParameter(std::string("SourceEndpointPort"), sourceEndpointPort);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSubscriptionInstanceVPCId() const {
|
||||
return subscriptionInstanceVPCId_;
|
||||
}
|
||||
@@ -250,6 +160,114 @@ void ConfigureSubscriptionRequest::setDtsJobName(const std::string &dtsJobName)
|
||||
setParameter(std::string("DtsJobName"), dtsJobName);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDtsInstanceId() const {
|
||||
return dtsInstanceId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDtsInstanceId(const std::string &dtsInstanceId) {
|
||||
dtsInstanceId_ = dtsInstanceId;
|
||||
setParameter(std::string("DtsInstanceId"), dtsInstanceId);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointRegion() const {
|
||||
return sourceEndpointRegion_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointRegion(const std::string &sourceEndpointRegion) {
|
||||
sourceEndpointRegion_ = sourceEndpointRegion;
|
||||
setParameter(std::string("SourceEndpointRegion"), sourceEndpointRegion);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getDelayNotice() const {
|
||||
return delayNotice_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDelayNotice(bool delayNotice) {
|
||||
delayNotice_ = delayNotice;
|
||||
setParameter(std::string("DelayNotice"), delayNotice ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointInstanceID() const {
|
||||
return sourceEndpointInstanceID_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointInstanceID(const std::string &sourceEndpointInstanceID) {
|
||||
sourceEndpointInstanceID_ = sourceEndpointInstanceID;
|
||||
setParameter(std::string("SourceEndpointInstanceID"), sourceEndpointInstanceID);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointOwnerID() const {
|
||||
return sourceEndpointOwnerID_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointOwnerID(const std::string &sourceEndpointOwnerID) {
|
||||
sourceEndpointOwnerID_ = sourceEndpointOwnerID;
|
||||
setParameter(std::string("SourceEndpointOwnerID"), sourceEndpointOwnerID);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDedicatedClusterId() const {
|
||||
return dedicatedClusterId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDedicatedClusterId(const std::string &dedicatedClusterId) {
|
||||
dedicatedClusterId_ = dedicatedClusterId;
|
||||
setParameter(std::string("DedicatedClusterId"), dedicatedClusterId);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDML() const {
|
||||
return subscriptionDataTypeDML_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSubscriptionDataTypeDML(bool subscriptionDataTypeDML) {
|
||||
subscriptionDataTypeDML_ = subscriptionDataTypeDML;
|
||||
setParameter(std::string("SubscriptionDataTypeDML"), subscriptionDataTypeDML ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointDatabaseName() const {
|
||||
return sourceEndpointDatabaseName_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointDatabaseName(const std::string &sourceEndpointDatabaseName) {
|
||||
sourceEndpointDatabaseName_ = sourceEndpointDatabaseName;
|
||||
setParameter(std::string("SourceEndpointDatabaseName"), sourceEndpointDatabaseName);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getReserve() const {
|
||||
return reserve_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setReserve(const std::string &reserve) {
|
||||
reserve_ = reserve;
|
||||
setParameter(std::string("Reserve"), reserve);
|
||||
}
|
||||
|
||||
bool ConfigureSubscriptionRequest::getSubscriptionDataTypeDDL() const {
|
||||
return subscriptionDataTypeDDL_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSubscriptionDataTypeDDL(bool subscriptionDataTypeDDL) {
|
||||
subscriptionDataTypeDDL_ = subscriptionDataTypeDDL;
|
||||
setParameter(std::string("SubscriptionDataTypeDDL"), subscriptionDataTypeDDL ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointPort() const {
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setSourceEndpointPort(const std::string &sourceEndpointPort) {
|
||||
sourceEndpointPort_ = sourceEndpointPort;
|
||||
setParameter(std::string("SourceEndpointPort"), sourceEndpointPort);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointOracleSID() const {
|
||||
return sourceEndpointOracleSID_;
|
||||
}
|
||||
@@ -277,15 +295,6 @@ void ConfigureSubscriptionRequest::setSourceEndpointRole(const std::string &sour
|
||||
setParameter(std::string("SourceEndpointRole"), sourceEndpointRole);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getDtsInstanceId() const {
|
||||
return dtsInstanceId_;
|
||||
}
|
||||
|
||||
void ConfigureSubscriptionRequest::setDtsInstanceId(const std::string &dtsInstanceId) {
|
||||
dtsInstanceId_ = dtsInstanceId;
|
||||
setParameter(std::string("DtsInstanceId"), dtsInstanceId);
|
||||
}
|
||||
|
||||
std::string ConfigureSubscriptionRequest::getSourceEndpointEngineName() const {
|
||||
return sourceEndpointEngineName_;
|
||||
}
|
||||
|
||||
@@ -79,24 +79,6 @@ void ConfigureSynchronizationJobRequest::setDestinationEndpointPassword(const st
|
||||
setParameter(std::string("DestinationEndpoint.Password"), destinationEndpointPassword);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getDataInitialization() const {
|
||||
return dataInitialization_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDataInitialization(bool dataInitialization) {
|
||||
dataInitialization_ = dataInitialization;
|
||||
setParameter(std::string("DataInitialization"), dataInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getStructureInitialization() const {
|
||||
return structureInitialization_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setStructureInitialization(bool structureInitialization) {
|
||||
structureInitialization_ = structureInitialization;
|
||||
setParameter(std::string("StructureInitialization"), structureInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Minute() const {
|
||||
return partitionKeyModifyTime_Minute_;
|
||||
}
|
||||
@@ -115,24 +97,6 @@ void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Day(bool part
|
||||
setParameter(std::string("PartitionKey.ModifyTime_Day"), partitionKeyModifyTime_Day ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSourceEndpointInstanceType() const {
|
||||
return sourceEndpointInstanceType_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) {
|
||||
sourceEndpointInstanceType_ = sourceEndpointInstanceType;
|
||||
setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSynchronizationJobId() const {
|
||||
return synchronizationJobId_;
|
||||
}
|
||||
@@ -160,15 +124,6 @@ void ConfigureSynchronizationJobRequest::setAccountId(const std::string &account
|
||||
setParameter(std::string("AccountId"), accountId);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSourceEndpointUserName() const {
|
||||
return sourceEndpointUserName_;
|
||||
}
|
||||
@@ -187,15 +142,6 @@ void ConfigureSynchronizationJobRequest::setSourceEndpointDatabaseName(const std
|
||||
setParameter(std::string("SourceEndpoint.DatabaseName"), sourceEndpointDatabaseName);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Month() const {
|
||||
return partitionKeyModifyTime_Month_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Month(bool partitionKeyModifyTime_Month) {
|
||||
partitionKeyModifyTime_Month_ = partitionKeyModifyTime_Month;
|
||||
setParameter(std::string("PartitionKey.ModifyTime_Month"), partitionKeyModifyTime_Month ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSourceEndpointPort() const {
|
||||
return sourceEndpointPort_;
|
||||
}
|
||||
@@ -214,15 +160,6 @@ void ConfigureSynchronizationJobRequest::setSourceEndpointOwnerID(const std::str
|
||||
setParameter(std::string("SourceEndpoint.OwnerID"), sourceEndpointOwnerID);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointUserName() const {
|
||||
return destinationEndpointUserName_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) {
|
||||
destinationEndpointUserName_ = destinationEndpointUserName;
|
||||
setParameter(std::string("DestinationEndpoint.UserName"), destinationEndpointUserName);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointPort() const {
|
||||
return destinationEndpointPort_;
|
||||
}
|
||||
@@ -259,24 +196,6 @@ void ConfigureSynchronizationJobRequest::setOwnerId(const std::string &ownerId)
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Hour() const {
|
||||
return partitionKeyModifyTime_Hour_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Hour(bool partitionKeyModifyTime_Hour) {
|
||||
partitionKeyModifyTime_Hour_ = partitionKeyModifyTime_Hour;
|
||||
setParameter(std::string("PartitionKey.ModifyTime_Hour"), partitionKeyModifyTime_Hour ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointDataBaseName() const {
|
||||
return destinationEndpointDataBaseName_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName) {
|
||||
destinationEndpointDataBaseName_ = destinationEndpointDataBaseName;
|
||||
setParameter(std::string("DestinationEndpoint.DataBaseName"), destinationEndpointDataBaseName);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSourceEndpointPassword() const {
|
||||
return sourceEndpointPassword_;
|
||||
}
|
||||
@@ -286,15 +205,6 @@ void ConfigureSynchronizationJobRequest::setSourceEndpointPassword(const std::st
|
||||
setParameter(std::string("SourceEndpoint.Password"), sourceEndpointPassword);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getMigrationReserved() const {
|
||||
return migrationReserved_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setMigrationReserved(const std::string &migrationReserved) {
|
||||
migrationReserved_ = migrationReserved;
|
||||
setParameter(std::string("MigrationReserved"), migrationReserved);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointIP() const {
|
||||
return destinationEndpointIP_;
|
||||
}
|
||||
@@ -322,3 +232,93 @@ void ConfigureSynchronizationJobRequest::setSynchronizationDirection(const std::
|
||||
setParameter(std::string("SynchronizationDirection"), synchronizationDirection);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getDataInitialization() const {
|
||||
return dataInitialization_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDataInitialization(bool dataInitialization) {
|
||||
dataInitialization_ = dataInitialization;
|
||||
setParameter(std::string("DataInitialization"), dataInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getStructureInitialization() const {
|
||||
return structureInitialization_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setStructureInitialization(bool structureInitialization) {
|
||||
structureInitialization_ = structureInitialization;
|
||||
setParameter(std::string("StructureInitialization"), structureInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getSourceEndpointInstanceType() const {
|
||||
return sourceEndpointInstanceType_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setSourceEndpointInstanceType(const std::string &sourceEndpointInstanceType) {
|
||||
sourceEndpointInstanceType_ = sourceEndpointInstanceType;
|
||||
setParameter(std::string("SourceEndpoint.InstanceType"), sourceEndpointInstanceType);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Month() const {
|
||||
return partitionKeyModifyTime_Month_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Month(bool partitionKeyModifyTime_Month) {
|
||||
partitionKeyModifyTime_Month_ = partitionKeyModifyTime_Month;
|
||||
setParameter(std::string("PartitionKey.ModifyTime_Month"), partitionKeyModifyTime_Month ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointUserName() const {
|
||||
return destinationEndpointUserName_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDestinationEndpointUserName(const std::string &destinationEndpointUserName) {
|
||||
destinationEndpointUserName_ = destinationEndpointUserName;
|
||||
setParameter(std::string("DestinationEndpoint.UserName"), destinationEndpointUserName);
|
||||
}
|
||||
|
||||
bool ConfigureSynchronizationJobRequest::getPartitionKeyModifyTime_Hour() const {
|
||||
return partitionKeyModifyTime_Hour_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setPartitionKeyModifyTime_Hour(bool partitionKeyModifyTime_Hour) {
|
||||
partitionKeyModifyTime_Hour_ = partitionKeyModifyTime_Hour;
|
||||
setParameter(std::string("PartitionKey.ModifyTime_Hour"), partitionKeyModifyTime_Hour ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getDestinationEndpointDataBaseName() const {
|
||||
return destinationEndpointDataBaseName_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setDestinationEndpointDataBaseName(const std::string &destinationEndpointDataBaseName) {
|
||||
destinationEndpointDataBaseName_ = destinationEndpointDataBaseName;
|
||||
setParameter(std::string("DestinationEndpoint.DataBaseName"), destinationEndpointDataBaseName);
|
||||
}
|
||||
|
||||
std::string ConfigureSynchronizationJobRequest::getMigrationReserved() const {
|
||||
return migrationReserved_;
|
||||
}
|
||||
|
||||
void ConfigureSynchronizationJobRequest::setMigrationReserved(const std::string &migrationReserved) {
|
||||
migrationReserved_ = migrationReserved;
|
||||
setParameter(std::string("MigrationReserved"), migrationReserved);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,15 @@ DeleteDtsJobRequest::DeleteDtsJobRequest()
|
||||
|
||||
DeleteDtsJobRequest::~DeleteDtsJobRequest() {}
|
||||
|
||||
std::string DeleteDtsJobRequest::getJobType() const {
|
||||
return jobType_;
|
||||
}
|
||||
|
||||
void DeleteDtsJobRequest::setJobType(const std::string &jobType) {
|
||||
jobType_ = jobType;
|
||||
setParameter(std::string("JobType"), jobType);
|
||||
}
|
||||
|
||||
std::string DeleteDtsJobRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
99
dts/src/model/DescribeChannelAccountRequest.cc
Normal file
99
dts/src/model/DescribeChannelAccountRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dts/model/DescribeChannelAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Dts::Model::DescribeChannelAccountRequest;
|
||||
|
||||
DescribeChannelAccountRequest::DescribeChannelAccountRequest()
|
||||
: RpcServiceRequest("dts", "2020-01-01", "DescribeChannelAccount") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeChannelAccountRequest::~DescribeChannelAccountRequest() {}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getDtsJobId() const {
|
||||
return dtsJobId_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setDtsJobId(const std::string &dtsJobId) {
|
||||
dtsJobId_ = dtsJobId;
|
||||
setParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getOriginType() const {
|
||||
return originType_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setOriginType(const std::string &originType) {
|
||||
originType_ = originType;
|
||||
setParameter(std::string("OriginType"), originType);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void DescribeChannelAccountRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
100
dts/src/model/DescribeChannelAccountResult.cc
Normal file
100
dts/src/model/DescribeChannelAccountResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/DescribeChannelAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dts;
|
||||
using namespace AlibabaCloud::Dts::Model;
|
||||
|
||||
DescribeChannelAccountResult::DescribeChannelAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeChannelAccountResult::DescribeChannelAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeChannelAccountResult::~DescribeChannelAccountResult()
|
||||
{}
|
||||
|
||||
void DescribeChannelAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
if(!value["DynamicCode"].isNull())
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["Username"].isNull())
|
||||
username_ = value["Username"].asString();
|
||||
if(!value["Password"].isNull())
|
||||
password_ = value["Password"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getUsername()const
|
||||
{
|
||||
return username_;
|
||||
}
|
||||
|
||||
int DescribeChannelAccountResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeChannelAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
std::string DescribeChannelAccountResult::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
@@ -43,15 +43,6 @@ void DescribeCheckJobsRequest::setCheckType(int checkType) {
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
std::string DescribeCheckJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeCheckJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
int DescribeCheckJobsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -70,3 +61,12 @@ void DescribeCheckJobsRequest::setJobName(const std::string &jobName) {
|
||||
setParameter(std::string("JobName"), jobName);
|
||||
}
|
||||
|
||||
std::string DescribeCheckJobsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeCheckJobsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,24 +52,6 @@ void DescribeClusterUsedUtilizationRequest::setDedicatedClusterId(const std::str
|
||||
setBodyParameter(std::string("DedicatedClusterId"), dedicatedClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterUsedUtilizationRequest::getEnv() const {
|
||||
return env_;
|
||||
}
|
||||
|
||||
void DescribeClusterUsedUtilizationRequest::setEnv(const std::string &env) {
|
||||
env_ = env;
|
||||
setBodyParameter(std::string("Env"), env);
|
||||
}
|
||||
|
||||
std::string DescribeClusterUsedUtilizationRequest::getOwnerID() const {
|
||||
return ownerID_;
|
||||
}
|
||||
|
||||
void DescribeClusterUsedUtilizationRequest::setOwnerID(const std::string &ownerID) {
|
||||
ownerID_ = ownerID;
|
||||
setBodyParameter(std::string("OwnerID"), ownerID);
|
||||
}
|
||||
|
||||
std::string DescribeClusterUsedUtilizationRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -115,3 +97,21 @@ void DescribeClusterUsedUtilizationRequest::setDtsJobId(const std::string &dtsJo
|
||||
setBodyParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterUsedUtilizationRequest::getEnv() const {
|
||||
return env_;
|
||||
}
|
||||
|
||||
void DescribeClusterUsedUtilizationRequest::setEnv(const std::string &env) {
|
||||
env_ = env;
|
||||
setBodyParameter(std::string("Env"), env);
|
||||
}
|
||||
|
||||
std::string DescribeClusterUsedUtilizationRequest::getOwnerID() const {
|
||||
return ownerID_;
|
||||
}
|
||||
|
||||
void DescribeClusterUsedUtilizationRequest::setOwnerID(const std::string &ownerID) {
|
||||
ownerID_ = ownerID;
|
||||
setBodyParameter(std::string("OwnerID"), ownerID);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ DescribeDataCheckReportUrlRequest::DescribeDataCheckReportUrlRequest()
|
||||
|
||||
DescribeDataCheckReportUrlRequest::~DescribeDataCheckReportUrlRequest() {}
|
||||
|
||||
std::string DescribeDataCheckReportUrlRequest::getJobStepId() const {
|
||||
return jobStepId_;
|
||||
int DescribeDataCheckReportUrlRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckReportUrlRequest::setJobStepId(const std::string &jobStepId) {
|
||||
jobStepId_ = jobStepId;
|
||||
setParameter(std::string("JobStepId"), jobStepId);
|
||||
void DescribeDataCheckReportUrlRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckReportUrlRequest::getTbName() const {
|
||||
@@ -52,3 +52,12 @@ void DescribeDataCheckReportUrlRequest::setDbName(const std::string &dbName) {
|
||||
setParameter(std::string("DbName"), dbName);
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckReportUrlRequest::getDtsJobId() const {
|
||||
return dtsJobId_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckReportUrlRequest::setDtsJobId(const std::string &dtsJobId) {
|
||||
dtsJobId_ = dtsJobId;
|
||||
setParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
|
||||
@@ -34,13 +34,13 @@ void DescribeDataCheckTableDetailsRequest::setPageNumber(int pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsRequest::getJobStepId() const {
|
||||
return jobStepId_;
|
||||
int DescribeDataCheckTableDetailsRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckTableDetailsRequest::setJobStepId(const std::string &jobStepId) {
|
||||
jobStepId_ = jobStepId;
|
||||
setParameter(std::string("JobStepId"), jobStepId);
|
||||
void DescribeDataCheckTableDetailsRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDetailsRequest::getPageSize() const {
|
||||
@@ -52,6 +52,15 @@ void DescribeDataCheckTableDetailsRequest::setPageSize(int pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsRequest::getDtsJobId() const {
|
||||
return dtsJobId_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckTableDetailsRequest::setDtsJobId(const std::string &dtsJobId) {
|
||||
dtsJobId_ = dtsJobId;
|
||||
setParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsRequest::getTableName() const {
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
@@ -63,6 +63,8 @@ void DescribeDataCheckTableDetailsResult::parse(const std::string &payload)
|
||||
tableDetailsObject.diffCount = std::stol(valueTableDetailsTableDetailsItem["DiffCount"].asString());
|
||||
if(!valueTableDetailsTableDetailsItem["BootTime"].isNull())
|
||||
tableDetailsObject.bootTime = valueTableDetailsTableDetailsItem["BootTime"].asString();
|
||||
if(!valueTableDetailsTableDetailsItem["ErrorCode"].isNull())
|
||||
tableDetailsObject.errorCode = std::stoi(valueTableDetailsTableDetailsItem["ErrorCode"].asString());
|
||||
tableDetails_.push_back(tableDetailsObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
@@ -81,24 +83,16 @@ void DescribeDataCheckTableDetailsResult::parse(const std::string &payload)
|
||||
dynamicCode_ = value["DynamicCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["RunningCount"].isNull())
|
||||
runningCount_ = std::stol(value["RunningCount"].asString());
|
||||
if(!value["WarningCount"].isNull())
|
||||
warningCount_ = std::stol(value["WarningCount"].asString());
|
||||
if(!value["FailedCount"].isNull())
|
||||
failedCount_ = std::stol(value["FailedCount"].asString());
|
||||
if(!value["InitCount"].isNull())
|
||||
initCount_ = std::stol(value["InitCount"].asString());
|
||||
if(!value["FinishedCount"].isNull())
|
||||
finishedCount_ = std::stol(value["FinishedCount"].asString());
|
||||
if(!value["DiffRowCount"].isNull())
|
||||
diffRowCount_ = std::stol(value["DiffRowCount"].asString());
|
||||
if(!value["DiffTableCount"].isNull())
|
||||
diffTableCount_ = std::stol(value["DiffTableCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getWarningCount()const
|
||||
long DescribeDataCheckTableDetailsResult::getDiffTableCount()const
|
||||
{
|
||||
return warningCount_;
|
||||
return diffTableCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataCheckTableDetailsResult::TableDetailsItem> DescribeDataCheckTableDetailsResult::getTableDetails()const
|
||||
@@ -106,9 +100,29 @@ std::vector<DescribeDataCheckTableDetailsResult::TableDetailsItem> DescribeDataC
|
||||
return tableDetails_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getRunningCount()const
|
||||
long DescribeDataCheckTableDetailsResult::getTotalCount()const
|
||||
{
|
||||
return runningCount_;
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getFinishedCount()const
|
||||
{
|
||||
return finishedCount_;
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDetailsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsResult::getDynamicMessage()const
|
||||
@@ -131,43 +145,3 @@ std::string DescribeDataCheckTableDetailsResult::getErrCode()const
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDetailsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getInitCount()const
|
||||
{
|
||||
return initCount_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getFinishedCount()const
|
||||
{
|
||||
return finishedCount_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getDiffRowCount()const
|
||||
{
|
||||
return diffRowCount_;
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDetailsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDetailsResult::getFailedCount()const
|
||||
{
|
||||
return failedCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDetailsResult::getDynamicCode()const
|
||||
{
|
||||
return dynamicCode_;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,15 +25,6 @@ DescribeDataCheckTableDiffDetailsRequest::DescribeDataCheckTableDiffDetailsReque
|
||||
|
||||
DescribeDataCheckTableDiffDetailsRequest::~DescribeDataCheckTableDiffDetailsRequest() {}
|
||||
|
||||
std::string DescribeDataCheckTableDiffDetailsRequest::getJobStepId() const {
|
||||
return jobStepId_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckTableDiffDetailsRequest::setJobStepId(const std::string &jobStepId) {
|
||||
jobStepId_ = jobStepId;
|
||||
setParameter(std::string("JobStepId"), jobStepId);
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDiffDetailsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
@@ -43,6 +34,15 @@ void DescribeDataCheckTableDiffDetailsRequest::setPageNumber(long pageNumber) {
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeDataCheckTableDiffDetailsRequest::getCheckType() const {
|
||||
return checkType_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckTableDiffDetailsRequest::setCheckType(int checkType) {
|
||||
checkType_ = checkType;
|
||||
setParameter(std::string("CheckType"), std::to_string(checkType));
|
||||
}
|
||||
|
||||
long DescribeDataCheckTableDiffDetailsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
@@ -52,6 +52,15 @@ void DescribeDataCheckTableDiffDetailsRequest::setPageSize(long pageSize) {
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDiffDetailsRequest::getDtsJobId() const {
|
||||
return dtsJobId_;
|
||||
}
|
||||
|
||||
void DescribeDataCheckTableDiffDetailsRequest::setDtsJobId(const std::string &dtsJobId) {
|
||||
dtsJobId_ = dtsJobId;
|
||||
setParameter(std::string("DtsJobId"), dtsJobId);
|
||||
}
|
||||
|
||||
std::string DescribeDataCheckTableDiffDetailsRequest::getTbName() const {
|
||||
return tbName_;
|
||||
}
|
||||
|
||||
@@ -1096,6 +1096,8 @@ void DescribeDtsJobDetailResult::parse(const std::string &payload)
|
||||
sourceEndpoint_.aliyunUid = sourceEndpointNode["AliyunUid"].asString();
|
||||
if(!sourceEndpointNode["UserName"].isNull())
|
||||
sourceEndpoint_.userName = sourceEndpointNode["UserName"].asString();
|
||||
if(!sourceEndpointNode["CanModifyPassword"].isNull())
|
||||
sourceEndpoint_.canModifyPassword = sourceEndpointNode["CanModifyPassword"].asString() == "true";
|
||||
auto destinationEndpointNode = value["DestinationEndpoint"];
|
||||
if(!destinationEndpointNode["SslSolutionEnum"].isNull())
|
||||
destinationEndpoint_.sslSolutionEnum = destinationEndpointNode["SslSolutionEnum"].asString();
|
||||
@@ -1117,6 +1119,8 @@ void DescribeDtsJobDetailResult::parse(const std::string &payload)
|
||||
destinationEndpoint_.userName = destinationEndpointNode["UserName"].asString();
|
||||
if(!destinationEndpointNode["EngineName"].isNull())
|
||||
destinationEndpoint_.engineName = destinationEndpointNode["EngineName"].asString();
|
||||
if(!destinationEndpointNode["CanModifyPassword"].isNull())
|
||||
destinationEndpoint_.canModifyPassword = destinationEndpointNode["CanModifyPassword"].asString() == "true";
|
||||
auto migrationModeNode = value["MigrationMode"];
|
||||
if(!migrationModeNode["DataExtractTransformLoad"].isNull())
|
||||
migrationMode_.dataExtractTransformLoad = migrationModeNode["DataExtractTransformLoad"].asString() == "true";
|
||||
@@ -1166,6 +1170,17 @@ void DescribeDtsJobDetailResult::parse(const std::string &payload)
|
||||
retryState_.jobId = retryStateNode["JobId"].asString();
|
||||
if(!retryStateNode["Retrying"].isNull())
|
||||
retryState_.retrying = retryStateNode["Retrying"].asString() == "true";
|
||||
auto dataDeliveryChannelInfoNode = value["DataDeliveryChannelInfo"];
|
||||
if(!dataDeliveryChannelInfoNode["PublicDproxyUrl"].isNull())
|
||||
dataDeliveryChannelInfo_.publicDproxyUrl = dataDeliveryChannelInfoNode["PublicDproxyUrl"].asString();
|
||||
if(!dataDeliveryChannelInfoNode["VpcDproxyUrl"].isNull())
|
||||
dataDeliveryChannelInfo_.vpcDproxyUrl = dataDeliveryChannelInfoNode["VpcDproxyUrl"].asString();
|
||||
if(!dataDeliveryChannelInfoNode["Topic"].isNull())
|
||||
dataDeliveryChannelInfo_.topic = dataDeliveryChannelInfoNode["Topic"].asString();
|
||||
if(!dataDeliveryChannelInfoNode["Region"].isNull())
|
||||
dataDeliveryChannelInfo_.region = dataDeliveryChannelInfoNode["Region"].asString();
|
||||
if(!dataDeliveryChannelInfoNode["PartitionNum"].isNull())
|
||||
dataDeliveryChannelInfo_.partitionNum = std::stoi(dataDeliveryChannelInfoNode["PartitionNum"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["DtsJobName"].isNull())
|
||||
@@ -1252,6 +1267,8 @@ void DescribeDtsJobDetailResult::parse(const std::string &payload)
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["ResourceGroupDisplayName"].isNull())
|
||||
resourceGroupDisplayName_ = value["ResourceGroupDisplayName"].asString();
|
||||
if(!value["DtsBisLabel"].isNull())
|
||||
dtsBisLabel_ = value["DtsBisLabel"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -1440,6 +1457,11 @@ std::string DescribeDtsJobDetailResult::getDestNetType()const
|
||||
return destNetType_;
|
||||
}
|
||||
|
||||
DescribeDtsJobDetailResult::DataDeliveryChannelInfo DescribeDtsJobDetailResult::getDataDeliveryChannelInfo()const
|
||||
{
|
||||
return dataDeliveryChannelInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeDtsJobDetailResult::getBinlog()const
|
||||
{
|
||||
return binlog_;
|
||||
@@ -1460,6 +1482,11 @@ std::string DescribeDtsJobDetailResult::getGroupId()const
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
std::string DescribeDtsJobDetailResult::getDtsBisLabel()const
|
||||
{
|
||||
return dtsBisLabel_;
|
||||
}
|
||||
|
||||
long DescribeDtsJobDetailResult::getCheckpoint()const
|
||||
{
|
||||
return checkpoint_;
|
||||
|
||||
@@ -25,6 +25,15 @@ DescribeDtsJobsRequest::DescribeDtsJobsRequest()
|
||||
|
||||
DescribeDtsJobsRequest::~DescribeDtsJobsRequest() {}
|
||||
|
||||
bool DescribeDtsJobsRequest::getWithoutDbList() const {
|
||||
return withoutDbList_;
|
||||
}
|
||||
|
||||
void DescribeDtsJobsRequest::setWithoutDbList(bool withoutDbList) {
|
||||
withoutDbList_ = withoutDbList;
|
||||
setParameter(std::string("WithoutDbList"), withoutDbList ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeDtsJobsRequest::getOrderDirection() const {
|
||||
return orderDirection_;
|
||||
}
|
||||
@@ -79,6 +88,15 @@ void DescribeDtsJobsRequest::setResourceGroupId(const std::string &resourceGroup
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeDtsJobsRequest::getDtsBisLabel() const {
|
||||
return dtsBisLabel_;
|
||||
}
|
||||
|
||||
void DescribeDtsJobsRequest::setDtsBisLabel(const std::string &dtsBisLabel) {
|
||||
dtsBisLabel_ = dtsBisLabel;
|
||||
setParameter(std::string("DtsBisLabel"), dtsBisLabel);
|
||||
}
|
||||
|
||||
std::string DescribeDtsJobsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
@@ -107,6 +107,12 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
dtsJobListObject.migrationErrCode = valueDtsJobListDtsJobStatus["MigrationErrCode"].asString();
|
||||
if(!valueDtsJobListDtsJobStatus["MigrationErrHelpDocKey"].isNull())
|
||||
dtsJobListObject.migrationErrHelpDocKey = valueDtsJobListDtsJobStatus["MigrationErrHelpDocKey"].asString();
|
||||
if(!valueDtsJobListDtsJobStatus["MigrationErrType"].isNull())
|
||||
dtsJobListObject.migrationErrType = valueDtsJobListDtsJobStatus["MigrationErrType"].asString();
|
||||
if(!valueDtsJobListDtsJobStatus["EtlSafeCheckpoint"].isNull())
|
||||
dtsJobListObject.etlSafeCheckpoint = valueDtsJobListDtsJobStatus["EtlSafeCheckpoint"].asString();
|
||||
if(!valueDtsJobListDtsJobStatus["DtsBisLabel"].isNull())
|
||||
dtsJobListObject.dtsBisLabel = valueDtsJobListDtsJobStatus["DtsBisLabel"].asString();
|
||||
auto allTagListNode = valueDtsJobListDtsJobStatus["TagList"]["DtsTag"];
|
||||
for (auto valueDtsJobListDtsJobStatusTagListDtsTag : allTagListNode)
|
||||
{
|
||||
@@ -184,6 +190,10 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
dtsJobListObject.migrationMode.dataSynchronization = migrationModeNode["DataSynchronization"].asString() == "true";
|
||||
if(!migrationModeNode["StructureInitialization"].isNull())
|
||||
dtsJobListObject.migrationMode.structureInitialization = migrationModeNode["StructureInitialization"].asString() == "true";
|
||||
if(!migrationModeNode["FullDataCheck"].isNull())
|
||||
dtsJobListObject.migrationMode.fullDataCheck = migrationModeNode["FullDataCheck"].asString() == "true";
|
||||
if(!migrationModeNode["IncDataCheck"].isNull())
|
||||
dtsJobListObject.migrationMode.incDataCheck = migrationModeNode["IncDataCheck"].asString() == "true";
|
||||
auto performanceNode = value["Performance"];
|
||||
if(!performanceNode["Rps"].isNull())
|
||||
dtsJobListObject.performance.rps = performanceNode["Rps"].asString();
|
||||
@@ -249,6 +259,8 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
dtsJobListObject.reverseJob.memUsage = reverseJobNode["MemUsage"].asString();
|
||||
if(!reverseJobNode["DedicatedClusterId"].isNull())
|
||||
dtsJobListObject.reverseJob.dedicatedClusterId = reverseJobNode["DedicatedClusterId"].asString();
|
||||
if(!reverseJobNode["EtlSafeCheckpoint"].isNull())
|
||||
dtsJobListObject.reverseJob.etlSafeCheckpoint = reverseJobNode["EtlSafeCheckpoint"].asString();
|
||||
auto allErrorDetails9Node = reverseJobNode["ErrorDetails"]["ErrorDetail"];
|
||||
for (auto reverseJobNodeErrorDetailsErrorDetail : allErrorDetails9Node)
|
||||
{
|
||||
@@ -418,6 +430,8 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
dtsJobListObject.retryState.migrationErrHelpDocKey = retryStateNode["MigrationErrHelpDocKey"].asString();
|
||||
if(!retryStateNode["MigrationErrCode"].isNull())
|
||||
dtsJobListObject.retryState.migrationErrCode = retryStateNode["MigrationErrCode"].asString();
|
||||
if(!retryStateNode["MigrationErrType"].isNull())
|
||||
dtsJobListObject.retryState.migrationErrType = retryStateNode["MigrationErrType"].asString();
|
||||
if(!retryStateNode["MigrationErrMsg"].isNull())
|
||||
dtsJobListObject.retryState.migrationErrMsg = retryStateNode["MigrationErrMsg"].asString();
|
||||
if(!retryStateNode["MigrationErrWorkaround"].isNull())
|
||||
@@ -433,6 +447,24 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
dtsJobListObject.dataCloudStatus.progress = dataCloudStatusNode["Progress"].asString();
|
||||
if(!dataCloudStatusNode["ErrorMessage"].isNull())
|
||||
dtsJobListObject.dataCloudStatus.errorMessage = dataCloudStatusNode["ErrorMessage"].asString();
|
||||
auto fullDataCheckStatusNode = value["FullDataCheckStatus"];
|
||||
if(!fullDataCheckStatusNode["Status"].isNull())
|
||||
dtsJobListObject.fullDataCheckStatus.status = fullDataCheckStatusNode["Status"].asString();
|
||||
if(!fullDataCheckStatusNode["Percent"].isNull())
|
||||
dtsJobListObject.fullDataCheckStatus.percent = fullDataCheckStatusNode["Percent"].asString();
|
||||
if(!fullDataCheckStatusNode["ErrorMessage"].isNull())
|
||||
dtsJobListObject.fullDataCheckStatus.errorMessage = fullDataCheckStatusNode["ErrorMessage"].asString();
|
||||
if(!fullDataCheckStatusNode["Progress"].isNull())
|
||||
dtsJobListObject.fullDataCheckStatus.progress = fullDataCheckStatusNode["Progress"].asString();
|
||||
auto incDataCheckStatusNode = value["IncDataCheckStatus"];
|
||||
if(!incDataCheckStatusNode["Status"].isNull())
|
||||
dtsJobListObject.incDataCheckStatus.status = incDataCheckStatusNode["Status"].asString();
|
||||
if(!incDataCheckStatusNode["Percent"].isNull())
|
||||
dtsJobListObject.incDataCheckStatus.percent = incDataCheckStatusNode["Percent"].asString();
|
||||
if(!incDataCheckStatusNode["ErrorMessage"].isNull())
|
||||
dtsJobListObject.incDataCheckStatus.errorMessage = incDataCheckStatusNode["ErrorMessage"].asString();
|
||||
if(!incDataCheckStatusNode["Progress"].isNull())
|
||||
dtsJobListObject.incDataCheckStatus.progress = incDataCheckStatusNode["Progress"].asString();
|
||||
dtsJobList_.push_back(dtsJobListObject);
|
||||
}
|
||||
auto allEtlDemoListNode = value["EtlDemoList"]["DtsJobStatus"];
|
||||
@@ -485,6 +517,8 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
etlDemoListObject.resourceGroupId = valueEtlDemoListDtsJobStatus["ResourceGroupId"].asString();
|
||||
if(!valueEtlDemoListDtsJobStatus["ResourceGroupDisplayName"].isNull())
|
||||
etlDemoListObject.resourceGroupDisplayName = valueEtlDemoListDtsJobStatus["ResourceGroupDisplayName"].asString();
|
||||
if(!valueEtlDemoListDtsJobStatus["EtlSafeCheckpoint"].isNull())
|
||||
etlDemoListObject.etlSafeCheckpoint = valueEtlDemoListDtsJobStatus["EtlSafeCheckpoint"].asString();
|
||||
auto allTagList25Node = valueEtlDemoListDtsJobStatus["TagList"]["DtsTag"];
|
||||
for (auto valueEtlDemoListDtsJobStatusTagListDtsTag : allTagList25Node)
|
||||
{
|
||||
@@ -609,6 +643,8 @@ void DescribeDtsJobsResult::parse(const std::string &payload)
|
||||
etlDemoListObject.reverseJob21.dtsJobDirection = reverseJob21Node["DtsJobDirection"].asString();
|
||||
if(!reverseJob21Node["Checkpoint"].isNull())
|
||||
etlDemoListObject.reverseJob21.checkpoint = reverseJob21Node["Checkpoint"].asString();
|
||||
if(!reverseJob21Node["EtlSafeCheckpoint"].isNull())
|
||||
etlDemoListObject.reverseJob21.etlSafeCheckpoint = reverseJob21Node["EtlSafeCheckpoint"].asString();
|
||||
auto dataInitializationStatus26Node = reverseJob21Node["DataInitializationStatus"];
|
||||
if(!dataInitializationStatus26Node["Status"].isNull())
|
||||
etlDemoListObject.reverseJob21.dataInitializationStatus26.status = dataInitializationStatus26Node["Status"].asString();
|
||||
|
||||
@@ -107,6 +107,74 @@ void DescribePreCheckStatusResult::parse(const std::string &payload)
|
||||
}
|
||||
jobProgress_.push_back(jobProgressObject);
|
||||
}
|
||||
auto allAnalysisJobProgressNode = value["AnalysisJobProgress"]["AnalysisProgressInfo"];
|
||||
for (auto valueAnalysisJobProgressAnalysisProgressInfo : allAnalysisJobProgressNode)
|
||||
{
|
||||
AnalysisProgressInfo analysisJobProgressObject;
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Skip"].isNull())
|
||||
analysisJobProgressObject.skip = valueAnalysisJobProgressAnalysisProgressInfo["Skip"].asString() == "true";
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["FinishTime"].isNull())
|
||||
analysisJobProgressObject.finishTime = valueAnalysisJobProgressAnalysisProgressInfo["FinishTime"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["IgnoreFlag"].isNull())
|
||||
analysisJobProgressObject.ignoreFlag = valueAnalysisJobProgressAnalysisProgressInfo["IgnoreFlag"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["DelaySeconds"].isNull())
|
||||
analysisJobProgressObject.delaySeconds = std::stoi(valueAnalysisJobProgressAnalysisProgressInfo["DelaySeconds"].asString());
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["DdlSql"].isNull())
|
||||
analysisJobProgressObject.ddlSql = valueAnalysisJobProgressAnalysisProgressInfo["DdlSql"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["State"].isNull())
|
||||
analysisJobProgressObject.state = valueAnalysisJobProgressAnalysisProgressInfo["State"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["BootTime"].isNull())
|
||||
analysisJobProgressObject.bootTime = valueAnalysisJobProgressAnalysisProgressInfo["BootTime"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Item"].isNull())
|
||||
analysisJobProgressObject.item = valueAnalysisJobProgressAnalysisProgressInfo["Item"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Sub"].isNull())
|
||||
analysisJobProgressObject.sub = valueAnalysisJobProgressAnalysisProgressInfo["Sub"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Total"].isNull())
|
||||
analysisJobProgressObject.total = std::stoi(valueAnalysisJobProgressAnalysisProgressInfo["Total"].asString());
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["TargetNames"].isNull())
|
||||
analysisJobProgressObject.targetNames = valueAnalysisJobProgressAnalysisProgressInfo["TargetNames"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["CanSkip"].isNull())
|
||||
analysisJobProgressObject.canSkip = valueAnalysisJobProgressAnalysisProgressInfo["CanSkip"].asString() == "true";
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Names"].isNull())
|
||||
analysisJobProgressObject.names = valueAnalysisJobProgressAnalysisProgressInfo["Names"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["ErrDetail"].isNull())
|
||||
analysisJobProgressObject.errDetail = valueAnalysisJobProgressAnalysisProgressInfo["ErrDetail"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["DiffRow"].isNull())
|
||||
analysisJobProgressObject.diffRow = std::stol(valueAnalysisJobProgressAnalysisProgressInfo["DiffRow"].asString());
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["JobId"].isNull())
|
||||
analysisJobProgressObject.jobId = valueAnalysisJobProgressAnalysisProgressInfo["JobId"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["SourceSchema"].isNull())
|
||||
analysisJobProgressObject.sourceSchema = valueAnalysisJobProgressAnalysisProgressInfo["SourceSchema"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["DestSchema"].isNull())
|
||||
analysisJobProgressObject.destSchema = valueAnalysisJobProgressAnalysisProgressInfo["DestSchema"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["ParentObj"].isNull())
|
||||
analysisJobProgressObject.parentObj = valueAnalysisJobProgressAnalysisProgressInfo["ParentObj"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["ErrMsg"].isNull())
|
||||
analysisJobProgressObject.errMsg = valueAnalysisJobProgressAnalysisProgressInfo["ErrMsg"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["OrderNum"].isNull())
|
||||
analysisJobProgressObject.orderNum = std::stoi(valueAnalysisJobProgressAnalysisProgressInfo["OrderNum"].asString());
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["RepairMethod"].isNull())
|
||||
analysisJobProgressObject.repairMethod = valueAnalysisJobProgressAnalysisProgressInfo["RepairMethod"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Id"].isNull())
|
||||
analysisJobProgressObject.id = valueAnalysisJobProgressAnalysisProgressInfo["Id"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfo["Current"].isNull())
|
||||
analysisJobProgressObject.current = valueAnalysisJobProgressAnalysisProgressInfo["Current"].asString();
|
||||
auto allLogs1Node = valueAnalysisJobProgressAnalysisProgressInfo["Logs"]["JobLog"];
|
||||
for (auto valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog : allLogs1Node)
|
||||
{
|
||||
AnalysisProgressInfo::JobLog2 logs1Object;
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrData"].isNull())
|
||||
logs1Object.errData = valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrData"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrMsg"].isNull())
|
||||
logs1Object.errMsg = valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrMsg"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["LogLevel"].isNull())
|
||||
logs1Object.logLevel = valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["LogLevel"].asString();
|
||||
if(!valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrType"].isNull())
|
||||
logs1Object.errType = valueAnalysisJobProgressAnalysisProgressInfoLogsJobLog["ErrType"].asString();
|
||||
analysisJobProgressObject.logs1.push_back(logs1Object);
|
||||
}
|
||||
analysisJobProgress_.push_back(analysisJobProgressObject);
|
||||
}
|
||||
auto allSubDistributedJobStatusNode = value["SubDistributedJobStatus"]["SubDistributedJobStatusItem"];
|
||||
for (auto valueSubDistributedJobStatusSubDistributedJobStatusItem : allSubDistributedJobStatusNode)
|
||||
{
|
||||
@@ -123,76 +191,176 @@ void DescribePreCheckStatusResult::parse(const std::string &payload)
|
||||
subDistributedJobStatusObject.code = valueSubDistributedJobStatusSubDistributedJobStatusItem["Code"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItem["Total"].isNull())
|
||||
subDistributedJobStatusObject.total = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItem["Total"].asString());
|
||||
auto allJobProgress1Node = valueSubDistributedJobStatusSubDistributedJobStatusItem["JobProgress"]["ProgressInfo"];
|
||||
for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo : allJobProgress1Node)
|
||||
auto allJobProgress3Node = valueSubDistributedJobStatusSubDistributedJobStatusItem["JobProgress"]["ProgressInfo"];
|
||||
for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo : allJobProgress3Node)
|
||||
{
|
||||
SubDistributedJobStatusItem::ProgressInfo2 jobProgress1Object;
|
||||
SubDistributedJobStatusItem::ProgressInfo4 jobProgress3Object;
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Skip"].isNull())
|
||||
jobProgress1Object.skip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Skip"].asString() == "true";
|
||||
jobProgress3Object.skip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Skip"].asString() == "true";
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["FinishTime"].isNull())
|
||||
jobProgress1Object.finishTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["FinishTime"].asString();
|
||||
jobProgress3Object.finishTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["FinishTime"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["IgnoreFlag"].isNull())
|
||||
jobProgress1Object.ignoreFlag = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["IgnoreFlag"].asString();
|
||||
jobProgress3Object.ignoreFlag = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["IgnoreFlag"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DelaySeconds"].isNull())
|
||||
jobProgress1Object.delaySeconds = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DelaySeconds"].asString());
|
||||
jobProgress3Object.delaySeconds = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DelaySeconds"].asString());
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DdlSql"].isNull())
|
||||
jobProgress1Object.ddlSql = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DdlSql"].asString();
|
||||
jobProgress3Object.ddlSql = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DdlSql"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["State"].isNull())
|
||||
jobProgress1Object.state = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["State"].asString();
|
||||
jobProgress3Object.state = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["State"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["BootTime"].isNull())
|
||||
jobProgress1Object.bootTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["BootTime"].asString();
|
||||
jobProgress3Object.bootTime = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["BootTime"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Item"].isNull())
|
||||
jobProgress1Object.item = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Item"].asString();
|
||||
jobProgress3Object.item = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Item"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Sub"].isNull())
|
||||
jobProgress1Object.sub = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Sub"].asString();
|
||||
jobProgress3Object.sub = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Sub"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Total"].isNull())
|
||||
jobProgress1Object.total = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Total"].asString());
|
||||
jobProgress3Object.total = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Total"].asString());
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["TargetNames"].isNull())
|
||||
jobProgress1Object.targetNames = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["TargetNames"].asString();
|
||||
jobProgress3Object.targetNames = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["TargetNames"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["CanSkip"].isNull())
|
||||
jobProgress1Object.canSkip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["CanSkip"].asString() == "true";
|
||||
jobProgress3Object.canSkip = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["CanSkip"].asString() == "true";
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Names"].isNull())
|
||||
jobProgress1Object.names = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Names"].asString();
|
||||
jobProgress3Object.names = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Names"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrDetail"].isNull())
|
||||
jobProgress1Object.errDetail = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrDetail"].asString();
|
||||
jobProgress3Object.errDetail = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrDetail"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DiffRow"].isNull())
|
||||
jobProgress1Object.diffRow = std::stol(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DiffRow"].asString());
|
||||
jobProgress3Object.diffRow = std::stol(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DiffRow"].asString());
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["JobId"].isNull())
|
||||
jobProgress1Object.jobId = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["JobId"].asString();
|
||||
jobProgress3Object.jobId = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["JobId"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["SourceSchema"].isNull())
|
||||
jobProgress1Object.sourceSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["SourceSchema"].asString();
|
||||
jobProgress3Object.sourceSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["SourceSchema"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DestSchema"].isNull())
|
||||
jobProgress1Object.destSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DestSchema"].asString();
|
||||
jobProgress3Object.destSchema = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["DestSchema"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ParentObj"].isNull())
|
||||
jobProgress1Object.parentObj = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ParentObj"].asString();
|
||||
jobProgress3Object.parentObj = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ParentObj"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrMsg"].isNull())
|
||||
jobProgress1Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrMsg"].asString();
|
||||
jobProgress3Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["ErrMsg"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["OrderNum"].isNull())
|
||||
jobProgress1Object.orderNum = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["OrderNum"].asString());
|
||||
jobProgress3Object.orderNum = std::stoi(valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["OrderNum"].asString());
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["RepairMethod"].isNull())
|
||||
jobProgress1Object.repairMethod = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["RepairMethod"].asString();
|
||||
jobProgress3Object.repairMethod = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["RepairMethod"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Id"].isNull())
|
||||
jobProgress1Object.id = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Id"].asString();
|
||||
jobProgress3Object.id = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Id"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Current"].isNull())
|
||||
jobProgress1Object.current = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Current"].asString();
|
||||
auto allLogs3Node = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Logs"]["JobLog"];
|
||||
for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog : allLogs3Node)
|
||||
jobProgress3Object.current = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Current"].asString();
|
||||
auto allLogs5Node = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfo["Logs"]["JobLog"];
|
||||
for (auto valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog : allLogs5Node)
|
||||
{
|
||||
SubDistributedJobStatusItem::ProgressInfo2::JobLog4 logs3Object;
|
||||
SubDistributedJobStatusItem::ProgressInfo4::JobLog6 logs5Object;
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].isNull())
|
||||
logs3Object.errData = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].asString();
|
||||
logs5Object.errData = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].isNull())
|
||||
logs3Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].asString();
|
||||
logs5Object.errMsg = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].isNull())
|
||||
logs3Object.logLevel = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].asString();
|
||||
logs5Object.logLevel = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].asString();
|
||||
if(!valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].isNull())
|
||||
logs3Object.errType = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].asString();
|
||||
jobProgress1Object.logs3.push_back(logs3Object);
|
||||
logs5Object.errType = valueSubDistributedJobStatusSubDistributedJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].asString();
|
||||
jobProgress3Object.logs5.push_back(logs5Object);
|
||||
}
|
||||
subDistributedJobStatusObject.jobProgress1.push_back(jobProgress1Object);
|
||||
subDistributedJobStatusObject.jobProgress3.push_back(jobProgress3Object);
|
||||
}
|
||||
subDistributedJobStatus_.push_back(subDistributedJobStatusObject);
|
||||
}
|
||||
auto allFullNetCheckJobStatusNode = value["FullNetCheckJobStatus"]["FullNetCheckJobStatusItem"];
|
||||
for (auto valueFullNetCheckJobStatusFullNetCheckJobStatusItem : allFullNetCheckJobStatusNode)
|
||||
{
|
||||
FullNetCheckJobStatusItem fullNetCheckJobStatusObject;
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["JobName"].isNull())
|
||||
fullNetCheckJobStatusObject.jobName = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["JobName"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["State"].isNull())
|
||||
fullNetCheckJobStatusObject.state = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["State"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["JobId"].isNull())
|
||||
fullNetCheckJobStatusObject.jobId = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["JobId"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["ErrorItem"].isNull())
|
||||
fullNetCheckJobStatusObject.errorItem = std::stoi(valueFullNetCheckJobStatusFullNetCheckJobStatusItem["ErrorItem"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["Code"].isNull())
|
||||
fullNetCheckJobStatusObject.code = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["Code"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["Total"].isNull())
|
||||
fullNetCheckJobStatusObject.total = std::stoi(valueFullNetCheckJobStatusFullNetCheckJobStatusItem["Total"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["HostRegion"].isNull())
|
||||
fullNetCheckJobStatusObject.hostRegion = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["HostRegion"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SrcRegion"].isNull())
|
||||
fullNetCheckJobStatusObject.srcRegion = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SrcRegion"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestRegion"].isNull())
|
||||
fullNetCheckJobStatusObject.destRegion = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestRegion"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SrcRegionCidr"].isNull())
|
||||
fullNetCheckJobStatusObject.srcRegionCidr = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SrcRegionCidr"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestRegionCidr"].isNull())
|
||||
fullNetCheckJobStatusObject.destRegionCidr = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestRegionCidr"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SourceEndpointType"].isNull())
|
||||
fullNetCheckJobStatusObject.sourceEndpointType = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["SourceEndpointType"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestinationEndpointType"].isNull())
|
||||
fullNetCheckJobStatusObject.destinationEndpointType = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["DestinationEndpointType"].asString();
|
||||
auto allJobProgress7Node = valueFullNetCheckJobStatusFullNetCheckJobStatusItem["JobProgress"]["ProgressInfo"];
|
||||
for (auto valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo : allJobProgress7Node)
|
||||
{
|
||||
FullNetCheckJobStatusItem::ProgressInfo8 jobProgress7Object;
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Skip"].isNull())
|
||||
jobProgress7Object.skip = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Skip"].asString() == "true";
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["FinishTime"].isNull())
|
||||
jobProgress7Object.finishTime = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["FinishTime"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["IgnoreFlag"].isNull())
|
||||
jobProgress7Object.ignoreFlag = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["IgnoreFlag"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DelaySeconds"].isNull())
|
||||
jobProgress7Object.delaySeconds = std::stoi(valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DelaySeconds"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DdlSql"].isNull())
|
||||
jobProgress7Object.ddlSql = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DdlSql"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["State"].isNull())
|
||||
jobProgress7Object.state = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["State"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["BootTime"].isNull())
|
||||
jobProgress7Object.bootTime = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["BootTime"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Item"].isNull())
|
||||
jobProgress7Object.item = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Item"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Sub"].isNull())
|
||||
jobProgress7Object.sub = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Sub"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Total"].isNull())
|
||||
jobProgress7Object.total = std::stoi(valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Total"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["TargetNames"].isNull())
|
||||
jobProgress7Object.targetNames = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["TargetNames"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["CanSkip"].isNull())
|
||||
jobProgress7Object.canSkip = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["CanSkip"].asString() == "true";
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Names"].isNull())
|
||||
jobProgress7Object.names = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Names"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ErrDetail"].isNull())
|
||||
jobProgress7Object.errDetail = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ErrDetail"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DiffRow"].isNull())
|
||||
jobProgress7Object.diffRow = std::stol(valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DiffRow"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["JobId"].isNull())
|
||||
jobProgress7Object.jobId = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["JobId"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["SourceSchema"].isNull())
|
||||
jobProgress7Object.sourceSchema = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["SourceSchema"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DestSchema"].isNull())
|
||||
jobProgress7Object.destSchema = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["DestSchema"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ParentObj"].isNull())
|
||||
jobProgress7Object.parentObj = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ParentObj"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ErrMsg"].isNull())
|
||||
jobProgress7Object.errMsg = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["ErrMsg"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["OrderNum"].isNull())
|
||||
jobProgress7Object.orderNum = std::stoi(valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["OrderNum"].asString());
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["RepairMethod"].isNull())
|
||||
jobProgress7Object.repairMethod = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["RepairMethod"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Id"].isNull())
|
||||
jobProgress7Object.id = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Id"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Current"].isNull())
|
||||
jobProgress7Object.current = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Current"].asString();
|
||||
auto allLogs9Node = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfo["Logs"]["JobLog"];
|
||||
for (auto valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog : allLogs9Node)
|
||||
{
|
||||
FullNetCheckJobStatusItem::ProgressInfo8::JobLog10 logs9Object;
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].isNull())
|
||||
logs9Object.errData = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrData"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].isNull())
|
||||
logs9Object.errMsg = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrMsg"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].isNull())
|
||||
logs9Object.logLevel = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["LogLevel"].asString();
|
||||
if(!valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].isNull())
|
||||
logs9Object.errType = valueFullNetCheckJobStatusFullNetCheckJobStatusItemJobProgressProgressInfoLogsJobLog["ErrType"].asString();
|
||||
jobProgress7Object.logs9.push_back(logs9Object);
|
||||
}
|
||||
fullNetCheckJobStatusObject.jobProgress7.push_back(jobProgress7Object);
|
||||
}
|
||||
fullNetCheckJobStatus_.push_back(fullNetCheckJobStatusObject);
|
||||
}
|
||||
if(!value["State"].isNull())
|
||||
state_ = value["State"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
@@ -209,6 +377,8 @@ void DescribePreCheckStatusResult::parse(const std::string &payload)
|
||||
jobId_ = value["JobId"].asString();
|
||||
if(!value["ErrorItem"].isNull())
|
||||
errorItem_ = std::stoi(value["ErrorItem"].asString());
|
||||
if(!value["ErrorAnalysisItem"].isNull())
|
||||
errorAnalysisItem_ = std::stoi(value["ErrorAnalysisItem"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stol(value["TotalRecordCount"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
@@ -223,11 +393,21 @@ long DescribePreCheckStatusResult::getTotalRecordCount()const
|
||||
return totalRecordCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribePreCheckStatusResult::AnalysisProgressInfo> DescribePreCheckStatusResult::getAnalysisJobProgress()const
|
||||
{
|
||||
return analysisJobProgress_;
|
||||
}
|
||||
|
||||
long DescribePreCheckStatusResult::getPageRecordCount()const
|
||||
{
|
||||
return pageRecordCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribePreCheckStatusResult::FullNetCheckJobStatusItem> DescribePreCheckStatusResult::getFullNetCheckJobStatus()const
|
||||
{
|
||||
return fullNetCheckJobStatus_;
|
||||
}
|
||||
|
||||
std::string DescribePreCheckStatusResult::getJobName()const
|
||||
{
|
||||
return jobName_;
|
||||
@@ -253,6 +433,11 @@ bool DescribePreCheckStatusResult::getSuccess()const
|
||||
return success_;
|
||||
}
|
||||
|
||||
int DescribePreCheckStatusResult::getErrorAnalysisItem()const
|
||||
{
|
||||
return errorAnalysisItem_;
|
||||
}
|
||||
|
||||
long DescribePreCheckStatusResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
|
||||
@@ -25,15 +25,6 @@ DescribeSubscriptionMetaRequest::DescribeSubscriptionMetaRequest()
|
||||
|
||||
DescribeSubscriptionMetaRequest::~DescribeSubscriptionMetaRequest() {}
|
||||
|
||||
std::string DescribeSubscriptionMetaRequest::getTopics() const {
|
||||
return topics_;
|
||||
}
|
||||
|
||||
void DescribeSubscriptionMetaRequest::setTopics(const std::string &topics) {
|
||||
topics_ = topics;
|
||||
setParameter(std::string("Topics"), topics);
|
||||
}
|
||||
|
||||
std::string DescribeSubscriptionMetaRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
@@ -61,6 +52,15 @@ void DescribeSubscriptionMetaRequest::setSubMigrationJobIds(const std::string &s
|
||||
setParameter(std::string("SubMigrationJobIds"), subMigrationJobIds);
|
||||
}
|
||||
|
||||
std::string DescribeSubscriptionMetaRequest::getTopics() const {
|
||||
return topics_;
|
||||
}
|
||||
|
||||
void DescribeSubscriptionMetaRequest::setTopics(const std::string &topics) {
|
||||
topics_ = topics;
|
||||
setParameter(std::string("Topics"), topics);
|
||||
}
|
||||
|
||||
std::string DescribeSubscriptionMetaRequest::getDtsInstanceId() const {
|
||||
return dtsInstanceId_;
|
||||
}
|
||||
|
||||
@@ -34,15 +34,6 @@ void DescribeSynchronizationJobStatusRequest::setClientToken(const std::string &
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeSynchronizationJobStatusRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSynchronizationJobStatusRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeSynchronizationJobStatusRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -79,6 +70,15 @@ void DescribeSynchronizationJobStatusRequest::setRegionId(const std::string ®
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSynchronizationJobStatusRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSynchronizationJobStatusRequest::setOwnerId(const std::string &ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), ownerId);
|
||||
}
|
||||
|
||||
std::string DescribeSynchronizationJobStatusRequest::getSynchronizationDirection() const {
|
||||
return synchronizationDirection_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ ModifyDtsJobRequest::ModifyDtsJobRequest()
|
||||
|
||||
ModifyDtsJobRequest::~ModifyDtsJobRequest() {}
|
||||
|
||||
bool ModifyDtsJobRequest::getDataInitialization() const {
|
||||
return dataInitialization_;
|
||||
}
|
||||
|
||||
void ModifyDtsJobRequest::setDataInitialization(bool dataInitialization) {
|
||||
dataInitialization_ = dataInitialization;
|
||||
setParameter(std::string("DataInitialization"), dataInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDtsJobRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
@@ -34,6 +43,15 @@ void ModifyDtsJobRequest::setClientToken(const std::string &clientToken) {
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
bool ModifyDtsJobRequest::getStructureInitialization() const {
|
||||
return structureInitialization_;
|
||||
}
|
||||
|
||||
void ModifyDtsJobRequest::setStructureInitialization(bool structureInitialization) {
|
||||
structureInitialization_ = structureInitialization;
|
||||
setParameter(std::string("StructureInitialization"), structureInitialization ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDtsJobRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
@@ -61,6 +79,15 @@ void ModifyDtsJobRequest::setEtlOperatorColumnReference(const std::string &etlOp
|
||||
setBodyParameter(std::string("EtlOperatorColumnReference"), etlOperatorColumnReference);
|
||||
}
|
||||
|
||||
bool ModifyDtsJobRequest::getDataSynchronization() const {
|
||||
return dataSynchronization_;
|
||||
}
|
||||
|
||||
void ModifyDtsJobRequest::setDataSynchronization(bool dataSynchronization) {
|
||||
dataSynchronization_ = dataSynchronization;
|
||||
setParameter(std::string("DataSynchronization"), dataSynchronization ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDtsJobRequest::getDbList() const {
|
||||
return dbList_;
|
||||
}
|
||||
|
||||
54
dts/src/model/ReverseTwoWayDirectionRequest.cc
Normal file
54
dts/src/model/ReverseTwoWayDirectionRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dts/model/ReverseTwoWayDirectionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dts::Model::ReverseTwoWayDirectionRequest;
|
||||
|
||||
ReverseTwoWayDirectionRequest::ReverseTwoWayDirectionRequest()
|
||||
: RpcServiceRequest("dts", "2020-01-01", "ReverseTwoWayDirection") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReverseTwoWayDirectionRequest::~ReverseTwoWayDirectionRequest() {}
|
||||
|
||||
std::string ReverseTwoWayDirectionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReverseTwoWayDirectionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
bool ReverseTwoWayDirectionRequest::getIgnoreErrorSubJob() const {
|
||||
return ignoreErrorSubJob_;
|
||||
}
|
||||
|
||||
void ReverseTwoWayDirectionRequest::setIgnoreErrorSubJob(bool ignoreErrorSubJob) {
|
||||
ignoreErrorSubJob_ = ignoreErrorSubJob;
|
||||
setParameter(std::string("IgnoreErrorSubJob"), ignoreErrorSubJob ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ReverseTwoWayDirectionRequest::getDtsInstanceId() const {
|
||||
return dtsInstanceId_;
|
||||
}
|
||||
|
||||
void ReverseTwoWayDirectionRequest::setDtsInstanceId(const std::string &dtsInstanceId) {
|
||||
dtsInstanceId_ = dtsInstanceId;
|
||||
setParameter(std::string("DtsInstanceId"), dtsInstanceId);
|
||||
}
|
||||
|
||||
86
dts/src/model/ReverseTwoWayDirectionResult.cc
Normal file
86
dts/src/model/ReverseTwoWayDirectionResult.cc
Normal 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/ReverseTwoWayDirectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dts;
|
||||
using namespace AlibabaCloud::Dts::Model;
|
||||
|
||||
ReverseTwoWayDirectionResult::ReverseTwoWayDirectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReverseTwoWayDirectionResult::ReverseTwoWayDirectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReverseTwoWayDirectionResult::~ReverseTwoWayDirectionResult()
|
||||
{}
|
||||
|
||||
void ReverseTwoWayDirectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ReverseTwoWayDirectionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ReverseTwoWayDirectionResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
std::string ReverseTwoWayDirectionResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
std::string ReverseTwoWayDirectionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ReverseTwoWayDirectionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ReverseTwoWayDirectionResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/CreateOnlineDatabaseTaskResult.h
|
||||
include/alibabacloud/rds/model/CreateParameterGroupRequest.h
|
||||
include/alibabacloud/rds/model/CreateParameterGroupResult.h
|
||||
include/alibabacloud/rds/model/CreatePostgresExtensionsRequest.h
|
||||
include/alibabacloud/rds/model/CreatePostgresExtensionsResult.h
|
||||
include/alibabacloud/rds/model/CreateReadOnlyDBInstanceRequest.h
|
||||
include/alibabacloud/rds/model/CreateReadOnlyDBInstanceResult.h
|
||||
include/alibabacloud/rds/model/CreateSecretRequest.h
|
||||
@@ -123,6 +125,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DeleteGadInstanceResult.h
|
||||
include/alibabacloud/rds/model/DeleteParameterGroupRequest.h
|
||||
include/alibabacloud/rds/model/DeleteParameterGroupResult.h
|
||||
include/alibabacloud/rds/model/DeletePostgresExtensionsRequest.h
|
||||
include/alibabacloud/rds/model/DeletePostgresExtensionsResult.h
|
||||
include/alibabacloud/rds/model/DeleteSecretRequest.h
|
||||
include/alibabacloud/rds/model/DeleteSecretResult.h
|
||||
include/alibabacloud/rds/model/DeleteSlotRequest.h
|
||||
@@ -289,6 +293,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeParameterTemplatesResult.h
|
||||
include/alibabacloud/rds/model/DescribeParametersRequest.h
|
||||
include/alibabacloud/rds/model/DescribeParametersResult.h
|
||||
include/alibabacloud/rds/model/DescribePostgresExtensionsRequest.h
|
||||
include/alibabacloud/rds/model/DescribePostgresExtensionsResult.h
|
||||
include/alibabacloud/rds/model/DescribePriceRequest.h
|
||||
include/alibabacloud/rds/model/DescribePriceResult.h
|
||||
include/alibabacloud/rds/model/DescribeRdsResourceSettingsRequest.h
|
||||
@@ -519,6 +525,8 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/UnlockAccountResult.h
|
||||
include/alibabacloud/rds/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/rds/model/UntagResourcesResult.h
|
||||
include/alibabacloud/rds/model/UpdatePostgresExtensionsRequest.h
|
||||
include/alibabacloud/rds/model/UpdatePostgresExtensionsResult.h
|
||||
include/alibabacloud/rds/model/UpdateUserBackupFileRequest.h
|
||||
include/alibabacloud/rds/model/UpdateUserBackupFileResult.h
|
||||
include/alibabacloud/rds/model/UpgradeDBInstanceEngineVersionRequest.h
|
||||
@@ -604,6 +612,8 @@ set(rds_src
|
||||
src/model/CreateOnlineDatabaseTaskResult.cc
|
||||
src/model/CreateParameterGroupRequest.cc
|
||||
src/model/CreateParameterGroupResult.cc
|
||||
src/model/CreatePostgresExtensionsRequest.cc
|
||||
src/model/CreatePostgresExtensionsResult.cc
|
||||
src/model/CreateReadOnlyDBInstanceRequest.cc
|
||||
src/model/CreateReadOnlyDBInstanceResult.cc
|
||||
src/model/CreateSecretRequest.cc
|
||||
@@ -636,6 +646,8 @@ set(rds_src
|
||||
src/model/DeleteGadInstanceResult.cc
|
||||
src/model/DeleteParameterGroupRequest.cc
|
||||
src/model/DeleteParameterGroupResult.cc
|
||||
src/model/DeletePostgresExtensionsRequest.cc
|
||||
src/model/DeletePostgresExtensionsResult.cc
|
||||
src/model/DeleteSecretRequest.cc
|
||||
src/model/DeleteSecretResult.cc
|
||||
src/model/DeleteSlotRequest.cc
|
||||
@@ -802,6 +814,8 @@ set(rds_src
|
||||
src/model/DescribeParameterTemplatesResult.cc
|
||||
src/model/DescribeParametersRequest.cc
|
||||
src/model/DescribeParametersResult.cc
|
||||
src/model/DescribePostgresExtensionsRequest.cc
|
||||
src/model/DescribePostgresExtensionsResult.cc
|
||||
src/model/DescribePriceRequest.cc
|
||||
src/model/DescribePriceResult.cc
|
||||
src/model/DescribeRdsResourceSettingsRequest.cc
|
||||
@@ -1032,6 +1046,8 @@ set(rds_src
|
||||
src/model/UnlockAccountResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpdatePostgresExtensionsRequest.cc
|
||||
src/model/UpdatePostgresExtensionsResult.cc
|
||||
src/model/UpdateUserBackupFileRequest.cc
|
||||
src/model/UpdateUserBackupFileResult.cc
|
||||
src/model/UpgradeDBInstanceEngineVersionRequest.cc
|
||||
|
||||
@@ -92,6 +92,8 @@
|
||||
#include "model/CreateOnlineDatabaseTaskResult.h"
|
||||
#include "model/CreateParameterGroupRequest.h"
|
||||
#include "model/CreateParameterGroupResult.h"
|
||||
#include "model/CreatePostgresExtensionsRequest.h"
|
||||
#include "model/CreatePostgresExtensionsResult.h"
|
||||
#include "model/CreateReadOnlyDBInstanceRequest.h"
|
||||
#include "model/CreateReadOnlyDBInstanceResult.h"
|
||||
#include "model/CreateSecretRequest.h"
|
||||
@@ -124,6 +126,8 @@
|
||||
#include "model/DeleteGadInstanceResult.h"
|
||||
#include "model/DeleteParameterGroupRequest.h"
|
||||
#include "model/DeleteParameterGroupResult.h"
|
||||
#include "model/DeletePostgresExtensionsRequest.h"
|
||||
#include "model/DeletePostgresExtensionsResult.h"
|
||||
#include "model/DeleteSecretRequest.h"
|
||||
#include "model/DeleteSecretResult.h"
|
||||
#include "model/DeleteSlotRequest.h"
|
||||
@@ -290,6 +294,8 @@
|
||||
#include "model/DescribeParameterTemplatesResult.h"
|
||||
#include "model/DescribeParametersRequest.h"
|
||||
#include "model/DescribeParametersResult.h"
|
||||
#include "model/DescribePostgresExtensionsRequest.h"
|
||||
#include "model/DescribePostgresExtensionsResult.h"
|
||||
#include "model/DescribePriceRequest.h"
|
||||
#include "model/DescribePriceResult.h"
|
||||
#include "model/DescribeRdsResourceSettingsRequest.h"
|
||||
@@ -520,6 +526,8 @@
|
||||
#include "model/UnlockAccountResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpdatePostgresExtensionsRequest.h"
|
||||
#include "model/UpdatePostgresExtensionsResult.h"
|
||||
#include "model/UpdateUserBackupFileRequest.h"
|
||||
#include "model/UpdateUserBackupFileResult.h"
|
||||
#include "model/UpgradeDBInstanceEngineVersionRequest.h"
|
||||
@@ -646,6 +654,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateParameterGroupResult> CreateParameterGroupOutcome;
|
||||
typedef std::future<CreateParameterGroupOutcome> CreateParameterGroupOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateParameterGroupRequest&, const CreateParameterGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateParameterGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreatePostgresExtensionsResult> CreatePostgresExtensionsOutcome;
|
||||
typedef std::future<CreatePostgresExtensionsOutcome> CreatePostgresExtensionsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreatePostgresExtensionsRequest&, const CreatePostgresExtensionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatePostgresExtensionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateReadOnlyDBInstanceResult> CreateReadOnlyDBInstanceOutcome;
|
||||
typedef std::future<CreateReadOnlyDBInstanceOutcome> CreateReadOnlyDBInstanceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateReadOnlyDBInstanceRequest&, const CreateReadOnlyDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateReadOnlyDBInstanceAsyncHandler;
|
||||
@@ -694,6 +705,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteParameterGroupResult> DeleteParameterGroupOutcome;
|
||||
typedef std::future<DeleteParameterGroupOutcome> DeleteParameterGroupOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteParameterGroupRequest&, const DeleteParameterGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteParameterGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePostgresExtensionsResult> DeletePostgresExtensionsOutcome;
|
||||
typedef std::future<DeletePostgresExtensionsOutcome> DeletePostgresExtensionsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeletePostgresExtensionsRequest&, const DeletePostgresExtensionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePostgresExtensionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteSecretResult> DeleteSecretOutcome;
|
||||
typedef std::future<DeleteSecretOutcome> DeleteSecretOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteSecretRequest&, const DeleteSecretOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSecretAsyncHandler;
|
||||
@@ -943,6 +957,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeParametersResult> DescribeParametersOutcome;
|
||||
typedef std::future<DescribeParametersOutcome> DescribeParametersOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeParametersRequest&, const DescribeParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeParametersAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePostgresExtensionsResult> DescribePostgresExtensionsOutcome;
|
||||
typedef std::future<DescribePostgresExtensionsOutcome> DescribePostgresExtensionsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribePostgresExtensionsRequest&, const DescribePostgresExtensionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePostgresExtensionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePriceResult> DescribePriceOutcome;
|
||||
typedef std::future<DescribePriceOutcome> DescribePriceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribePriceRequest&, const DescribePriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePriceAsyncHandler;
|
||||
@@ -1288,6 +1305,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdatePostgresExtensionsResult> UpdatePostgresExtensionsOutcome;
|
||||
typedef std::future<UpdatePostgresExtensionsOutcome> UpdatePostgresExtensionsOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::UpdatePostgresExtensionsRequest&, const UpdatePostgresExtensionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdatePostgresExtensionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateUserBackupFileResult> UpdateUserBackupFileOutcome;
|
||||
typedef std::future<UpdateUserBackupFileOutcome> UpdateUserBackupFileOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::UpdateUserBackupFileRequest&, const UpdateUserBackupFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateUserBackupFileAsyncHandler;
|
||||
@@ -1416,6 +1436,9 @@ namespace AlibabaCloud
|
||||
CreateParameterGroupOutcome createParameterGroup(const Model::CreateParameterGroupRequest &request)const;
|
||||
void createParameterGroupAsync(const Model::CreateParameterGroupRequest& request, const CreateParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateParameterGroupOutcomeCallable createParameterGroupCallable(const Model::CreateParameterGroupRequest& request) const;
|
||||
CreatePostgresExtensionsOutcome createPostgresExtensions(const Model::CreatePostgresExtensionsRequest &request)const;
|
||||
void createPostgresExtensionsAsync(const Model::CreatePostgresExtensionsRequest& request, const CreatePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatePostgresExtensionsOutcomeCallable createPostgresExtensionsCallable(const Model::CreatePostgresExtensionsRequest& request) const;
|
||||
CreateReadOnlyDBInstanceOutcome createReadOnlyDBInstance(const Model::CreateReadOnlyDBInstanceRequest &request)const;
|
||||
void createReadOnlyDBInstanceAsync(const Model::CreateReadOnlyDBInstanceRequest& request, const CreateReadOnlyDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateReadOnlyDBInstanceOutcomeCallable createReadOnlyDBInstanceCallable(const Model::CreateReadOnlyDBInstanceRequest& request) const;
|
||||
@@ -1464,6 +1487,9 @@ namespace AlibabaCloud
|
||||
DeleteParameterGroupOutcome deleteParameterGroup(const Model::DeleteParameterGroupRequest &request)const;
|
||||
void deleteParameterGroupAsync(const Model::DeleteParameterGroupRequest& request, const DeleteParameterGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteParameterGroupOutcomeCallable deleteParameterGroupCallable(const Model::DeleteParameterGroupRequest& request) const;
|
||||
DeletePostgresExtensionsOutcome deletePostgresExtensions(const Model::DeletePostgresExtensionsRequest &request)const;
|
||||
void deletePostgresExtensionsAsync(const Model::DeletePostgresExtensionsRequest& request, const DeletePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeletePostgresExtensionsOutcomeCallable deletePostgresExtensionsCallable(const Model::DeletePostgresExtensionsRequest& request) const;
|
||||
DeleteSecretOutcome deleteSecret(const Model::DeleteSecretRequest &request)const;
|
||||
void deleteSecretAsync(const Model::DeleteSecretRequest& request, const DeleteSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteSecretOutcomeCallable deleteSecretCallable(const Model::DeleteSecretRequest& request) const;
|
||||
@@ -1713,6 +1739,9 @@ namespace AlibabaCloud
|
||||
DescribeParametersOutcome describeParameters(const Model::DescribeParametersRequest &request)const;
|
||||
void describeParametersAsync(const Model::DescribeParametersRequest& request, const DescribeParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeParametersOutcomeCallable describeParametersCallable(const Model::DescribeParametersRequest& request) const;
|
||||
DescribePostgresExtensionsOutcome describePostgresExtensions(const Model::DescribePostgresExtensionsRequest &request)const;
|
||||
void describePostgresExtensionsAsync(const Model::DescribePostgresExtensionsRequest& request, const DescribePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePostgresExtensionsOutcomeCallable describePostgresExtensionsCallable(const Model::DescribePostgresExtensionsRequest& request) const;
|
||||
DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const;
|
||||
void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const;
|
||||
@@ -2058,6 +2087,9 @@ namespace AlibabaCloud
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
UpdatePostgresExtensionsOutcome updatePostgresExtensions(const Model::UpdatePostgresExtensionsRequest &request)const;
|
||||
void updatePostgresExtensionsAsync(const Model::UpdatePostgresExtensionsRequest& request, const UpdatePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdatePostgresExtensionsOutcomeCallable updatePostgresExtensionsCallable(const Model::UpdatePostgresExtensionsRequest& request) const;
|
||||
UpdateUserBackupFileOutcome updateUserBackupFile(const Model::UpdateUserBackupFileRequest &request)const;
|
||||
void updateUserBackupFileAsync(const Model::UpdateUserBackupFileRequest& request, const UpdateUserBackupFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateUserBackupFileOutcomeCallable updateUserBackupFileCallable(const Model::UpdateUserBackupFileRequest& request) const;
|
||||
|
||||
@@ -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_RDS_MODEL_CREATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rds {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RDS_EXPORT CreatePostgresExtensionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreatePostgresExtensionsRequest();
|
||||
~CreatePostgresExtensionsRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getAccountName() const;
|
||||
void setAccountName(const std::string &accountName);
|
||||
std::string getDBInstanceId() const;
|
||||
void setDBInstanceId(const std::string &dBInstanceId);
|
||||
std::string getSourceDatabase() const;
|
||||
void setSourceDatabase(const std::string &sourceDatabase);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBNames() const;
|
||||
void setDBNames(const std::string &dBNames);
|
||||
std::string getExtensions() const;
|
||||
void setExtensions(const std::string &extensions);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string accountName_;
|
||||
std::string dBInstanceId_;
|
||||
std::string sourceDatabase_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBNames_;
|
||||
std::string extensions_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rds
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreatePostgresExtensionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreatePostgresExtensionsResult();
|
||||
explicit CreatePostgresExtensionsResult(const std::string &payload);
|
||||
~CreatePostgresExtensionsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rds {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RDS_EXPORT DeletePostgresExtensionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DeletePostgresExtensionsRequest();
|
||||
~DeletePostgresExtensionsRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getDBInstanceId() const;
|
||||
void setDBInstanceId(const std::string &dBInstanceId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBNames() const;
|
||||
void setDBNames(const std::string &dBNames);
|
||||
std::string getExtensions() const;
|
||||
void setExtensions(const std::string &extensions);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBNames_;
|
||||
std::string extensions_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rds
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeletePostgresExtensionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeletePostgresExtensionsResult();
|
||||
explicit DeletePostgresExtensionsResult(const std::string &payload);
|
||||
~DeletePostgresExtensionsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEPOSTGRESEXTENSIONSRESULT_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rds {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribePostgresExtensionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
DescribePostgresExtensionsRequest();
|
||||
~DescribePostgresExtensionsRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getDBInstanceId() const;
|
||||
void setDBInstanceId(const std::string &dBInstanceId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBName() const;
|
||||
void setDBName(const std::string &dBName);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBName_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rds
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribePostgresExtensionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Extension
|
||||
{
|
||||
std::string comment;
|
||||
std::string owner;
|
||||
std::string category;
|
||||
std::string installedVersion;
|
||||
std::string requires;
|
||||
std::string priority;
|
||||
std::string defaultVersion;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribePostgresExtensionsResult();
|
||||
explicit DescribePostgresExtensionsResult(const std::string &payload);
|
||||
~DescribePostgresExtensionsResult();
|
||||
std::vector<Extension> getInstalledExtensions()const;
|
||||
std::string getOverview()const;
|
||||
std::vector<Extension> getUninstalledExtensions()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Extension> installedExtensions_;
|
||||
std::string overview_;
|
||||
std::vector<Extension> uninstalledExtensions_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEPOSTGRESEXTENSIONSRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Rds {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_RDS_EXPORT UpdatePostgresExtensionsRequest : public RpcServiceRequest {
|
||||
public:
|
||||
UpdatePostgresExtensionsRequest();
|
||||
~UpdatePostgresExtensionsRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getResourceGroupId() const;
|
||||
void setResourceGroupId(const std::string &resourceGroupId);
|
||||
std::string getDBInstanceId() const;
|
||||
void setDBInstanceId(const std::string &dBInstanceId);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
|
||||
std::string getOwnerAccount() const;
|
||||
void setOwnerAccount(const std::string &ownerAccount);
|
||||
long getOwnerId() const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBNames() const;
|
||||
void setDBNames(const std::string &dBNames);
|
||||
std::string getExtensions() const;
|
||||
void setExtensions(const std::string &extensions);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBNames_;
|
||||
std::string extensions_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Rds
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT UpdatePostgresExtensionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdatePostgresExtensionsResult();
|
||||
explicit UpdatePostgresExtensionsResult(const std::string &payload);
|
||||
~UpdatePostgresExtensionsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_UPDATEPOSTGRESEXTENSIONSRESULT_H_
|
||||
@@ -1311,6 +1311,42 @@ RdsClient::CreateParameterGroupOutcomeCallable RdsClient::createParameterGroupCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreatePostgresExtensionsOutcome RdsClient::createPostgresExtensions(const CreatePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreatePostgresExtensionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreatePostgresExtensionsOutcome(CreatePostgresExtensionsResult(outcome.result()));
|
||||
else
|
||||
return CreatePostgresExtensionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createPostgresExtensionsAsync(const CreatePostgresExtensionsRequest& request, const CreatePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createPostgresExtensions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreatePostgresExtensionsOutcomeCallable RdsClient::createPostgresExtensionsCallable(const CreatePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreatePostgresExtensionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createPostgresExtensions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateReadOnlyDBInstanceOutcome RdsClient::createReadOnlyDBInstance(const CreateReadOnlyDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1887,6 +1923,42 @@ RdsClient::DeleteParameterGroupOutcomeCallable RdsClient::deleteParameterGroupCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeletePostgresExtensionsOutcome RdsClient::deletePostgresExtensions(const DeletePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeletePostgresExtensionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeletePostgresExtensionsOutcome(DeletePostgresExtensionsResult(outcome.result()));
|
||||
else
|
||||
return DeletePostgresExtensionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deletePostgresExtensionsAsync(const DeletePostgresExtensionsRequest& request, const DeletePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deletePostgresExtensions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeletePostgresExtensionsOutcomeCallable RdsClient::deletePostgresExtensionsCallable(const DeletePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeletePostgresExtensionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deletePostgresExtensions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteSecretOutcome RdsClient::deleteSecret(const DeleteSecretRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4875,6 +4947,42 @@ RdsClient::DescribeParametersOutcomeCallable RdsClient::describeParametersCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribePostgresExtensionsOutcome RdsClient::describePostgresExtensions(const DescribePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribePostgresExtensionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribePostgresExtensionsOutcome(DescribePostgresExtensionsResult(outcome.result()));
|
||||
else
|
||||
return DescribePostgresExtensionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describePostgresExtensionsAsync(const DescribePostgresExtensionsRequest& request, const DescribePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describePostgresExtensions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribePostgresExtensionsOutcomeCallable RdsClient::describePostgresExtensionsCallable(const DescribePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribePostgresExtensionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describePostgresExtensions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribePriceOutcome RdsClient::describePrice(const DescribePriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -9015,6 +9123,42 @@ RdsClient::UntagResourcesOutcomeCallable RdsClient::untagResourcesCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::UpdatePostgresExtensionsOutcome RdsClient::updatePostgresExtensions(const UpdatePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdatePostgresExtensionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdatePostgresExtensionsOutcome(UpdatePostgresExtensionsResult(outcome.result()));
|
||||
else
|
||||
return UpdatePostgresExtensionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::updatePostgresExtensionsAsync(const UpdatePostgresExtensionsRequest& request, const UpdatePostgresExtensionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updatePostgresExtensions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::UpdatePostgresExtensionsOutcomeCallable RdsClient::updatePostgresExtensionsCallable(const UpdatePostgresExtensionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdatePostgresExtensionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updatePostgresExtensions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::UpdateUserBackupFileOutcome RdsClient::updateUserBackupFile(const UpdateUserBackupFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
135
rds/src/model/CreatePostgresExtensionsRequest.cc
Normal file
135
rds/src/model/CreatePostgresExtensionsRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreatePostgresExtensionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreatePostgresExtensionsRequest;
|
||||
|
||||
CreatePostgresExtensionsRequest::CreatePostgresExtensionsRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "CreatePostgresExtensions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePostgresExtensionsRequest::~CreatePostgresExtensionsRequest() {}
|
||||
|
||||
long CreatePostgresExtensionsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getAccountName() const {
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setAccountName(const std::string &accountName) {
|
||||
accountName_ = accountName;
|
||||
setParameter(std::string("AccountName"), accountName);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getSourceDatabase() const {
|
||||
return sourceDatabase_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setSourceDatabase(const std::string &sourceDatabase) {
|
||||
sourceDatabase_ = sourceDatabase;
|
||||
setParameter(std::string("SourceDatabase"), sourceDatabase);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long CreatePostgresExtensionsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getDBNames() const {
|
||||
return dBNames_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setDBNames(const std::string &dBNames) {
|
||||
dBNames_ = dBNames;
|
||||
setParameter(std::string("DBNames"), dBNames);
|
||||
}
|
||||
|
||||
std::string CreatePostgresExtensionsRequest::getExtensions() const {
|
||||
return extensions_;
|
||||
}
|
||||
|
||||
void CreatePostgresExtensionsRequest::setExtensions(const std::string &extensions) {
|
||||
extensions_ = extensions;
|
||||
setParameter(std::string("Extensions"), extensions);
|
||||
}
|
||||
|
||||
44
rds/src/model/CreatePostgresExtensionsResult.cc
Normal file
44
rds/src/model/CreatePostgresExtensionsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/CreatePostgresExtensionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreatePostgresExtensionsResult::CreatePostgresExtensionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreatePostgresExtensionsResult::CreatePostgresExtensionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreatePostgresExtensionsResult::~CreatePostgresExtensionsResult()
|
||||
{}
|
||||
|
||||
void CreatePostgresExtensionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
117
rds/src/model/DeletePostgresExtensionsRequest.cc
Normal file
117
rds/src/model/DeletePostgresExtensionsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/DeletePostgresExtensionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeletePostgresExtensionsRequest;
|
||||
|
||||
DeletePostgresExtensionsRequest::DeletePostgresExtensionsRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DeletePostgresExtensions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeletePostgresExtensionsRequest::~DeletePostgresExtensionsRequest() {}
|
||||
|
||||
long DeletePostgresExtensionsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DeletePostgresExtensionsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getDBNames() const {
|
||||
return dBNames_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setDBNames(const std::string &dBNames) {
|
||||
dBNames_ = dBNames;
|
||||
setParameter(std::string("DBNames"), dBNames);
|
||||
}
|
||||
|
||||
std::string DeletePostgresExtensionsRequest::getExtensions() const {
|
||||
return extensions_;
|
||||
}
|
||||
|
||||
void DeletePostgresExtensionsRequest::setExtensions(const std::string &extensions) {
|
||||
extensions_ = extensions;
|
||||
setParameter(std::string("Extensions"), extensions);
|
||||
}
|
||||
|
||||
44
rds/src/model/DeletePostgresExtensionsResult.cc
Normal file
44
rds/src/model/DeletePostgresExtensionsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/DeletePostgresExtensionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeletePostgresExtensionsResult::DeletePostgresExtensionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePostgresExtensionsResult::DeletePostgresExtensionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePostgresExtensionsResult::~DeletePostgresExtensionsResult()
|
||||
{}
|
||||
|
||||
void DeletePostgresExtensionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
108
rds/src/model/DescribePostgresExtensionsRequest.cc
Normal file
108
rds/src/model/DescribePostgresExtensionsRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribePostgresExtensionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribePostgresExtensionsRequest;
|
||||
|
||||
DescribePostgresExtensionsRequest::DescribePostgresExtensionsRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "DescribePostgresExtensions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribePostgresExtensionsRequest::~DescribePostgresExtensionsRequest() {}
|
||||
|
||||
long DescribePostgresExtensionsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long DescribePostgresExtensionsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsRequest::getDBName() const {
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DescribePostgresExtensionsRequest::setDBName(const std::string &dBName) {
|
||||
dBName_ = dBName;
|
||||
setParameter(std::string("DBName"), dBName);
|
||||
}
|
||||
|
||||
105
rds/src/model/DescribePostgresExtensionsResult.cc
Normal file
105
rds/src/model/DescribePostgresExtensionsResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/DescribePostgresExtensionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribePostgresExtensionsResult::DescribePostgresExtensionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePostgresExtensionsResult::DescribePostgresExtensionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePostgresExtensionsResult::~DescribePostgresExtensionsResult()
|
||||
{}
|
||||
|
||||
void DescribePostgresExtensionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUninstalledExtensionsNode = value["UninstalledExtensions"]["Extension"];
|
||||
for (auto valueUninstalledExtensionsExtension : allUninstalledExtensionsNode)
|
||||
{
|
||||
Extension uninstalledExtensionsObject;
|
||||
if(!valueUninstalledExtensionsExtension["Name"].isNull())
|
||||
uninstalledExtensionsObject.name = valueUninstalledExtensionsExtension["Name"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["DefaultVersion"].isNull())
|
||||
uninstalledExtensionsObject.defaultVersion = valueUninstalledExtensionsExtension["DefaultVersion"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["InstalledVersion"].isNull())
|
||||
uninstalledExtensionsObject.installedVersion = valueUninstalledExtensionsExtension["InstalledVersion"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["Comment"].isNull())
|
||||
uninstalledExtensionsObject.comment = valueUninstalledExtensionsExtension["Comment"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["Owner"].isNull())
|
||||
uninstalledExtensionsObject.owner = valueUninstalledExtensionsExtension["Owner"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["Priority"].isNull())
|
||||
uninstalledExtensionsObject.priority = valueUninstalledExtensionsExtension["Priority"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["Requires"].isNull())
|
||||
uninstalledExtensionsObject.requires = valueUninstalledExtensionsExtension["Requires"].asString();
|
||||
if(!valueUninstalledExtensionsExtension["Category"].isNull())
|
||||
uninstalledExtensionsObject.category = valueUninstalledExtensionsExtension["Category"].asString();
|
||||
uninstalledExtensions_.push_back(uninstalledExtensionsObject);
|
||||
}
|
||||
auto allInstalledExtensionsNode = value["InstalledExtensions"]["Extension"];
|
||||
for (auto valueInstalledExtensionsExtension : allInstalledExtensionsNode)
|
||||
{
|
||||
Extension installedExtensionsObject;
|
||||
if(!valueInstalledExtensionsExtension["Name"].isNull())
|
||||
installedExtensionsObject.name = valueInstalledExtensionsExtension["Name"].asString();
|
||||
if(!valueInstalledExtensionsExtension["DefaultVersion"].isNull())
|
||||
installedExtensionsObject.defaultVersion = valueInstalledExtensionsExtension["DefaultVersion"].asString();
|
||||
if(!valueInstalledExtensionsExtension["InstalledVersion"].isNull())
|
||||
installedExtensionsObject.installedVersion = valueInstalledExtensionsExtension["InstalledVersion"].asString();
|
||||
if(!valueInstalledExtensionsExtension["Comment"].isNull())
|
||||
installedExtensionsObject.comment = valueInstalledExtensionsExtension["Comment"].asString();
|
||||
if(!valueInstalledExtensionsExtension["Owner"].isNull())
|
||||
installedExtensionsObject.owner = valueInstalledExtensionsExtension["Owner"].asString();
|
||||
if(!valueInstalledExtensionsExtension["Priority"].isNull())
|
||||
installedExtensionsObject.priority = valueInstalledExtensionsExtension["Priority"].asString();
|
||||
if(!valueInstalledExtensionsExtension["Requires"].isNull())
|
||||
installedExtensionsObject.requires = valueInstalledExtensionsExtension["Requires"].asString();
|
||||
if(!valueInstalledExtensionsExtension["Category"].isNull())
|
||||
installedExtensionsObject.category = valueInstalledExtensionsExtension["Category"].asString();
|
||||
installedExtensions_.push_back(installedExtensionsObject);
|
||||
}
|
||||
if(!value["Overview"].isNull())
|
||||
overview_ = value["Overview"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePostgresExtensionsResult::Extension> DescribePostgresExtensionsResult::getInstalledExtensions()const
|
||||
{
|
||||
return installedExtensions_;
|
||||
}
|
||||
|
||||
std::string DescribePostgresExtensionsResult::getOverview()const
|
||||
{
|
||||
return overview_;
|
||||
}
|
||||
|
||||
std::vector<DescribePostgresExtensionsResult::Extension> DescribePostgresExtensionsResult::getUninstalledExtensions()const
|
||||
{
|
||||
return uninstalledExtensions_;
|
||||
}
|
||||
|
||||
117
rds/src/model/UpdatePostgresExtensionsRequest.cc
Normal file
117
rds/src/model/UpdatePostgresExtensionsRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/UpdatePostgresExtensionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::UpdatePostgresExtensionsRequest;
|
||||
|
||||
UpdatePostgresExtensionsRequest::UpdatePostgresExtensionsRequest()
|
||||
: RpcServiceRequest("rds", "2014-08-15", "UpdatePostgresExtensions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdatePostgresExtensionsRequest::~UpdatePostgresExtensionsRequest() {}
|
||||
|
||||
long UpdatePostgresExtensionsRequest::getResourceOwnerId() const {
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setResourceOwnerId(long resourceOwnerId) {
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getAccessKeyId() const {
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) {
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter(std::string("AccessKeyId"), accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getDBInstanceId() const {
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setDBInstanceId(const std::string &dBInstanceId) {
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter(std::string("DBInstanceId"), dBInstanceId);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getResourceOwnerAccount() const {
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getOwnerAccount() const {
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) {
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter(std::string("OwnerAccount"), ownerAccount);
|
||||
}
|
||||
|
||||
long UpdatePostgresExtensionsRequest::getOwnerId() const {
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setOwnerId(long ownerId) {
|
||||
ownerId_ = ownerId;
|
||||
setParameter(std::string("OwnerId"), std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getDBNames() const {
|
||||
return dBNames_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setDBNames(const std::string &dBNames) {
|
||||
dBNames_ = dBNames;
|
||||
setParameter(std::string("DBNames"), dBNames);
|
||||
}
|
||||
|
||||
std::string UpdatePostgresExtensionsRequest::getExtensions() const {
|
||||
return extensions_;
|
||||
}
|
||||
|
||||
void UpdatePostgresExtensionsRequest::setExtensions(const std::string &extensions) {
|
||||
extensions_ = extensions;
|
||||
setParameter(std::string("Extensions"), extensions);
|
||||
}
|
||||
|
||||
44
rds/src/model/UpdatePostgresExtensionsResult.cc
Normal file
44
rds/src/model/UpdatePostgresExtensionsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/rds/model/UpdatePostgresExtensionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
UpdatePostgresExtensionsResult::UpdatePostgresExtensionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdatePostgresExtensionsResult::UpdatePostgresExtensionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdatePostgresExtensionsResult::~UpdatePostgresExtensionsResult()
|
||||
{}
|
||||
|
||||
void UpdatePostgresExtensionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -139,6 +139,8 @@ set(swas-open_public_header_model
|
||||
include/alibabacloud/swas-open/model/StartInstanceResult.h
|
||||
include/alibabacloud/swas-open/model/StartInstancesRequest.h
|
||||
include/alibabacloud/swas-open/model/StartInstancesResult.h
|
||||
include/alibabacloud/swas-open/model/StartTerminalSessionRequest.h
|
||||
include/alibabacloud/swas-open/model/StartTerminalSessionResult.h
|
||||
include/alibabacloud/swas-open/model/StopDatabaseInstanceRequest.h
|
||||
include/alibabacloud/swas-open/model/StopDatabaseInstanceResult.h
|
||||
include/alibabacloud/swas-open/model/StopInstanceRequest.h
|
||||
@@ -276,6 +278,8 @@ set(swas-open_src
|
||||
src/model/StartInstanceResult.cc
|
||||
src/model/StartInstancesRequest.cc
|
||||
src/model/StartInstancesResult.cc
|
||||
src/model/StartTerminalSessionRequest.cc
|
||||
src/model/StartTerminalSessionResult.cc
|
||||
src/model/StopDatabaseInstanceRequest.cc
|
||||
src/model/StopDatabaseInstanceResult.cc
|
||||
src/model/StopInstanceRequest.cc
|
||||
|
||||
@@ -140,6 +140,8 @@
|
||||
#include "model/StartInstanceResult.h"
|
||||
#include "model/StartInstancesRequest.h"
|
||||
#include "model/StartInstancesResult.h"
|
||||
#include "model/StartTerminalSessionRequest.h"
|
||||
#include "model/StartTerminalSessionResult.h"
|
||||
#include "model/StopDatabaseInstanceRequest.h"
|
||||
#include "model/StopDatabaseInstanceResult.h"
|
||||
#include "model/StopInstanceRequest.h"
|
||||
@@ -342,6 +344,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::StartInstancesResult> StartInstancesOutcome;
|
||||
typedef std::future<StartInstancesOutcome> StartInstancesOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::StartInstancesRequest&, const StartInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartTerminalSessionResult> StartTerminalSessionOutcome;
|
||||
typedef std::future<StartTerminalSessionOutcome> StartTerminalSessionOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::StartTerminalSessionRequest&, const StartTerminalSessionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartTerminalSessionAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopDatabaseInstanceResult> StopDatabaseInstanceOutcome;
|
||||
typedef std::future<StopDatabaseInstanceOutcome> StopDatabaseInstanceOutcomeCallable;
|
||||
typedef std::function<void(const SWAS_OPENClient*, const Model::StopDatabaseInstanceRequest&, const StopDatabaseInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopDatabaseInstanceAsyncHandler;
|
||||
@@ -548,6 +553,9 @@ namespace AlibabaCloud
|
||||
StartInstancesOutcome startInstances(const Model::StartInstancesRequest &request)const;
|
||||
void startInstancesAsync(const Model::StartInstancesRequest& request, const StartInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartInstancesOutcomeCallable startInstancesCallable(const Model::StartInstancesRequest& request) const;
|
||||
StartTerminalSessionOutcome startTerminalSession(const Model::StartTerminalSessionRequest &request)const;
|
||||
void startTerminalSessionAsync(const Model::StartTerminalSessionRequest& request, const StartTerminalSessionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartTerminalSessionOutcomeCallable startTerminalSessionCallable(const Model::StartTerminalSessionRequest& request) const;
|
||||
StopDatabaseInstanceOutcome stopDatabaseInstance(const Model::StopDatabaseInstanceRequest &request)const;
|
||||
void stopDatabaseInstanceAsync(const Model::StopDatabaseInstanceRequest& request, const StopDatabaseInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopDatabaseInstanceOutcomeCallable stopDatabaseInstanceCallable(const Model::StopDatabaseInstanceRequest& request) const;
|
||||
|
||||
@@ -42,6 +42,8 @@ public:
|
||||
void setPublicIpAddresses(const std::string &publicIpAddresses);
|
||||
std::string getChargeType() const;
|
||||
void setChargeType(const std::string &chargeType);
|
||||
std::string getStatus() const;
|
||||
void setStatus(const std::string &status);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
@@ -50,6 +52,7 @@ private:
|
||||
int pageSize_;
|
||||
std::string publicIpAddresses_;
|
||||
std::string chargeType_;
|
||||
std::string status_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace SWAS_OPEN
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONREQUEST_H_
|
||||
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace SWAS_OPEN {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT StartTerminalSessionRequest : public RpcServiceRequest {
|
||||
public:
|
||||
StartTerminalSessionRequest();
|
||||
~StartTerminalSessionRequest();
|
||||
std::string getInstanceId() const;
|
||||
void setInstanceId(const std::string &instanceId);
|
||||
std::string getRegionId() const;
|
||||
void setRegionId(const std::string ®ionId);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string regionId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace SWAS_OPEN
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONRESULT_H_
|
||||
#define ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/swas-open/SWAS_OPENExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace SWAS_OPEN
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_SWAS_OPEN_EXPORT StartTerminalSessionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartTerminalSessionResult();
|
||||
explicit StartTerminalSessionResult(const std::string &payload);
|
||||
~StartTerminalSessionResult();
|
||||
std::string getSecurityToken()const;
|
||||
std::string getWebSocketUrl()const;
|
||||
std::string getSessionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string securityToken_;
|
||||
std::string webSocketUrl_;
|
||||
std::string sessionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_SWAS_OPEN_MODEL_STARTTERMINALSESSIONRESULT_H_
|
||||
@@ -2175,6 +2175,42 @@ SWAS_OPENClient::StartInstancesOutcomeCallable SWAS_OPENClient::startInstancesCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StartTerminalSessionOutcome SWAS_OPENClient::startTerminalSession(const StartTerminalSessionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartTerminalSessionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartTerminalSessionOutcome(StartTerminalSessionResult(outcome.result()));
|
||||
else
|
||||
return StartTerminalSessionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SWAS_OPENClient::startTerminalSessionAsync(const StartTerminalSessionRequest& request, const StartTerminalSessionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startTerminalSession(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StartTerminalSessionOutcomeCallable SWAS_OPENClient::startTerminalSessionCallable(const StartTerminalSessionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartTerminalSessionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startTerminalSession(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SWAS_OPENClient::StopDatabaseInstanceOutcome SWAS_OPENClient::stopDatabaseInstance(const StopDatabaseInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -79,3 +79,12 @@ void ListInstancesRequest::setChargeType(const std::string &chargeType) {
|
||||
setParameter(std::string("ChargeType"), chargeType);
|
||||
}
|
||||
|
||||
std::string ListInstancesRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
|
||||
45
swas-open/src/model/StartTerminalSessionRequest.cc
Normal file
45
swas-open/src/model/StartTerminalSessionRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/StartTerminalSessionRequest.h>
|
||||
|
||||
using AlibabaCloud::SWAS_OPEN::Model::StartTerminalSessionRequest;
|
||||
|
||||
StartTerminalSessionRequest::StartTerminalSessionRequest()
|
||||
: RpcServiceRequest("swas-open", "2020-06-01", "StartTerminalSession") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartTerminalSessionRequest::~StartTerminalSessionRequest() {}
|
||||
|
||||
std::string StartTerminalSessionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void StartTerminalSessionRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string StartTerminalSessionRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartTerminalSessionRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
65
swas-open/src/model/StartTerminalSessionResult.cc
Normal file
65
swas-open/src/model/StartTerminalSessionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/swas-open/model/StartTerminalSessionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::SWAS_OPEN;
|
||||
using namespace AlibabaCloud::SWAS_OPEN::Model;
|
||||
|
||||
StartTerminalSessionResult::StartTerminalSessionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartTerminalSessionResult::StartTerminalSessionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartTerminalSessionResult::~StartTerminalSessionResult()
|
||||
{}
|
||||
|
||||
void StartTerminalSessionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["SessionId"].isNull())
|
||||
sessionId_ = value["SessionId"].asString();
|
||||
if(!value["SecurityToken"].isNull())
|
||||
securityToken_ = value["SecurityToken"].asString();
|
||||
if(!value["WebSocketUrl"].isNull())
|
||||
webSocketUrl_ = value["WebSocketUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartTerminalSessionResult::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
std::string StartTerminalSessionResult::getWebSocketUrl()const
|
||||
{
|
||||
return webSocketUrl_;
|
||||
}
|
||||
|
||||
std::string StartTerminalSessionResult::getSessionId()const
|
||||
{
|
||||
return sessionId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user