Compare commits

..

7 Commits

Author SHA1 Message Date
sdk-team
450eed667b Parameter changes in ListServerlessJobs and DescribeServerlessJobs. 2023-07-20 02:53:11 +00:00
sdk-team
daf3dcd2b0 Add openapis for whitelist template. 2023-07-19 15:05:51 +00:00
sdk-team
c8936fb4cf Support new feature. 2023-07-19 11:05:39 +00:00
sdk-team
410b5a1a3e Add new apis. 2023-07-19 09:03:42 +00:00
sdk-team
1754f90722 Update SDK version. 2023-07-19 08:51:22 +00:00
sdk-team
17088253be Update SDK version. 2023-07-19 08:46:26 +00:00
sdk-team
2dcd1b2f62 Supported RDS PostgreSQL manage extensions. 2023-07-18 15:05:24 +00:00
113 changed files with 6007 additions and 598 deletions

View File

@@ -1 +1 @@
1.36.1663
1.36.1670

View File

@@ -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

View File

@@ -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;

View File

@@ -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 &regionId);
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_;

View File

@@ -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 &regionId);
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 &regionId);
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

View File

@@ -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 &regionId);
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 &regionId);
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

View File

@@ -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 &regionId);
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_;

View File

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

View 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.
*/
#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_

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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_;
};

View File

@@ -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_;
};
}

View File

@@ -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_;
};

View File

@@ -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_;

View File

@@ -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 &regionId);
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_;

View File

@@ -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;

View File

@@ -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_;

View File

@@ -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 &regionId);
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

View File

@@ -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 &regionId);
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

View File

@@ -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 &regionId);
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_;

View File

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

View File

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

View File

@@ -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();

View File

@@ -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_;
}

View File

@@ -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 &regionId) {
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 &regionId) {
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_;
}

View File

@@ -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 &regionId) {
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 &regionId) {
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);
}

View File

@@ -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_;
}

View 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 &regionId) {
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 &region) {
region_ = region;
setParameter(std::string("Region"), region);
}

View 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_;
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -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_;
}

View File

@@ -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_;
}

View File

@@ -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_;
}

View File

@@ -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_;

View File

@@ -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_;
}

View File

@@ -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();

View File

@@ -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_;

View File

@@ -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_;
}

View File

@@ -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 &reg
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_;
}

View File

@@ -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_;
}

View File

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

View File

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

View File

@@ -190,6 +190,27 @@ namespace AlibabaCloud
bool tty;
std::vector<std::string> commands;
};
struct Volume
{
struct ConfigFileVolumeConfigFileToPath
{
std::string path;
std::string content;
};
std::string emptyDirVolumeSizeLimit;
std::string flexVolumeFsType;
std::string nFSVolumeServer;
std::vector<Volume::ConfigFileVolumeConfigFileToPath> configFileVolumeConfigFileToPaths;
bool nFSVolumeReadOnly;
std::string name;
std::string nFSVolumePath;
std::string type;
std::string flexVolumeDriver;
std::string diskVolumeDiskId;
std::string flexVolumeOptions;
std::string emptyDirVolumeMedium;
std::string diskVolumeFsType;
};
struct Event
{
std::string type;
@@ -288,27 +309,6 @@ namespace AlibabaCloud
std::string value;
std::string key;
};
struct Volume
{
struct ConfigFileVolumeConfigFileToPath
{
std::string path;
std::string content;
};
std::string emptyDirVolumeSizeLimit;
std::string flexVolumeFsType;
std::string nFSVolumeServer;
std::vector<Volume::ConfigFileVolumeConfigFileToPath> configFileVolumeConfigFileToPaths;
bool nFSVolumeReadOnly;
std::string name;
std::string nFSVolumePath;
std::string type;
std::string flexVolumeDriver;
std::string diskVolumeDiskId;
std::string flexVolumeOptions;
std::string emptyDirVolumeMedium;
std::string diskVolumeFsType;
};
long discount;
std::string resourceGroupId;
float memory;
@@ -328,8 +328,8 @@ namespace AlibabaCloud
float spotPriceLimit;
std::string instanceType;
std::vector<ContainerGroup::Tag> tags;
std::string ipv6Address;
std::string spotStrategy;
std::string ipv6Address;
std::string status;
std::string tenantEniIp;
std::vector<ContainerGroup::InitContainer> initContainers;
@@ -348,19 +348,19 @@ namespace AlibabaCloud
std::string regionId;
long ephemeralStorage;
};
std::string owner;
std::string user;
std::vector<JobInfo::ContainerGroup> containerGroups;
long endTime;
long priority;
std::string jobName;
long startTime;
long lastModifyTime;
long submitTime;
std::string name;
ArrayProperties arrayProperties;
std::string state;
bool isArrayJob;
std::string id;
std::string queue;
std::string jobId;
};

View File

@@ -34,16 +34,16 @@ namespace AlibabaCloud
public:
struct JobInfo
{
std::string owner;
std::string user;
std::string endTime;
std::string state;
std::string priority;
bool isArrayJob;
std::string jobName;
std::string startTime;
std::string id;
std::string submitTime;
std::string queue;
std::string name;
std::string submitTime;
std::string jobId;
};

View File

