Support DescribeDatabases for page query.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2020-12-21 Version: patch
|
||||||
|
- Support DescribeDatabases for page query.
|
||||||
|
- Support DescribeAccounts for page query.
|
||||||
|
|
||||||
2020-12-18 Version: patch
|
2020-12-18 Version: patch
|
||||||
- Support ListRepositories, ListOrganizations, GetUserInfo, ListRepositoryWebhook, DeleteRepositoryWebhook api.
|
- Support ListRepositories, ListOrganizations, GetUserInfo, ListRepositoryWebhook, DeleteRepositoryWebhook api.
|
||||||
- AddWebhook api support SecretToken.
|
- AddWebhook api support SecretToken.
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ set(polardb_public_header_model
|
|||||||
include/alibabacloud/polardb/model/DescribeDetachedBackupsResult.h
|
include/alibabacloud/polardb/model/DescribeDetachedBackupsResult.h
|
||||||
include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h
|
include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h
|
||||||
include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h
|
include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h
|
||||||
include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeRequest.h
|
|
||||||
include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h
|
|
||||||
include/alibabacloud/polardb/model/DescribeLogBackupPolicyRequest.h
|
include/alibabacloud/polardb/model/DescribeLogBackupPolicyRequest.h
|
||||||
include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h
|
include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h
|
||||||
include/alibabacloud/polardb/model/DescribeMetaListRequest.h
|
include/alibabacloud/polardb/model/DescribeMetaListRequest.h
|
||||||
@@ -119,8 +117,6 @@ set(polardb_public_header_model
|
|||||||
include/alibabacloud/polardb/model/DescribeRegionsResult.h
|
include/alibabacloud/polardb/model/DescribeRegionsResult.h
|
||||||
include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h
|
include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h
|
||||||
include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h
|
include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h
|
||||||
include/alibabacloud/polardb/model/DescribeSlowLogsRequest.h
|
|
||||||
include/alibabacloud/polardb/model/DescribeSlowLogsResult.h
|
|
||||||
include/alibabacloud/polardb/model/DescribeTasksRequest.h
|
include/alibabacloud/polardb/model/DescribeTasksRequest.h
|
||||||
include/alibabacloud/polardb/model/DescribeTasksResult.h
|
include/alibabacloud/polardb/model/DescribeTasksResult.h
|
||||||
include/alibabacloud/polardb/model/FailoverDBClusterRequest.h
|
include/alibabacloud/polardb/model/FailoverDBClusterRequest.h
|
||||||
@@ -180,7 +176,9 @@ set(polardb_public_header_model
|
|||||||
include/alibabacloud/polardb/model/TagResourcesRequest.h
|
include/alibabacloud/polardb/model/TagResourcesRequest.h
|
||||||
include/alibabacloud/polardb/model/TagResourcesResult.h
|
include/alibabacloud/polardb/model/TagResourcesResult.h
|
||||||
include/alibabacloud/polardb/model/UntagResourcesRequest.h
|
include/alibabacloud/polardb/model/UntagResourcesRequest.h
|
||||||
include/alibabacloud/polardb/model/UntagResourcesResult.h )
|
include/alibabacloud/polardb/model/UntagResourcesResult.h
|
||||||
|
include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h
|
||||||
|
include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h )
|
||||||
|
|
||||||
set(polardb_src
|
set(polardb_src
|
||||||
src/PolardbClient.cc
|
src/PolardbClient.cc
|
||||||
@@ -268,8 +266,6 @@ set(polardb_src
|
|||||||
src/model/DescribeDetachedBackupsResult.cc
|
src/model/DescribeDetachedBackupsResult.cc
|
||||||
src/model/DescribeGlobalDatabaseNetworksRequest.cc
|
src/model/DescribeGlobalDatabaseNetworksRequest.cc
|
||||||
src/model/DescribeGlobalDatabaseNetworksResult.cc
|
src/model/DescribeGlobalDatabaseNetworksResult.cc
|
||||||
src/model/DescribeLocalAvailableRecoveryTimeRequest.cc
|
|
||||||
src/model/DescribeLocalAvailableRecoveryTimeResult.cc
|
|
||||||
src/model/DescribeLogBackupPolicyRequest.cc
|
src/model/DescribeLogBackupPolicyRequest.cc
|
||||||
src/model/DescribeLogBackupPolicyResult.cc
|
src/model/DescribeLogBackupPolicyResult.cc
|
||||||
src/model/DescribeMetaListRequest.cc
|
src/model/DescribeMetaListRequest.cc
|
||||||
@@ -282,8 +278,6 @@ set(polardb_src
|
|||||||
src/model/DescribeRegionsResult.cc
|
src/model/DescribeRegionsResult.cc
|
||||||
src/model/DescribeSlowLogRecordsRequest.cc
|
src/model/DescribeSlowLogRecordsRequest.cc
|
||||||
src/model/DescribeSlowLogRecordsResult.cc
|
src/model/DescribeSlowLogRecordsResult.cc
|
||||||
src/model/DescribeSlowLogsRequest.cc
|
|
||||||
src/model/DescribeSlowLogsResult.cc
|
|
||||||
src/model/DescribeTasksRequest.cc
|
src/model/DescribeTasksRequest.cc
|
||||||
src/model/DescribeTasksResult.cc
|
src/model/DescribeTasksResult.cc
|
||||||
src/model/FailoverDBClusterRequest.cc
|
src/model/FailoverDBClusterRequest.cc
|
||||||
@@ -343,7 +337,9 @@ set(polardb_src
|
|||||||
src/model/TagResourcesRequest.cc
|
src/model/TagResourcesRequest.cc
|
||||||
src/model/TagResourcesResult.cc
|
src/model/TagResourcesResult.cc
|
||||||
src/model/UntagResourcesRequest.cc
|
src/model/UntagResourcesRequest.cc
|
||||||
src/model/UntagResourcesResult.cc )
|
src/model/UntagResourcesResult.cc
|
||||||
|
src/model/UpgradeDBClusterMinorVersionRequest.cc
|
||||||
|
src/model/UpgradeDBClusterMinorVersionResult.cc )
|
||||||
|
|
||||||
add_library(polardb ${LIB_TYPE}
|
add_library(polardb ${LIB_TYPE}
|
||||||
${polardb_public_header}
|
${polardb_public_header}
|
||||||
|
|||||||
@@ -106,8 +106,6 @@
|
|||||||
#include "model/DescribeDetachedBackupsResult.h"
|
#include "model/DescribeDetachedBackupsResult.h"
|
||||||
#include "model/DescribeGlobalDatabaseNetworksRequest.h"
|
#include "model/DescribeGlobalDatabaseNetworksRequest.h"
|
||||||
#include "model/DescribeGlobalDatabaseNetworksResult.h"
|
#include "model/DescribeGlobalDatabaseNetworksResult.h"
|
||||||
#include "model/DescribeLocalAvailableRecoveryTimeRequest.h"
|
|
||||||
#include "model/DescribeLocalAvailableRecoveryTimeResult.h"
|
|
||||||
#include "model/DescribeLogBackupPolicyRequest.h"
|
#include "model/DescribeLogBackupPolicyRequest.h"
|
||||||
#include "model/DescribeLogBackupPolicyResult.h"
|
#include "model/DescribeLogBackupPolicyResult.h"
|
||||||
#include "model/DescribeMetaListRequest.h"
|
#include "model/DescribeMetaListRequest.h"
|
||||||
@@ -120,8 +118,6 @@
|
|||||||
#include "model/DescribeRegionsResult.h"
|
#include "model/DescribeRegionsResult.h"
|
||||||
#include "model/DescribeSlowLogRecordsRequest.h"
|
#include "model/DescribeSlowLogRecordsRequest.h"
|
||||||
#include "model/DescribeSlowLogRecordsResult.h"
|
#include "model/DescribeSlowLogRecordsResult.h"
|
||||||
#include "model/DescribeSlowLogsRequest.h"
|
|
||||||
#include "model/DescribeSlowLogsResult.h"
|
|
||||||
#include "model/DescribeTasksRequest.h"
|
#include "model/DescribeTasksRequest.h"
|
||||||
#include "model/DescribeTasksResult.h"
|
#include "model/DescribeTasksResult.h"
|
||||||
#include "model/FailoverDBClusterRequest.h"
|
#include "model/FailoverDBClusterRequest.h"
|
||||||
@@ -182,6 +178,8 @@
|
|||||||
#include "model/TagResourcesResult.h"
|
#include "model/TagResourcesResult.h"
|
||||||
#include "model/UntagResourcesRequest.h"
|
#include "model/UntagResourcesRequest.h"
|
||||||
#include "model/UntagResourcesResult.h"
|
#include "model/UntagResourcesResult.h"
|
||||||
|
#include "model/UpgradeDBClusterMinorVersionRequest.h"
|
||||||
|
#include "model/UpgradeDBClusterMinorVersionResult.h"
|
||||||
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
namespace AlibabaCloud
|
||||||
@@ -317,9 +315,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeGlobalDatabaseNetworksResult> DescribeGlobalDatabaseNetworksOutcome;
|
typedef Outcome<Error, Model::DescribeGlobalDatabaseNetworksResult> DescribeGlobalDatabaseNetworksOutcome;
|
||||||
typedef std::future<DescribeGlobalDatabaseNetworksOutcome> DescribeGlobalDatabaseNetworksOutcomeCallable;
|
typedef std::future<DescribeGlobalDatabaseNetworksOutcome> DescribeGlobalDatabaseNetworksOutcomeCallable;
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeGlobalDatabaseNetworksRequest&, const DescribeGlobalDatabaseNetworksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGlobalDatabaseNetworksAsyncHandler;
|
typedef std::function<void(const PolardbClient*, const Model::DescribeGlobalDatabaseNetworksRequest&, const DescribeGlobalDatabaseNetworksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGlobalDatabaseNetworksAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeLocalAvailableRecoveryTimeResult> DescribeLocalAvailableRecoveryTimeOutcome;
|
|
||||||
typedef std::future<DescribeLocalAvailableRecoveryTimeOutcome> DescribeLocalAvailableRecoveryTimeOutcomeCallable;
|
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeLocalAvailableRecoveryTimeRequest&, const DescribeLocalAvailableRecoveryTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLocalAvailableRecoveryTimeAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeLogBackupPolicyResult> DescribeLogBackupPolicyOutcome;
|
typedef Outcome<Error, Model::DescribeLogBackupPolicyResult> DescribeLogBackupPolicyOutcome;
|
||||||
typedef std::future<DescribeLogBackupPolicyOutcome> DescribeLogBackupPolicyOutcomeCallable;
|
typedef std::future<DescribeLogBackupPolicyOutcome> DescribeLogBackupPolicyOutcomeCallable;
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeLogBackupPolicyRequest&, const DescribeLogBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogBackupPolicyAsyncHandler;
|
typedef std::function<void(const PolardbClient*, const Model::DescribeLogBackupPolicyRequest&, const DescribeLogBackupPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogBackupPolicyAsyncHandler;
|
||||||
@@ -338,9 +333,6 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
|
typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
|
||||||
typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
|
typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
|
typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DescribeSlowLogsResult> DescribeSlowLogsOutcome;
|
|
||||||
typedef std::future<DescribeSlowLogsOutcome> DescribeSlowLogsOutcomeCallable;
|
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogsRequest&, const DescribeSlowLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogsAsyncHandler;
|
|
||||||
typedef Outcome<Error, Model::DescribeTasksResult> DescribeTasksOutcome;
|
typedef Outcome<Error, Model::DescribeTasksResult> DescribeTasksOutcome;
|
||||||
typedef std::future<DescribeTasksOutcome> DescribeTasksOutcomeCallable;
|
typedef std::future<DescribeTasksOutcome> DescribeTasksOutcomeCallable;
|
||||||
typedef std::function<void(const PolardbClient*, const Model::DescribeTasksRequest&, const DescribeTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTasksAsyncHandler;
|
typedef std::function<void(const PolardbClient*, const Model::DescribeTasksRequest&, const DescribeTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTasksAsyncHandler;
|
||||||
@@ -431,6 +423,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
typedef Outcome<Error, Model::UntagResourcesResult> UntagResourcesOutcome;
|
||||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||||
typedef std::function<void(const PolardbClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
typedef std::function<void(const PolardbClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::UpgradeDBClusterMinorVersionResult> UpgradeDBClusterMinorVersionOutcome;
|
||||||
|
typedef std::future<UpgradeDBClusterMinorVersionOutcome> UpgradeDBClusterMinorVersionOutcomeCallable;
|
||||||
|
typedef std::function<void(const PolardbClient*, const Model::UpgradeDBClusterMinorVersionRequest&, const UpgradeDBClusterMinorVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeDBClusterMinorVersionAsyncHandler;
|
||||||
|
|
||||||
PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||||
PolardbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
PolardbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||||
@@ -562,9 +557,6 @@ namespace AlibabaCloud
|
|||||||
DescribeGlobalDatabaseNetworksOutcome describeGlobalDatabaseNetworks(const Model::DescribeGlobalDatabaseNetworksRequest &request)const;
|
DescribeGlobalDatabaseNetworksOutcome describeGlobalDatabaseNetworks(const Model::DescribeGlobalDatabaseNetworksRequest &request)const;
|
||||||
void describeGlobalDatabaseNetworksAsync(const Model::DescribeGlobalDatabaseNetworksRequest& request, const DescribeGlobalDatabaseNetworksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeGlobalDatabaseNetworksAsync(const Model::DescribeGlobalDatabaseNetworksRequest& request, const DescribeGlobalDatabaseNetworksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeGlobalDatabaseNetworksOutcomeCallable describeGlobalDatabaseNetworksCallable(const Model::DescribeGlobalDatabaseNetworksRequest& request) const;
|
DescribeGlobalDatabaseNetworksOutcomeCallable describeGlobalDatabaseNetworksCallable(const Model::DescribeGlobalDatabaseNetworksRequest& 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;
|
|
||||||
DescribeLogBackupPolicyOutcome describeLogBackupPolicy(const Model::DescribeLogBackupPolicyRequest &request)const;
|
DescribeLogBackupPolicyOutcome describeLogBackupPolicy(const Model::DescribeLogBackupPolicyRequest &request)const;
|
||||||
void describeLogBackupPolicyAsync(const Model::DescribeLogBackupPolicyRequest& request, const DescribeLogBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeLogBackupPolicyAsync(const Model::DescribeLogBackupPolicyRequest& request, const DescribeLogBackupPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeLogBackupPolicyOutcomeCallable describeLogBackupPolicyCallable(const Model::DescribeLogBackupPolicyRequest& request) const;
|
DescribeLogBackupPolicyOutcomeCallable describeLogBackupPolicyCallable(const Model::DescribeLogBackupPolicyRequest& request) const;
|
||||||
@@ -583,9 +575,6 @@ namespace AlibabaCloud
|
|||||||
DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
|
DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
|
||||||
void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
|
DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
|
||||||
DescribeSlowLogsOutcome describeSlowLogs(const Model::DescribeSlowLogsRequest &request)const;
|
|
||||||
void describeSlowLogsAsync(const Model::DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
|
||||||
DescribeSlowLogsOutcomeCallable describeSlowLogsCallable(const Model::DescribeSlowLogsRequest& request) const;
|
|
||||||
DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const;
|
DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const;
|
||||||
void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const;
|
DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const;
|
||||||
@@ -676,6 +665,9 @@ namespace AlibabaCloud
|
|||||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
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;
|
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;
|
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||||
|
UpgradeDBClusterMinorVersionOutcome upgradeDBClusterMinorVersion(const Model::UpgradeDBClusterMinorVersionRequest &request)const;
|
||||||
|
void upgradeDBClusterMinorVersionAsync(const Model::UpgradeDBClusterMinorVersionRequest& request, const UpgradeDBClusterMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
UpgradeDBClusterMinorVersionOutcomeCallable upgradeDBClusterMinorVersionCallable(const Model::UpgradeDBClusterMinorVersionRequest& request) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||||
|
|||||||
@@ -43,8 +43,14 @@ namespace AlibabaCloud
|
|||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getTargetDBName()const;
|
std::string getTargetDBName()const;
|
||||||
void setTargetDBName(const std::string& targetDBName);
|
void setTargetDBName(const std::string& targetDBName);
|
||||||
|
std::string getTargetIp()const;
|
||||||
|
void setTargetIp(const std::string& targetIp);
|
||||||
|
std::string getRegionId()const;
|
||||||
|
void setRegionId(const std::string& regionId);
|
||||||
std::string getDBLinkName()const;
|
std::string getDBLinkName()const;
|
||||||
void setDBLinkName(const std::string& dBLinkName);
|
void setDBLinkName(const std::string& dBLinkName);
|
||||||
|
std::string getTargetPort()const;
|
||||||
|
void setTargetPort(const std::string& targetPort);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getTargetDBInstanceName()const;
|
std::string getTargetDBInstanceName()const;
|
||||||
@@ -59,13 +65,18 @@ namespace AlibabaCloud
|
|||||||
void setOwnerId(long ownerId);
|
void setOwnerId(long ownerId);
|
||||||
std::string getTargetDBAccount()const;
|
std::string getTargetDBAccount()const;
|
||||||
void setTargetDBAccount(const std::string& targetDBAccount);
|
void setTargetDBAccount(const std::string& targetDBAccount);
|
||||||
|
std::string getVpcId()const;
|
||||||
|
void setVpcId(const std::string& vpcId);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string sourceDBName_;
|
std::string sourceDBName_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string targetDBName_;
|
std::string targetDBName_;
|
||||||
|
std::string targetIp_;
|
||||||
|
std::string regionId_;
|
||||||
std::string dBLinkName_;
|
std::string dBLinkName_;
|
||||||
|
std::string targetPort_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string targetDBInstanceName_;
|
std::string targetDBInstanceName_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
@@ -73,6 +84,7 @@ namespace AlibabaCloud
|
|||||||
std::string targetDBPasswd_;
|
std::string targetDBPasswd_;
|
||||||
long ownerId_;
|
long ownerId_;
|
||||||
std::string targetDBAccount_;
|
std::string targetDBAccount_;
|
||||||
|
std::string vpcId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
|||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
std::string getClientToken()const;
|
std::string getClientToken()const;
|
||||||
void setClientToken(const std::string& clientToken);
|
void setClientToken(const std::string& clientToken);
|
||||||
|
std::string getEndpointBindList()const;
|
||||||
|
void setEndpointBindList(const std::string& endpointBindList);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
@@ -61,6 +63,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string clientToken_;
|
std::string clientToken_;
|
||||||
|
std::string endpointBindList_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
|
|||||||
@@ -37,10 +37,14 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
long getResourceOwnerId()const;
|
long getResourceOwnerId()const;
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
int getPageNumber()const;
|
||||||
|
void setPageNumber(int pageNumber);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getAccountName()const;
|
std::string getAccountName()const;
|
||||||
void setAccountName(const std::string& accountName);
|
void setAccountName(const std::string& accountName);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
std::string getDBClusterId()const;
|
||||||
@@ -52,8 +56,10 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
|
int pageNumber_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string accountName_;
|
std::string accountName_;
|
||||||
|
int pageSize_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
|
|||||||
@@ -53,11 +53,15 @@ namespace AlibabaCloud
|
|||||||
DescribeAccountsResult();
|
DescribeAccountsResult();
|
||||||
explicit DescribeAccountsResult(const std::string &payload);
|
explicit DescribeAccountsResult(const std::string &payload);
|
||||||
~DescribeAccountsResult();
|
~DescribeAccountsResult();
|
||||||
|
int getPageRecordCount()const;
|
||||||
|
int getPageNumber()const;
|
||||||
std::vector<DBAccount> getAccounts()const;
|
std::vector<DBAccount> getAccounts()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
|
int pageRecordCount_;
|
||||||
|
int pageNumber_;
|
||||||
std::vector<DBAccount> accounts_;
|
std::vector<DBAccount> accounts_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ namespace AlibabaCloud
|
|||||||
DescribeDBClusterVersionResult();
|
DescribeDBClusterVersionResult();
|
||||||
explicit DescribeDBClusterVersionResult(const std::string &payload);
|
explicit DescribeDBClusterVersionResult(const std::string &payload);
|
||||||
~DescribeDBClusterVersionResult();
|
~DescribeDBClusterVersionResult();
|
||||||
std::string getLatestRevisionVersion()const;
|
|
||||||
std::string getIsLatestVersion()const;
|
std::string getIsLatestVersion()const;
|
||||||
std::string getDBVersion()const;
|
std::string getDBVersion()const;
|
||||||
std::string getDBRevisionVersion()const;
|
std::string getDBRevisionVersion()const;
|
||||||
@@ -48,7 +47,6 @@ namespace AlibabaCloud
|
|||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string latestRevisionVersion_;
|
|
||||||
std::string isLatestVersion_;
|
std::string isLatestVersion_;
|
||||||
std::string dBVersion_;
|
std::string dBVersion_;
|
||||||
std::string dBRevisionVersion_;
|
std::string dBRevisionVersion_;
|
||||||
|
|||||||
@@ -37,8 +37,12 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
long getResourceOwnerId()const;
|
long getResourceOwnerId()const;
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
|
int getPageNumber()const;
|
||||||
|
void setPageNumber(int pageNumber);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
|
int getPageSize()const;
|
||||||
|
void setPageSize(int pageSize);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
std::string getDBClusterId()const;
|
||||||
@@ -52,7 +56,9 @@ namespace AlibabaCloud
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
|
int pageNumber_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
|
int pageSize_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
|
|||||||
@@ -54,11 +54,15 @@ namespace AlibabaCloud
|
|||||||
explicit DescribeDatabasesResult(const std::string &payload);
|
explicit DescribeDatabasesResult(const std::string &payload);
|
||||||
~DescribeDatabasesResult();
|
~DescribeDatabasesResult();
|
||||||
std::vector<Database> getDatabases()const;
|
std::vector<Database> getDatabases()const;
|
||||||
|
int getPageRecordCount()const;
|
||||||
|
int getPageNumber()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::vector<Database> databases_;
|
std::vector<Database> databases_;
|
||||||
|
int pageRecordCount_;
|
||||||
|
int pageNumber_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,81 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSREQUEST_H_
|
|
||||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSREQUEST_H_
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <vector>
|
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
|
||||||
#include <alibabacloud/polardb/PolardbExport.h>
|
|
||||||
|
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
|
||||||
namespace Polardb
|
|
||||||
{
|
|
||||||
namespace Model
|
|
||||||
{
|
|
||||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSlowLogsRequest : public RpcServiceRequest
|
|
||||||
{
|
|
||||||
|
|
||||||
public:
|
|
||||||
DescribeSlowLogsRequest();
|
|
||||||
~DescribeSlowLogsRequest();
|
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
|
||||||
std::string getStartTime()const;
|
|
||||||
void setStartTime(const std::string& startTime);
|
|
||||||
int getPageNumber()const;
|
|
||||||
void setPageNumber(int pageNumber);
|
|
||||||
std::string getAccessKeyId()const;
|
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
|
||||||
std::string getRegionId()const;
|
|
||||||
void setRegionId(const std::string& regionId);
|
|
||||||
int getPageSize()const;
|
|
||||||
void setPageSize(int pageSize);
|
|
||||||
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 getEndTime()const;
|
|
||||||
void setEndTime(const std::string& endTime);
|
|
||||||
long getOwnerId()const;
|
|
||||||
void setOwnerId(long ownerId);
|
|
||||||
std::string getDBName()const;
|
|
||||||
void setDBName(const std::string& dBName);
|
|
||||||
|
|
||||||
private:
|
|
||||||
long resourceOwnerId_;
|
|
||||||
std::string startTime_;
|
|
||||||
int pageNumber_;
|
|
||||||
std::string accessKeyId_;
|
|
||||||
std::string regionId_;
|
|
||||||
int pageSize_;
|
|
||||||
std::string resourceOwnerAccount_;
|
|
||||||
std::string dBClusterId_;
|
|
||||||
std::string ownerAccount_;
|
|
||||||
std::string endTime_;
|
|
||||||
long ownerId_;
|
|
||||||
std::string dBName_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSREQUEST_H_
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSRESULT_H_
|
|
||||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSRESULT_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 DescribeSlowLogsResult : public ServiceResult
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
struct SQLSlowLog
|
|
||||||
{
|
|
||||||
long maxLockTime;
|
|
||||||
std::string createTime;
|
|
||||||
long totalExecutionCounts;
|
|
||||||
std::string dBNodeId;
|
|
||||||
long totalLockTimes;
|
|
||||||
long totalExecutionTimes;
|
|
||||||
long returnMaxRowCount;
|
|
||||||
long parseMaxRowCount;
|
|
||||||
long maxExecutionTime;
|
|
||||||
std::string sQLText;
|
|
||||||
std::string sQLHASH;
|
|
||||||
long returnTotalRowCounts;
|
|
||||||
long parseTotalRowCounts;
|
|
||||||
std::string dBName;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
DescribeSlowLogsResult();
|
|
||||||
explicit DescribeSlowLogsResult(const std::string &payload);
|
|
||||||
~DescribeSlowLogsResult();
|
|
||||||
int getTotalRecordCount()const;
|
|
||||||
int getPageRecordCount()const;
|
|
||||||
std::string getEndTime()const;
|
|
||||||
int getPageNumber()const;
|
|
||||||
std::string getDBClusterId()const;
|
|
||||||
std::string getStartTime()const;
|
|
||||||
std::vector<SQLSlowLog> getItems()const;
|
|
||||||
std::string getEngine()const;
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void parse(const std::string &payload);
|
|
||||||
private:
|
|
||||||
int totalRecordCount_;
|
|
||||||
int pageRecordCount_;
|
|
||||||
std::string endTime_;
|
|
||||||
int pageNumber_;
|
|
||||||
std::string dBClusterId_;
|
|
||||||
std::string startTime_;
|
|
||||||
std::vector<SQLSlowLog> items_;
|
|
||||||
std::string engine_;
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESLOWLOGSRESULT_H_
|
|
||||||
@@ -59,9 +59,8 @@ namespace AlibabaCloud
|
|||||||
int getPageRecordCount()const;
|
int getPageRecordCount()const;
|
||||||
std::string getEndTime()const;
|
std::string getEndTime()const;
|
||||||
int getPageNumber()const;
|
int getPageNumber()const;
|
||||||
std::string getDBInstanceId()const;
|
|
||||||
std::string getStartTime()const;
|
std::string getStartTime()const;
|
||||||
std::string getDBInstanceName()const;
|
std::string getDBClusterId()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
@@ -71,9 +70,8 @@ namespace AlibabaCloud
|
|||||||
int pageRecordCount_;
|
int pageRecordCount_;
|
||||||
std::string endTime_;
|
std::string endTime_;
|
||||||
int pageNumber_;
|
int pageNumber_;
|
||||||
std::string dBInstanceId_;
|
|
||||||
std::string startTime_;
|
std::string startTime_;
|
||||||
std::string dBInstanceName_;
|
std::string dBClusterId_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_
|
#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_
|
#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -28,19 +28,19 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeLocalAvailableRecoveryTimeRequest : public RpcServiceRequest
|
class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterMinorVersionRequest : public RpcServiceRequest
|
||||||
{
|
{
|
||||||
|
|
||||||
public:
|
public:
|
||||||
DescribeLocalAvailableRecoveryTimeRequest();
|
UpgradeDBClusterMinorVersionRequest();
|
||||||
~DescribeLocalAvailableRecoveryTimeRequest();
|
~UpgradeDBClusterMinorVersionRequest();
|
||||||
|
|
||||||
long getResourceOwnerId()const;
|
long getResourceOwnerId()const;
|
||||||
void setResourceOwnerId(long resourceOwnerId);
|
void setResourceOwnerId(long resourceOwnerId);
|
||||||
std::string getAccessKeyId()const;
|
std::string getAccessKeyId()const;
|
||||||
void setAccessKeyId(const std::string& accessKeyId);
|
void setAccessKeyId(const std::string& accessKeyId);
|
||||||
std::string getSecurityToken()const;
|
std::string getSwitchTimeMode()const;
|
||||||
void setSecurityToken(const std::string& securityToken);
|
void setSwitchTimeMode(const std::string& switchTimeMode);
|
||||||
std::string getResourceOwnerAccount()const;
|
std::string getResourceOwnerAccount()const;
|
||||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||||
std::string getDBClusterId()const;
|
std::string getDBClusterId()const;
|
||||||
@@ -53,7 +53,7 @@ namespace AlibabaCloud
|
|||||||
private:
|
private:
|
||||||
long resourceOwnerId_;
|
long resourceOwnerId_;
|
||||||
std::string accessKeyId_;
|
std::string accessKeyId_;
|
||||||
std::string securityToken_;
|
std::string switchTimeMode_;
|
||||||
std::string resourceOwnerAccount_;
|
std::string resourceOwnerAccount_;
|
||||||
std::string dBClusterId_;
|
std::string dBClusterId_;
|
||||||
std::string ownerAccount_;
|
std::string ownerAccount_;
|
||||||
@@ -63,4 +63,4 @@ namespace AlibabaCloud
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_
|
#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_
|
||||||
@@ -14,8 +14,8 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_
|
#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_
|
||||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_
|
#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -29,27 +29,21 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
namespace Model
|
namespace Model
|
||||||
{
|
{
|
||||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeLocalAvailableRecoveryTimeResult : public ServiceResult
|
class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterMinorVersionResult : public ServiceResult
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeResult();
|
UpgradeDBClusterMinorVersionResult();
|
||||||
explicit DescribeLocalAvailableRecoveryTimeResult(const std::string &payload);
|
explicit UpgradeDBClusterMinorVersionResult(const std::string &payload);
|
||||||
~DescribeLocalAvailableRecoveryTimeResult();
|
~UpgradeDBClusterMinorVersionResult();
|
||||||
std::string getRecoveryEndTime()const;
|
|
||||||
std::string getRecoveryBeginTime()const;
|
|
||||||
std::string getDBClusterId()const;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
private:
|
private:
|
||||||
std::string recoveryEndTime_;
|
|
||||||
std::string recoveryBeginTime_;
|
|
||||||
std::string dBClusterId_;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_
|
#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_
|
||||||
@@ -1563,42 +1563,6 @@ PolardbClient::DescribeGlobalDatabaseNetworksOutcomeCallable PolardbClient::desc
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
PolardbClient::DescribeLocalAvailableRecoveryTimeOutcome PolardbClient::describeLocalAvailableRecoveryTime(const DescribeLocalAvailableRecoveryTimeRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return DescribeLocalAvailableRecoveryTimeOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return DescribeLocalAvailableRecoveryTimeOutcome(DescribeLocalAvailableRecoveryTimeResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return DescribeLocalAvailableRecoveryTimeOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void PolardbClient::describeLocalAvailableRecoveryTimeAsync(const DescribeLocalAvailableRecoveryTimeRequest& request, const DescribeLocalAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, describeLocalAvailableRecoveryTime(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
PolardbClient::DescribeLocalAvailableRecoveryTimeOutcomeCallable PolardbClient::describeLocalAvailableRecoveryTimeCallable(const DescribeLocalAvailableRecoveryTimeRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<DescribeLocalAvailableRecoveryTimeOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->describeLocalAvailableRecoveryTime(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
PolardbClient::DescribeLogBackupPolicyOutcome PolardbClient::describeLogBackupPolicy(const DescribeLogBackupPolicyRequest &request) const
|
PolardbClient::DescribeLogBackupPolicyOutcome PolardbClient::describeLogBackupPolicy(const DescribeLogBackupPolicyRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -1815,42 +1779,6 @@ PolardbClient::DescribeSlowLogRecordsOutcomeCallable PolardbClient::describeSlow
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
PolardbClient::DescribeSlowLogsOutcome PolardbClient::describeSlowLogs(const DescribeSlowLogsRequest &request) const
|
|
||||||
{
|
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
|
||||||
if (!endpointOutcome.isSuccess())
|
|
||||||
return DescribeSlowLogsOutcome(endpointOutcome.error());
|
|
||||||
|
|
||||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
|
||||||
|
|
||||||
if (outcome.isSuccess())
|
|
||||||
return DescribeSlowLogsOutcome(DescribeSlowLogsResult(outcome.result()));
|
|
||||||
else
|
|
||||||
return DescribeSlowLogsOutcome(outcome.error());
|
|
||||||
}
|
|
||||||
|
|
||||||
void PolardbClient::describeSlowLogsAsync(const DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
|
||||||
{
|
|
||||||
auto fn = [this, request, handler, context]()
|
|
||||||
{
|
|
||||||
handler(this, request, describeSlowLogs(request), context);
|
|
||||||
};
|
|
||||||
|
|
||||||
asyncExecute(new Runnable(fn));
|
|
||||||
}
|
|
||||||
|
|
||||||
PolardbClient::DescribeSlowLogsOutcomeCallable PolardbClient::describeSlowLogsCallable(const DescribeSlowLogsRequest &request) const
|
|
||||||
{
|
|
||||||
auto task = std::make_shared<std::packaged_task<DescribeSlowLogsOutcome()>>(
|
|
||||||
[this, request]()
|
|
||||||
{
|
|
||||||
return this->describeSlowLogs(request);
|
|
||||||
});
|
|
||||||
|
|
||||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
|
||||||
return task->get_future();
|
|
||||||
}
|
|
||||||
|
|
||||||
PolardbClient::DescribeTasksOutcome PolardbClient::describeTasks(const DescribeTasksRequest &request) const
|
PolardbClient::DescribeTasksOutcome PolardbClient::describeTasks(const DescribeTasksRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -2931,3 +2859,39 @@ PolardbClient::UntagResourcesOutcomeCallable PolardbClient::untagResourcesCallab
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PolardbClient::UpgradeDBClusterMinorVersionOutcome PolardbClient::upgradeDBClusterMinorVersion(const UpgradeDBClusterMinorVersionRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return UpgradeDBClusterMinorVersionOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return UpgradeDBClusterMinorVersionOutcome(UpgradeDBClusterMinorVersionResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return UpgradeDBClusterMinorVersionOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void PolardbClient::upgradeDBClusterMinorVersionAsync(const UpgradeDBClusterMinorVersionRequest& request, const UpgradeDBClusterMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, upgradeDBClusterMinorVersion(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
PolardbClient::UpgradeDBClusterMinorVersionOutcomeCallable PolardbClient::upgradeDBClusterMinorVersionCallable(const UpgradeDBClusterMinorVersionRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<UpgradeDBClusterMinorVersionOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->upgradeDBClusterMinorVersion(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,28 @@ void CreateDBLinkRequest::setTargetDBName(const std::string& targetDBName)
|
|||||||
setParameter("TargetDBName", targetDBName);
|
setParameter("TargetDBName", targetDBName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateDBLinkRequest::getTargetIp()const
|
||||||
|
{
|
||||||
|
return targetIp_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDBLinkRequest::setTargetIp(const std::string& targetIp)
|
||||||
|
{
|
||||||
|
targetIp_ = targetIp;
|
||||||
|
setParameter("TargetIp", targetIp);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDBLinkRequest::getRegionId()const
|
||||||
|
{
|
||||||
|
return regionId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDBLinkRequest::setRegionId(const std::string& regionId)
|
||||||
|
{
|
||||||
|
regionId_ = regionId;
|
||||||
|
setParameter("RegionId", regionId);
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateDBLinkRequest::getDBLinkName()const
|
std::string CreateDBLinkRequest::getDBLinkName()const
|
||||||
{
|
{
|
||||||
return dBLinkName_;
|
return dBLinkName_;
|
||||||
@@ -82,6 +104,17 @@ void CreateDBLinkRequest::setDBLinkName(const std::string& dBLinkName)
|
|||||||
setParameter("DBLinkName", dBLinkName);
|
setParameter("DBLinkName", dBLinkName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateDBLinkRequest::getTargetPort()const
|
||||||
|
{
|
||||||
|
return targetPort_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDBLinkRequest::setTargetPort(const std::string& targetPort)
|
||||||
|
{
|
||||||
|
targetPort_ = targetPort;
|
||||||
|
setParameter("TargetPort", targetPort);
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateDBLinkRequest::getResourceOwnerAccount()const
|
std::string CreateDBLinkRequest::getResourceOwnerAccount()const
|
||||||
{
|
{
|
||||||
return resourceOwnerAccount_;
|
return resourceOwnerAccount_;
|
||||||
@@ -159,3 +192,14 @@ void CreateDBLinkRequest::setTargetDBAccount(const std::string& targetDBAccount)
|
|||||||
setParameter("TargetDBAccount", targetDBAccount);
|
setParameter("TargetDBAccount", targetDBAccount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateDBLinkRequest::getVpcId()const
|
||||||
|
{
|
||||||
|
return vpcId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDBLinkRequest::setVpcId(const std::string& vpcId)
|
||||||
|
{
|
||||||
|
vpcId_ = vpcId;
|
||||||
|
setParameter("VpcId", vpcId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,17 @@ void CreateDBNodesRequest::setClientToken(const std::string& clientToken)
|
|||||||
setParameter("ClientToken", clientToken);
|
setParameter("ClientToken", clientToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateDBNodesRequest::getEndpointBindList()const
|
||||||
|
{
|
||||||
|
return endpointBindList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDBNodesRequest::setEndpointBindList(const std::string& endpointBindList)
|
||||||
|
{
|
||||||
|
endpointBindList_ = endpointBindList;
|
||||||
|
setParameter("EndpointBindList", endpointBindList);
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateDBNodesRequest::getAccessKeyId()const
|
std::string CreateDBNodesRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return accessKeyId_;
|
return accessKeyId_;
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId)
|
|||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeAccountsRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeAccountsRequest::setPageNumber(int pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeAccountsRequest::getAccessKeyId()const
|
std::string DescribeAccountsRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return accessKeyId_;
|
return accessKeyId_;
|
||||||
@@ -60,6 +71,17 @@ void DescribeAccountsRequest::setAccountName(const std::string& accountName)
|
|||||||
setParameter("AccountName", accountName);
|
setParameter("AccountName", accountName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeAccountsRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeAccountsRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeAccountsRequest::getResourceOwnerAccount()const
|
std::string DescribeAccountsRequest::getResourceOwnerAccount()const
|
||||||
{
|
{
|
||||||
return resourceOwnerAccount_;
|
return resourceOwnerAccount_;
|
||||||
|
|||||||
@@ -69,9 +69,23 @@ void DescribeAccountsResult::parse(const std::string &payload)
|
|||||||
}
|
}
|
||||||
accounts_.push_back(accountsObject);
|
accounts_.push_back(accountsObject);
|
||||||
}
|
}
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
|
if(!value["PageRecordCount"].isNull())
|
||||||
|
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeAccountsResult::getPageRecordCount()const
|
||||||
|
{
|
||||||
|
return pageRecordCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int DescribeAccountsResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
std::vector<DescribeAccountsResult::DBAccount> DescribeAccountsResult::getAccounts()const
|
std::vector<DescribeAccountsResult::DBAccount> DescribeAccountsResult::getAccounts()const
|
||||||
{
|
{
|
||||||
return accounts_;
|
return accounts_;
|
||||||
|
|||||||
@@ -45,22 +45,15 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload)
|
|||||||
dBVersion_ = value["DBVersion"].asString();
|
dBVersion_ = value["DBVersion"].asString();
|
||||||
if(!value["DBMinorVersion"].isNull())
|
if(!value["DBMinorVersion"].isNull())
|
||||||
dBMinorVersion_ = value["DBMinorVersion"].asString();
|
dBMinorVersion_ = value["DBMinorVersion"].asString();
|
||||||
if(!value["DBRevisionVersion"].isNull())
|
|
||||||
dBRevisionVersion_ = value["DBRevisionVersion"].asString();
|
|
||||||
if(!value["DBVersionStatus"].isNull())
|
if(!value["DBVersionStatus"].isNull())
|
||||||
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
||||||
if(!value["IsLatestVersion"].isNull())
|
if(!value["IsLatestVersion"].isNull())
|
||||||
isLatestVersion_ = value["IsLatestVersion"].asString();
|
isLatestVersion_ = value["IsLatestVersion"].asString();
|
||||||
if(!value["LatestRevisionVersion"].isNull())
|
if(!value["DBRevisionVersion"].isNull())
|
||||||
latestRevisionVersion_ = value["LatestRevisionVersion"].asString();
|
dBRevisionVersion_ = value["DBRevisionVersion"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescribeDBClusterVersionResult::getLatestRevisionVersion()const
|
|
||||||
{
|
|
||||||
return latestRevisionVersion_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeDBClusterVersionResult::getIsLatestVersion()const
|
std::string DescribeDBClusterVersionResult::getIsLatestVersion()const
|
||||||
{
|
{
|
||||||
return isLatestVersion_;
|
return isLatestVersion_;
|
||||||
|
|||||||
@@ -38,6 +38,17 @@ void DescribeDatabasesRequest::setResourceOwnerId(long resourceOwnerId)
|
|||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeDatabasesRequest::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeDatabasesRequest::setPageNumber(int pageNumber)
|
||||||
|
{
|
||||||
|
pageNumber_ = pageNumber;
|
||||||
|
setParameter("PageNumber", std::to_string(pageNumber));
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeDatabasesRequest::getAccessKeyId()const
|
std::string DescribeDatabasesRequest::getAccessKeyId()const
|
||||||
{
|
{
|
||||||
return accessKeyId_;
|
return accessKeyId_;
|
||||||
@@ -49,6 +60,17 @@ void DescribeDatabasesRequest::setAccessKeyId(const std::string& accessKeyId)
|
|||||||
setParameter("AccessKeyId", accessKeyId);
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeDatabasesRequest::getPageSize()const
|
||||||
|
{
|
||||||
|
return pageSize_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DescribeDatabasesRequest::setPageSize(int pageSize)
|
||||||
|
{
|
||||||
|
pageSize_ = pageSize;
|
||||||
|
setParameter("PageSize", std::to_string(pageSize));
|
||||||
|
}
|
||||||
|
|
||||||
std::string DescribeDatabasesRequest::getResourceOwnerAccount()const
|
std::string DescribeDatabasesRequest::getResourceOwnerAccount()const
|
||||||
{
|
{
|
||||||
return resourceOwnerAccount_;
|
return resourceOwnerAccount_;
|
||||||
|
|||||||
@@ -69,6 +69,10 @@ void DescribeDatabasesResult::parse(const std::string &payload)
|
|||||||
}
|
}
|
||||||
databases_.push_back(databasesObject);
|
databases_.push_back(databasesObject);
|
||||||
}
|
}
|
||||||
|
if(!value["PageNumber"].isNull())
|
||||||
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
|
if(!value["PageRecordCount"].isNull())
|
||||||
|
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,3 +81,13 @@ std::vector<DescribeDatabasesResult::Database> DescribeDatabasesResult::getDatab
|
|||||||
return databases_;
|
return databases_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int DescribeDatabasesResult::getPageRecordCount()const
|
||||||
|
{
|
||||||
|
return pageRecordCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int DescribeDatabasesResult::getPageNumber()const
|
||||||
|
{
|
||||||
|
return pageNumber_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,106 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES 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/DescribeLocalAvailableRecoveryTimeRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Polardb::Model::DescribeLocalAvailableRecoveryTimeRequest;
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeRequest::DescribeLocalAvailableRecoveryTimeRequest() :
|
|
||||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeLocalAvailableRecoveryTime")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeRequest::~DescribeLocalAvailableRecoveryTimeRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long DescribeLocalAvailableRecoveryTimeRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeRequest::getSecurityToken()const
|
|
||||||
{
|
|
||||||
return securityToken_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setSecurityToken(const std::string& securityToken)
|
|
||||||
{
|
|
||||||
securityToken_ = securityToken;
|
|
||||||
setParameter("SecurityToken", securityToken);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeRequest::getDBClusterId()const
|
|
||||||
{
|
|
||||||
return dBClusterId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setDBClusterId(const std::string& dBClusterId)
|
|
||||||
{
|
|
||||||
dBClusterId_ = dBClusterId;
|
|
||||||
setParameter("DBClusterId", dBClusterId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeRequest::getOwnerAccount()const
|
|
||||||
{
|
|
||||||
return ownerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setOwnerAccount(const std::string& ownerAccount)
|
|
||||||
{
|
|
||||||
ownerAccount_ = ownerAccount;
|
|
||||||
setParameter("OwnerAccount", ownerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DescribeLocalAvailableRecoveryTimeRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Polardb;
|
|
||||||
using namespace AlibabaCloud::Polardb::Model;
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeResult::DescribeLocalAvailableRecoveryTimeResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeResult::DescribeLocalAvailableRecoveryTimeResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
DescribeLocalAvailableRecoveryTimeResult::~DescribeLocalAvailableRecoveryTimeResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void DescribeLocalAvailableRecoveryTimeResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
if(!value["RecoveryEndTime"].isNull())
|
|
||||||
recoveryEndTime_ = value["RecoveryEndTime"].asString();
|
|
||||||
if(!value["RecoveryBeginTime"].isNull())
|
|
||||||
recoveryBeginTime_ = value["RecoveryBeginTime"].asString();
|
|
||||||
if(!value["DBClusterId"].isNull())
|
|
||||||
dBClusterId_ = value["DBClusterId"].asString();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeResult::getRecoveryEndTime()const
|
|
||||||
{
|
|
||||||
return recoveryEndTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeResult::getRecoveryBeginTime()const
|
|
||||||
{
|
|
||||||
return recoveryBeginTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeLocalAvailableRecoveryTimeResult::getDBClusterId()const
|
|
||||||
{
|
|
||||||
return dBClusterId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,161 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <alibabacloud/polardb/model/DescribeSlowLogsRequest.h>
|
|
||||||
|
|
||||||
using AlibabaCloud::Polardb::Model::DescribeSlowLogsRequest;
|
|
||||||
|
|
||||||
DescribeSlowLogsRequest::DescribeSlowLogsRequest() :
|
|
||||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSlowLogs")
|
|
||||||
{
|
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DescribeSlowLogsRequest::~DescribeSlowLogsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
long DescribeSlowLogsRequest::getResourceOwnerId()const
|
|
||||||
{
|
|
||||||
return resourceOwnerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setResourceOwnerId(long resourceOwnerId)
|
|
||||||
{
|
|
||||||
resourceOwnerId_ = resourceOwnerId;
|
|
||||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getStartTime()const
|
|
||||||
{
|
|
||||||
return startTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setStartTime(const std::string& startTime)
|
|
||||||
{
|
|
||||||
startTime_ = startTime;
|
|
||||||
setParameter("StartTime", startTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeSlowLogsRequest::getPageNumber()const
|
|
||||||
{
|
|
||||||
return pageNumber_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setPageNumber(int pageNumber)
|
|
||||||
{
|
|
||||||
pageNumber_ = pageNumber;
|
|
||||||
setParameter("PageNumber", std::to_string(pageNumber));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getAccessKeyId()const
|
|
||||||
{
|
|
||||||
return accessKeyId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setAccessKeyId(const std::string& accessKeyId)
|
|
||||||
{
|
|
||||||
accessKeyId_ = accessKeyId;
|
|
||||||
setParameter("AccessKeyId", accessKeyId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getRegionId()const
|
|
||||||
{
|
|
||||||
return regionId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setRegionId(const std::string& regionId)
|
|
||||||
{
|
|
||||||
regionId_ = regionId;
|
|
||||||
setParameter("RegionId", regionId);
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeSlowLogsRequest::getPageSize()const
|
|
||||||
{
|
|
||||||
return pageSize_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setPageSize(int pageSize)
|
|
||||||
{
|
|
||||||
pageSize_ = pageSize;
|
|
||||||
setParameter("PageSize", std::to_string(pageSize));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getResourceOwnerAccount()const
|
|
||||||
{
|
|
||||||
return resourceOwnerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
|
||||||
{
|
|
||||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
|
||||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getDBClusterId()const
|
|
||||||
{
|
|
||||||
return dBClusterId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setDBClusterId(const std::string& dBClusterId)
|
|
||||||
{
|
|
||||||
dBClusterId_ = dBClusterId;
|
|
||||||
setParameter("DBClusterId", dBClusterId);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getOwnerAccount()const
|
|
||||||
{
|
|
||||||
return ownerAccount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setOwnerAccount(const std::string& ownerAccount)
|
|
||||||
{
|
|
||||||
ownerAccount_ = ownerAccount;
|
|
||||||
setParameter("OwnerAccount", ownerAccount);
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getEndTime()const
|
|
||||||
{
|
|
||||||
return endTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setEndTime(const std::string& endTime)
|
|
||||||
{
|
|
||||||
endTime_ = endTime;
|
|
||||||
setParameter("EndTime", endTime);
|
|
||||||
}
|
|
||||||
|
|
||||||
long DescribeSlowLogsRequest::getOwnerId()const
|
|
||||||
{
|
|
||||||
return ownerId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setOwnerId(long ownerId)
|
|
||||||
{
|
|
||||||
ownerId_ = ownerId;
|
|
||||||
setParameter("OwnerId", std::to_string(ownerId));
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsRequest::getDBName()const
|
|
||||||
{
|
|
||||||
return dBName_;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DescribeSlowLogsRequest::setDBName(const std::string& dBName)
|
|
||||||
{
|
|
||||||
dBName_ = dBName;
|
|
||||||
setParameter("DBName", dBName);
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,132 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES 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/DescribeSlowLogsResult.h>
|
|
||||||
#include <json/json.h>
|
|
||||||
|
|
||||||
using namespace AlibabaCloud::Polardb;
|
|
||||||
using namespace AlibabaCloud::Polardb::Model;
|
|
||||||
|
|
||||||
DescribeSlowLogsResult::DescribeSlowLogsResult() :
|
|
||||||
ServiceResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
DescribeSlowLogsResult::DescribeSlowLogsResult(const std::string &payload) :
|
|
||||||
ServiceResult()
|
|
||||||
{
|
|
||||||
parse(payload);
|
|
||||||
}
|
|
||||||
|
|
||||||
DescribeSlowLogsResult::~DescribeSlowLogsResult()
|
|
||||||
{}
|
|
||||||
|
|
||||||
void DescribeSlowLogsResult::parse(const std::string &payload)
|
|
||||||
{
|
|
||||||
Json::Reader reader;
|
|
||||||
Json::Value value;
|
|
||||||
reader.parse(payload, value);
|
|
||||||
setRequestId(value["RequestId"].asString());
|
|
||||||
auto allItemsNode = value["Items"]["SQLSlowLog"];
|
|
||||||
for (auto valueItemsSQLSlowLog : allItemsNode)
|
|
||||||
{
|
|
||||||
SQLSlowLog itemsObject;
|
|
||||||
if(!valueItemsSQLSlowLog["DBNodeId"].isNull())
|
|
||||||
itemsObject.dBNodeId = valueItemsSQLSlowLog["DBNodeId"].asString();
|
|
||||||
if(!valueItemsSQLSlowLog["ParseMaxRowCount"].isNull())
|
|
||||||
itemsObject.parseMaxRowCount = std::stol(valueItemsSQLSlowLog["ParseMaxRowCount"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["TotalLockTimes"].isNull())
|
|
||||||
itemsObject.totalLockTimes = std::stol(valueItemsSQLSlowLog["TotalLockTimes"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["DBName"].isNull())
|
|
||||||
itemsObject.dBName = valueItemsSQLSlowLog["DBName"].asString();
|
|
||||||
if(!valueItemsSQLSlowLog["MaxExecutionTime"].isNull())
|
|
||||||
itemsObject.maxExecutionTime = std::stol(valueItemsSQLSlowLog["MaxExecutionTime"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["SQLHASH"].isNull())
|
|
||||||
itemsObject.sQLHASH = valueItemsSQLSlowLog["SQLHASH"].asString();
|
|
||||||
if(!valueItemsSQLSlowLog["SQLText"].isNull())
|
|
||||||
itemsObject.sQLText = valueItemsSQLSlowLog["SQLText"].asString();
|
|
||||||
if(!valueItemsSQLSlowLog["CreateTime"].isNull())
|
|
||||||
itemsObject.createTime = valueItemsSQLSlowLog["CreateTime"].asString();
|
|
||||||
if(!valueItemsSQLSlowLog["TotalExecutionTimes"].isNull())
|
|
||||||
itemsObject.totalExecutionTimes = std::stol(valueItemsSQLSlowLog["TotalExecutionTimes"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["ReturnTotalRowCounts"].isNull())
|
|
||||||
itemsObject.returnTotalRowCounts = std::stol(valueItemsSQLSlowLog["ReturnTotalRowCounts"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["TotalExecutionCounts"].isNull())
|
|
||||||
itemsObject.totalExecutionCounts = std::stol(valueItemsSQLSlowLog["TotalExecutionCounts"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["MaxLockTime"].isNull())
|
|
||||||
itemsObject.maxLockTime = std::stol(valueItemsSQLSlowLog["MaxLockTime"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["ReturnMaxRowCount"].isNull())
|
|
||||||
itemsObject.returnMaxRowCount = std::stol(valueItemsSQLSlowLog["ReturnMaxRowCount"].asString());
|
|
||||||
if(!valueItemsSQLSlowLog["ParseTotalRowCounts"].isNull())
|
|
||||||
itemsObject.parseTotalRowCounts = std::stol(valueItemsSQLSlowLog["ParseTotalRowCounts"].asString());
|
|
||||||
items_.push_back(itemsObject);
|
|
||||||
}
|
|
||||||
if(!value["DBClusterId"].isNull())
|
|
||||||
dBClusterId_ = value["DBClusterId"].asString();
|
|
||||||
if(!value["StartTime"].isNull())
|
|
||||||
startTime_ = value["StartTime"].asString();
|
|
||||||
if(!value["EndTime"].isNull())
|
|
||||||
endTime_ = value["EndTime"].asString();
|
|
||||||
if(!value["Engine"].isNull())
|
|
||||||
engine_ = value["Engine"].asString();
|
|
||||||
if(!value["TotalRecordCount"].isNull())
|
|
||||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
|
||||||
if(!value["PageNumber"].isNull())
|
|
||||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
|
||||||
if(!value["PageRecordCount"].isNull())
|
|
||||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeSlowLogsResult::getTotalRecordCount()const
|
|
||||||
{
|
|
||||||
return totalRecordCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeSlowLogsResult::getPageRecordCount()const
|
|
||||||
{
|
|
||||||
return pageRecordCount_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsResult::getEndTime()const
|
|
||||||
{
|
|
||||||
return endTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
int DescribeSlowLogsResult::getPageNumber()const
|
|
||||||
{
|
|
||||||
return pageNumber_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsResult::getDBClusterId()const
|
|
||||||
{
|
|
||||||
return dBClusterId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsResult::getStartTime()const
|
|
||||||
{
|
|
||||||
return startTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<DescribeSlowLogsResult::SQLSlowLog> DescribeSlowLogsResult::getItems()const
|
|
||||||
{
|
|
||||||
return items_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeSlowLogsResult::getEngine()const
|
|
||||||
{
|
|
||||||
return engine_;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -83,10 +83,8 @@ void DescribeTasksResult::parse(const std::string &payload)
|
|||||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||||
if(!value["PageRecordCount"].isNull())
|
if(!value["PageRecordCount"].isNull())
|
||||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||||
if(!value["DBInstanceName"].isNull())
|
if(!value["DBClusterId"].isNull())
|
||||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
dBClusterId_ = value["DBClusterId"].asString();
|
||||||
if(!value["DBInstanceId"].isNull())
|
|
||||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,18 +113,13 @@ int DescribeTasksResult::getPageNumber()const
|
|||||||
return pageNumber_;
|
return pageNumber_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescribeTasksResult::getDBInstanceId()const
|
|
||||||
{
|
|
||||||
return dBInstanceId_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string DescribeTasksResult::getStartTime()const
|
std::string DescribeTasksResult::getStartTime()const
|
||||||
{
|
{
|
||||||
return startTime_;
|
return startTime_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DescribeTasksResult::getDBInstanceName()const
|
std::string DescribeTasksResult::getDBClusterId()const
|
||||||
{
|
{
|
||||||
return dBInstanceName_;
|
return dBClusterId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
106
polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc
Normal file
106
polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc
Normal 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/polardb/model/UpgradeDBClusterMinorVersionRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Polardb::Model::UpgradeDBClusterMinorVersionRequest;
|
||||||
|
|
||||||
|
UpgradeDBClusterMinorVersionRequest::UpgradeDBClusterMinorVersionRequest() :
|
||||||
|
RpcServiceRequest("polardb", "2017-08-01", "UpgradeDBClusterMinorVersion")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpgradeDBClusterMinorVersionRequest::~UpgradeDBClusterMinorVersionRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long UpgradeDBClusterMinorVersionRequest::getResourceOwnerId()const
|
||||||
|
{
|
||||||
|
return resourceOwnerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||||
|
{
|
||||||
|
resourceOwnerId_ = resourceOwnerId;
|
||||||
|
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpgradeDBClusterMinorVersionRequest::getAccessKeyId()const
|
||||||
|
{
|
||||||
|
return accessKeyId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||||
|
{
|
||||||
|
accessKeyId_ = accessKeyId;
|
||||||
|
setParameter("AccessKeyId", accessKeyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpgradeDBClusterMinorVersionRequest::getSwitchTimeMode()const
|
||||||
|
{
|
||||||
|
return switchTimeMode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setSwitchTimeMode(const std::string& switchTimeMode)
|
||||||
|
{
|
||||||
|
switchTimeMode_ = switchTimeMode;
|
||||||
|
setParameter("SwitchTimeMode", switchTimeMode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpgradeDBClusterMinorVersionRequest::getResourceOwnerAccount()const
|
||||||
|
{
|
||||||
|
return resourceOwnerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||||
|
{
|
||||||
|
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||||
|
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpgradeDBClusterMinorVersionRequest::getDBClusterId()const
|
||||||
|
{
|
||||||
|
return dBClusterId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setDBClusterId(const std::string& dBClusterId)
|
||||||
|
{
|
||||||
|
dBClusterId_ = dBClusterId;
|
||||||
|
setParameter("DBClusterId", dBClusterId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string UpgradeDBClusterMinorVersionRequest::getOwnerAccount()const
|
||||||
|
{
|
||||||
|
return ownerAccount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||||
|
{
|
||||||
|
ownerAccount_ = ownerAccount;
|
||||||
|
setParameter("OwnerAccount", ownerAccount);
|
||||||
|
}
|
||||||
|
|
||||||
|
long UpgradeDBClusterMinorVersionRequest::getOwnerId()const
|
||||||
|
{
|
||||||
|
return ownerId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionRequest::setOwnerId(long ownerId)
|
||||||
|
{
|
||||||
|
ownerId_ = ownerId;
|
||||||
|
setParameter("OwnerId", std::to_string(ownerId));
|
||||||
|
}
|
||||||
|
|
||||||
44
polardb/src/model/UpgradeDBClusterMinorVersionResult.cc
Normal file
44
polardb/src/model/UpgradeDBClusterMinorVersionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Polardb;
|
||||||
|
using namespace AlibabaCloud::Polardb::Model;
|
||||||
|
|
||||||
|
UpgradeDBClusterMinorVersionResult::UpgradeDBClusterMinorVersionResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
UpgradeDBClusterMinorVersionResult::UpgradeDBClusterMinorVersionResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
UpgradeDBClusterMinorVersionResult::~UpgradeDBClusterMinorVersionResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void UpgradeDBClusterMinorVersionResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user