diff --git a/VERSION b/VERSION index 91e5d31cd..cda972c69 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2038 \ No newline at end of file +1.36.2039 \ No newline at end of file diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt index fffdb9593..585d71be2 100644 --- a/polardb/CMakeLists.txt +++ b/polardb/CMakeLists.txt @@ -21,6 +21,8 @@ set(polardb_public_header include/alibabacloud/polardb/PolardbExport.h ) set(polardb_public_header_model + include/alibabacloud/polardb/model/CancelActiveOperationTasksRequest.h + include/alibabacloud/polardb/model/CancelActiveOperationTasksResult.h include/alibabacloud/polardb/model/CancelScheduleTasksRequest.h include/alibabacloud/polardb/model/CancelScheduleTasksResult.h include/alibabacloud/polardb/model/CheckAccountNameRequest.h @@ -37,6 +39,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h include/alibabacloud/polardb/model/CreateAccountRequest.h include/alibabacloud/polardb/model/CreateAccountResult.h + include/alibabacloud/polardb/model/CreateActivationCodeRequest.h + include/alibabacloud/polardb/model/CreateActivationCodeResult.h include/alibabacloud/polardb/model/CreateBackupRequest.h include/alibabacloud/polardb/model/CreateBackupResult.h include/alibabacloud/polardb/model/CreateColdStorageInstanceRequest.h @@ -57,6 +61,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/CreateGlobalSecurityIPGroupRequest.h include/alibabacloud/polardb/model/CreateGlobalSecurityIPGroupResult.h + include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderRequest.h + include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderResult.h include/alibabacloud/polardb/model/CreateParameterGroupRequest.h include/alibabacloud/polardb/model/CreateParameterGroupResult.h include/alibabacloud/polardb/model/CreateServiceLinkedRoleRequest.h @@ -91,6 +97,12 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h include/alibabacloud/polardb/model/DescribeAccountsRequest.h include/alibabacloud/polardb/model/DescribeAccountsResult.h + include/alibabacloud/polardb/model/DescribeActivationCodeDetailsRequest.h + include/alibabacloud/polardb/model/DescribeActivationCodeDetailsResult.h + include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h + include/alibabacloud/polardb/model/DescribeActivationCodesResult.h + include/alibabacloud/polardb/model/DescribeActiveOperationTasksRequest.h + include/alibabacloud/polardb/model/DescribeActiveOperationTasksResult.h include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h @@ -161,6 +173,10 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeGlobalSecurityIPGroupResult.h include/alibabacloud/polardb/model/DescribeGlobalSecurityIPGroupRelationRequest.h include/alibabacloud/polardb/model/DescribeGlobalSecurityIPGroupRelationResult.h + include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsRequest.h + include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsResult.h + include/alibabacloud/polardb/model/DescribeLicenseOrdersRequest.h + include/alibabacloud/polardb/model/DescribeLicenseOrdersResult.h include/alibabacloud/polardb/model/DescribeLogBackupPolicyRequest.h include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h @@ -213,6 +229,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h + include/alibabacloud/polardb/model/ModifyActiveOperationTasksRequest.h + include/alibabacloud/polardb/model/ModifyActiveOperationTasksResult.h include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h @@ -247,6 +265,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ModifyDBClusterSSLResult.h include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfRequest.h include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfResult.h + include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceResult.h include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceRequest.h include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceResult.h include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h @@ -287,6 +307,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ResetAccountResult.h include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/ResetGlobalDatabaseNetworkResult.h + include/alibabacloud/polardb/model/RestartDBLinkRequest.h + include/alibabacloud/polardb/model/RestartDBLinkResult.h include/alibabacloud/polardb/model/RestartDBNodeRequest.h include/alibabacloud/polardb/model/RestartDBNodeResult.h include/alibabacloud/polardb/model/RestoreTableRequest.h @@ -303,13 +325,13 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/TransformDBClusterPayTypeResult.h include/alibabacloud/polardb/model/UntagResourcesRequest.h include/alibabacloud/polardb/model/UntagResourcesResult.h - include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h - include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h ) set(polardb_src src/PolardbClient.cc + src/model/CancelActiveOperationTasksRequest.cc + src/model/CancelActiveOperationTasksResult.cc src/model/CancelScheduleTasksRequest.cc src/model/CancelScheduleTasksResult.cc src/model/CheckAccountNameRequest.cc @@ -326,6 +348,8 @@ set(polardb_src src/model/CloseDBClusterMigrationResult.cc src/model/CreateAccountRequest.cc src/model/CreateAccountResult.cc + src/model/CreateActivationCodeRequest.cc + src/model/CreateActivationCodeResult.cc src/model/CreateBackupRequest.cc src/model/CreateBackupResult.cc src/model/CreateColdStorageInstanceRequest.cc @@ -346,6 +370,8 @@ set(polardb_src src/model/CreateGlobalDatabaseNetworkResult.cc src/model/CreateGlobalSecurityIPGroupRequest.cc src/model/CreateGlobalSecurityIPGroupResult.cc + src/model/CreateOrGetVirtualLicenseOrderRequest.cc + src/model/CreateOrGetVirtualLicenseOrderResult.cc src/model/CreateParameterGroupRequest.cc src/model/CreateParameterGroupResult.cc src/model/CreateServiceLinkedRoleRequest.cc @@ -380,6 +406,12 @@ set(polardb_src src/model/DescribeAITaskStatusResult.cc src/model/DescribeAccountsRequest.cc src/model/DescribeAccountsResult.cc + src/model/DescribeActivationCodeDetailsRequest.cc + src/model/DescribeActivationCodeDetailsResult.cc + src/model/DescribeActivationCodesRequest.cc + src/model/DescribeActivationCodesResult.cc + src/model/DescribeActiveOperationTasksRequest.cc + src/model/DescribeActiveOperationTasksResult.cc src/model/DescribeAutoRenewAttributeRequest.cc src/model/DescribeAutoRenewAttributeResult.cc src/model/DescribeBackupLogsRequest.cc @@ -450,6 +482,10 @@ set(polardb_src src/model/DescribeGlobalSecurityIPGroupResult.cc src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc src/model/DescribeGlobalSecurityIPGroupRelationResult.cc + src/model/DescribeLicenseOrderDetailsRequest.cc + src/model/DescribeLicenseOrderDetailsResult.cc + src/model/DescribeLicenseOrdersRequest.cc + src/model/DescribeLicenseOrdersResult.cc src/model/DescribeLogBackupPolicyRequest.cc src/model/DescribeLogBackupPolicyResult.cc src/model/DescribeMaskingRulesRequest.cc @@ -502,6 +538,8 @@ set(polardb_src src/model/ModifyAccountDescriptionResult.cc src/model/ModifyAccountPasswordRequest.cc src/model/ModifyAccountPasswordResult.cc + src/model/ModifyActiveOperationTasksRequest.cc + src/model/ModifyActiveOperationTasksResult.cc src/model/ModifyAutoRenewAttributeRequest.cc src/model/ModifyAutoRenewAttributeResult.cc src/model/ModifyBackupPolicyRequest.cc @@ -536,6 +574,8 @@ set(polardb_src src/model/ModifyDBClusterSSLResult.cc src/model/ModifyDBClusterServerlessConfRequest.cc src/model/ModifyDBClusterServerlessConfResult.cc + src/model/ModifyDBClusterStoragePerformanceRequest.cc + src/model/ModifyDBClusterStoragePerformanceResult.cc src/model/ModifyDBClusterStorageSpaceRequest.cc src/model/ModifyDBClusterStorageSpaceResult.cc src/model/ModifyDBClusterTDERequest.cc @@ -576,6 +616,8 @@ set(polardb_src src/model/ResetAccountResult.cc src/model/ResetGlobalDatabaseNetworkRequest.cc src/model/ResetGlobalDatabaseNetworkResult.cc + src/model/RestartDBLinkRequest.cc + src/model/RestartDBLinkResult.cc src/model/RestartDBNodeRequest.cc src/model/RestartDBNodeResult.cc src/model/RestoreTableRequest.cc @@ -592,8 +634,6 @@ set(polardb_src src/model/TransformDBClusterPayTypeResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc - src/model/UpgradeDBClusterMinorVersionRequest.cc - src/model/UpgradeDBClusterMinorVersionResult.cc src/model/UpgradeDBClusterVersionRequest.cc src/model/UpgradeDBClusterVersionResult.cc ) diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h index 9f15dd621..a87a6e617 100644 --- a/polardb/include/alibabacloud/polardb/PolardbClient.h +++ b/polardb/include/alibabacloud/polardb/PolardbClient.h @@ -22,6 +22,8 @@ #include #include #include "PolardbExport.h" +#include "model/CancelActiveOperationTasksRequest.h" +#include "model/CancelActiveOperationTasksResult.h" #include "model/CancelScheduleTasksRequest.h" #include "model/CancelScheduleTasksResult.h" #include "model/CheckAccountNameRequest.h" @@ -38,6 +40,8 @@ #include "model/CloseDBClusterMigrationResult.h" #include "model/CreateAccountRequest.h" #include "model/CreateAccountResult.h" +#include "model/CreateActivationCodeRequest.h" +#include "model/CreateActivationCodeResult.h" #include "model/CreateBackupRequest.h" #include "model/CreateBackupResult.h" #include "model/CreateColdStorageInstanceRequest.h" @@ -58,6 +62,8 @@ #include "model/CreateGlobalDatabaseNetworkResult.h" #include "model/CreateGlobalSecurityIPGroupRequest.h" #include "model/CreateGlobalSecurityIPGroupResult.h" +#include "model/CreateOrGetVirtualLicenseOrderRequest.h" +#include "model/CreateOrGetVirtualLicenseOrderResult.h" #include "model/CreateParameterGroupRequest.h" #include "model/CreateParameterGroupResult.h" #include "model/CreateServiceLinkedRoleRequest.h" @@ -92,6 +98,12 @@ #include "model/DescribeAITaskStatusResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" +#include "model/DescribeActivationCodeDetailsRequest.h" +#include "model/DescribeActivationCodeDetailsResult.h" +#include "model/DescribeActivationCodesRequest.h" +#include "model/DescribeActivationCodesResult.h" +#include "model/DescribeActiveOperationTasksRequest.h" +#include "model/DescribeActiveOperationTasksResult.h" #include "model/DescribeAutoRenewAttributeRequest.h" #include "model/DescribeAutoRenewAttributeResult.h" #include "model/DescribeBackupLogsRequest.h" @@ -162,6 +174,10 @@ #include "model/DescribeGlobalSecurityIPGroupResult.h" #include "model/DescribeGlobalSecurityIPGroupRelationRequest.h" #include "model/DescribeGlobalSecurityIPGroupRelationResult.h" +#include "model/DescribeLicenseOrderDetailsRequest.h" +#include "model/DescribeLicenseOrderDetailsResult.h" +#include "model/DescribeLicenseOrdersRequest.h" +#include "model/DescribeLicenseOrdersResult.h" #include "model/DescribeLogBackupPolicyRequest.h" #include "model/DescribeLogBackupPolicyResult.h" #include "model/DescribeMaskingRulesRequest.h" @@ -214,6 +230,8 @@ #include "model/ModifyAccountDescriptionResult.h" #include "model/ModifyAccountPasswordRequest.h" #include "model/ModifyAccountPasswordResult.h" +#include "model/ModifyActiveOperationTasksRequest.h" +#include "model/ModifyActiveOperationTasksResult.h" #include "model/ModifyAutoRenewAttributeRequest.h" #include "model/ModifyAutoRenewAttributeResult.h" #include "model/ModifyBackupPolicyRequest.h" @@ -248,6 +266,8 @@ #include "model/ModifyDBClusterSSLResult.h" #include "model/ModifyDBClusterServerlessConfRequest.h" #include "model/ModifyDBClusterServerlessConfResult.h" +#include "model/ModifyDBClusterStoragePerformanceRequest.h" +#include "model/ModifyDBClusterStoragePerformanceResult.h" #include "model/ModifyDBClusterStorageSpaceRequest.h" #include "model/ModifyDBClusterStorageSpaceResult.h" #include "model/ModifyDBClusterTDERequest.h" @@ -288,6 +308,8 @@ #include "model/ResetAccountResult.h" #include "model/ResetGlobalDatabaseNetworkRequest.h" #include "model/ResetGlobalDatabaseNetworkResult.h" +#include "model/RestartDBLinkRequest.h" +#include "model/RestartDBLinkResult.h" #include "model/RestartDBNodeRequest.h" #include "model/RestartDBNodeResult.h" #include "model/RestoreTableRequest.h" @@ -304,8 +326,6 @@ #include "model/TransformDBClusterPayTypeResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" -#include "model/UpgradeDBClusterMinorVersionRequest.h" -#include "model/UpgradeDBClusterMinorVersionResult.h" #include "model/UpgradeDBClusterVersionRequest.h" #include "model/UpgradeDBClusterVersionResult.h" @@ -317,6 +337,9 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT PolardbClient : public RpcServiceClient { public: + typedef Outcome CancelActiveOperationTasksOutcome; + typedef std::future CancelActiveOperationTasksOutcomeCallable; + typedef std::function&)> CancelActiveOperationTasksAsyncHandler; typedef Outcome CancelScheduleTasksOutcome; typedef std::future CancelScheduleTasksOutcomeCallable; typedef std::function&)> CancelScheduleTasksAsyncHandler; @@ -341,6 +364,9 @@ namespace AlibabaCloud typedef Outcome CreateAccountOutcome; typedef std::future CreateAccountOutcomeCallable; typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome CreateActivationCodeOutcome; + typedef std::future CreateActivationCodeOutcomeCallable; + typedef std::function&)> CreateActivationCodeAsyncHandler; typedef Outcome CreateBackupOutcome; typedef std::future CreateBackupOutcomeCallable; typedef std::function&)> CreateBackupAsyncHandler; @@ -371,6 +397,9 @@ namespace AlibabaCloud typedef Outcome CreateGlobalSecurityIPGroupOutcome; typedef std::future CreateGlobalSecurityIPGroupOutcomeCallable; typedef std::function&)> CreateGlobalSecurityIPGroupAsyncHandler; + typedef Outcome CreateOrGetVirtualLicenseOrderOutcome; + typedef std::future CreateOrGetVirtualLicenseOrderOutcomeCallable; + typedef std::function&)> CreateOrGetVirtualLicenseOrderAsyncHandler; typedef Outcome CreateParameterGroupOutcome; typedef std::future CreateParameterGroupOutcomeCallable; typedef std::function&)> CreateParameterGroupAsyncHandler; @@ -422,6 +451,15 @@ namespace AlibabaCloud typedef Outcome DescribeAccountsOutcome; typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeActivationCodeDetailsOutcome; + typedef std::future DescribeActivationCodeDetailsOutcomeCallable; + typedef std::function&)> DescribeActivationCodeDetailsAsyncHandler; + typedef Outcome DescribeActivationCodesOutcome; + typedef std::future DescribeActivationCodesOutcomeCallable; + typedef std::function&)> DescribeActivationCodesAsyncHandler; + typedef Outcome DescribeActiveOperationTasksOutcome; + typedef std::future DescribeActiveOperationTasksOutcomeCallable; + typedef std::function&)> DescribeActiveOperationTasksAsyncHandler; typedef Outcome DescribeAutoRenewAttributeOutcome; typedef std::future DescribeAutoRenewAttributeOutcomeCallable; typedef std::function&)> DescribeAutoRenewAttributeAsyncHandler; @@ -527,6 +565,12 @@ namespace AlibabaCloud typedef Outcome DescribeGlobalSecurityIPGroupRelationOutcome; typedef std::future DescribeGlobalSecurityIPGroupRelationOutcomeCallable; typedef std::function&)> DescribeGlobalSecurityIPGroupRelationAsyncHandler; + typedef Outcome DescribeLicenseOrderDetailsOutcome; + typedef std::future DescribeLicenseOrderDetailsOutcomeCallable; + typedef std::function&)> DescribeLicenseOrderDetailsAsyncHandler; + typedef Outcome DescribeLicenseOrdersOutcome; + typedef std::future DescribeLicenseOrdersOutcomeCallable; + typedef std::function&)> DescribeLicenseOrdersAsyncHandler; typedef Outcome DescribeLogBackupPolicyOutcome; typedef std::future DescribeLogBackupPolicyOutcomeCallable; typedef std::function&)> DescribeLogBackupPolicyAsyncHandler; @@ -605,6 +649,9 @@ namespace AlibabaCloud typedef Outcome ModifyAccountPasswordOutcome; typedef std::future ModifyAccountPasswordOutcomeCallable; typedef std::function&)> ModifyAccountPasswordAsyncHandler; + typedef Outcome ModifyActiveOperationTasksOutcome; + typedef std::future ModifyActiveOperationTasksOutcomeCallable; + typedef std::function&)> ModifyActiveOperationTasksAsyncHandler; typedef Outcome ModifyAutoRenewAttributeOutcome; typedef std::future ModifyAutoRenewAttributeOutcomeCallable; typedef std::function&)> ModifyAutoRenewAttributeAsyncHandler; @@ -656,6 +703,9 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterServerlessConfOutcome; typedef std::future ModifyDBClusterServerlessConfOutcomeCallable; typedef std::function&)> ModifyDBClusterServerlessConfAsyncHandler; + typedef Outcome ModifyDBClusterStoragePerformanceOutcome; + typedef std::future ModifyDBClusterStoragePerformanceOutcomeCallable; + typedef std::function&)> ModifyDBClusterStoragePerformanceAsyncHandler; typedef Outcome ModifyDBClusterStorageSpaceOutcome; typedef std::future ModifyDBClusterStorageSpaceOutcomeCallable; typedef std::function&)> ModifyDBClusterStorageSpaceAsyncHandler; @@ -716,6 +766,9 @@ namespace AlibabaCloud typedef Outcome ResetGlobalDatabaseNetworkOutcome; typedef std::future ResetGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> ResetGlobalDatabaseNetworkAsyncHandler; + typedef Outcome RestartDBLinkOutcome; + typedef std::future RestartDBLinkOutcomeCallable; + typedef std::function&)> RestartDBLinkAsyncHandler; typedef Outcome RestartDBNodeOutcome; typedef std::future RestartDBNodeOutcomeCallable; typedef std::function&)> RestartDBNodeAsyncHandler; @@ -740,9 +793,6 @@ namespace AlibabaCloud typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; - typedef Outcome UpgradeDBClusterMinorVersionOutcome; - typedef std::future UpgradeDBClusterMinorVersionOutcomeCallable; - typedef std::function&)> UpgradeDBClusterMinorVersionAsyncHandler; typedef Outcome UpgradeDBClusterVersionOutcome; typedef std::future UpgradeDBClusterVersionOutcomeCallable; typedef std::function&)> UpgradeDBClusterVersionAsyncHandler; @@ -751,6 +801,9 @@ namespace AlibabaCloud PolardbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); PolardbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~PolardbClient(); + CancelActiveOperationTasksOutcome cancelActiveOperationTasks(const Model::CancelActiveOperationTasksRequest &request)const; + void cancelActiveOperationTasksAsync(const Model::CancelActiveOperationTasksRequest& request, const CancelActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelActiveOperationTasksOutcomeCallable cancelActiveOperationTasksCallable(const Model::CancelActiveOperationTasksRequest& request) const; CancelScheduleTasksOutcome cancelScheduleTasks(const Model::CancelScheduleTasksRequest &request)const; void cancelScheduleTasksAsync(const Model::CancelScheduleTasksRequest& request, const CancelScheduleTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelScheduleTasksOutcomeCallable cancelScheduleTasksCallable(const Model::CancelScheduleTasksRequest& request) const; @@ -775,6 +828,9 @@ namespace AlibabaCloud CreateAccountOutcome createAccount(const Model::CreateAccountRequest &request)const; void createAccountAsync(const Model::CreateAccountRequest& request, const CreateAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateAccountOutcomeCallable createAccountCallable(const Model::CreateAccountRequest& request) const; + CreateActivationCodeOutcome createActivationCode(const Model::CreateActivationCodeRequest &request)const; + void createActivationCodeAsync(const Model::CreateActivationCodeRequest& request, const CreateActivationCodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateActivationCodeOutcomeCallable createActivationCodeCallable(const Model::CreateActivationCodeRequest& request) const; CreateBackupOutcome createBackup(const Model::CreateBackupRequest &request)const; void createBackupAsync(const Model::CreateBackupRequest& request, const CreateBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBackupOutcomeCallable createBackupCallable(const Model::CreateBackupRequest& request) const; @@ -805,6 +861,9 @@ namespace AlibabaCloud CreateGlobalSecurityIPGroupOutcome createGlobalSecurityIPGroup(const Model::CreateGlobalSecurityIPGroupRequest &request)const; void createGlobalSecurityIPGroupAsync(const Model::CreateGlobalSecurityIPGroupRequest& request, const CreateGlobalSecurityIPGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGlobalSecurityIPGroupOutcomeCallable createGlobalSecurityIPGroupCallable(const Model::CreateGlobalSecurityIPGroupRequest& request) const; + CreateOrGetVirtualLicenseOrderOutcome createOrGetVirtualLicenseOrder(const Model::CreateOrGetVirtualLicenseOrderRequest &request)const; + void createOrGetVirtualLicenseOrderAsync(const Model::CreateOrGetVirtualLicenseOrderRequest& request, const CreateOrGetVirtualLicenseOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOrGetVirtualLicenseOrderOutcomeCallable createOrGetVirtualLicenseOrderCallable(const Model::CreateOrGetVirtualLicenseOrderRequest& request) const; CreateParameterGroupOutcome createParameterGroup(const Model::CreateParameterGroupRequest &request)const; void createParameterGroupAsync(const Model::CreateParameterGroupRequest& request, const CreateParameterGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateParameterGroupOutcomeCallable createParameterGroupCallable(const Model::CreateParameterGroupRequest& request) const; @@ -856,6 +915,15 @@ namespace AlibabaCloud DescribeAccountsOutcome describeAccounts(const Model::DescribeAccountsRequest &request)const; void describeAccountsAsync(const Model::DescribeAccountsRequest& request, const DescribeAccountsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAccountsOutcomeCallable describeAccountsCallable(const Model::DescribeAccountsRequest& request) const; + DescribeActivationCodeDetailsOutcome describeActivationCodeDetails(const Model::DescribeActivationCodeDetailsRequest &request)const; + void describeActivationCodeDetailsAsync(const Model::DescribeActivationCodeDetailsRequest& request, const DescribeActivationCodeDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActivationCodeDetailsOutcomeCallable describeActivationCodeDetailsCallable(const Model::DescribeActivationCodeDetailsRequest& request) const; + DescribeActivationCodesOutcome describeActivationCodes(const Model::DescribeActivationCodesRequest &request)const; + void describeActivationCodesAsync(const Model::DescribeActivationCodesRequest& request, const DescribeActivationCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActivationCodesOutcomeCallable describeActivationCodesCallable(const Model::DescribeActivationCodesRequest& request) const; + DescribeActiveOperationTasksOutcome describeActiveOperationTasks(const Model::DescribeActiveOperationTasksRequest &request)const; + void describeActiveOperationTasksAsync(const Model::DescribeActiveOperationTasksRequest& request, const DescribeActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationTasksOutcomeCallable describeActiveOperationTasksCallable(const Model::DescribeActiveOperationTasksRequest& request) const; DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const; void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const; @@ -961,6 +1029,12 @@ namespace AlibabaCloud DescribeGlobalSecurityIPGroupRelationOutcome describeGlobalSecurityIPGroupRelation(const Model::DescribeGlobalSecurityIPGroupRelationRequest &request)const; void describeGlobalSecurityIPGroupRelationAsync(const Model::DescribeGlobalSecurityIPGroupRelationRequest& request, const DescribeGlobalSecurityIPGroupRelationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGlobalSecurityIPGroupRelationOutcomeCallable describeGlobalSecurityIPGroupRelationCallable(const Model::DescribeGlobalSecurityIPGroupRelationRequest& request) const; + DescribeLicenseOrderDetailsOutcome describeLicenseOrderDetails(const Model::DescribeLicenseOrderDetailsRequest &request)const; + void describeLicenseOrderDetailsAsync(const Model::DescribeLicenseOrderDetailsRequest& request, const DescribeLicenseOrderDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLicenseOrderDetailsOutcomeCallable describeLicenseOrderDetailsCallable(const Model::DescribeLicenseOrderDetailsRequest& request) const; + DescribeLicenseOrdersOutcome describeLicenseOrders(const Model::DescribeLicenseOrdersRequest &request)const; + void describeLicenseOrdersAsync(const Model::DescribeLicenseOrdersRequest& request, const DescribeLicenseOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLicenseOrdersOutcomeCallable describeLicenseOrdersCallable(const Model::DescribeLicenseOrdersRequest& request) const; DescribeLogBackupPolicyOutcome describeLogBackupPolicy(const Model::DescribeLogBackupPolicyRequest &request)const; void describeLogBackupPolicyAsync(const Model::DescribeLogBackupPolicyRequest& request, const DescribeLogBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLogBackupPolicyOutcomeCallable describeLogBackupPolicyCallable(const Model::DescribeLogBackupPolicyRequest& request) const; @@ -1039,6 +1113,9 @@ namespace AlibabaCloud ModifyAccountPasswordOutcome modifyAccountPassword(const Model::ModifyAccountPasswordRequest &request)const; void modifyAccountPasswordAsync(const Model::ModifyAccountPasswordRequest& request, const ModifyAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountPasswordOutcomeCallable modifyAccountPasswordCallable(const Model::ModifyAccountPasswordRequest& request) const; + ModifyActiveOperationTasksOutcome modifyActiveOperationTasks(const Model::ModifyActiveOperationTasksRequest &request)const; + void modifyActiveOperationTasksAsync(const Model::ModifyActiveOperationTasksRequest& request, const ModifyActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyActiveOperationTasksOutcomeCallable modifyActiveOperationTasksCallable(const Model::ModifyActiveOperationTasksRequest& request) const; ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const; void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const; @@ -1090,6 +1167,9 @@ namespace AlibabaCloud ModifyDBClusterServerlessConfOutcome modifyDBClusterServerlessConf(const Model::ModifyDBClusterServerlessConfRequest &request)const; void modifyDBClusterServerlessConfAsync(const Model::ModifyDBClusterServerlessConfRequest& request, const ModifyDBClusterServerlessConfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterServerlessConfOutcomeCallable modifyDBClusterServerlessConfCallable(const Model::ModifyDBClusterServerlessConfRequest& request) const; + ModifyDBClusterStoragePerformanceOutcome modifyDBClusterStoragePerformance(const Model::ModifyDBClusterStoragePerformanceRequest &request)const; + void modifyDBClusterStoragePerformanceAsync(const Model::ModifyDBClusterStoragePerformanceRequest& request, const ModifyDBClusterStoragePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterStoragePerformanceOutcomeCallable modifyDBClusterStoragePerformanceCallable(const Model::ModifyDBClusterStoragePerformanceRequest& request) const; ModifyDBClusterStorageSpaceOutcome modifyDBClusterStorageSpace(const Model::ModifyDBClusterStorageSpaceRequest &request)const; void modifyDBClusterStorageSpaceAsync(const Model::ModifyDBClusterStorageSpaceRequest& request, const ModifyDBClusterStorageSpaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterStorageSpaceOutcomeCallable modifyDBClusterStorageSpaceCallable(const Model::ModifyDBClusterStorageSpaceRequest& request) const; @@ -1150,6 +1230,9 @@ namespace AlibabaCloud ResetGlobalDatabaseNetworkOutcome resetGlobalDatabaseNetwork(const Model::ResetGlobalDatabaseNetworkRequest &request)const; void resetGlobalDatabaseNetworkAsync(const Model::ResetGlobalDatabaseNetworkRequest& request, const ResetGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetGlobalDatabaseNetworkOutcomeCallable resetGlobalDatabaseNetworkCallable(const Model::ResetGlobalDatabaseNetworkRequest& request) const; + RestartDBLinkOutcome restartDBLink(const Model::RestartDBLinkRequest &request)const; + void restartDBLinkAsync(const Model::RestartDBLinkRequest& request, const RestartDBLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBLinkOutcomeCallable restartDBLinkCallable(const Model::RestartDBLinkRequest& request) const; RestartDBNodeOutcome restartDBNode(const Model::RestartDBNodeRequest &request)const; void restartDBNodeAsync(const Model::RestartDBNodeRequest& request, const RestartDBNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestartDBNodeOutcomeCallable restartDBNodeCallable(const Model::RestartDBNodeRequest& request) const; @@ -1174,9 +1257,6 @@ namespace AlibabaCloud UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; - UpgradeDBClusterMinorVersionOutcome upgradeDBClusterMinorVersion(const Model::UpgradeDBClusterMinorVersionRequest &request)const; - void upgradeDBClusterMinorVersionAsync(const Model::UpgradeDBClusterMinorVersionRequest& request, const UpgradeDBClusterMinorVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpgradeDBClusterMinorVersionOutcomeCallable upgradeDBClusterMinorVersionCallable(const Model::UpgradeDBClusterMinorVersionRequest& request) const; UpgradeDBClusterVersionOutcome upgradeDBClusterVersion(const Model::UpgradeDBClusterVersionRequest &request)const; void upgradeDBClusterVersionAsync(const Model::UpgradeDBClusterVersionRequest& request, const UpgradeDBClusterVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeDBClusterVersionOutcomeCallable upgradeDBClusterVersionCallable(const Model::UpgradeDBClusterVersionRequest& request) const; diff --git a/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksRequest.h b/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksRequest.h new file mode 100644 index 000000000..7810a5305 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksRequest.h @@ -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_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CancelActiveOperationTasksRequest : public RpcServiceRequest { +public: + CancelActiveOperationTasksRequest(); + ~CancelActiveOperationTasksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUid() const; + void setUid(const std::string &uid); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEngineType() const; + void setEngineType(const std::string &engineType); + 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); + +private: + long resourceOwnerId_; + std::string taskIds_; + std::string accessKeyId_; + std::string uid_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string engineType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksResult.h b/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksResult.h new file mode 100644 index 000000000..4a0ad002d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CancelActiveOperationTasksResult.h @@ -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_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CancelActiveOperationTasksResult : public ServiceResult + { + public: + + + CancelActiveOperationTasksResult(); + explicit CancelActiveOperationTasksResult(const std::string &payload); + ~CancelActiveOperationTasksResult(); + std::string getTaskIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CANCELACTIVEOPERATIONTASKSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateActivationCodeRequest.h b/polardb/include/alibabacloud/polardb/model/CreateActivationCodeRequest.h new file mode 100644 index 000000000..41fe3ee28 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateActivationCodeRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateActivationCodeRequest : public RpcServiceRequest { +public: + CreateActivationCodeRequest(); + ~CreateActivationCodeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAliyunOrderId() const; + void setAliyunOrderId(const std::string &aliyunOrderId); + std::string getMacAddress() const; + void setMacAddress(const std::string &macAddress); + std::string getSystemIdentifier() const; + void setSystemIdentifier(const std::string &systemIdentifier); + 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 getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string description_; + std::string accessKeyId_; + std::string aliyunOrderId_; + std::string macAddress_; + std::string systemIdentifier_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateActivationCodeResult.h b/polardb/include/alibabacloud/polardb/model/CreateActivationCodeResult.h new file mode 100644 index 000000000..fa8b0cbf8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateActivationCodeResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateActivationCodeResult : public ServiceResult + { + public: + + + CreateActivationCodeResult(); + explicit CreateActivationCodeResult(const std::string &payload); + ~CreateActivationCodeResult(); + std::string getDescription()const; + std::string getGmtModified()const; + std::string getSystemIdentifier()const; + std::string getActivateAt()const; + std::string getExpireAt()const; + std::string getCertContentB64()const; + std::string getGmtCreated()const; + int getId()const; + std::string getMacAddress()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string gmtModified_; + std::string systemIdentifier_; + std::string activateAt_; + std::string expireAt_; + std::string certContentB64_; + std::string gmtCreated_; + int id_; + std::string macAddress_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACTIVATIONCODERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h b/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h index 760ff65c3..2fef49d3e 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateBackupRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getDataLevel2BackupRetentionPeriod() const; + void setDataLevel2BackupRetentionPeriod(const std::string &dataLevel2BackupRetentionPeriod); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getResourceOwnerAccount() const; @@ -48,6 +50,7 @@ public: private: long resourceOwnerId_; std::string clientToken_; + std::string dataLevel2BackupRetentionPeriod_; std::string accessKeyId_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h index ff7cb66a5..1e4382ee5 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h @@ -36,12 +36,20 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getClientToken() const; void setClientToken(const std::string &clientToken); + std::string getPolarSccWaitTimeout() const; + void setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getReadWriteMode() const; void setReadWriteMode(const std::string &readWriteMode); std::string getEndpointType() const; void setEndpointType(const std::string &endpointType); + std::string getPolarSccTimeoutAction() const; + void setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction); + std::string getEndpointSubCluster() const; + void setEndpointSubCluster(const std::string &endpointSubCluster); + std::string getStandbyVSwitchId() const; + void setStandbyVSwitchId(const std::string &standbyVSwitchId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -58,6 +66,8 @@ public: void setVSwitchId(const std::string &vSwitchId); std::string getNodes() const; void setNodes(const std::string &nodes); + std::string getSccMode() const; + void setSccMode(const std::string &sccMode); std::string getVPCId() const; void setVPCId(const std::string &vPCId); @@ -65,9 +75,13 @@ private: std::string autoAddNewNodes_; long resourceOwnerId_; std::string clientToken_; + std::string polarSccWaitTimeout_; std::string accessKeyId_; std::string readWriteMode_; std::string endpointType_; + std::string polarSccTimeoutAction_; + std::string endpointSubCluster_; + std::string standbyVSwitchId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; @@ -76,6 +90,7 @@ private: long ownerId_; std::string vSwitchId_; std::string nodes_; + std::string sccMode_; std::string vPCId_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h index b53432c43..236278ae1 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h @@ -90,6 +90,8 @@ public: void setAllowShutDown(const std::string &allowShutDown); std::string getLowerCaseTableNames() const; void setLowerCaseTableNames(const std::string &lowerCaseTableNames); + bool getStorageEncryption() const; + void setStorageEncryption(bool storageEncryption); std::string getScaleRoNumMax() const; void setScaleRoNumMax(const std::string &scaleRoNumMax); std::string getStandbyAZ() const; @@ -102,6 +104,8 @@ public: void setAccessKeyId(const std::string &accessKeyId); std::string getClusterNetworkType() const; void setClusterNetworkType(const std::string &clusterNetworkType); + std::string getStorageEncryptionKey() const; + void setStorageEncryptionKey(const std::string &storageEncryptionKey); std::string getParameterGroupId() const; void setParameterGroupId(const std::string ¶meterGroupId); std::string getRegionId() const; @@ -124,6 +128,10 @@ public: void setLooseXEngineUseMemoryPct(const std::string &looseXEngineUseMemoryPct); std::string getUsedTime() const; void setUsedTime(const std::string &usedTime); + std::string getBurstingEnabled() const; + void setBurstingEnabled(const std::string &burstingEnabled); + std::string getTargetMinorVersion() const; + void setTargetMinorVersion(const std::string &targetMinorVersion); int getDBNodeNum() const; void setDBNodeNum(int dBNodeNum); long getStorageUpperBound() const; @@ -176,12 +184,14 @@ private: bool tDEStatus_; std::string allowShutDown_; std::string lowerCaseTableNames_; + bool storageEncryption_; std::string scaleRoNumMax_; std::string standbyAZ_; std::string clientToken_; std::string defaultTimeZone_; std::string accessKeyId_; std::string clusterNetworkType_; + std::string storageEncryptionKey_; std::string parameterGroupId_; std::string regionId_; std::string engine_; @@ -193,6 +203,8 @@ private: std::string ownerAccount_; std::string looseXEngineUseMemoryPct_; std::string usedTime_; + std::string burstingEnabled_; + std::string targetMinorVersion_; int dBNodeNum_; long storageUpperBound_; std::string vPCId_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h b/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h index f4ee848cd..48894f259 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h @@ -36,6 +36,8 @@ public: 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 getSecurityToken() const; void setSecurityToken(const std::string &securityToken); std::string getGDNDescription() const; @@ -46,19 +48,29 @@ public: void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + bool getEnableGlobalDomainName() const; + void setEnableGlobalDomainName(bool enableGlobalDomainName); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + std::string getDBName() const; + void setDBName(const std::string &dBName); private: long resourceOwnerId_; std::string accessKeyId_; std::string resourceGroupId_; + std::string accountName_; std::string securityToken_; std::string gDNDescription_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + bool enableGlobalDomainName_; long ownerId_; + std::string accountPassword_; + std::string dBName_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderRequest.h b/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderRequest.h new file mode 100644 index 000000000..cf3d7eebb --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderRequest.h @@ -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_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateOrGetVirtualLicenseOrderRequest : public RpcServiceRequest { +public: + CreateOrGetVirtualLicenseOrderRequest(); + ~CreateOrGetVirtualLicenseOrderRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEngine() const; + void setEngine(const std::string &engine); + 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); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string engine_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderResult.h b/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderResult.h new file mode 100644 index 000000000..b044c622f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateOrGetVirtualLicenseOrderResult : public ServiceResult + { + public: + + + CreateOrGetVirtualLicenseOrderResult(); + explicit CreateOrGetVirtualLicenseOrderResult(const std::string &payload); + ~CreateOrGetVirtualLicenseOrderResult(); + std::string getVirtualOrderId()const; + std::string getAliyunOrderId()const; + int getActivatedCodeCount()const; + std::string getPackageValidity()const; + bool getIsVirtualOrder()const; + std::string getPackageType()const; + std::string getGmtModified()const; + bool getAllowEmptySystemIdentifier()const; + std::string getGmtCreated()const; + bool getIsVirtualOrderFrozen()const; + std::string getPurchaseChannel()const; + int getActivationCodeQuota()const; + + protected: + void parse(const std::string &payload); + private: + std::string virtualOrderId_; + std::string aliyunOrderId_; + int activatedCodeCount_; + std::string packageValidity_; + bool isVirtualOrder_; + std::string packageType_; + std::string gmtModified_; + bool allowEmptySystemIdentifier_; + std::string gmtCreated_; + bool isVirtualOrderFrozen_; + std::string purchaseChannel_; + int activationCodeQuota_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEORGETVIRTUALLICENSEORDERRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h index 515f100df..7b69b083e 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h @@ -40,6 +40,7 @@ namespace AlibabaCloud std::string getStatus()const; std::string getDBClusterId()const; std::string getStatusName()const; + std::string getAccountName()const; protected: void parse(const std::string &payload); @@ -47,6 +48,7 @@ namespace AlibabaCloud std::string status_; std::string dBClusterId_; std::string statusName_; + std::string accountName_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsRequest.h new file mode 100644 index 000000000..8c0ab9931 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeActivationCodeDetailsRequest : public RpcServiceRequest { +public: + DescribeActivationCodeDetailsRequest(); + ~DescribeActivationCodeDetailsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getActivationCodeId() const; + void setActivationCodeId(int activationCodeId); + std::string getAliyunOrderId() const; + void setAliyunOrderId(const std::string &aliyunOrderId); + 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); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + int activationCodeId_; + std::string aliyunOrderId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsResult.h new file mode 100644 index 000000000..5de8ac312 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodeDetailsResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeActivationCodeDetailsResult : public ServiceResult + { + public: + + + DescribeActivationCodeDetailsResult(); + explicit DescribeActivationCodeDetailsResult(const std::string &payload); + ~DescribeActivationCodeDetailsResult(); + std::string getDescription()const; + std::string getGmtModified()const; + std::string getSystemIdentifier()const; + std::string getActivateAt()const; + std::string getExpireAt()const; + std::string getCertContentB64()const; + std::string getGmtCreated()const; + int getId()const; + std::string getMacAddress()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string description_; + std::string gmtModified_; + std::string systemIdentifier_; + std::string activateAt_; + std::string expireAt_; + std::string certContentB64_; + std::string gmtCreated_; + int id_; + std::string macAddress_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODEDETAILSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h new file mode 100644 index 000000000..02c1eb76d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h @@ -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_POLARDB_MODEL_DESCRIBEACTIVATIONCODESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeActivationCodesRequest : public RpcServiceRequest { +public: + DescribeActivationCodesRequest(); + ~DescribeActivationCodesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAliyunOrderId() const; + void setAliyunOrderId(const std::string &aliyunOrderId); + 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); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string aliyunOrderId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesResult.h new file mode 100644 index 000000000..3b86ff1c8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeActivationCodesResult : public ServiceResult + { + public: + struct ActivationCodes + { + std::string description; + std::string gmtModified; + std::string systemIdentifier; + std::string activateAt; + std::string expireAt; + std::string gmtCreated; + int id; + std::string macAddress; + std::string name; + }; + + + DescribeActivationCodesResult(); + explicit DescribeActivationCodesResult(const std::string &payload); + ~DescribeActivationCodesResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVATIONCODESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksRequest.h new file mode 100644 index 000000000..ed2da1313 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONTASKSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeActiveOperationTasksRequest : public RpcServiceRequest { +public: + DescribeActiveOperationTasksRequest(); + ~DescribeActiveOperationTasksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getChangeLevel() const; + void setChangeLevel(const std::string &changeLevel); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getProductName() const; + void setProductName(const std::string &productName); + std::string getEngineType() const; + void setEngineType(const std::string &engineType); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + 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); + long getAllowCancel() const; + void setAllowCancel(long allowCancel); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBType() const; + void setDBType(const std::string &dBType); + long getAllowChange() const; + void setAllowChange(long allowChange); + std::string getRegion() const; + void setRegion(const std::string ®ion); + long getStatus() const; + void setStatus(long status); + +private: + long resourceOwnerId_; + std::string changeLevel_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string productName_; + std::string engineType_; + std::string taskType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long allowCancel_; + long ownerId_; + std::string dBType_; + long allowChange_; + std::string region_; + long status_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONTASKSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksResult.h new file mode 100644 index 000000000..7dd0712a0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationTasksResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_DESCRIBEACTIVEOPERATIONTASKSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeActiveOperationTasksResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string createdTime; + int taskId; + std::vector dBNodeIds; + std::string dBClusterId; + std::string dBType; + std::string impactEn; + std::string changeLevelZh; + std::string taskTypeZh; + std::string dBVersion; + std::string modifiedTime; + std::string taskTypeEn; + std::string impactZh; + std::string taskType; + std::string switchTime; + int status; + std::string impact; + std::string currentAVZ; + std::string deadline; + std::string startTime; + std::string changeLevel; + std::string insComment; + std::string changeLevelEn; + long allowCancel; + std::string taskParams; + long allowChange; + std::string prepareInterval; + std::string region; + std::string resultInfo; + }; + + + DescribeActiveOperationTasksResult(); + explicit DescribeActiveOperationTasksResult(const std::string &payload); + ~DescribeActiveOperationTasksResult(); + int getTotalRecordCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONTASKSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h index a211c4343..b6b35b8af 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h @@ -59,6 +59,7 @@ namespace AlibabaCloud std::string getPageRecordCount()const; std::string getPageNumber()const; std::vector getItems()const; + std::string getTotalLevel2BackupSize()const; protected: void parse(const std::string &payload); @@ -67,6 +68,7 @@ namespace AlibabaCloud std::string pageRecordCount_; std::string pageNumber_; std::vector items_; + std::string totalLevel2BackupSize_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h b/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h index c12c3a47a..80a9ab841 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeClassListResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct ItemsItem { std::string classTypeLevel; + std::string essdMaxStorageCapacity; std::string maxConnections; std::string pl2MaxIOPS; std::string pl3MaxIOPS; @@ -42,6 +43,7 @@ namespace AlibabaCloud std::string referencePrice; std::string maxIOPS; std::string classCode; + std::string polarStoreMaxStorageCapacity; std::string psl4MaxIOPS; std::string classGroup; std::string psl5MaxIOPS; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h index 141ebabcd..8f113972c 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h @@ -32,17 +32,17 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAccessWhitelistResult : public ServiceResult { public: + struct DBClusterSecurityGroup + { + std::string securityGroupName; + std::string securityGroupId; + }; struct DBClusterIPArray { std::string securityIps; std::string dBClusterIPArrayName; std::string dBClusterIPArrayAttribute; }; - struct DBClusterSecurityGroup - { - std::string securityGroupName; - std::string securityGroupId; - }; DescribeDBClusterAccessWhitelistResult(); diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h index feb2475f0..30c3fb7a4 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h @@ -43,26 +43,32 @@ namespace AlibabaCloud }; struct DBNode { - std::string memorySize; std::string dBNodeStatus; - std::string zoneId; - int maxConnections; std::string addedCpuCores; + std::string orca; std::string dBNodeRole; std::string subCluster; std::string imciSwitch; std::string dBNodeId; + std::string remoteMemorySize; + std::string tair; + std::string multiMasterLocalStandby; + std::string multiMasterPrimaryNode; + std::string sccMode; + int failoverPriority; + std::string serverWeight; + std::string dBNodeDescription; + std::string memorySize; + std::string mirrorInsName; + std::string zoneId; + int maxConnections; int maxIOPS; std::string dBNodeClass; - std::string tair; std::string serverlessType; std::string creationTime; std::string cpuCores; - std::string sccMode; std::string masterId; - int failoverPriority; std::string hotReplicaMode; - std::string serverWeight; }; struct Tag { @@ -76,6 +82,7 @@ namespace AlibabaCloud ~DescribeDBClusterAttributeResult(); std::string getResourceGroupId()const; long getCompressStorageUsed()const; + std::string getOrca()const; std::string getStoragePayType()const; long getDataLevel1BackupChainSize()const; std::string getProxyStatus()const; @@ -85,6 +92,7 @@ namespace AlibabaCloud std::string getProxyStandardCpuCores()const; std::string getDBVersion()const; std::vector getDBNodes()const; + std::string getImciAutoIndex()const; std::string getFeatureHTAPSupported()const; std::vector getTags()const; std::string getEngine()const; @@ -99,26 +107,36 @@ namespace AlibabaCloud std::string getProvisionedIops()const; long getStorageUsed()const; long getInodeTotal()const; + std::string getRestoreDataPoint()const; std::string getCompressStorageMode()const; std::string getDBVersionStatus()const; std::string getProxyServerlessType()const; std::string getCreationTime()const; + std::string getImperceptibleSwitch()const; std::string getProxyType()const; std::string getExpireTime()const; int getDeletionLock()const; std::string getCategory()const; + std::string getAiCreatingTime()const; + bool getStorageTypeWhiteListSwitch()const; std::string getDBClusterId()const; std::string getHotStandbyCluster()const; std::string getDeployUnit()const; + std::string getAiFreeMode()const; std::string getDBClusterNetworkType()const; bool getIsLatestVersion()const; + std::string getSourceRegionId()const; long getStorageMax()const; std::string getZoneIds()const; + bool getHotStandbyWhiteListSwitch()const; long getInodeUsed()const; + std::string getRestoreType()const; std::string getMaintainTime()const; + std::string getBurstingEnabled()const; std::string getHotStandbyClusterStatus()const; long getBlktagTotal()const; std::string getDataSyncMode()const; + std::string getSourceDBCluster()const; std::string getDBClusterStatus()const; std::string getProxyCpuCores()const; std::string getStrictConsistency()const; @@ -128,9 +146,11 @@ namespace AlibabaCloud std::string getSubCategory()const; std::string getAiType()const; bool getHasCompleteStandbyRes()const; + std::string getSupportInstantSwitchWithImci()const; RelatedAPInstance getRelatedAPInstance()const; long getSQLSize()const; std::string getRegionId()const; + std::string getRowCompression()const; bool getHotStandbyHealthy()const; protected: @@ -138,6 +158,7 @@ namespace AlibabaCloud private: std::string resourceGroupId_; long compressStorageUsed_; + std::string orca_; std::string storagePayType_; long dataLevel1BackupChainSize_; std::string proxyStatus_; @@ -147,6 +168,7 @@ namespace AlibabaCloud std::string proxyStandardCpuCores_; std::string dBVersion_; std::vector dBNodes_; + std::string imciAutoIndex_; std::string featureHTAPSupported_; std::vector tags_; std::string engine_; @@ -161,26 +183,36 @@ namespace AlibabaCloud std::string provisionedIops_; long storageUsed_; long inodeTotal_; + std::string restoreDataPoint_; std::string compressStorageMode_; std::string dBVersionStatus_; std::string proxyServerlessType_; std::string creationTime_; + std::string imperceptibleSwitch_; std::string proxyType_; std::string expireTime_; int deletionLock_; std::string category_; + std::string aiCreatingTime_; + bool storageTypeWhiteListSwitch_; std::string dBClusterId_; std::string hotStandbyCluster_; std::string deployUnit_; + std::string aiFreeMode_; std::string dBClusterNetworkType_; bool isLatestVersion_; + std::string sourceRegionId_; long storageMax_; std::string zoneIds_; + bool hotStandbyWhiteListSwitch_; long inodeUsed_; + std::string restoreType_; std::string maintainTime_; + std::string burstingEnabled_; std::string hotStandbyClusterStatus_; long blktagTotal_; std::string dataSyncMode_; + std::string sourceDBCluster_; std::string dBClusterStatus_; std::string proxyCpuCores_; std::string strictConsistency_; @@ -190,9 +222,11 @@ namespace AlibabaCloud std::string subCategory_; std::string aiType_; bool hasCompleteStandbyRes_; + std::string supportInstantSwitchWithImci_; RelatedAPInstance relatedAPInstance_; long sQLSize_; std::string regionId_; + std::string rowCompression_; bool hotStandbyHealthy_; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h index 08d588629..9f9071485 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h @@ -46,15 +46,18 @@ namespace AlibabaCloud std::string netType; }; std::string dBEndpointId; + std::string polarSccTimeoutAction; + std::string dBClusterId; + std::string nodes; + std::string readWriteMode; + std::string dBEndpointDescription; + std::string polarSccWaitTimeout; std::string nodeWithRoles; std::string autoAddNewNodes; std::string endpointType; - std::string dBClusterId; std::vector addressItems; - std::string nodes; - std::string readWriteMode; + std::string sccMode; std::string endpointConfig; - std::string dBEndpointDescription; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h index e7e0695a4..934cc0be9 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h @@ -66,40 +66,74 @@ namespace AlibabaCloud std::string endpointType; std::vector addressItems1; }; + struct SrcDtsJob + { + std::string status; + std::string dtsJobId; + std::string dtsJobDirection; + std::string destinationEndpoint; + std::string sourceEndpoint; + std::string dtsJobName; + std::string dtsInstanceID; + }; + struct DstDtsJob + { + std::string status; + std::string dtsJobId; + std::string dtsJobDirection; + std::string destinationEndpoint; + std::string sourceEndpoint; + std::string dtsJobName; + std::string dtsInstanceId; + }; DescribeDBClusterMigrationResult(); explicit DescribeDBClusterMigrationResult(const std::string &payload); ~DescribeDBClusterMigrationResult(); std::string getComment()const; + std::string getSrcBinlogPosition()const; + std::string getMigrationDtsJobEndpoint()const; std::string getDBClusterId()const; std::string getSrcDbType()const; std::string getSourceRDSDBInstanceId()const; std::string getDBClusterReadWriteMode()const; + std::string getMigrationProgress()const; std::string getMigrationStatus()const; std::string getDtsInstanceId()const; std::vector getRdsEndpointList()const; + std::vector getSrcDtsJobList()const; std::vector getDBClusterEndpointList()const; + std::string getDstBinlogPosition()const; std::string getExpiredTime()const; + std::string getMigrationSwitch()const; std::string getTopologies()const; std::string getRdsReadWriteMode()const; + std::vector getDstDtsJobList()const; int getDelayedSeconds()const; protected: void parse(const std::string &payload); private: std::string comment_; + std::string srcBinlogPosition_; + std::string migrationDtsJobEndpoint_; std::string dBClusterId_; std::string srcDbType_; std::string sourceRDSDBInstanceId_; std::string dBClusterReadWriteMode_; + std::string migrationProgress_; std::string migrationStatus_; std::string dtsInstanceId_; std::vector rdsEndpointList_; + std::vector srcDtsJobList_; std::vector dBClusterEndpointList_; + std::string dstBinlogPosition_; std::string expiredTime_; + std::string migrationSwitch_; std::string topologies_; std::string rdsReadWriteMode_; + std::vector dstDtsJobList_; int delayedSeconds_; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h index a28f0c295..d2279057d 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h @@ -49,15 +49,19 @@ namespace AlibabaCloud }; struct ParametersItem { - std::string rdsParameterDescription; std::string distParameterValue; - std::string rdsParameterOptional; std::string rdsParameterValue; std::string distParameterDescription; - std::string distParameterOptional; - std::string rdsParameterName; + std::string isPolarDBKey; + std::string isRdsKey; std::string distParameterName; std::string isEqual; + std::string rdsParameterDescription; + std::string isInstanceRdsKey; + std::string rdsParameterOptional; + std::string distParameterOptional; + std::string isInstancePolarDBKey; + std::string rdsParameterName; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h index b55481f8d..7db933617 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h @@ -34,6 +34,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getStartTime() const; void setStartTime(const std::string &startTime); + std::string getType() const; + void setType(const std::string &type); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getKey() const; @@ -50,10 +52,13 @@ public: void setOwnerId(long ownerId); std::string getMetric() const; void setMetric(const std::string &metric); + std::string getInterval() const; + void setInterval(const std::string &interval); private: long resourceOwnerId_; std::string startTime_; + std::string type_; std::string accessKeyId_; std::string key_; std::string resourceOwnerAccount_; @@ -62,6 +67,7 @@ private: std::string endTime_; long ownerId_; std::string metric_; + std::string interval_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h index 775ca14f2..7d3f12252 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h @@ -32,6 +32,8 @@ public: ~DescribeDBClusterSSLRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getResourceOwnerAccount() const; @@ -45,6 +47,7 @@ public: private: long resourceOwnerId_; + std::string endpointId_; std::string accessKeyId_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h index 351bd2cc6..633795df1 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h @@ -36,20 +36,30 @@ namespace AlibabaCloud { std::string sSLConnectionString; std::string sSLExpireTime; + std::string serverKey; + std::string clientCrl; std::string dBEndpointId; + std::string serverCert; std::string sSLEnabled; + std::string sSLAutoRotate; + std::string cAType; + std::string clientCACert; + std::string aCL; + std::vector allowedACLs; }; DescribeDBClusterSSLResult(); explicit DescribeDBClusterSSLResult(const std::string &payload); ~DescribeDBClusterSSLResult(); + std::vector getSupportAdvancedSSLFeatureEndpointTypes()const; std::string getSSLAutoRotate()const; std::vector getItems()const; protected: void parse(const std::string &payload); private: + std::vector supportAdvancedSSLFeatureEndpointTypes_; std::string sSLAutoRotate_; std::vector items_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfResult.h index d72b01f64..73c0ad24e 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfResult.h @@ -37,32 +37,42 @@ namespace AlibabaCloud DescribeDBClusterServerlessConfResult(); explicit DescribeDBClusterServerlessConfResult(const std::string &payload); ~DescribeDBClusterServerlessConfResult(); - std::string getScaleRoNumMin()const; std::string getDBMaxscaleId()const; - std::string getAllowShutDown()const; std::string getScaleApRoNumMin()const; - std::string getScaleApRoNumMax()const; std::string getScaleRoNumMax()const; + std::string getTraditionalScaleMaxThreshold()const; std::string getDBClusterId()const; - std::string getScaleMin()const; std::string getScaleMax()const; - std::string getSecondsUntilAutoPause()const; std::string getSwitchs()const; + std::string getAgileScaleMax()const; + std::string getServerlessRuleCpuShrinkThreshold()const; + std::string getScaleRoNumMin()const; + std::string getServerlessRuleCpuEnlargeThreshold()const; + std::string getAllowShutDown()const; + std::string getScaleApRoNumMax()const; + std::string getScaleMin()const; + std::string getServerlessRuleMode()const; + std::string getSecondsUntilAutoPause()const; protected: void parse(const std::string &payload); private: - std::string scaleRoNumMin_; std::string dBMaxscaleId_; - std::string allowShutDown_; std::string scaleApRoNumMin_; - std::string scaleApRoNumMax_; std::string scaleRoNumMax_; + std::string traditionalScaleMaxThreshold_; std::string dBClusterId_; - std::string scaleMin_; std::string scaleMax_; - std::string secondsUntilAutoPause_; std::string switchs_; + std::string agileScaleMax_; + std::string serverlessRuleCpuShrinkThreshold_; + std::string scaleRoNumMin_; + std::string serverlessRuleCpuEnlargeThreshold_; + std::string allowShutDown_; + std::string scaleApRoNumMax_; + std::string scaleMin_; + std::string serverlessRuleMode_; + std::string secondsUntilAutoPause_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterTDEResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterTDEResult.h index c6d2e92de..87a5d55f1 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterTDEResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterTDEResult.h @@ -38,19 +38,25 @@ namespace AlibabaCloud explicit DescribeDBClusterTDEResult(const std::string &payload); ~DescribeDBClusterTDEResult(); std::string getTDEStatus()const; + std::string getRotationInterval()const; + std::string getEncryptionKeyStatus()const; std::string getEncryptNewTables()const; std::string getTDERegion()const; std::string getDBClusterId()const; std::string getEncryptionKey()const; + std::string getAutomaticRotation()const; protected: void parse(const std::string &payload); private: std::string tDEStatus_; + std::string rotationInterval_; + std::string encryptionKeyStatus_; std::string encryptNewTables_; std::string tDERegion_; std::string dBClusterId_; std::string encryptionKey_; + std::string automaticRotation_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h index 8d016b69d..d4f5d79ae 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h @@ -39,12 +39,20 @@ namespace AlibabaCloud std::string releaseNote; std::string revisionVersionCode; }; + struct ProxyRevisionVersionListItem + { + std::string releaseType; + std::string revisionVersionName; + std::string releaseNote; + std::string revisionVersionCode; + }; DescribeDBClusterVersionResult(); explicit DescribeDBClusterVersionResult(const std::string &payload); ~DescribeDBClusterVersionResult(); std::string getDBRevisionVersion()const; + std::vector getProxyRevisionVersionList()const; std::string getProxyLatestVersionAfterDBEngineUpgraded()const; std::string getDBClusterId()const; std::string getProxyRevisionVersion()const; @@ -57,11 +65,13 @@ namespace AlibabaCloud std::string getDBVersionStatus()const; std::string getDBMinorVersion()const; std::vector getDBRevisionVersionList()const; + std::string getDBInnerRevisionVersion()const; protected: void parse(const std::string &payload); private: std::string dBRevisionVersion_; + std::vector proxyRevisionVersionList_; std::string proxyLatestVersionAfterDBEngineUpgraded_; std::string dBClusterId_; std::string proxyRevisionVersion_; @@ -74,6 +84,7 @@ namespace AlibabaCloud std::string dBVersionStatus_; std::string dBMinorVersion_; std::vector dBRevisionVersionList_; + std::string dBInnerRevisionVersion_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h index dd167ad90..c0d334161 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h @@ -56,12 +56,18 @@ namespace AlibabaCloud long compressStorageUsed; std::string storagePayType; std::string dBClusterId; + std::string hotStandbyCluster; + std::string deployUnit; std::string dBType; std::string dBClusterNetworkType; + std::string remoteMemorySize; std::string dBVersion; std::vector dBNodes; std::vector tags; std::string engine; + std::string engineMigrationStatus; + std::string memorySize; + std::string storageType; std::string zoneId; std::string dBClusterStatus; std::string createTime; @@ -78,6 +84,8 @@ namespace AlibabaCloud long storageSpace; std::string serverlessType; std::string aiType; + std::string cpuCores; + std::string subCategory; std::string regionId; std::string expireTime; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h index eb1892279..72ae3aae2 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h @@ -36,6 +36,8 @@ public: void setDBNodeId(const std::string &dBNodeId); std::string getStartTime() const; void setStartTime(const std::string &startTime); + std::string getType() const; + void setType(const std::string &type); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getKey() const; @@ -52,11 +54,14 @@ public: void setOwnerId(long ownerId); std::string getMetric() const; void setMetric(const std::string &metric); + std::string getInterval() const; + void setInterval(const std::string &interval); private: long resourceOwnerId_; std::string dBNodeId_; std::string startTime_; + std::string type_; std::string accessKeyId_; std::string key_; std::string resourceOwnerAccount_; @@ -65,6 +70,7 @@ private: std::string endTime_; long ownerId_; std::string metric_; + std::string interval_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBProxyPerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBProxyPerformanceRequest.h index 8a63322f3..b7d299037 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBProxyPerformanceRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBProxyPerformanceRequest.h @@ -32,8 +32,14 @@ public: ~DescribeDBProxyPerformanceRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getDBEndpointId() const; + void setDBEndpointId(const std::string &dBEndpointId); std::string getStartTime() const; void setStartTime(const std::string &startTime); + std::string getType() const; + void setType(const std::string &type); std::string getKey() const; void setKey(const std::string &key); std::string getResourceOwnerAccount() const; @@ -48,10 +54,15 @@ public: void setOwnerId(long ownerId); std::string getMetric() const; void setMetric(const std::string &metric); + std::string getInterval() const; + void setInterval(const std::string &interval); private: long resourceOwnerId_; + std::string dBNodeId_; + std::string dBEndpointId_; std::string startTime_; + std::string type_; std::string key_; std::string resourceOwnerAccount_; std::string dBClusterId_; @@ -59,6 +70,7 @@ private: std::string endTime_; long ownerId_; std::string metric_; + std::string interval_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h index 7320913fd..6122b0f71 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h @@ -52,6 +52,7 @@ namespace AlibabaCloud std::string dBNodeClass; int maxIOPS; }; + std::string category; std::string dBClusterStatus; std::string dBClusterId; std::string dBClusterDescription; @@ -64,8 +65,10 @@ namespace AlibabaCloud std::string role; std::string dBVersion; std::vector dBNodes; + std::string serverlessType; std::string regionId; std::string expireTime; + std::string memberStatus; }; @@ -82,6 +85,7 @@ namespace AlibabaCloud std::string getDBType()const; std::string getGDNDescription()const; std::vector getDBClusters()const; + std::string getGlobalDomainName()const; protected: void parse(const std::string &payload); @@ -96,6 +100,7 @@ namespace AlibabaCloud std::string dBType_; std::string gDNDescription_; std::vector dBClusters_; + std::string globalDomainName_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h index b95936b8a..24d0722e7 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h @@ -56,6 +56,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getDBType() const; + void setDBType(const std::string &dBType); private: long resourceOwnerId_; @@ -71,6 +73,7 @@ private: std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string dBType_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h index a23dd77d5..f5e35ee83 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h @@ -40,9 +40,18 @@ namespace AlibabaCloud std::string dBClusterId; std::string regionId; }; + struct OutCloudDBCluster + { + std::string role; + std::string dBClusterId; + std::string outCloudType; + std::string regionId; + }; std::string gDNStatus; + std::vector outCloudDBClusters; std::string dBVersion; std::string gDNId; + std::string zoneId; std::string createTime; std::string dBType; std::string gDNDescription; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsRequest.h new file mode 100644 index 000000000..a98b9cefb --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsRequest.h @@ -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_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeLicenseOrderDetailsRequest : public RpcServiceRequest { +public: + DescribeLicenseOrderDetailsRequest(); + ~DescribeLicenseOrderDetailsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAliyunOrderId() const; + void setAliyunOrderId(const std::string &aliyunOrderId); + 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); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string aliyunOrderId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsResult.h new file mode 100644 index 000000000..d3e8240c4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrderDetailsResult.h @@ -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_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeLicenseOrderDetailsResult : public ServiceResult + { + public: + + + DescribeLicenseOrderDetailsResult(); + explicit DescribeLicenseOrderDetailsResult(const std::string &payload); + ~DescribeLicenseOrderDetailsResult(); + std::string getVirtualOrderId()const; + int getActivatedCodeCount()const; + std::string getPackageValidity()const; + bool getIsVirtualOrder()const; + std::string getGmtModified()const; + std::string getGmtCreated()const; + bool getIsVirtualOrderFrozen()const; + std::string getPurchaseChannel()const; + int getActivationCodeQuota()const; + std::string getAliyunOrderId()const; + std::string getPackageType()const; + bool getAllowEmptySystemIdentifier()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::string virtualOrderId_; + int activatedCodeCount_; + std::string packageValidity_; + bool isVirtualOrder_; + std::string gmtModified_; + std::string gmtCreated_; + bool isVirtualOrderFrozen_; + std::string purchaseChannel_; + int activationCodeQuota_; + std::string aliyunOrderId_; + std::string packageType_; + bool allowEmptySystemIdentifier_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERDETAILSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersRequest.h new file mode 100644 index 000000000..2ab4f376f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersRequest.h @@ -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_POLARDB_MODEL_DESCRIBELICENSEORDERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeLicenseOrdersRequest : public RpcServiceRequest { +public: + DescribeLicenseOrdersRequest(); + ~DescribeLicenseOrdersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getVirtualOrder() const; + void setVirtualOrder(bool virtualOrder); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAliyunOrderId() const; + void setAliyunOrderId(const std::string &aliyunOrderId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getPurchaseChannel() const; + void setPurchaseChannel(const std::string &purchaseChannel); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPackageType() const; + void setPackageType(const std::string &packageType); + +private: + long resourceOwnerId_; + bool virtualOrder_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string aliyunOrderId_; + std::string resourceOwnerAccount_; + std::string purchaseChannel_; + std::string ownerAccount_; + long ownerId_; + std::string packageType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersResult.h new file mode 100644 index 000000000..802969486 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLicenseOrdersResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeLicenseOrdersResult : public ServiceResult + { + public: + struct LicenseOrder + { + int activatedCodeCount; + std::string packageValidity; + bool isVirtualOrder; + std::string gmtModified; + std::string gmtCreated; + bool isVirtualOrderFrozen; + std::string purchaseChannel; + int activationCodeQuota; + std::string aliyunOrderId; + std::string packageType; + bool allowEmptySystemIdentifier; + std::string engine; + std::string virtualAliyunOrderId; + }; + + + DescribeLicenseOrdersResult(); + explicit DescribeLicenseOrdersResult(const std::string &payload); + ~DescribeLicenseOrdersResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELICENSEORDERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h index a195adc0d..f95336c4a 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h @@ -40,14 +40,16 @@ namespace AlibabaCloud std::string action; std::string plannedTime; std::string taskId; - std::string dbClusterDescription; - bool taskCancel; std::string dBClusterId; std::string plannedStartTime; - std::string region; std::string orderId; - std::string plannedEndTime; + std::string crontabJobId; std::string dbClusterStatus; + std::string dbClusterDescription; + std::string plannedFlashingOffTime; + bool taskCancel; + std::string region; + std::string plannedEndTime; }; std::vector timerInfos; int totalRecordCount; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h index 83fc65574..887354129 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h @@ -42,6 +42,8 @@ public: void setRegionId(const std::string ®ionId); int getPageSize() const; void setPageSize(int pageSize); + std::string getNodeId() const; + void setNodeId(const std::string &nodeId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -64,6 +66,7 @@ private: std::string accessKeyId_; std::string regionId_; int pageSize_; + std::string nodeId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h index 0fcd2a95e..d12f4d2dc 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct SQLSlowRecord { long queryTimes; + std::string sQLHash; std::string executionStartTime; long returnRowCounts; long lockTimes; diff --git a/polardb/include/alibabacloud/polardb/model/FailoverDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterRequest.h index 7e66fae54..af3fca291 100644 --- a/polardb/include/alibabacloud/polardb/model/FailoverDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterRequest.h @@ -44,10 +44,14 @@ public: void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getTargetZoneType() const; + void setTargetZoneType(const std::string &targetZoneType); long getOwnerId() const; void setOwnerId(long ownerId); std::string getTargetDBNodeId() const; void setTargetDBNodeId(const std::string &targetDBNodeId); + bool getIsForce() const; + void setIsForce(bool isForce); private: long resourceOwnerId_; @@ -57,8 +61,10 @@ private: std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + std::string targetZoneType_; long ownerId_; std::string targetDBNodeId_; + bool isForce_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h index 9f775682c..01a54479d 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h @@ -32,6 +32,8 @@ public: ~ModifyAccountPasswordRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getPasswordType() const; + void setPasswordType(const std::string &passwordType); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getAccountName() const; @@ -49,6 +51,7 @@ public: private: long resourceOwnerId_; + std::string passwordType_; std::string accessKeyId_; std::string accountName_; std::string newAccountPassword_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksRequest.h new file mode 100644 index 000000000..6facd3b8c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksRequest.h @@ -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_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyActiveOperationTasksRequest : public RpcServiceRequest { +public: + ModifyActiveOperationTasksRequest(); + ~ModifyActiveOperationTasksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTaskIds() const; + void setTaskIds(const std::string &taskIds); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getSwitchTime() const; + void setSwitchTime(const std::string &switchTime); + std::string getEngineType() const; + void setEngineType(const std::string &engineType); + 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); + int getImmediateStart() const; + void setImmediateStart(int immediateStart); + +private: + long resourceOwnerId_; + std::string taskIds_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string switchTime_; + std::string engineType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + int immediateStart_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksResult.h b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksResult.h new file mode 100644 index 000000000..cb704008e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationTasksResult.h @@ -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_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyActiveOperationTasksResult : public ServiceResult + { + public: + + + ModifyActiveOperationTasksResult(); + explicit ModifyActiveOperationTasksResult(const std::string &payload); + ~ModifyActiveOperationTasksResult(); + std::string getTaskIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONTASKSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h index 10e53681c..127999eb3 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h @@ -38,6 +38,8 @@ public: void setDBNodeIds(const std::string &dBNodeIds); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + bool getClearBinlog() const; + void setClearBinlog(bool clearBinlog); std::string getParameterGroupId() const; void setParameterGroupId(const std::string ¶meterGroupId); std::string getResourceOwnerAccount() const; @@ -50,6 +52,8 @@ public: void setOwnerId(long ownerId); std::string getPlannedStartTime() const; void setPlannedStartTime(const std::string &plannedStartTime); + std::string getStandbyClusterIdListNeedToSync() const; + void setStandbyClusterIdListNeedToSync(const std::string &standbyClusterIdListNeedToSync); std::string getParameters() const; void setParameters(const std::string ¶meters); bool getFromTimeService() const; @@ -60,12 +64,14 @@ private: std::string plannedEndTime_; std::string dBNodeIds_; std::string accessKeyId_; + bool clearBinlog_; std::string parameterGroupId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string plannedStartTime_; + std::string standbyClusterIdListNeedToSync_; std::string parameters_; bool fromTimeService_; }; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h index 55cf301ca..600ed99f5 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h @@ -36,10 +36,14 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getDBEndpointId() const; void setDBEndpointId(const std::string &dBEndpointId); + std::string getPolarSccWaitTimeout() const; + void setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getReadWriteMode() const; void setReadWriteMode(const std::string &readWriteMode); + std::string getPolarSccTimeoutAction() const; + void setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -54,13 +58,17 @@ public: void setOwnerId(long ownerId); std::string getNodes() const; void setNodes(const std::string &nodes); + std::string getSccMode() const; + void setSccMode(const std::string &sccMode); private: std::string autoAddNewNodes_; long resourceOwnerId_; std::string dBEndpointId_; + std::string polarSccWaitTimeout_; std::string accessKeyId_; std::string readWriteMode_; + std::string polarSccTimeoutAction_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; @@ -68,6 +76,7 @@ private: std::string dBEndpointDescription_; long ownerId_; std::string nodes_; + std::string sccMode_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h index ba31a251c..7a972f72c 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h @@ -36,6 +36,8 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + bool getClearBinlog() const; + void setClearBinlog(bool clearBinlog); std::string getParameterGroupId() const; void setParameterGroupId(const std::string ¶meterGroupId); std::string getResourceOwnerAccount() const; @@ -57,6 +59,7 @@ private: long resourceOwnerId_; std::string plannedEndTime_; std::string accessKeyId_; + bool clearBinlog_; std::string parameterGroupId_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h index 6a21e49b7..3cd92a42b 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h @@ -30,10 +30,14 @@ class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterRequest : public RpcServiceRequ public: ModifyDBClusterRequest(); ~ModifyDBClusterRequest(); + std::string getModifyRowCompression() const; + void setModifyRowCompression(const std::string &modifyRowCompression); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getTableMeta() const; + void setTableMeta(const std::string &tableMeta); std::string getStandbyHAMode() const; void setStandbyHAMode(const std::string &standbyHAMode); std::string getResourceOwnerAccount() const; @@ -42,6 +46,8 @@ public: void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getDBNodeCrashList() const; + void setDBNodeCrashList(const std::string &dBNodeCrashList); std::string getFaultSimulateMode() const; void setFaultSimulateMode(const std::string &faultSimulateMode); long getOwnerId() const; @@ -50,23 +56,35 @@ public: void setCompressStorage(const std::string &compressStorage); long getStorageUpperBound() const; void setStorageUpperBound(long storageUpperBound); + std::string getPreferredSimulateStartTime() const; + void setPreferredSimulateStartTime(const std::string &preferredSimulateStartTime); + std::string getImciAutoIndex() const; + void setImciAutoIndex(const std::string &imciAutoIndex); std::string getStorageAutoScale() const; void setStorageAutoScale(const std::string &storageAutoScale); + std::string getFaultInjectionType() const; + void setFaultInjectionType(const std::string &faultInjectionType); std::string getDataSyncMode() const; void setDataSyncMode(const std::string &dataSyncMode); private: + std::string modifyRowCompression_; long resourceOwnerId_; std::string accessKeyId_; + std::string tableMeta_; std::string standbyHAMode_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + std::string dBNodeCrashList_; std::string faultSimulateMode_; long ownerId_; std::string compressStorage_; long storageUpperBound_; + std::string preferredSimulateStartTime_; + std::string imciAutoIndex_; std::string storageAutoScale_; + std::string faultInjectionType_; std::string dataSyncMode_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h index 0c952eea9..beb028839 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h @@ -32,20 +32,36 @@ public: ~ModifyDBClusterSSLRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getServerKey() const; + void setServerKey(const std::string &serverKey); + std::string getClientCrlEnabled() const; + void setClientCrlEnabled(const std::string &clientCrlEnabled); std::string getDBEndpointId() const; void setDBEndpointId(const std::string &dBEndpointId); + std::string getACL() const; + void setACL(const std::string &aCL); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getServerCert() const; + void setServerCert(const std::string &serverCert); + std::string getClientCACert() const; + void setClientCACert(const std::string &clientCACert); std::string getSSLAutoRotate() const; void setSSLAutoRotate(const std::string &sSLAutoRotate); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getCAType() const; + void setCAType(const std::string &cAType); std::string getDBClusterId() const; void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getClientCACertEnabled() const; + void setClientCACertEnabled(const std::string &clientCACertEnabled); + std::string getClientCrl() const; + void setClientCrl(const std::string &clientCrl); std::string getNetType() const; void setNetType(const std::string &netType); std::string getSSLEnabled() const; @@ -53,13 +69,21 @@ public: private: long resourceOwnerId_; + std::string serverKey_; + std::string clientCrlEnabled_; std::string dBEndpointId_; + std::string aCL_; std::string accessKeyId_; + std::string serverCert_; + std::string clientCACert_; std::string sSLAutoRotate_; std::string resourceOwnerAccount_; + std::string cAType_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string clientCACertEnabled_; + std::string clientCrl_; std::string netType_; std::string sSLEnabled_; }; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfRequest.h index 4ae4c8115..7dcd81b6f 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterServerlessConfRequest.h @@ -34,6 +34,8 @@ public: void setScaleRoNumMax(const std::string &scaleRoNumMax); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getServerlessRuleMode() const; + void setServerlessRuleMode(const std::string &serverlessRuleMode); std::string getScaleApRoNumMax() const; void setScaleApRoNumMax(const std::string &scaleApRoNumMax); std::string getScaleMax() const; @@ -42,18 +44,26 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getServerlessRuleCpuEnlargeThreshold() const; + void setServerlessRuleCpuEnlargeThreshold(const std::string &serverlessRuleCpuEnlargeThreshold); std::string getSecondsUntilAutoPause() const; void setSecondsUntilAutoPause(const std::string &secondsUntilAutoPause); std::string getScaleApRoNumMin() const; void setScaleApRoNumMin(const std::string &scaleApRoNumMin); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); std::string getScaleMin() const; void setScaleMin(const std::string &scaleMin); + std::string getCrontabJobId() const; + void setCrontabJobId(const std::string &crontabJobId); 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 getServerlessRuleCpuShrinkThreshold() const; + void setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold); long getOwnerId() const; void setOwnerId(long ownerId); std::string getPlannedStartTime() const; @@ -68,16 +78,21 @@ public: private: std::string scaleRoNumMax_; long resourceOwnerId_; + std::string serverlessRuleMode_; std::string scaleApRoNumMax_; std::string scaleMax_; std::string plannedEndTime_; std::string accessKeyId_; + std::string serverlessRuleCpuEnlargeThreshold_; std::string secondsUntilAutoPause_; std::string scaleApRoNumMin_; + std::string taskId_; std::string scaleMin_; + std::string crontabJobId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + std::string serverlessRuleCpuShrinkThreshold_; long ownerId_; std::string plannedStartTime_; std::string scaleRoNumMin_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceRequest.h new file mode 100644 index 000000000..f29a4b707 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceRequest.h @@ -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_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGEPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterStoragePerformanceRequest : public RpcServiceRequest { +public: + ModifyDBClusterStoragePerformanceRequest(); + ~ModifyDBClusterStoragePerformanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getBurstingEnabled() const; + void setBurstingEnabled(const std::string &burstingEnabled); + int getProvisionedIops() const; + void setProvisionedIops(int provisionedIops); + std::string getModifyType() const; + void setModifyType(const std::string &modifyType); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string storageType_; + std::string accessKeyId_; + std::string dBClusterId_; + std::string burstingEnabled_; + int provisionedIops_; + std::string modifyType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGEPERFORMANCEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceResult.h new file mode 100644 index 000000000..6ceed7192 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStoragePerformanceResult.h @@ -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_MODIFYDBCLUSTERSTORAGEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterStoragePerformanceResult : public ServiceResult + { + public: + + + ModifyDBClusterStoragePerformanceResult(); + explicit ModifyDBClusterStoragePerformanceResult(const std::string &payload); + ~ModifyDBClusterStoragePerformanceResult(); + 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_MODIFYDBCLUSTERSTORAGEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h index 45c6e643a..4697eb1c5 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h @@ -44,6 +44,8 @@ public: void setEncryptionKey(const std::string &encryptionKey); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getEnableAutomaticRotation() const; + void setEnableAutomaticRotation(const std::string &enableAutomaticRotation); std::string getRoleArn() const; void setRoleArn(const std::string &roleArn); std::string getEncryptNewTables() const; @@ -59,6 +61,7 @@ private: std::string ownerAccount_; std::string encryptionKey_; long ownerId_; + std::string enableAutomaticRotation_; std::string roleArn_; std::string encryptNewTables_; std::string tDEStatus_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h index 3e53bf1de..31abf7a54 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h @@ -48,6 +48,8 @@ public: void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getPlannedFlashingOffTime() const; + void setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime); long getOwnerId() const; void setOwnerId(long ownerId); std::string getPlannedStartTime() const; @@ -67,6 +69,7 @@ private: std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + std::string plannedFlashingOffTime_; long ownerId_; std::string plannedStartTime_; std::string modifyType_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h index cb911cfc4..19c058dbe 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h @@ -48,6 +48,8 @@ public: void setDBClusterId(const std::string &dBClusterId); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getPlannedFlashingOffTime() const; + void setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime); long getOwnerId() const; void setOwnerId(long ownerId); std::string getPlannedStartTime() const; @@ -67,6 +69,7 @@ private: std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; + std::string plannedFlashingOffTime_; long ownerId_; std::string plannedStartTime_; std::string modifyType_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h index a66d8eae4..e9e60cd96 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h @@ -46,6 +46,8 @@ public: void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + bool getEnableGlobalDomainName() const; + void setEnableGlobalDomainName(bool enableGlobalDomainName); long getOwnerId() const; void setOwnerId(long ownerId); @@ -58,6 +60,7 @@ private: std::string gDNDescription_; std::string resourceOwnerAccount_; std::string ownerAccount_; + bool enableGlobalDomainName_; long ownerId_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h b/polardb/include/alibabacloud/polardb/model/RestartDBLinkRequest.h similarity index 66% rename from polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h rename to polardb/include/alibabacloud/polardb/model/RestartDBLinkRequest.h index 724b91f0d..c829b50d5 100644 --- a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RestartDBLinkRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_ +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKREQUEST_H_ #include #include @@ -26,16 +26,16 @@ namespace AlibabaCloud { namespace Polardb { namespace Model { -class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterMinorVersionRequest : public RpcServiceRequest { +class ALIBABACLOUD_POLARDB_EXPORT RestartDBLinkRequest : public RpcServiceRequest { public: - UpgradeDBClusterMinorVersionRequest(); - ~UpgradeDBClusterMinorVersionRequest(); + RestartDBLinkRequest(); + ~RestartDBLinkRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getPlannedEndTime() const; - void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -44,23 +44,17 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getPlannedStartTime() const; - void setPlannedStartTime(const std::string &plannedStartTime); - bool getFromTimeService() const; - void setFromTimeService(bool fromTimeService); private: long resourceOwnerId_; - std::string plannedEndTime_; std::string accessKeyId_; + std::string securityToken_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; - std::string plannedStartTime_; - bool fromTimeService_; }; } // namespace Model } // namespace Polardb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONREQUEST_H_ +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h b/polardb/include/alibabacloud/polardb/model/RestartDBLinkResult.h similarity index 65% rename from polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h rename to polardb/include/alibabacloud/polardb/model/RestartDBLinkResult.h index 36c5731ed..afcbcee16 100644 --- a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h +++ b/polardb/include/alibabacloud/polardb/model/RestartDBLinkResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_ -#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_ +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKRESULT_H_ #include #include @@ -29,21 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterMinorVersionResult : public ServiceResult + class ALIBABACLOUD_POLARDB_EXPORT RestartDBLinkResult : public ServiceResult { public: - UpgradeDBClusterMinorVersionResult(); - explicit UpgradeDBClusterMinorVersionResult(const std::string &payload); - ~UpgradeDBClusterMinorVersionResult(); + RestartDBLinkResult(); + explicit RestartDBLinkResult(const std::string &payload); + ~RestartDBLinkResult(); + std::string getTaskId()const; + std::string getDBClusterId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; + std::string dBClusterId_; }; } } } -#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERMINORVERSIONRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBLINKRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h index 10a1e6b16..178a6d465 100644 --- a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h @@ -46,12 +46,16 @@ public: void setUpgradeLabel(const std::string &upgradeLabel); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); + std::string getPlannedFlashingOffTime() const; + void setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime); long getOwnerId() const; void setOwnerId(long ownerId); std::string getPlannedStartTime() const; void setPlannedStartTime(const std::string &plannedStartTime); std::string getTargetDBRevisionVersionCode() const; void setTargetDBRevisionVersionCode(const std::string &targetDBRevisionVersionCode); + std::string getTargetProxyRevisionVersionCode() const; + void setTargetProxyRevisionVersionCode(const std::string &targetProxyRevisionVersionCode); std::string getUpgradePolicy() const; void setUpgradePolicy(const std::string &upgradePolicy); bool getFromTimeService() const; @@ -66,9 +70,11 @@ private: std::string dBClusterId_; std::string upgradeLabel_; std::string ownerAccount_; + std::string plannedFlashingOffTime_; long ownerId_; std::string plannedStartTime_; std::string targetDBRevisionVersionCode_; + std::string targetProxyRevisionVersionCode_; std::string upgradePolicy_; bool fromTimeService_; }; diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc index 7396ee630..9b8e93102 100644 --- a/polardb/src/PolardbClient.cc +++ b/polardb/src/PolardbClient.cc @@ -51,6 +51,42 @@ PolardbClient::PolardbClient(const std::string & accessKeyId, const std::string PolardbClient::~PolardbClient() {} +PolardbClient::CancelActiveOperationTasksOutcome PolardbClient::cancelActiveOperationTasks(const CancelActiveOperationTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelActiveOperationTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelActiveOperationTasksOutcome(CancelActiveOperationTasksResult(outcome.result())); + else + return CancelActiveOperationTasksOutcome(outcome.error()); +} + +void PolardbClient::cancelActiveOperationTasksAsync(const CancelActiveOperationTasksRequest& request, const CancelActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelActiveOperationTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CancelActiveOperationTasksOutcomeCallable PolardbClient::cancelActiveOperationTasksCallable(const CancelActiveOperationTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelActiveOperationTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CancelScheduleTasksOutcome PolardbClient::cancelScheduleTasks(const CancelScheduleTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,42 @@ PolardbClient::CreateAccountOutcomeCallable PolardbClient::createAccountCallable return task->get_future(); } +PolardbClient::CreateActivationCodeOutcome PolardbClient::createActivationCode(const CreateActivationCodeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateActivationCodeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateActivationCodeOutcome(CreateActivationCodeResult(outcome.result())); + else + return CreateActivationCodeOutcome(outcome.error()); +} + +void PolardbClient::createActivationCodeAsync(const CreateActivationCodeRequest& request, const CreateActivationCodeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createActivationCode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateActivationCodeOutcomeCallable PolardbClient::createActivationCodeCallable(const CreateActivationCodeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createActivationCode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateBackupOutcome PolardbClient::createBackup(const CreateBackupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +771,42 @@ PolardbClient::CreateGlobalSecurityIPGroupOutcomeCallable PolardbClient::createG return task->get_future(); } +PolardbClient::CreateOrGetVirtualLicenseOrderOutcome PolardbClient::createOrGetVirtualLicenseOrder(const CreateOrGetVirtualLicenseOrderRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOrGetVirtualLicenseOrderOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOrGetVirtualLicenseOrderOutcome(CreateOrGetVirtualLicenseOrderResult(outcome.result())); + else + return CreateOrGetVirtualLicenseOrderOutcome(outcome.error()); +} + +void PolardbClient::createOrGetVirtualLicenseOrderAsync(const CreateOrGetVirtualLicenseOrderRequest& request, const CreateOrGetVirtualLicenseOrderAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOrGetVirtualLicenseOrder(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateOrGetVirtualLicenseOrderOutcomeCallable PolardbClient::createOrGetVirtualLicenseOrderCallable(const CreateOrGetVirtualLicenseOrderRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOrGetVirtualLicenseOrder(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateParameterGroupOutcome PolardbClient::createParameterGroup(const CreateParameterGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1419,114 @@ PolardbClient::DescribeAccountsOutcomeCallable PolardbClient::describeAccountsCa return task->get_future(); } +PolardbClient::DescribeActivationCodeDetailsOutcome PolardbClient::describeActivationCodeDetails(const DescribeActivationCodeDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActivationCodeDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActivationCodeDetailsOutcome(DescribeActivationCodeDetailsResult(outcome.result())); + else + return DescribeActivationCodeDetailsOutcome(outcome.error()); +} + +void PolardbClient::describeActivationCodeDetailsAsync(const DescribeActivationCodeDetailsRequest& request, const DescribeActivationCodeDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActivationCodeDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeActivationCodeDetailsOutcomeCallable PolardbClient::describeActivationCodeDetailsCallable(const DescribeActivationCodeDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActivationCodeDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeActivationCodesOutcome PolardbClient::describeActivationCodes(const DescribeActivationCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActivationCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActivationCodesOutcome(DescribeActivationCodesResult(outcome.result())); + else + return DescribeActivationCodesOutcome(outcome.error()); +} + +void PolardbClient::describeActivationCodesAsync(const DescribeActivationCodesRequest& request, const DescribeActivationCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActivationCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeActivationCodesOutcomeCallable PolardbClient::describeActivationCodesCallable(const DescribeActivationCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActivationCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeActiveOperationTasksOutcome PolardbClient::describeActiveOperationTasks(const DescribeActiveOperationTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationTasksOutcome(DescribeActiveOperationTasksResult(outcome.result())); + else + return DescribeActiveOperationTasksOutcome(outcome.error()); +} + +void PolardbClient::describeActiveOperationTasksAsync(const DescribeActiveOperationTasksRequest& request, const DescribeActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeActiveOperationTasksOutcomeCallable PolardbClient::describeActiveOperationTasksCallable(const DescribeActiveOperationTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeAutoRenewAttributeOutcome PolardbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +2787,78 @@ PolardbClient::DescribeGlobalSecurityIPGroupRelationOutcomeCallable PolardbClien return task->get_future(); } +PolardbClient::DescribeLicenseOrderDetailsOutcome PolardbClient::describeLicenseOrderDetails(const DescribeLicenseOrderDetailsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLicenseOrderDetailsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLicenseOrderDetailsOutcome(DescribeLicenseOrderDetailsResult(outcome.result())); + else + return DescribeLicenseOrderDetailsOutcome(outcome.error()); +} + +void PolardbClient::describeLicenseOrderDetailsAsync(const DescribeLicenseOrderDetailsRequest& request, const DescribeLicenseOrderDetailsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLicenseOrderDetails(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeLicenseOrderDetailsOutcomeCallable PolardbClient::describeLicenseOrderDetailsCallable(const DescribeLicenseOrderDetailsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLicenseOrderDetails(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeLicenseOrdersOutcome PolardbClient::describeLicenseOrders(const DescribeLicenseOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLicenseOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLicenseOrdersOutcome(DescribeLicenseOrdersResult(outcome.result())); + else + return DescribeLicenseOrdersOutcome(outcome.error()); +} + +void PolardbClient::describeLicenseOrdersAsync(const DescribeLicenseOrdersRequest& request, const DescribeLicenseOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLicenseOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeLicenseOrdersOutcomeCallable PolardbClient::describeLicenseOrdersCallable(const DescribeLicenseOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLicenseOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeLogBackupPolicyOutcome PolardbClient::describeLogBackupPolicy(const DescribeLogBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,6 +3795,42 @@ PolardbClient::ModifyAccountPasswordOutcomeCallable PolardbClient::modifyAccount return task->get_future(); } +PolardbClient::ModifyActiveOperationTasksOutcome PolardbClient::modifyActiveOperationTasks(const ModifyActiveOperationTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyActiveOperationTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyActiveOperationTasksOutcome(ModifyActiveOperationTasksResult(outcome.result())); + else + return ModifyActiveOperationTasksOutcome(outcome.error()); +} + +void PolardbClient::modifyActiveOperationTasksAsync(const ModifyActiveOperationTasksRequest& request, const ModifyActiveOperationTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyActiveOperationTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyActiveOperationTasksOutcomeCallable PolardbClient::modifyActiveOperationTasksCallable(const ModifyActiveOperationTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyActiveOperationTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyAutoRenewAttributeOutcome PolardbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4119,6 +4443,42 @@ PolardbClient::ModifyDBClusterServerlessConfOutcomeCallable PolardbClient::modif return task->get_future(); } +PolardbClient::ModifyDBClusterStoragePerformanceOutcome PolardbClient::modifyDBClusterStoragePerformance(const ModifyDBClusterStoragePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterStoragePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterStoragePerformanceOutcome(ModifyDBClusterStoragePerformanceResult(outcome.result())); + else + return ModifyDBClusterStoragePerformanceOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterStoragePerformanceAsync(const ModifyDBClusterStoragePerformanceRequest& request, const ModifyDBClusterStoragePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterStoragePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterStoragePerformanceOutcomeCallable PolardbClient::modifyDBClusterStoragePerformanceCallable(const ModifyDBClusterStoragePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterStoragePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterStorageSpaceOutcome PolardbClient::modifyDBClusterStorageSpace(const ModifyDBClusterStorageSpaceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4839,6 +5199,42 @@ PolardbClient::ResetGlobalDatabaseNetworkOutcomeCallable PolardbClient::resetGlo return task->get_future(); } +PolardbClient::RestartDBLinkOutcome PolardbClient::restartDBLink(const RestartDBLinkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBLinkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBLinkOutcome(RestartDBLinkResult(outcome.result())); + else + return RestartDBLinkOutcome(outcome.error()); +} + +void PolardbClient::restartDBLinkAsync(const RestartDBLinkRequest& request, const RestartDBLinkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBLink(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::RestartDBLinkOutcomeCallable PolardbClient::restartDBLinkCallable(const RestartDBLinkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBLink(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::RestartDBNodeOutcome PolardbClient::restartDBNode(const RestartDBNodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5127,42 +5523,6 @@ PolardbClient::UntagResourcesOutcomeCallable PolardbClient::untagResourcesCallab 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& 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>( - [this, request]() - { - return this->upgradeDBClusterMinorVersion(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - PolardbClient::UpgradeDBClusterVersionOutcome PolardbClient::upgradeDBClusterVersion(const UpgradeDBClusterVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/polardb/src/model/CancelActiveOperationTasksRequest.cc b/polardb/src/model/CancelActiveOperationTasksRequest.cc new file mode 100644 index 000000000..c0465e61c --- /dev/null +++ b/polardb/src/model/CancelActiveOperationTasksRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::CancelActiveOperationTasksRequest; + +CancelActiveOperationTasksRequest::CancelActiveOperationTasksRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CancelActiveOperationTasks") { + setMethod(HttpRequest::Method::Post); +} + +CancelActiveOperationTasksRequest::~CancelActiveOperationTasksRequest() {} + +long CancelActiveOperationTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CancelActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CancelActiveOperationTasksRequest::getTaskIds() const { + return taskIds_; +} + +void CancelActiveOperationTasksRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); +} + +std::string CancelActiveOperationTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CancelActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CancelActiveOperationTasksRequest::getUid() const { + return uid_; +} + +void CancelActiveOperationTasksRequest::setUid(const std::string &uid) { + uid_ = uid; + setParameter(std::string("Uid"), uid); +} + +std::string CancelActiveOperationTasksRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CancelActiveOperationTasksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CancelActiveOperationTasksRequest::getSecurityToken() const { + return securityToken_; +} + +void CancelActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string CancelActiveOperationTasksRequest::getRegionId() const { + return regionId_; +} + +void CancelActiveOperationTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CancelActiveOperationTasksRequest::getEngineType() const { + return engineType_; +} + +void CancelActiveOperationTasksRequest::setEngineType(const std::string &engineType) { + engineType_ = engineType; + setParameter(std::string("EngineType"), engineType); +} + +std::string CancelActiveOperationTasksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CancelActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CancelActiveOperationTasksRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CancelActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CancelActiveOperationTasksRequest::getOwnerId() const { + return ownerId_; +} + +void CancelActiveOperationTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/UpgradeDBClusterMinorVersionResult.cc b/polardb/src/model/CancelActiveOperationTasksResult.cc similarity index 62% rename from polardb/src/model/UpgradeDBClusterMinorVersionResult.cc rename to polardb/src/model/CancelActiveOperationTasksResult.cc index ffb817eff..c354e4935 100644 --- a/polardb/src/model/UpgradeDBClusterMinorVersionResult.cc +++ b/polardb/src/model/CancelActiveOperationTasksResult.cc @@ -14,31 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Polardb; using namespace AlibabaCloud::Polardb::Model; -UpgradeDBClusterMinorVersionResult::UpgradeDBClusterMinorVersionResult() : +CancelActiveOperationTasksResult::CancelActiveOperationTasksResult() : ServiceResult() {} -UpgradeDBClusterMinorVersionResult::UpgradeDBClusterMinorVersionResult(const std::string &payload) : +CancelActiveOperationTasksResult::CancelActiveOperationTasksResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpgradeDBClusterMinorVersionResult::~UpgradeDBClusterMinorVersionResult() +CancelActiveOperationTasksResult::~CancelActiveOperationTasksResult() {} -void UpgradeDBClusterMinorVersionResult::parse(const std::string &payload) +void CancelActiveOperationTasksResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskIds"].isNull()) + taskIds_ = value["TaskIds"].asString(); } +std::string CancelActiveOperationTasksResult::getTaskIds()const +{ + return taskIds_; +} + diff --git a/polardb/src/model/CreateActivationCodeRequest.cc b/polardb/src/model/CreateActivationCodeRequest.cc new file mode 100644 index 000000000..8b29af785 --- /dev/null +++ b/polardb/src/model/CreateActivationCodeRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::CreateActivationCodeRequest; + +CreateActivationCodeRequest::CreateActivationCodeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateActivationCode") { + setMethod(HttpRequest::Method::Post); +} + +CreateActivationCodeRequest::~CreateActivationCodeRequest() {} + +long CreateActivationCodeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateActivationCodeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateActivationCodeRequest::getDescription() const { + return description_; +} + +void CreateActivationCodeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateActivationCodeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateActivationCodeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateActivationCodeRequest::getAliyunOrderId() const { + return aliyunOrderId_; +} + +void CreateActivationCodeRequest::setAliyunOrderId(const std::string &aliyunOrderId) { + aliyunOrderId_ = aliyunOrderId; + setParameter(std::string("AliyunOrderId"), aliyunOrderId); +} + +std::string CreateActivationCodeRequest::getMacAddress() const { + return macAddress_; +} + +void CreateActivationCodeRequest::setMacAddress(const std::string &macAddress) { + macAddress_ = macAddress; + setParameter(std::string("MacAddress"), macAddress); +} + +std::string CreateActivationCodeRequest::getSystemIdentifier() const { + return systemIdentifier_; +} + +void CreateActivationCodeRequest::setSystemIdentifier(const std::string &systemIdentifier) { + systemIdentifier_ = systemIdentifier; + setParameter(std::string("SystemIdentifier"), systemIdentifier); +} + +std::string CreateActivationCodeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateActivationCodeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateActivationCodeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateActivationCodeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateActivationCodeRequest::getOwnerId() const { + return ownerId_; +} + +void CreateActivationCodeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateActivationCodeRequest::getName() const { + return name_; +} + +void CreateActivationCodeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/polardb/src/model/CreateActivationCodeResult.cc b/polardb/src/model/CreateActivationCodeResult.cc new file mode 100644 index 000000000..d4ab75247 --- /dev/null +++ b/polardb/src/model/CreateActivationCodeResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateActivationCodeResult::CreateActivationCodeResult() : + ServiceResult() +{} + +CreateActivationCodeResult::CreateActivationCodeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateActivationCodeResult::~CreateActivationCodeResult() +{} + +void CreateActivationCodeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActivateAt"].isNull()) + activateAt_ = value["ActivateAt"].asString(); + if(!value["CertContentB64"].isNull()) + certContentB64_ = value["CertContentB64"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ExpireAt"].isNull()) + expireAt_ = value["ExpireAt"].asString(); + if(!value["GmtCreated"].isNull()) + gmtCreated_ = value["GmtCreated"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["Id"].isNull()) + id_ = std::stoi(value["Id"].asString()); + if(!value["MacAddress"].isNull()) + macAddress_ = value["MacAddress"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["SystemIdentifier"].isNull()) + systemIdentifier_ = value["SystemIdentifier"].asString(); + +} + +std::string CreateActivationCodeResult::getDescription()const +{ + return description_; +} + +std::string CreateActivationCodeResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string CreateActivationCodeResult::getSystemIdentifier()const +{ + return systemIdentifier_; +} + +std::string CreateActivationCodeResult::getActivateAt()const +{ + return activateAt_; +} + +std::string CreateActivationCodeResult::getExpireAt()const +{ + return expireAt_; +} + +std::string CreateActivationCodeResult::getCertContentB64()const +{ + return certContentB64_; +} + +std::string CreateActivationCodeResult::getGmtCreated()const +{ + return gmtCreated_; +} + +int CreateActivationCodeResult::getId()const +{ + return id_; +} + +std::string CreateActivationCodeResult::getMacAddress()const +{ + return macAddress_; +} + +std::string CreateActivationCodeResult::getName()const +{ + return name_; +} + diff --git a/polardb/src/model/CreateBackupRequest.cc b/polardb/src/model/CreateBackupRequest.cc index a5252a929..a76a38deb 100644 --- a/polardb/src/model/CreateBackupRequest.cc +++ b/polardb/src/model/CreateBackupRequest.cc @@ -43,6 +43,15 @@ void CreateBackupRequest::setClientToken(const std::string &clientToken) { setParameter(std::string("ClientToken"), clientToken); } +std::string CreateBackupRequest::getDataLevel2BackupRetentionPeriod() const { + return dataLevel2BackupRetentionPeriod_; +} + +void CreateBackupRequest::setDataLevel2BackupRetentionPeriod(const std::string &dataLevel2BackupRetentionPeriod) { + dataLevel2BackupRetentionPeriod_ = dataLevel2BackupRetentionPeriod; + setParameter(std::string("DataLevel2BackupRetentionPeriod"), dataLevel2BackupRetentionPeriod); +} + std::string CreateBackupRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/polardb/src/model/CreateDBClusterEndpointRequest.cc b/polardb/src/model/CreateDBClusterEndpointRequest.cc index 900b301ea..5678db544 100644 --- a/polardb/src/model/CreateDBClusterEndpointRequest.cc +++ b/polardb/src/model/CreateDBClusterEndpointRequest.cc @@ -52,6 +52,15 @@ void CreateDBClusterEndpointRequest::setClientToken(const std::string &clientTok setParameter(std::string("ClientToken"), clientToken); } +std::string CreateDBClusterEndpointRequest::getPolarSccWaitTimeout() const { + return polarSccWaitTimeout_; +} + +void CreateDBClusterEndpointRequest::setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout) { + polarSccWaitTimeout_ = polarSccWaitTimeout; + setParameter(std::string("PolarSccWaitTimeout"), polarSccWaitTimeout); +} + std::string CreateDBClusterEndpointRequest::getAccessKeyId() const { return accessKeyId_; } @@ -79,6 +88,33 @@ void CreateDBClusterEndpointRequest::setEndpointType(const std::string &endpoint setParameter(std::string("EndpointType"), endpointType); } +std::string CreateDBClusterEndpointRequest::getPolarSccTimeoutAction() const { + return polarSccTimeoutAction_; +} + +void CreateDBClusterEndpointRequest::setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction) { + polarSccTimeoutAction_ = polarSccTimeoutAction; + setParameter(std::string("PolarSccTimeoutAction"), polarSccTimeoutAction); +} + +std::string CreateDBClusterEndpointRequest::getEndpointSubCluster() const { + return endpointSubCluster_; +} + +void CreateDBClusterEndpointRequest::setEndpointSubCluster(const std::string &endpointSubCluster) { + endpointSubCluster_ = endpointSubCluster; + setParameter(std::string("EndpointSubCluster"), endpointSubCluster); +} + +std::string CreateDBClusterEndpointRequest::getStandbyVSwitchId() const { + return standbyVSwitchId_; +} + +void CreateDBClusterEndpointRequest::setStandbyVSwitchId(const std::string &standbyVSwitchId) { + standbyVSwitchId_ = standbyVSwitchId; + setParameter(std::string("StandbyVSwitchId"), standbyVSwitchId); +} + std::string CreateDBClusterEndpointRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -151,6 +187,15 @@ void CreateDBClusterEndpointRequest::setNodes(const std::string &nodes) { setParameter(std::string("Nodes"), nodes); } +std::string CreateDBClusterEndpointRequest::getSccMode() const { + return sccMode_; +} + +void CreateDBClusterEndpointRequest::setSccMode(const std::string &sccMode) { + sccMode_ = sccMode; + setParameter(std::string("SccMode"), sccMode); +} + std::string CreateDBClusterEndpointRequest::getVPCId() const { return vPCId_; } diff --git a/polardb/src/model/CreateDBClusterRequest.cc b/polardb/src/model/CreateDBClusterRequest.cc index 4a5513199..00ebc560e 100644 --- a/polardb/src/model/CreateDBClusterRequest.cc +++ b/polardb/src/model/CreateDBClusterRequest.cc @@ -282,6 +282,15 @@ void CreateDBClusterRequest::setLowerCaseTableNames(const std::string &lowerCase setParameter(std::string("LowerCaseTableNames"), lowerCaseTableNames); } +bool CreateDBClusterRequest::getStorageEncryption() const { + return storageEncryption_; +} + +void CreateDBClusterRequest::setStorageEncryption(bool storageEncryption) { + storageEncryption_ = storageEncryption; + setParameter(std::string("StorageEncryption"), storageEncryption ? "true" : "false"); +} + std::string CreateDBClusterRequest::getScaleRoNumMax() const { return scaleRoNumMax_; } @@ -336,6 +345,15 @@ void CreateDBClusterRequest::setClusterNetworkType(const std::string &clusterNet setParameter(std::string("ClusterNetworkType"), clusterNetworkType); } +std::string CreateDBClusterRequest::getStorageEncryptionKey() const { + return storageEncryptionKey_; +} + +void CreateDBClusterRequest::setStorageEncryptionKey(const std::string &storageEncryptionKey) { + storageEncryptionKey_ = storageEncryptionKey; + setParameter(std::string("StorageEncryptionKey"), storageEncryptionKey); +} + std::string CreateDBClusterRequest::getParameterGroupId() const { return parameterGroupId_; } @@ -435,6 +453,24 @@ void CreateDBClusterRequest::setUsedTime(const std::string &usedTime) { setParameter(std::string("UsedTime"), usedTime); } +std::string CreateDBClusterRequest::getBurstingEnabled() const { + return burstingEnabled_; +} + +void CreateDBClusterRequest::setBurstingEnabled(const std::string &burstingEnabled) { + burstingEnabled_ = burstingEnabled; + setParameter(std::string("BurstingEnabled"), burstingEnabled); +} + +std::string CreateDBClusterRequest::getTargetMinorVersion() const { + return targetMinorVersion_; +} + +void CreateDBClusterRequest::setTargetMinorVersion(const std::string &targetMinorVersion) { + targetMinorVersion_ = targetMinorVersion; + setParameter(std::string("TargetMinorVersion"), targetMinorVersion); +} + int CreateDBClusterRequest::getDBNodeNum() const { return dBNodeNum_; } diff --git a/polardb/src/model/CreateDBClusterResult.cc b/polardb/src/model/CreateDBClusterResult.cc index c4f04c976..566b89914 100644 --- a/polardb/src/model/CreateDBClusterResult.cc +++ b/polardb/src/model/CreateDBClusterResult.cc @@ -39,12 +39,12 @@ void CreateDBClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } diff --git a/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc b/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc index f4c79284f..77cd8d4e5 100644 --- a/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc +++ b/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc @@ -52,6 +52,15 @@ void CreateGlobalDatabaseNetworkRequest::setResourceGroupId(const std::string &r setParameter(std::string("ResourceGroupId"), resourceGroupId); } +std::string CreateGlobalDatabaseNetworkRequest::getAccountName() const { + return accountName_; +} + +void CreateGlobalDatabaseNetworkRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + std::string CreateGlobalDatabaseNetworkRequest::getSecurityToken() const { return securityToken_; } @@ -97,6 +106,15 @@ void CreateGlobalDatabaseNetworkRequest::setOwnerAccount(const std::string &owne setParameter(std::string("OwnerAccount"), ownerAccount); } +bool CreateGlobalDatabaseNetworkRequest::getEnableGlobalDomainName() const { + return enableGlobalDomainName_; +} + +void CreateGlobalDatabaseNetworkRequest::setEnableGlobalDomainName(bool enableGlobalDomainName) { + enableGlobalDomainName_ = enableGlobalDomainName; + setParameter(std::string("EnableGlobalDomainName"), enableGlobalDomainName ? "true" : "false"); +} + long CreateGlobalDatabaseNetworkRequest::getOwnerId() const { return ownerId_; } @@ -106,3 +124,21 @@ void CreateGlobalDatabaseNetworkRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string CreateGlobalDatabaseNetworkRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateGlobalDatabaseNetworkRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + +std::string CreateGlobalDatabaseNetworkRequest::getDBName() const { + return dBName_; +} + +void CreateGlobalDatabaseNetworkRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/CreateOrGetVirtualLicenseOrderRequest.cc b/polardb/src/model/CreateOrGetVirtualLicenseOrderRequest.cc new file mode 100644 index 000000000..5cf80da3c --- /dev/null +++ b/polardb/src/model/CreateOrGetVirtualLicenseOrderRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::CreateOrGetVirtualLicenseOrderRequest; + +CreateOrGetVirtualLicenseOrderRequest::CreateOrGetVirtualLicenseOrderRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateOrGetVirtualLicenseOrder") { + setMethod(HttpRequest::Method::Post); +} + +CreateOrGetVirtualLicenseOrderRequest::~CreateOrGetVirtualLicenseOrderRequest() {} + +long CreateOrGetVirtualLicenseOrderRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateOrGetVirtualLicenseOrderRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateOrGetVirtualLicenseOrderRequest::getEngine() const { + return engine_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setEngine(const std::string &engine) { + engine_ = engine; + setParameter(std::string("Engine"), engine); +} + +std::string CreateOrGetVirtualLicenseOrderRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateOrGetVirtualLicenseOrderRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateOrGetVirtualLicenseOrderRequest::getOwnerId() const { + return ownerId_; +} + +void CreateOrGetVirtualLicenseOrderRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/CreateOrGetVirtualLicenseOrderResult.cc b/polardb/src/model/CreateOrGetVirtualLicenseOrderResult.cc new file mode 100644 index 000000000..1fd6e9692 --- /dev/null +++ b/polardb/src/model/CreateOrGetVirtualLicenseOrderResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateOrGetVirtualLicenseOrderResult::CreateOrGetVirtualLicenseOrderResult() : + ServiceResult() +{} + +CreateOrGetVirtualLicenseOrderResult::CreateOrGetVirtualLicenseOrderResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateOrGetVirtualLicenseOrderResult::~CreateOrGetVirtualLicenseOrderResult() +{} + +void CreateOrGetVirtualLicenseOrderResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActivatedCodeCount"].isNull()) + activatedCodeCount_ = std::stoi(value["ActivatedCodeCount"].asString()); + if(!value["ActivationCodeQuota"].isNull()) + activationCodeQuota_ = std::stoi(value["ActivationCodeQuota"].asString()); + if(!value["AliyunOrderId"].isNull()) + aliyunOrderId_ = value["AliyunOrderId"].asString(); + if(!value["AllowEmptySystemIdentifier"].isNull()) + allowEmptySystemIdentifier_ = value["AllowEmptySystemIdentifier"].asString() == "true"; + if(!value["GmtCreated"].isNull()) + gmtCreated_ = value["GmtCreated"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["IsVirtualOrder"].isNull()) + isVirtualOrder_ = value["IsVirtualOrder"].asString() == "true"; + if(!value["IsVirtualOrderFrozen"].isNull()) + isVirtualOrderFrozen_ = value["IsVirtualOrderFrozen"].asString() == "true"; + if(!value["PackageType"].isNull()) + packageType_ = value["PackageType"].asString(); + if(!value["PackageValidity"].isNull()) + packageValidity_ = value["PackageValidity"].asString(); + if(!value["PurchaseChannel"].isNull()) + purchaseChannel_ = value["PurchaseChannel"].asString(); + if(!value["VirtualOrderId"].isNull()) + virtualOrderId_ = value["VirtualOrderId"].asString(); + +} + +std::string CreateOrGetVirtualLicenseOrderResult::getVirtualOrderId()const +{ + return virtualOrderId_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getAliyunOrderId()const +{ + return aliyunOrderId_; +} + +int CreateOrGetVirtualLicenseOrderResult::getActivatedCodeCount()const +{ + return activatedCodeCount_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getPackageValidity()const +{ + return packageValidity_; +} + +bool CreateOrGetVirtualLicenseOrderResult::getIsVirtualOrder()const +{ + return isVirtualOrder_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getPackageType()const +{ + return packageType_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getGmtModified()const +{ + return gmtModified_; +} + +bool CreateOrGetVirtualLicenseOrderResult::getAllowEmptySystemIdentifier()const +{ + return allowEmptySystemIdentifier_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getGmtCreated()const +{ + return gmtCreated_; +} + +bool CreateOrGetVirtualLicenseOrderResult::getIsVirtualOrderFrozen()const +{ + return isVirtualOrderFrozen_; +} + +std::string CreateOrGetVirtualLicenseOrderResult::getPurchaseChannel()const +{ + return purchaseChannel_; +} + +int CreateOrGetVirtualLicenseOrderResult::getActivationCodeQuota()const +{ + return activationCodeQuota_; +} + diff --git a/polardb/src/model/DescribeAITaskStatusResult.cc b/polardb/src/model/DescribeAITaskStatusResult.cc index 49a3397e0..134652cbc 100644 --- a/polardb/src/model/DescribeAITaskStatusResult.cc +++ b/polardb/src/model/DescribeAITaskStatusResult.cc @@ -39,12 +39,14 @@ void DescribeAITaskStatusResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); if(!value["StatusName"].isNull()) statusName_ = value["StatusName"].asString(); + if(!value["AccountName"].isNull()) + accountName_ = value["AccountName"].asString(); } @@ -63,3 +65,8 @@ std::string DescribeAITaskStatusResult::getStatusName()const return statusName_; } +std::string DescribeAITaskStatusResult::getAccountName()const +{ + return accountName_; +} + diff --git a/polardb/src/model/DescribeActivationCodeDetailsRequest.cc b/polardb/src/model/DescribeActivationCodeDetailsRequest.cc new file mode 100644 index 000000000..cb3ea1937 --- /dev/null +++ b/polardb/src/model/DescribeActivationCodeDetailsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeActivationCodeDetailsRequest; + +DescribeActivationCodeDetailsRequest::DescribeActivationCodeDetailsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeActivationCodeDetails") { + setMethod(HttpRequest::Method::Post); +} + +DescribeActivationCodeDetailsRequest::~DescribeActivationCodeDetailsRequest() {} + +long DescribeActivationCodeDetailsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeActivationCodeDetailsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeActivationCodeDetailsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeActivationCodeDetailsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeActivationCodeDetailsRequest::getActivationCodeId() const { + return activationCodeId_; +} + +void DescribeActivationCodeDetailsRequest::setActivationCodeId(int activationCodeId) { + activationCodeId_ = activationCodeId; + setParameter(std::string("ActivationCodeId"), std::to_string(activationCodeId)); +} + +std::string DescribeActivationCodeDetailsRequest::getAliyunOrderId() const { + return aliyunOrderId_; +} + +void DescribeActivationCodeDetailsRequest::setAliyunOrderId(const std::string &aliyunOrderId) { + aliyunOrderId_ = aliyunOrderId; + setParameter(std::string("AliyunOrderId"), aliyunOrderId); +} + +std::string DescribeActivationCodeDetailsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeActivationCodeDetailsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeActivationCodeDetailsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeActivationCodeDetailsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeActivationCodeDetailsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeActivationCodeDetailsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeActivationCodeDetailsResult.cc b/polardb/src/model/DescribeActivationCodeDetailsResult.cc new file mode 100644 index 000000000..40227459f --- /dev/null +++ b/polardb/src/model/DescribeActivationCodeDetailsResult.cc @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeActivationCodeDetailsResult::DescribeActivationCodeDetailsResult() : + ServiceResult() +{} + +DescribeActivationCodeDetailsResult::DescribeActivationCodeDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActivationCodeDetailsResult::~DescribeActivationCodeDetailsResult() +{} + +void DescribeActivationCodeDetailsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActivateAt"].isNull()) + activateAt_ = value["ActivateAt"].asString(); + if(!value["CertContentB64"].isNull()) + certContentB64_ = value["CertContentB64"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["ExpireAt"].isNull()) + expireAt_ = value["ExpireAt"].asString(); + if(!value["GmtCreated"].isNull()) + gmtCreated_ = value["GmtCreated"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["Id"].isNull()) + id_ = std::stoi(value["Id"].asString()); + if(!value["MacAddress"].isNull()) + macAddress_ = value["MacAddress"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["SystemIdentifier"].isNull()) + systemIdentifier_ = value["SystemIdentifier"].asString(); + +} + +std::string DescribeActivationCodeDetailsResult::getDescription()const +{ + return description_; +} + +std::string DescribeActivationCodeDetailsResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string DescribeActivationCodeDetailsResult::getSystemIdentifier()const +{ + return systemIdentifier_; +} + +std::string DescribeActivationCodeDetailsResult::getActivateAt()const +{ + return activateAt_; +} + +std::string DescribeActivationCodeDetailsResult::getExpireAt()const +{ + return expireAt_; +} + +std::string DescribeActivationCodeDetailsResult::getCertContentB64()const +{ + return certContentB64_; +} + +std::string DescribeActivationCodeDetailsResult::getGmtCreated()const +{ + return gmtCreated_; +} + +int DescribeActivationCodeDetailsResult::getId()const +{ + return id_; +} + +std::string DescribeActivationCodeDetailsResult::getMacAddress()const +{ + return macAddress_; +} + +std::string DescribeActivationCodeDetailsResult::getName()const +{ + return name_; +} + diff --git a/polardb/src/model/DescribeActivationCodesRequest.cc b/polardb/src/model/DescribeActivationCodesRequest.cc new file mode 100644 index 000000000..79f714806 --- /dev/null +++ b/polardb/src/model/DescribeActivationCodesRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::DescribeActivationCodesRequest; + +DescribeActivationCodesRequest::DescribeActivationCodesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeActivationCodes") { + setMethod(HttpRequest::Method::Post); +} + +DescribeActivationCodesRequest::~DescribeActivationCodesRequest() {} + +long DescribeActivationCodesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeActivationCodesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeActivationCodesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeActivationCodesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeActivationCodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeActivationCodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeActivationCodesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeActivationCodesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeActivationCodesRequest::getAliyunOrderId() const { + return aliyunOrderId_; +} + +void DescribeActivationCodesRequest::setAliyunOrderId(const std::string &aliyunOrderId) { + aliyunOrderId_ = aliyunOrderId; + setParameter(std::string("AliyunOrderId"), aliyunOrderId); +} + +std::string DescribeActivationCodesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeActivationCodesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeActivationCodesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeActivationCodesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeActivationCodesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeActivationCodesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeActivationCodesResult.cc b/polardb/src/model/DescribeActivationCodesResult.cc new file mode 100644 index 000000000..56ef18168 --- /dev/null +++ b/polardb/src/model/DescribeActivationCodesResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeActivationCodesResult::DescribeActivationCodesResult() : + ServiceResult() +{} + +DescribeActivationCodesResult::DescribeActivationCodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActivationCodesResult::~DescribeActivationCodesResult() +{} + +void DescribeActivationCodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ActivationCodes"]; + for (auto valueItemsActivationCodes : allItemsNode) + { + ActivationCodes itemsObject; + if(!valueItemsActivationCodes["ActivateAt"].isNull()) + itemsObject.activateAt = valueItemsActivationCodes["ActivateAt"].asString(); + if(!valueItemsActivationCodes["Description"].isNull()) + itemsObject.description = valueItemsActivationCodes["Description"].asString(); + if(!valueItemsActivationCodes["ExpireAt"].isNull()) + itemsObject.expireAt = valueItemsActivationCodes["ExpireAt"].asString(); + if(!valueItemsActivationCodes["GmtCreated"].isNull()) + itemsObject.gmtCreated = valueItemsActivationCodes["GmtCreated"].asString(); + if(!valueItemsActivationCodes["GmtModified"].isNull()) + itemsObject.gmtModified = valueItemsActivationCodes["GmtModified"].asString(); + if(!valueItemsActivationCodes["Id"].isNull()) + itemsObject.id = std::stoi(valueItemsActivationCodes["Id"].asString()); + if(!valueItemsActivationCodes["MacAddress"].isNull()) + itemsObject.macAddress = valueItemsActivationCodes["MacAddress"].asString(); + if(!valueItemsActivationCodes["Name"].isNull()) + itemsObject.name = valueItemsActivationCodes["Name"].asString(); + if(!valueItemsActivationCodes["SystemIdentifier"].isNull()) + itemsObject.systemIdentifier = valueItemsActivationCodes["SystemIdentifier"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeActivationCodesResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeActivationCodesResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeActivationCodesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeActivationCodesResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeActiveOperationTasksRequest.cc b/polardb/src/model/DescribeActiveOperationTasksRequest.cc new file mode 100644 index 000000000..0a0f93820 --- /dev/null +++ b/polardb/src/model/DescribeActiveOperationTasksRequest.cc @@ -0,0 +1,207 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeActiveOperationTasksRequest; + +DescribeActiveOperationTasksRequest::DescribeActiveOperationTasksRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeActiveOperationTasks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeActiveOperationTasksRequest::~DescribeActiveOperationTasksRequest() {} + +long DescribeActiveOperationTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeActiveOperationTasksRequest::getChangeLevel() const { + return changeLevel_; +} + +void DescribeActiveOperationTasksRequest::setChangeLevel(const std::string &changeLevel) { + changeLevel_ = changeLevel; + setParameter(std::string("ChangeLevel"), changeLevel); +} + +int DescribeActiveOperationTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeActiveOperationTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeActiveOperationTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeActiveOperationTasksRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeActiveOperationTasksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeActiveOperationTasksRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeActiveOperationTasksRequest::getRegionId() const { + return regionId_; +} + +void DescribeActiveOperationTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeActiveOperationTasksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeActiveOperationTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeActiveOperationTasksRequest::getProductName() const { + return productName_; +} + +void DescribeActiveOperationTasksRequest::setProductName(const std::string &productName) { + productName_ = productName; + setParameter(std::string("ProductName"), productName); +} + +std::string DescribeActiveOperationTasksRequest::getEngineType() const { + return engineType_; +} + +void DescribeActiveOperationTasksRequest::setEngineType(const std::string &engineType) { + engineType_ = engineType; + setParameter(std::string("EngineType"), engineType); +} + +std::string DescribeActiveOperationTasksRequest::getTaskType() const { + return taskType_; +} + +void DescribeActiveOperationTasksRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +std::string DescribeActiveOperationTasksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeActiveOperationTasksRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeActiveOperationTasksRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeActiveOperationTasksRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeActiveOperationTasksRequest::getAllowCancel() const { + return allowCancel_; +} + +void DescribeActiveOperationTasksRequest::setAllowCancel(long allowCancel) { + allowCancel_ = allowCancel; + setParameter(std::string("AllowCancel"), std::to_string(allowCancel)); +} + +long DescribeActiveOperationTasksRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeActiveOperationTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeActiveOperationTasksRequest::getDBType() const { + return dBType_; +} + +void DescribeActiveOperationTasksRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +long DescribeActiveOperationTasksRequest::getAllowChange() const { + return allowChange_; +} + +void DescribeActiveOperationTasksRequest::setAllowChange(long allowChange) { + allowChange_ = allowChange; + setParameter(std::string("AllowChange"), std::to_string(allowChange)); +} + +std::string DescribeActiveOperationTasksRequest::getRegion() const { + return region_; +} + +void DescribeActiveOperationTasksRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + +long DescribeActiveOperationTasksRequest::getStatus() const { + return status_; +} + +void DescribeActiveOperationTasksRequest::setStatus(long status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/polardb/src/model/DescribeActiveOperationTasksResult.cc b/polardb/src/model/DescribeActiveOperationTasksResult.cc new file mode 100644 index 000000000..5f5e6fbf9 --- /dev/null +++ b/polardb/src/model/DescribeActiveOperationTasksResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeActiveOperationTasksResult::DescribeActiveOperationTasksResult() : + ServiceResult() +{} + +DescribeActiveOperationTasksResult::DescribeActiveOperationTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationTasksResult::~DescribeActiveOperationTasksResult() +{} + +void DescribeActiveOperationTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ItemsItem"]; + for (auto valueItemsItemsItem : allItemsNode) + { + ItemsItem itemsObject; + if(!valueItemsItemsItem["Status"].isNull()) + itemsObject.status = std::stoi(valueItemsItemsItem["Status"].asString()); + if(!valueItemsItemsItem["PrepareInterval"].isNull()) + itemsObject.prepareInterval = valueItemsItemsItem["PrepareInterval"].asString(); + if(!valueItemsItemsItem["Deadline"].isNull()) + itemsObject.deadline = valueItemsItemsItem["Deadline"].asString(); + if(!valueItemsItemsItem["DBType"].isNull()) + itemsObject.dBType = valueItemsItemsItem["DBType"].asString(); + if(!valueItemsItemsItem["TaskType"].isNull()) + itemsObject.taskType = valueItemsItemsItem["TaskType"].asString(); + if(!valueItemsItemsItem["StartTime"].isNull()) + itemsObject.startTime = valueItemsItemsItem["StartTime"].asString(); + if(!valueItemsItemsItem["DBVersion"].isNull()) + itemsObject.dBVersion = valueItemsItemsItem["DBVersion"].asString(); + if(!valueItemsItemsItem["ModifiedTime"].isNull()) + itemsObject.modifiedTime = valueItemsItemsItem["ModifiedTime"].asString(); + if(!valueItemsItemsItem["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsItemsItem["DBClusterId"].asString(); + if(!valueItemsItemsItem["Region"].isNull()) + itemsObject.region = valueItemsItemsItem["Region"].asString(); + if(!valueItemsItemsItem["ResultInfo"].isNull()) + itemsObject.resultInfo = valueItemsItemsItem["ResultInfo"].asString(); + if(!valueItemsItemsItem["CreatedTime"].isNull()) + itemsObject.createdTime = valueItemsItemsItem["CreatedTime"].asString(); + if(!valueItemsItemsItem["TaskId"].isNull()) + itemsObject.taskId = std::stoi(valueItemsItemsItem["TaskId"].asString()); + if(!valueItemsItemsItem["SwitchTime"].isNull()) + itemsObject.switchTime = valueItemsItemsItem["SwitchTime"].asString(); + if(!valueItemsItemsItem["CurrentAVZ"].isNull()) + itemsObject.currentAVZ = valueItemsItemsItem["CurrentAVZ"].asString(); + if(!valueItemsItemsItem["InsComment"].isNull()) + itemsObject.insComment = valueItemsItemsItem["InsComment"].asString(); + if(!valueItemsItemsItem["TaskTypeZh"].isNull()) + itemsObject.taskTypeZh = valueItemsItemsItem["TaskTypeZh"].asString(); + if(!valueItemsItemsItem["TaskTypeEn"].isNull()) + itemsObject.taskTypeEn = valueItemsItemsItem["TaskTypeEn"].asString(); + if(!valueItemsItemsItem["ChangeLevel"].isNull()) + itemsObject.changeLevel = valueItemsItemsItem["ChangeLevel"].asString(); + if(!valueItemsItemsItem["ChangeLevelZh"].isNull()) + itemsObject.changeLevelZh = valueItemsItemsItem["ChangeLevelZh"].asString(); + if(!valueItemsItemsItem["ChangeLevelEn"].isNull()) + itemsObject.changeLevelEn = valueItemsItemsItem["ChangeLevelEn"].asString(); + if(!valueItemsItemsItem["ImpactZh"].isNull()) + itemsObject.impactZh = valueItemsItemsItem["ImpactZh"].asString(); + if(!valueItemsItemsItem["ImpactEn"].isNull()) + itemsObject.impactEn = valueItemsItemsItem["ImpactEn"].asString(); + if(!valueItemsItemsItem["AllowChange"].isNull()) + itemsObject.allowChange = std::stol(valueItemsItemsItem["AllowChange"].asString()); + if(!valueItemsItemsItem["AllowCancel"].isNull()) + itemsObject.allowCancel = std::stol(valueItemsItemsItem["AllowCancel"].asString()); + if(!valueItemsItemsItem["Impact"].isNull()) + itemsObject.impact = valueItemsItemsItem["Impact"].asString(); + if(!valueItemsItemsItem["TaskParams"].isNull()) + itemsObject.taskParams = valueItemsItemsItem["TaskParams"].asString(); + auto allDBNodeIds = value["DBNodeIds"]["subInsNames"]; + for (auto value : allDBNodeIds) + itemsObject.dBNodeIds.push_back(value.asString()); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + +} + +int DescribeActiveOperationTasksResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeActiveOperationTasksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeActiveOperationTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeActiveOperationTasksResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeAutoRenewAttributeResult.cc b/polardb/src/model/DescribeAutoRenewAttributeResult.cc index d0bee28ff..76c750584 100644 --- a/polardb/src/model/DescribeAutoRenewAttributeResult.cc +++ b/polardb/src/model/DescribeAutoRenewAttributeResult.cc @@ -43,26 +43,26 @@ void DescribeAutoRenewAttributeResult::parse(const std::string &payload) for (auto valueItemsAutoRenewAttribute : allItemsNode) { AutoRenewAttribute itemsObject; - if(!valueItemsAutoRenewAttribute["DBClusterId"].isNull()) - itemsObject.dBClusterId = valueItemsAutoRenewAttribute["DBClusterId"].asString(); - if(!valueItemsAutoRenewAttribute["PeriodUnit"].isNull()) - itemsObject.periodUnit = valueItemsAutoRenewAttribute["PeriodUnit"].asString(); - if(!valueItemsAutoRenewAttribute["Duration"].isNull()) - itemsObject.duration = std::stoi(valueItemsAutoRenewAttribute["Duration"].asString()); - if(!valueItemsAutoRenewAttribute["RenewalStatus"].isNull()) - itemsObject.renewalStatus = valueItemsAutoRenewAttribute["RenewalStatus"].asString(); if(!valueItemsAutoRenewAttribute["AutoRenewEnabled"].isNull()) itemsObject.autoRenewEnabled = valueItemsAutoRenewAttribute["AutoRenewEnabled"].asString() == "true"; + if(!valueItemsAutoRenewAttribute["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsAutoRenewAttribute["DBClusterId"].asString(); + if(!valueItemsAutoRenewAttribute["Duration"].isNull()) + itemsObject.duration = std::stoi(valueItemsAutoRenewAttribute["Duration"].asString()); + if(!valueItemsAutoRenewAttribute["PeriodUnit"].isNull()) + itemsObject.periodUnit = valueItemsAutoRenewAttribute["PeriodUnit"].asString(); if(!valueItemsAutoRenewAttribute["RegionId"].isNull()) itemsObject.regionId = valueItemsAutoRenewAttribute["RegionId"].asString(); + if(!valueItemsAutoRenewAttribute["RenewalStatus"].isNull()) + itemsObject.renewalStatus = valueItemsAutoRenewAttribute["RenewalStatus"].asString(); items_.push_back(itemsObject); } - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); } diff --git a/polardb/src/model/DescribeBackupsResult.cc b/polardb/src/model/DescribeBackupsResult.cc index 69df98461..90d44c387 100644 --- a/polardb/src/model/DescribeBackupsResult.cc +++ b/polardb/src/model/DescribeBackupsResult.cc @@ -81,6 +81,8 @@ void DescribeBackupsResult::parse(const std::string &payload) pageRecordCount_ = value["PageRecordCount"].asString(); if(!value["PageNumber"].isNull()) pageNumber_ = value["PageNumber"].asString(); + if(!value["TotalLevel2BackupSize"].isNull()) + totalLevel2BackupSize_ = value["TotalLevel2BackupSize"].asString(); } @@ -104,3 +106,8 @@ std::vector DescribeBackupsResult::getItems()cons return items_; } +std::string DescribeBackupsResult::getTotalLevel2BackupSize()const +{ + return totalLevel2BackupSize_; +} + diff --git a/polardb/src/model/DescribeClassListResult.cc b/polardb/src/model/DescribeClassListResult.cc index a8ebc4f41..dbc6ab0e8 100644 --- a/polardb/src/model/DescribeClassListResult.cc +++ b/polardb/src/model/DescribeClassListResult.cc @@ -73,6 +73,10 @@ void DescribeClassListResult::parse(const std::string &payload) itemsObject.pl2MaxIOPS = valueItemsItemsItem["Pl2MaxIOPS"].asString(); if(!valueItemsItemsItem["Pl3MaxIOPS"].isNull()) itemsObject.pl3MaxIOPS = valueItemsItemsItem["Pl3MaxIOPS"].asString(); + if(!valueItemsItemsItem["EssdMaxStorageCapacity"].isNull()) + itemsObject.essdMaxStorageCapacity = valueItemsItemsItem["EssdMaxStorageCapacity"].asString(); + if(!valueItemsItemsItem["PolarStoreMaxStorageCapacity"].isNull()) + itemsObject.polarStoreMaxStorageCapacity = valueItemsItemsItem["PolarStoreMaxStorageCapacity"].asString(); items_.push_back(itemsObject); } if(!value["RegionId"].isNull()) diff --git a/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc b/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc index 7a1bbfbfc..6abe4773b 100644 --- a/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc +++ b/polardb/src/model/DescribeDBClusterAccessWhitelistResult.cc @@ -39,6 +39,16 @@ void DescribeDBClusterAccessWhitelistResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDBClusterSecurityGroupsNode = value["DBClusterSecurityGroups"]["DBClusterSecurityGroup"]; + for (auto valueDBClusterSecurityGroupsDBClusterSecurityGroup : allDBClusterSecurityGroupsNode) + { + DBClusterSecurityGroup dBClusterSecurityGroupsObject; + if(!valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupId"].isNull()) + dBClusterSecurityGroupsObject.securityGroupId = valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupId"].asString(); + if(!valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupName"].isNull()) + dBClusterSecurityGroupsObject.securityGroupName = valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupName"].asString(); + dBClusterSecurityGroups_.push_back(dBClusterSecurityGroupsObject); + } auto allItemsNode = value["Items"]["DBClusterIPArray"]; for (auto valueItemsDBClusterIPArray : allItemsNode) { @@ -51,16 +61,6 @@ void DescribeDBClusterAccessWhitelistResult::parse(const std::string &payload) itemsObject.securityIps = valueItemsDBClusterIPArray["SecurityIps"].asString(); items_.push_back(itemsObject); } - auto allDBClusterSecurityGroupsNode = value["DBClusterSecurityGroups"]["DBClusterSecurityGroup"]; - for (auto valueDBClusterSecurityGroupsDBClusterSecurityGroup : allDBClusterSecurityGroupsNode) - { - DBClusterSecurityGroup dBClusterSecurityGroupsObject; - if(!valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupId"].isNull()) - dBClusterSecurityGroupsObject.securityGroupId = valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupId"].asString(); - if(!valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupName"].isNull()) - dBClusterSecurityGroupsObject.securityGroupName = valueDBClusterSecurityGroupsDBClusterSecurityGroup["SecurityGroupName"].asString(); - dBClusterSecurityGroups_.push_back(dBClusterSecurityGroupsObject); - } } diff --git a/polardb/src/model/DescribeDBClusterAttributeResult.cc b/polardb/src/model/DescribeDBClusterAttributeResult.cc index fe23328dd..8b1c70b81 100644 --- a/polardb/src/model/DescribeDBClusterAttributeResult.cc +++ b/polardb/src/model/DescribeDBClusterAttributeResult.cc @@ -83,6 +83,18 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) dBNodesObject.subCluster = valueDBNodesDBNode["SubCluster"].asString(); if(!valueDBNodesDBNode["Tair"].isNull()) dBNodesObject.tair = valueDBNodesDBNode["Tair"].asString(); + if(!valueDBNodesDBNode["RemoteMemorySize"].isNull()) + dBNodesObject.remoteMemorySize = valueDBNodesDBNode["RemoteMemorySize"].asString(); + if(!valueDBNodesDBNode["Orca"].isNull()) + dBNodesObject.orca = valueDBNodesDBNode["Orca"].asString(); + if(!valueDBNodesDBNode["MirrorInsName"].isNull()) + dBNodesObject.mirrorInsName = valueDBNodesDBNode["MirrorInsName"].asString(); + if(!valueDBNodesDBNode["MultiMasterLocalStandby"].isNull()) + dBNodesObject.multiMasterLocalStandby = valueDBNodesDBNode["MultiMasterLocalStandby"].asString(); + if(!valueDBNodesDBNode["MultiMasterPrimaryNode"].isNull()) + dBNodesObject.multiMasterPrimaryNode = valueDBNodesDBNode["MultiMasterPrimaryNode"].asString(); + if(!valueDBNodesDBNode["DBNodeDescription"].isNull()) + dBNodesObject.dBNodeDescription = valueDBNodesDBNode["DBNodeDescription"].asString(); dBNodes_.push_back(dBNodesObject); } auto allTagsNode = value["Tags"]["Tag"]; @@ -218,6 +230,34 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) provisionedIops_ = value["ProvisionedIops"].asString(); if(!value["HotStandbyHealthy"].isNull()) hotStandbyHealthy_ = value["HotStandbyHealthy"].asString() == "true"; + if(!value["HotStandbyWhiteListSwitch"].isNull()) + hotStandbyWhiteListSwitch_ = value["HotStandbyWhiteListSwitch"].asString() == "true"; + if(!value["StorageTypeWhiteListSwitch"].isNull()) + storageTypeWhiteListSwitch_ = value["StorageTypeWhiteListSwitch"].asString() == "true"; + if(!value["AiFreeMode"].isNull()) + aiFreeMode_ = value["AiFreeMode"].asString(); + if(!value["AiCreatingTime"].isNull()) + aiCreatingTime_ = value["AiCreatingTime"].asString(); + if(!value["SupportInstantSwitchWithImci"].isNull()) + supportInstantSwitchWithImci_ = value["SupportInstantSwitchWithImci"].asString(); + if(!value["Orca"].isNull()) + orca_ = value["Orca"].asString(); + if(!value["SourceDBCluster"].isNull()) + sourceDBCluster_ = value["SourceDBCluster"].asString(); + if(!value["RestoreType"].isNull()) + restoreType_ = value["RestoreType"].asString(); + if(!value["RestoreDataPoint"].isNull()) + restoreDataPoint_ = value["RestoreDataPoint"].asString(); + if(!value["SourceRegionId"].isNull()) + sourceRegionId_ = value["SourceRegionId"].asString(); + if(!value["ImciAutoIndex"].isNull()) + imciAutoIndex_ = value["ImciAutoIndex"].asString(); + if(!value["BurstingEnabled"].isNull()) + burstingEnabled_ = value["BurstingEnabled"].asString(); + if(!value["RowCompression"].isNull()) + rowCompression_ = value["RowCompression"].asString(); + if(!value["ImperceptibleSwitch"].isNull()) + imperceptibleSwitch_ = value["ImperceptibleSwitch"].asString(); } @@ -231,6 +271,11 @@ long DescribeDBClusterAttributeResult::getCompressStorageUsed()const return compressStorageUsed_; } +std::string DescribeDBClusterAttributeResult::getOrca()const +{ + return orca_; +} + std::string DescribeDBClusterAttributeResult::getStoragePayType()const { return storagePayType_; @@ -276,6 +321,11 @@ std::vector DescribeDBClusterAttribute return dBNodes_; } +std::string DescribeDBClusterAttributeResult::getImciAutoIndex()const +{ + return imciAutoIndex_; +} + std::string DescribeDBClusterAttributeResult::getFeatureHTAPSupported()const { return featureHTAPSupported_; @@ -346,6 +396,11 @@ long DescribeDBClusterAttributeResult::getInodeTotal()const return inodeTotal_; } +std::string DescribeDBClusterAttributeResult::getRestoreDataPoint()const +{ + return restoreDataPoint_; +} + std::string DescribeDBClusterAttributeResult::getCompressStorageMode()const { return compressStorageMode_; @@ -366,6 +421,11 @@ std::string DescribeDBClusterAttributeResult::getCreationTime()const return creationTime_; } +std::string DescribeDBClusterAttributeResult::getImperceptibleSwitch()const +{ + return imperceptibleSwitch_; +} + std::string DescribeDBClusterAttributeResult::getProxyType()const { return proxyType_; @@ -386,6 +446,16 @@ std::string DescribeDBClusterAttributeResult::getCategory()const return category_; } +std::string DescribeDBClusterAttributeResult::getAiCreatingTime()const +{ + return aiCreatingTime_; +} + +bool DescribeDBClusterAttributeResult::getStorageTypeWhiteListSwitch()const +{ + return storageTypeWhiteListSwitch_; +} + std::string DescribeDBClusterAttributeResult::getDBClusterId()const { return dBClusterId_; @@ -401,6 +471,11 @@ std::string DescribeDBClusterAttributeResult::getDeployUnit()const return deployUnit_; } +std::string DescribeDBClusterAttributeResult::getAiFreeMode()const +{ + return aiFreeMode_; +} + std::string DescribeDBClusterAttributeResult::getDBClusterNetworkType()const { return dBClusterNetworkType_; @@ -411,6 +486,11 @@ bool DescribeDBClusterAttributeResult::getIsLatestVersion()const return isLatestVersion_; } +std::string DescribeDBClusterAttributeResult::getSourceRegionId()const +{ + return sourceRegionId_; +} + long DescribeDBClusterAttributeResult::getStorageMax()const { return storageMax_; @@ -421,16 +501,31 @@ std::string DescribeDBClusterAttributeResult::getZoneIds()const return zoneIds_; } +bool DescribeDBClusterAttributeResult::getHotStandbyWhiteListSwitch()const +{ + return hotStandbyWhiteListSwitch_; +} + long DescribeDBClusterAttributeResult::getInodeUsed()const { return inodeUsed_; } +std::string DescribeDBClusterAttributeResult::getRestoreType()const +{ + return restoreType_; +} + std::string DescribeDBClusterAttributeResult::getMaintainTime()const { return maintainTime_; } +std::string DescribeDBClusterAttributeResult::getBurstingEnabled()const +{ + return burstingEnabled_; +} + std::string DescribeDBClusterAttributeResult::getHotStandbyClusterStatus()const { return hotStandbyClusterStatus_; @@ -446,6 +541,11 @@ std::string DescribeDBClusterAttributeResult::getDataSyncMode()const return dataSyncMode_; } +std::string DescribeDBClusterAttributeResult::getSourceDBCluster()const +{ + return sourceDBCluster_; +} + std::string DescribeDBClusterAttributeResult::getDBClusterStatus()const { return dBClusterStatus_; @@ -491,6 +591,11 @@ bool DescribeDBClusterAttributeResult::getHasCompleteStandbyRes()const return hasCompleteStandbyRes_; } +std::string DescribeDBClusterAttributeResult::getSupportInstantSwitchWithImci()const +{ + return supportInstantSwitchWithImci_; +} + DescribeDBClusterAttributeResult::RelatedAPInstance DescribeDBClusterAttributeResult::getRelatedAPInstance()const { return relatedAPInstance_; @@ -506,6 +611,11 @@ std::string DescribeDBClusterAttributeResult::getRegionId()const return regionId_; } +std::string DescribeDBClusterAttributeResult::getRowCompression()const +{ + return rowCompression_; +} + bool DescribeDBClusterAttributeResult::getHotStandbyHealthy()const { return hotStandbyHealthy_; diff --git a/polardb/src/model/DescribeDBClusterEndpointsResult.cc b/polardb/src/model/DescribeDBClusterEndpointsResult.cc index e37da34d6..7d3a814b9 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsResult.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsResult.cc @@ -61,6 +61,12 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString(); if(!valueItemsDBEndpoint["DBClusterId"].isNull()) itemsObject.dBClusterId = valueItemsDBEndpoint["DBClusterId"].asString(); + if(!valueItemsDBEndpoint["SccMode"].isNull()) + itemsObject.sccMode = valueItemsDBEndpoint["SccMode"].asString(); + if(!valueItemsDBEndpoint["PolarSccTimeoutAction"].isNull()) + itemsObject.polarSccTimeoutAction = valueItemsDBEndpoint["PolarSccTimeoutAction"].asString(); + if(!valueItemsDBEndpoint["PolarSccWaitTimeout"].isNull()) + itemsObject.polarSccWaitTimeout = valueItemsDBEndpoint["PolarSccWaitTimeout"].asString(); auto allAddressItemsNode = valueItemsDBEndpoint["AddressItems"]["Address"]; for (auto valueItemsDBEndpointAddressItemsAddress : allAddressItemsNode) { diff --git a/polardb/src/model/DescribeDBClusterMigrationResult.cc b/polardb/src/model/DescribeDBClusterMigrationResult.cc index 8a5ccf7b8..1f229a5d3 100644 --- a/polardb/src/model/DescribeDBClusterMigrationResult.cc +++ b/polardb/src/model/DescribeDBClusterMigrationResult.cc @@ -103,6 +103,46 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) } rdsEndpointList_.push_back(rdsEndpointListObject); } + auto allSrcDtsJobListNode = value["SrcDtsJobList"]["SrcDtsJob"]; + for (auto valueSrcDtsJobListSrcDtsJob : allSrcDtsJobListNode) + { + SrcDtsJob srcDtsJobListObject; + if(!valueSrcDtsJobListSrcDtsJob["DtsJobId"].isNull()) + srcDtsJobListObject.dtsJobId = valueSrcDtsJobListSrcDtsJob["DtsJobId"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["DtsJobName"].isNull()) + srcDtsJobListObject.dtsJobName = valueSrcDtsJobListSrcDtsJob["DtsJobName"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["DtsInstanceID"].isNull()) + srcDtsJobListObject.dtsInstanceID = valueSrcDtsJobListSrcDtsJob["DtsInstanceID"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["DtsJobDirection"].isNull()) + srcDtsJobListObject.dtsJobDirection = valueSrcDtsJobListSrcDtsJob["DtsJobDirection"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["Status"].isNull()) + srcDtsJobListObject.status = valueSrcDtsJobListSrcDtsJob["Status"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["SourceEndpoint"].isNull()) + srcDtsJobListObject.sourceEndpoint = valueSrcDtsJobListSrcDtsJob["SourceEndpoint"].asString(); + if(!valueSrcDtsJobListSrcDtsJob["DestinationEndpoint"].isNull()) + srcDtsJobListObject.destinationEndpoint = valueSrcDtsJobListSrcDtsJob["DestinationEndpoint"].asString(); + srcDtsJobList_.push_back(srcDtsJobListObject); + } + auto allDstDtsJobListNode = value["DstDtsJobList"]["DstDtsJob"]; + for (auto valueDstDtsJobListDstDtsJob : allDstDtsJobListNode) + { + DstDtsJob dstDtsJobListObject; + if(!valueDstDtsJobListDstDtsJob["DtsJobId"].isNull()) + dstDtsJobListObject.dtsJobId = valueDstDtsJobListDstDtsJob["DtsJobId"].asString(); + if(!valueDstDtsJobListDstDtsJob["DtsJobName"].isNull()) + dstDtsJobListObject.dtsJobName = valueDstDtsJobListDstDtsJob["DtsJobName"].asString(); + if(!valueDstDtsJobListDstDtsJob["DtsInstanceId"].isNull()) + dstDtsJobListObject.dtsInstanceId = valueDstDtsJobListDstDtsJob["DtsInstanceId"].asString(); + if(!valueDstDtsJobListDstDtsJob["DtsJobDirection"].isNull()) + dstDtsJobListObject.dtsJobDirection = valueDstDtsJobListDstDtsJob["DtsJobDirection"].asString(); + if(!valueDstDtsJobListDstDtsJob["Status"].isNull()) + dstDtsJobListObject.status = valueDstDtsJobListDstDtsJob["Status"].asString(); + if(!valueDstDtsJobListDstDtsJob["SourceEndpoint"].isNull()) + dstDtsJobListObject.sourceEndpoint = valueDstDtsJobListDstDtsJob["SourceEndpoint"].asString(); + if(!valueDstDtsJobListDstDtsJob["DestinationEndpoint"].isNull()) + dstDtsJobListObject.destinationEndpoint = valueDstDtsJobListDstDtsJob["DestinationEndpoint"].asString(); + dstDtsJobList_.push_back(dstDtsJobListObject); + } if(!value["Comment"].isNull()) comment_ = value["Comment"].asString(); if(!value["ExpiredTime"].isNull()) @@ -125,6 +165,16 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) dtsInstanceId_ = value["DtsInstanceId"].asString(); if(!value["SrcDbType"].isNull()) srcDbType_ = value["SrcDbType"].asString(); + if(!value["MigrationSwitch"].isNull()) + migrationSwitch_ = value["MigrationSwitch"].asString(); + if(!value["MigrationDtsJobEndpoint"].isNull()) + migrationDtsJobEndpoint_ = value["MigrationDtsJobEndpoint"].asString(); + if(!value["DstBinlogPosition"].isNull()) + dstBinlogPosition_ = value["DstBinlogPosition"].asString(); + if(!value["SrcBinlogPosition"].isNull()) + srcBinlogPosition_ = value["SrcBinlogPosition"].asString(); + if(!value["MigrationProgress"].isNull()) + migrationProgress_ = value["MigrationProgress"].asString(); } @@ -133,6 +183,16 @@ std::string DescribeDBClusterMigrationResult::getComment()const return comment_; } +std::string DescribeDBClusterMigrationResult::getSrcBinlogPosition()const +{ + return srcBinlogPosition_; +} + +std::string DescribeDBClusterMigrationResult::getMigrationDtsJobEndpoint()const +{ + return migrationDtsJobEndpoint_; +} + std::string DescribeDBClusterMigrationResult::getDBClusterId()const { return dBClusterId_; @@ -153,6 +213,11 @@ std::string DescribeDBClusterMigrationResult::getDBClusterReadWriteMode()const return dBClusterReadWriteMode_; } +std::string DescribeDBClusterMigrationResult::getMigrationProgress()const +{ + return migrationProgress_; +} + std::string DescribeDBClusterMigrationResult::getMigrationStatus()const { return migrationStatus_; @@ -168,16 +233,31 @@ std::vector DescribeDBClusterMigr return rdsEndpointList_; } +std::vector DescribeDBClusterMigrationResult::getSrcDtsJobList()const +{ + return srcDtsJobList_; +} + std::vector DescribeDBClusterMigrationResult::getDBClusterEndpointList()const { return dBClusterEndpointList_; } +std::string DescribeDBClusterMigrationResult::getDstBinlogPosition()const +{ + return dstBinlogPosition_; +} + std::string DescribeDBClusterMigrationResult::getExpiredTime()const { return expiredTime_; } +std::string DescribeDBClusterMigrationResult::getMigrationSwitch()const +{ + return migrationSwitch_; +} + std::string DescribeDBClusterMigrationResult::getTopologies()const { return topologies_; @@ -188,6 +268,11 @@ std::string DescribeDBClusterMigrationResult::getRdsReadWriteMode()const return rdsReadWriteMode_; } +std::vector DescribeDBClusterMigrationResult::getDstDtsJobList()const +{ + return dstDtsJobList_; +} + int DescribeDBClusterMigrationResult::getDelayedSeconds()const { return delayedSeconds_; diff --git a/polardb/src/model/DescribeDBClusterParametersResult.cc b/polardb/src/model/DescribeDBClusterParametersResult.cc index 0a52d865a..077d432ac 100644 --- a/polardb/src/model/DescribeDBClusterParametersResult.cc +++ b/polardb/src/model/DescribeDBClusterParametersResult.cc @@ -91,6 +91,14 @@ void DescribeDBClusterParametersResult::parse(const std::string &payload) parametersObject.distParameterDescription = valueParametersParametersItem["distParameterDescription"].asString(); if(!valueParametersParametersItem["rdsParameterDescription"].isNull()) parametersObject.rdsParameterDescription = valueParametersParametersItem["rdsParameterDescription"].asString(); + if(!valueParametersParametersItem["IsRdsKey"].isNull()) + parametersObject.isRdsKey = valueParametersParametersItem["IsRdsKey"].asString(); + if(!valueParametersParametersItem["IsPolarDBKey"].isNull()) + parametersObject.isPolarDBKey = valueParametersParametersItem["IsPolarDBKey"].asString(); + if(!valueParametersParametersItem["IsInstancePolarDBKey"].isNull()) + parametersObject.isInstancePolarDBKey = valueParametersParametersItem["IsInstancePolarDBKey"].asString(); + if(!valueParametersParametersItem["IsInstanceRdsKey"].isNull()) + parametersObject.isInstanceRdsKey = valueParametersParametersItem["IsInstanceRdsKey"].asString(); parameters_.push_back(parametersObject); } if(!value["DBVersion"].isNull()) diff --git a/polardb/src/model/DescribeDBClusterPerformanceRequest.cc b/polardb/src/model/DescribeDBClusterPerformanceRequest.cc index 8dac31dc8..3e1d17d0c 100644 --- a/polardb/src/model/DescribeDBClusterPerformanceRequest.cc +++ b/polardb/src/model/DescribeDBClusterPerformanceRequest.cc @@ -43,6 +43,15 @@ void DescribeDBClusterPerformanceRequest::setStartTime(const std::string &startT setParameter(std::string("StartTime"), startTime); } +std::string DescribeDBClusterPerformanceRequest::getType() const { + return type_; +} + +void DescribeDBClusterPerformanceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + std::string DescribeDBClusterPerformanceRequest::getAccessKeyId() const { return accessKeyId_; } @@ -115,3 +124,12 @@ void DescribeDBClusterPerformanceRequest::setMetric(const std::string &metric) { setParameter(std::string("Metric"), metric); } +std::string DescribeDBClusterPerformanceRequest::getInterval() const { + return interval_; +} + +void DescribeDBClusterPerformanceRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); +} + diff --git a/polardb/src/model/DescribeDBClusterSSLRequest.cc b/polardb/src/model/DescribeDBClusterSSLRequest.cc index 762980f89..e05fcd169 100644 --- a/polardb/src/model/DescribeDBClusterSSLRequest.cc +++ b/polardb/src/model/DescribeDBClusterSSLRequest.cc @@ -34,6 +34,15 @@ void DescribeDBClusterSSLRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeDBClusterSSLRequest::getEndpointId() const { + return endpointId_; +} + +void DescribeDBClusterSSLRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + std::string DescribeDBClusterSSLRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/polardb/src/model/DescribeDBClusterSSLResult.cc b/polardb/src/model/DescribeDBClusterSSLResult.cc index dc18efef2..97d1eb8a3 100644 --- a/polardb/src/model/DescribeDBClusterSSLResult.cc +++ b/polardb/src/model/DescribeDBClusterSSLResult.cc @@ -51,13 +51,38 @@ void DescribeDBClusterSSLResult::parse(const std::string &payload) itemsObject.sSLConnectionString = valueItemsItem["SSLConnectionString"].asString(); if(!valueItemsItem["DBEndpointId"].isNull()) itemsObject.dBEndpointId = valueItemsItem["DBEndpointId"].asString(); + if(!valueItemsItem["CAType"].isNull()) + itemsObject.cAType = valueItemsItem["CAType"].asString(); + if(!valueItemsItem["ServerCert"].isNull()) + itemsObject.serverCert = valueItemsItem["ServerCert"].asString(); + if(!valueItemsItem["ServerKey"].isNull()) + itemsObject.serverKey = valueItemsItem["ServerKey"].asString(); + if(!valueItemsItem["ClientCACert"].isNull()) + itemsObject.clientCACert = valueItemsItem["ClientCACert"].asString(); + if(!valueItemsItem["ClientCrl"].isNull()) + itemsObject.clientCrl = valueItemsItem["ClientCrl"].asString(); + if(!valueItemsItem["ACL"].isNull()) + itemsObject.aCL = valueItemsItem["ACL"].asString(); + if(!valueItemsItem["SSLAutoRotate"].isNull()) + itemsObject.sSLAutoRotate = valueItemsItem["SSLAutoRotate"].asString(); + auto allAllowedACLs = value["AllowedACLs"]["allowedACLs"]; + for (auto value : allAllowedACLs) + itemsObject.allowedACLs.push_back(value.asString()); items_.push_back(itemsObject); } + auto allSupportAdvancedSSLFeatureEndpointTypes = value["SupportAdvancedSSLFeatureEndpointTypes"]["supportAdvancedSSLFeatureEndpointType"]; + for (const auto &item : allSupportAdvancedSSLFeatureEndpointTypes) + supportAdvancedSSLFeatureEndpointTypes_.push_back(item.asString()); if(!value["SSLAutoRotate"].isNull()) sSLAutoRotate_ = value["SSLAutoRotate"].asString(); } +std::vector DescribeDBClusterSSLResult::getSupportAdvancedSSLFeatureEndpointTypes()const +{ + return supportAdvancedSSLFeatureEndpointTypes_; +} + std::string DescribeDBClusterSSLResult::getSSLAutoRotate()const { return sSLAutoRotate_; diff --git a/polardb/src/model/DescribeDBClusterServerlessConfResult.cc b/polardb/src/model/DescribeDBClusterServerlessConfResult.cc index 45c4378fe..fcb8a51d6 100644 --- a/polardb/src/model/DescribeDBClusterServerlessConfResult.cc +++ b/polardb/src/model/DescribeDBClusterServerlessConfResult.cc @@ -61,61 +61,96 @@ void DescribeDBClusterServerlessConfResult::parse(const std::string &payload) switchs_ = value["Switchs"].asString(); if(!value["DBMaxscaleId"].isNull()) dBMaxscaleId_ = value["DBMaxscaleId"].asString(); + if(!value["ServerlessRuleMode"].isNull()) + serverlessRuleMode_ = value["ServerlessRuleMode"].asString(); + if(!value["ServerlessRuleCpuEnlargeThreshold"].isNull()) + serverlessRuleCpuEnlargeThreshold_ = value["ServerlessRuleCpuEnlargeThreshold"].asString(); + if(!value["ServerlessRuleCpuShrinkThreshold"].isNull()) + serverlessRuleCpuShrinkThreshold_ = value["ServerlessRuleCpuShrinkThreshold"].asString(); + if(!value["TraditionalScaleMaxThreshold"].isNull()) + traditionalScaleMaxThreshold_ = value["TraditionalScaleMaxThreshold"].asString(); + if(!value["AgileScaleMax"].isNull()) + agileScaleMax_ = value["AgileScaleMax"].asString(); } -std::string DescribeDBClusterServerlessConfResult::getScaleRoNumMin()const -{ - return scaleRoNumMin_; -} - std::string DescribeDBClusterServerlessConfResult::getDBMaxscaleId()const { return dBMaxscaleId_; } -std::string DescribeDBClusterServerlessConfResult::getAllowShutDown()const -{ - return allowShutDown_; -} - std::string DescribeDBClusterServerlessConfResult::getScaleApRoNumMin()const { return scaleApRoNumMin_; } -std::string DescribeDBClusterServerlessConfResult::getScaleApRoNumMax()const -{ - return scaleApRoNumMax_; -} - std::string DescribeDBClusterServerlessConfResult::getScaleRoNumMax()const { return scaleRoNumMax_; } +std::string DescribeDBClusterServerlessConfResult::getTraditionalScaleMaxThreshold()const +{ + return traditionalScaleMaxThreshold_; +} + std::string DescribeDBClusterServerlessConfResult::getDBClusterId()const { return dBClusterId_; } -std::string DescribeDBClusterServerlessConfResult::getScaleMin()const -{ - return scaleMin_; -} - std::string DescribeDBClusterServerlessConfResult::getScaleMax()const { return scaleMax_; } -std::string DescribeDBClusterServerlessConfResult::getSecondsUntilAutoPause()const -{ - return secondsUntilAutoPause_; -} - std::string DescribeDBClusterServerlessConfResult::getSwitchs()const { return switchs_; } +std::string DescribeDBClusterServerlessConfResult::getAgileScaleMax()const +{ + return agileScaleMax_; +} + +std::string DescribeDBClusterServerlessConfResult::getServerlessRuleCpuShrinkThreshold()const +{ + return serverlessRuleCpuShrinkThreshold_; +} + +std::string DescribeDBClusterServerlessConfResult::getScaleRoNumMin()const +{ + return scaleRoNumMin_; +} + +std::string DescribeDBClusterServerlessConfResult::getServerlessRuleCpuEnlargeThreshold()const +{ + return serverlessRuleCpuEnlargeThreshold_; +} + +std::string DescribeDBClusterServerlessConfResult::getAllowShutDown()const +{ + return allowShutDown_; +} + +std::string DescribeDBClusterServerlessConfResult::getScaleApRoNumMax()const +{ + return scaleApRoNumMax_; +} + +std::string DescribeDBClusterServerlessConfResult::getScaleMin()const +{ + return scaleMin_; +} + +std::string DescribeDBClusterServerlessConfResult::getServerlessRuleMode()const +{ + return serverlessRuleMode_; +} + +std::string DescribeDBClusterServerlessConfResult::getSecondsUntilAutoPause()const +{ + return secondsUntilAutoPause_; +} + diff --git a/polardb/src/model/DescribeDBClusterTDEResult.cc b/polardb/src/model/DescribeDBClusterTDEResult.cc index 6a4c688ea..a25873825 100644 --- a/polardb/src/model/DescribeDBClusterTDEResult.cc +++ b/polardb/src/model/DescribeDBClusterTDEResult.cc @@ -39,16 +39,22 @@ void DescribeDBClusterTDEResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TDEStatus"].isNull()) - tDEStatus_ = value["TDEStatus"].asString(); + if(!value["AutomaticRotation"].isNull()) + automaticRotation_ = value["AutomaticRotation"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); - if(!value["EncryptionKey"].isNull()) - encryptionKey_ = value["EncryptionKey"].asString(); if(!value["EncryptNewTables"].isNull()) encryptNewTables_ = value["EncryptNewTables"].asString(); + if(!value["EncryptionKey"].isNull()) + encryptionKey_ = value["EncryptionKey"].asString(); + if(!value["RotationInterval"].isNull()) + rotationInterval_ = value["RotationInterval"].asString(); if(!value["TDERegion"].isNull()) tDERegion_ = value["TDERegion"].asString(); + if(!value["TDEStatus"].isNull()) + tDEStatus_ = value["TDEStatus"].asString(); + if(!value["EncryptionKeyStatus"].isNull()) + encryptionKeyStatus_ = value["EncryptionKeyStatus"].asString(); } @@ -57,6 +63,16 @@ std::string DescribeDBClusterTDEResult::getTDEStatus()const return tDEStatus_; } +std::string DescribeDBClusterTDEResult::getRotationInterval()const +{ + return rotationInterval_; +} + +std::string DescribeDBClusterTDEResult::getEncryptionKeyStatus()const +{ + return encryptionKeyStatus_; +} + std::string DescribeDBClusterTDEResult::getEncryptNewTables()const { return encryptNewTables_; @@ -77,3 +93,8 @@ std::string DescribeDBClusterTDEResult::getEncryptionKey()const return encryptionKey_; } +std::string DescribeDBClusterTDEResult::getAutomaticRotation()const +{ + return automaticRotation_; +} + diff --git a/polardb/src/model/DescribeDBClusterVersionResult.cc b/polardb/src/model/DescribeDBClusterVersionResult.cc index 923e98518..2f69cb5fd 100644 --- a/polardb/src/model/DescribeDBClusterVersionResult.cc +++ b/polardb/src/model/DescribeDBClusterVersionResult.cc @@ -53,6 +53,20 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload) dBRevisionVersionListObject.releaseNote = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].asString(); dBRevisionVersionList_.push_back(dBRevisionVersionListObject); } + auto allProxyRevisionVersionListNode = value["ProxyRevisionVersionList"]["ProxyRevisionVersionListItem"]; + for (auto valueProxyRevisionVersionListProxyRevisionVersionListItem : allProxyRevisionVersionListNode) + { + ProxyRevisionVersionListItem proxyRevisionVersionListObject; + if(!valueProxyRevisionVersionListProxyRevisionVersionListItem["ReleaseType"].isNull()) + proxyRevisionVersionListObject.releaseType = valueProxyRevisionVersionListProxyRevisionVersionListItem["ReleaseType"].asString(); + if(!valueProxyRevisionVersionListProxyRevisionVersionListItem["RevisionVersionCode"].isNull()) + proxyRevisionVersionListObject.revisionVersionCode = valueProxyRevisionVersionListProxyRevisionVersionListItem["RevisionVersionCode"].asString(); + if(!valueProxyRevisionVersionListProxyRevisionVersionListItem["RevisionVersionName"].isNull()) + proxyRevisionVersionListObject.revisionVersionName = valueProxyRevisionVersionListProxyRevisionVersionListItem["RevisionVersionName"].asString(); + if(!valueProxyRevisionVersionListProxyRevisionVersionListItem["ReleaseNote"].isNull()) + proxyRevisionVersionListObject.releaseNote = valueProxyRevisionVersionListProxyRevisionVersionListItem["ReleaseNote"].asString(); + proxyRevisionVersionList_.push_back(proxyRevisionVersionListObject); + } if(!value["IsLatestVersion"].isNull()) isLatestVersion_ = value["IsLatestVersion"].asString(); if(!value["IsProxyLatestVersion"].isNull()) @@ -77,6 +91,8 @@ void DescribeDBClusterVersionResult::parse(const std::string &payload) dBLatestVersion_ = value["DBLatestVersion"].asString(); if(!value["ProxyLatestVersionAfterDBEngineUpgraded"].isNull()) proxyLatestVersionAfterDBEngineUpgraded_ = value["ProxyLatestVersionAfterDBEngineUpgraded"].asString(); + if(!value["DBInnerRevisionVersion"].isNull()) + dBInnerRevisionVersion_ = value["DBInnerRevisionVersion"].asString(); } @@ -85,6 +101,11 @@ std::string DescribeDBClusterVersionResult::getDBRevisionVersion()const return dBRevisionVersion_; } +std::vector DescribeDBClusterVersionResult::getProxyRevisionVersionList()const +{ + return proxyRevisionVersionList_; +} + std::string DescribeDBClusterVersionResult::getProxyLatestVersionAfterDBEngineUpgraded()const { return proxyLatestVersionAfterDBEngineUpgraded_; @@ -145,3 +166,8 @@ std::vector DescribeD return dBRevisionVersionList_; } +std::string DescribeDBClusterVersionResult::getDBInnerRevisionVersion()const +{ + return dBInnerRevisionVersion_; +} + diff --git a/polardb/src/model/DescribeDBClustersResult.cc b/polardb/src/model/DescribeDBClustersResult.cc index 122bfb015..bc3223c59 100644 --- a/polardb/src/model/DescribeDBClustersResult.cc +++ b/polardb/src/model/DescribeDBClustersResult.cc @@ -99,6 +99,22 @@ void DescribeDBClustersResult::parse(const std::string &payload) itemsObject.category = valueItemsDBCluster["Category"].asString(); if(!valueItemsDBCluster["AiType"].isNull()) itemsObject.aiType = valueItemsDBCluster["AiType"].asString(); + if(!valueItemsDBCluster["CpuCores"].isNull()) + itemsObject.cpuCores = valueItemsDBCluster["CpuCores"].asString(); + if(!valueItemsDBCluster["MemorySize"].isNull()) + itemsObject.memorySize = valueItemsDBCluster["MemorySize"].asString(); + if(!valueItemsDBCluster["RemoteMemorySize"].isNull()) + itemsObject.remoteMemorySize = valueItemsDBCluster["RemoteMemorySize"].asString(); + if(!valueItemsDBCluster["SubCategory"].isNull()) + itemsObject.subCategory = valueItemsDBCluster["SubCategory"].asString(); + if(!valueItemsDBCluster["DeployUnit"].isNull()) + itemsObject.deployUnit = valueItemsDBCluster["DeployUnit"].asString(); + if(!valueItemsDBCluster["StorageType"].isNull()) + itemsObject.storageType = valueItemsDBCluster["StorageType"].asString(); + if(!valueItemsDBCluster["HotStandbyCluster"].isNull()) + itemsObject.hotStandbyCluster = valueItemsDBCluster["HotStandbyCluster"].asString(); + if(!valueItemsDBCluster["EngineMigrationStatus"].isNull()) + itemsObject.engineMigrationStatus = valueItemsDBCluster["EngineMigrationStatus"].asString(); auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; for (auto valueItemsDBClusterTagsTag : allTagsNode) { diff --git a/polardb/src/model/DescribeDBNodePerformanceRequest.cc b/polardb/src/model/DescribeDBNodePerformanceRequest.cc index e7e3d5d29..887297072 100644 --- a/polardb/src/model/DescribeDBNodePerformanceRequest.cc +++ b/polardb/src/model/DescribeDBNodePerformanceRequest.cc @@ -52,6 +52,15 @@ void DescribeDBNodePerformanceRequest::setStartTime(const std::string &startTime setParameter(std::string("StartTime"), startTime); } +std::string DescribeDBNodePerformanceRequest::getType() const { + return type_; +} + +void DescribeDBNodePerformanceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + std::string DescribeDBNodePerformanceRequest::getAccessKeyId() const { return accessKeyId_; } @@ -124,3 +133,12 @@ void DescribeDBNodePerformanceRequest::setMetric(const std::string &metric) { setParameter(std::string("Metric"), metric); } +std::string DescribeDBNodePerformanceRequest::getInterval() const { + return interval_; +} + +void DescribeDBNodePerformanceRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); +} + diff --git a/polardb/src/model/DescribeDBProxyPerformanceRequest.cc b/polardb/src/model/DescribeDBProxyPerformanceRequest.cc index 4ab3ef0e0..68a7110f6 100644 --- a/polardb/src/model/DescribeDBProxyPerformanceRequest.cc +++ b/polardb/src/model/DescribeDBProxyPerformanceRequest.cc @@ -34,6 +34,24 @@ void DescribeDBProxyPerformanceRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeDBProxyPerformanceRequest::getDBNodeId() const { + return dBNodeId_; +} + +void DescribeDBProxyPerformanceRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string DescribeDBProxyPerformanceRequest::getDBEndpointId() const { + return dBEndpointId_; +} + +void DescribeDBProxyPerformanceRequest::setDBEndpointId(const std::string &dBEndpointId) { + dBEndpointId_ = dBEndpointId; + setParameter(std::string("DBEndpointId"), dBEndpointId); +} + std::string DescribeDBProxyPerformanceRequest::getStartTime() const { return startTime_; } @@ -43,6 +61,15 @@ void DescribeDBProxyPerformanceRequest::setStartTime(const std::string &startTim setParameter(std::string("StartTime"), startTime); } +std::string DescribeDBProxyPerformanceRequest::getType() const { + return type_; +} + +void DescribeDBProxyPerformanceRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + std::string DescribeDBProxyPerformanceRequest::getKey() const { return key_; } @@ -106,3 +133,12 @@ void DescribeDBProxyPerformanceRequest::setMetric(const std::string &metric) { setParameter(std::string("Metric"), metric); } +std::string DescribeDBProxyPerformanceRequest::getInterval() const { + return interval_; +} + +void DescribeDBProxyPerformanceRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); +} + diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc b/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc index 3a92bcfba..9084f7195 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc +++ b/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc @@ -79,8 +79,14 @@ void DescribeGlobalDatabaseNetworkResult::parse(const std::string &payload) dBClustersObject.storageUsed = valueDBClustersDBCluster["StorageUsed"].asString(); if(!valueDBClustersDBCluster["DBClusterDescription"].isNull()) dBClustersObject.dBClusterDescription = valueDBClustersDBCluster["DBClusterDescription"].asString(); + if(!valueDBClustersDBCluster["Category"].isNull()) + dBClustersObject.category = valueDBClustersDBCluster["Category"].asString(); if(!valueDBClustersDBCluster["Role"].isNull()) dBClustersObject.role = valueDBClustersDBCluster["Role"].asString(); + if(!valueDBClustersDBCluster["ServerlessType"].isNull()) + dBClustersObject.serverlessType = valueDBClustersDBCluster["ServerlessType"].asString(); + if(!valueDBClustersDBCluster["MemberStatus"].isNull()) + dBClustersObject.memberStatus = valueDBClustersDBCluster["MemberStatus"].asString(); auto allDBNodesNode = valueDBClustersDBCluster["DBNodes"]["DBNode"]; for (auto valueDBClustersDBClusterDBNodesDBNode : allDBNodesNode) { @@ -119,6 +125,8 @@ void DescribeGlobalDatabaseNetworkResult::parse(const std::string &payload) dBType_ = value["DBType"].asString(); if(!value["GDNDescription"].isNull()) gDNDescription_ = value["GDNDescription"].asString(); + if(!value["GlobalDomainName"].isNull()) + globalDomainName_ = value["GlobalDomainName"].asString(); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["ResourceGroupId"].isNull()) @@ -176,3 +184,8 @@ std::vector DescribeGlobalDataba return dBClusters_; } +std::string DescribeGlobalDatabaseNetworkResult::getGlobalDomainName()const +{ + return globalDomainName_; +} + diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc b/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc index fcd7e1cfe..997bb3e1c 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc +++ b/polardb/src/model/DescribeGlobalDatabaseNetworksRequest.cc @@ -142,3 +142,12 @@ void DescribeGlobalDatabaseNetworksRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeGlobalDatabaseNetworksRequest::getDBType() const { + return dBType_; +} + +void DescribeGlobalDatabaseNetworksRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc b/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc index 24381b4bc..1bbf764d6 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc +++ b/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc @@ -55,6 +55,8 @@ void DescribeGlobalDatabaseNetworksResult::parse(const std::string &payload) itemsObject.dBType = valueItemsGlobalDatabaseNetwork["DBType"].asString(); if(!valueItemsGlobalDatabaseNetwork["GDNDescription"].isNull()) itemsObject.gDNDescription = valueItemsGlobalDatabaseNetwork["GDNDescription"].asString(); + if(!valueItemsGlobalDatabaseNetwork["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsGlobalDatabaseNetwork["ZoneId"].asString(); auto allDBClustersNode = valueItemsGlobalDatabaseNetwork["DBClusters"]["DBCluster"]; for (auto valueItemsGlobalDatabaseNetworkDBClustersDBCluster : allDBClustersNode) { @@ -67,6 +69,20 @@ void DescribeGlobalDatabaseNetworksResult::parse(const std::string &payload) dBClustersObject.regionId = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["RegionId"].asString(); itemsObject.dBClusters.push_back(dBClustersObject); } + auto allOutCloudDBClustersNode = valueItemsGlobalDatabaseNetwork["OutCloudDBClusters"]["OutCloudDBCluster"]; + for (auto valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster : allOutCloudDBClustersNode) + { + GlobalDatabaseNetwork::OutCloudDBCluster outCloudDBClustersObject; + if(!valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["OutCloudType"].isNull()) + outCloudDBClustersObject.outCloudType = valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["OutCloudType"].asString(); + if(!valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["DBClusterId"].isNull()) + outCloudDBClustersObject.dBClusterId = valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["DBClusterId"].asString(); + if(!valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["Role"].isNull()) + outCloudDBClustersObject.role = valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["Role"].asString(); + if(!valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["RegionId"].isNull()) + outCloudDBClustersObject.regionId = valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["RegionId"].asString(); + itemsObject.outCloudDBClusters.push_back(outCloudDBClustersObject); + } items_.push_back(itemsObject); } if(!value["TotalRecordCount"].isNull()) diff --git a/polardb/src/model/DescribeLicenseOrderDetailsRequest.cc b/polardb/src/model/DescribeLicenseOrderDetailsRequest.cc new file mode 100644 index 000000000..4a6ed2129 --- /dev/null +++ b/polardb/src/model/DescribeLicenseOrderDetailsRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::DescribeLicenseOrderDetailsRequest; + +DescribeLicenseOrderDetailsRequest::DescribeLicenseOrderDetailsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeLicenseOrderDetails") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLicenseOrderDetailsRequest::~DescribeLicenseOrderDetailsRequest() {} + +long DescribeLicenseOrderDetailsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLicenseOrderDetailsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeLicenseOrderDetailsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeLicenseOrderDetailsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeLicenseOrderDetailsRequest::getAliyunOrderId() const { + return aliyunOrderId_; +} + +void DescribeLicenseOrderDetailsRequest::setAliyunOrderId(const std::string &aliyunOrderId) { + aliyunOrderId_ = aliyunOrderId; + setParameter(std::string("AliyunOrderId"), aliyunOrderId); +} + +std::string DescribeLicenseOrderDetailsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLicenseOrderDetailsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLicenseOrderDetailsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLicenseOrderDetailsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLicenseOrderDetailsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLicenseOrderDetailsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeLicenseOrderDetailsResult.cc b/polardb/src/model/DescribeLicenseOrderDetailsResult.cc new file mode 100644 index 000000000..e8cf54dd9 --- /dev/null +++ b/polardb/src/model/DescribeLicenseOrderDetailsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeLicenseOrderDetailsResult::DescribeLicenseOrderDetailsResult() : + ServiceResult() +{} + +DescribeLicenseOrderDetailsResult::DescribeLicenseOrderDetailsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLicenseOrderDetailsResult::~DescribeLicenseOrderDetailsResult() +{} + +void DescribeLicenseOrderDetailsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ActivatedCodeCount"].isNull()) + activatedCodeCount_ = std::stoi(value["ActivatedCodeCount"].asString()); + if(!value["ActivationCodeQuota"].isNull()) + activationCodeQuota_ = std::stoi(value["ActivationCodeQuota"].asString()); + if(!value["AliyunOrderId"].isNull()) + aliyunOrderId_ = value["AliyunOrderId"].asString(); + if(!value["AllowEmptySystemIdentifier"].isNull()) + allowEmptySystemIdentifier_ = value["AllowEmptySystemIdentifier"].asString() == "true"; + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["GmtCreated"].isNull()) + gmtCreated_ = value["GmtCreated"].asString(); + if(!value["GmtModified"].isNull()) + gmtModified_ = value["GmtModified"].asString(); + if(!value["IsVirtualOrder"].isNull()) + isVirtualOrder_ = value["IsVirtualOrder"].asString() == "true"; + if(!value["IsVirtualOrderFrozen"].isNull()) + isVirtualOrderFrozen_ = value["IsVirtualOrderFrozen"].asString() == "true"; + if(!value["PackageType"].isNull()) + packageType_ = value["PackageType"].asString(); + if(!value["PackageValidity"].isNull()) + packageValidity_ = value["PackageValidity"].asString(); + if(!value["PurchaseChannel"].isNull()) + purchaseChannel_ = value["PurchaseChannel"].asString(); + if(!value["VirtualOrderId"].isNull()) + virtualOrderId_ = value["VirtualOrderId"].asString(); + +} + +std::string DescribeLicenseOrderDetailsResult::getVirtualOrderId()const +{ + return virtualOrderId_; +} + +int DescribeLicenseOrderDetailsResult::getActivatedCodeCount()const +{ + return activatedCodeCount_; +} + +std::string DescribeLicenseOrderDetailsResult::getPackageValidity()const +{ + return packageValidity_; +} + +bool DescribeLicenseOrderDetailsResult::getIsVirtualOrder()const +{ + return isVirtualOrder_; +} + +std::string DescribeLicenseOrderDetailsResult::getGmtModified()const +{ + return gmtModified_; +} + +std::string DescribeLicenseOrderDetailsResult::getGmtCreated()const +{ + return gmtCreated_; +} + +bool DescribeLicenseOrderDetailsResult::getIsVirtualOrderFrozen()const +{ + return isVirtualOrderFrozen_; +} + +std::string DescribeLicenseOrderDetailsResult::getPurchaseChannel()const +{ + return purchaseChannel_; +} + +int DescribeLicenseOrderDetailsResult::getActivationCodeQuota()const +{ + return activationCodeQuota_; +} + +std::string DescribeLicenseOrderDetailsResult::getAliyunOrderId()const +{ + return aliyunOrderId_; +} + +std::string DescribeLicenseOrderDetailsResult::getPackageType()const +{ + return packageType_; +} + +bool DescribeLicenseOrderDetailsResult::getAllowEmptySystemIdentifier()const +{ + return allowEmptySystemIdentifier_; +} + +std::string DescribeLicenseOrderDetailsResult::getEngine()const +{ + return engine_; +} + diff --git a/polardb/src/model/DescribeLicenseOrdersRequest.cc b/polardb/src/model/DescribeLicenseOrdersRequest.cc new file mode 100644 index 000000000..8341fc29b --- /dev/null +++ b/polardb/src/model/DescribeLicenseOrdersRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeLicenseOrdersRequest; + +DescribeLicenseOrdersRequest::DescribeLicenseOrdersRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeLicenseOrders") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLicenseOrdersRequest::~DescribeLicenseOrdersRequest() {} + +long DescribeLicenseOrdersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLicenseOrdersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool DescribeLicenseOrdersRequest::getVirtualOrder() const { + return virtualOrder_; +} + +void DescribeLicenseOrdersRequest::setVirtualOrder(bool virtualOrder) { + virtualOrder_ = virtualOrder; + setParameter(std::string("VirtualOrder"), virtualOrder ? "true" : "false"); +} + +int DescribeLicenseOrdersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeLicenseOrdersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeLicenseOrdersRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeLicenseOrdersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeLicenseOrdersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeLicenseOrdersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeLicenseOrdersRequest::getAliyunOrderId() const { + return aliyunOrderId_; +} + +void DescribeLicenseOrdersRequest::setAliyunOrderId(const std::string &aliyunOrderId) { + aliyunOrderId_ = aliyunOrderId; + setParameter(std::string("AliyunOrderId"), aliyunOrderId); +} + +std::string DescribeLicenseOrdersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLicenseOrdersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLicenseOrdersRequest::getPurchaseChannel() const { + return purchaseChannel_; +} + +void DescribeLicenseOrdersRequest::setPurchaseChannel(const std::string &purchaseChannel) { + purchaseChannel_ = purchaseChannel; + setParameter(std::string("PurchaseChannel"), purchaseChannel); +} + +std::string DescribeLicenseOrdersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLicenseOrdersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLicenseOrdersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLicenseOrdersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeLicenseOrdersRequest::getPackageType() const { + return packageType_; +} + +void DescribeLicenseOrdersRequest::setPackageType(const std::string &packageType) { + packageType_ = packageType; + setParameter(std::string("PackageType"), packageType); +} + diff --git a/polardb/src/model/DescribeLicenseOrdersResult.cc b/polardb/src/model/DescribeLicenseOrdersResult.cc new file mode 100644 index 000000000..8e128850e --- /dev/null +++ b/polardb/src/model/DescribeLicenseOrdersResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeLicenseOrdersResult::DescribeLicenseOrdersResult() : + ServiceResult() +{} + +DescribeLicenseOrdersResult::DescribeLicenseOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLicenseOrdersResult::~DescribeLicenseOrdersResult() +{} + +void DescribeLicenseOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["LicenseOrder"]; + for (auto valueItemsLicenseOrder : allItemsNode) + { + LicenseOrder itemsObject; + if(!valueItemsLicenseOrder["ActivatedCodeCount"].isNull()) + itemsObject.activatedCodeCount = std::stoi(valueItemsLicenseOrder["ActivatedCodeCount"].asString()); + if(!valueItemsLicenseOrder["ActivationCodeQuota"].isNull()) + itemsObject.activationCodeQuota = std::stoi(valueItemsLicenseOrder["ActivationCodeQuota"].asString()); + if(!valueItemsLicenseOrder["AliyunOrderId"].isNull()) + itemsObject.aliyunOrderId = valueItemsLicenseOrder["AliyunOrderId"].asString(); + if(!valueItemsLicenseOrder["AllowEmptySystemIdentifier"].isNull()) + itemsObject.allowEmptySystemIdentifier = valueItemsLicenseOrder["AllowEmptySystemIdentifier"].asString() == "true"; + if(!valueItemsLicenseOrder["Engine"].isNull()) + itemsObject.engine = valueItemsLicenseOrder["Engine"].asString(); + if(!valueItemsLicenseOrder["GmtCreated"].isNull()) + itemsObject.gmtCreated = valueItemsLicenseOrder["GmtCreated"].asString(); + if(!valueItemsLicenseOrder["GmtModified"].isNull()) + itemsObject.gmtModified = valueItemsLicenseOrder["GmtModified"].asString(); + if(!valueItemsLicenseOrder["IsVirtualOrder"].isNull()) + itemsObject.isVirtualOrder = valueItemsLicenseOrder["IsVirtualOrder"].asString() == "true"; + if(!valueItemsLicenseOrder["IsVirtualOrderFrozen"].isNull()) + itemsObject.isVirtualOrderFrozen = valueItemsLicenseOrder["IsVirtualOrderFrozen"].asString() == "true"; + if(!valueItemsLicenseOrder["PackageType"].isNull()) + itemsObject.packageType = valueItemsLicenseOrder["PackageType"].asString(); + if(!valueItemsLicenseOrder["PackageValidity"].isNull()) + itemsObject.packageValidity = valueItemsLicenseOrder["PackageValidity"].asString(); + if(!valueItemsLicenseOrder["PurchaseChannel"].isNull()) + itemsObject.purchaseChannel = valueItemsLicenseOrder["PurchaseChannel"].asString(); + if(!valueItemsLicenseOrder["VirtualAliyunOrderId"].isNull()) + itemsObject.virtualAliyunOrderId = valueItemsLicenseOrder["VirtualAliyunOrderId"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + +} + +int DescribeLicenseOrdersResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeLicenseOrdersResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeLicenseOrdersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeLicenseOrdersResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeRegionsResult.cc b/polardb/src/model/DescribeRegionsResult.cc index 6931afaf9..a2ef5367c 100644 --- a/polardb/src/model/DescribeRegionsResult.cc +++ b/polardb/src/model/DescribeRegionsResult.cc @@ -49,10 +49,10 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegionZonesZone : allZonesNode) { Region::Zone zonesObject; - if(!valueRegionsRegionZonesZone["ZoneId"].isNull()) - zonesObject.zoneId = valueRegionsRegionZonesZone["ZoneId"].asString(); if(!valueRegionsRegionZonesZone["VpcEnabled"].isNull()) zonesObject.vpcEnabled = valueRegionsRegionZonesZone["VpcEnabled"].asString() == "true"; + if(!valueRegionsRegionZonesZone["ZoneId"].isNull()) + zonesObject.zoneId = valueRegionsRegionZonesZone["ZoneId"].asString(); regionsObject.zones.push_back(zonesObject); } regions_.push_back(regionsObject); diff --git a/polardb/src/model/DescribeScheduleTasksResult.cc b/polardb/src/model/DescribeScheduleTasksResult.cc index a62687fbe..deb05ab9e 100644 --- a/polardb/src/model/DescribeScheduleTasksResult.cc +++ b/polardb/src/model/DescribeScheduleTasksResult.cc @@ -40,46 +40,50 @@ void DescribeScheduleTasksResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalRecordCount"].isNull()) - data_.totalRecordCount = std::stoi(dataNode["TotalRecordCount"].asString()); if(!dataNode["PageNumber"].isNull()) data_.pageNumber = std::stoi(dataNode["PageNumber"].asString()); if(!dataNode["PageSize"].isNull()) data_.pageSize = std::stoi(dataNode["PageSize"].asString()); + if(!dataNode["TotalRecordCount"].isNull()) + data_.totalRecordCount = std::stoi(dataNode["TotalRecordCount"].asString()); auto allTimerInfosNode = dataNode["TimerInfos"]["timerInfosItem"]; for (auto dataNodeTimerInfostimerInfosItem : allTimerInfosNode) { Data::TimerInfosItem timerInfosItemObject; - if(!dataNodeTimerInfostimerInfosItem["Status"].isNull()) - timerInfosItemObject.status = dataNodeTimerInfostimerInfosItem["Status"].asString(); if(!dataNodeTimerInfostimerInfosItem["Action"].isNull()) timerInfosItemObject.action = dataNodeTimerInfostimerInfosItem["Action"].asString(); - if(!dataNodeTimerInfostimerInfosItem["PlannedEndTime"].isNull()) - timerInfosItemObject.plannedEndTime = dataNodeTimerInfostimerInfosItem["PlannedEndTime"].asString(); - if(!dataNodeTimerInfostimerInfosItem["PlannedTime"].isNull()) - timerInfosItemObject.plannedTime = dataNodeTimerInfostimerInfosItem["PlannedTime"].asString(); + if(!dataNodeTimerInfostimerInfosItem["CrontabJobId"].isNull()) + timerInfosItemObject.crontabJobId = dataNodeTimerInfostimerInfosItem["CrontabJobId"].asString(); if(!dataNodeTimerInfostimerInfosItem["DBClusterId"].isNull()) timerInfosItemObject.dBClusterId = dataNodeTimerInfostimerInfosItem["DBClusterId"].asString(); - if(!dataNodeTimerInfostimerInfosItem["Region"].isNull()) - timerInfosItemObject.region = dataNodeTimerInfostimerInfosItem["Region"].asString(); - if(!dataNodeTimerInfostimerInfosItem["PlannedStartTime"].isNull()) - timerInfosItemObject.plannedStartTime = dataNodeTimerInfostimerInfosItem["PlannedStartTime"].asString(); - if(!dataNodeTimerInfostimerInfosItem["TaskId"].isNull()) - timerInfosItemObject.taskId = dataNodeTimerInfostimerInfosItem["TaskId"].asString(); - if(!dataNodeTimerInfostimerInfosItem["OrderId"].isNull()) - timerInfosItemObject.orderId = dataNodeTimerInfostimerInfosItem["OrderId"].asString(); - if(!dataNodeTimerInfostimerInfosItem["DbClusterStatus"].isNull()) - timerInfosItemObject.dbClusterStatus = dataNodeTimerInfostimerInfosItem["DbClusterStatus"].asString(); if(!dataNodeTimerInfostimerInfosItem["DbClusterDescription"].isNull()) timerInfosItemObject.dbClusterDescription = dataNodeTimerInfostimerInfosItem["DbClusterDescription"].asString(); + if(!dataNodeTimerInfostimerInfosItem["DbClusterStatus"].isNull()) + timerInfosItemObject.dbClusterStatus = dataNodeTimerInfostimerInfosItem["DbClusterStatus"].asString(); + if(!dataNodeTimerInfostimerInfosItem["OrderId"].isNull()) + timerInfosItemObject.orderId = dataNodeTimerInfostimerInfosItem["OrderId"].asString(); + if(!dataNodeTimerInfostimerInfosItem["PlannedEndTime"].isNull()) + timerInfosItemObject.plannedEndTime = dataNodeTimerInfostimerInfosItem["PlannedEndTime"].asString(); + if(!dataNodeTimerInfostimerInfosItem["PlannedFlashingOffTime"].isNull()) + timerInfosItemObject.plannedFlashingOffTime = dataNodeTimerInfostimerInfosItem["PlannedFlashingOffTime"].asString(); + if(!dataNodeTimerInfostimerInfosItem["PlannedStartTime"].isNull()) + timerInfosItemObject.plannedStartTime = dataNodeTimerInfostimerInfosItem["PlannedStartTime"].asString(); + if(!dataNodeTimerInfostimerInfosItem["PlannedTime"].isNull()) + timerInfosItemObject.plannedTime = dataNodeTimerInfostimerInfosItem["PlannedTime"].asString(); + if(!dataNodeTimerInfostimerInfosItem["Region"].isNull()) + timerInfosItemObject.region = dataNodeTimerInfostimerInfosItem["Region"].asString(); + if(!dataNodeTimerInfostimerInfosItem["Status"].isNull()) + timerInfosItemObject.status = dataNodeTimerInfostimerInfosItem["Status"].asString(); if(!dataNodeTimerInfostimerInfosItem["TaskCancel"].isNull()) timerInfosItemObject.taskCancel = dataNodeTimerInfostimerInfosItem["TaskCancel"].asString() == "true"; + if(!dataNodeTimerInfostimerInfosItem["TaskId"].isNull()) + timerInfosItemObject.taskId = dataNodeTimerInfostimerInfosItem["TaskId"].asString(); data_.timerInfos.push_back(timerInfosItemObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; diff --git a/polardb/src/model/DescribeSlowLogRecordsRequest.cc b/polardb/src/model/DescribeSlowLogRecordsRequest.cc index f6f0b2453..53b6a0c3c 100644 --- a/polardb/src/model/DescribeSlowLogRecordsRequest.cc +++ b/polardb/src/model/DescribeSlowLogRecordsRequest.cc @@ -79,6 +79,15 @@ void DescribeSlowLogRecordsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string DescribeSlowLogRecordsRequest::getNodeId() const { + return nodeId_; +} + +void DescribeSlowLogRecordsRequest::setNodeId(const std::string &nodeId) { + nodeId_ = nodeId; + setParameter(std::string("NodeId"), nodeId); +} + std::string DescribeSlowLogRecordsRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/DescribeSlowLogRecordsResult.cc b/polardb/src/model/DescribeSlowLogRecordsResult.cc index 1e7b79bf9..9d3489ab4 100644 --- a/polardb/src/model/DescribeSlowLogRecordsResult.cc +++ b/polardb/src/model/DescribeSlowLogRecordsResult.cc @@ -43,38 +43,40 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload) for (auto valueItemsSQLSlowRecord : allItemsNode) { SQLSlowRecord itemsObject; + if(!valueItemsSQLSlowRecord["DBName"].isNull()) + itemsObject.dBName = valueItemsSQLSlowRecord["DBName"].asString(); + if(!valueItemsSQLSlowRecord["DBNodeId"].isNull()) + itemsObject.dBNodeId = valueItemsSQLSlowRecord["DBNodeId"].asString(); if(!valueItemsSQLSlowRecord["ExecutionStartTime"].isNull()) itemsObject.executionStartTime = valueItemsSQLSlowRecord["ExecutionStartTime"].asString(); if(!valueItemsSQLSlowRecord["HostAddress"].isNull()) itemsObject.hostAddress = valueItemsSQLSlowRecord["HostAddress"].asString(); - if(!valueItemsSQLSlowRecord["QueryTimes"].isNull()) - itemsObject.queryTimes = std::stol(valueItemsSQLSlowRecord["QueryTimes"].asString()); - if(!valueItemsSQLSlowRecord["SQLText"].isNull()) - itemsObject.sQLText = valueItemsSQLSlowRecord["SQLText"].asString(); - if(!valueItemsSQLSlowRecord["ReturnRowCounts"].isNull()) - itemsObject.returnRowCounts = std::stol(valueItemsSQLSlowRecord["ReturnRowCounts"].asString()); - if(!valueItemsSQLSlowRecord["ParseRowCounts"].isNull()) - itemsObject.parseRowCounts = std::stol(valueItemsSQLSlowRecord["ParseRowCounts"].asString()); - if(!valueItemsSQLSlowRecord["DBName"].isNull()) - itemsObject.dBName = valueItemsSQLSlowRecord["DBName"].asString(); if(!valueItemsSQLSlowRecord["LockTimes"].isNull()) itemsObject.lockTimes = std::stol(valueItemsSQLSlowRecord["LockTimes"].asString()); - if(!valueItemsSQLSlowRecord["DBNodeId"].isNull()) - itemsObject.dBNodeId = valueItemsSQLSlowRecord["DBNodeId"].asString(); + if(!valueItemsSQLSlowRecord["ParseRowCounts"].isNull()) + itemsObject.parseRowCounts = std::stol(valueItemsSQLSlowRecord["ParseRowCounts"].asString()); if(!valueItemsSQLSlowRecord["QueryTimeMS"].isNull()) itemsObject.queryTimeMS = std::stol(valueItemsSQLSlowRecord["QueryTimeMS"].asString()); + if(!valueItemsSQLSlowRecord["QueryTimes"].isNull()) + itemsObject.queryTimes = std::stol(valueItemsSQLSlowRecord["QueryTimes"].asString()); + if(!valueItemsSQLSlowRecord["ReturnRowCounts"].isNull()) + itemsObject.returnRowCounts = std::stol(valueItemsSQLSlowRecord["ReturnRowCounts"].asString()); + if(!valueItemsSQLSlowRecord["SQLHash"].isNull()) + itemsObject.sQLHash = valueItemsSQLSlowRecord["SQLHash"].asString(); + if(!valueItemsSQLSlowRecord["SQLText"].isNull()) + itemsObject.sQLText = valueItemsSQLSlowRecord["SQLText"].asString(); items_.push_back(itemsObject); } - if(!value["TotalRecordCount"].isNull()) - totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); - if(!value["PageRecordCount"].isNull()) - pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["Engine"].isNull()) engine_ = value["Engine"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); } diff --git a/polardb/src/model/FailoverDBClusterRequest.cc b/polardb/src/model/FailoverDBClusterRequest.cc index b3f6fe6d3..fc33eb97d 100644 --- a/polardb/src/model/FailoverDBClusterRequest.cc +++ b/polardb/src/model/FailoverDBClusterRequest.cc @@ -88,6 +88,15 @@ void FailoverDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string FailoverDBClusterRequest::getTargetZoneType() const { + return targetZoneType_; +} + +void FailoverDBClusterRequest::setTargetZoneType(const std::string &targetZoneType) { + targetZoneType_ = targetZoneType; + setParameter(std::string("TargetZoneType"), targetZoneType); +} + long FailoverDBClusterRequest::getOwnerId() const { return ownerId_; } @@ -106,3 +115,12 @@ void FailoverDBClusterRequest::setTargetDBNodeId(const std::string &targetDBNode setParameter(std::string("TargetDBNodeId"), targetDBNodeId); } +bool FailoverDBClusterRequest::getIsForce() const { + return isForce_; +} + +void FailoverDBClusterRequest::setIsForce(bool isForce) { + isForce_ = isForce; + setParameter(std::string("IsForce"), isForce ? "true" : "false"); +} + diff --git a/polardb/src/model/ModifyAccountPasswordRequest.cc b/polardb/src/model/ModifyAccountPasswordRequest.cc index 5a0e81dd8..14c51ed6e 100644 --- a/polardb/src/model/ModifyAccountPasswordRequest.cc +++ b/polardb/src/model/ModifyAccountPasswordRequest.cc @@ -34,6 +34,15 @@ void ModifyAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyAccountPasswordRequest::getPasswordType() const { + return passwordType_; +} + +void ModifyAccountPasswordRequest::setPasswordType(const std::string &passwordType) { + passwordType_ = passwordType; + setParameter(std::string("PasswordType"), passwordType); +} + std::string ModifyAccountPasswordRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/polardb/src/model/ModifyActiveOperationTasksRequest.cc b/polardb/src/model/ModifyActiveOperationTasksRequest.cc new file mode 100644 index 000000000..9afc20dbc --- /dev/null +++ b/polardb/src/model/ModifyActiveOperationTasksRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::ModifyActiveOperationTasksRequest; + +ModifyActiveOperationTasksRequest::ModifyActiveOperationTasksRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyActiveOperationTasks") { + setMethod(HttpRequest::Method::Post); +} + +ModifyActiveOperationTasksRequest::~ModifyActiveOperationTasksRequest() {} + +long ModifyActiveOperationTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyActiveOperationTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyActiveOperationTasksRequest::getTaskIds() const { + return taskIds_; +} + +void ModifyActiveOperationTasksRequest::setTaskIds(const std::string &taskIds) { + taskIds_ = taskIds; + setParameter(std::string("TaskIds"), taskIds); +} + +std::string ModifyActiveOperationTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyActiveOperationTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyActiveOperationTasksRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyActiveOperationTasksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ModifyActiveOperationTasksRequest::getSecurityToken() const { + return securityToken_; +} + +void ModifyActiveOperationTasksRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string ModifyActiveOperationTasksRequest::getRegionId() const { + return regionId_; +} + +void ModifyActiveOperationTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyActiveOperationTasksRequest::getSwitchTime() const { + return switchTime_; +} + +void ModifyActiveOperationTasksRequest::setSwitchTime(const std::string &switchTime) { + switchTime_ = switchTime; + setParameter(std::string("SwitchTime"), switchTime); +} + +std::string ModifyActiveOperationTasksRequest::getEngineType() const { + return engineType_; +} + +void ModifyActiveOperationTasksRequest::setEngineType(const std::string &engineType) { + engineType_ = engineType; + setParameter(std::string("EngineType"), engineType); +} + +std::string ModifyActiveOperationTasksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyActiveOperationTasksRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyActiveOperationTasksRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyActiveOperationTasksRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyActiveOperationTasksRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyActiveOperationTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int ModifyActiveOperationTasksRequest::getImmediateStart() const { + return immediateStart_; +} + +void ModifyActiveOperationTasksRequest::setImmediateStart(int immediateStart) { + immediateStart_ = immediateStart; + setParameter(std::string("ImmediateStart"), std::to_string(immediateStart)); +} + diff --git a/polardb/src/model/ModifyActiveOperationTasksResult.cc b/polardb/src/model/ModifyActiveOperationTasksResult.cc new file mode 100644 index 000000000..5d297feff --- /dev/null +++ b/polardb/src/model/ModifyActiveOperationTasksResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyActiveOperationTasksResult::ModifyActiveOperationTasksResult() : + ServiceResult() +{} + +ModifyActiveOperationTasksResult::ModifyActiveOperationTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyActiveOperationTasksResult::~ModifyActiveOperationTasksResult() +{} + +void ModifyActiveOperationTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskIds"].isNull()) + taskIds_ = value["TaskIds"].asString(); + +} + +std::string ModifyActiveOperationTasksResult::getTaskIds()const +{ + return taskIds_; +} + diff --git a/polardb/src/model/ModifyDBClusterAndNodesParametersRequest.cc b/polardb/src/model/ModifyDBClusterAndNodesParametersRequest.cc index 59f63e0f7..2b293cdf2 100644 --- a/polardb/src/model/ModifyDBClusterAndNodesParametersRequest.cc +++ b/polardb/src/model/ModifyDBClusterAndNodesParametersRequest.cc @@ -61,6 +61,15 @@ void ModifyDBClusterAndNodesParametersRequest::setAccessKeyId(const std::string setParameter(std::string("AccessKeyId"), accessKeyId); } +bool ModifyDBClusterAndNodesParametersRequest::getClearBinlog() const { + return clearBinlog_; +} + +void ModifyDBClusterAndNodesParametersRequest::setClearBinlog(bool clearBinlog) { + clearBinlog_ = clearBinlog; + setParameter(std::string("ClearBinlog"), clearBinlog ? "true" : "false"); +} + std::string ModifyDBClusterAndNodesParametersRequest::getParameterGroupId() const { return parameterGroupId_; } @@ -115,6 +124,15 @@ void ModifyDBClusterAndNodesParametersRequest::setPlannedStartTime(const std::st setParameter(std::string("PlannedStartTime"), plannedStartTime); } +std::string ModifyDBClusterAndNodesParametersRequest::getStandbyClusterIdListNeedToSync() const { + return standbyClusterIdListNeedToSync_; +} + +void ModifyDBClusterAndNodesParametersRequest::setStandbyClusterIdListNeedToSync(const std::string &standbyClusterIdListNeedToSync) { + standbyClusterIdListNeedToSync_ = standbyClusterIdListNeedToSync; + setParameter(std::string("StandbyClusterIdListNeedToSync"), standbyClusterIdListNeedToSync); +} + std::string ModifyDBClusterAndNodesParametersRequest::getParameters() const { return parameters_; } diff --git a/polardb/src/model/ModifyDBClusterEndpointRequest.cc b/polardb/src/model/ModifyDBClusterEndpointRequest.cc index d4f9e7616..af6b5d7e9 100644 --- a/polardb/src/model/ModifyDBClusterEndpointRequest.cc +++ b/polardb/src/model/ModifyDBClusterEndpointRequest.cc @@ -52,6 +52,15 @@ void ModifyDBClusterEndpointRequest::setDBEndpointId(const std::string &dBEndpoi setParameter(std::string("DBEndpointId"), dBEndpointId); } +std::string ModifyDBClusterEndpointRequest::getPolarSccWaitTimeout() const { + return polarSccWaitTimeout_; +} + +void ModifyDBClusterEndpointRequest::setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout) { + polarSccWaitTimeout_ = polarSccWaitTimeout; + setParameter(std::string("PolarSccWaitTimeout"), polarSccWaitTimeout); +} + std::string ModifyDBClusterEndpointRequest::getAccessKeyId() const { return accessKeyId_; } @@ -70,6 +79,15 @@ void ModifyDBClusterEndpointRequest::setReadWriteMode(const std::string &readWri setParameter(std::string("ReadWriteMode"), readWriteMode); } +std::string ModifyDBClusterEndpointRequest::getPolarSccTimeoutAction() const { + return polarSccTimeoutAction_; +} + +void ModifyDBClusterEndpointRequest::setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction) { + polarSccTimeoutAction_ = polarSccTimeoutAction; + setParameter(std::string("PolarSccTimeoutAction"), polarSccTimeoutAction); +} + std::string ModifyDBClusterEndpointRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -133,3 +151,12 @@ void ModifyDBClusterEndpointRequest::setNodes(const std::string &nodes) { setParameter(std::string("Nodes"), nodes); } +std::string ModifyDBClusterEndpointRequest::getSccMode() const { + return sccMode_; +} + +void ModifyDBClusterEndpointRequest::setSccMode(const std::string &sccMode) { + sccMode_ = sccMode; + setParameter(std::string("SccMode"), sccMode); +} + diff --git a/polardb/src/model/ModifyDBClusterParametersRequest.cc b/polardb/src/model/ModifyDBClusterParametersRequest.cc index 2246c0187..1b2d03620 100644 --- a/polardb/src/model/ModifyDBClusterParametersRequest.cc +++ b/polardb/src/model/ModifyDBClusterParametersRequest.cc @@ -52,6 +52,15 @@ void ModifyDBClusterParametersRequest::setAccessKeyId(const std::string &accessK setParameter(std::string("AccessKeyId"), accessKeyId); } +bool ModifyDBClusterParametersRequest::getClearBinlog() const { + return clearBinlog_; +} + +void ModifyDBClusterParametersRequest::setClearBinlog(bool clearBinlog) { + clearBinlog_ = clearBinlog; + setParameter(std::string("ClearBinlog"), clearBinlog ? "true" : "false"); +} + std::string ModifyDBClusterParametersRequest::getParameterGroupId() const { return parameterGroupId_; } diff --git a/polardb/src/model/ModifyDBClusterRequest.cc b/polardb/src/model/ModifyDBClusterRequest.cc index e2f7f015b..3ddf666d8 100644 --- a/polardb/src/model/ModifyDBClusterRequest.cc +++ b/polardb/src/model/ModifyDBClusterRequest.cc @@ -25,6 +25,15 @@ ModifyDBClusterRequest::ModifyDBClusterRequest() ModifyDBClusterRequest::~ModifyDBClusterRequest() {} +std::string ModifyDBClusterRequest::getModifyRowCompression() const { + return modifyRowCompression_; +} + +void ModifyDBClusterRequest::setModifyRowCompression(const std::string &modifyRowCompression) { + modifyRowCompression_ = modifyRowCompression; + setParameter(std::string("ModifyRowCompression"), modifyRowCompression); +} + long ModifyDBClusterRequest::getResourceOwnerId() const { return resourceOwnerId_; } @@ -43,6 +52,15 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBClusterRequest::getTableMeta() const { + return tableMeta_; +} + +void ModifyDBClusterRequest::setTableMeta(const std::string &tableMeta) { + tableMeta_ = tableMeta; + setParameter(std::string("TableMeta"), tableMeta); +} + std::string ModifyDBClusterRequest::getStandbyHAMode() const { return standbyHAMode_; } @@ -79,6 +97,15 @@ void ModifyDBClusterRequest::setOwnerAccount(const std::string &ownerAccount) { setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string ModifyDBClusterRequest::getDBNodeCrashList() const { + return dBNodeCrashList_; +} + +void ModifyDBClusterRequest::setDBNodeCrashList(const std::string &dBNodeCrashList) { + dBNodeCrashList_ = dBNodeCrashList; + setParameter(std::string("DBNodeCrashList"), dBNodeCrashList); +} + std::string ModifyDBClusterRequest::getFaultSimulateMode() const { return faultSimulateMode_; } @@ -115,6 +142,24 @@ void ModifyDBClusterRequest::setStorageUpperBound(long storageUpperBound) { setParameter(std::string("StorageUpperBound"), std::to_string(storageUpperBound)); } +std::string ModifyDBClusterRequest::getPreferredSimulateStartTime() const { + return preferredSimulateStartTime_; +} + +void ModifyDBClusterRequest::setPreferredSimulateStartTime(const std::string &preferredSimulateStartTime) { + preferredSimulateStartTime_ = preferredSimulateStartTime; + setParameter(std::string("PreferredSimulateStartTime"), preferredSimulateStartTime); +} + +std::string ModifyDBClusterRequest::getImciAutoIndex() const { + return imciAutoIndex_; +} + +void ModifyDBClusterRequest::setImciAutoIndex(const std::string &imciAutoIndex) { + imciAutoIndex_ = imciAutoIndex; + setParameter(std::string("ImciAutoIndex"), imciAutoIndex); +} + std::string ModifyDBClusterRequest::getStorageAutoScale() const { return storageAutoScale_; } @@ -124,6 +169,15 @@ void ModifyDBClusterRequest::setStorageAutoScale(const std::string &storageAutoS setParameter(std::string("StorageAutoScale"), storageAutoScale); } +std::string ModifyDBClusterRequest::getFaultInjectionType() const { + return faultInjectionType_; +} + +void ModifyDBClusterRequest::setFaultInjectionType(const std::string &faultInjectionType) { + faultInjectionType_ = faultInjectionType; + setParameter(std::string("FaultInjectionType"), faultInjectionType); +} + std::string ModifyDBClusterRequest::getDataSyncMode() const { return dataSyncMode_; } diff --git a/polardb/src/model/ModifyDBClusterSSLRequest.cc b/polardb/src/model/ModifyDBClusterSSLRequest.cc index 64d01576a..62deaa26a 100644 --- a/polardb/src/model/ModifyDBClusterSSLRequest.cc +++ b/polardb/src/model/ModifyDBClusterSSLRequest.cc @@ -34,6 +34,24 @@ void ModifyDBClusterSSLRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyDBClusterSSLRequest::getServerKey() const { + return serverKey_; +} + +void ModifyDBClusterSSLRequest::setServerKey(const std::string &serverKey) { + serverKey_ = serverKey; + setParameter(std::string("ServerKey"), serverKey); +} + +std::string ModifyDBClusterSSLRequest::getClientCrlEnabled() const { + return clientCrlEnabled_; +} + +void ModifyDBClusterSSLRequest::setClientCrlEnabled(const std::string &clientCrlEnabled) { + clientCrlEnabled_ = clientCrlEnabled; + setParameter(std::string("ClientCrlEnabled"), clientCrlEnabled); +} + std::string ModifyDBClusterSSLRequest::getDBEndpointId() const { return dBEndpointId_; } @@ -43,6 +61,15 @@ void ModifyDBClusterSSLRequest::setDBEndpointId(const std::string &dBEndpointId) setParameter(std::string("DBEndpointId"), dBEndpointId); } +std::string ModifyDBClusterSSLRequest::getACL() const { + return aCL_; +} + +void ModifyDBClusterSSLRequest::setACL(const std::string &aCL) { + aCL_ = aCL; + setParameter(std::string("ACL"), aCL); +} + std::string ModifyDBClusterSSLRequest::getAccessKeyId() const { return accessKeyId_; } @@ -52,6 +79,24 @@ void ModifyDBClusterSSLRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBClusterSSLRequest::getServerCert() const { + return serverCert_; +} + +void ModifyDBClusterSSLRequest::setServerCert(const std::string &serverCert) { + serverCert_ = serverCert; + setParameter(std::string("ServerCert"), serverCert); +} + +std::string ModifyDBClusterSSLRequest::getClientCACert() const { + return clientCACert_; +} + +void ModifyDBClusterSSLRequest::setClientCACert(const std::string &clientCACert) { + clientCACert_ = clientCACert; + setParameter(std::string("ClientCACert"), clientCACert); +} + std::string ModifyDBClusterSSLRequest::getSSLAutoRotate() const { return sSLAutoRotate_; } @@ -70,6 +115,15 @@ void ModifyDBClusterSSLRequest::setResourceOwnerAccount(const std::string &resou setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +std::string ModifyDBClusterSSLRequest::getCAType() const { + return cAType_; +} + +void ModifyDBClusterSSLRequest::setCAType(const std::string &cAType) { + cAType_ = cAType; + setParameter(std::string("CAType"), cAType); +} + std::string ModifyDBClusterSSLRequest::getDBClusterId() const { return dBClusterId_; } @@ -97,6 +151,24 @@ void ModifyDBClusterSSLRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string ModifyDBClusterSSLRequest::getClientCACertEnabled() const { + return clientCACertEnabled_; +} + +void ModifyDBClusterSSLRequest::setClientCACertEnabled(const std::string &clientCACertEnabled) { + clientCACertEnabled_ = clientCACertEnabled; + setParameter(std::string("ClientCACertEnabled"), clientCACertEnabled); +} + +std::string ModifyDBClusterSSLRequest::getClientCrl() const { + return clientCrl_; +} + +void ModifyDBClusterSSLRequest::setClientCrl(const std::string &clientCrl) { + clientCrl_ = clientCrl; + setParameter(std::string("ClientCrl"), clientCrl); +} + std::string ModifyDBClusterSSLRequest::getNetType() const { return netType_; } diff --git a/polardb/src/model/ModifyDBClusterServerlessConfRequest.cc b/polardb/src/model/ModifyDBClusterServerlessConfRequest.cc index d11c57f15..b454e18d1 100644 --- a/polardb/src/model/ModifyDBClusterServerlessConfRequest.cc +++ b/polardb/src/model/ModifyDBClusterServerlessConfRequest.cc @@ -43,6 +43,15 @@ void ModifyDBClusterServerlessConfRequest::setResourceOwnerId(long resourceOwner setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string ModifyDBClusterServerlessConfRequest::getServerlessRuleMode() const { + return serverlessRuleMode_; +} + +void ModifyDBClusterServerlessConfRequest::setServerlessRuleMode(const std::string &serverlessRuleMode) { + serverlessRuleMode_ = serverlessRuleMode; + setParameter(std::string("ServerlessRuleMode"), serverlessRuleMode); +} + std::string ModifyDBClusterServerlessConfRequest::getScaleApRoNumMax() const { return scaleApRoNumMax_; } @@ -79,6 +88,15 @@ void ModifyDBClusterServerlessConfRequest::setAccessKeyId(const std::string &acc setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBClusterServerlessConfRequest::getServerlessRuleCpuEnlargeThreshold() const { + return serverlessRuleCpuEnlargeThreshold_; +} + +void ModifyDBClusterServerlessConfRequest::setServerlessRuleCpuEnlargeThreshold(const std::string &serverlessRuleCpuEnlargeThreshold) { + serverlessRuleCpuEnlargeThreshold_ = serverlessRuleCpuEnlargeThreshold; + setParameter(std::string("ServerlessRuleCpuEnlargeThreshold"), serverlessRuleCpuEnlargeThreshold); +} + std::string ModifyDBClusterServerlessConfRequest::getSecondsUntilAutoPause() const { return secondsUntilAutoPause_; } @@ -97,6 +115,15 @@ void ModifyDBClusterServerlessConfRequest::setScaleApRoNumMin(const std::string setParameter(std::string("ScaleApRoNumMin"), scaleApRoNumMin); } +std::string ModifyDBClusterServerlessConfRequest::getTaskId() const { + return taskId_; +} + +void ModifyDBClusterServerlessConfRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + std::string ModifyDBClusterServerlessConfRequest::getScaleMin() const { return scaleMin_; } @@ -106,6 +133,15 @@ void ModifyDBClusterServerlessConfRequest::setScaleMin(const std::string &scaleM setParameter(std::string("ScaleMin"), scaleMin); } +std::string ModifyDBClusterServerlessConfRequest::getCrontabJobId() const { + return crontabJobId_; +} + +void ModifyDBClusterServerlessConfRequest::setCrontabJobId(const std::string &crontabJobId) { + crontabJobId_ = crontabJobId; + setParameter(std::string("CrontabJobId"), crontabJobId); +} + std::string ModifyDBClusterServerlessConfRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -133,6 +169,15 @@ void ModifyDBClusterServerlessConfRequest::setOwnerAccount(const std::string &ow setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string ModifyDBClusterServerlessConfRequest::getServerlessRuleCpuShrinkThreshold() const { + return serverlessRuleCpuShrinkThreshold_; +} + +void ModifyDBClusterServerlessConfRequest::setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold) { + serverlessRuleCpuShrinkThreshold_ = serverlessRuleCpuShrinkThreshold; + setParameter(std::string("ServerlessRuleCpuShrinkThreshold"), serverlessRuleCpuShrinkThreshold); +} + long ModifyDBClusterServerlessConfRequest::getOwnerId() const { return ownerId_; } diff --git a/polardb/src/model/ModifyDBClusterStoragePerformanceRequest.cc b/polardb/src/model/ModifyDBClusterStoragePerformanceRequest.cc new file mode 100644 index 000000000..afeba6180 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterStoragePerformanceRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::ModifyDBClusterStoragePerformanceRequest; + +ModifyDBClusterStoragePerformanceRequest::ModifyDBClusterStoragePerformanceRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterStoragePerformance") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterStoragePerformanceRequest::~ModifyDBClusterStoragePerformanceRequest() {} + +long ModifyDBClusterStoragePerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterStoragePerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDBClusterStoragePerformanceRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getStorageType() const { + return storageType_; +} + +void ModifyDBClusterStoragePerformanceRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterStoragePerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterStoragePerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getBurstingEnabled() const { + return burstingEnabled_; +} + +void ModifyDBClusterStoragePerformanceRequest::setBurstingEnabled(const std::string &burstingEnabled) { + burstingEnabled_ = burstingEnabled; + setParameter(std::string("BurstingEnabled"), burstingEnabled); +} + +int ModifyDBClusterStoragePerformanceRequest::getProvisionedIops() const { + return provisionedIops_; +} + +void ModifyDBClusterStoragePerformanceRequest::setProvisionedIops(int provisionedIops) { + provisionedIops_ = provisionedIops; + setParameter(std::string("ProvisionedIops"), std::to_string(provisionedIops)); +} + +std::string ModifyDBClusterStoragePerformanceRequest::getModifyType() const { + return modifyType_; +} + +void ModifyDBClusterStoragePerformanceRequest::setModifyType(const std::string &modifyType) { + modifyType_ = modifyType; + setParameter(std::string("ModifyType"), modifyType); +} + diff --git a/polardb/src/model/ModifyDBClusterStoragePerformanceResult.cc b/polardb/src/model/ModifyDBClusterStoragePerformanceResult.cc new file mode 100644 index 000000000..484389340 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterStoragePerformanceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterStoragePerformanceResult::ModifyDBClusterStoragePerformanceResult() : + ServiceResult() +{} + +ModifyDBClusterStoragePerformanceResult::ModifyDBClusterStoragePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterStoragePerformanceResult::~ModifyDBClusterStoragePerformanceResult() +{} + +void ModifyDBClusterStoragePerformanceResult::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 ModifyDBClusterStoragePerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string ModifyDBClusterStoragePerformanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/polardb/src/model/ModifyDBClusterTDERequest.cc b/polardb/src/model/ModifyDBClusterTDERequest.cc index 96c5b7c72..03ef2d3c4 100644 --- a/polardb/src/model/ModifyDBClusterTDERequest.cc +++ b/polardb/src/model/ModifyDBClusterTDERequest.cc @@ -88,6 +88,15 @@ void ModifyDBClusterTDERequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string ModifyDBClusterTDERequest::getEnableAutomaticRotation() const { + return enableAutomaticRotation_; +} + +void ModifyDBClusterTDERequest::setEnableAutomaticRotation(const std::string &enableAutomaticRotation) { + enableAutomaticRotation_ = enableAutomaticRotation; + setParameter(std::string("EnableAutomaticRotation"), enableAutomaticRotation); +} + std::string ModifyDBClusterTDERequest::getRoleArn() const { return roleArn_; } diff --git a/polardb/src/model/ModifyDBNodeClassRequest.cc b/polardb/src/model/ModifyDBNodeClassRequest.cc index 68d5c4f3e..6ac04c792 100644 --- a/polardb/src/model/ModifyDBNodeClassRequest.cc +++ b/polardb/src/model/ModifyDBNodeClassRequest.cc @@ -106,6 +106,15 @@ void ModifyDBNodeClassRequest::setOwnerAccount(const std::string &ownerAccount) setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string ModifyDBNodeClassRequest::getPlannedFlashingOffTime() const { + return plannedFlashingOffTime_; +} + +void ModifyDBNodeClassRequest::setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime) { + plannedFlashingOffTime_ = plannedFlashingOffTime; + setParameter(std::string("PlannedFlashingOffTime"), plannedFlashingOffTime); +} + long ModifyDBNodeClassRequest::getOwnerId() const { return ownerId_; } diff --git a/polardb/src/model/ModifyDBNodesClassRequest.cc b/polardb/src/model/ModifyDBNodesClassRequest.cc index 4fcc6af30..4c7c3b7ec 100644 --- a/polardb/src/model/ModifyDBNodesClassRequest.cc +++ b/polardb/src/model/ModifyDBNodesClassRequest.cc @@ -88,6 +88,15 @@ void ModifyDBNodesClassRequest::setOwnerAccount(const std::string &ownerAccount) setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string ModifyDBNodesClassRequest::getPlannedFlashingOffTime() const { + return plannedFlashingOffTime_; +} + +void ModifyDBNodesClassRequest::setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime) { + plannedFlashingOffTime_ = plannedFlashingOffTime; + setParameter(std::string("PlannedFlashingOffTime"), plannedFlashingOffTime); +} + long ModifyDBNodesClassRequest::getOwnerId() const { return ownerId_; } diff --git a/polardb/src/model/ModifyGlobalDatabaseNetworkRequest.cc b/polardb/src/model/ModifyGlobalDatabaseNetworkRequest.cc index 039e0b2db..bc1200ab3 100644 --- a/polardb/src/model/ModifyGlobalDatabaseNetworkRequest.cc +++ b/polardb/src/model/ModifyGlobalDatabaseNetworkRequest.cc @@ -97,6 +97,15 @@ void ModifyGlobalDatabaseNetworkRequest::setOwnerAccount(const std::string &owne setParameter(std::string("OwnerAccount"), ownerAccount); } +bool ModifyGlobalDatabaseNetworkRequest::getEnableGlobalDomainName() const { + return enableGlobalDomainName_; +} + +void ModifyGlobalDatabaseNetworkRequest::setEnableGlobalDomainName(bool enableGlobalDomainName) { + enableGlobalDomainName_ = enableGlobalDomainName; + setParameter(std::string("EnableGlobalDomainName"), enableGlobalDomainName ? "true" : "false"); +} + long ModifyGlobalDatabaseNetworkRequest::getOwnerId() const { return ownerId_; } diff --git a/polardb/src/model/RestartDBLinkRequest.cc b/polardb/src/model/RestartDBLinkRequest.cc new file mode 100644 index 000000000..23f09e05b --- /dev/null +++ b/polardb/src/model/RestartDBLinkRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::RestartDBLinkRequest; + +RestartDBLinkRequest::RestartDBLinkRequest() + : RpcServiceRequest("polardb", "2017-08-01", "RestartDBLink") { + setMethod(HttpRequest::Method::Post); +} + +RestartDBLinkRequest::~RestartDBLinkRequest() {} + +long RestartDBLinkRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RestartDBLinkRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RestartDBLinkRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RestartDBLinkRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RestartDBLinkRequest::getSecurityToken() const { + return securityToken_; +} + +void RestartDBLinkRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string RestartDBLinkRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RestartDBLinkRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RestartDBLinkRequest::getDBClusterId() const { + return dBClusterId_; +} + +void RestartDBLinkRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string RestartDBLinkRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RestartDBLinkRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RestartDBLinkRequest::getOwnerId() const { + return ownerId_; +} + +void RestartDBLinkRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/RestartDBLinkResult.cc b/polardb/src/model/RestartDBLinkResult.cc new file mode 100644 index 000000000..e3c8ba9a3 --- /dev/null +++ b/polardb/src/model/RestartDBLinkResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +RestartDBLinkResult::RestartDBLinkResult() : + ServiceResult() +{} + +RestartDBLinkResult::RestartDBLinkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBLinkResult::~RestartDBLinkResult() +{} + +void RestartDBLinkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string RestartDBLinkResult::getTaskId()const +{ + return taskId_; +} + +std::string RestartDBLinkResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc b/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc deleted file mode 100644 index 37cff978f..000000000 --- a/polardb/src/model/UpgradeDBClusterMinorVersionRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::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(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string UpgradeDBClusterMinorVersionRequest::getPlannedEndTime() const { - return plannedEndTime_; -} - -void UpgradeDBClusterMinorVersionRequest::setPlannedEndTime(const std::string &plannedEndTime) { - plannedEndTime_ = plannedEndTime; - setParameter(std::string("PlannedEndTime"), plannedEndTime); -} - -std::string UpgradeDBClusterMinorVersionRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void UpgradeDBClusterMinorVersionRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string UpgradeDBClusterMinorVersionRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void UpgradeDBClusterMinorVersionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string UpgradeDBClusterMinorVersionRequest::getDBClusterId() const { - return dBClusterId_; -} - -void UpgradeDBClusterMinorVersionRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); -} - -std::string UpgradeDBClusterMinorVersionRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void UpgradeDBClusterMinorVersionRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long UpgradeDBClusterMinorVersionRequest::getOwnerId() const { - return ownerId_; -} - -void UpgradeDBClusterMinorVersionRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string UpgradeDBClusterMinorVersionRequest::getPlannedStartTime() const { - return plannedStartTime_; -} - -void UpgradeDBClusterMinorVersionRequest::setPlannedStartTime(const std::string &plannedStartTime) { - plannedStartTime_ = plannedStartTime; - setParameter(std::string("PlannedStartTime"), plannedStartTime); -} - -bool UpgradeDBClusterMinorVersionRequest::getFromTimeService() const { - return fromTimeService_; -} - -void UpgradeDBClusterMinorVersionRequest::setFromTimeService(bool fromTimeService) { - fromTimeService_ = fromTimeService; - setParameter(std::string("FromTimeService"), fromTimeService ? "true" : "false"); -} - diff --git a/polardb/src/model/UpgradeDBClusterVersionRequest.cc b/polardb/src/model/UpgradeDBClusterVersionRequest.cc index ea64970d8..46b68e2a3 100644 --- a/polardb/src/model/UpgradeDBClusterVersionRequest.cc +++ b/polardb/src/model/UpgradeDBClusterVersionRequest.cc @@ -97,6 +97,15 @@ void UpgradeDBClusterVersionRequest::setOwnerAccount(const std::string &ownerAcc setParameter(std::string("OwnerAccount"), ownerAccount); } +std::string UpgradeDBClusterVersionRequest::getPlannedFlashingOffTime() const { + return plannedFlashingOffTime_; +} + +void UpgradeDBClusterVersionRequest::setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime) { + plannedFlashingOffTime_ = plannedFlashingOffTime; + setParameter(std::string("PlannedFlashingOffTime"), plannedFlashingOffTime); +} + long UpgradeDBClusterVersionRequest::getOwnerId() const { return ownerId_; } @@ -124,6 +133,15 @@ void UpgradeDBClusterVersionRequest::setTargetDBRevisionVersionCode(const std::s setParameter(std::string("TargetDBRevisionVersionCode"), targetDBRevisionVersionCode); } +std::string UpgradeDBClusterVersionRequest::getTargetProxyRevisionVersionCode() const { + return targetProxyRevisionVersionCode_; +} + +void UpgradeDBClusterVersionRequest::setTargetProxyRevisionVersionCode(const std::string &targetProxyRevisionVersionCode) { + targetProxyRevisionVersionCode_ = targetProxyRevisionVersionCode; + setParameter(std::string("TargetProxyRevisionVersionCode"), targetProxyRevisionVersionCode); +} + std::string UpgradeDBClusterVersionRequest::getUpgradePolicy() const { return upgradePolicy_; }