@@ -43,28 +43,28 @@ void DescribeServerlessJobsResult::parse(const std::string &payload)
for (auto valueJobInfosJobInfo : allJobInfosNode)
{
JobInfo jobInfosObject;
if(!valueJobInfosJobInfo["EndTime"].isNull())
jobInfosObject.endTime = std::stol(valueJobInfosJobInfo["EndTime"].asString());
if(!valueJobInfosJobInfo["Id"].isNull())
jobInfosObject.id = valueJobInfosJobInfo["Id"].asString();
if(!valueJobInfosJobInfo["IsArrayJob"].isNull())
jobInfosObject.isArrayJob = valueJobInfosJobInfo["IsArrayJob"].asString() == "true";
if(!valueJobInfosJobInfo["LastModifyTime"].isNull())
jobInfosObject.lastModifyTime = std::stol(valueJobInfosJobInfo["LastModifyTime"].asString());
if(!valueJobInfosJobInfo["Name"].isNull())
jobInfosObject.name = valueJobInfosJobInfo["Name"].asString();
if(!valueJobInfosJobInfo["Owner"].isNull())
jobInfosObject.owner = valueJobInfosJobInfo["Owner"].asString();
if(!valueJobInfosJobInfo["JobId"].isNull())
jobInfosObject.jobId = valueJobInfosJobInfo["JobId"].asString();
if(!valueJobInfosJobInfo["JobName"].isNull())
jobInfosObject.jobName = valueJobInfosJobInfo["JobName"].asString();
if(!valueJobInfosJobInfo["State"].isNull())
jobInfosObject.state = valueJobInfosJobInfo["State"].asString();
if(!valueJobInfosJobInfo["Priority"].isNull())
jobInfosObject.priority = std::stol(valueJobInfosJobInfo["Priority"].asString());
if(!valueJobInfosJobInfo["Queue"].isNull())
jobInfosObject.queue = valueJobInfosJobInfo["Queue"].asString();
if(!valueJobInfosJobInfo["StartTime"].isNull())
jobInfosObject.startTime = std::stol(valueJobInfosJobInfo["StartTime"].asString());
if(!valueJobInfosJobInfo["State"].isNull())
jobInfosObject.state = valueJobInfosJobInfo["State"].asString();
if(!valueJobInfosJobInfo["User"].isNull())
jobInfosObject.user = valueJobInfosJobInfo["User"].asString();
if(!valueJobInfosJobInfo["SubmitTime"].isNull())
jobInfosObject.submitTime = std::stol(valueJobInfosJobInfo["SubmitTime"].asString());
if(!valueJobInfosJobInfo["StartTime"].isNull())
jobInfosObject.startTime = std::stol(valueJobInfosJobInfo["StartTime"].asString());
if(!valueJobInfosJobInfo["EndTime"].isNull())
jobInfosObject.endTime = std::stol(valueJobInfosJobInfo["EndTime"].asString());
if(!valueJobInfosJobInfo["LastModifyTime"].isNull())
jobInfosObject.lastModifyTime = std::stol(valueJobInfosJobInfo["LastModifyTime"].asString());
if(!valueJobInfosJobInfo["IsArrayJob"].isNull())
jobInfosObject.isArrayJob = valueJobInfosJobInfo["IsArrayJob"].asString() == "true";
auto allContainerGroupsNode = valueJobInfosJobInfo["ContainerGroups"]["ContainerGroup"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroup : allContainerGroupsNode)
{
@@ -73,30 +73,38 @@ void DescribeServerlessJobsResult::parse(const std::string &payload)
containerGroupsObject.containerGroupId = valueJobInfosJobInfoContainerGroupsContainerGroup["ContainerGroupId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["ContainerGroupName"].isNull())
containerGroupsObject.containerGroupName = valueJobInfosJobInfoContainerGroupsContainerGroup["ContainerGroupName"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Status"].isNull())
containerGroupsObject.status = valueJobInfosJobInfoContainerGroupsContainerGroup["Status"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["InstanceType"].isNull())
containerGroupsObject.instanceType = valueJobInfosJobInfoContainerGroupsContainerGroup["InstanceType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SpotStrategy"].isNull())
containerGroupsObject.spotStrategy = valueJobInfosJobInfoContainerGroupsContainerGroup["SpotStrategy"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SpotPriceLimit"].isNull())
containerGroupsObject.spotPriceLimit = std::stof(valueJobInfosJobInfoContainerGroupsContainerGroup["SpotPriceLimit"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Cpu"].isNull())
containerGroupsObject.cpu = std::stof(valueJobInfosJobInfoContainerGroupsContainerGroup["Cpu"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Memory"].isNull())
containerGroupsObject.memory = std::stof(valueJobInfosJobInfoContainerGroupsContainerGroup["Memory"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["CreationTime"].isNull())
containerGroupsObject.creationTime = valueJobInfosJobInfoContainerGroupsContainerGroup["CreationTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SucceededTime"].isNull())
containerGroupsObject.succeededTime = valueJobInfosJobInfoContainerGroupsContainerGroup["SucceededTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["ExpiredTime"].isNull())
containerGroupsObject.expiredTime = valueJobInfosJobInfoContainerGroupsContainerGroup["ExpiredTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["FailedTime"].isNull())
containerGroupsObject.failedTime = valueJobInfosJobInfoContainerGroupsContainerGroup["FailedTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Discount"].isNull())
containerGroupsObject.discount = std::stol(valueJobInfosJobInfoContainerGroupsContainerGroup["Discount"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["EniInstanceId"].isNull())
containerGroupsObject.eniInstanceId = valueJobInfosJobInfoContainerGroupsContainerGroup["EniInstanceId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["EphemeralStorage"].isNull())
containerGroupsObject.ephemeralStorage = std::stol(valueJobInfosJobInfoContainerGroupsContainerGroup["EphemeralStorage"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["ExpiredTime"].isNull())
containerGroupsObject.expiredTime = valueJobInfosJobInfoContainerGroupsContainerGroup["ExpiredTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["FailedTime"].isNull())
containerGroupsObject.failedTime = valueJobInfosJobInfoContainerGroupsContainerGroup["FailedTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["InstanceType"].isNull())
containerGroupsObject.instanceType = valueJobInfosJobInfoContainerGroupsContainerGroup["InstanceType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["InternetIp"].isNull())
containerGroupsObject.internetIp = valueJobInfosJobInfoContainerGroupsContainerGroup["InternetIp"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["IntranetIp"].isNull())
containerGroupsObject.intranetIp = valueJobInfosJobInfoContainerGroupsContainerGroup["IntranetIp"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Ipv6Address"].isNull())
containerGroupsObject.ipv6Address = valueJobInfosJobInfoContainerGroupsContainerGroup["Ipv6Address"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Memory"].isNull())
containerGroupsObject.memory = std::stof(valueJobInfosJobInfoContainerGroupsContainerGroup["Memory"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["RamRoleName"].isNull())
containerGroupsObject.ramRoleName = valueJobInfosJobInfoContainerGroupsContainerGroup["RamRoleName"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["RegionId"].isNull())
@@ -107,14 +115,6 @@ void DescribeServerlessJobsResult::parse(const std::string &payload)
containerGroupsObject.restartPolicy = valueJobInfosJobInfoContainerGroupsContainerGroup["RestartPolicy"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SecurityGroupId"].isNull())
containerGroupsObject.securityGroupId = valueJobInfosJobInfoContainerGroupsContainerGroup["SecurityGroupId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SpotPriceLimit"].isNull())
containerGroupsObject.spotPriceLimit = std::stof(valueJobInfosJobInfoContainerGroupsContainerGroup["SpotPriceLimit"].asString());
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SpotStrategy"].isNull())
containerGroupsObject.spotStrategy = valueJobInfosJobInfoContainerGroupsContainerGroup["SpotStrategy"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["Status"].isNull())
containerGroupsObject.status = valueJobInfosJobInfoContainerGroupsContainerGroup["Status"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["SucceededTime"].isNull())
containerGroupsObject.succeededTime = valueJobInfosJobInfoContainerGroupsContainerGroup["SucceededTime"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["TenantEniInstanceId"].isNull())
containerGroupsObject.tenantEniInstanceId = valueJobInfosJobInfoContainerGroupsContainerGroup["TenantEniInstanceId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroup["TenantEniIp"].isNull())
@@ -300,6 +300,46 @@ void DescribeServerlessJobsResult::parse(const std::string &payload)
containersObject.commands.push_back(value.asString());
containerGroupsObject.containers.push_back(containersObject);
}
auto allVolumesNode = valueJobInfosJobInfoContainerGroupsContainerGroup["Volumes"]["Volume"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume : allVolumesNode)
{
JobInfo::ContainerGroup::Volume volumesObject;
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeDiskId"].isNull())
volumesObject.diskVolumeDiskId = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeDiskId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeFsType"].isNull())
volumesObject.diskVolumeFsType = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeFsType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeMedium"].isNull())
volumesObject.emptyDirVolumeMedium = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeMedium"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeSizeLimit"].isNull())
volumesObject.emptyDirVolumeSizeLimit = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeSizeLimit"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeDriver"].isNull())
volumesObject.flexVolumeDriver = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeDriver"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeFsType"].isNull())
volumesObject.flexVolumeFsType = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeFsType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeOptions"].isNull())
volumesObject.flexVolumeOptions = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeOptions"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumePath"].isNull())
volumesObject.nFSVolumePath = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumePath"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeReadOnly"].isNull())
volumesObject.nFSVolumeReadOnly = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeReadOnly"].asString() == "true";
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeServer"].isNull())
volumesObject.nFSVolumeServer = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeServer"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Name"].isNull())
volumesObject.name = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Name"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Type"].isNull())
volumesObject.type = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Type"].asString();
auto allConfigFileVolumeConfigFileToPathsNode = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["ConfigFileVolumeConfigFileToPaths"]["ConfigFileVolumeConfigFileToPath"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath : allConfigFileVolumeConfigFileToPathsNode)
{
JobInfo::ContainerGroup::Volume::ConfigFileVolumeConfigFileToPath configFileVolumeConfigFileToPathsObject;
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Content"].isNull())
configFileVolumeConfigFileToPathsObject.content = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Content"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Path"].isNull())
configFileVolumeConfigFileToPathsObject.path = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Path"].asString();
volumesObject.configFileVolumeConfigFileToPaths.push_back(configFileVolumeConfigFileToPathsObject);
}
containerGroupsObject.volumes.push_back(volumesObject);
}
auto allEventsNode = valueJobInfosJobInfoContainerGroupsContainerGroup["Events"]["Event"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroupEventsEvent : allEventsNode)
{
@@ -452,46 +492,6 @@ void DescribeServerlessJobsResult::parse(const std::string &payload)
tagsObject.value = valueJobInfosJobInfoContainerGroupsContainerGroupTagsTag["Value"].asString();
containerGroupsObject.tags.push_back(tagsObject);
}
auto allVolumesNode = valueJobInfosJobInfoContainerGroupsContainerGroup["Volumes"]["Volume"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume : allVolumesNode)
{
JobInfo::ContainerGroup::Volume volumesObject;
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeDiskId"].isNull())
volumesObject.diskVolumeDiskId = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeDiskId"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeFsType"].isNull())
volumesObject.diskVolumeFsType = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["DiskVolumeFsType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeMedium"].isNull())
volumesObject.emptyDirVolumeMedium = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeMedium"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeSizeLimit"].isNull())
volumesObject.emptyDirVolumeSizeLimit = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["EmptyDirVolumeSizeLimit"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeDriver"].isNull())
volumesObject.flexVolumeDriver = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeDriver"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeFsType"].isNull())
volumesObject.flexVolumeFsType = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeFsType"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeOptions"].isNull())
volumesObject.flexVolumeOptions = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["FlexVolumeOptions"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumePath"].isNull())
volumesObject.nFSVolumePath = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumePath"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeReadOnly"].isNull())
volumesObject.nFSVolumeReadOnly = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeReadOnly"].asString() == "true";
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeServer"].isNull())
volumesObject.nFSVolumeServer = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["NFSVolumeServer"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Name"].isNull())
volumesObject.name = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Name"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Type"].isNull())
volumesObject.type = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["Type"].asString();
auto allConfigFileVolumeConfigFileToPathsNode = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolume["ConfigFileVolumeConfigFileToPaths"]["ConfigFileVolumeConfigFileToPath"];
for (auto valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath : allConfigFileVolumeConfigFileToPathsNode)
{
JobInfo::ContainerGroup::Volume::ConfigFileVolumeConfigFileToPath configFileVolumeConfigFileToPathsObject;
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Content"].isNull())
configFileVolumeConfigFileToPathsObject.content = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Content"].asString();
if(!valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Path"].isNull())
configFileVolumeConfigFileToPathsObject.path = valueJobInfosJobInfoContainerGroupsContainerGroupVolumesVolumeConfigFileVolumeConfigFileToPathsConfigFileVolumeConfigFileToPath["Path"].asString();
volumesObject.configFileVolumeConfigFileToPaths.push_back(configFileVolumeConfigFileToPathsObject);
}
containerGroupsObject.volumes.push_back(volumesObject);
}
auto dnsConfigNode = value["DnsConfig"];
auto allOptionsNode = dnsConfigNode["Options"]["Option"];
for (auto dnsConfigNodeOptionsOption : allOptionsNode)

View File

@@ -43,26 +43,26 @@ void ListServerlessJobsResult::parse(const std::string &payload)
for (auto valueJobsJobInfo : allJobsNode)
{
JobInfo jobsObject;
if(!valueJobsJobInfo["Id"].isNull())
jobsObject.id = valueJobsJobInfo["Id"].asString();
if(!valueJobsJobInfo["Name"].isNull())
jobsObject.name = valueJobsJobInfo["Name"].asString();
if(!valueJobsJobInfo["Owner"].isNull())
jobsObject.owner = valueJobsJobInfo["Owner"].asString();
if(!valueJobsJobInfo["IsArrayJob"].isNull())
jobsObject.isArrayJob = valueJobsJobInfo["IsArrayJob"].asString() == "true";
if(!valueJobsJobInfo["JobId"].isNull())
jobsObject.jobId = valueJobsJobInfo["JobId"].asString();
if(!valueJobsJobInfo["JobName"].isNull())
jobsObject.jobName = valueJobsJobInfo["JobName"].asString();
if(!valueJobsJobInfo["State"].isNull())
jobsObject.state = valueJobsJobInfo["State"].asString();
if(!valueJobsJobInfo["Priority"].isNull())
jobsObject.priority = valueJobsJobInfo["Priority"].asString();
if(!valueJobsJobInfo["Queue"].isNull())
jobsObject.queue = valueJobsJobInfo["Queue"].asString();
if(!valueJobsJobInfo["User"].isNull())
jobsObject.user = valueJobsJobInfo["User"].asString();
if(!valueJobsJobInfo["SubmitTime"].isNull())
jobsObject.submitTime = valueJobsJobInfo["SubmitTime"].asString();
if(!valueJobsJobInfo["StartTime"].isNull())
jobsObject.startTime = valueJobsJobInfo["StartTime"].asString();
if(!valueJobsJobInfo["EndTime"].isNull())
jobsObject.endTime = valueJobsJobInfo["EndTime"].asString();
if(!valueJobsJobInfo["Priority"].isNull())
jobsObject.priority = valueJobsJobInfo["Priority"].asString();
if(!valueJobsJobInfo["Queue"].isNull())
jobsObject.queue = valueJobsJobInfo["Queue"].asString();
if(!valueJobsJobInfo["IsArrayJob"].isNull())
jobsObject.isArrayJob = valueJobsJobInfo["IsArrayJob"].asString() == "true";
jobs_.push_back(jobsObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -205,6 +205,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h
include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h
include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h
include/alibabacloud/polardb/model/ModifyDBClusterRequest.h
include/alibabacloud/polardb/model/ModifyDBClusterResult.h
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h
include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h
@@ -480,6 +482,8 @@ set(polardb_src
src/model/ModifyAutoRenewAttributeResult.cc
src/model/ModifyBackupPolicyRequest.cc
src/model/ModifyBackupPolicyResult.cc
src/model/ModifyDBClusterRequest.cc
src/model/ModifyDBClusterResult.cc
src/model/ModifyDBClusterAccessWhitelistRequest.cc
src/model/ModifyDBClusterAccessWhitelistResult.cc
src/model/ModifyDBClusterAndNodesParametersRequest.cc

View File

@@ -206,6 +206,8 @@
#include "model/ModifyAutoRenewAttributeResult.h"
#include "model/ModifyBackupPolicyRequest.h"
#include "model/ModifyBackupPolicyResult.h"
#include "model/ModifyDBClusterRequest.h"
#include "model/ModifyDBClusterResult.h"
#include "model/ModifyDBClusterAccessWhitelistRequest.h"
#include "model/ModifyDBClusterAccessWhitelistResult.h"
#include "model/ModifyDBClusterAndNodesParametersRequest.h"
@@ -579,6 +581,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyBackupPolicyResult> ModifyBackupPolicyOutcome;
typedef std::future<ModifyBackupPolicyOutcome> ModifyBackupPolicyOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyBackupPolicyRequest&, const ModifyBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupPolicyAsyncHandler;
typedef Outcome<Error, Model::ModifyDBClusterResult> ModifyDBClusterOutcome;
typedef std::future<ModifyDBClusterOutcome> ModifyDBClusterOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterRequest&, const ModifyDBClusterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAsyncHandler;
typedef Outcome<Error, Model::ModifyDBClusterAccessWhitelistResult> ModifyDBClusterAccessWhitelistOutcome;
typedef std::future<ModifyDBClusterAccessWhitelistOutcome> ModifyDBClusterAccessWhitelistOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterAccessWhitelistRequest&, const ModifyDBClusterAccessWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAccessWhitelistAsyncHandler;
@@ -992,6 +997,9 @@ namespace AlibabaCloud
ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const;
void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const;
ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const;
void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const;
ModifyDBClusterAccessWhitelistOutcome modifyDBClusterAccessWhitelist(const Model::ModifyDBClusterAccessWhitelistRequest &request)const;
void modifyDBClusterAccessWhitelistAsync(const Model::ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDBClusterAccessWhitelistOutcomeCallable modifyDBClusterAccessWhitelistCallable(const Model::ModifyDBClusterAccessWhitelistRequest& request) const;

View File

@@ -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_POLARDB_MODEL_MODIFYDBCLUSTERREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERREQUEST_H_
#include <alibabacloud/polardb/PolardbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace Polardb {
namespace Model {
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterRequest : public RpcServiceRequest {
public:
ModifyDBClusterRequest();
~ModifyDBClusterRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId() const;
void setAccessKeyId(const std::string &accessKeyId);
std::string getStandbyHAMode() const;
void setStandbyHAMode(const std::string &standbyHAMode);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getDBClusterId() const;
void setDBClusterId(const std::string &dBClusterId);
std::string getOwnerAccount() const;
void setOwnerAccount(const std::string &ownerAccount);
std::string getFaultSimulateMode() const;
void setFaultSimulateMode(const std::string &faultSimulateMode);
long getOwnerId() const;
void setOwnerId(long ownerId);
std::string getDataSyncMode() const;
void setDataSyncMode(const std::string &dataSyncMode);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string standbyHAMode_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
std::string faultSimulateMode_;
long ownerId_;
std::string dataSyncMode_;
};
} // namespace Model
} // namespace Polardb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/polardb/PolardbExport.h>
namespace AlibabaCloud
{
namespace Polardb
{
namespace Model
{
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterResult : public ServiceResult
{
public:
ModifyDBClusterResult();
explicit ModifyDBClusterResult(const std::string &payload);
~ModifyDBClusterResult();
std::string getDBClusterId()const;
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string dBClusterId_;
std::string orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERRESULT_H_

View File

@@ -3363,6 +3363,42 @@ PolardbClient::ModifyBackupPolicyOutcomeCallable PolardbClient::modifyBackupPoli
return task->get_future();
}
PolardbClient::ModifyDBClusterOutcome PolardbClient::modifyDBCluster(const ModifyDBClusterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDBClusterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDBClusterOutcome(ModifyDBClusterResult(outcome.result()));
else
return ModifyDBClusterOutcome(outcome.error());
}
void PolardbClient::modifyDBClusterAsync(const ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDBCluster(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::ModifyDBClusterOutcomeCallable PolardbClient::modifyDBClusterCallable(const ModifyDBClusterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDBClusterOutcome()>>(
[this, request]()
{
return this->modifyDBCluster(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::ModifyDBClusterAccessWhitelistOutcome PolardbClient::modifyDBClusterAccessWhitelist(const ModifyDBClusterAccessWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View 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/polardb/model/ModifyDBClusterRequest.h>
using AlibabaCloud::Polardb::Model::ModifyDBClusterRequest;
ModifyDBClusterRequest::ModifyDBClusterRequest()
: RpcServiceRequest("polardb", "2017-08-01", "ModifyDBCluster") {
setMethod(HttpRequest::Method::Post);
}
ModifyDBClusterRequest::~ModifyDBClusterRequest() {}
long ModifyDBClusterRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ModifyDBClusterRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ModifyDBClusterRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ModifyDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ModifyDBClusterRequest::getStandbyHAMode() const {
return standbyHAMode_;
}
void ModifyDBClusterRequest::setStandbyHAMode(const std::string &standbyHAMode) {
standbyHAMode_ = standbyHAMode;
setParameter(std::string("StandbyHAMode"), standbyHAMode);
}
std::string ModifyDBClusterRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ModifyDBClusterRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ModifyDBClusterRequest::getDBClusterId() const {
return dBClusterId_;
}
void ModifyDBClusterRequest::setDBClusterId(const std::string &dBClusterId) {
dBClusterId_ = dBClusterId;
setParameter(std::string("DBClusterId"), dBClusterId);
}
std::string ModifyDBClusterRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ModifyDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string ModifyDBClusterRequest::getFaultSimulateMode() const {
return faultSimulateMode_;
}
void ModifyDBClusterRequest::setFaultSimulateMode(const std::string &faultSimulateMode) {
faultSimulateMode_ = faultSimulateMode;
setParameter(std::string("FaultSimulateMode"), faultSimulateMode);
}
long ModifyDBClusterRequest::getOwnerId() const {
return ownerId_;
}
void ModifyDBClusterRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ModifyDBClusterRequest::getDataSyncMode() const {
return dataSyncMode_;
}
void ModifyDBClusterRequest::setDataSyncMode(const std::string &dataSyncMode) {
dataSyncMode_ = dataSyncMode;
setParameter(std::string("DataSyncMode"), dataSyncMode);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/polardb/model/ModifyDBClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
ModifyDBClusterResult::ModifyDBClusterResult() :
ServiceResult()
{}
ModifyDBClusterResult::ModifyDBClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDBClusterResult::~ModifyDBClusterResult()
{}
void ModifyDBClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string ModifyDBClusterResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string ModifyDBClusterResult::getOrderId()const
{
return orderId_;
}

View File

@@ -29,6 +29,8 @@ set(rds_public_header_model
include/alibabacloud/rds/model/AllocateInstancePublicConnectionResult.h
include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionRequest.h
include/alibabacloud/rds/model/AllocateReadWriteSplittingConnectionResult.h
include/alibabacloud/rds/model/AttachWhitelistTemplateToInstanceRequest.h
include/alibabacloud/rds/model/AttachWhitelistTemplateToInstanceResult.h
include/alibabacloud/rds/model/CalculateDBInstanceWeightRequest.h
include/alibabacloud/rds/model/CalculateDBInstanceWeightResult.h
include/alibabacloud/rds/model/CancelImportRequest.h
@@ -91,6 +93,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 +127,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
@@ -139,6 +145,8 @@ set(rds_public_header_model
include/alibabacloud/rds/model/DescribeActionEventPolicyResult.h
include/alibabacloud/rds/model/DescribeActiveOperationTasksRequest.h
include/alibabacloud/rds/model/DescribeActiveOperationTasksResult.h
include/alibabacloud/rds/model/DescribeAllWhitelistTemplateRequest.h
include/alibabacloud/rds/model/DescribeAllWhitelistTemplateResult.h
include/alibabacloud/rds/model/DescribeAnalyticdbByPrimaryDBInstanceRequest.h
include/alibabacloud/rds/model/DescribeAnalyticdbByPrimaryDBInstanceResult.h
include/alibabacloud/rds/model/DescribeAvailableClassesRequest.h
@@ -263,6 +271,8 @@ set(rds_public_header_model
include/alibabacloud/rds/model/DescribeInstanceCrossBackupPolicyResult.h
include/alibabacloud/rds/model/DescribeInstanceKeywordsRequest.h
include/alibabacloud/rds/model/DescribeInstanceKeywordsResult.h
include/alibabacloud/rds/model/DescribeInstanceLinkedWhitelistTemplateRequest.h
include/alibabacloud/rds/model/DescribeInstanceLinkedWhitelistTemplateResult.h
include/alibabacloud/rds/model/DescribeLocalAvailableRecoveryTimeRequest.h
include/alibabacloud/rds/model/DescribeLocalAvailableRecoveryTimeResult.h
include/alibabacloud/rds/model/DescribeLogBackupFilesRequest.h
@@ -289,6 +299,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
@@ -335,10 +347,16 @@ set(rds_public_header_model
include/alibabacloud/rds/model/DescribeUpgradeMajorVersionTasksResult.h
include/alibabacloud/rds/model/DescribeVSwitchesRequest.h
include/alibabacloud/rds/model/DescribeVSwitchesResult.h
include/alibabacloud/rds/model/DescribeWhitelistTemplateRequest.h
include/alibabacloud/rds/model/DescribeWhitelistTemplateResult.h
include/alibabacloud/rds/model/DescribeWhitelistTemplateLinkedInstanceRequest.h
include/alibabacloud/rds/model/DescribeWhitelistTemplateLinkedInstanceResult.h
include/alibabacloud/rds/model/DestroyDBInstanceRequest.h
include/alibabacloud/rds/model/DestroyDBInstanceResult.h
include/alibabacloud/rds/model/DetachGadInstanceMemberRequest.h
include/alibabacloud/rds/model/DetachGadInstanceMemberResult.h
include/alibabacloud/rds/model/DetachWhitelistTemplateToInstanceRequest.h
include/alibabacloud/rds/model/DetachWhitelistTemplateToInstanceResult.h
include/alibabacloud/rds/model/GetDBInstanceTopologyRequest.h
include/alibabacloud/rds/model/GetDBInstanceTopologyResult.h
include/alibabacloud/rds/model/GetDbProxyInstanceSslRequest.h
@@ -463,6 +481,8 @@ set(rds_public_header_model
include/alibabacloud/rds/model/ModifySecurityGroupConfigurationResult.h
include/alibabacloud/rds/model/ModifySecurityIpsRequest.h
include/alibabacloud/rds/model/ModifySecurityIpsResult.h
include/alibabacloud/rds/model/ModifyWhitelistTemplateRequest.h
include/alibabacloud/rds/model/ModifyWhitelistTemplateResult.h
include/alibabacloud/rds/model/PurgeDBInstanceLogRequest.h
include/alibabacloud/rds/model/PurgeDBInstanceLogResult.h
include/alibabacloud/rds/model/QueryNotifyRequest.h
@@ -519,6 +539,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
@@ -542,6 +564,8 @@ set(rds_src
src/model/AllocateInstancePublicConnectionResult.cc
src/model/AllocateReadWriteSplittingConnectionRequest.cc
src/model/AllocateReadWriteSplittingConnectionResult.cc
src/model/AttachWhitelistTemplateToInstanceRequest.cc
src/model/AttachWhitelistTemplateToInstanceResult.cc
src/model/CalculateDBInstanceWeightRequest.cc
src/model/CalculateDBInstanceWeightResult.cc
src/model/CancelImportRequest.cc
@@ -604,6 +628,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 +662,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
@@ -652,6 +680,8 @@ set(rds_src
src/model/DescribeActionEventPolicyResult.cc
src/model/DescribeActiveOperationTasksRequest.cc
src/model/DescribeActiveOperationTasksResult.cc
src/model/DescribeAllWhitelistTemplateRequest.cc
src/model/DescribeAllWhitelistTemplateResult.cc
src/model/DescribeAnalyticdbByPrimaryDBInstanceRequest.cc
src/model/DescribeAnalyticdbByPrimaryDBInstanceResult.cc
src/model/DescribeAvailableClassesRequest.cc
@@ -776,6 +806,8 @@ set(rds_src
src/model/DescribeInstanceCrossBackupPolicyResult.cc
src/model/DescribeInstanceKeywordsRequest.cc
src/model/DescribeInstanceKeywordsResult.cc
src/model/DescribeInstanceLinkedWhitelistTemplateRequest.cc
src/model/DescribeInstanceLinkedWhitelistTemplateResult.cc
src/model/DescribeLocalAvailableRecoveryTimeRequest.cc
src/model/DescribeLocalAvailableRecoveryTimeResult.cc
src/model/DescribeLogBackupFilesRequest.cc
@@ -802,6 +834,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
@@ -848,10 +882,16 @@ set(rds_src
src/model/DescribeUpgradeMajorVersionTasksResult.cc
src/model/DescribeVSwitchesRequest.cc
src/model/DescribeVSwitchesResult.cc
src/model/DescribeWhitelistTemplateRequest.cc
src/model/DescribeWhitelistTemplateResult.cc
src/model/DescribeWhitelistTemplateLinkedInstanceRequest.cc
src/model/DescribeWhitelistTemplateLinkedInstanceResult.cc
src/model/DestroyDBInstanceRequest.cc
src/model/DestroyDBInstanceResult.cc
src/model/DetachGadInstanceMemberRequest.cc
src/model/DetachGadInstanceMemberResult.cc
src/model/DetachWhitelistTemplateToInstanceRequest.cc
src/model/DetachWhitelistTemplateToInstanceResult.cc
src/model/GetDBInstanceTopologyRequest.cc
src/model/GetDBInstanceTopologyResult.cc
src/model/GetDbProxyInstanceSslRequest.cc
@@ -976,6 +1016,8 @@ set(rds_src
src/model/ModifySecurityGroupConfigurationResult.cc
src/model/ModifySecurityIpsRequest.cc
src/model/ModifySecurityIpsResult.cc
src/model/ModifyWhitelistTemplateRequest.cc
src/model/ModifyWhitelistTemplateResult.cc
src/model/PurgeDBInstanceLogRequest.cc
src/model/PurgeDBInstanceLogResult.cc
src/model/QueryNotifyRequest.cc
@@ -1032,6 +1074,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

View File

@@ -30,6 +30,8 @@
#include "model/AllocateInstancePublicConnectionResult.h"
#include "model/AllocateReadWriteSplittingConnectionRequest.h"
#include "model/AllocateReadWriteSplittingConnectionResult.h"
#include "model/AttachWhitelistTemplateToInstanceRequest.h"
#include "model/AttachWhitelistTemplateToInstanceResult.h"
#include "model/CalculateDBInstanceWeightRequest.h"
#include "model/CalculateDBInstanceWeightResult.h"
#include "model/CancelImportRequest.h"
@@ -92,6 +94,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 +128,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"
@@ -140,6 +146,8 @@
#include "model/DescribeActionEventPolicyResult.h"
#include "model/DescribeActiveOperationTasksRequest.h"
#include "model/DescribeActiveOperationTasksResult.h"
#include "model/DescribeAllWhitelistTemplateRequest.h"
#include "model/DescribeAllWhitelistTemplateResult.h"
#include "model/DescribeAnalyticdbByPrimaryDBInstanceRequest.h"
#include "model/DescribeAnalyticdbByPrimaryDBInstanceResult.h"
#include "model/DescribeAvailableClassesRequest.h"
@@ -264,6 +272,8 @@
#include "model/DescribeInstanceCrossBackupPolicyResult.h"
#include "model/DescribeInstanceKeywordsRequest.h"
#include "model/DescribeInstanceKeywordsResult.h"
#include "model/DescribeInstanceLinkedWhitelistTemplateRequest.h"
#include "model/DescribeInstanceLinkedWhitelistTemplateResult.h"
#include "model/DescribeLocalAvailableRecoveryTimeRequest.h"
#include "model/DescribeLocalAvailableRecoveryTimeResult.h"
#include "model/DescribeLogBackupFilesRequest.h"
@@ -290,6 +300,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"
@@ -336,10 +348,16 @@
#include "model/DescribeUpgradeMajorVersionTasksResult.h"
#include "model/DescribeVSwitchesRequest.h"
#include "model/DescribeVSwitchesResult.h"
#include "model/DescribeWhitelistTemplateRequest.h"
#include "model/DescribeWhitelistTemplateResult.h"
#include "model/DescribeWhitelistTemplateLinkedInstanceRequest.h"
#include "model/DescribeWhitelistTemplateLinkedInstanceResult.h"
#include "model/DestroyDBInstanceRequest.h"
#include "model/DestroyDBInstanceResult.h"
#include "model/DetachGadInstanceMemberRequest.h"
#include "model/DetachGadInstanceMemberResult.h"
#include "model/DetachWhitelistTemplateToInstanceRequest.h"
#include "model/DetachWhitelistTemplateToInstanceResult.h"
#include "model/GetDBInstanceTopologyRequest.h"
#include "model/GetDBInstanceTopologyResult.h"
#include "model/GetDbProxyInstanceSslRequest.h"
@@ -464,6 +482,8 @@
#include "model/ModifySecurityGroupConfigurationResult.h"
#include "model/ModifySecurityIpsRequest.h"
#include "model/ModifySecurityIpsResult.h"
#include "model/ModifyWhitelistTemplateRequest.h"
#include "model/ModifyWhitelistTemplateResult.h"
#include "model/PurgeDBInstanceLogRequest.h"
#include "model/PurgeDBInstanceLogResult.h"
#include "model/QueryNotifyRequest.h"
@@ -520,6 +540,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"
@@ -553,6 +575,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::AllocateReadWriteSplittingConnectionResult> AllocateReadWriteSplittingConnectionOutcome;
typedef std::future<AllocateReadWriteSplittingConnectionOutcome> AllocateReadWriteSplittingConnectionOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::AllocateReadWriteSplittingConnectionRequest&, const AllocateReadWriteSplittingConnectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateReadWriteSplittingConnectionAsyncHandler;
typedef Outcome<Error, Model::AttachWhitelistTemplateToInstanceResult> AttachWhitelistTemplateToInstanceOutcome;
typedef std::future<AttachWhitelistTemplateToInstanceOutcome> AttachWhitelistTemplateToInstanceOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::AttachWhitelistTemplateToInstanceRequest&, const AttachWhitelistTemplateToInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AttachWhitelistTemplateToInstanceAsyncHandler;
typedef Outcome<Error, Model::CalculateDBInstanceWeightResult> CalculateDBInstanceWeightOutcome;
typedef std::future<CalculateDBInstanceWeightOutcome> CalculateDBInstanceWeightOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::CalculateDBInstanceWeightRequest&, const CalculateDBInstanceWeightOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CalculateDBInstanceWeightAsyncHandler;
@@ -646,6 +671,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 +722,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;
@@ -718,6 +749,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeActiveOperationTasksResult> DescribeActiveOperationTasksOutcome;
typedef std::future<DescribeActiveOperationTasksOutcome> DescribeActiveOperationTasksOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeActiveOperationTasksRequest&, const DescribeActiveOperationTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeActiveOperationTasksAsyncHandler;
typedef Outcome<Error, Model::DescribeAllWhitelistTemplateResult> DescribeAllWhitelistTemplateOutcome;
typedef std::future<DescribeAllWhitelistTemplateOutcome> DescribeAllWhitelistTemplateOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeAllWhitelistTemplateRequest&, const DescribeAllWhitelistTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAllWhitelistTemplateAsyncHandler;
typedef Outcome<Error, Model::DescribeAnalyticdbByPrimaryDBInstanceResult> DescribeAnalyticdbByPrimaryDBInstanceOutcome;
typedef std::future<DescribeAnalyticdbByPrimaryDBInstanceOutcome> DescribeAnalyticdbByPrimaryDBInstanceOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeAnalyticdbByPrimaryDBInstanceRequest&, const DescribeAnalyticdbByPrimaryDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAnalyticdbByPrimaryDBInstanceAsyncHandler;
@@ -904,6 +938,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeInstanceKeywordsResult> DescribeInstanceKeywordsOutcome;
typedef std::future<DescribeInstanceKeywordsOutcome> DescribeInstanceKeywordsOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeInstanceKeywordsRequest&, const DescribeInstanceKeywordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceKeywordsAsyncHandler;
typedef Outcome<Error, Model::DescribeInstanceLinkedWhitelistTemplateResult> DescribeInstanceLinkedWhitelistTemplateOutcome;
typedef std::future<DescribeInstanceLinkedWhitelistTemplateOutcome> DescribeInstanceLinkedWhitelistTemplateOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeInstanceLinkedWhitelistTemplateRequest&, const DescribeInstanceLinkedWhitelistTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceLinkedWhitelistTemplateAsyncHandler;
typedef Outcome<Error, Model::DescribeLocalAvailableRecoveryTimeResult> DescribeLocalAvailableRecoveryTimeOutcome;
typedef std::future<DescribeLocalAvailableRecoveryTimeOutcome> DescribeLocalAvailableRecoveryTimeOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeLocalAvailableRecoveryTimeRequest&, const DescribeLocalAvailableRecoveryTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLocalAvailableRecoveryTimeAsyncHandler;
@@ -943,6 +980,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;
@@ -1012,12 +1052,21 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
typedef Outcome<Error, Model::DescribeWhitelistTemplateResult> DescribeWhitelistTemplateOutcome;
typedef std::future<DescribeWhitelistTemplateOutcome> DescribeWhitelistTemplateOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeWhitelistTemplateRequest&, const DescribeWhitelistTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistTemplateAsyncHandler;
typedef Outcome<Error, Model::DescribeWhitelistTemplateLinkedInstanceResult> DescribeWhitelistTemplateLinkedInstanceOutcome;
typedef std::future<DescribeWhitelistTemplateLinkedInstanceOutcome> DescribeWhitelistTemplateLinkedInstanceOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DescribeWhitelistTemplateLinkedInstanceRequest&, const DescribeWhitelistTemplateLinkedInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistTemplateLinkedInstanceAsyncHandler;
typedef Outcome<Error, Model::DestroyDBInstanceResult> DestroyDBInstanceOutcome;
typedef std::future<DestroyDBInstanceOutcome> DestroyDBInstanceOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DestroyDBInstanceRequest&, const DestroyDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DestroyDBInstanceAsyncHandler;
typedef Outcome<Error, Model::DetachGadInstanceMemberResult> DetachGadInstanceMemberOutcome;
typedef std::future<DetachGadInstanceMemberOutcome> DetachGadInstanceMemberOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DetachGadInstanceMemberRequest&, const DetachGadInstanceMemberOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachGadInstanceMemberAsyncHandler;
typedef Outcome<Error, Model::DetachWhitelistTemplateToInstanceResult> DetachWhitelistTemplateToInstanceOutcome;
typedef std::future<DetachWhitelistTemplateToInstanceOutcome> DetachWhitelistTemplateToInstanceOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::DetachWhitelistTemplateToInstanceRequest&, const DetachWhitelistTemplateToInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetachWhitelistTemplateToInstanceAsyncHandler;
typedef Outcome<Error, Model::GetDBInstanceTopologyResult> GetDBInstanceTopologyOutcome;
typedef std::future<GetDBInstanceTopologyOutcome> GetDBInstanceTopologyOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::GetDBInstanceTopologyRequest&, const GetDBInstanceTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBInstanceTopologyAsyncHandler;
@@ -1204,6 +1253,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifySecurityIpsResult> ModifySecurityIpsOutcome;
typedef std::future<ModifySecurityIpsOutcome> ModifySecurityIpsOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::ModifySecurityIpsRequest&, const ModifySecurityIpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySecurityIpsAsyncHandler;
typedef Outcome<Error, Model::ModifyWhitelistTemplateResult> ModifyWhitelistTemplateOutcome;
typedef std::future<ModifyWhitelistTemplateOutcome> ModifyWhitelistTemplateOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::ModifyWhitelistTemplateRequest&, const ModifyWhitelistTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyWhitelistTemplateAsyncHandler;
typedef Outcome<Error, Model::PurgeDBInstanceLogResult> PurgeDBInstanceLogOutcome;
typedef std::future<PurgeDBInstanceLogOutcome> PurgeDBInstanceLogOutcomeCallable;
typedef std::function<void(const RdsClient*, const Model::PurgeDBInstanceLogRequest&, const PurgeDBInstanceLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PurgeDBInstanceLogAsyncHandler;
@@ -1288,6 +1340,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;
@@ -1323,6 +1378,9 @@ namespace AlibabaCloud
AllocateReadWriteSplittingConnectionOutcome allocateReadWriteSplittingConnection(const Model::AllocateReadWriteSplittingConnectionRequest &request)const;
void allocateReadWriteSplittingConnectionAsync(const Model::AllocateReadWriteSplittingConnectionRequest& request, const AllocateReadWriteSplittingConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AllocateReadWriteSplittingConnectionOutcomeCallable allocateReadWriteSplittingConnectionCallable(const Model::AllocateReadWriteSplittingConnectionRequest& request) const;
AttachWhitelistTemplateToInstanceOutcome attachWhitelistTemplateToInstance(const Model::AttachWhitelistTemplateToInstanceRequest &request)const;
void attachWhitelistTemplateToInstanceAsync(const Model::AttachWhitelistTemplateToInstanceRequest& request, const AttachWhitelistTemplateToInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AttachWhitelistTemplateToInstanceOutcomeCallable attachWhitelistTemplateToInstanceCallable(const Model::AttachWhitelistTemplateToInstanceRequest& request) const;
CalculateDBInstanceWeightOutcome calculateDBInstanceWeight(const Model::CalculateDBInstanceWeightRequest &request)const;
void calculateDBInstanceWeightAsync(const Model::CalculateDBInstanceWeightRequest& request, const CalculateDBInstanceWeightAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CalculateDBInstanceWeightOutcomeCallable calculateDBInstanceWeightCallable(const Model::CalculateDBInstanceWeightRequest& request) const;
@@ -1416,6 +1474,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 +1525,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;
@@ -1488,6 +1552,9 @@ namespace AlibabaCloud
DescribeActiveOperationTasksOutcome describeActiveOperationTasks(const Model::DescribeActiveOperationTasksRequest &request)const;
void describeActiveOperationTasksAsync(const Model::DescribeActiveOperationTasksRequest& request, const DescribeActiveOperationTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeActiveOperationTasksOutcomeCallable describeActiveOperationTasksCallable(const Model::DescribeActiveOperationTasksRequest& request) const;
DescribeAllWhitelistTemplateOutcome describeAllWhitelistTemplate(const Model::DescribeAllWhitelistTemplateRequest &request)const;
void describeAllWhitelistTemplateAsync(const Model::DescribeAllWhitelistTemplateRequest& request, const DescribeAllWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAllWhitelistTemplateOutcomeCallable describeAllWhitelistTemplateCallable(const Model::DescribeAllWhitelistTemplateRequest& request) const;
DescribeAnalyticdbByPrimaryDBInstanceOutcome describeAnalyticdbByPrimaryDBInstance(const Model::DescribeAnalyticdbByPrimaryDBInstanceRequest &request)const;
void describeAnalyticdbByPrimaryDBInstanceAsync(const Model::DescribeAnalyticdbByPrimaryDBInstanceRequest& request, const DescribeAnalyticdbByPrimaryDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAnalyticdbByPrimaryDBInstanceOutcomeCallable describeAnalyticdbByPrimaryDBInstanceCallable(const Model::DescribeAnalyticdbByPrimaryDBInstanceRequest& request) const;
@@ -1674,6 +1741,9 @@ namespace AlibabaCloud
DescribeInstanceKeywordsOutcome describeInstanceKeywords(const Model::DescribeInstanceKeywordsRequest &request)const;
void describeInstanceKeywordsAsync(const Model::DescribeInstanceKeywordsRequest& request, const DescribeInstanceKeywordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceKeywordsOutcomeCallable describeInstanceKeywordsCallable(const Model::DescribeInstanceKeywordsRequest& request) const;
DescribeInstanceLinkedWhitelistTemplateOutcome describeInstanceLinkedWhitelistTemplate(const Model::DescribeInstanceLinkedWhitelistTemplateRequest &request)const;
void describeInstanceLinkedWhitelistTemplateAsync(const Model::DescribeInstanceLinkedWhitelistTemplateRequest& request, const DescribeInstanceLinkedWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeInstanceLinkedWhitelistTemplateOutcomeCallable describeInstanceLinkedWhitelistTemplateCallable(const Model::DescribeInstanceLinkedWhitelistTemplateRequest& request) const;
DescribeLocalAvailableRecoveryTimeOutcome describeLocalAvailableRecoveryTime(const Model::DescribeLocalAvailableRecoveryTimeRequest &request)const;
void describeLocalAvailableRecoveryTimeAsync(const Model::DescribeLocalAvailableRecoveryTimeRequest& request, const DescribeLocalAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeLocalAvailableRecoveryTimeOutcomeCallable describeLocalAvailableRecoveryTimeCallable(const Model::DescribeLocalAvailableRecoveryTimeRequest& request) const;
@@ -1713,6 +1783,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;
@@ -1782,12 +1855,21 @@ namespace AlibabaCloud
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
DescribeWhitelistTemplateOutcome describeWhitelistTemplate(const Model::DescribeWhitelistTemplateRequest &request)const;
void describeWhitelistTemplateAsync(const Model::DescribeWhitelistTemplateRequest& request, const DescribeWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeWhitelistTemplateOutcomeCallable describeWhitelistTemplateCallable(const Model::DescribeWhitelistTemplateRequest& request) const;
DescribeWhitelistTemplateLinkedInstanceOutcome describeWhitelistTemplateLinkedInstance(const Model::DescribeWhitelistTemplateLinkedInstanceRequest &request)const;
void describeWhitelistTemplateLinkedInstanceAsync(const Model::DescribeWhitelistTemplateLinkedInstanceRequest& request, const DescribeWhitelistTemplateLinkedInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeWhitelistTemplateLinkedInstanceOutcomeCallable describeWhitelistTemplateLinkedInstanceCallable(const Model::DescribeWhitelistTemplateLinkedInstanceRequest& request) const;
DestroyDBInstanceOutcome destroyDBInstance(const Model::DestroyDBInstanceRequest &request)const;
void destroyDBInstanceAsync(const Model::DestroyDBInstanceRequest& request, const DestroyDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DestroyDBInstanceOutcomeCallable destroyDBInstanceCallable(const Model::DestroyDBInstanceRequest& request) const;
DetachGadInstanceMemberOutcome detachGadInstanceMember(const Model::DetachGadInstanceMemberRequest &request)const;
void detachGadInstanceMemberAsync(const Model::DetachGadInstanceMemberRequest& request, const DetachGadInstanceMemberAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachGadInstanceMemberOutcomeCallable detachGadInstanceMemberCallable(const Model::DetachGadInstanceMemberRequest& request) const;
DetachWhitelistTemplateToInstanceOutcome detachWhitelistTemplateToInstance(const Model::DetachWhitelistTemplateToInstanceRequest &request)const;
void detachWhitelistTemplateToInstanceAsync(const Model::DetachWhitelistTemplateToInstanceRequest& request, const DetachWhitelistTemplateToInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetachWhitelistTemplateToInstanceOutcomeCallable detachWhitelistTemplateToInstanceCallable(const Model::DetachWhitelistTemplateToInstanceRequest& request) const;
GetDBInstanceTopologyOutcome getDBInstanceTopology(const Model::GetDBInstanceTopologyRequest &request)const;
void getDBInstanceTopologyAsync(const Model::GetDBInstanceTopologyRequest& request, const GetDBInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDBInstanceTopologyOutcomeCallable getDBInstanceTopologyCallable(const Model::GetDBInstanceTopologyRequest& request) const;
@@ -1974,6 +2056,9 @@ namespace AlibabaCloud
ModifySecurityIpsOutcome modifySecurityIps(const Model::ModifySecurityIpsRequest &request)const;
void modifySecurityIpsAsync(const Model::ModifySecurityIpsRequest& request, const ModifySecurityIpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifySecurityIpsOutcomeCallable modifySecurityIpsCallable(const Model::ModifySecurityIpsRequest& request) const;
ModifyWhitelistTemplateOutcome modifyWhitelistTemplate(const Model::ModifyWhitelistTemplateRequest &request)const;
void modifyWhitelistTemplateAsync(const Model::ModifyWhitelistTemplateRequest& request, const ModifyWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyWhitelistTemplateOutcomeCallable modifyWhitelistTemplateCallable(const Model::ModifyWhitelistTemplateRequest& request) const;
PurgeDBInstanceLogOutcome purgeDBInstanceLog(const Model::PurgeDBInstanceLogRequest &request)const;
void purgeDBInstanceLogAsync(const Model::PurgeDBInstanceLogRequest& request, const PurgeDBInstanceLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
PurgeDBInstanceLogOutcomeCallable purgeDBInstanceLogCallable(const Model::PurgeDBInstanceLogRequest& request) const;
@@ -2058,6 +2143,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;

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCEREQUEST_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 AttachWhitelistTemplateToInstanceRequest : public RpcServiceRequest {
public:
AttachWhitelistTemplateToInstanceRequest();
~AttachWhitelistTemplateToInstanceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getTemplateId() const;
void setTemplateId(int templateId);
std::string getInsName() const;
void setInsName(const std::string &insName);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
int templateId_;
std::string insName_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCEREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCERESULT_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 AttachWhitelistTemplateToInstanceResult : public ServiceResult
{
public:
struct Data
{
std::string status;
};
AttachWhitelistTemplateToInstanceResult();
explicit AttachWhitelistTemplateToInstanceResult(const std::string &payload);
~AttachWhitelistTemplateToInstanceResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_ATTACHWHITELISTTEMPLATETOINSTANCERESULT_H_

View File

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

View File

@@ -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_

View File

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

View File

@@ -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_

View File

@@ -0,0 +1,57 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATEREQUEST_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 DescribeAllWhitelistTemplateRequest : public RpcServiceRequest {
public:
DescribeAllWhitelistTemplateRequest();
~DescribeAllWhitelistTemplateRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumbers() const;
void setPageNumbers(int pageNumbers);
std::string getTemplateName() const;
void setTemplateName(const std::string &templateName);
bool getFuzzySearch() const;
void setFuzzySearch(bool fuzzySearch);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getMaxRecordsPerPage() const;
void setMaxRecordsPerPage(int maxRecordsPerPage);
private:
long resourceOwnerId_;
int pageNumbers_;
std::string templateName_;
bool fuzzySearch_;
std::string resourceOwnerAccount_;
int maxRecordsPerPage_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATERESULT_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 DescribeAllWhitelistTemplateResult : public ServiceResult
{
public:
struct Data
{
struct _Template
{
int userId;
std::string templateName;
int id;
std::string ips;
int templateId;
};
int maxRecordsPerPage;
std::vector<_Template> templates;
int totalRecords;
int totalPageNumbers;
bool hasPrev;
int currPageNumbers;
bool hasNext;
};
DescribeAllWhitelistTemplateResult();
explicit DescribeAllWhitelistTemplateResult(const std::string &payload);
~DescribeAllWhitelistTemplateResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEALLWHITELISTTEMPLATERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATEREQUEST_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 DescribeInstanceLinkedWhitelistTemplateRequest : public RpcServiceRequest {
public:
DescribeInstanceLinkedWhitelistTemplateRequest();
~DescribeInstanceLinkedWhitelistTemplateRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
std::string getInsName() const;
void setInsName(const std::string &insName);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string insName_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATERESULT_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 DescribeInstanceLinkedWhitelistTemplateResult : public ServiceResult
{
public:
struct Data
{
struct _Template
{
int userId;
std::string templateName;
int id;
std::string ips;
int templateId;
};
std::vector<_Template> templates;
std::string insName;
};
DescribeInstanceLinkedWhitelistTemplateResult();
explicit DescribeInstanceLinkedWhitelistTemplateResult(const std::string &payload);
~DescribeInstanceLinkedWhitelistTemplateResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEINSTANCELINKEDWHITELISTTEMPLATERESULT_H_

View File

@@ -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_

View File

@@ -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_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCEREQUEST_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 DescribeWhitelistTemplateLinkedInstanceRequest : public RpcServiceRequest {
public:
DescribeWhitelistTemplateLinkedInstanceRequest();
~DescribeWhitelistTemplateLinkedInstanceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getTemplateId() const;
void setTemplateId(int templateId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
int templateId_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCEREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCERESULT_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 DescribeWhitelistTemplateLinkedInstanceResult : public ServiceResult
{
public:
struct Data
{
std::vector<std::string> insName;
int templateId;
};
DescribeWhitelistTemplateLinkedInstanceResult();
explicit DescribeWhitelistTemplateLinkedInstanceResult(const std::string &payload);
~DescribeWhitelistTemplateLinkedInstanceResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATELINKEDINSTANCERESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATEREQUEST_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 DescribeWhitelistTemplateRequest : public RpcServiceRequest {
public:
DescribeWhitelistTemplateRequest();
~DescribeWhitelistTemplateRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getTemplateId() const;
void setTemplateId(int templateId);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
int templateId_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATERESULT_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 DescribeWhitelistTemplateResult : public ServiceResult
{
public:
struct Data
{
struct _Template
{
int userId;
std::string templateName;
int id;
std::string ips;
int templateId;
};
_Template _template;
};
DescribeWhitelistTemplateResult();
explicit DescribeWhitelistTemplateResult(const std::string &payload);
~DescribeWhitelistTemplateResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEWHITELISTTEMPLATERESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCEREQUEST_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 DetachWhitelistTemplateToInstanceRequest : public RpcServiceRequest {
public:
DetachWhitelistTemplateToInstanceRequest();
~DetachWhitelistTemplateToInstanceRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getTemplateId() const;
void setTemplateId(int templateId);
std::string getInsName() const;
void setInsName(const std::string &insName);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
int templateId_;
std::string insName_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCEREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCERESULT_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 DetachWhitelistTemplateToInstanceResult : public ServiceResult
{
public:
struct Data
{
std::string status;
};
DetachWhitelistTemplateToInstanceResult();
explicit DetachWhitelistTemplateToInstanceResult(const std::string &payload);
~DetachWhitelistTemplateToInstanceResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_DETACHWHITELISTTEMPLATETOINSTANCERESULT_H_

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATEREQUEST_H_
#define ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATEREQUEST_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 ModifyWhitelistTemplateRequest : public RpcServiceRequest {
public:
ModifyWhitelistTemplateRequest();
~ModifyWhitelistTemplateRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount() const;
void setResourceOwnerAccount(const std::string &resourceOwnerAccount);
int getTemplateId() const;
void setTemplateId(int templateId);
std::string getTemplateName() const;
void setTemplateName(const std::string &templateName);
std::string getIpWhitelist() const;
void setIpWhitelist(const std::string &ipWhitelist);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
int templateId_;
std::string templateName_;
std::string ipWhitelist_;
};
} // namespace Model
} // namespace Rds
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATEREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATERESULT_H_
#define ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATERESULT_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 ModifyWhitelistTemplateResult : public ServiceResult
{
public:
struct Data
{
std::string status;
};
ModifyWhitelistTemplateResult();
explicit ModifyWhitelistTemplateResult(const std::string &payload);
~ModifyWhitelistTemplateResult();
std::string getMessage()const;
int getHttpStatusCode()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
int httpStatusCode_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYWHITELISTTEMPLATERESULT_H_

View File

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

View File

@@ -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_

View File

@@ -195,6 +195,42 @@ RdsClient::AllocateReadWriteSplittingConnectionOutcomeCallable RdsClient::alloca
return task->get_future();
}
RdsClient::AttachWhitelistTemplateToInstanceOutcome RdsClient::attachWhitelistTemplateToInstance(const AttachWhitelistTemplateToInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AttachWhitelistTemplateToInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AttachWhitelistTemplateToInstanceOutcome(AttachWhitelistTemplateToInstanceResult(outcome.result()));
else
return AttachWhitelistTemplateToInstanceOutcome(outcome.error());
}
void RdsClient::attachWhitelistTemplateToInstanceAsync(const AttachWhitelistTemplateToInstanceRequest& request, const AttachWhitelistTemplateToInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, attachWhitelistTemplateToInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::AttachWhitelistTemplateToInstanceOutcomeCallable RdsClient::attachWhitelistTemplateToInstanceCallable(const AttachWhitelistTemplateToInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AttachWhitelistTemplateToInstanceOutcome()>>(
[this, request]()
{
return this->attachWhitelistTemplateToInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::CalculateDBInstanceWeightOutcome RdsClient::calculateDBInstanceWeight(const CalculateDBInstanceWeightRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1311,6 +1347,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 +1959,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();
@@ -2175,6 +2283,42 @@ RdsClient::DescribeActiveOperationTasksOutcomeCallable RdsClient::describeActive
return task->get_future();
}
RdsClient::DescribeAllWhitelistTemplateOutcome RdsClient::describeAllWhitelistTemplate(const DescribeAllWhitelistTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAllWhitelistTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAllWhitelistTemplateOutcome(DescribeAllWhitelistTemplateResult(outcome.result()));
else
return DescribeAllWhitelistTemplateOutcome(outcome.error());
}
void RdsClient::describeAllWhitelistTemplateAsync(const DescribeAllWhitelistTemplateRequest& request, const DescribeAllWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAllWhitelistTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeAllWhitelistTemplateOutcomeCallable RdsClient::describeAllWhitelistTemplateCallable(const DescribeAllWhitelistTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAllWhitelistTemplateOutcome()>>(
[this, request]()
{
return this->describeAllWhitelistTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeAnalyticdbByPrimaryDBInstanceOutcome RdsClient::describeAnalyticdbByPrimaryDBInstance(const DescribeAnalyticdbByPrimaryDBInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4407,6 +4551,42 @@ RdsClient::DescribeInstanceKeywordsOutcomeCallable RdsClient::describeInstanceKe
return task->get_future();
}
RdsClient::DescribeInstanceLinkedWhitelistTemplateOutcome RdsClient::describeInstanceLinkedWhitelistTemplate(const DescribeInstanceLinkedWhitelistTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeInstanceLinkedWhitelistTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeInstanceLinkedWhitelistTemplateOutcome(DescribeInstanceLinkedWhitelistTemplateResult(outcome.result()));
else
return DescribeInstanceLinkedWhitelistTemplateOutcome(outcome.error());
}
void RdsClient::describeInstanceLinkedWhitelistTemplateAsync(const DescribeInstanceLinkedWhitelistTemplateRequest& request, const DescribeInstanceLinkedWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeInstanceLinkedWhitelistTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeInstanceLinkedWhitelistTemplateOutcomeCallable RdsClient::describeInstanceLinkedWhitelistTemplateCallable(const DescribeInstanceLinkedWhitelistTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeInstanceLinkedWhitelistTemplateOutcome()>>(
[this, request]()
{
return this->describeInstanceLinkedWhitelistTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeLocalAvailableRecoveryTimeOutcome RdsClient::describeLocalAvailableRecoveryTime(const DescribeLocalAvailableRecoveryTimeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4875,6 +5055,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();
@@ -5703,6 +5919,78 @@ RdsClient::DescribeVSwitchesOutcomeCallable RdsClient::describeVSwitchesCallable
return task->get_future();
}
RdsClient::DescribeWhitelistTemplateOutcome RdsClient::describeWhitelistTemplate(const DescribeWhitelistTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistTemplateOutcome(DescribeWhitelistTemplateResult(outcome.result()));
else
return DescribeWhitelistTemplateOutcome(outcome.error());
}
void RdsClient::describeWhitelistTemplateAsync(const DescribeWhitelistTemplateRequest& request, const DescribeWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelistTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeWhitelistTemplateOutcomeCallable RdsClient::describeWhitelistTemplateCallable(const DescribeWhitelistTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistTemplateOutcome()>>(
[this, request]()
{
return this->describeWhitelistTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DescribeWhitelistTemplateLinkedInstanceOutcome RdsClient::describeWhitelistTemplateLinkedInstance(const DescribeWhitelistTemplateLinkedInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistTemplateLinkedInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistTemplateLinkedInstanceOutcome(DescribeWhitelistTemplateLinkedInstanceResult(outcome.result()));
else
return DescribeWhitelistTemplateLinkedInstanceOutcome(outcome.error());
}
void RdsClient::describeWhitelistTemplateLinkedInstanceAsync(const DescribeWhitelistTemplateLinkedInstanceRequest& request, const DescribeWhitelistTemplateLinkedInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelistTemplateLinkedInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DescribeWhitelistTemplateLinkedInstanceOutcomeCallable RdsClient::describeWhitelistTemplateLinkedInstanceCallable(const DescribeWhitelistTemplateLinkedInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistTemplateLinkedInstanceOutcome()>>(
[this, request]()
{
return this->describeWhitelistTemplateLinkedInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::DestroyDBInstanceOutcome RdsClient::destroyDBInstance(const DestroyDBInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5775,6 +6063,42 @@ RdsClient::DetachGadInstanceMemberOutcomeCallable RdsClient::detachGadInstanceMe
return task->get_future();
}
RdsClient::DetachWhitelistTemplateToInstanceOutcome RdsClient::detachWhitelistTemplateToInstance(const DetachWhitelistTemplateToInstanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DetachWhitelistTemplateToInstanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DetachWhitelistTemplateToInstanceOutcome(DetachWhitelistTemplateToInstanceResult(outcome.result()));
else
return DetachWhitelistTemplateToInstanceOutcome(outcome.error());
}
void RdsClient::detachWhitelistTemplateToInstanceAsync(const DetachWhitelistTemplateToInstanceRequest& request, const DetachWhitelistTemplateToInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, detachWhitelistTemplateToInstance(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::DetachWhitelistTemplateToInstanceOutcomeCallable RdsClient::detachWhitelistTemplateToInstanceCallable(const DetachWhitelistTemplateToInstanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DetachWhitelistTemplateToInstanceOutcome()>>(
[this, request]()
{
return this->detachWhitelistTemplateToInstance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::GetDBInstanceTopologyOutcome RdsClient::getDBInstanceTopology(const GetDBInstanceTopologyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -8007,6 +8331,42 @@ RdsClient::ModifySecurityIpsOutcomeCallable RdsClient::modifySecurityIpsCallable
return task->get_future();
}
RdsClient::ModifyWhitelistTemplateOutcome RdsClient::modifyWhitelistTemplate(const ModifyWhitelistTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyWhitelistTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyWhitelistTemplateOutcome(ModifyWhitelistTemplateResult(outcome.result()));
else
return ModifyWhitelistTemplateOutcome(outcome.error());
}
void RdsClient::modifyWhitelistTemplateAsync(const ModifyWhitelistTemplateRequest& request, const ModifyWhitelistTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyWhitelistTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
RdsClient::ModifyWhitelistTemplateOutcomeCallable RdsClient::modifyWhitelistTemplateCallable(const ModifyWhitelistTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyWhitelistTemplateOutcome()>>(
[this, request]()
{
return this->modifyWhitelistTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
RdsClient::PurgeDBInstanceLogOutcome RdsClient::purgeDBInstanceLog(const PurgeDBInstanceLogRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -9015,6 +9375,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();

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/AttachWhitelistTemplateToInstanceRequest.h>
using AlibabaCloud::Rds::Model::AttachWhitelistTemplateToInstanceRequest;
AttachWhitelistTemplateToInstanceRequest::AttachWhitelistTemplateToInstanceRequest()
: RpcServiceRequest("rds", "2014-08-15", "AttachWhitelistTemplateToInstance") {
setMethod(HttpRequest::Method::Post);
}
AttachWhitelistTemplateToInstanceRequest::~AttachWhitelistTemplateToInstanceRequest() {}
long AttachWhitelistTemplateToInstanceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void AttachWhitelistTemplateToInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string AttachWhitelistTemplateToInstanceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void AttachWhitelistTemplateToInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
int AttachWhitelistTemplateToInstanceRequest::getTemplateId() const {
return templateId_;
}
void AttachWhitelistTemplateToInstanceRequest::setTemplateId(int templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), std::to_string(templateId));
}
std::string AttachWhitelistTemplateToInstanceRequest::getInsName() const {
return insName_;
}
void AttachWhitelistTemplateToInstanceRequest::setInsName(const std::string &insName) {
insName_ = insName;
setParameter(std::string("InsName"), insName);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/AttachWhitelistTemplateToInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
AttachWhitelistTemplateToInstanceResult::AttachWhitelistTemplateToInstanceResult() :
ServiceResult()
{}
AttachWhitelistTemplateToInstanceResult::AttachWhitelistTemplateToInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AttachWhitelistTemplateToInstanceResult::~AttachWhitelistTemplateToInstanceResult()
{}
void AttachWhitelistTemplateToInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string AttachWhitelistTemplateToInstanceResult::getMessage()const
{
return message_;
}
int AttachWhitelistTemplateToInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
AttachWhitelistTemplateToInstanceResult::Data AttachWhitelistTemplateToInstanceResult::getData()const
{
return data_;
}
std::string AttachWhitelistTemplateToInstanceResult::getCode()const
{
return code_;
}
bool AttachWhitelistTemplateToInstanceResult::getSuccess()const
{
return success_;
}

View 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);
}

View 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());
}

View 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);
}

View 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());
}

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeAllWhitelistTemplateRequest.h>
using AlibabaCloud::Rds::Model::DescribeAllWhitelistTemplateRequest;
DescribeAllWhitelistTemplateRequest::DescribeAllWhitelistTemplateRequest()
: RpcServiceRequest("rds", "2014-08-15", "DescribeAllWhitelistTemplate") {
setMethod(HttpRequest::Method::Post);
}
DescribeAllWhitelistTemplateRequest::~DescribeAllWhitelistTemplateRequest() {}
long DescribeAllWhitelistTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeAllWhitelistTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int DescribeAllWhitelistTemplateRequest::getPageNumbers() const {
return pageNumbers_;
}
void DescribeAllWhitelistTemplateRequest::setPageNumbers(int pageNumbers) {
pageNumbers_ = pageNumbers;
setParameter(std::string("PageNumbers"), std::to_string(pageNumbers));
}
std::string DescribeAllWhitelistTemplateRequest::getTemplateName() const {
return templateName_;
}
void DescribeAllWhitelistTemplateRequest::setTemplateName(const std::string &templateName) {
templateName_ = templateName;
setParameter(std::string("TemplateName"), templateName);
}
bool DescribeAllWhitelistTemplateRequest::getFuzzySearch() const {
return fuzzySearch_;
}
void DescribeAllWhitelistTemplateRequest::setFuzzySearch(bool fuzzySearch) {
fuzzySearch_ = fuzzySearch;
setParameter(std::string("FuzzySearch"), fuzzySearch ? "true" : "false");
}
std::string DescribeAllWhitelistTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeAllWhitelistTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
int DescribeAllWhitelistTemplateRequest::getMaxRecordsPerPage() const {
return maxRecordsPerPage_;
}
void DescribeAllWhitelistTemplateRequest::setMaxRecordsPerPage(int maxRecordsPerPage) {
maxRecordsPerPage_ = maxRecordsPerPage;
setParameter(std::string("MaxRecordsPerPage"), std::to_string(maxRecordsPerPage));
}

View File

@@ -0,0 +1,106 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DescribeAllWhitelistTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeAllWhitelistTemplateResult::DescribeAllWhitelistTemplateResult() :
ServiceResult()
{}
DescribeAllWhitelistTemplateResult::DescribeAllWhitelistTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAllWhitelistTemplateResult::~DescribeAllWhitelistTemplateResult()
{}
void DescribeAllWhitelistTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TotalRecords"].isNull())
data_.totalRecords = std::stoi(dataNode["TotalRecords"].asString());
if(!dataNode["MaxRecordsPerPage"].isNull())
data_.maxRecordsPerPage = std::stoi(dataNode["MaxRecordsPerPage"].asString());
if(!dataNode["CurrPageNumbers"].isNull())
data_.currPageNumbers = std::stoi(dataNode["CurrPageNumbers"].asString());
if(!dataNode["TotalPageNumbers"].isNull())
data_.totalPageNumbers = std::stoi(dataNode["TotalPageNumbers"].asString());
if(!dataNode["HasNext"].isNull())
data_.hasNext = dataNode["HasNext"].asString() == "true";
if(!dataNode["HasPrev"].isNull())
data_.hasPrev = dataNode["HasPrev"].asString() == "true";
auto allTemplatesNode = dataNode["Templates"]["Template"];
for (auto dataNodeTemplatesTemplate : allTemplatesNode)
{
Data::_Template _templateObject;
if(!dataNodeTemplatesTemplate["Id"].isNull())
_templateObject.id = std::stoi(dataNodeTemplatesTemplate["Id"].asString());
if(!dataNodeTemplatesTemplate["UserId"].isNull())
_templateObject.userId = std::stoi(dataNodeTemplatesTemplate["UserId"].asString());
if(!dataNodeTemplatesTemplate["TemplateId"].isNull())
_templateObject.templateId = std::stoi(dataNodeTemplatesTemplate["TemplateId"].asString());
if(!dataNodeTemplatesTemplate["TemplateName"].isNull())
_templateObject.templateName = dataNodeTemplatesTemplate["TemplateName"].asString();
if(!dataNodeTemplatesTemplate["Ips"].isNull())
_templateObject.ips = dataNodeTemplatesTemplate["Ips"].asString();
data_.templates.push_back(_templateObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeAllWhitelistTemplateResult::getMessage()const
{
return message_;
}
int DescribeAllWhitelistTemplateResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeAllWhitelistTemplateResult::Data DescribeAllWhitelistTemplateResult::getData()const
{
return data_;
}
std::string DescribeAllWhitelistTemplateResult::getCode()const
{
return code_;
}
bool DescribeAllWhitelistTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeInstanceLinkedWhitelistTemplateRequest.h>
using AlibabaCloud::Rds::Model::DescribeInstanceLinkedWhitelistTemplateRequest;
DescribeInstanceLinkedWhitelistTemplateRequest::DescribeInstanceLinkedWhitelistTemplateRequest()
: RpcServiceRequest("rds", "2014-08-15", "DescribeInstanceLinkedWhitelistTemplate") {
setMethod(HttpRequest::Method::Post);
}
DescribeInstanceLinkedWhitelistTemplateRequest::~DescribeInstanceLinkedWhitelistTemplateRequest() {}
long DescribeInstanceLinkedWhitelistTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeInstanceLinkedWhitelistTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeInstanceLinkedWhitelistTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeInstanceLinkedWhitelistTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeInstanceLinkedWhitelistTemplateRequest::getInsName() const {
return insName_;
}
void DescribeInstanceLinkedWhitelistTemplateRequest::setInsName(const std::string &insName) {
insName_ = insName;
setParameter(std::string("InsName"), insName);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeInstanceLinkedWhitelistTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeInstanceLinkedWhitelistTemplateResult::DescribeInstanceLinkedWhitelistTemplateResult() :
ServiceResult()
{}
DescribeInstanceLinkedWhitelistTemplateResult::DescribeInstanceLinkedWhitelistTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceLinkedWhitelistTemplateResult::~DescribeInstanceLinkedWhitelistTemplateResult()
{}
void DescribeInstanceLinkedWhitelistTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["InsName"].isNull())
data_.insName = dataNode["InsName"].asString();
auto allTemplatesNode = dataNode["Templates"]["Template"];
for (auto dataNodeTemplatesTemplate : allTemplatesNode)
{
Data::_Template _templateObject;
if(!dataNodeTemplatesTemplate["Id"].isNull())
_templateObject.id = std::stoi(dataNodeTemplatesTemplate["Id"].asString());
if(!dataNodeTemplatesTemplate["UserId"].isNull())
_templateObject.userId = std::stoi(dataNodeTemplatesTemplate["UserId"].asString());
if(!dataNodeTemplatesTemplate["TemplateId"].isNull())
_templateObject.templateId = std::stoi(dataNodeTemplatesTemplate["TemplateId"].asString());
if(!dataNodeTemplatesTemplate["TemplateName"].isNull())
_templateObject.templateName = dataNodeTemplatesTemplate["TemplateName"].asString();
if(!dataNodeTemplatesTemplate["Ips"].isNull())
_templateObject.ips = dataNodeTemplatesTemplate["Ips"].asString();
data_.templates.push_back(_templateObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeInstanceLinkedWhitelistTemplateResult::getMessage()const
{
return message_;
}
int DescribeInstanceLinkedWhitelistTemplateResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeInstanceLinkedWhitelistTemplateResult::Data DescribeInstanceLinkedWhitelistTemplateResult::getData()const
{
return data_;
}
std::string DescribeInstanceLinkedWhitelistTemplateResult::getCode()const
{
return code_;
}
bool DescribeInstanceLinkedWhitelistTemplateResult::getSuccess()const
{
return success_;
}

View 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);
}

View 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_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeWhitelistTemplateLinkedInstanceRequest.h>
using AlibabaCloud::Rds::Model::DescribeWhitelistTemplateLinkedInstanceRequest;
DescribeWhitelistTemplateLinkedInstanceRequest::DescribeWhitelistTemplateLinkedInstanceRequest()
: RpcServiceRequest("rds", "2014-08-15", "DescribeWhitelistTemplateLinkedInstance") {
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistTemplateLinkedInstanceRequest::~DescribeWhitelistTemplateLinkedInstanceRequest() {}
long DescribeWhitelistTemplateLinkedInstanceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeWhitelistTemplateLinkedInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeWhitelistTemplateLinkedInstanceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeWhitelistTemplateLinkedInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
int DescribeWhitelistTemplateLinkedInstanceRequest::getTemplateId() const {
return templateId_;
}
void DescribeWhitelistTemplateLinkedInstanceRequest::setTemplateId(int templateId) {
templateId_ = templateId;
setBodyParameter(std::string("TemplateId"), std::to_string(templateId));
}

View File

@@ -0,0 +1,83 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DescribeWhitelistTemplateLinkedInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeWhitelistTemplateLinkedInstanceResult::DescribeWhitelistTemplateLinkedInstanceResult() :
ServiceResult()
{}
DescribeWhitelistTemplateLinkedInstanceResult::DescribeWhitelistTemplateLinkedInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistTemplateLinkedInstanceResult::~DescribeWhitelistTemplateLinkedInstanceResult()
{}
void DescribeWhitelistTemplateLinkedInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["TemplateId"].isNull())
data_.templateId = std::stoi(dataNode["TemplateId"].asString());
auto allInsName = dataNode["InsName"]["InsName"];
for (auto value : allInsName)
data_.insName.push_back(value.asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeWhitelistTemplateLinkedInstanceResult::getMessage()const
{
return message_;
}
int DescribeWhitelistTemplateLinkedInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeWhitelistTemplateLinkedInstanceResult::Data DescribeWhitelistTemplateLinkedInstanceResult::getData()const
{
return data_;
}
std::string DescribeWhitelistTemplateLinkedInstanceResult::getCode()const
{
return code_;
}
bool DescribeWhitelistTemplateLinkedInstanceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DescribeWhitelistTemplateRequest.h>
using AlibabaCloud::Rds::Model::DescribeWhitelistTemplateRequest;
DescribeWhitelistTemplateRequest::DescribeWhitelistTemplateRequest()
: RpcServiceRequest("rds", "2014-08-15", "DescribeWhitelistTemplate") {
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistTemplateRequest::~DescribeWhitelistTemplateRequest() {}
long DescribeWhitelistTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeWhitelistTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeWhitelistTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeWhitelistTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
int DescribeWhitelistTemplateRequest::getTemplateId() const {
return templateId_;
}
void DescribeWhitelistTemplateRequest::setTemplateId(int templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), std::to_string(templateId));
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DescribeWhitelistTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DescribeWhitelistTemplateResult::DescribeWhitelistTemplateResult() :
ServiceResult()
{}
DescribeWhitelistTemplateResult::DescribeWhitelistTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistTemplateResult::~DescribeWhitelistTemplateResult()
{}
void DescribeWhitelistTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto _templateNode = dataNode["Template"];
if(!_templateNode["Id"].isNull())
data_._template.id = std::stoi(_templateNode["Id"].asString());
if(!_templateNode["UserId"].isNull())
data_._template.userId = std::stoi(_templateNode["UserId"].asString());
if(!_templateNode["TemplateId"].isNull())
data_._template.templateId = std::stoi(_templateNode["TemplateId"].asString());
if(!_templateNode["TemplateName"].isNull())
data_._template.templateName = _templateNode["TemplateName"].asString();
if(!_templateNode["Ips"].isNull())
data_._template.ips = _templateNode["Ips"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DescribeWhitelistTemplateResult::getMessage()const
{
return message_;
}
int DescribeWhitelistTemplateResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DescribeWhitelistTemplateResult::Data DescribeWhitelistTemplateResult::getData()const
{
return data_;
}
std::string DescribeWhitelistTemplateResult::getCode()const
{
return code_;
}
bool DescribeWhitelistTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/rds/model/DetachWhitelistTemplateToInstanceRequest.h>
using AlibabaCloud::Rds::Model::DetachWhitelistTemplateToInstanceRequest;
DetachWhitelistTemplateToInstanceRequest::DetachWhitelistTemplateToInstanceRequest()
: RpcServiceRequest("rds", "2014-08-15", "DetachWhitelistTemplateToInstance") {
setMethod(HttpRequest::Method::Post);
}
DetachWhitelistTemplateToInstanceRequest::~DetachWhitelistTemplateToInstanceRequest() {}
long DetachWhitelistTemplateToInstanceRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DetachWhitelistTemplateToInstanceRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DetachWhitelistTemplateToInstanceRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DetachWhitelistTemplateToInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
int DetachWhitelistTemplateToInstanceRequest::getTemplateId() const {
return templateId_;
}
void DetachWhitelistTemplateToInstanceRequest::setTemplateId(int templateId) {
templateId_ = templateId;
setParameter(std::string("TemplateId"), std::to_string(templateId));
}
std::string DetachWhitelistTemplateToInstanceRequest::getInsName() const {
return insName_;
}
void DetachWhitelistTemplateToInstanceRequest::setInsName(const std::string &insName) {
insName_ = insName;
setParameter(std::string("InsName"), insName);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DetachWhitelistTemplateToInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Rds;
using namespace AlibabaCloud::Rds::Model;
DetachWhitelistTemplateToInstanceResult::DetachWhitelistTemplateToInstanceResult() :
ServiceResult()
{}
DetachWhitelistTemplateToInstanceResult::DetachWhitelistTemplateToInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetachWhitelistTemplateToInstanceResult::~DetachWhitelistTemplateToInstanceResult()
{}
void DetachWhitelistTemplateToInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["Status"].isNull())
data_.status = dataNode["Status"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
std::string DetachWhitelistTemplateToInstanceResult::getMessage()const
{
return message_;
}
int DetachWhitelistTemplateToInstanceResult::getHttpStatusCode()const
{
return httpStatusCode_;
}
DetachWhitelistTemplateToInstanceResult::Data DetachWhitelistTemplateToInstanceResult::getData()const
{
return data_;
}
std::string DetachWhitelistTemplateToInstanceResult::getCode()const
{
return code_;
}
bool DetachWhitelistTemplateToInstanceResult::getSuccess()const
{
return success_;
}

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