diff --git a/VERSION b/VERSION index dc68a42aa..cd1bd6f8f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2110 \ No newline at end of file +1.36.2111 \ No newline at end of file diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt index 585d71be2..35e754ae4 100644 --- a/polardb/CMakeLists.txt +++ b/polardb/CMakeLists.txt @@ -21,14 +21,32 @@ set(polardb_public_header include/alibabacloud/polardb/PolardbExport.h ) set(polardb_public_header_model + include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h + include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeRequest.h + include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeResult.h + include/alibabacloud/polardb/model/AddFirewallRulesRequest.h + include/alibabacloud/polardb/model/AddFirewallRulesResult.h + include/alibabacloud/polardb/model/AddSQLRateLimitingRulesRequest.h + include/alibabacloud/polardb/model/AddSQLRateLimitingRulesResult.h + include/alibabacloud/polardb/model/AttachApplicationPolarFSRequest.h + include/alibabacloud/polardb/model/AttachApplicationPolarFSResult.h include/alibabacloud/polardb/model/CancelActiveOperationTasksRequest.h include/alibabacloud/polardb/model/CancelActiveOperationTasksResult.h + include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessRequest.h + include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessResult.h include/alibabacloud/polardb/model/CancelScheduleTasksRequest.h include/alibabacloud/polardb/model/CancelScheduleTasksResult.h include/alibabacloud/polardb/model/CheckAccountNameRequest.h include/alibabacloud/polardb/model/CheckAccountNameResult.h + include/alibabacloud/polardb/model/CheckAccountNameZonalRequest.h + include/alibabacloud/polardb/model/CheckAccountNameZonalResult.h + include/alibabacloud/polardb/model/CheckConnectionStringRequest.h + include/alibabacloud/polardb/model/CheckConnectionStringResult.h include/alibabacloud/polardb/model/CheckDBNameRequest.h include/alibabacloud/polardb/model/CheckDBNameResult.h + include/alibabacloud/polardb/model/CheckDBNameZonalRequest.h + include/alibabacloud/polardb/model/CheckDBNameZonalResult.h include/alibabacloud/polardb/model/CheckKMSAuthorizedRequest.h include/alibabacloud/polardb/model/CheckKMSAuthorizedResult.h include/alibabacloud/polardb/model/CheckServiceLinkedRoleRequest.h @@ -37,18 +55,30 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/CloseAITaskResult.h include/alibabacloud/polardb/model/CloseDBClusterMigrationRequest.h include/alibabacloud/polardb/model/CloseDBClusterMigrationResult.h + include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h + include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h include/alibabacloud/polardb/model/CreateAccountRequest.h include/alibabacloud/polardb/model/CreateAccountResult.h + include/alibabacloud/polardb/model/CreateAccountZonalRequest.h + include/alibabacloud/polardb/model/CreateAccountZonalResult.h include/alibabacloud/polardb/model/CreateActivationCodeRequest.h include/alibabacloud/polardb/model/CreateActivationCodeResult.h + include/alibabacloud/polardb/model/CreateApplicationRequest.h + include/alibabacloud/polardb/model/CreateApplicationResult.h + include/alibabacloud/polardb/model/CreateApplicationEndpointAddressRequest.h + include/alibabacloud/polardb/model/CreateApplicationEndpointAddressResult.h include/alibabacloud/polardb/model/CreateBackupRequest.h include/alibabacloud/polardb/model/CreateBackupResult.h include/alibabacloud/polardb/model/CreateColdStorageInstanceRequest.h include/alibabacloud/polardb/model/CreateColdStorageInstanceResult.h + include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessRequest.h + include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessResult.h include/alibabacloud/polardb/model/CreateDBClusterRequest.h include/alibabacloud/polardb/model/CreateDBClusterResult.h include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h include/alibabacloud/polardb/model/CreateDBClusterEndpointResult.h + include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalRequest.h + include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalResult.h include/alibabacloud/polardb/model/CreateDBEndpointAddressRequest.h include/alibabacloud/polardb/model/CreateDBEndpointAddressResult.h include/alibabacloud/polardb/model/CreateDBLinkRequest.h @@ -57,10 +87,18 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/CreateDBNodesResult.h include/alibabacloud/polardb/model/CreateDatabaseRequest.h include/alibabacloud/polardb/model/CreateDatabaseResult.h + include/alibabacloud/polardb/model/CreateDatabaseZonalRequest.h + include/alibabacloud/polardb/model/CreateDatabaseZonalResult.h + include/alibabacloud/polardb/model/CreateExtensionsRequest.h + include/alibabacloud/polardb/model/CreateExtensionsResult.h + include/alibabacloud/polardb/model/CreateGlobalDataNetworkRequest.h + include/alibabacloud/polardb/model/CreateGlobalDataNetworkResult.h include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/CreateGlobalSecurityIPGroupRequest.h include/alibabacloud/polardb/model/CreateGlobalSecurityIPGroupResult.h + include/alibabacloud/polardb/model/CreateNetworkChannelRequest.h + include/alibabacloud/polardb/model/CreateNetworkChannelResult.h include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderRequest.h include/alibabacloud/polardb/model/CreateOrGetVirtualLicenseOrderResult.h include/alibabacloud/polardb/model/CreateParameterGroupRequest.h @@ -69,14 +107,24 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/CreateServiceLinkedRoleResult.h include/alibabacloud/polardb/model/CreateStoragePlanRequest.h include/alibabacloud/polardb/model/CreateStoragePlanResult.h + include/alibabacloud/polardb/model/DeleteAIDBClusterRequest.h + include/alibabacloud/polardb/model/DeleteAIDBClusterResult.h include/alibabacloud/polardb/model/DeleteAccountRequest.h include/alibabacloud/polardb/model/DeleteAccountResult.h + include/alibabacloud/polardb/model/DeleteAccountZonalRequest.h + include/alibabacloud/polardb/model/DeleteAccountZonalResult.h + include/alibabacloud/polardb/model/DeleteApplicationRequest.h + include/alibabacloud/polardb/model/DeleteApplicationResult.h + include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressRequest.h + include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressResult.h include/alibabacloud/polardb/model/DeleteBackupRequest.h include/alibabacloud/polardb/model/DeleteBackupResult.h include/alibabacloud/polardb/model/DeleteDBClusterRequest.h include/alibabacloud/polardb/model/DeleteDBClusterResult.h include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h include/alibabacloud/polardb/model/DeleteDBClusterEndpointResult.h + include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalRequest.h + include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalResult.h include/alibabacloud/polardb/model/DeleteDBEndpointAddressRequest.h include/alibabacloud/polardb/model/DeleteDBEndpointAddressResult.h include/alibabacloud/polardb/model/DeleteDBLinkRequest.h @@ -85,30 +133,66 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DeleteDBNodesResult.h include/alibabacloud/polardb/model/DeleteDatabaseRequest.h include/alibabacloud/polardb/model/DeleteDatabaseResult.h + include/alibabacloud/polardb/model/DeleteDatabaseZonalRequest.h + include/alibabacloud/polardb/model/DeleteDatabaseZonalResult.h + include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeRequest.h + include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeResult.h + include/alibabacloud/polardb/model/DeleteExtensionsRequest.h + include/alibabacloud/polardb/model/DeleteExtensionsResult.h + include/alibabacloud/polardb/model/DeleteFirewallRulesRequest.h + include/alibabacloud/polardb/model/DeleteFirewallRulesResult.h + include/alibabacloud/polardb/model/DeleteGlobalDataNetworkRequest.h + include/alibabacloud/polardb/model/DeleteGlobalDataNetworkResult.h include/alibabacloud/polardb/model/DeleteGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/DeleteGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/DeleteGlobalSecurityIPGroupRequest.h include/alibabacloud/polardb/model/DeleteGlobalSecurityIPGroupResult.h include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h include/alibabacloud/polardb/model/DeleteMaskingRulesResult.h + include/alibabacloud/polardb/model/DeleteNetworkChannelRequest.h + include/alibabacloud/polardb/model/DeleteNetworkChannelResult.h include/alibabacloud/polardb/model/DeleteParameterGroupRequest.h include/alibabacloud/polardb/model/DeleteParameterGroupResult.h + include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesRequest.h + include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesResult.h + include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeRequest.h + include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeResult.h + include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceRequest.h + include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceResult.h + include/alibabacloud/polardb/model/DescribeAIDBClustersRequest.h + include/alibabacloud/polardb/model/DescribeAIDBClustersResult.h include/alibabacloud/polardb/model/DescribeAITaskStatusRequest.h include/alibabacloud/polardb/model/DescribeAITaskStatusResult.h include/alibabacloud/polardb/model/DescribeAccountsRequest.h include/alibabacloud/polardb/model/DescribeAccountsResult.h + include/alibabacloud/polardb/model/DescribeAccountsZonalRequest.h + include/alibabacloud/polardb/model/DescribeAccountsZonalResult.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/DescribeActiveOperationMaintainConfRequest.h + include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfResult.h include/alibabacloud/polardb/model/DescribeActiveOperationTasksRequest.h include/alibabacloud/polardb/model/DescribeActiveOperationTasksResult.h + include/alibabacloud/polardb/model/DescribeApplicationAttributeRequest.h + include/alibabacloud/polardb/model/DescribeApplicationAttributeResult.h + include/alibabacloud/polardb/model/DescribeApplicationParametersRequest.h + include/alibabacloud/polardb/model/DescribeApplicationParametersResult.h + include/alibabacloud/polardb/model/DescribeApplicationServerlessConfRequest.h + include/alibabacloud/polardb/model/DescribeApplicationServerlessConfResult.h + include/alibabacloud/polardb/model/DescribeApplicationsRequest.h + include/alibabacloud/polardb/model/DescribeApplicationsResult.h include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h include/alibabacloud/polardb/model/DescribeAutoRenewAttributeResult.h + include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsRequest.h + include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsResult.h include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h include/alibabacloud/polardb/model/DescribeBackupLogsResult.h include/alibabacloud/polardb/model/DescribeBackupPolicyRequest.h include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h + include/alibabacloud/polardb/model/DescribeBackupRegionsRequest.h + include/alibabacloud/polardb/model/DescribeBackupRegionsResult.h include/alibabacloud/polardb/model/DescribeBackupTasksRequest.h include/alibabacloud/polardb/model/DescribeBackupTasksResult.h include/alibabacloud/polardb/model/DescribeBackupsRequest.h @@ -117,6 +201,16 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeCharacterSetNameResult.h include/alibabacloud/polardb/model/DescribeClassListRequest.h include/alibabacloud/polardb/model/DescribeClassListResult.h + include/alibabacloud/polardb/model/DescribeColdStorageInstanceRequest.h + include/alibabacloud/polardb/model/DescribeColdStorageInstanceResult.h + include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessRequest.h + include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessResult.h + include/alibabacloud/polardb/model/DescribeCrossCloudLevelsRequest.h + include/alibabacloud/polardb/model/DescribeCrossCloudLevelsResult.h + include/alibabacloud/polardb/model/DescribeCrossCloudRegionRequest.h + include/alibabacloud/polardb/model/DescribeCrossCloudRegionResult.h + include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunRequest.h + include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunResult.h include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistRequest.h include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h @@ -127,16 +221,24 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h include/alibabacloud/polardb/model/DescribeDBClusterConnectivityRequest.h include/alibabacloud/polardb/model/DescribeDBClusterConnectivityResult.h + include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyResult.h include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h + include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalResult.h include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h include/alibabacloud/polardb/model/DescribeDBClusterMonitorRequest.h include/alibabacloud/polardb/model/DescribeDBClusterMonitorResult.h + include/alibabacloud/polardb/model/DescribeDBClusterNetInfoRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterNetInfoResult.h include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h include/alibabacloud/polardb/model/DescribeDBClusterPerformanceResult.h + include/alibabacloud/polardb/model/DescribeDBClusterProxyRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterProxyResult.h include/alibabacloud/polardb/model/DescribeDBClusterSSLRequest.h include/alibabacloud/polardb/model/DescribeDBClusterSSLResult.h include/alibabacloud/polardb/model/DescribeDBClusterServerlessConfRequest.h @@ -145,14 +247,24 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeDBClusterTDEResult.h include/alibabacloud/polardb/model/DescribeDBClusterVersionRequest.h include/alibabacloud/polardb/model/DescribeDBClusterVersionResult.h + include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalResult.h include/alibabacloud/polardb/model/DescribeDBClustersRequest.h include/alibabacloud/polardb/model/DescribeDBClustersResult.h include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsRequest.h include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsResult.h + include/alibabacloud/polardb/model/DescribeDBClustersZonalRequest.h + include/alibabacloud/polardb/model/DescribeDBClustersZonalResult.h include/alibabacloud/polardb/model/DescribeDBInitializeVariableRequest.h include/alibabacloud/polardb/model/DescribeDBInitializeVariableResult.h + include/alibabacloud/polardb/model/DescribeDBInstancePerformanceRequest.h + include/alibabacloud/polardb/model/DescribeDBInstancePerformanceResult.h include/alibabacloud/polardb/model/DescribeDBLinksRequest.h include/alibabacloud/polardb/model/DescribeDBLinksResult.h + include/alibabacloud/polardb/model/DescribeDBLogFilesRequest.h + include/alibabacloud/polardb/model/DescribeDBLogFilesResult.h + include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsRequest.h + include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsResult.h include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h include/alibabacloud/polardb/model/DescribeDBNodePerformanceResult.h include/alibabacloud/polardb/model/DescribeDBNodesParametersRequest.h @@ -163,8 +275,22 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeDasConfigResult.h include/alibabacloud/polardb/model/DescribeDatabasesRequest.h include/alibabacloud/polardb/model/DescribeDatabasesResult.h + include/alibabacloud/polardb/model/DescribeDatabasesZonalRequest.h + include/alibabacloud/polardb/model/DescribeDatabasesZonalResult.h + include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalRequest.h + include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalResult.h include/alibabacloud/polardb/model/DescribeDetachedBackupsRequest.h include/alibabacloud/polardb/model/DescribeDetachedBackupsResult.h + include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeRequest.h + include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeResult.h + include/alibabacloud/polardb/model/DescribeEncryptionDBSecretRequest.h + include/alibabacloud/polardb/model/DescribeEncryptionDBSecretResult.h + include/alibabacloud/polardb/model/DescribeExtensionsRequest.h + include/alibabacloud/polardb/model/DescribeExtensionsResult.h + include/alibabacloud/polardb/model/DescribeFirewallRulesRequest.h + include/alibabacloud/polardb/model/DescribeFirewallRulesResult.h + include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListRequest.h + include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListResult.h include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksRequest.h @@ -173,16 +299,28 @@ 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/DescribeHALogsRequest.h + include/alibabacloud/polardb/model/DescribeHALogsResult.h + include/alibabacloud/polardb/model/DescribeHistoryTasksRequest.h + include/alibabacloud/polardb/model/DescribeHistoryTasksResult.h + include/alibabacloud/polardb/model/DescribeHistoryTasksStatRequest.h + include/alibabacloud/polardb/model/DescribeHistoryTasksStatResult.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/DescribeLocalAvailableRecoveryTimeRequest.h + include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h include/alibabacloud/polardb/model/DescribeLogBackupPolicyRequest.h include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h include/alibabacloud/polardb/model/DescribeMaskingRulesResult.h include/alibabacloud/polardb/model/DescribeMetaListRequest.h include/alibabacloud/polardb/model/DescribeMetaListResult.h + include/alibabacloud/polardb/model/DescribeModifyParameterLogRequest.h + include/alibabacloud/polardb/model/DescribeModifyParameterLogResult.h + include/alibabacloud/polardb/model/DescribeNetworkChannelRequest.h + include/alibabacloud/polardb/model/DescribeNetworkChannelResult.h include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h include/alibabacloud/polardb/model/DescribeParameterGroupResult.h include/alibabacloud/polardb/model/DescribeParameterGroupsRequest.h @@ -195,8 +333,16 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribePendingMaintenanceActionsResult.h include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyRequest.h include/alibabacloud/polardb/model/DescribePolarSQLCollectorPolicyResult.h + include/alibabacloud/polardb/model/DescribeRdsVSwitchsRequest.h + include/alibabacloud/polardb/model/DescribeRdsVSwitchsResult.h + include/alibabacloud/polardb/model/DescribeRdsVpcsRequest.h + include/alibabacloud/polardb/model/DescribeRdsVpcsResult.h include/alibabacloud/polardb/model/DescribeRegionsRequest.h include/alibabacloud/polardb/model/DescribeRegionsResult.h + include/alibabacloud/polardb/model/DescribeResourcePackagesRequest.h + include/alibabacloud/polardb/model/DescribeResourcePackagesResult.h + include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesRequest.h + include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesResult.h include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h @@ -205,54 +351,108 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeSlowLogsResult.h include/alibabacloud/polardb/model/DescribeTasksRequest.h include/alibabacloud/polardb/model/DescribeTasksResult.h + include/alibabacloud/polardb/model/DescribeUpgradeReportRequest.h + include/alibabacloud/polardb/model/DescribeUpgradeReportResult.h include/alibabacloud/polardb/model/DescribeUserEncryptionKeyListRequest.h include/alibabacloud/polardb/model/DescribeUserEncryptionKeyListResult.h + include/alibabacloud/polardb/model/DescribeVSwitchListRequest.h + include/alibabacloud/polardb/model/DescribeVSwitchListResult.h include/alibabacloud/polardb/model/DescribeVSwitchesRequest.h include/alibabacloud/polardb/model/DescribeVSwitchesResult.h + include/alibabacloud/polardb/model/DescribeVpcsRequest.h + include/alibabacloud/polardb/model/DescribeVpcsResult.h + include/alibabacloud/polardb/model/DescribeZonesRequest.h + include/alibabacloud/polardb/model/DescribeZonesResult.h + include/alibabacloud/polardb/model/DisableDBClusterOrcaRequest.h + include/alibabacloud/polardb/model/DisableDBClusterOrcaResult.h include/alibabacloud/polardb/model/DisableDBClusterServerlessRequest.h include/alibabacloud/polardb/model/DisableDBClusterServerlessResult.h + include/alibabacloud/polardb/model/EnableDBClusterOrcaRequest.h + include/alibabacloud/polardb/model/EnableDBClusterOrcaResult.h include/alibabacloud/polardb/model/EnableDBClusterServerlessRequest.h include/alibabacloud/polardb/model/EnableDBClusterServerlessResult.h include/alibabacloud/polardb/model/EnableFirewallRulesRequest.h include/alibabacloud/polardb/model/EnableFirewallRulesResult.h + include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesRequest.h + include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesResult.h include/alibabacloud/polardb/model/EvaluateRegionResourceRequest.h include/alibabacloud/polardb/model/EvaluateRegionResourceResult.h + include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIRequest.h + include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIResult.h include/alibabacloud/polardb/model/FailoverDBClusterRequest.h include/alibabacloud/polardb/model/FailoverDBClusterResult.h + include/alibabacloud/polardb/model/FailoverDBClusterZonalRequest.h + include/alibabacloud/polardb/model/FailoverDBClusterZonalResult.h + include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneRequest.h + include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneResult.h include/alibabacloud/polardb/model/GrantAccountPrivilegeRequest.h include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h + include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalRequest.h + include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalResult.h + include/alibabacloud/polardb/model/ListOrdersRequest.h + include/alibabacloud/polardb/model/ListOrdersResult.h include/alibabacloud/polardb/model/ListTagResourcesRequest.h include/alibabacloud/polardb/model/ListTagResourcesResult.h + include/alibabacloud/polardb/model/ListTagResourcesForRegionRequest.h + include/alibabacloud/polardb/model/ListTagResourcesForRegionResult.h include/alibabacloud/polardb/model/ManuallyStartDBClusterRequest.h include/alibabacloud/polardb/model/ManuallyStartDBClusterResult.h + include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionResult.h include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h + include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalRequest.h + include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalResult.h + include/alibabacloud/polardb/model/ModifyAccountLockStateRequest.h + include/alibabacloud/polardb/model/ModifyAccountLockStateResult.h include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h include/alibabacloud/polardb/model/ModifyAccountPasswordResult.h + include/alibabacloud/polardb/model/ModifyAccountPasswordZonalRequest.h + include/alibabacloud/polardb/model/ModifyAccountPasswordZonalResult.h + include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfRequest.h + include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfResult.h include/alibabacloud/polardb/model/ModifyActiveOperationTasksRequest.h include/alibabacloud/polardb/model/ModifyActiveOperationTasksResult.h + include/alibabacloud/polardb/model/ModifyApplicationDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyApplicationDescriptionResult.h + include/alibabacloud/polardb/model/ModifyApplicationParameterRequest.h + include/alibabacloud/polardb/model/ModifyApplicationParameterResult.h + include/alibabacloud/polardb/model/ModifyApplicationServerlessConfRequest.h + include/alibabacloud/polardb/model/ModifyApplicationServerlessConfResult.h + include/alibabacloud/polardb/model/ModifyApplicationWhitelistRequest.h + include/alibabacloud/polardb/model/ModifyApplicationWhitelistResult.h include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h include/alibabacloud/polardb/model/ModifyAutoRenewAttributeResult.h include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h + include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessRequest.h + include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessResult.h include/alibabacloud/polardb/model/ModifyDBClusterRequest.h include/alibabacloud/polardb/model/ModifyDBClusterResult.h include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersRequest.h include/alibabacloud/polardb/model/ModifyDBClusterAndNodesParametersResult.h + include/alibabacloud/polardb/model/ModifyDBClusterArchRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterArchResult.h include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h include/alibabacloud/polardb/model/ModifyDBClusterDeletionRequest.h include/alibabacloud/polardb/model/ModifyDBClusterDeletionResult.h include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h + include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalResult.h include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h include/alibabacloud/polardb/model/ModifyDBClusterEndpointResult.h + include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalResult.h include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeRequest.h include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h + include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointResult.h include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h include/alibabacloud/polardb/model/ModifyDBClusterMonitorResult.h include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h @@ -271,18 +471,34 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceResult.h include/alibabacloud/polardb/model/ModifyDBClusterTDERequest.h include/alibabacloud/polardb/model/ModifyDBClusterTDEResult.h + include/alibabacloud/polardb/model/ModifyDBClusterVpcRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterVpcResult.h include/alibabacloud/polardb/model/ModifyDBDescriptionRequest.h include/alibabacloud/polardb/model/ModifyDBDescriptionResult.h + include/alibabacloud/polardb/model/ModifyDBDescriptionZonalRequest.h + include/alibabacloud/polardb/model/ModifyDBDescriptionZonalResult.h include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h + include/alibabacloud/polardb/model/ModifyDBNodeConfigRequest.h + include/alibabacloud/polardb/model/ModifyDBNodeConfigResult.h + include/alibabacloud/polardb/model/ModifyDBNodeDescriptionRequest.h + include/alibabacloud/polardb/model/ModifyDBNodeDescriptionResult.h include/alibabacloud/polardb/model/ModifyDBNodeHotReplicaModeRequest.h include/alibabacloud/polardb/model/ModifyDBNodeHotReplicaModeResult.h + include/alibabacloud/polardb/model/ModifyDBNodeSccModeRequest.h + include/alibabacloud/polardb/model/ModifyDBNodeSccModeResult.h include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h include/alibabacloud/polardb/model/ModifyDBNodesClassResult.h include/alibabacloud/polardb/model/ModifyDBNodesParametersRequest.h include/alibabacloud/polardb/model/ModifyDBNodesParametersResult.h + include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeRequest.h + include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeResult.h + include/alibabacloud/polardb/model/ModifyEncryptionDBSecretRequest.h + include/alibabacloud/polardb/model/ModifyEncryptionDBSecretResult.h + include/alibabacloud/polardb/model/ModifyFirewallRulesRequest.h + include/alibabacloud/polardb/model/ModifyFirewallRulesResult.h include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/ModifyGlobalSecurityIPGroupRequest.h @@ -297,24 +513,40 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ModifyMaskingRulesResult.h include/alibabacloud/polardb/model/ModifyPendingMaintenanceActionRequest.h include/alibabacloud/polardb/model/ModifyPendingMaintenanceActionResult.h + include/alibabacloud/polardb/model/ModifyResourcePackageRequest.h + include/alibabacloud/polardb/model/ModifyResourcePackageResult.h + include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesRequest.h + include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesResult.h + include/alibabacloud/polardb/model/ModifyScheduleTaskRequest.h + include/alibabacloud/polardb/model/ModifyScheduleTaskResult.h include/alibabacloud/polardb/model/OpenAITaskRequest.h include/alibabacloud/polardb/model/OpenAITaskResult.h + include/alibabacloud/polardb/model/ReactivateDBClusterBackupRequest.h + include/alibabacloud/polardb/model/ReactivateDBClusterBackupResult.h include/alibabacloud/polardb/model/RefreshDBClusterStorageUsageRequest.h include/alibabacloud/polardb/model/RefreshDBClusterStorageUsageResult.h include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h include/alibabacloud/polardb/model/RemoveDBClusterFromGDNResult.h include/alibabacloud/polardb/model/ResetAccountRequest.h include/alibabacloud/polardb/model/ResetAccountResult.h + include/alibabacloud/polardb/model/ResetAccountPasswordRequest.h + include/alibabacloud/polardb/model/ResetAccountPasswordResult.h + include/alibabacloud/polardb/model/ResetAccountZonalRequest.h + include/alibabacloud/polardb/model/ResetAccountZonalResult.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/RestartDBNodeZonalRequest.h + include/alibabacloud/polardb/model/RestartDBNodeZonalResult.h include/alibabacloud/polardb/model/RestoreTableRequest.h include/alibabacloud/polardb/model/RestoreTableResult.h include/alibabacloud/polardb/model/RevokeAccountPrivilegeRequest.h include/alibabacloud/polardb/model/RevokeAccountPrivilegeResult.h + include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalRequest.h + include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalResult.h include/alibabacloud/polardb/model/SwitchOverGlobalDatabaseNetworkRequest.h include/alibabacloud/polardb/model/SwitchOverGlobalDatabaseNetworkResult.h include/alibabacloud/polardb/model/TagResourcesRequest.h @@ -325,19 +557,41 @@ 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/UpdateExtensionsRequest.h + include/alibabacloud/polardb/model/UpdateExtensionsResult.h include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h - include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h ) + include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h + include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalRequest.h + include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalResult.h ) set(polardb_src src/PolardbClient.cc + src/model/AbortDBClusterMigrationRequest.cc + src/model/AbortDBClusterMigrationResult.cc + src/model/AddEncryptionDBRolePrivilegeRequest.cc + src/model/AddEncryptionDBRolePrivilegeResult.cc + src/model/AddFirewallRulesRequest.cc + src/model/AddFirewallRulesResult.cc + src/model/AddSQLRateLimitingRulesRequest.cc + src/model/AddSQLRateLimitingRulesResult.cc + src/model/AttachApplicationPolarFSRequest.cc + src/model/AttachApplicationPolarFSResult.cc src/model/CancelActiveOperationTasksRequest.cc src/model/CancelActiveOperationTasksResult.cc + src/model/CancelCronJobPolicyServerlessRequest.cc + src/model/CancelCronJobPolicyServerlessResult.cc src/model/CancelScheduleTasksRequest.cc src/model/CancelScheduleTasksResult.cc src/model/CheckAccountNameRequest.cc src/model/CheckAccountNameResult.cc + src/model/CheckAccountNameZonalRequest.cc + src/model/CheckAccountNameZonalResult.cc + src/model/CheckConnectionStringRequest.cc + src/model/CheckConnectionStringResult.cc src/model/CheckDBNameRequest.cc src/model/CheckDBNameResult.cc + src/model/CheckDBNameZonalRequest.cc + src/model/CheckDBNameZonalResult.cc src/model/CheckKMSAuthorizedRequest.cc src/model/CheckKMSAuthorizedResult.cc src/model/CheckServiceLinkedRoleRequest.cc @@ -346,18 +600,30 @@ set(polardb_src src/model/CloseAITaskResult.cc src/model/CloseDBClusterMigrationRequest.cc src/model/CloseDBClusterMigrationResult.cc + src/model/ContinueDBClusterMigrationRequest.cc + src/model/ContinueDBClusterMigrationResult.cc src/model/CreateAccountRequest.cc src/model/CreateAccountResult.cc + src/model/CreateAccountZonalRequest.cc + src/model/CreateAccountZonalResult.cc src/model/CreateActivationCodeRequest.cc src/model/CreateActivationCodeResult.cc + src/model/CreateApplicationRequest.cc + src/model/CreateApplicationResult.cc + src/model/CreateApplicationEndpointAddressRequest.cc + src/model/CreateApplicationEndpointAddressResult.cc src/model/CreateBackupRequest.cc src/model/CreateBackupResult.cc src/model/CreateColdStorageInstanceRequest.cc src/model/CreateColdStorageInstanceResult.cc + src/model/CreateCronJobPolicyServerlessRequest.cc + src/model/CreateCronJobPolicyServerlessResult.cc src/model/CreateDBClusterRequest.cc src/model/CreateDBClusterResult.cc src/model/CreateDBClusterEndpointRequest.cc src/model/CreateDBClusterEndpointResult.cc + src/model/CreateDBClusterEndpointZonalRequest.cc + src/model/CreateDBClusterEndpointZonalResult.cc src/model/CreateDBEndpointAddressRequest.cc src/model/CreateDBEndpointAddressResult.cc src/model/CreateDBLinkRequest.cc @@ -366,10 +632,18 @@ set(polardb_src src/model/CreateDBNodesResult.cc src/model/CreateDatabaseRequest.cc src/model/CreateDatabaseResult.cc + src/model/CreateDatabaseZonalRequest.cc + src/model/CreateDatabaseZonalResult.cc + src/model/CreateExtensionsRequest.cc + src/model/CreateExtensionsResult.cc + src/model/CreateGlobalDataNetworkRequest.cc + src/model/CreateGlobalDataNetworkResult.cc src/model/CreateGlobalDatabaseNetworkRequest.cc src/model/CreateGlobalDatabaseNetworkResult.cc src/model/CreateGlobalSecurityIPGroupRequest.cc src/model/CreateGlobalSecurityIPGroupResult.cc + src/model/CreateNetworkChannelRequest.cc + src/model/CreateNetworkChannelResult.cc src/model/CreateOrGetVirtualLicenseOrderRequest.cc src/model/CreateOrGetVirtualLicenseOrderResult.cc src/model/CreateParameterGroupRequest.cc @@ -378,14 +652,24 @@ set(polardb_src src/model/CreateServiceLinkedRoleResult.cc src/model/CreateStoragePlanRequest.cc src/model/CreateStoragePlanResult.cc + src/model/DeleteAIDBClusterRequest.cc + src/model/DeleteAIDBClusterResult.cc src/model/DeleteAccountRequest.cc src/model/DeleteAccountResult.cc + src/model/DeleteAccountZonalRequest.cc + src/model/DeleteAccountZonalResult.cc + src/model/DeleteApplicationRequest.cc + src/model/DeleteApplicationResult.cc + src/model/DeleteApplicationEndpointAddressRequest.cc + src/model/DeleteApplicationEndpointAddressResult.cc src/model/DeleteBackupRequest.cc src/model/DeleteBackupResult.cc src/model/DeleteDBClusterRequest.cc src/model/DeleteDBClusterResult.cc src/model/DeleteDBClusterEndpointRequest.cc src/model/DeleteDBClusterEndpointResult.cc + src/model/DeleteDBClusterEndpointZonalRequest.cc + src/model/DeleteDBClusterEndpointZonalResult.cc src/model/DeleteDBEndpointAddressRequest.cc src/model/DeleteDBEndpointAddressResult.cc src/model/DeleteDBLinkRequest.cc @@ -394,30 +678,66 @@ set(polardb_src src/model/DeleteDBNodesResult.cc src/model/DeleteDatabaseRequest.cc src/model/DeleteDatabaseResult.cc + src/model/DeleteDatabaseZonalRequest.cc + src/model/DeleteDatabaseZonalResult.cc + src/model/DeleteEncryptionDBRolePrivilegeRequest.cc + src/model/DeleteEncryptionDBRolePrivilegeResult.cc + src/model/DeleteExtensionsRequest.cc + src/model/DeleteExtensionsResult.cc + src/model/DeleteFirewallRulesRequest.cc + src/model/DeleteFirewallRulesResult.cc + src/model/DeleteGlobalDataNetworkRequest.cc + src/model/DeleteGlobalDataNetworkResult.cc src/model/DeleteGlobalDatabaseNetworkRequest.cc src/model/DeleteGlobalDatabaseNetworkResult.cc src/model/DeleteGlobalSecurityIPGroupRequest.cc src/model/DeleteGlobalSecurityIPGroupResult.cc src/model/DeleteMaskingRulesRequest.cc src/model/DeleteMaskingRulesResult.cc + src/model/DeleteNetworkChannelRequest.cc + src/model/DeleteNetworkChannelResult.cc src/model/DeleteParameterGroupRequest.cc src/model/DeleteParameterGroupResult.cc + src/model/DeleteSQLRateLimitingRulesRequest.cc + src/model/DeleteSQLRateLimitingRulesResult.cc + src/model/DescribeAIDBClusterAttributeRequest.cc + src/model/DescribeAIDBClusterAttributeResult.cc + src/model/DescribeAIDBClusterPerformanceRequest.cc + src/model/DescribeAIDBClusterPerformanceResult.cc + src/model/DescribeAIDBClustersRequest.cc + src/model/DescribeAIDBClustersResult.cc src/model/DescribeAITaskStatusRequest.cc src/model/DescribeAITaskStatusResult.cc src/model/DescribeAccountsRequest.cc src/model/DescribeAccountsResult.cc + src/model/DescribeAccountsZonalRequest.cc + src/model/DescribeAccountsZonalResult.cc src/model/DescribeActivationCodeDetailsRequest.cc src/model/DescribeActivationCodeDetailsResult.cc src/model/DescribeActivationCodesRequest.cc src/model/DescribeActivationCodesResult.cc + src/model/DescribeActiveOperationMaintainConfRequest.cc + src/model/DescribeActiveOperationMaintainConfResult.cc src/model/DescribeActiveOperationTasksRequest.cc src/model/DescribeActiveOperationTasksResult.cc + src/model/DescribeApplicationAttributeRequest.cc + src/model/DescribeApplicationAttributeResult.cc + src/model/DescribeApplicationParametersRequest.cc + src/model/DescribeApplicationParametersResult.cc + src/model/DescribeApplicationServerlessConfRequest.cc + src/model/DescribeApplicationServerlessConfResult.cc + src/model/DescribeApplicationsRequest.cc + src/model/DescribeApplicationsResult.cc src/model/DescribeAutoRenewAttributeRequest.cc src/model/DescribeAutoRenewAttributeResult.cc + src/model/DescribeAvailableCrossRegionsRequest.cc + src/model/DescribeAvailableCrossRegionsResult.cc src/model/DescribeBackupLogsRequest.cc src/model/DescribeBackupLogsResult.cc src/model/DescribeBackupPolicyRequest.cc src/model/DescribeBackupPolicyResult.cc + src/model/DescribeBackupRegionsRequest.cc + src/model/DescribeBackupRegionsResult.cc src/model/DescribeBackupTasksRequest.cc src/model/DescribeBackupTasksResult.cc src/model/DescribeBackupsRequest.cc @@ -426,6 +746,16 @@ set(polardb_src src/model/DescribeCharacterSetNameResult.cc src/model/DescribeClassListRequest.cc src/model/DescribeClassListResult.cc + src/model/DescribeColdStorageInstanceRequest.cc + src/model/DescribeColdStorageInstanceResult.cc + src/model/DescribeCronJobPolicyServerlessRequest.cc + src/model/DescribeCronJobPolicyServerlessResult.cc + src/model/DescribeCrossCloudLevelsRequest.cc + src/model/DescribeCrossCloudLevelsResult.cc + src/model/DescribeCrossCloudRegionRequest.cc + src/model/DescribeCrossCloudRegionResult.cc + src/model/DescribeCrossCloudRegionMappingToAliyunRequest.cc + src/model/DescribeCrossCloudRegionMappingToAliyunResult.cc src/model/DescribeDBClusterAccessWhitelistRequest.cc src/model/DescribeDBClusterAccessWhitelistResult.cc src/model/DescribeDBClusterAttributeRequest.cc @@ -436,16 +766,24 @@ set(polardb_src src/model/DescribeDBClusterAvailableResourcesResult.cc src/model/DescribeDBClusterConnectivityRequest.cc src/model/DescribeDBClusterConnectivityResult.cc + src/model/DescribeDBClusterEncryptionKeyRequest.cc + src/model/DescribeDBClusterEncryptionKeyResult.cc src/model/DescribeDBClusterEndpointsRequest.cc src/model/DescribeDBClusterEndpointsResult.cc + src/model/DescribeDBClusterEndpointsZonalRequest.cc + src/model/DescribeDBClusterEndpointsZonalResult.cc src/model/DescribeDBClusterMigrationRequest.cc src/model/DescribeDBClusterMigrationResult.cc src/model/DescribeDBClusterMonitorRequest.cc src/model/DescribeDBClusterMonitorResult.cc + src/model/DescribeDBClusterNetInfoRequest.cc + src/model/DescribeDBClusterNetInfoResult.cc src/model/DescribeDBClusterParametersRequest.cc src/model/DescribeDBClusterParametersResult.cc src/model/DescribeDBClusterPerformanceRequest.cc src/model/DescribeDBClusterPerformanceResult.cc + src/model/DescribeDBClusterProxyRequest.cc + src/model/DescribeDBClusterProxyResult.cc src/model/DescribeDBClusterSSLRequest.cc src/model/DescribeDBClusterSSLResult.cc src/model/DescribeDBClusterServerlessConfRequest.cc @@ -454,14 +792,24 @@ set(polardb_src src/model/DescribeDBClusterTDEResult.cc src/model/DescribeDBClusterVersionRequest.cc src/model/DescribeDBClusterVersionResult.cc + src/model/DescribeDBClusterVersionZonalRequest.cc + src/model/DescribeDBClusterVersionZonalResult.cc src/model/DescribeDBClustersRequest.cc src/model/DescribeDBClustersResult.cc src/model/DescribeDBClustersWithBackupsRequest.cc src/model/DescribeDBClustersWithBackupsResult.cc + src/model/DescribeDBClustersZonalRequest.cc + src/model/DescribeDBClustersZonalResult.cc src/model/DescribeDBInitializeVariableRequest.cc src/model/DescribeDBInitializeVariableResult.cc + src/model/DescribeDBInstancePerformanceRequest.cc + src/model/DescribeDBInstancePerformanceResult.cc src/model/DescribeDBLinksRequest.cc src/model/DescribeDBLinksResult.cc + src/model/DescribeDBLogFilesRequest.cc + src/model/DescribeDBLogFilesResult.cc + src/model/DescribeDBMiniEngineVersionsRequest.cc + src/model/DescribeDBMiniEngineVersionsResult.cc src/model/DescribeDBNodePerformanceRequest.cc src/model/DescribeDBNodePerformanceResult.cc src/model/DescribeDBNodesParametersRequest.cc @@ -472,8 +820,22 @@ set(polardb_src src/model/DescribeDasConfigResult.cc src/model/DescribeDatabasesRequest.cc src/model/DescribeDatabasesResult.cc + src/model/DescribeDatabasesZonalRequest.cc + src/model/DescribeDatabasesZonalResult.cc + src/model/DescribeDbClusterAttributeZonalRequest.cc + src/model/DescribeDbClusterAttributeZonalResult.cc src/model/DescribeDetachedBackupsRequest.cc src/model/DescribeDetachedBackupsResult.cc + src/model/DescribeEncryptionDBRolePrivilegeRequest.cc + src/model/DescribeEncryptionDBRolePrivilegeResult.cc + src/model/DescribeEncryptionDBSecretRequest.cc + src/model/DescribeEncryptionDBSecretResult.cc + src/model/DescribeExtensionsRequest.cc + src/model/DescribeExtensionsResult.cc + src/model/DescribeFirewallRulesRequest.cc + src/model/DescribeFirewallRulesResult.cc + src/model/DescribeGlobalDataNetworkListRequest.cc + src/model/DescribeGlobalDataNetworkListResult.cc src/model/DescribeGlobalDatabaseNetworkRequest.cc src/model/DescribeGlobalDatabaseNetworkResult.cc src/model/DescribeGlobalDatabaseNetworksRequest.cc @@ -482,16 +844,28 @@ set(polardb_src src/model/DescribeGlobalSecurityIPGroupResult.cc src/model/DescribeGlobalSecurityIPGroupRelationRequest.cc src/model/DescribeGlobalSecurityIPGroupRelationResult.cc + src/model/DescribeHALogsRequest.cc + src/model/DescribeHALogsResult.cc + src/model/DescribeHistoryTasksRequest.cc + src/model/DescribeHistoryTasksResult.cc + src/model/DescribeHistoryTasksStatRequest.cc + src/model/DescribeHistoryTasksStatResult.cc src/model/DescribeLicenseOrderDetailsRequest.cc src/model/DescribeLicenseOrderDetailsResult.cc src/model/DescribeLicenseOrdersRequest.cc src/model/DescribeLicenseOrdersResult.cc + src/model/DescribeLocalAvailableRecoveryTimeRequest.cc + src/model/DescribeLocalAvailableRecoveryTimeResult.cc src/model/DescribeLogBackupPolicyRequest.cc src/model/DescribeLogBackupPolicyResult.cc src/model/DescribeMaskingRulesRequest.cc src/model/DescribeMaskingRulesResult.cc src/model/DescribeMetaListRequest.cc src/model/DescribeMetaListResult.cc + src/model/DescribeModifyParameterLogRequest.cc + src/model/DescribeModifyParameterLogResult.cc + src/model/DescribeNetworkChannelRequest.cc + src/model/DescribeNetworkChannelResult.cc src/model/DescribeParameterGroupRequest.cc src/model/DescribeParameterGroupResult.cc src/model/DescribeParameterGroupsRequest.cc @@ -504,8 +878,16 @@ set(polardb_src src/model/DescribePendingMaintenanceActionsResult.cc src/model/DescribePolarSQLCollectorPolicyRequest.cc src/model/DescribePolarSQLCollectorPolicyResult.cc + src/model/DescribeRdsVSwitchsRequest.cc + src/model/DescribeRdsVSwitchsResult.cc + src/model/DescribeRdsVpcsRequest.cc + src/model/DescribeRdsVpcsResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc + src/model/DescribeResourcePackagesRequest.cc + src/model/DescribeResourcePackagesResult.cc + src/model/DescribeSQLRateLimitingRulesRequest.cc + src/model/DescribeSQLRateLimitingRulesResult.cc src/model/DescribeScheduleTasksRequest.cc src/model/DescribeScheduleTasksResult.cc src/model/DescribeSlowLogRecordsRequest.cc @@ -514,54 +896,108 @@ set(polardb_src src/model/DescribeSlowLogsResult.cc src/model/DescribeTasksRequest.cc src/model/DescribeTasksResult.cc + src/model/DescribeUpgradeReportRequest.cc + src/model/DescribeUpgradeReportResult.cc src/model/DescribeUserEncryptionKeyListRequest.cc src/model/DescribeUserEncryptionKeyListResult.cc + src/model/DescribeVSwitchListRequest.cc + src/model/DescribeVSwitchListResult.cc src/model/DescribeVSwitchesRequest.cc src/model/DescribeVSwitchesResult.cc + src/model/DescribeVpcsRequest.cc + src/model/DescribeVpcsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/DisableDBClusterOrcaRequest.cc + src/model/DisableDBClusterOrcaResult.cc src/model/DisableDBClusterServerlessRequest.cc src/model/DisableDBClusterServerlessResult.cc + src/model/EnableDBClusterOrcaRequest.cc + src/model/EnableDBClusterOrcaResult.cc src/model/EnableDBClusterServerlessRequest.cc src/model/EnableDBClusterServerlessResult.cc src/model/EnableFirewallRulesRequest.cc src/model/EnableFirewallRulesResult.cc + src/model/EnableSQLRateLimitingRulesRequest.cc + src/model/EnableSQLRateLimitingRulesResult.cc src/model/EvaluateRegionResourceRequest.cc src/model/EvaluateRegionResourceResult.cc + src/model/ExecuteCrossCloudOpenAPIRequest.cc + src/model/ExecuteCrossCloudOpenAPIResult.cc src/model/FailoverDBClusterRequest.cc src/model/FailoverDBClusterResult.cc + src/model/FailoverDBClusterZonalRequest.cc + src/model/FailoverDBClusterZonalResult.cc + src/model/GenerateUpgradeReportForSyncCloneRequest.cc + src/model/GenerateUpgradeReportForSyncCloneResult.cc src/model/GrantAccountPrivilegeRequest.cc src/model/GrantAccountPrivilegeResult.cc + src/model/GrantAccountPrivilegeZonalRequest.cc + src/model/GrantAccountPrivilegeZonalResult.cc + src/model/ListOrdersRequest.cc + src/model/ListOrdersResult.cc src/model/ListTagResourcesRequest.cc src/model/ListTagResourcesResult.cc + src/model/ListTagResourcesForRegionRequest.cc + src/model/ListTagResourcesForRegionResult.cc src/model/ManuallyStartDBClusterRequest.cc src/model/ManuallyStartDBClusterResult.cc + src/model/ModifyAIDBClusterDescriptionRequest.cc + src/model/ModifyAIDBClusterDescriptionResult.cc src/model/ModifyAccountDescriptionRequest.cc src/model/ModifyAccountDescriptionResult.cc + src/model/ModifyAccountDescriptionZonalRequest.cc + src/model/ModifyAccountDescriptionZonalResult.cc + src/model/ModifyAccountLockStateRequest.cc + src/model/ModifyAccountLockStateResult.cc src/model/ModifyAccountPasswordRequest.cc src/model/ModifyAccountPasswordResult.cc + src/model/ModifyAccountPasswordZonalRequest.cc + src/model/ModifyAccountPasswordZonalResult.cc + src/model/ModifyActiveOperationMaintainConfRequest.cc + src/model/ModifyActiveOperationMaintainConfResult.cc src/model/ModifyActiveOperationTasksRequest.cc src/model/ModifyActiveOperationTasksResult.cc + src/model/ModifyApplicationDescriptionRequest.cc + src/model/ModifyApplicationDescriptionResult.cc + src/model/ModifyApplicationParameterRequest.cc + src/model/ModifyApplicationParameterResult.cc + src/model/ModifyApplicationServerlessConfRequest.cc + src/model/ModifyApplicationServerlessConfResult.cc + src/model/ModifyApplicationWhitelistRequest.cc + src/model/ModifyApplicationWhitelistResult.cc src/model/ModifyAutoRenewAttributeRequest.cc src/model/ModifyAutoRenewAttributeResult.cc src/model/ModifyBackupPolicyRequest.cc src/model/ModifyBackupPolicyResult.cc + src/model/ModifyCronJobPolicyServerlessRequest.cc + src/model/ModifyCronJobPolicyServerlessResult.cc src/model/ModifyDBClusterRequest.cc src/model/ModifyDBClusterResult.cc src/model/ModifyDBClusterAccessWhitelistRequest.cc src/model/ModifyDBClusterAccessWhitelistResult.cc src/model/ModifyDBClusterAndNodesParametersRequest.cc src/model/ModifyDBClusterAndNodesParametersResult.cc + src/model/ModifyDBClusterArchRequest.cc + src/model/ModifyDBClusterArchResult.cc src/model/ModifyDBClusterAuditLogCollectorRequest.cc src/model/ModifyDBClusterAuditLogCollectorResult.cc src/model/ModifyDBClusterDeletionRequest.cc src/model/ModifyDBClusterDeletionResult.cc src/model/ModifyDBClusterDescriptionRequest.cc src/model/ModifyDBClusterDescriptionResult.cc + src/model/ModifyDBClusterDescriptionZonalRequest.cc + src/model/ModifyDBClusterDescriptionZonalResult.cc src/model/ModifyDBClusterEndpointRequest.cc src/model/ModifyDBClusterEndpointResult.cc + src/model/ModifyDBClusterEndpointZonalRequest.cc + src/model/ModifyDBClusterEndpointZonalResult.cc src/model/ModifyDBClusterMaintainTimeRequest.cc src/model/ModifyDBClusterMaintainTimeResult.cc src/model/ModifyDBClusterMigrationRequest.cc src/model/ModifyDBClusterMigrationResult.cc + src/model/ModifyDBClusterMigrationEndpointRequest.cc + src/model/ModifyDBClusterMigrationEndpointResult.cc src/model/ModifyDBClusterMonitorRequest.cc src/model/ModifyDBClusterMonitorResult.cc src/model/ModifyDBClusterParametersRequest.cc @@ -580,18 +1016,34 @@ set(polardb_src src/model/ModifyDBClusterStorageSpaceResult.cc src/model/ModifyDBClusterTDERequest.cc src/model/ModifyDBClusterTDEResult.cc + src/model/ModifyDBClusterVpcRequest.cc + src/model/ModifyDBClusterVpcResult.cc src/model/ModifyDBDescriptionRequest.cc src/model/ModifyDBDescriptionResult.cc + src/model/ModifyDBDescriptionZonalRequest.cc + src/model/ModifyDBDescriptionZonalResult.cc src/model/ModifyDBEndpointAddressRequest.cc src/model/ModifyDBEndpointAddressResult.cc src/model/ModifyDBNodeClassRequest.cc src/model/ModifyDBNodeClassResult.cc + src/model/ModifyDBNodeConfigRequest.cc + src/model/ModifyDBNodeConfigResult.cc + src/model/ModifyDBNodeDescriptionRequest.cc + src/model/ModifyDBNodeDescriptionResult.cc src/model/ModifyDBNodeHotReplicaModeRequest.cc src/model/ModifyDBNodeHotReplicaModeResult.cc + src/model/ModifyDBNodeSccModeRequest.cc + src/model/ModifyDBNodeSccModeResult.cc src/model/ModifyDBNodesClassRequest.cc src/model/ModifyDBNodesClassResult.cc src/model/ModifyDBNodesParametersRequest.cc src/model/ModifyDBNodesParametersResult.cc + src/model/ModifyEncryptionDBRolePrivilegeRequest.cc + src/model/ModifyEncryptionDBRolePrivilegeResult.cc + src/model/ModifyEncryptionDBSecretRequest.cc + src/model/ModifyEncryptionDBSecretResult.cc + src/model/ModifyFirewallRulesRequest.cc + src/model/ModifyFirewallRulesResult.cc src/model/ModifyGlobalDatabaseNetworkRequest.cc src/model/ModifyGlobalDatabaseNetworkResult.cc src/model/ModifyGlobalSecurityIPGroupRequest.cc @@ -606,24 +1058,40 @@ set(polardb_src src/model/ModifyMaskingRulesResult.cc src/model/ModifyPendingMaintenanceActionRequest.cc src/model/ModifyPendingMaintenanceActionResult.cc + src/model/ModifyResourcePackageRequest.cc + src/model/ModifyResourcePackageResult.cc + src/model/ModifySQLRateLimitingRulesRequest.cc + src/model/ModifySQLRateLimitingRulesResult.cc + src/model/ModifyScheduleTaskRequest.cc + src/model/ModifyScheduleTaskResult.cc src/model/OpenAITaskRequest.cc src/model/OpenAITaskResult.cc + src/model/ReactivateDBClusterBackupRequest.cc + src/model/ReactivateDBClusterBackupResult.cc src/model/RefreshDBClusterStorageUsageRequest.cc src/model/RefreshDBClusterStorageUsageResult.cc src/model/RemoveDBClusterFromGDNRequest.cc src/model/RemoveDBClusterFromGDNResult.cc src/model/ResetAccountRequest.cc src/model/ResetAccountResult.cc + src/model/ResetAccountPasswordRequest.cc + src/model/ResetAccountPasswordResult.cc + src/model/ResetAccountZonalRequest.cc + src/model/ResetAccountZonalResult.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/RestartDBNodeZonalRequest.cc + src/model/RestartDBNodeZonalResult.cc src/model/RestoreTableRequest.cc src/model/RestoreTableResult.cc src/model/RevokeAccountPrivilegeRequest.cc src/model/RevokeAccountPrivilegeResult.cc + src/model/RevokeAccountPrivilegeZonalRequest.cc + src/model/RevokeAccountPrivilegeZonalResult.cc src/model/SwitchOverGlobalDatabaseNetworkRequest.cc src/model/SwitchOverGlobalDatabaseNetworkResult.cc src/model/TagResourcesRequest.cc @@ -634,8 +1102,12 @@ set(polardb_src src/model/TransformDBClusterPayTypeResult.cc src/model/UntagResourcesRequest.cc src/model/UntagResourcesResult.cc + src/model/UpdateExtensionsRequest.cc + src/model/UpdateExtensionsResult.cc src/model/UpgradeDBClusterVersionRequest.cc - src/model/UpgradeDBClusterVersionResult.cc ) + src/model/UpgradeDBClusterVersionResult.cc + src/model/UpgradeDBClusterVersionZonalRequest.cc + src/model/UpgradeDBClusterVersionZonalResult.cc ) add_library(polardb ${LIB_TYPE} ${polardb_public_header} diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h index a87a6e617..ebc8edef0 100644 --- a/polardb/include/alibabacloud/polardb/PolardbClient.h +++ b/polardb/include/alibabacloud/polardb/PolardbClient.h @@ -22,14 +22,32 @@ #include #include #include "PolardbExport.h" +#include "model/AbortDBClusterMigrationRequest.h" +#include "model/AbortDBClusterMigrationResult.h" +#include "model/AddEncryptionDBRolePrivilegeRequest.h" +#include "model/AddEncryptionDBRolePrivilegeResult.h" +#include "model/AddFirewallRulesRequest.h" +#include "model/AddFirewallRulesResult.h" +#include "model/AddSQLRateLimitingRulesRequest.h" +#include "model/AddSQLRateLimitingRulesResult.h" +#include "model/AttachApplicationPolarFSRequest.h" +#include "model/AttachApplicationPolarFSResult.h" #include "model/CancelActiveOperationTasksRequest.h" #include "model/CancelActiveOperationTasksResult.h" +#include "model/CancelCronJobPolicyServerlessRequest.h" +#include "model/CancelCronJobPolicyServerlessResult.h" #include "model/CancelScheduleTasksRequest.h" #include "model/CancelScheduleTasksResult.h" #include "model/CheckAccountNameRequest.h" #include "model/CheckAccountNameResult.h" +#include "model/CheckAccountNameZonalRequest.h" +#include "model/CheckAccountNameZonalResult.h" +#include "model/CheckConnectionStringRequest.h" +#include "model/CheckConnectionStringResult.h" #include "model/CheckDBNameRequest.h" #include "model/CheckDBNameResult.h" +#include "model/CheckDBNameZonalRequest.h" +#include "model/CheckDBNameZonalResult.h" #include "model/CheckKMSAuthorizedRequest.h" #include "model/CheckKMSAuthorizedResult.h" #include "model/CheckServiceLinkedRoleRequest.h" @@ -38,18 +56,30 @@ #include "model/CloseAITaskResult.h" #include "model/CloseDBClusterMigrationRequest.h" #include "model/CloseDBClusterMigrationResult.h" +#include "model/ContinueDBClusterMigrationRequest.h" +#include "model/ContinueDBClusterMigrationResult.h" #include "model/CreateAccountRequest.h" #include "model/CreateAccountResult.h" +#include "model/CreateAccountZonalRequest.h" +#include "model/CreateAccountZonalResult.h" #include "model/CreateActivationCodeRequest.h" #include "model/CreateActivationCodeResult.h" +#include "model/CreateApplicationRequest.h" +#include "model/CreateApplicationResult.h" +#include "model/CreateApplicationEndpointAddressRequest.h" +#include "model/CreateApplicationEndpointAddressResult.h" #include "model/CreateBackupRequest.h" #include "model/CreateBackupResult.h" #include "model/CreateColdStorageInstanceRequest.h" #include "model/CreateColdStorageInstanceResult.h" +#include "model/CreateCronJobPolicyServerlessRequest.h" +#include "model/CreateCronJobPolicyServerlessResult.h" #include "model/CreateDBClusterRequest.h" #include "model/CreateDBClusterResult.h" #include "model/CreateDBClusterEndpointRequest.h" #include "model/CreateDBClusterEndpointResult.h" +#include "model/CreateDBClusterEndpointZonalRequest.h" +#include "model/CreateDBClusterEndpointZonalResult.h" #include "model/CreateDBEndpointAddressRequest.h" #include "model/CreateDBEndpointAddressResult.h" #include "model/CreateDBLinkRequest.h" @@ -58,10 +88,18 @@ #include "model/CreateDBNodesResult.h" #include "model/CreateDatabaseRequest.h" #include "model/CreateDatabaseResult.h" +#include "model/CreateDatabaseZonalRequest.h" +#include "model/CreateDatabaseZonalResult.h" +#include "model/CreateExtensionsRequest.h" +#include "model/CreateExtensionsResult.h" +#include "model/CreateGlobalDataNetworkRequest.h" +#include "model/CreateGlobalDataNetworkResult.h" #include "model/CreateGlobalDatabaseNetworkRequest.h" #include "model/CreateGlobalDatabaseNetworkResult.h" #include "model/CreateGlobalSecurityIPGroupRequest.h" #include "model/CreateGlobalSecurityIPGroupResult.h" +#include "model/CreateNetworkChannelRequest.h" +#include "model/CreateNetworkChannelResult.h" #include "model/CreateOrGetVirtualLicenseOrderRequest.h" #include "model/CreateOrGetVirtualLicenseOrderResult.h" #include "model/CreateParameterGroupRequest.h" @@ -70,14 +108,24 @@ #include "model/CreateServiceLinkedRoleResult.h" #include "model/CreateStoragePlanRequest.h" #include "model/CreateStoragePlanResult.h" +#include "model/DeleteAIDBClusterRequest.h" +#include "model/DeleteAIDBClusterResult.h" #include "model/DeleteAccountRequest.h" #include "model/DeleteAccountResult.h" +#include "model/DeleteAccountZonalRequest.h" +#include "model/DeleteAccountZonalResult.h" +#include "model/DeleteApplicationRequest.h" +#include "model/DeleteApplicationResult.h" +#include "model/DeleteApplicationEndpointAddressRequest.h" +#include "model/DeleteApplicationEndpointAddressResult.h" #include "model/DeleteBackupRequest.h" #include "model/DeleteBackupResult.h" #include "model/DeleteDBClusterRequest.h" #include "model/DeleteDBClusterResult.h" #include "model/DeleteDBClusterEndpointRequest.h" #include "model/DeleteDBClusterEndpointResult.h" +#include "model/DeleteDBClusterEndpointZonalRequest.h" +#include "model/DeleteDBClusterEndpointZonalResult.h" #include "model/DeleteDBEndpointAddressRequest.h" #include "model/DeleteDBEndpointAddressResult.h" #include "model/DeleteDBLinkRequest.h" @@ -86,30 +134,66 @@ #include "model/DeleteDBNodesResult.h" #include "model/DeleteDatabaseRequest.h" #include "model/DeleteDatabaseResult.h" +#include "model/DeleteDatabaseZonalRequest.h" +#include "model/DeleteDatabaseZonalResult.h" +#include "model/DeleteEncryptionDBRolePrivilegeRequest.h" +#include "model/DeleteEncryptionDBRolePrivilegeResult.h" +#include "model/DeleteExtensionsRequest.h" +#include "model/DeleteExtensionsResult.h" +#include "model/DeleteFirewallRulesRequest.h" +#include "model/DeleteFirewallRulesResult.h" +#include "model/DeleteGlobalDataNetworkRequest.h" +#include "model/DeleteGlobalDataNetworkResult.h" #include "model/DeleteGlobalDatabaseNetworkRequest.h" #include "model/DeleteGlobalDatabaseNetworkResult.h" #include "model/DeleteGlobalSecurityIPGroupRequest.h" #include "model/DeleteGlobalSecurityIPGroupResult.h" #include "model/DeleteMaskingRulesRequest.h" #include "model/DeleteMaskingRulesResult.h" +#include "model/DeleteNetworkChannelRequest.h" +#include "model/DeleteNetworkChannelResult.h" #include "model/DeleteParameterGroupRequest.h" #include "model/DeleteParameterGroupResult.h" +#include "model/DeleteSQLRateLimitingRulesRequest.h" +#include "model/DeleteSQLRateLimitingRulesResult.h" +#include "model/DescribeAIDBClusterAttributeRequest.h" +#include "model/DescribeAIDBClusterAttributeResult.h" +#include "model/DescribeAIDBClusterPerformanceRequest.h" +#include "model/DescribeAIDBClusterPerformanceResult.h" +#include "model/DescribeAIDBClustersRequest.h" +#include "model/DescribeAIDBClustersResult.h" #include "model/DescribeAITaskStatusRequest.h" #include "model/DescribeAITaskStatusResult.h" #include "model/DescribeAccountsRequest.h" #include "model/DescribeAccountsResult.h" +#include "model/DescribeAccountsZonalRequest.h" +#include "model/DescribeAccountsZonalResult.h" #include "model/DescribeActivationCodeDetailsRequest.h" #include "model/DescribeActivationCodeDetailsResult.h" #include "model/DescribeActivationCodesRequest.h" #include "model/DescribeActivationCodesResult.h" +#include "model/DescribeActiveOperationMaintainConfRequest.h" +#include "model/DescribeActiveOperationMaintainConfResult.h" #include "model/DescribeActiveOperationTasksRequest.h" #include "model/DescribeActiveOperationTasksResult.h" +#include "model/DescribeApplicationAttributeRequest.h" +#include "model/DescribeApplicationAttributeResult.h" +#include "model/DescribeApplicationParametersRequest.h" +#include "model/DescribeApplicationParametersResult.h" +#include "model/DescribeApplicationServerlessConfRequest.h" +#include "model/DescribeApplicationServerlessConfResult.h" +#include "model/DescribeApplicationsRequest.h" +#include "model/DescribeApplicationsResult.h" #include "model/DescribeAutoRenewAttributeRequest.h" #include "model/DescribeAutoRenewAttributeResult.h" +#include "model/DescribeAvailableCrossRegionsRequest.h" +#include "model/DescribeAvailableCrossRegionsResult.h" #include "model/DescribeBackupLogsRequest.h" #include "model/DescribeBackupLogsResult.h" #include "model/DescribeBackupPolicyRequest.h" #include "model/DescribeBackupPolicyResult.h" +#include "model/DescribeBackupRegionsRequest.h" +#include "model/DescribeBackupRegionsResult.h" #include "model/DescribeBackupTasksRequest.h" #include "model/DescribeBackupTasksResult.h" #include "model/DescribeBackupsRequest.h" @@ -118,6 +202,16 @@ #include "model/DescribeCharacterSetNameResult.h" #include "model/DescribeClassListRequest.h" #include "model/DescribeClassListResult.h" +#include "model/DescribeColdStorageInstanceRequest.h" +#include "model/DescribeColdStorageInstanceResult.h" +#include "model/DescribeCronJobPolicyServerlessRequest.h" +#include "model/DescribeCronJobPolicyServerlessResult.h" +#include "model/DescribeCrossCloudLevelsRequest.h" +#include "model/DescribeCrossCloudLevelsResult.h" +#include "model/DescribeCrossCloudRegionRequest.h" +#include "model/DescribeCrossCloudRegionResult.h" +#include "model/DescribeCrossCloudRegionMappingToAliyunRequest.h" +#include "model/DescribeCrossCloudRegionMappingToAliyunResult.h" #include "model/DescribeDBClusterAccessWhitelistRequest.h" #include "model/DescribeDBClusterAccessWhitelistResult.h" #include "model/DescribeDBClusterAttributeRequest.h" @@ -128,16 +222,24 @@ #include "model/DescribeDBClusterAvailableResourcesResult.h" #include "model/DescribeDBClusterConnectivityRequest.h" #include "model/DescribeDBClusterConnectivityResult.h" +#include "model/DescribeDBClusterEncryptionKeyRequest.h" +#include "model/DescribeDBClusterEncryptionKeyResult.h" #include "model/DescribeDBClusterEndpointsRequest.h" #include "model/DescribeDBClusterEndpointsResult.h" +#include "model/DescribeDBClusterEndpointsZonalRequest.h" +#include "model/DescribeDBClusterEndpointsZonalResult.h" #include "model/DescribeDBClusterMigrationRequest.h" #include "model/DescribeDBClusterMigrationResult.h" #include "model/DescribeDBClusterMonitorRequest.h" #include "model/DescribeDBClusterMonitorResult.h" +#include "model/DescribeDBClusterNetInfoRequest.h" +#include "model/DescribeDBClusterNetInfoResult.h" #include "model/DescribeDBClusterParametersRequest.h" #include "model/DescribeDBClusterParametersResult.h" #include "model/DescribeDBClusterPerformanceRequest.h" #include "model/DescribeDBClusterPerformanceResult.h" +#include "model/DescribeDBClusterProxyRequest.h" +#include "model/DescribeDBClusterProxyResult.h" #include "model/DescribeDBClusterSSLRequest.h" #include "model/DescribeDBClusterSSLResult.h" #include "model/DescribeDBClusterServerlessConfRequest.h" @@ -146,14 +248,24 @@ #include "model/DescribeDBClusterTDEResult.h" #include "model/DescribeDBClusterVersionRequest.h" #include "model/DescribeDBClusterVersionResult.h" +#include "model/DescribeDBClusterVersionZonalRequest.h" +#include "model/DescribeDBClusterVersionZonalResult.h" #include "model/DescribeDBClustersRequest.h" #include "model/DescribeDBClustersResult.h" #include "model/DescribeDBClustersWithBackupsRequest.h" #include "model/DescribeDBClustersWithBackupsResult.h" +#include "model/DescribeDBClustersZonalRequest.h" +#include "model/DescribeDBClustersZonalResult.h" #include "model/DescribeDBInitializeVariableRequest.h" #include "model/DescribeDBInitializeVariableResult.h" +#include "model/DescribeDBInstancePerformanceRequest.h" +#include "model/DescribeDBInstancePerformanceResult.h" #include "model/DescribeDBLinksRequest.h" #include "model/DescribeDBLinksResult.h" +#include "model/DescribeDBLogFilesRequest.h" +#include "model/DescribeDBLogFilesResult.h" +#include "model/DescribeDBMiniEngineVersionsRequest.h" +#include "model/DescribeDBMiniEngineVersionsResult.h" #include "model/DescribeDBNodePerformanceRequest.h" #include "model/DescribeDBNodePerformanceResult.h" #include "model/DescribeDBNodesParametersRequest.h" @@ -164,8 +276,22 @@ #include "model/DescribeDasConfigResult.h" #include "model/DescribeDatabasesRequest.h" #include "model/DescribeDatabasesResult.h" +#include "model/DescribeDatabasesZonalRequest.h" +#include "model/DescribeDatabasesZonalResult.h" +#include "model/DescribeDbClusterAttributeZonalRequest.h" +#include "model/DescribeDbClusterAttributeZonalResult.h" #include "model/DescribeDetachedBackupsRequest.h" #include "model/DescribeDetachedBackupsResult.h" +#include "model/DescribeEncryptionDBRolePrivilegeRequest.h" +#include "model/DescribeEncryptionDBRolePrivilegeResult.h" +#include "model/DescribeEncryptionDBSecretRequest.h" +#include "model/DescribeEncryptionDBSecretResult.h" +#include "model/DescribeExtensionsRequest.h" +#include "model/DescribeExtensionsResult.h" +#include "model/DescribeFirewallRulesRequest.h" +#include "model/DescribeFirewallRulesResult.h" +#include "model/DescribeGlobalDataNetworkListRequest.h" +#include "model/DescribeGlobalDataNetworkListResult.h" #include "model/DescribeGlobalDatabaseNetworkRequest.h" #include "model/DescribeGlobalDatabaseNetworkResult.h" #include "model/DescribeGlobalDatabaseNetworksRequest.h" @@ -174,16 +300,28 @@ #include "model/DescribeGlobalSecurityIPGroupResult.h" #include "model/DescribeGlobalSecurityIPGroupRelationRequest.h" #include "model/DescribeGlobalSecurityIPGroupRelationResult.h" +#include "model/DescribeHALogsRequest.h" +#include "model/DescribeHALogsResult.h" +#include "model/DescribeHistoryTasksRequest.h" +#include "model/DescribeHistoryTasksResult.h" +#include "model/DescribeHistoryTasksStatRequest.h" +#include "model/DescribeHistoryTasksStatResult.h" #include "model/DescribeLicenseOrderDetailsRequest.h" #include "model/DescribeLicenseOrderDetailsResult.h" #include "model/DescribeLicenseOrdersRequest.h" #include "model/DescribeLicenseOrdersResult.h" +#include "model/DescribeLocalAvailableRecoveryTimeRequest.h" +#include "model/DescribeLocalAvailableRecoveryTimeResult.h" #include "model/DescribeLogBackupPolicyRequest.h" #include "model/DescribeLogBackupPolicyResult.h" #include "model/DescribeMaskingRulesRequest.h" #include "model/DescribeMaskingRulesResult.h" #include "model/DescribeMetaListRequest.h" #include "model/DescribeMetaListResult.h" +#include "model/DescribeModifyParameterLogRequest.h" +#include "model/DescribeModifyParameterLogResult.h" +#include "model/DescribeNetworkChannelRequest.h" +#include "model/DescribeNetworkChannelResult.h" #include "model/DescribeParameterGroupRequest.h" #include "model/DescribeParameterGroupResult.h" #include "model/DescribeParameterGroupsRequest.h" @@ -196,8 +334,16 @@ #include "model/DescribePendingMaintenanceActionsResult.h" #include "model/DescribePolarSQLCollectorPolicyRequest.h" #include "model/DescribePolarSQLCollectorPolicyResult.h" +#include "model/DescribeRdsVSwitchsRequest.h" +#include "model/DescribeRdsVSwitchsResult.h" +#include "model/DescribeRdsVpcsRequest.h" +#include "model/DescribeRdsVpcsResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" +#include "model/DescribeResourcePackagesRequest.h" +#include "model/DescribeResourcePackagesResult.h" +#include "model/DescribeSQLRateLimitingRulesRequest.h" +#include "model/DescribeSQLRateLimitingRulesResult.h" #include "model/DescribeScheduleTasksRequest.h" #include "model/DescribeScheduleTasksResult.h" #include "model/DescribeSlowLogRecordsRequest.h" @@ -206,54 +352,108 @@ #include "model/DescribeSlowLogsResult.h" #include "model/DescribeTasksRequest.h" #include "model/DescribeTasksResult.h" +#include "model/DescribeUpgradeReportRequest.h" +#include "model/DescribeUpgradeReportResult.h" #include "model/DescribeUserEncryptionKeyListRequest.h" #include "model/DescribeUserEncryptionKeyListResult.h" +#include "model/DescribeVSwitchListRequest.h" +#include "model/DescribeVSwitchListResult.h" #include "model/DescribeVSwitchesRequest.h" #include "model/DescribeVSwitchesResult.h" +#include "model/DescribeVpcsRequest.h" +#include "model/DescribeVpcsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/DisableDBClusterOrcaRequest.h" +#include "model/DisableDBClusterOrcaResult.h" #include "model/DisableDBClusterServerlessRequest.h" #include "model/DisableDBClusterServerlessResult.h" +#include "model/EnableDBClusterOrcaRequest.h" +#include "model/EnableDBClusterOrcaResult.h" #include "model/EnableDBClusterServerlessRequest.h" #include "model/EnableDBClusterServerlessResult.h" #include "model/EnableFirewallRulesRequest.h" #include "model/EnableFirewallRulesResult.h" +#include "model/EnableSQLRateLimitingRulesRequest.h" +#include "model/EnableSQLRateLimitingRulesResult.h" #include "model/EvaluateRegionResourceRequest.h" #include "model/EvaluateRegionResourceResult.h" +#include "model/ExecuteCrossCloudOpenAPIRequest.h" +#include "model/ExecuteCrossCloudOpenAPIResult.h" #include "model/FailoverDBClusterRequest.h" #include "model/FailoverDBClusterResult.h" +#include "model/FailoverDBClusterZonalRequest.h" +#include "model/FailoverDBClusterZonalResult.h" +#include "model/GenerateUpgradeReportForSyncCloneRequest.h" +#include "model/GenerateUpgradeReportForSyncCloneResult.h" #include "model/GrantAccountPrivilegeRequest.h" #include "model/GrantAccountPrivilegeResult.h" +#include "model/GrantAccountPrivilegeZonalRequest.h" +#include "model/GrantAccountPrivilegeZonalResult.h" +#include "model/ListOrdersRequest.h" +#include "model/ListOrdersResult.h" #include "model/ListTagResourcesRequest.h" #include "model/ListTagResourcesResult.h" +#include "model/ListTagResourcesForRegionRequest.h" +#include "model/ListTagResourcesForRegionResult.h" #include "model/ManuallyStartDBClusterRequest.h" #include "model/ManuallyStartDBClusterResult.h" +#include "model/ModifyAIDBClusterDescriptionRequest.h" +#include "model/ModifyAIDBClusterDescriptionResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" +#include "model/ModifyAccountDescriptionZonalRequest.h" +#include "model/ModifyAccountDescriptionZonalResult.h" +#include "model/ModifyAccountLockStateRequest.h" +#include "model/ModifyAccountLockStateResult.h" #include "model/ModifyAccountPasswordRequest.h" #include "model/ModifyAccountPasswordResult.h" +#include "model/ModifyAccountPasswordZonalRequest.h" +#include "model/ModifyAccountPasswordZonalResult.h" +#include "model/ModifyActiveOperationMaintainConfRequest.h" +#include "model/ModifyActiveOperationMaintainConfResult.h" #include "model/ModifyActiveOperationTasksRequest.h" #include "model/ModifyActiveOperationTasksResult.h" +#include "model/ModifyApplicationDescriptionRequest.h" +#include "model/ModifyApplicationDescriptionResult.h" +#include "model/ModifyApplicationParameterRequest.h" +#include "model/ModifyApplicationParameterResult.h" +#include "model/ModifyApplicationServerlessConfRequest.h" +#include "model/ModifyApplicationServerlessConfResult.h" +#include "model/ModifyApplicationWhitelistRequest.h" +#include "model/ModifyApplicationWhitelistResult.h" #include "model/ModifyAutoRenewAttributeRequest.h" #include "model/ModifyAutoRenewAttributeResult.h" #include "model/ModifyBackupPolicyRequest.h" #include "model/ModifyBackupPolicyResult.h" +#include "model/ModifyCronJobPolicyServerlessRequest.h" +#include "model/ModifyCronJobPolicyServerlessResult.h" #include "model/ModifyDBClusterRequest.h" #include "model/ModifyDBClusterResult.h" #include "model/ModifyDBClusterAccessWhitelistRequest.h" #include "model/ModifyDBClusterAccessWhitelistResult.h" #include "model/ModifyDBClusterAndNodesParametersRequest.h" #include "model/ModifyDBClusterAndNodesParametersResult.h" +#include "model/ModifyDBClusterArchRequest.h" +#include "model/ModifyDBClusterArchResult.h" #include "model/ModifyDBClusterAuditLogCollectorRequest.h" #include "model/ModifyDBClusterAuditLogCollectorResult.h" #include "model/ModifyDBClusterDeletionRequest.h" #include "model/ModifyDBClusterDeletionResult.h" #include "model/ModifyDBClusterDescriptionRequest.h" #include "model/ModifyDBClusterDescriptionResult.h" +#include "model/ModifyDBClusterDescriptionZonalRequest.h" +#include "model/ModifyDBClusterDescriptionZonalResult.h" #include "model/ModifyDBClusterEndpointRequest.h" #include "model/ModifyDBClusterEndpointResult.h" +#include "model/ModifyDBClusterEndpointZonalRequest.h" +#include "model/ModifyDBClusterEndpointZonalResult.h" #include "model/ModifyDBClusterMaintainTimeRequest.h" #include "model/ModifyDBClusterMaintainTimeResult.h" #include "model/ModifyDBClusterMigrationRequest.h" #include "model/ModifyDBClusterMigrationResult.h" +#include "model/ModifyDBClusterMigrationEndpointRequest.h" +#include "model/ModifyDBClusterMigrationEndpointResult.h" #include "model/ModifyDBClusterMonitorRequest.h" #include "model/ModifyDBClusterMonitorResult.h" #include "model/ModifyDBClusterParametersRequest.h" @@ -272,18 +472,34 @@ #include "model/ModifyDBClusterStorageSpaceResult.h" #include "model/ModifyDBClusterTDERequest.h" #include "model/ModifyDBClusterTDEResult.h" +#include "model/ModifyDBClusterVpcRequest.h" +#include "model/ModifyDBClusterVpcResult.h" #include "model/ModifyDBDescriptionRequest.h" #include "model/ModifyDBDescriptionResult.h" +#include "model/ModifyDBDescriptionZonalRequest.h" +#include "model/ModifyDBDescriptionZonalResult.h" #include "model/ModifyDBEndpointAddressRequest.h" #include "model/ModifyDBEndpointAddressResult.h" #include "model/ModifyDBNodeClassRequest.h" #include "model/ModifyDBNodeClassResult.h" +#include "model/ModifyDBNodeConfigRequest.h" +#include "model/ModifyDBNodeConfigResult.h" +#include "model/ModifyDBNodeDescriptionRequest.h" +#include "model/ModifyDBNodeDescriptionResult.h" #include "model/ModifyDBNodeHotReplicaModeRequest.h" #include "model/ModifyDBNodeHotReplicaModeResult.h" +#include "model/ModifyDBNodeSccModeRequest.h" +#include "model/ModifyDBNodeSccModeResult.h" #include "model/ModifyDBNodesClassRequest.h" #include "model/ModifyDBNodesClassResult.h" #include "model/ModifyDBNodesParametersRequest.h" #include "model/ModifyDBNodesParametersResult.h" +#include "model/ModifyEncryptionDBRolePrivilegeRequest.h" +#include "model/ModifyEncryptionDBRolePrivilegeResult.h" +#include "model/ModifyEncryptionDBSecretRequest.h" +#include "model/ModifyEncryptionDBSecretResult.h" +#include "model/ModifyFirewallRulesRequest.h" +#include "model/ModifyFirewallRulesResult.h" #include "model/ModifyGlobalDatabaseNetworkRequest.h" #include "model/ModifyGlobalDatabaseNetworkResult.h" #include "model/ModifyGlobalSecurityIPGroupRequest.h" @@ -298,24 +514,40 @@ #include "model/ModifyMaskingRulesResult.h" #include "model/ModifyPendingMaintenanceActionRequest.h" #include "model/ModifyPendingMaintenanceActionResult.h" +#include "model/ModifyResourcePackageRequest.h" +#include "model/ModifyResourcePackageResult.h" +#include "model/ModifySQLRateLimitingRulesRequest.h" +#include "model/ModifySQLRateLimitingRulesResult.h" +#include "model/ModifyScheduleTaskRequest.h" +#include "model/ModifyScheduleTaskResult.h" #include "model/OpenAITaskRequest.h" #include "model/OpenAITaskResult.h" +#include "model/ReactivateDBClusterBackupRequest.h" +#include "model/ReactivateDBClusterBackupResult.h" #include "model/RefreshDBClusterStorageUsageRequest.h" #include "model/RefreshDBClusterStorageUsageResult.h" #include "model/RemoveDBClusterFromGDNRequest.h" #include "model/RemoveDBClusterFromGDNResult.h" #include "model/ResetAccountRequest.h" #include "model/ResetAccountResult.h" +#include "model/ResetAccountPasswordRequest.h" +#include "model/ResetAccountPasswordResult.h" +#include "model/ResetAccountZonalRequest.h" +#include "model/ResetAccountZonalResult.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/RestartDBNodeZonalRequest.h" +#include "model/RestartDBNodeZonalResult.h" #include "model/RestoreTableRequest.h" #include "model/RestoreTableResult.h" #include "model/RevokeAccountPrivilegeRequest.h" #include "model/RevokeAccountPrivilegeResult.h" +#include "model/RevokeAccountPrivilegeZonalRequest.h" +#include "model/RevokeAccountPrivilegeZonalResult.h" #include "model/SwitchOverGlobalDatabaseNetworkRequest.h" #include "model/SwitchOverGlobalDatabaseNetworkResult.h" #include "model/TagResourcesRequest.h" @@ -326,8 +558,12 @@ #include "model/TransformDBClusterPayTypeResult.h" #include "model/UntagResourcesRequest.h" #include "model/UntagResourcesResult.h" +#include "model/UpdateExtensionsRequest.h" +#include "model/UpdateExtensionsResult.h" #include "model/UpgradeDBClusterVersionRequest.h" #include "model/UpgradeDBClusterVersionResult.h" +#include "model/UpgradeDBClusterVersionZonalRequest.h" +#include "model/UpgradeDBClusterVersionZonalResult.h" namespace AlibabaCloud @@ -337,18 +573,45 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT PolardbClient : public RpcServiceClient { public: + typedef Outcome AbortDBClusterMigrationOutcome; + typedef std::future AbortDBClusterMigrationOutcomeCallable; + typedef std::function&)> AbortDBClusterMigrationAsyncHandler; + typedef Outcome AddEncryptionDBRolePrivilegeOutcome; + typedef std::future AddEncryptionDBRolePrivilegeOutcomeCallable; + typedef std::function&)> AddEncryptionDBRolePrivilegeAsyncHandler; + typedef Outcome AddFirewallRulesOutcome; + typedef std::future AddFirewallRulesOutcomeCallable; + typedef std::function&)> AddFirewallRulesAsyncHandler; + typedef Outcome AddSQLRateLimitingRulesOutcome; + typedef std::future AddSQLRateLimitingRulesOutcomeCallable; + typedef std::function&)> AddSQLRateLimitingRulesAsyncHandler; + typedef Outcome AttachApplicationPolarFSOutcome; + typedef std::future AttachApplicationPolarFSOutcomeCallable; + typedef std::function&)> AttachApplicationPolarFSAsyncHandler; typedef Outcome CancelActiveOperationTasksOutcome; typedef std::future CancelActiveOperationTasksOutcomeCallable; typedef std::function&)> CancelActiveOperationTasksAsyncHandler; + typedef Outcome CancelCronJobPolicyServerlessOutcome; + typedef std::future CancelCronJobPolicyServerlessOutcomeCallable; + typedef std::function&)> CancelCronJobPolicyServerlessAsyncHandler; typedef Outcome CancelScheduleTasksOutcome; typedef std::future CancelScheduleTasksOutcomeCallable; typedef std::function&)> CancelScheduleTasksAsyncHandler; typedef Outcome CheckAccountNameOutcome; typedef std::future CheckAccountNameOutcomeCallable; typedef std::function&)> CheckAccountNameAsyncHandler; + typedef Outcome CheckAccountNameZonalOutcome; + typedef std::future CheckAccountNameZonalOutcomeCallable; + typedef std::function&)> CheckAccountNameZonalAsyncHandler; + typedef Outcome CheckConnectionStringOutcome; + typedef std::future CheckConnectionStringOutcomeCallable; + typedef std::function&)> CheckConnectionStringAsyncHandler; typedef Outcome CheckDBNameOutcome; typedef std::future CheckDBNameOutcomeCallable; typedef std::function&)> CheckDBNameAsyncHandler; + typedef Outcome CheckDBNameZonalOutcome; + typedef std::future CheckDBNameZonalOutcomeCallable; + typedef std::function&)> CheckDBNameZonalAsyncHandler; typedef Outcome CheckKMSAuthorizedOutcome; typedef std::future CheckKMSAuthorizedOutcomeCallable; typedef std::function&)> CheckKMSAuthorizedAsyncHandler; @@ -361,24 +624,42 @@ namespace AlibabaCloud typedef Outcome CloseDBClusterMigrationOutcome; typedef std::future CloseDBClusterMigrationOutcomeCallable; typedef std::function&)> CloseDBClusterMigrationAsyncHandler; + typedef Outcome ContinueDBClusterMigrationOutcome; + typedef std::future ContinueDBClusterMigrationOutcomeCallable; + typedef std::function&)> ContinueDBClusterMigrationAsyncHandler; typedef Outcome CreateAccountOutcome; typedef std::future CreateAccountOutcomeCallable; typedef std::function&)> CreateAccountAsyncHandler; + typedef Outcome CreateAccountZonalOutcome; + typedef std::future CreateAccountZonalOutcomeCallable; + typedef std::function&)> CreateAccountZonalAsyncHandler; typedef Outcome CreateActivationCodeOutcome; typedef std::future CreateActivationCodeOutcomeCallable; typedef std::function&)> CreateActivationCodeAsyncHandler; + typedef Outcome CreateApplicationOutcome; + typedef std::future CreateApplicationOutcomeCallable; + typedef std::function&)> CreateApplicationAsyncHandler; + typedef Outcome CreateApplicationEndpointAddressOutcome; + typedef std::future CreateApplicationEndpointAddressOutcomeCallable; + typedef std::function&)> CreateApplicationEndpointAddressAsyncHandler; typedef Outcome CreateBackupOutcome; typedef std::future CreateBackupOutcomeCallable; typedef std::function&)> CreateBackupAsyncHandler; typedef Outcome CreateColdStorageInstanceOutcome; typedef std::future CreateColdStorageInstanceOutcomeCallable; typedef std::function&)> CreateColdStorageInstanceAsyncHandler; + typedef Outcome CreateCronJobPolicyServerlessOutcome; + typedef std::future CreateCronJobPolicyServerlessOutcomeCallable; + typedef std::function&)> CreateCronJobPolicyServerlessAsyncHandler; typedef Outcome CreateDBClusterOutcome; typedef std::future CreateDBClusterOutcomeCallable; typedef std::function&)> CreateDBClusterAsyncHandler; typedef Outcome CreateDBClusterEndpointOutcome; typedef std::future CreateDBClusterEndpointOutcomeCallable; typedef std::function&)> CreateDBClusterEndpointAsyncHandler; + typedef Outcome CreateDBClusterEndpointZonalOutcome; + typedef std::future CreateDBClusterEndpointZonalOutcomeCallable; + typedef std::function&)> CreateDBClusterEndpointZonalAsyncHandler; typedef Outcome CreateDBEndpointAddressOutcome; typedef std::future CreateDBEndpointAddressOutcomeCallable; typedef std::function&)> CreateDBEndpointAddressAsyncHandler; @@ -391,12 +672,24 @@ namespace AlibabaCloud typedef Outcome CreateDatabaseOutcome; typedef std::future CreateDatabaseOutcomeCallable; typedef std::function&)> CreateDatabaseAsyncHandler; + typedef Outcome CreateDatabaseZonalOutcome; + typedef std::future CreateDatabaseZonalOutcomeCallable; + typedef std::function&)> CreateDatabaseZonalAsyncHandler; + typedef Outcome CreateExtensionsOutcome; + typedef std::future CreateExtensionsOutcomeCallable; + typedef std::function&)> CreateExtensionsAsyncHandler; + typedef Outcome CreateGlobalDataNetworkOutcome; + typedef std::future CreateGlobalDataNetworkOutcomeCallable; + typedef std::function&)> CreateGlobalDataNetworkAsyncHandler; typedef Outcome CreateGlobalDatabaseNetworkOutcome; typedef std::future CreateGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> CreateGlobalDatabaseNetworkAsyncHandler; typedef Outcome CreateGlobalSecurityIPGroupOutcome; typedef std::future CreateGlobalSecurityIPGroupOutcomeCallable; typedef std::function&)> CreateGlobalSecurityIPGroupAsyncHandler; + typedef Outcome CreateNetworkChannelOutcome; + typedef std::future CreateNetworkChannelOutcomeCallable; + typedef std::function&)> CreateNetworkChannelAsyncHandler; typedef Outcome CreateOrGetVirtualLicenseOrderOutcome; typedef std::future CreateOrGetVirtualLicenseOrderOutcomeCallable; typedef std::function&)> CreateOrGetVirtualLicenseOrderAsyncHandler; @@ -409,9 +702,21 @@ namespace AlibabaCloud typedef Outcome CreateStoragePlanOutcome; typedef std::future CreateStoragePlanOutcomeCallable; typedef std::function&)> CreateStoragePlanAsyncHandler; + typedef Outcome DeleteAIDBClusterOutcome; + typedef std::future DeleteAIDBClusterOutcomeCallable; + typedef std::function&)> DeleteAIDBClusterAsyncHandler; typedef Outcome DeleteAccountOutcome; typedef std::future DeleteAccountOutcomeCallable; typedef std::function&)> DeleteAccountAsyncHandler; + typedef Outcome DeleteAccountZonalOutcome; + typedef std::future DeleteAccountZonalOutcomeCallable; + typedef std::function&)> DeleteAccountZonalAsyncHandler; + typedef Outcome DeleteApplicationOutcome; + typedef std::future DeleteApplicationOutcomeCallable; + typedef std::function&)> DeleteApplicationAsyncHandler; + typedef Outcome DeleteApplicationEndpointAddressOutcome; + typedef std::future DeleteApplicationEndpointAddressOutcomeCallable; + typedef std::function&)> DeleteApplicationEndpointAddressAsyncHandler; typedef Outcome DeleteBackupOutcome; typedef std::future DeleteBackupOutcomeCallable; typedef std::function&)> DeleteBackupAsyncHandler; @@ -421,6 +726,9 @@ namespace AlibabaCloud typedef Outcome DeleteDBClusterEndpointOutcome; typedef std::future DeleteDBClusterEndpointOutcomeCallable; typedef std::function&)> DeleteDBClusterEndpointAsyncHandler; + typedef Outcome DeleteDBClusterEndpointZonalOutcome; + typedef std::future DeleteDBClusterEndpointZonalOutcomeCallable; + typedef std::function&)> DeleteDBClusterEndpointZonalAsyncHandler; typedef Outcome DeleteDBEndpointAddressOutcome; typedef std::future DeleteDBEndpointAddressOutcomeCallable; typedef std::function&)> DeleteDBEndpointAddressAsyncHandler; @@ -433,6 +741,21 @@ namespace AlibabaCloud typedef Outcome DeleteDatabaseOutcome; typedef std::future DeleteDatabaseOutcomeCallable; typedef std::function&)> DeleteDatabaseAsyncHandler; + typedef Outcome DeleteDatabaseZonalOutcome; + typedef std::future DeleteDatabaseZonalOutcomeCallable; + typedef std::function&)> DeleteDatabaseZonalAsyncHandler; + typedef Outcome DeleteEncryptionDBRolePrivilegeOutcome; + typedef std::future DeleteEncryptionDBRolePrivilegeOutcomeCallable; + typedef std::function&)> DeleteEncryptionDBRolePrivilegeAsyncHandler; + typedef Outcome DeleteExtensionsOutcome; + typedef std::future DeleteExtensionsOutcomeCallable; + typedef std::function&)> DeleteExtensionsAsyncHandler; + typedef Outcome DeleteFirewallRulesOutcome; + typedef std::future DeleteFirewallRulesOutcomeCallable; + typedef std::function&)> DeleteFirewallRulesAsyncHandler; + typedef Outcome DeleteGlobalDataNetworkOutcome; + typedef std::future DeleteGlobalDataNetworkOutcomeCallable; + typedef std::function&)> DeleteGlobalDataNetworkAsyncHandler; typedef Outcome DeleteGlobalDatabaseNetworkOutcome; typedef std::future DeleteGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> DeleteGlobalDatabaseNetworkAsyncHandler; @@ -442,33 +765,72 @@ namespace AlibabaCloud typedef Outcome DeleteMaskingRulesOutcome; typedef std::future DeleteMaskingRulesOutcomeCallable; typedef std::function&)> DeleteMaskingRulesAsyncHandler; + typedef Outcome DeleteNetworkChannelOutcome; + typedef std::future DeleteNetworkChannelOutcomeCallable; + typedef std::function&)> DeleteNetworkChannelAsyncHandler; typedef Outcome DeleteParameterGroupOutcome; typedef std::future DeleteParameterGroupOutcomeCallable; typedef std::function&)> DeleteParameterGroupAsyncHandler; + typedef Outcome DeleteSQLRateLimitingRulesOutcome; + typedef std::future DeleteSQLRateLimitingRulesOutcomeCallable; + typedef std::function&)> DeleteSQLRateLimitingRulesAsyncHandler; + typedef Outcome DescribeAIDBClusterAttributeOutcome; + typedef std::future DescribeAIDBClusterAttributeOutcomeCallable; + typedef std::function&)> DescribeAIDBClusterAttributeAsyncHandler; + typedef Outcome DescribeAIDBClusterPerformanceOutcome; + typedef std::future DescribeAIDBClusterPerformanceOutcomeCallable; + typedef std::function&)> DescribeAIDBClusterPerformanceAsyncHandler; + typedef Outcome DescribeAIDBClustersOutcome; + typedef std::future DescribeAIDBClustersOutcomeCallable; + typedef std::function&)> DescribeAIDBClustersAsyncHandler; typedef Outcome DescribeAITaskStatusOutcome; typedef std::future DescribeAITaskStatusOutcomeCallable; typedef std::function&)> DescribeAITaskStatusAsyncHandler; typedef Outcome DescribeAccountsOutcome; typedef std::future DescribeAccountsOutcomeCallable; typedef std::function&)> DescribeAccountsAsyncHandler; + typedef Outcome DescribeAccountsZonalOutcome; + typedef std::future DescribeAccountsZonalOutcomeCallable; + typedef std::function&)> DescribeAccountsZonalAsyncHandler; typedef Outcome DescribeActivationCodeDetailsOutcome; typedef std::future DescribeActivationCodeDetailsOutcomeCallable; typedef std::function&)> DescribeActivationCodeDetailsAsyncHandler; typedef Outcome DescribeActivationCodesOutcome; typedef std::future DescribeActivationCodesOutcomeCallable; typedef std::function&)> DescribeActivationCodesAsyncHandler; + typedef Outcome DescribeActiveOperationMaintainConfOutcome; + typedef std::future DescribeActiveOperationMaintainConfOutcomeCallable; + typedef std::function&)> DescribeActiveOperationMaintainConfAsyncHandler; typedef Outcome DescribeActiveOperationTasksOutcome; typedef std::future DescribeActiveOperationTasksOutcomeCallable; typedef std::function&)> DescribeActiveOperationTasksAsyncHandler; + typedef Outcome DescribeApplicationAttributeOutcome; + typedef std::future DescribeApplicationAttributeOutcomeCallable; + typedef std::function&)> DescribeApplicationAttributeAsyncHandler; + typedef Outcome DescribeApplicationParametersOutcome; + typedef std::future DescribeApplicationParametersOutcomeCallable; + typedef std::function&)> DescribeApplicationParametersAsyncHandler; + typedef Outcome DescribeApplicationServerlessConfOutcome; + typedef std::future DescribeApplicationServerlessConfOutcomeCallable; + typedef std::function&)> DescribeApplicationServerlessConfAsyncHandler; + typedef Outcome DescribeApplicationsOutcome; + typedef std::future DescribeApplicationsOutcomeCallable; + typedef std::function&)> DescribeApplicationsAsyncHandler; typedef Outcome DescribeAutoRenewAttributeOutcome; typedef std::future DescribeAutoRenewAttributeOutcomeCallable; typedef std::function&)> DescribeAutoRenewAttributeAsyncHandler; + typedef Outcome DescribeAvailableCrossRegionsOutcome; + typedef std::future DescribeAvailableCrossRegionsOutcomeCallable; + typedef std::function&)> DescribeAvailableCrossRegionsAsyncHandler; typedef Outcome DescribeBackupLogsOutcome; typedef std::future DescribeBackupLogsOutcomeCallable; typedef std::function&)> DescribeBackupLogsAsyncHandler; typedef Outcome DescribeBackupPolicyOutcome; typedef std::future DescribeBackupPolicyOutcomeCallable; typedef std::function&)> DescribeBackupPolicyAsyncHandler; + typedef Outcome DescribeBackupRegionsOutcome; + typedef std::future DescribeBackupRegionsOutcomeCallable; + typedef std::function&)> DescribeBackupRegionsAsyncHandler; typedef Outcome DescribeBackupTasksOutcome; typedef std::future DescribeBackupTasksOutcomeCallable; typedef std::function&)> DescribeBackupTasksAsyncHandler; @@ -481,6 +843,21 @@ namespace AlibabaCloud typedef Outcome DescribeClassListOutcome; typedef std::future DescribeClassListOutcomeCallable; typedef std::function&)> DescribeClassListAsyncHandler; + typedef Outcome DescribeColdStorageInstanceOutcome; + typedef std::future DescribeColdStorageInstanceOutcomeCallable; + typedef std::function&)> DescribeColdStorageInstanceAsyncHandler; + typedef Outcome DescribeCronJobPolicyServerlessOutcome; + typedef std::future DescribeCronJobPolicyServerlessOutcomeCallable; + typedef std::function&)> DescribeCronJobPolicyServerlessAsyncHandler; + typedef Outcome DescribeCrossCloudLevelsOutcome; + typedef std::future DescribeCrossCloudLevelsOutcomeCallable; + typedef std::function&)> DescribeCrossCloudLevelsAsyncHandler; + typedef Outcome DescribeCrossCloudRegionOutcome; + typedef std::future DescribeCrossCloudRegionOutcomeCallable; + typedef std::function&)> DescribeCrossCloudRegionAsyncHandler; + typedef Outcome DescribeCrossCloudRegionMappingToAliyunOutcome; + typedef std::future DescribeCrossCloudRegionMappingToAliyunOutcomeCallable; + typedef std::function&)> DescribeCrossCloudRegionMappingToAliyunAsyncHandler; typedef Outcome DescribeDBClusterAccessWhitelistOutcome; typedef std::future DescribeDBClusterAccessWhitelistOutcomeCallable; typedef std::function&)> DescribeDBClusterAccessWhitelistAsyncHandler; @@ -496,21 +873,33 @@ namespace AlibabaCloud typedef Outcome DescribeDBClusterConnectivityOutcome; typedef std::future DescribeDBClusterConnectivityOutcomeCallable; typedef std::function&)> DescribeDBClusterConnectivityAsyncHandler; + typedef Outcome DescribeDBClusterEncryptionKeyOutcome; + typedef std::future DescribeDBClusterEncryptionKeyOutcomeCallable; + typedef std::function&)> DescribeDBClusterEncryptionKeyAsyncHandler; typedef Outcome DescribeDBClusterEndpointsOutcome; typedef std::future DescribeDBClusterEndpointsOutcomeCallable; typedef std::function&)> DescribeDBClusterEndpointsAsyncHandler; + typedef Outcome DescribeDBClusterEndpointsZonalOutcome; + typedef std::future DescribeDBClusterEndpointsZonalOutcomeCallable; + typedef std::function&)> DescribeDBClusterEndpointsZonalAsyncHandler; typedef Outcome DescribeDBClusterMigrationOutcome; typedef std::future DescribeDBClusterMigrationOutcomeCallable; typedef std::function&)> DescribeDBClusterMigrationAsyncHandler; typedef Outcome DescribeDBClusterMonitorOutcome; typedef std::future DescribeDBClusterMonitorOutcomeCallable; typedef std::function&)> DescribeDBClusterMonitorAsyncHandler; + typedef Outcome DescribeDBClusterNetInfoOutcome; + typedef std::future DescribeDBClusterNetInfoOutcomeCallable; + typedef std::function&)> DescribeDBClusterNetInfoAsyncHandler; typedef Outcome DescribeDBClusterParametersOutcome; typedef std::future DescribeDBClusterParametersOutcomeCallable; typedef std::function&)> DescribeDBClusterParametersAsyncHandler; typedef Outcome DescribeDBClusterPerformanceOutcome; typedef std::future DescribeDBClusterPerformanceOutcomeCallable; typedef std::function&)> DescribeDBClusterPerformanceAsyncHandler; + typedef Outcome DescribeDBClusterProxyOutcome; + typedef std::future DescribeDBClusterProxyOutcomeCallable; + typedef std::function&)> DescribeDBClusterProxyAsyncHandler; typedef Outcome DescribeDBClusterSSLOutcome; typedef std::future DescribeDBClusterSSLOutcomeCallable; typedef std::function&)> DescribeDBClusterSSLAsyncHandler; @@ -523,18 +912,33 @@ namespace AlibabaCloud typedef Outcome DescribeDBClusterVersionOutcome; typedef std::future DescribeDBClusterVersionOutcomeCallable; typedef std::function&)> DescribeDBClusterVersionAsyncHandler; + typedef Outcome DescribeDBClusterVersionZonalOutcome; + typedef std::future DescribeDBClusterVersionZonalOutcomeCallable; + typedef std::function&)> DescribeDBClusterVersionZonalAsyncHandler; typedef Outcome DescribeDBClustersOutcome; typedef std::future DescribeDBClustersOutcomeCallable; typedef std::function&)> DescribeDBClustersAsyncHandler; typedef Outcome DescribeDBClustersWithBackupsOutcome; typedef std::future DescribeDBClustersWithBackupsOutcomeCallable; typedef std::function&)> DescribeDBClustersWithBackupsAsyncHandler; + typedef Outcome DescribeDBClustersZonalOutcome; + typedef std::future DescribeDBClustersZonalOutcomeCallable; + typedef std::function&)> DescribeDBClustersZonalAsyncHandler; typedef Outcome DescribeDBInitializeVariableOutcome; typedef std::future DescribeDBInitializeVariableOutcomeCallable; typedef std::function&)> DescribeDBInitializeVariableAsyncHandler; + typedef Outcome DescribeDBInstancePerformanceOutcome; + typedef std::future DescribeDBInstancePerformanceOutcomeCallable; + typedef std::function&)> DescribeDBInstancePerformanceAsyncHandler; typedef Outcome DescribeDBLinksOutcome; typedef std::future DescribeDBLinksOutcomeCallable; typedef std::function&)> DescribeDBLinksAsyncHandler; + typedef Outcome DescribeDBLogFilesOutcome; + typedef std::future DescribeDBLogFilesOutcomeCallable; + typedef std::function&)> DescribeDBLogFilesAsyncHandler; + typedef Outcome DescribeDBMiniEngineVersionsOutcome; + typedef std::future DescribeDBMiniEngineVersionsOutcomeCallable; + typedef std::function&)> DescribeDBMiniEngineVersionsAsyncHandler; typedef Outcome DescribeDBNodePerformanceOutcome; typedef std::future DescribeDBNodePerformanceOutcomeCallable; typedef std::function&)> DescribeDBNodePerformanceAsyncHandler; @@ -550,9 +954,30 @@ namespace AlibabaCloud typedef Outcome DescribeDatabasesOutcome; typedef std::future DescribeDatabasesOutcomeCallable; typedef std::function&)> DescribeDatabasesAsyncHandler; + typedef Outcome DescribeDatabasesZonalOutcome; + typedef std::future DescribeDatabasesZonalOutcomeCallable; + typedef std::function&)> DescribeDatabasesZonalAsyncHandler; + typedef Outcome DescribeDbClusterAttributeZonalOutcome; + typedef std::future DescribeDbClusterAttributeZonalOutcomeCallable; + typedef std::function&)> DescribeDbClusterAttributeZonalAsyncHandler; typedef Outcome DescribeDetachedBackupsOutcome; typedef std::future DescribeDetachedBackupsOutcomeCallable; typedef std::function&)> DescribeDetachedBackupsAsyncHandler; + typedef Outcome DescribeEncryptionDBRolePrivilegeOutcome; + typedef std::future DescribeEncryptionDBRolePrivilegeOutcomeCallable; + typedef std::function&)> DescribeEncryptionDBRolePrivilegeAsyncHandler; + typedef Outcome DescribeEncryptionDBSecretOutcome; + typedef std::future DescribeEncryptionDBSecretOutcomeCallable; + typedef std::function&)> DescribeEncryptionDBSecretAsyncHandler; + typedef Outcome DescribeExtensionsOutcome; + typedef std::future DescribeExtensionsOutcomeCallable; + typedef std::function&)> DescribeExtensionsAsyncHandler; + typedef Outcome DescribeFirewallRulesOutcome; + typedef std::future DescribeFirewallRulesOutcomeCallable; + typedef std::function&)> DescribeFirewallRulesAsyncHandler; + typedef Outcome DescribeGlobalDataNetworkListOutcome; + typedef std::future DescribeGlobalDataNetworkListOutcomeCallable; + typedef std::function&)> DescribeGlobalDataNetworkListAsyncHandler; typedef Outcome DescribeGlobalDatabaseNetworkOutcome; typedef std::future DescribeGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> DescribeGlobalDatabaseNetworkAsyncHandler; @@ -565,12 +990,24 @@ namespace AlibabaCloud typedef Outcome DescribeGlobalSecurityIPGroupRelationOutcome; typedef std::future DescribeGlobalSecurityIPGroupRelationOutcomeCallable; typedef std::function&)> DescribeGlobalSecurityIPGroupRelationAsyncHandler; + typedef Outcome DescribeHALogsOutcome; + typedef std::future DescribeHALogsOutcomeCallable; + typedef std::function&)> DescribeHALogsAsyncHandler; + typedef Outcome DescribeHistoryTasksOutcome; + typedef std::future DescribeHistoryTasksOutcomeCallable; + typedef std::function&)> DescribeHistoryTasksAsyncHandler; + typedef Outcome DescribeHistoryTasksStatOutcome; + typedef std::future DescribeHistoryTasksStatOutcomeCallable; + typedef std::function&)> DescribeHistoryTasksStatAsyncHandler; typedef Outcome DescribeLicenseOrderDetailsOutcome; typedef std::future DescribeLicenseOrderDetailsOutcomeCallable; typedef std::function&)> DescribeLicenseOrderDetailsAsyncHandler; typedef Outcome DescribeLicenseOrdersOutcome; typedef std::future DescribeLicenseOrdersOutcomeCallable; typedef std::function&)> DescribeLicenseOrdersAsyncHandler; + typedef Outcome DescribeLocalAvailableRecoveryTimeOutcome; + typedef std::future DescribeLocalAvailableRecoveryTimeOutcomeCallable; + typedef std::function&)> DescribeLocalAvailableRecoveryTimeAsyncHandler; typedef Outcome DescribeLogBackupPolicyOutcome; typedef std::future DescribeLogBackupPolicyOutcomeCallable; typedef std::function&)> DescribeLogBackupPolicyAsyncHandler; @@ -580,6 +1017,12 @@ namespace AlibabaCloud typedef Outcome DescribeMetaListOutcome; typedef std::future DescribeMetaListOutcomeCallable; typedef std::function&)> DescribeMetaListAsyncHandler; + typedef Outcome DescribeModifyParameterLogOutcome; + typedef std::future DescribeModifyParameterLogOutcomeCallable; + typedef std::function&)> DescribeModifyParameterLogAsyncHandler; + typedef Outcome DescribeNetworkChannelOutcome; + typedef std::future DescribeNetworkChannelOutcomeCallable; + typedef std::function&)> DescribeNetworkChannelAsyncHandler; typedef Outcome DescribeParameterGroupOutcome; typedef std::future DescribeParameterGroupOutcomeCallable; typedef std::function&)> DescribeParameterGroupAsyncHandler; @@ -598,9 +1041,21 @@ namespace AlibabaCloud typedef Outcome DescribePolarSQLCollectorPolicyOutcome; typedef std::future DescribePolarSQLCollectorPolicyOutcomeCallable; typedef std::function&)> DescribePolarSQLCollectorPolicyAsyncHandler; + typedef Outcome DescribeRdsVSwitchsOutcome; + typedef std::future DescribeRdsVSwitchsOutcomeCallable; + typedef std::function&)> DescribeRdsVSwitchsAsyncHandler; + typedef Outcome DescribeRdsVpcsOutcome; + typedef std::future DescribeRdsVpcsOutcomeCallable; + typedef std::function&)> DescribeRdsVpcsAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeResourcePackagesOutcome; + typedef std::future DescribeResourcePackagesOutcomeCallable; + typedef std::function&)> DescribeResourcePackagesAsyncHandler; + typedef Outcome DescribeSQLRateLimitingRulesOutcome; + typedef std::future DescribeSQLRateLimitingRulesOutcomeCallable; + typedef std::function&)> DescribeSQLRateLimitingRulesAsyncHandler; typedef Outcome DescribeScheduleTasksOutcome; typedef std::future DescribeScheduleTasksOutcomeCallable; typedef std::function&)> DescribeScheduleTasksAsyncHandler; @@ -613,51 +1068,120 @@ namespace AlibabaCloud typedef Outcome DescribeTasksOutcome; typedef std::future DescribeTasksOutcomeCallable; typedef std::function&)> DescribeTasksAsyncHandler; + typedef Outcome DescribeUpgradeReportOutcome; + typedef std::future DescribeUpgradeReportOutcomeCallable; + typedef std::function&)> DescribeUpgradeReportAsyncHandler; typedef Outcome DescribeUserEncryptionKeyListOutcome; typedef std::future DescribeUserEncryptionKeyListOutcomeCallable; typedef std::function&)> DescribeUserEncryptionKeyListAsyncHandler; + typedef Outcome DescribeVSwitchListOutcome; + typedef std::future DescribeVSwitchListOutcomeCallable; + typedef std::function&)> DescribeVSwitchListAsyncHandler; typedef Outcome DescribeVSwitchesOutcome; typedef std::future DescribeVSwitchesOutcomeCallable; typedef std::function&)> DescribeVSwitchesAsyncHandler; + typedef Outcome DescribeVpcsOutcome; + typedef std::future DescribeVpcsOutcomeCallable; + typedef std::function&)> DescribeVpcsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome DisableDBClusterOrcaOutcome; + typedef std::future DisableDBClusterOrcaOutcomeCallable; + typedef std::function&)> DisableDBClusterOrcaAsyncHandler; typedef Outcome DisableDBClusterServerlessOutcome; typedef std::future DisableDBClusterServerlessOutcomeCallable; typedef std::function&)> DisableDBClusterServerlessAsyncHandler; + typedef Outcome EnableDBClusterOrcaOutcome; + typedef std::future EnableDBClusterOrcaOutcomeCallable; + typedef std::function&)> EnableDBClusterOrcaAsyncHandler; typedef Outcome EnableDBClusterServerlessOutcome; typedef std::future EnableDBClusterServerlessOutcomeCallable; typedef std::function&)> EnableDBClusterServerlessAsyncHandler; typedef Outcome EnableFirewallRulesOutcome; typedef std::future EnableFirewallRulesOutcomeCallable; typedef std::function&)> EnableFirewallRulesAsyncHandler; + typedef Outcome EnableSQLRateLimitingRulesOutcome; + typedef std::future EnableSQLRateLimitingRulesOutcomeCallable; + typedef std::function&)> EnableSQLRateLimitingRulesAsyncHandler; typedef Outcome EvaluateRegionResourceOutcome; typedef std::future EvaluateRegionResourceOutcomeCallable; typedef std::function&)> EvaluateRegionResourceAsyncHandler; + typedef Outcome ExecuteCrossCloudOpenAPIOutcome; + typedef std::future ExecuteCrossCloudOpenAPIOutcomeCallable; + typedef std::function&)> ExecuteCrossCloudOpenAPIAsyncHandler; typedef Outcome FailoverDBClusterOutcome; typedef std::future FailoverDBClusterOutcomeCallable; typedef std::function&)> FailoverDBClusterAsyncHandler; + typedef Outcome FailoverDBClusterZonalOutcome; + typedef std::future FailoverDBClusterZonalOutcomeCallable; + typedef std::function&)> FailoverDBClusterZonalAsyncHandler; + typedef Outcome GenerateUpgradeReportForSyncCloneOutcome; + typedef std::future GenerateUpgradeReportForSyncCloneOutcomeCallable; + typedef std::function&)> GenerateUpgradeReportForSyncCloneAsyncHandler; typedef Outcome GrantAccountPrivilegeOutcome; typedef std::future GrantAccountPrivilegeOutcomeCallable; typedef std::function&)> GrantAccountPrivilegeAsyncHandler; + typedef Outcome GrantAccountPrivilegeZonalOutcome; + typedef std::future GrantAccountPrivilegeZonalOutcomeCallable; + typedef std::function&)> GrantAccountPrivilegeZonalAsyncHandler; + typedef Outcome ListOrdersOutcome; + typedef std::future ListOrdersOutcomeCallable; + typedef std::function&)> ListOrdersAsyncHandler; typedef Outcome ListTagResourcesOutcome; typedef std::future ListTagResourcesOutcomeCallable; typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListTagResourcesForRegionOutcome; + typedef std::future ListTagResourcesForRegionOutcomeCallable; + typedef std::function&)> ListTagResourcesForRegionAsyncHandler; typedef Outcome ManuallyStartDBClusterOutcome; typedef std::future ManuallyStartDBClusterOutcomeCallable; typedef std::function&)> ManuallyStartDBClusterAsyncHandler; + typedef Outcome ModifyAIDBClusterDescriptionOutcome; + typedef std::future ModifyAIDBClusterDescriptionOutcomeCallable; + typedef std::function&)> ModifyAIDBClusterDescriptionAsyncHandler; typedef Outcome ModifyAccountDescriptionOutcome; typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome ModifyAccountDescriptionZonalOutcome; + typedef std::future ModifyAccountDescriptionZonalOutcomeCallable; + typedef std::function&)> ModifyAccountDescriptionZonalAsyncHandler; + typedef Outcome ModifyAccountLockStateOutcome; + typedef std::future ModifyAccountLockStateOutcomeCallable; + typedef std::function&)> ModifyAccountLockStateAsyncHandler; typedef Outcome ModifyAccountPasswordOutcome; typedef std::future ModifyAccountPasswordOutcomeCallable; typedef std::function&)> ModifyAccountPasswordAsyncHandler; + typedef Outcome ModifyAccountPasswordZonalOutcome; + typedef std::future ModifyAccountPasswordZonalOutcomeCallable; + typedef std::function&)> ModifyAccountPasswordZonalAsyncHandler; + typedef Outcome ModifyActiveOperationMaintainConfOutcome; + typedef std::future ModifyActiveOperationMaintainConfOutcomeCallable; + typedef std::function&)> ModifyActiveOperationMaintainConfAsyncHandler; typedef Outcome ModifyActiveOperationTasksOutcome; typedef std::future ModifyActiveOperationTasksOutcomeCallable; typedef std::function&)> ModifyActiveOperationTasksAsyncHandler; + typedef Outcome ModifyApplicationDescriptionOutcome; + typedef std::future ModifyApplicationDescriptionOutcomeCallable; + typedef std::function&)> ModifyApplicationDescriptionAsyncHandler; + typedef Outcome ModifyApplicationParameterOutcome; + typedef std::future ModifyApplicationParameterOutcomeCallable; + typedef std::function&)> ModifyApplicationParameterAsyncHandler; + typedef Outcome ModifyApplicationServerlessConfOutcome; + typedef std::future ModifyApplicationServerlessConfOutcomeCallable; + typedef std::function&)> ModifyApplicationServerlessConfAsyncHandler; + typedef Outcome ModifyApplicationWhitelistOutcome; + typedef std::future ModifyApplicationWhitelistOutcomeCallable; + typedef std::function&)> ModifyApplicationWhitelistAsyncHandler; typedef Outcome ModifyAutoRenewAttributeOutcome; typedef std::future ModifyAutoRenewAttributeOutcomeCallable; typedef std::function&)> ModifyAutoRenewAttributeAsyncHandler; typedef Outcome ModifyBackupPolicyOutcome; typedef std::future ModifyBackupPolicyOutcomeCallable; typedef std::function&)> ModifyBackupPolicyAsyncHandler; + typedef Outcome ModifyCronJobPolicyServerlessOutcome; + typedef std::future ModifyCronJobPolicyServerlessOutcomeCallable; + typedef std::function&)> ModifyCronJobPolicyServerlessAsyncHandler; typedef Outcome ModifyDBClusterOutcome; typedef std::future ModifyDBClusterOutcomeCallable; typedef std::function&)> ModifyDBClusterAsyncHandler; @@ -667,6 +1191,9 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterAndNodesParametersOutcome; typedef std::future ModifyDBClusterAndNodesParametersOutcomeCallable; typedef std::function&)> ModifyDBClusterAndNodesParametersAsyncHandler; + typedef Outcome ModifyDBClusterArchOutcome; + typedef std::future ModifyDBClusterArchOutcomeCallable; + typedef std::function&)> ModifyDBClusterArchAsyncHandler; typedef Outcome ModifyDBClusterAuditLogCollectorOutcome; typedef std::future ModifyDBClusterAuditLogCollectorOutcomeCallable; typedef std::function&)> ModifyDBClusterAuditLogCollectorAsyncHandler; @@ -676,15 +1203,24 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterDescriptionOutcome; typedef std::future ModifyDBClusterDescriptionOutcomeCallable; typedef std::function&)> ModifyDBClusterDescriptionAsyncHandler; + typedef Outcome ModifyDBClusterDescriptionZonalOutcome; + typedef std::future ModifyDBClusterDescriptionZonalOutcomeCallable; + typedef std::function&)> ModifyDBClusterDescriptionZonalAsyncHandler; typedef Outcome ModifyDBClusterEndpointOutcome; typedef std::future ModifyDBClusterEndpointOutcomeCallable; typedef std::function&)> ModifyDBClusterEndpointAsyncHandler; + typedef Outcome ModifyDBClusterEndpointZonalOutcome; + typedef std::future ModifyDBClusterEndpointZonalOutcomeCallable; + typedef std::function&)> ModifyDBClusterEndpointZonalAsyncHandler; typedef Outcome ModifyDBClusterMaintainTimeOutcome; typedef std::future ModifyDBClusterMaintainTimeOutcomeCallable; typedef std::function&)> ModifyDBClusterMaintainTimeAsyncHandler; typedef Outcome ModifyDBClusterMigrationOutcome; typedef std::future ModifyDBClusterMigrationOutcomeCallable; typedef std::function&)> ModifyDBClusterMigrationAsyncHandler; + typedef Outcome ModifyDBClusterMigrationEndpointOutcome; + typedef std::future ModifyDBClusterMigrationEndpointOutcomeCallable; + typedef std::function&)> ModifyDBClusterMigrationEndpointAsyncHandler; typedef Outcome ModifyDBClusterMonitorOutcome; typedef std::future ModifyDBClusterMonitorOutcomeCallable; typedef std::function&)> ModifyDBClusterMonitorAsyncHandler; @@ -712,24 +1248,48 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterTDEOutcome; typedef std::future ModifyDBClusterTDEOutcomeCallable; typedef std::function&)> ModifyDBClusterTDEAsyncHandler; + typedef Outcome ModifyDBClusterVpcOutcome; + typedef std::future ModifyDBClusterVpcOutcomeCallable; + typedef std::function&)> ModifyDBClusterVpcAsyncHandler; typedef Outcome ModifyDBDescriptionOutcome; typedef std::future ModifyDBDescriptionOutcomeCallable; typedef std::function&)> ModifyDBDescriptionAsyncHandler; + typedef Outcome ModifyDBDescriptionZonalOutcome; + typedef std::future ModifyDBDescriptionZonalOutcomeCallable; + typedef std::function&)> ModifyDBDescriptionZonalAsyncHandler; typedef Outcome ModifyDBEndpointAddressOutcome; typedef std::future ModifyDBEndpointAddressOutcomeCallable; typedef std::function&)> ModifyDBEndpointAddressAsyncHandler; typedef Outcome ModifyDBNodeClassOutcome; typedef std::future ModifyDBNodeClassOutcomeCallable; typedef std::function&)> ModifyDBNodeClassAsyncHandler; + typedef Outcome ModifyDBNodeConfigOutcome; + typedef std::future ModifyDBNodeConfigOutcomeCallable; + typedef std::function&)> ModifyDBNodeConfigAsyncHandler; + typedef Outcome ModifyDBNodeDescriptionOutcome; + typedef std::future ModifyDBNodeDescriptionOutcomeCallable; + typedef std::function&)> ModifyDBNodeDescriptionAsyncHandler; typedef Outcome ModifyDBNodeHotReplicaModeOutcome; typedef std::future ModifyDBNodeHotReplicaModeOutcomeCallable; typedef std::function&)> ModifyDBNodeHotReplicaModeAsyncHandler; + typedef Outcome ModifyDBNodeSccModeOutcome; + typedef std::future ModifyDBNodeSccModeOutcomeCallable; + typedef std::function&)> ModifyDBNodeSccModeAsyncHandler; typedef Outcome ModifyDBNodesClassOutcome; typedef std::future ModifyDBNodesClassOutcomeCallable; typedef std::function&)> ModifyDBNodesClassAsyncHandler; typedef Outcome ModifyDBNodesParametersOutcome; typedef std::future ModifyDBNodesParametersOutcomeCallable; typedef std::function&)> ModifyDBNodesParametersAsyncHandler; + typedef Outcome ModifyEncryptionDBRolePrivilegeOutcome; + typedef std::future ModifyEncryptionDBRolePrivilegeOutcomeCallable; + typedef std::function&)> ModifyEncryptionDBRolePrivilegeAsyncHandler; + typedef Outcome ModifyEncryptionDBSecretOutcome; + typedef std::future ModifyEncryptionDBSecretOutcomeCallable; + typedef std::function&)> ModifyEncryptionDBSecretAsyncHandler; + typedef Outcome ModifyFirewallRulesOutcome; + typedef std::future ModifyFirewallRulesOutcomeCallable; + typedef std::function&)> ModifyFirewallRulesAsyncHandler; typedef Outcome ModifyGlobalDatabaseNetworkOutcome; typedef std::future ModifyGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> ModifyGlobalDatabaseNetworkAsyncHandler; @@ -751,9 +1311,21 @@ namespace AlibabaCloud typedef Outcome ModifyPendingMaintenanceActionOutcome; typedef std::future ModifyPendingMaintenanceActionOutcomeCallable; typedef std::function&)> ModifyPendingMaintenanceActionAsyncHandler; + typedef Outcome ModifyResourcePackageOutcome; + typedef std::future ModifyResourcePackageOutcomeCallable; + typedef std::function&)> ModifyResourcePackageAsyncHandler; + typedef Outcome ModifySQLRateLimitingRulesOutcome; + typedef std::future ModifySQLRateLimitingRulesOutcomeCallable; + typedef std::function&)> ModifySQLRateLimitingRulesAsyncHandler; + typedef Outcome ModifyScheduleTaskOutcome; + typedef std::future ModifyScheduleTaskOutcomeCallable; + typedef std::function&)> ModifyScheduleTaskAsyncHandler; typedef Outcome OpenAITaskOutcome; typedef std::future OpenAITaskOutcomeCallable; typedef std::function&)> OpenAITaskAsyncHandler; + typedef Outcome ReactivateDBClusterBackupOutcome; + typedef std::future ReactivateDBClusterBackupOutcomeCallable; + typedef std::function&)> ReactivateDBClusterBackupAsyncHandler; typedef Outcome RefreshDBClusterStorageUsageOutcome; typedef std::future RefreshDBClusterStorageUsageOutcomeCallable; typedef std::function&)> RefreshDBClusterStorageUsageAsyncHandler; @@ -763,6 +1335,12 @@ namespace AlibabaCloud typedef Outcome ResetAccountOutcome; typedef std::future ResetAccountOutcomeCallable; typedef std::function&)> ResetAccountAsyncHandler; + typedef Outcome ResetAccountPasswordOutcome; + typedef std::future ResetAccountPasswordOutcomeCallable; + typedef std::function&)> ResetAccountPasswordAsyncHandler; + typedef Outcome ResetAccountZonalOutcome; + typedef std::future ResetAccountZonalOutcomeCallable; + typedef std::function&)> ResetAccountZonalAsyncHandler; typedef Outcome ResetGlobalDatabaseNetworkOutcome; typedef std::future ResetGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> ResetGlobalDatabaseNetworkAsyncHandler; @@ -772,12 +1350,18 @@ namespace AlibabaCloud typedef Outcome RestartDBNodeOutcome; typedef std::future RestartDBNodeOutcomeCallable; typedef std::function&)> RestartDBNodeAsyncHandler; + typedef Outcome RestartDBNodeZonalOutcome; + typedef std::future RestartDBNodeZonalOutcomeCallable; + typedef std::function&)> RestartDBNodeZonalAsyncHandler; typedef Outcome RestoreTableOutcome; typedef std::future RestoreTableOutcomeCallable; typedef std::function&)> RestoreTableAsyncHandler; typedef Outcome RevokeAccountPrivilegeOutcome; typedef std::future RevokeAccountPrivilegeOutcomeCallable; typedef std::function&)> RevokeAccountPrivilegeAsyncHandler; + typedef Outcome RevokeAccountPrivilegeZonalOutcome; + typedef std::future RevokeAccountPrivilegeZonalOutcomeCallable; + typedef std::function&)> RevokeAccountPrivilegeZonalAsyncHandler; typedef Outcome SwitchOverGlobalDatabaseNetworkOutcome; typedef std::future SwitchOverGlobalDatabaseNetworkOutcomeCallable; typedef std::function&)> SwitchOverGlobalDatabaseNetworkAsyncHandler; @@ -793,26 +1377,59 @@ namespace AlibabaCloud typedef Outcome UntagResourcesOutcome; typedef std::future UntagResourcesOutcomeCallable; typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UpdateExtensionsOutcome; + typedef std::future UpdateExtensionsOutcomeCallable; + typedef std::function&)> UpdateExtensionsAsyncHandler; typedef Outcome UpgradeDBClusterVersionOutcome; typedef std::future UpgradeDBClusterVersionOutcomeCallable; typedef std::function&)> UpgradeDBClusterVersionAsyncHandler; + typedef Outcome UpgradeDBClusterVersionZonalOutcome; + typedef std::future UpgradeDBClusterVersionZonalOutcomeCallable; + typedef std::function&)> UpgradeDBClusterVersionZonalAsyncHandler; PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration); PolardbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); PolardbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~PolardbClient(); + AbortDBClusterMigrationOutcome abortDBClusterMigration(const Model::AbortDBClusterMigrationRequest &request)const; + void abortDBClusterMigrationAsync(const Model::AbortDBClusterMigrationRequest& request, const AbortDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AbortDBClusterMigrationOutcomeCallable abortDBClusterMigrationCallable(const Model::AbortDBClusterMigrationRequest& request) const; + AddEncryptionDBRolePrivilegeOutcome addEncryptionDBRolePrivilege(const Model::AddEncryptionDBRolePrivilegeRequest &request)const; + void addEncryptionDBRolePrivilegeAsync(const Model::AddEncryptionDBRolePrivilegeRequest& request, const AddEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddEncryptionDBRolePrivilegeOutcomeCallable addEncryptionDBRolePrivilegeCallable(const Model::AddEncryptionDBRolePrivilegeRequest& request) const; + AddFirewallRulesOutcome addFirewallRules(const Model::AddFirewallRulesRequest &request)const; + void addFirewallRulesAsync(const Model::AddFirewallRulesRequest& request, const AddFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddFirewallRulesOutcomeCallable addFirewallRulesCallable(const Model::AddFirewallRulesRequest& request) const; + AddSQLRateLimitingRulesOutcome addSQLRateLimitingRules(const Model::AddSQLRateLimitingRulesRequest &request)const; + void addSQLRateLimitingRulesAsync(const Model::AddSQLRateLimitingRulesRequest& request, const AddSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSQLRateLimitingRulesOutcomeCallable addSQLRateLimitingRulesCallable(const Model::AddSQLRateLimitingRulesRequest& request) const; + AttachApplicationPolarFSOutcome attachApplicationPolarFS(const Model::AttachApplicationPolarFSRequest &request)const; + void attachApplicationPolarFSAsync(const Model::AttachApplicationPolarFSRequest& request, const AttachApplicationPolarFSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AttachApplicationPolarFSOutcomeCallable attachApplicationPolarFSCallable(const Model::AttachApplicationPolarFSRequest& request) const; 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; + CancelCronJobPolicyServerlessOutcome cancelCronJobPolicyServerless(const Model::CancelCronJobPolicyServerlessRequest &request)const; + void cancelCronJobPolicyServerlessAsync(const Model::CancelCronJobPolicyServerlessRequest& request, const CancelCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelCronJobPolicyServerlessOutcomeCallable cancelCronJobPolicyServerlessCallable(const Model::CancelCronJobPolicyServerlessRequest& 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; CheckAccountNameOutcome checkAccountName(const Model::CheckAccountNameRequest &request)const; void checkAccountNameAsync(const Model::CheckAccountNameRequest& request, const CheckAccountNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckAccountNameOutcomeCallable checkAccountNameCallable(const Model::CheckAccountNameRequest& request) const; + CheckAccountNameZonalOutcome checkAccountNameZonal(const Model::CheckAccountNameZonalRequest &request)const; + void checkAccountNameZonalAsync(const Model::CheckAccountNameZonalRequest& request, const CheckAccountNameZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckAccountNameZonalOutcomeCallable checkAccountNameZonalCallable(const Model::CheckAccountNameZonalRequest& request) const; + CheckConnectionStringOutcome checkConnectionString(const Model::CheckConnectionStringRequest &request)const; + void checkConnectionStringAsync(const Model::CheckConnectionStringRequest& request, const CheckConnectionStringAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckConnectionStringOutcomeCallable checkConnectionStringCallable(const Model::CheckConnectionStringRequest& request) const; CheckDBNameOutcome checkDBName(const Model::CheckDBNameRequest &request)const; void checkDBNameAsync(const Model::CheckDBNameRequest& request, const CheckDBNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckDBNameOutcomeCallable checkDBNameCallable(const Model::CheckDBNameRequest& request) const; + CheckDBNameZonalOutcome checkDBNameZonal(const Model::CheckDBNameZonalRequest &request)const; + void checkDBNameZonalAsync(const Model::CheckDBNameZonalRequest& request, const CheckDBNameZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CheckDBNameZonalOutcomeCallable checkDBNameZonalCallable(const Model::CheckDBNameZonalRequest& request) const; CheckKMSAuthorizedOutcome checkKMSAuthorized(const Model::CheckKMSAuthorizedRequest &request)const; void checkKMSAuthorizedAsync(const Model::CheckKMSAuthorizedRequest& request, const CheckKMSAuthorizedAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CheckKMSAuthorizedOutcomeCallable checkKMSAuthorizedCallable(const Model::CheckKMSAuthorizedRequest& request) const; @@ -825,24 +1442,42 @@ namespace AlibabaCloud CloseDBClusterMigrationOutcome closeDBClusterMigration(const Model::CloseDBClusterMigrationRequest &request)const; void closeDBClusterMigrationAsync(const Model::CloseDBClusterMigrationRequest& request, const CloseDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CloseDBClusterMigrationOutcomeCallable closeDBClusterMigrationCallable(const Model::CloseDBClusterMigrationRequest& request) const; + ContinueDBClusterMigrationOutcome continueDBClusterMigration(const Model::ContinueDBClusterMigrationRequest &request)const; + void continueDBClusterMigrationAsync(const Model::ContinueDBClusterMigrationRequest& request, const ContinueDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ContinueDBClusterMigrationOutcomeCallable continueDBClusterMigrationCallable(const Model::ContinueDBClusterMigrationRequest& request) const; 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; + CreateAccountZonalOutcome createAccountZonal(const Model::CreateAccountZonalRequest &request)const; + void createAccountZonalAsync(const Model::CreateAccountZonalRequest& request, const CreateAccountZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccountZonalOutcomeCallable createAccountZonalCallable(const Model::CreateAccountZonalRequest& 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; + CreateApplicationOutcome createApplication(const Model::CreateApplicationRequest &request)const; + void createApplicationAsync(const Model::CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationOutcomeCallable createApplicationCallable(const Model::CreateApplicationRequest& request) const; + CreateApplicationEndpointAddressOutcome createApplicationEndpointAddress(const Model::CreateApplicationEndpointAddressRequest &request)const; + void createApplicationEndpointAddressAsync(const Model::CreateApplicationEndpointAddressRequest& request, const CreateApplicationEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateApplicationEndpointAddressOutcomeCallable createApplicationEndpointAddressCallable(const Model::CreateApplicationEndpointAddressRequest& 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; CreateColdStorageInstanceOutcome createColdStorageInstance(const Model::CreateColdStorageInstanceRequest &request)const; void createColdStorageInstanceAsync(const Model::CreateColdStorageInstanceRequest& request, const CreateColdStorageInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateColdStorageInstanceOutcomeCallable createColdStorageInstanceCallable(const Model::CreateColdStorageInstanceRequest& request) const; + CreateCronJobPolicyServerlessOutcome createCronJobPolicyServerless(const Model::CreateCronJobPolicyServerlessRequest &request)const; + void createCronJobPolicyServerlessAsync(const Model::CreateCronJobPolicyServerlessRequest& request, const CreateCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCronJobPolicyServerlessOutcomeCallable createCronJobPolicyServerlessCallable(const Model::CreateCronJobPolicyServerlessRequest& request) const; CreateDBClusterOutcome createDBCluster(const Model::CreateDBClusterRequest &request)const; void createDBClusterAsync(const Model::CreateDBClusterRequest& request, const CreateDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBClusterOutcomeCallable createDBClusterCallable(const Model::CreateDBClusterRequest& request) const; CreateDBClusterEndpointOutcome createDBClusterEndpoint(const Model::CreateDBClusterEndpointRequest &request)const; void createDBClusterEndpointAsync(const Model::CreateDBClusterEndpointRequest& request, const CreateDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBClusterEndpointOutcomeCallable createDBClusterEndpointCallable(const Model::CreateDBClusterEndpointRequest& request) const; + CreateDBClusterEndpointZonalOutcome createDBClusterEndpointZonal(const Model::CreateDBClusterEndpointZonalRequest &request)const; + void createDBClusterEndpointZonalAsync(const Model::CreateDBClusterEndpointZonalRequest& request, const CreateDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDBClusterEndpointZonalOutcomeCallable createDBClusterEndpointZonalCallable(const Model::CreateDBClusterEndpointZonalRequest& request) const; CreateDBEndpointAddressOutcome createDBEndpointAddress(const Model::CreateDBEndpointAddressRequest &request)const; void createDBEndpointAddressAsync(const Model::CreateDBEndpointAddressRequest& request, const CreateDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDBEndpointAddressOutcomeCallable createDBEndpointAddressCallable(const Model::CreateDBEndpointAddressRequest& request) const; @@ -855,12 +1490,24 @@ namespace AlibabaCloud CreateDatabaseOutcome createDatabase(const Model::CreateDatabaseRequest &request)const; void createDatabaseAsync(const Model::CreateDatabaseRequest& request, const CreateDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDatabaseOutcomeCallable createDatabaseCallable(const Model::CreateDatabaseRequest& request) const; + CreateDatabaseZonalOutcome createDatabaseZonal(const Model::CreateDatabaseZonalRequest &request)const; + void createDatabaseZonalAsync(const Model::CreateDatabaseZonalRequest& request, const CreateDatabaseZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDatabaseZonalOutcomeCallable createDatabaseZonalCallable(const Model::CreateDatabaseZonalRequest& request) const; + CreateExtensionsOutcome createExtensions(const Model::CreateExtensionsRequest &request)const; + void createExtensionsAsync(const Model::CreateExtensionsRequest& request, const CreateExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExtensionsOutcomeCallable createExtensionsCallable(const Model::CreateExtensionsRequest& request) const; + CreateGlobalDataNetworkOutcome createGlobalDataNetwork(const Model::CreateGlobalDataNetworkRequest &request)const; + void createGlobalDataNetworkAsync(const Model::CreateGlobalDataNetworkRequest& request, const CreateGlobalDataNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGlobalDataNetworkOutcomeCallable createGlobalDataNetworkCallable(const Model::CreateGlobalDataNetworkRequest& request) const; CreateGlobalDatabaseNetworkOutcome createGlobalDatabaseNetwork(const Model::CreateGlobalDatabaseNetworkRequest &request)const; void createGlobalDatabaseNetworkAsync(const Model::CreateGlobalDatabaseNetworkRequest& request, const CreateGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateGlobalDatabaseNetworkOutcomeCallable createGlobalDatabaseNetworkCallable(const Model::CreateGlobalDatabaseNetworkRequest& request) const; 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; + CreateNetworkChannelOutcome createNetworkChannel(const Model::CreateNetworkChannelRequest &request)const; + void createNetworkChannelAsync(const Model::CreateNetworkChannelRequest& request, const CreateNetworkChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNetworkChannelOutcomeCallable createNetworkChannelCallable(const Model::CreateNetworkChannelRequest& 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; @@ -873,9 +1520,21 @@ namespace AlibabaCloud CreateStoragePlanOutcome createStoragePlan(const Model::CreateStoragePlanRequest &request)const; void createStoragePlanAsync(const Model::CreateStoragePlanRequest& request, const CreateStoragePlanAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateStoragePlanOutcomeCallable createStoragePlanCallable(const Model::CreateStoragePlanRequest& request) const; + DeleteAIDBClusterOutcome deleteAIDBCluster(const Model::DeleteAIDBClusterRequest &request)const; + void deleteAIDBClusterAsync(const Model::DeleteAIDBClusterRequest& request, const DeleteAIDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAIDBClusterOutcomeCallable deleteAIDBClusterCallable(const Model::DeleteAIDBClusterRequest& request) const; DeleteAccountOutcome deleteAccount(const Model::DeleteAccountRequest &request)const; void deleteAccountAsync(const Model::DeleteAccountRequest& request, const DeleteAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteAccountOutcomeCallable deleteAccountCallable(const Model::DeleteAccountRequest& request) const; + DeleteAccountZonalOutcome deleteAccountZonal(const Model::DeleteAccountZonalRequest &request)const; + void deleteAccountZonalAsync(const Model::DeleteAccountZonalRequest& request, const DeleteAccountZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccountZonalOutcomeCallable deleteAccountZonalCallable(const Model::DeleteAccountZonalRequest& request) const; + DeleteApplicationOutcome deleteApplication(const Model::DeleteApplicationRequest &request)const; + void deleteApplicationAsync(const Model::DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationOutcomeCallable deleteApplicationCallable(const Model::DeleteApplicationRequest& request) const; + DeleteApplicationEndpointAddressOutcome deleteApplicationEndpointAddress(const Model::DeleteApplicationEndpointAddressRequest &request)const; + void deleteApplicationEndpointAddressAsync(const Model::DeleteApplicationEndpointAddressRequest& request, const DeleteApplicationEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteApplicationEndpointAddressOutcomeCallable deleteApplicationEndpointAddressCallable(const Model::DeleteApplicationEndpointAddressRequest& request) const; DeleteBackupOutcome deleteBackup(const Model::DeleteBackupRequest &request)const; void deleteBackupAsync(const Model::DeleteBackupRequest& request, const DeleteBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteBackupOutcomeCallable deleteBackupCallable(const Model::DeleteBackupRequest& request) const; @@ -885,6 +1544,9 @@ namespace AlibabaCloud DeleteDBClusterEndpointOutcome deleteDBClusterEndpoint(const Model::DeleteDBClusterEndpointRequest &request)const; void deleteDBClusterEndpointAsync(const Model::DeleteDBClusterEndpointRequest& request, const DeleteDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBClusterEndpointOutcomeCallable deleteDBClusterEndpointCallable(const Model::DeleteDBClusterEndpointRequest& request) const; + DeleteDBClusterEndpointZonalOutcome deleteDBClusterEndpointZonal(const Model::DeleteDBClusterEndpointZonalRequest &request)const; + void deleteDBClusterEndpointZonalAsync(const Model::DeleteDBClusterEndpointZonalRequest& request, const DeleteDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDBClusterEndpointZonalOutcomeCallable deleteDBClusterEndpointZonalCallable(const Model::DeleteDBClusterEndpointZonalRequest& request) const; DeleteDBEndpointAddressOutcome deleteDBEndpointAddress(const Model::DeleteDBEndpointAddressRequest &request)const; void deleteDBEndpointAddressAsync(const Model::DeleteDBEndpointAddressRequest& request, const DeleteDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDBEndpointAddressOutcomeCallable deleteDBEndpointAddressCallable(const Model::DeleteDBEndpointAddressRequest& request) const; @@ -897,6 +1559,21 @@ namespace AlibabaCloud DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const; void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const; + DeleteDatabaseZonalOutcome deleteDatabaseZonal(const Model::DeleteDatabaseZonalRequest &request)const; + void deleteDatabaseZonalAsync(const Model::DeleteDatabaseZonalRequest& request, const DeleteDatabaseZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDatabaseZonalOutcomeCallable deleteDatabaseZonalCallable(const Model::DeleteDatabaseZonalRequest& request) const; + DeleteEncryptionDBRolePrivilegeOutcome deleteEncryptionDBRolePrivilege(const Model::DeleteEncryptionDBRolePrivilegeRequest &request)const; + void deleteEncryptionDBRolePrivilegeAsync(const Model::DeleteEncryptionDBRolePrivilegeRequest& request, const DeleteEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEncryptionDBRolePrivilegeOutcomeCallable deleteEncryptionDBRolePrivilegeCallable(const Model::DeleteEncryptionDBRolePrivilegeRequest& request) const; + DeleteExtensionsOutcome deleteExtensions(const Model::DeleteExtensionsRequest &request)const; + void deleteExtensionsAsync(const Model::DeleteExtensionsRequest& request, const DeleteExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteExtensionsOutcomeCallable deleteExtensionsCallable(const Model::DeleteExtensionsRequest& request) const; + DeleteFirewallRulesOutcome deleteFirewallRules(const Model::DeleteFirewallRulesRequest &request)const; + void deleteFirewallRulesAsync(const Model::DeleteFirewallRulesRequest& request, const DeleteFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFirewallRulesOutcomeCallable deleteFirewallRulesCallable(const Model::DeleteFirewallRulesRequest& request) const; + DeleteGlobalDataNetworkOutcome deleteGlobalDataNetwork(const Model::DeleteGlobalDataNetworkRequest &request)const; + void deleteGlobalDataNetworkAsync(const Model::DeleteGlobalDataNetworkRequest& request, const DeleteGlobalDataNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGlobalDataNetworkOutcomeCallable deleteGlobalDataNetworkCallable(const Model::DeleteGlobalDataNetworkRequest& request) const; DeleteGlobalDatabaseNetworkOutcome deleteGlobalDatabaseNetwork(const Model::DeleteGlobalDatabaseNetworkRequest &request)const; void deleteGlobalDatabaseNetworkAsync(const Model::DeleteGlobalDatabaseNetworkRequest& request, const DeleteGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteGlobalDatabaseNetworkOutcomeCallable deleteGlobalDatabaseNetworkCallable(const Model::DeleteGlobalDatabaseNetworkRequest& request) const; @@ -906,33 +1583,72 @@ namespace AlibabaCloud DeleteMaskingRulesOutcome deleteMaskingRules(const Model::DeleteMaskingRulesRequest &request)const; void deleteMaskingRulesAsync(const Model::DeleteMaskingRulesRequest& request, const DeleteMaskingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteMaskingRulesOutcomeCallable deleteMaskingRulesCallable(const Model::DeleteMaskingRulesRequest& request) const; + DeleteNetworkChannelOutcome deleteNetworkChannel(const Model::DeleteNetworkChannelRequest &request)const; + void deleteNetworkChannelAsync(const Model::DeleteNetworkChannelRequest& request, const DeleteNetworkChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNetworkChannelOutcomeCallable deleteNetworkChannelCallable(const Model::DeleteNetworkChannelRequest& request) const; DeleteParameterGroupOutcome deleteParameterGroup(const Model::DeleteParameterGroupRequest &request)const; void deleteParameterGroupAsync(const Model::DeleteParameterGroupRequest& request, const DeleteParameterGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteParameterGroupOutcomeCallable deleteParameterGroupCallable(const Model::DeleteParameterGroupRequest& request) const; + DeleteSQLRateLimitingRulesOutcome deleteSQLRateLimitingRules(const Model::DeleteSQLRateLimitingRulesRequest &request)const; + void deleteSQLRateLimitingRulesAsync(const Model::DeleteSQLRateLimitingRulesRequest& request, const DeleteSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSQLRateLimitingRulesOutcomeCallable deleteSQLRateLimitingRulesCallable(const Model::DeleteSQLRateLimitingRulesRequest& request) const; + DescribeAIDBClusterAttributeOutcome describeAIDBClusterAttribute(const Model::DescribeAIDBClusterAttributeRequest &request)const; + void describeAIDBClusterAttributeAsync(const Model::DescribeAIDBClusterAttributeRequest& request, const DescribeAIDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAIDBClusterAttributeOutcomeCallable describeAIDBClusterAttributeCallable(const Model::DescribeAIDBClusterAttributeRequest& request) const; + DescribeAIDBClusterPerformanceOutcome describeAIDBClusterPerformance(const Model::DescribeAIDBClusterPerformanceRequest &request)const; + void describeAIDBClusterPerformanceAsync(const Model::DescribeAIDBClusterPerformanceRequest& request, const DescribeAIDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAIDBClusterPerformanceOutcomeCallable describeAIDBClusterPerformanceCallable(const Model::DescribeAIDBClusterPerformanceRequest& request) const; + DescribeAIDBClustersOutcome describeAIDBClusters(const Model::DescribeAIDBClustersRequest &request)const; + void describeAIDBClustersAsync(const Model::DescribeAIDBClustersRequest& request, const DescribeAIDBClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAIDBClustersOutcomeCallable describeAIDBClustersCallable(const Model::DescribeAIDBClustersRequest& request) const; DescribeAITaskStatusOutcome describeAITaskStatus(const Model::DescribeAITaskStatusRequest &request)const; void describeAITaskStatusAsync(const Model::DescribeAITaskStatusRequest& request, const DescribeAITaskStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAITaskStatusOutcomeCallable describeAITaskStatusCallable(const Model::DescribeAITaskStatusRequest& request) const; 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; + DescribeAccountsZonalOutcome describeAccountsZonal(const Model::DescribeAccountsZonalRequest &request)const; + void describeAccountsZonalAsync(const Model::DescribeAccountsZonalRequest& request, const DescribeAccountsZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccountsZonalOutcomeCallable describeAccountsZonalCallable(const Model::DescribeAccountsZonalRequest& 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; + DescribeActiveOperationMaintainConfOutcome describeActiveOperationMaintainConf(const Model::DescribeActiveOperationMaintainConfRequest &request)const; + void describeActiveOperationMaintainConfAsync(const Model::DescribeActiveOperationMaintainConfRequest& request, const DescribeActiveOperationMaintainConfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveOperationMaintainConfOutcomeCallable describeActiveOperationMaintainConfCallable(const Model::DescribeActiveOperationMaintainConfRequest& 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; + DescribeApplicationAttributeOutcome describeApplicationAttribute(const Model::DescribeApplicationAttributeRequest &request)const; + void describeApplicationAttributeAsync(const Model::DescribeApplicationAttributeRequest& request, const DescribeApplicationAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationAttributeOutcomeCallable describeApplicationAttributeCallable(const Model::DescribeApplicationAttributeRequest& request) const; + DescribeApplicationParametersOutcome describeApplicationParameters(const Model::DescribeApplicationParametersRequest &request)const; + void describeApplicationParametersAsync(const Model::DescribeApplicationParametersRequest& request, const DescribeApplicationParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationParametersOutcomeCallable describeApplicationParametersCallable(const Model::DescribeApplicationParametersRequest& request) const; + DescribeApplicationServerlessConfOutcome describeApplicationServerlessConf(const Model::DescribeApplicationServerlessConfRequest &request)const; + void describeApplicationServerlessConfAsync(const Model::DescribeApplicationServerlessConfRequest& request, const DescribeApplicationServerlessConfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationServerlessConfOutcomeCallable describeApplicationServerlessConfCallable(const Model::DescribeApplicationServerlessConfRequest& request) const; + DescribeApplicationsOutcome describeApplications(const Model::DescribeApplicationsRequest &request)const; + void describeApplicationsAsync(const Model::DescribeApplicationsRequest& request, const DescribeApplicationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeApplicationsOutcomeCallable describeApplicationsCallable(const Model::DescribeApplicationsRequest& 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; + DescribeAvailableCrossRegionsOutcome describeAvailableCrossRegions(const Model::DescribeAvailableCrossRegionsRequest &request)const; + void describeAvailableCrossRegionsAsync(const Model::DescribeAvailableCrossRegionsRequest& request, const DescribeAvailableCrossRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableCrossRegionsOutcomeCallable describeAvailableCrossRegionsCallable(const Model::DescribeAvailableCrossRegionsRequest& request) const; DescribeBackupLogsOutcome describeBackupLogs(const Model::DescribeBackupLogsRequest &request)const; void describeBackupLogsAsync(const Model::DescribeBackupLogsRequest& request, const DescribeBackupLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupLogsOutcomeCallable describeBackupLogsCallable(const Model::DescribeBackupLogsRequest& request) const; DescribeBackupPolicyOutcome describeBackupPolicy(const Model::DescribeBackupPolicyRequest &request)const; void describeBackupPolicyAsync(const Model::DescribeBackupPolicyRequest& request, const DescribeBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupPolicyOutcomeCallable describeBackupPolicyCallable(const Model::DescribeBackupPolicyRequest& request) const; + DescribeBackupRegionsOutcome describeBackupRegions(const Model::DescribeBackupRegionsRequest &request)const; + void describeBackupRegionsAsync(const Model::DescribeBackupRegionsRequest& request, const DescribeBackupRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeBackupRegionsOutcomeCallable describeBackupRegionsCallable(const Model::DescribeBackupRegionsRequest& request) const; DescribeBackupTasksOutcome describeBackupTasks(const Model::DescribeBackupTasksRequest &request)const; void describeBackupTasksAsync(const Model::DescribeBackupTasksRequest& request, const DescribeBackupTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupTasksOutcomeCallable describeBackupTasksCallable(const Model::DescribeBackupTasksRequest& request) const; @@ -945,6 +1661,21 @@ namespace AlibabaCloud DescribeClassListOutcome describeClassList(const Model::DescribeClassListRequest &request)const; void describeClassListAsync(const Model::DescribeClassListRequest& request, const DescribeClassListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClassListOutcomeCallable describeClassListCallable(const Model::DescribeClassListRequest& request) const; + DescribeColdStorageInstanceOutcome describeColdStorageInstance(const Model::DescribeColdStorageInstanceRequest &request)const; + void describeColdStorageInstanceAsync(const Model::DescribeColdStorageInstanceRequest& request, const DescribeColdStorageInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeColdStorageInstanceOutcomeCallable describeColdStorageInstanceCallable(const Model::DescribeColdStorageInstanceRequest& request) const; + DescribeCronJobPolicyServerlessOutcome describeCronJobPolicyServerless(const Model::DescribeCronJobPolicyServerlessRequest &request)const; + void describeCronJobPolicyServerlessAsync(const Model::DescribeCronJobPolicyServerlessRequest& request, const DescribeCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCronJobPolicyServerlessOutcomeCallable describeCronJobPolicyServerlessCallable(const Model::DescribeCronJobPolicyServerlessRequest& request) const; + DescribeCrossCloudLevelsOutcome describeCrossCloudLevels(const Model::DescribeCrossCloudLevelsRequest &request)const; + void describeCrossCloudLevelsAsync(const Model::DescribeCrossCloudLevelsRequest& request, const DescribeCrossCloudLevelsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossCloudLevelsOutcomeCallable describeCrossCloudLevelsCallable(const Model::DescribeCrossCloudLevelsRequest& request) const; + DescribeCrossCloudRegionOutcome describeCrossCloudRegion(const Model::DescribeCrossCloudRegionRequest &request)const; + void describeCrossCloudRegionAsync(const Model::DescribeCrossCloudRegionRequest& request, const DescribeCrossCloudRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossCloudRegionOutcomeCallable describeCrossCloudRegionCallable(const Model::DescribeCrossCloudRegionRequest& request) const; + DescribeCrossCloudRegionMappingToAliyunOutcome describeCrossCloudRegionMappingToAliyun(const Model::DescribeCrossCloudRegionMappingToAliyunRequest &request)const; + void describeCrossCloudRegionMappingToAliyunAsync(const Model::DescribeCrossCloudRegionMappingToAliyunRequest& request, const DescribeCrossCloudRegionMappingToAliyunAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCrossCloudRegionMappingToAliyunOutcomeCallable describeCrossCloudRegionMappingToAliyunCallable(const Model::DescribeCrossCloudRegionMappingToAliyunRequest& request) const; DescribeDBClusterAccessWhitelistOutcome describeDBClusterAccessWhitelist(const Model::DescribeDBClusterAccessWhitelistRequest &request)const; void describeDBClusterAccessWhitelistAsync(const Model::DescribeDBClusterAccessWhitelistRequest& request, const DescribeDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterAccessWhitelistOutcomeCallable describeDBClusterAccessWhitelistCallable(const Model::DescribeDBClusterAccessWhitelistRequest& request) const; @@ -960,21 +1691,33 @@ namespace AlibabaCloud DescribeDBClusterConnectivityOutcome describeDBClusterConnectivity(const Model::DescribeDBClusterConnectivityRequest &request)const; void describeDBClusterConnectivityAsync(const Model::DescribeDBClusterConnectivityRequest& request, const DescribeDBClusterConnectivityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterConnectivityOutcomeCallable describeDBClusterConnectivityCallable(const Model::DescribeDBClusterConnectivityRequest& request) const; + DescribeDBClusterEncryptionKeyOutcome describeDBClusterEncryptionKey(const Model::DescribeDBClusterEncryptionKeyRequest &request)const; + void describeDBClusterEncryptionKeyAsync(const Model::DescribeDBClusterEncryptionKeyRequest& request, const DescribeDBClusterEncryptionKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterEncryptionKeyOutcomeCallable describeDBClusterEncryptionKeyCallable(const Model::DescribeDBClusterEncryptionKeyRequest& request) const; DescribeDBClusterEndpointsOutcome describeDBClusterEndpoints(const Model::DescribeDBClusterEndpointsRequest &request)const; void describeDBClusterEndpointsAsync(const Model::DescribeDBClusterEndpointsRequest& request, const DescribeDBClusterEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterEndpointsOutcomeCallable describeDBClusterEndpointsCallable(const Model::DescribeDBClusterEndpointsRequest& request) const; + DescribeDBClusterEndpointsZonalOutcome describeDBClusterEndpointsZonal(const Model::DescribeDBClusterEndpointsZonalRequest &request)const; + void describeDBClusterEndpointsZonalAsync(const Model::DescribeDBClusterEndpointsZonalRequest& request, const DescribeDBClusterEndpointsZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterEndpointsZonalOutcomeCallable describeDBClusterEndpointsZonalCallable(const Model::DescribeDBClusterEndpointsZonalRequest& request) const; DescribeDBClusterMigrationOutcome describeDBClusterMigration(const Model::DescribeDBClusterMigrationRequest &request)const; void describeDBClusterMigrationAsync(const Model::DescribeDBClusterMigrationRequest& request, const DescribeDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterMigrationOutcomeCallable describeDBClusterMigrationCallable(const Model::DescribeDBClusterMigrationRequest& request) const; DescribeDBClusterMonitorOutcome describeDBClusterMonitor(const Model::DescribeDBClusterMonitorRequest &request)const; void describeDBClusterMonitorAsync(const Model::DescribeDBClusterMonitorRequest& request, const DescribeDBClusterMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterMonitorOutcomeCallable describeDBClusterMonitorCallable(const Model::DescribeDBClusterMonitorRequest& request) const; + DescribeDBClusterNetInfoOutcome describeDBClusterNetInfo(const Model::DescribeDBClusterNetInfoRequest &request)const; + void describeDBClusterNetInfoAsync(const Model::DescribeDBClusterNetInfoRequest& request, const DescribeDBClusterNetInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterNetInfoOutcomeCallable describeDBClusterNetInfoCallable(const Model::DescribeDBClusterNetInfoRequest& request) const; DescribeDBClusterParametersOutcome describeDBClusterParameters(const Model::DescribeDBClusterParametersRequest &request)const; void describeDBClusterParametersAsync(const Model::DescribeDBClusterParametersRequest& request, const DescribeDBClusterParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterParametersOutcomeCallable describeDBClusterParametersCallable(const Model::DescribeDBClusterParametersRequest& request) const; DescribeDBClusterPerformanceOutcome describeDBClusterPerformance(const Model::DescribeDBClusterPerformanceRequest &request)const; void describeDBClusterPerformanceAsync(const Model::DescribeDBClusterPerformanceRequest& request, const DescribeDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterPerformanceOutcomeCallable describeDBClusterPerformanceCallable(const Model::DescribeDBClusterPerformanceRequest& request) const; + DescribeDBClusterProxyOutcome describeDBClusterProxy(const Model::DescribeDBClusterProxyRequest &request)const; + void describeDBClusterProxyAsync(const Model::DescribeDBClusterProxyRequest& request, const DescribeDBClusterProxyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterProxyOutcomeCallable describeDBClusterProxyCallable(const Model::DescribeDBClusterProxyRequest& request) const; DescribeDBClusterSSLOutcome describeDBClusterSSL(const Model::DescribeDBClusterSSLRequest &request)const; void describeDBClusterSSLAsync(const Model::DescribeDBClusterSSLRequest& request, const DescribeDBClusterSSLAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterSSLOutcomeCallable describeDBClusterSSLCallable(const Model::DescribeDBClusterSSLRequest& request) const; @@ -987,18 +1730,33 @@ namespace AlibabaCloud DescribeDBClusterVersionOutcome describeDBClusterVersion(const Model::DescribeDBClusterVersionRequest &request)const; void describeDBClusterVersionAsync(const Model::DescribeDBClusterVersionRequest& request, const DescribeDBClusterVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterVersionOutcomeCallable describeDBClusterVersionCallable(const Model::DescribeDBClusterVersionRequest& request) const; + DescribeDBClusterVersionZonalOutcome describeDBClusterVersionZonal(const Model::DescribeDBClusterVersionZonalRequest &request)const; + void describeDBClusterVersionZonalAsync(const Model::DescribeDBClusterVersionZonalRequest& request, const DescribeDBClusterVersionZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterVersionZonalOutcomeCallable describeDBClusterVersionZonalCallable(const Model::DescribeDBClusterVersionZonalRequest& request) const; DescribeDBClustersOutcome describeDBClusters(const Model::DescribeDBClustersRequest &request)const; void describeDBClustersAsync(const Model::DescribeDBClustersRequest& request, const DescribeDBClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClustersOutcomeCallable describeDBClustersCallable(const Model::DescribeDBClustersRequest& request) const; DescribeDBClustersWithBackupsOutcome describeDBClustersWithBackups(const Model::DescribeDBClustersWithBackupsRequest &request)const; void describeDBClustersWithBackupsAsync(const Model::DescribeDBClustersWithBackupsRequest& request, const DescribeDBClustersWithBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClustersWithBackupsOutcomeCallable describeDBClustersWithBackupsCallable(const Model::DescribeDBClustersWithBackupsRequest& request) const; + DescribeDBClustersZonalOutcome describeDBClustersZonal(const Model::DescribeDBClustersZonalRequest &request)const; + void describeDBClustersZonalAsync(const Model::DescribeDBClustersZonalRequest& request, const DescribeDBClustersZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClustersZonalOutcomeCallable describeDBClustersZonalCallable(const Model::DescribeDBClustersZonalRequest& request) const; DescribeDBInitializeVariableOutcome describeDBInitializeVariable(const Model::DescribeDBInitializeVariableRequest &request)const; void describeDBInitializeVariableAsync(const Model::DescribeDBInitializeVariableRequest& request, const DescribeDBInitializeVariableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInitializeVariableOutcomeCallable describeDBInitializeVariableCallable(const Model::DescribeDBInitializeVariableRequest& request) const; + DescribeDBInstancePerformanceOutcome describeDBInstancePerformance(const Model::DescribeDBInstancePerformanceRequest &request)const; + void describeDBInstancePerformanceAsync(const Model::DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBInstancePerformanceOutcomeCallable describeDBInstancePerformanceCallable(const Model::DescribeDBInstancePerformanceRequest& request) const; DescribeDBLinksOutcome describeDBLinks(const Model::DescribeDBLinksRequest &request)const; void describeDBLinksAsync(const Model::DescribeDBLinksRequest& request, const DescribeDBLinksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBLinksOutcomeCallable describeDBLinksCallable(const Model::DescribeDBLinksRequest& request) const; + DescribeDBLogFilesOutcome describeDBLogFiles(const Model::DescribeDBLogFilesRequest &request)const; + void describeDBLogFilesAsync(const Model::DescribeDBLogFilesRequest& request, const DescribeDBLogFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBLogFilesOutcomeCallable describeDBLogFilesCallable(const Model::DescribeDBLogFilesRequest& request) const; + DescribeDBMiniEngineVersionsOutcome describeDBMiniEngineVersions(const Model::DescribeDBMiniEngineVersionsRequest &request)const; + void describeDBMiniEngineVersionsAsync(const Model::DescribeDBMiniEngineVersionsRequest& request, const DescribeDBMiniEngineVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBMiniEngineVersionsOutcomeCallable describeDBMiniEngineVersionsCallable(const Model::DescribeDBMiniEngineVersionsRequest& request) const; DescribeDBNodePerformanceOutcome describeDBNodePerformance(const Model::DescribeDBNodePerformanceRequest &request)const; void describeDBNodePerformanceAsync(const Model::DescribeDBNodePerformanceRequest& request, const DescribeDBNodePerformanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBNodePerformanceOutcomeCallable describeDBNodePerformanceCallable(const Model::DescribeDBNodePerformanceRequest& request) const; @@ -1014,9 +1772,30 @@ namespace AlibabaCloud DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const; void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const; + DescribeDatabasesZonalOutcome describeDatabasesZonal(const Model::DescribeDatabasesZonalRequest &request)const; + void describeDatabasesZonalAsync(const Model::DescribeDatabasesZonalRequest& request, const DescribeDatabasesZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDatabasesZonalOutcomeCallable describeDatabasesZonalCallable(const Model::DescribeDatabasesZonalRequest& request) const; + DescribeDbClusterAttributeZonalOutcome describeDbClusterAttributeZonal(const Model::DescribeDbClusterAttributeZonalRequest &request)const; + void describeDbClusterAttributeZonalAsync(const Model::DescribeDbClusterAttributeZonalRequest& request, const DescribeDbClusterAttributeZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDbClusterAttributeZonalOutcomeCallable describeDbClusterAttributeZonalCallable(const Model::DescribeDbClusterAttributeZonalRequest& request) const; DescribeDetachedBackupsOutcome describeDetachedBackups(const Model::DescribeDetachedBackupsRequest &request)const; void describeDetachedBackupsAsync(const Model::DescribeDetachedBackupsRequest& request, const DescribeDetachedBackupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDetachedBackupsOutcomeCallable describeDetachedBackupsCallable(const Model::DescribeDetachedBackupsRequest& request) const; + DescribeEncryptionDBRolePrivilegeOutcome describeEncryptionDBRolePrivilege(const Model::DescribeEncryptionDBRolePrivilegeRequest &request)const; + void describeEncryptionDBRolePrivilegeAsync(const Model::DescribeEncryptionDBRolePrivilegeRequest& request, const DescribeEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEncryptionDBRolePrivilegeOutcomeCallable describeEncryptionDBRolePrivilegeCallable(const Model::DescribeEncryptionDBRolePrivilegeRequest& request) const; + DescribeEncryptionDBSecretOutcome describeEncryptionDBSecret(const Model::DescribeEncryptionDBSecretRequest &request)const; + void describeEncryptionDBSecretAsync(const Model::DescribeEncryptionDBSecretRequest& request, const DescribeEncryptionDBSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEncryptionDBSecretOutcomeCallable describeEncryptionDBSecretCallable(const Model::DescribeEncryptionDBSecretRequest& request) const; + DescribeExtensionsOutcome describeExtensions(const Model::DescribeExtensionsRequest &request)const; + void describeExtensionsAsync(const Model::DescribeExtensionsRequest& request, const DescribeExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeExtensionsOutcomeCallable describeExtensionsCallable(const Model::DescribeExtensionsRequest& request) const; + DescribeFirewallRulesOutcome describeFirewallRules(const Model::DescribeFirewallRulesRequest &request)const; + void describeFirewallRulesAsync(const Model::DescribeFirewallRulesRequest& request, const DescribeFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeFirewallRulesOutcomeCallable describeFirewallRulesCallable(const Model::DescribeFirewallRulesRequest& request) const; + DescribeGlobalDataNetworkListOutcome describeGlobalDataNetworkList(const Model::DescribeGlobalDataNetworkListRequest &request)const; + void describeGlobalDataNetworkListAsync(const Model::DescribeGlobalDataNetworkListRequest& request, const DescribeGlobalDataNetworkListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGlobalDataNetworkListOutcomeCallable describeGlobalDataNetworkListCallable(const Model::DescribeGlobalDataNetworkListRequest& request) const; DescribeGlobalDatabaseNetworkOutcome describeGlobalDatabaseNetwork(const Model::DescribeGlobalDatabaseNetworkRequest &request)const; void describeGlobalDatabaseNetworkAsync(const Model::DescribeGlobalDatabaseNetworkRequest& request, const DescribeGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGlobalDatabaseNetworkOutcomeCallable describeGlobalDatabaseNetworkCallable(const Model::DescribeGlobalDatabaseNetworkRequest& request) const; @@ -1029,12 +1808,24 @@ 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; + DescribeHALogsOutcome describeHALogs(const Model::DescribeHALogsRequest &request)const; + void describeHALogsAsync(const Model::DescribeHALogsRequest& request, const DescribeHALogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHALogsOutcomeCallable describeHALogsCallable(const Model::DescribeHALogsRequest& request) const; + DescribeHistoryTasksOutcome describeHistoryTasks(const Model::DescribeHistoryTasksRequest &request)const; + void describeHistoryTasksAsync(const Model::DescribeHistoryTasksRequest& request, const DescribeHistoryTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHistoryTasksOutcomeCallable describeHistoryTasksCallable(const Model::DescribeHistoryTasksRequest& request) const; + DescribeHistoryTasksStatOutcome describeHistoryTasksStat(const Model::DescribeHistoryTasksStatRequest &request)const; + void describeHistoryTasksStatAsync(const Model::DescribeHistoryTasksStatRequest& request, const DescribeHistoryTasksStatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHistoryTasksStatOutcomeCallable describeHistoryTasksStatCallable(const Model::DescribeHistoryTasksStatRequest& 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; + DescribeLocalAvailableRecoveryTimeOutcome describeLocalAvailableRecoveryTime(const Model::DescribeLocalAvailableRecoveryTimeRequest &request)const; + void describeLocalAvailableRecoveryTimeAsync(const Model::DescribeLocalAvailableRecoveryTimeRequest& request, const DescribeLocalAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLocalAvailableRecoveryTimeOutcomeCallable describeLocalAvailableRecoveryTimeCallable(const Model::DescribeLocalAvailableRecoveryTimeRequest& 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; @@ -1044,6 +1835,12 @@ namespace AlibabaCloud DescribeMetaListOutcome describeMetaList(const Model::DescribeMetaListRequest &request)const; void describeMetaListAsync(const Model::DescribeMetaListRequest& request, const DescribeMetaListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMetaListOutcomeCallable describeMetaListCallable(const Model::DescribeMetaListRequest& request) const; + DescribeModifyParameterLogOutcome describeModifyParameterLog(const Model::DescribeModifyParameterLogRequest &request)const; + void describeModifyParameterLogAsync(const Model::DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeModifyParameterLogOutcomeCallable describeModifyParameterLogCallable(const Model::DescribeModifyParameterLogRequest& request) const; + DescribeNetworkChannelOutcome describeNetworkChannel(const Model::DescribeNetworkChannelRequest &request)const; + void describeNetworkChannelAsync(const Model::DescribeNetworkChannelRequest& request, const DescribeNetworkChannelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNetworkChannelOutcomeCallable describeNetworkChannelCallable(const Model::DescribeNetworkChannelRequest& request) const; DescribeParameterGroupOutcome describeParameterGroup(const Model::DescribeParameterGroupRequest &request)const; void describeParameterGroupAsync(const Model::DescribeParameterGroupRequest& request, const DescribeParameterGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeParameterGroupOutcomeCallable describeParameterGroupCallable(const Model::DescribeParameterGroupRequest& request) const; @@ -1062,9 +1859,21 @@ namespace AlibabaCloud DescribePolarSQLCollectorPolicyOutcome describePolarSQLCollectorPolicy(const Model::DescribePolarSQLCollectorPolicyRequest &request)const; void describePolarSQLCollectorPolicyAsync(const Model::DescribePolarSQLCollectorPolicyRequest& request, const DescribePolarSQLCollectorPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribePolarSQLCollectorPolicyOutcomeCallable describePolarSQLCollectorPolicyCallable(const Model::DescribePolarSQLCollectorPolicyRequest& request) const; + DescribeRdsVSwitchsOutcome describeRdsVSwitchs(const Model::DescribeRdsVSwitchsRequest &request)const; + void describeRdsVSwitchsAsync(const Model::DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVSwitchsOutcomeCallable describeRdsVSwitchsCallable(const Model::DescribeRdsVSwitchsRequest& request) const; + DescribeRdsVpcsOutcome describeRdsVpcs(const Model::DescribeRdsVpcsRequest &request)const; + void describeRdsVpcsAsync(const Model::DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRdsVpcsOutcomeCallable describeRdsVpcsCallable(const Model::DescribeRdsVpcsRequest& request) const; DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeResourcePackagesOutcome describeResourcePackages(const Model::DescribeResourcePackagesRequest &request)const; + void describeResourcePackagesAsync(const Model::DescribeResourcePackagesRequest& request, const DescribeResourcePackagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeResourcePackagesOutcomeCallable describeResourcePackagesCallable(const Model::DescribeResourcePackagesRequest& request) const; + DescribeSQLRateLimitingRulesOutcome describeSQLRateLimitingRules(const Model::DescribeSQLRateLimitingRulesRequest &request)const; + void describeSQLRateLimitingRulesAsync(const Model::DescribeSQLRateLimitingRulesRequest& request, const DescribeSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSQLRateLimitingRulesOutcomeCallable describeSQLRateLimitingRulesCallable(const Model::DescribeSQLRateLimitingRulesRequest& request) const; DescribeScheduleTasksOutcome describeScheduleTasks(const Model::DescribeScheduleTasksRequest &request)const; void describeScheduleTasksAsync(const Model::DescribeScheduleTasksRequest& request, const DescribeScheduleTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScheduleTasksOutcomeCallable describeScheduleTasksCallable(const Model::DescribeScheduleTasksRequest& request) const; @@ -1077,51 +1886,120 @@ namespace AlibabaCloud DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; + DescribeUpgradeReportOutcome describeUpgradeReport(const Model::DescribeUpgradeReportRequest &request)const; + void describeUpgradeReportAsync(const Model::DescribeUpgradeReportRequest& request, const DescribeUpgradeReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUpgradeReportOutcomeCallable describeUpgradeReportCallable(const Model::DescribeUpgradeReportRequest& request) const; DescribeUserEncryptionKeyListOutcome describeUserEncryptionKeyList(const Model::DescribeUserEncryptionKeyListRequest &request)const; void describeUserEncryptionKeyListAsync(const Model::DescribeUserEncryptionKeyListRequest& request, const DescribeUserEncryptionKeyListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeUserEncryptionKeyListOutcomeCallable describeUserEncryptionKeyListCallable(const Model::DescribeUserEncryptionKeyListRequest& request) const; + DescribeVSwitchListOutcome describeVSwitchList(const Model::DescribeVSwitchListRequest &request)const; + void describeVSwitchListAsync(const Model::DescribeVSwitchListRequest& request, const DescribeVSwitchListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVSwitchListOutcomeCallable describeVSwitchListCallable(const Model::DescribeVSwitchListRequest& request) const; DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const; void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const; + DescribeVpcsOutcome describeVpcs(const Model::DescribeVpcsRequest &request)const; + void describeVpcsAsync(const Model::DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVpcsOutcomeCallable describeVpcsCallable(const Model::DescribeVpcsRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + DisableDBClusterOrcaOutcome disableDBClusterOrca(const Model::DisableDBClusterOrcaRequest &request)const; + void disableDBClusterOrcaAsync(const Model::DisableDBClusterOrcaRequest& request, const DisableDBClusterOrcaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableDBClusterOrcaOutcomeCallable disableDBClusterOrcaCallable(const Model::DisableDBClusterOrcaRequest& request) const; DisableDBClusterServerlessOutcome disableDBClusterServerless(const Model::DisableDBClusterServerlessRequest &request)const; void disableDBClusterServerlessAsync(const Model::DisableDBClusterServerlessRequest& request, const DisableDBClusterServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableDBClusterServerlessOutcomeCallable disableDBClusterServerlessCallable(const Model::DisableDBClusterServerlessRequest& request) const; + EnableDBClusterOrcaOutcome enableDBClusterOrca(const Model::EnableDBClusterOrcaRequest &request)const; + void enableDBClusterOrcaAsync(const Model::EnableDBClusterOrcaRequest& request, const EnableDBClusterOrcaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableDBClusterOrcaOutcomeCallable enableDBClusterOrcaCallable(const Model::EnableDBClusterOrcaRequest& request) const; EnableDBClusterServerlessOutcome enableDBClusterServerless(const Model::EnableDBClusterServerlessRequest &request)const; void enableDBClusterServerlessAsync(const Model::EnableDBClusterServerlessRequest& request, const EnableDBClusterServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableDBClusterServerlessOutcomeCallable enableDBClusterServerlessCallable(const Model::EnableDBClusterServerlessRequest& request) const; EnableFirewallRulesOutcome enableFirewallRules(const Model::EnableFirewallRulesRequest &request)const; void enableFirewallRulesAsync(const Model::EnableFirewallRulesRequest& request, const EnableFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableFirewallRulesOutcomeCallable enableFirewallRulesCallable(const Model::EnableFirewallRulesRequest& request) const; + EnableSQLRateLimitingRulesOutcome enableSQLRateLimitingRules(const Model::EnableSQLRateLimitingRulesRequest &request)const; + void enableSQLRateLimitingRulesAsync(const Model::EnableSQLRateLimitingRulesRequest& request, const EnableSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableSQLRateLimitingRulesOutcomeCallable enableSQLRateLimitingRulesCallable(const Model::EnableSQLRateLimitingRulesRequest& request) const; EvaluateRegionResourceOutcome evaluateRegionResource(const Model::EvaluateRegionResourceRequest &request)const; void evaluateRegionResourceAsync(const Model::EvaluateRegionResourceRequest& request, const EvaluateRegionResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EvaluateRegionResourceOutcomeCallable evaluateRegionResourceCallable(const Model::EvaluateRegionResourceRequest& request) const; + ExecuteCrossCloudOpenAPIOutcome executeCrossCloudOpenAPI(const Model::ExecuteCrossCloudOpenAPIRequest &request)const; + void executeCrossCloudOpenAPIAsync(const Model::ExecuteCrossCloudOpenAPIRequest& request, const ExecuteCrossCloudOpenAPIAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteCrossCloudOpenAPIOutcomeCallable executeCrossCloudOpenAPICallable(const Model::ExecuteCrossCloudOpenAPIRequest& request) const; FailoverDBClusterOutcome failoverDBCluster(const Model::FailoverDBClusterRequest &request)const; void failoverDBClusterAsync(const Model::FailoverDBClusterRequest& request, const FailoverDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; FailoverDBClusterOutcomeCallable failoverDBClusterCallable(const Model::FailoverDBClusterRequest& request) const; + FailoverDBClusterZonalOutcome failoverDBClusterZonal(const Model::FailoverDBClusterZonalRequest &request)const; + void failoverDBClusterZonalAsync(const Model::FailoverDBClusterZonalRequest& request, const FailoverDBClusterZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FailoverDBClusterZonalOutcomeCallable failoverDBClusterZonalCallable(const Model::FailoverDBClusterZonalRequest& request) const; + GenerateUpgradeReportForSyncCloneOutcome generateUpgradeReportForSyncClone(const Model::GenerateUpgradeReportForSyncCloneRequest &request)const; + void generateUpgradeReportForSyncCloneAsync(const Model::GenerateUpgradeReportForSyncCloneRequest& request, const GenerateUpgradeReportForSyncCloneAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateUpgradeReportForSyncCloneOutcomeCallable generateUpgradeReportForSyncCloneCallable(const Model::GenerateUpgradeReportForSyncCloneRequest& request) const; GrantAccountPrivilegeOutcome grantAccountPrivilege(const Model::GrantAccountPrivilegeRequest &request)const; void grantAccountPrivilegeAsync(const Model::GrantAccountPrivilegeRequest& request, const GrantAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GrantAccountPrivilegeOutcomeCallable grantAccountPrivilegeCallable(const Model::GrantAccountPrivilegeRequest& request) const; + GrantAccountPrivilegeZonalOutcome grantAccountPrivilegeZonal(const Model::GrantAccountPrivilegeZonalRequest &request)const; + void grantAccountPrivilegeZonalAsync(const Model::GrantAccountPrivilegeZonalRequest& request, const GrantAccountPrivilegeZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GrantAccountPrivilegeZonalOutcomeCallable grantAccountPrivilegeZonalCallable(const Model::GrantAccountPrivilegeZonalRequest& request) const; + ListOrdersOutcome listOrders(const Model::ListOrdersRequest &request)const; + void listOrdersAsync(const Model::ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOrdersOutcomeCallable listOrdersCallable(const Model::ListOrdersRequest& request) const; ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ListTagResourcesForRegionOutcome listTagResourcesForRegion(const Model::ListTagResourcesForRegionRequest &request)const; + void listTagResourcesForRegionAsync(const Model::ListTagResourcesForRegionRequest& request, const ListTagResourcesForRegionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesForRegionOutcomeCallable listTagResourcesForRegionCallable(const Model::ListTagResourcesForRegionRequest& request) const; ManuallyStartDBClusterOutcome manuallyStartDBCluster(const Model::ManuallyStartDBClusterRequest &request)const; void manuallyStartDBClusterAsync(const Model::ManuallyStartDBClusterRequest& request, const ManuallyStartDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ManuallyStartDBClusterOutcomeCallable manuallyStartDBClusterCallable(const Model::ManuallyStartDBClusterRequest& request) const; + ModifyAIDBClusterDescriptionOutcome modifyAIDBClusterDescription(const Model::ModifyAIDBClusterDescriptionRequest &request)const; + void modifyAIDBClusterDescriptionAsync(const Model::ModifyAIDBClusterDescriptionRequest& request, const ModifyAIDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAIDBClusterDescriptionOutcomeCallable modifyAIDBClusterDescriptionCallable(const Model::ModifyAIDBClusterDescriptionRequest& request) const; ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + ModifyAccountDescriptionZonalOutcome modifyAccountDescriptionZonal(const Model::ModifyAccountDescriptionZonalRequest &request)const; + void modifyAccountDescriptionZonalAsync(const Model::ModifyAccountDescriptionZonalRequest& request, const ModifyAccountDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountDescriptionZonalOutcomeCallable modifyAccountDescriptionZonalCallable(const Model::ModifyAccountDescriptionZonalRequest& request) const; + ModifyAccountLockStateOutcome modifyAccountLockState(const Model::ModifyAccountLockStateRequest &request)const; + void modifyAccountLockStateAsync(const Model::ModifyAccountLockStateRequest& request, const ModifyAccountLockStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountLockStateOutcomeCallable modifyAccountLockStateCallable(const Model::ModifyAccountLockStateRequest& request) const; 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; + ModifyAccountPasswordZonalOutcome modifyAccountPasswordZonal(const Model::ModifyAccountPasswordZonalRequest &request)const; + void modifyAccountPasswordZonalAsync(const Model::ModifyAccountPasswordZonalRequest& request, const ModifyAccountPasswordZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAccountPasswordZonalOutcomeCallable modifyAccountPasswordZonalCallable(const Model::ModifyAccountPasswordZonalRequest& request) const; + ModifyActiveOperationMaintainConfOutcome modifyActiveOperationMaintainConf(const Model::ModifyActiveOperationMaintainConfRequest &request)const; + void modifyActiveOperationMaintainConfAsync(const Model::ModifyActiveOperationMaintainConfRequest& request, const ModifyActiveOperationMaintainConfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyActiveOperationMaintainConfOutcomeCallable modifyActiveOperationMaintainConfCallable(const Model::ModifyActiveOperationMaintainConfRequest& 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; + ModifyApplicationDescriptionOutcome modifyApplicationDescription(const Model::ModifyApplicationDescriptionRequest &request)const; + void modifyApplicationDescriptionAsync(const Model::ModifyApplicationDescriptionRequest& request, const ModifyApplicationDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApplicationDescriptionOutcomeCallable modifyApplicationDescriptionCallable(const Model::ModifyApplicationDescriptionRequest& request) const; + ModifyApplicationParameterOutcome modifyApplicationParameter(const Model::ModifyApplicationParameterRequest &request)const; + void modifyApplicationParameterAsync(const Model::ModifyApplicationParameterRequest& request, const ModifyApplicationParameterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApplicationParameterOutcomeCallable modifyApplicationParameterCallable(const Model::ModifyApplicationParameterRequest& request) const; + ModifyApplicationServerlessConfOutcome modifyApplicationServerlessConf(const Model::ModifyApplicationServerlessConfRequest &request)const; + void modifyApplicationServerlessConfAsync(const Model::ModifyApplicationServerlessConfRequest& request, const ModifyApplicationServerlessConfAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApplicationServerlessConfOutcomeCallable modifyApplicationServerlessConfCallable(const Model::ModifyApplicationServerlessConfRequest& request) const; + ModifyApplicationWhitelistOutcome modifyApplicationWhitelist(const Model::ModifyApplicationWhitelistRequest &request)const; + void modifyApplicationWhitelistAsync(const Model::ModifyApplicationWhitelistRequest& request, const ModifyApplicationWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyApplicationWhitelistOutcomeCallable modifyApplicationWhitelistCallable(const Model::ModifyApplicationWhitelistRequest& 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; ModifyBackupPolicyOutcome modifyBackupPolicy(const Model::ModifyBackupPolicyRequest &request)const; void modifyBackupPolicyAsync(const Model::ModifyBackupPolicyRequest& request, const ModifyBackupPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyBackupPolicyOutcomeCallable modifyBackupPolicyCallable(const Model::ModifyBackupPolicyRequest& request) const; + ModifyCronJobPolicyServerlessOutcome modifyCronJobPolicyServerless(const Model::ModifyCronJobPolicyServerlessRequest &request)const; + void modifyCronJobPolicyServerlessAsync(const Model::ModifyCronJobPolicyServerlessRequest& request, const ModifyCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyCronJobPolicyServerlessOutcomeCallable modifyCronJobPolicyServerlessCallable(const Model::ModifyCronJobPolicyServerlessRequest& request) const; ModifyDBClusterOutcome modifyDBCluster(const Model::ModifyDBClusterRequest &request)const; void modifyDBClusterAsync(const Model::ModifyDBClusterRequest& request, const ModifyDBClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterOutcomeCallable modifyDBClusterCallable(const Model::ModifyDBClusterRequest& request) const; @@ -1131,6 +2009,9 @@ namespace AlibabaCloud ModifyDBClusterAndNodesParametersOutcome modifyDBClusterAndNodesParameters(const Model::ModifyDBClusterAndNodesParametersRequest &request)const; void modifyDBClusterAndNodesParametersAsync(const Model::ModifyDBClusterAndNodesParametersRequest& request, const ModifyDBClusterAndNodesParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterAndNodesParametersOutcomeCallable modifyDBClusterAndNodesParametersCallable(const Model::ModifyDBClusterAndNodesParametersRequest& request) const; + ModifyDBClusterArchOutcome modifyDBClusterArch(const Model::ModifyDBClusterArchRequest &request)const; + void modifyDBClusterArchAsync(const Model::ModifyDBClusterArchRequest& request, const ModifyDBClusterArchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterArchOutcomeCallable modifyDBClusterArchCallable(const Model::ModifyDBClusterArchRequest& request) const; ModifyDBClusterAuditLogCollectorOutcome modifyDBClusterAuditLogCollector(const Model::ModifyDBClusterAuditLogCollectorRequest &request)const; void modifyDBClusterAuditLogCollectorAsync(const Model::ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterAuditLogCollectorOutcomeCallable modifyDBClusterAuditLogCollectorCallable(const Model::ModifyDBClusterAuditLogCollectorRequest& request) const; @@ -1140,15 +2021,24 @@ namespace AlibabaCloud ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const; void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const; + ModifyDBClusterDescriptionZonalOutcome modifyDBClusterDescriptionZonal(const Model::ModifyDBClusterDescriptionZonalRequest &request)const; + void modifyDBClusterDescriptionZonalAsync(const Model::ModifyDBClusterDescriptionZonalRequest& request, const ModifyDBClusterDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterDescriptionZonalOutcomeCallable modifyDBClusterDescriptionZonalCallable(const Model::ModifyDBClusterDescriptionZonalRequest& request) const; ModifyDBClusterEndpointOutcome modifyDBClusterEndpoint(const Model::ModifyDBClusterEndpointRequest &request)const; void modifyDBClusterEndpointAsync(const Model::ModifyDBClusterEndpointRequest& request, const ModifyDBClusterEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterEndpointOutcomeCallable modifyDBClusterEndpointCallable(const Model::ModifyDBClusterEndpointRequest& request) const; + ModifyDBClusterEndpointZonalOutcome modifyDBClusterEndpointZonal(const Model::ModifyDBClusterEndpointZonalRequest &request)const; + void modifyDBClusterEndpointZonalAsync(const Model::ModifyDBClusterEndpointZonalRequest& request, const ModifyDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterEndpointZonalOutcomeCallable modifyDBClusterEndpointZonalCallable(const Model::ModifyDBClusterEndpointZonalRequest& request) const; ModifyDBClusterMaintainTimeOutcome modifyDBClusterMaintainTime(const Model::ModifyDBClusterMaintainTimeRequest &request)const; void modifyDBClusterMaintainTimeAsync(const Model::ModifyDBClusterMaintainTimeRequest& request, const ModifyDBClusterMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterMaintainTimeOutcomeCallable modifyDBClusterMaintainTimeCallable(const Model::ModifyDBClusterMaintainTimeRequest& request) const; ModifyDBClusterMigrationOutcome modifyDBClusterMigration(const Model::ModifyDBClusterMigrationRequest &request)const; void modifyDBClusterMigrationAsync(const Model::ModifyDBClusterMigrationRequest& request, const ModifyDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterMigrationOutcomeCallable modifyDBClusterMigrationCallable(const Model::ModifyDBClusterMigrationRequest& request) const; + ModifyDBClusterMigrationEndpointOutcome modifyDBClusterMigrationEndpoint(const Model::ModifyDBClusterMigrationEndpointRequest &request)const; + void modifyDBClusterMigrationEndpointAsync(const Model::ModifyDBClusterMigrationEndpointRequest& request, const ModifyDBClusterMigrationEndpointAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterMigrationEndpointOutcomeCallable modifyDBClusterMigrationEndpointCallable(const Model::ModifyDBClusterMigrationEndpointRequest& request) const; ModifyDBClusterMonitorOutcome modifyDBClusterMonitor(const Model::ModifyDBClusterMonitorRequest &request)const; void modifyDBClusterMonitorAsync(const Model::ModifyDBClusterMonitorRequest& request, const ModifyDBClusterMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterMonitorOutcomeCallable modifyDBClusterMonitorCallable(const Model::ModifyDBClusterMonitorRequest& request) const; @@ -1176,24 +2066,48 @@ namespace AlibabaCloud ModifyDBClusterTDEOutcome modifyDBClusterTDE(const Model::ModifyDBClusterTDERequest &request)const; void modifyDBClusterTDEAsync(const Model::ModifyDBClusterTDERequest& request, const ModifyDBClusterTDEAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterTDEOutcomeCallable modifyDBClusterTDECallable(const Model::ModifyDBClusterTDERequest& request) const; + ModifyDBClusterVpcOutcome modifyDBClusterVpc(const Model::ModifyDBClusterVpcRequest &request)const; + void modifyDBClusterVpcAsync(const Model::ModifyDBClusterVpcRequest& request, const ModifyDBClusterVpcAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterVpcOutcomeCallable modifyDBClusterVpcCallable(const Model::ModifyDBClusterVpcRequest& request) const; ModifyDBDescriptionOutcome modifyDBDescription(const Model::ModifyDBDescriptionRequest &request)const; void modifyDBDescriptionAsync(const Model::ModifyDBDescriptionRequest& request, const ModifyDBDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBDescriptionOutcomeCallable modifyDBDescriptionCallable(const Model::ModifyDBDescriptionRequest& request) const; + ModifyDBDescriptionZonalOutcome modifyDBDescriptionZonal(const Model::ModifyDBDescriptionZonalRequest &request)const; + void modifyDBDescriptionZonalAsync(const Model::ModifyDBDescriptionZonalRequest& request, const ModifyDBDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBDescriptionZonalOutcomeCallable modifyDBDescriptionZonalCallable(const Model::ModifyDBDescriptionZonalRequest& request) const; ModifyDBEndpointAddressOutcome modifyDBEndpointAddress(const Model::ModifyDBEndpointAddressRequest &request)const; void modifyDBEndpointAddressAsync(const Model::ModifyDBEndpointAddressRequest& request, const ModifyDBEndpointAddressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBEndpointAddressOutcomeCallable modifyDBEndpointAddressCallable(const Model::ModifyDBEndpointAddressRequest& request) const; ModifyDBNodeClassOutcome modifyDBNodeClass(const Model::ModifyDBNodeClassRequest &request)const; void modifyDBNodeClassAsync(const Model::ModifyDBNodeClassRequest& request, const ModifyDBNodeClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBNodeClassOutcomeCallable modifyDBNodeClassCallable(const Model::ModifyDBNodeClassRequest& request) const; + ModifyDBNodeConfigOutcome modifyDBNodeConfig(const Model::ModifyDBNodeConfigRequest &request)const; + void modifyDBNodeConfigAsync(const Model::ModifyDBNodeConfigRequest& request, const ModifyDBNodeConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBNodeConfigOutcomeCallable modifyDBNodeConfigCallable(const Model::ModifyDBNodeConfigRequest& request) const; + ModifyDBNodeDescriptionOutcome modifyDBNodeDescription(const Model::ModifyDBNodeDescriptionRequest &request)const; + void modifyDBNodeDescriptionAsync(const Model::ModifyDBNodeDescriptionRequest& request, const ModifyDBNodeDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBNodeDescriptionOutcomeCallable modifyDBNodeDescriptionCallable(const Model::ModifyDBNodeDescriptionRequest& request) const; ModifyDBNodeHotReplicaModeOutcome modifyDBNodeHotReplicaMode(const Model::ModifyDBNodeHotReplicaModeRequest &request)const; void modifyDBNodeHotReplicaModeAsync(const Model::ModifyDBNodeHotReplicaModeRequest& request, const ModifyDBNodeHotReplicaModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBNodeHotReplicaModeOutcomeCallable modifyDBNodeHotReplicaModeCallable(const Model::ModifyDBNodeHotReplicaModeRequest& request) const; + ModifyDBNodeSccModeOutcome modifyDBNodeSccMode(const Model::ModifyDBNodeSccModeRequest &request)const; + void modifyDBNodeSccModeAsync(const Model::ModifyDBNodeSccModeRequest& request, const ModifyDBNodeSccModeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBNodeSccModeOutcomeCallable modifyDBNodeSccModeCallable(const Model::ModifyDBNodeSccModeRequest& request) const; ModifyDBNodesClassOutcome modifyDBNodesClass(const Model::ModifyDBNodesClassRequest &request)const; void modifyDBNodesClassAsync(const Model::ModifyDBNodesClassRequest& request, const ModifyDBNodesClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBNodesClassOutcomeCallable modifyDBNodesClassCallable(const Model::ModifyDBNodesClassRequest& request) const; ModifyDBNodesParametersOutcome modifyDBNodesParameters(const Model::ModifyDBNodesParametersRequest &request)const; void modifyDBNodesParametersAsync(const Model::ModifyDBNodesParametersRequest& request, const ModifyDBNodesParametersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBNodesParametersOutcomeCallable modifyDBNodesParametersCallable(const Model::ModifyDBNodesParametersRequest& request) const; + ModifyEncryptionDBRolePrivilegeOutcome modifyEncryptionDBRolePrivilege(const Model::ModifyEncryptionDBRolePrivilegeRequest &request)const; + void modifyEncryptionDBRolePrivilegeAsync(const Model::ModifyEncryptionDBRolePrivilegeRequest& request, const ModifyEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEncryptionDBRolePrivilegeOutcomeCallable modifyEncryptionDBRolePrivilegeCallable(const Model::ModifyEncryptionDBRolePrivilegeRequest& request) const; + ModifyEncryptionDBSecretOutcome modifyEncryptionDBSecret(const Model::ModifyEncryptionDBSecretRequest &request)const; + void modifyEncryptionDBSecretAsync(const Model::ModifyEncryptionDBSecretRequest& request, const ModifyEncryptionDBSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEncryptionDBSecretOutcomeCallable modifyEncryptionDBSecretCallable(const Model::ModifyEncryptionDBSecretRequest& request) const; + ModifyFirewallRulesOutcome modifyFirewallRules(const Model::ModifyFirewallRulesRequest &request)const; + void modifyFirewallRulesAsync(const Model::ModifyFirewallRulesRequest& request, const ModifyFirewallRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyFirewallRulesOutcomeCallable modifyFirewallRulesCallable(const Model::ModifyFirewallRulesRequest& request) const; ModifyGlobalDatabaseNetworkOutcome modifyGlobalDatabaseNetwork(const Model::ModifyGlobalDatabaseNetworkRequest &request)const; void modifyGlobalDatabaseNetworkAsync(const Model::ModifyGlobalDatabaseNetworkRequest& request, const ModifyGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyGlobalDatabaseNetworkOutcomeCallable modifyGlobalDatabaseNetworkCallable(const Model::ModifyGlobalDatabaseNetworkRequest& request) const; @@ -1215,9 +2129,21 @@ namespace AlibabaCloud ModifyPendingMaintenanceActionOutcome modifyPendingMaintenanceAction(const Model::ModifyPendingMaintenanceActionRequest &request)const; void modifyPendingMaintenanceActionAsync(const Model::ModifyPendingMaintenanceActionRequest& request, const ModifyPendingMaintenanceActionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyPendingMaintenanceActionOutcomeCallable modifyPendingMaintenanceActionCallable(const Model::ModifyPendingMaintenanceActionRequest& request) const; + ModifyResourcePackageOutcome modifyResourcePackage(const Model::ModifyResourcePackageRequest &request)const; + void modifyResourcePackageAsync(const Model::ModifyResourcePackageRequest& request, const ModifyResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyResourcePackageOutcomeCallable modifyResourcePackageCallable(const Model::ModifyResourcePackageRequest& request) const; + ModifySQLRateLimitingRulesOutcome modifySQLRateLimitingRules(const Model::ModifySQLRateLimitingRulesRequest &request)const; + void modifySQLRateLimitingRulesAsync(const Model::ModifySQLRateLimitingRulesRequest& request, const ModifySQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifySQLRateLimitingRulesOutcomeCallable modifySQLRateLimitingRulesCallable(const Model::ModifySQLRateLimitingRulesRequest& request) const; + ModifyScheduleTaskOutcome modifyScheduleTask(const Model::ModifyScheduleTaskRequest &request)const; + void modifyScheduleTaskAsync(const Model::ModifyScheduleTaskRequest& request, const ModifyScheduleTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyScheduleTaskOutcomeCallable modifyScheduleTaskCallable(const Model::ModifyScheduleTaskRequest& request) const; OpenAITaskOutcome openAITask(const Model::OpenAITaskRequest &request)const; void openAITaskAsync(const Model::OpenAITaskRequest& request, const OpenAITaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; OpenAITaskOutcomeCallable openAITaskCallable(const Model::OpenAITaskRequest& request) const; + ReactivateDBClusterBackupOutcome reactivateDBClusterBackup(const Model::ReactivateDBClusterBackupRequest &request)const; + void reactivateDBClusterBackupAsync(const Model::ReactivateDBClusterBackupRequest& request, const ReactivateDBClusterBackupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ReactivateDBClusterBackupOutcomeCallable reactivateDBClusterBackupCallable(const Model::ReactivateDBClusterBackupRequest& request) const; RefreshDBClusterStorageUsageOutcome refreshDBClusterStorageUsage(const Model::RefreshDBClusterStorageUsageRequest &request)const; void refreshDBClusterStorageUsageAsync(const Model::RefreshDBClusterStorageUsageRequest& request, const RefreshDBClusterStorageUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshDBClusterStorageUsageOutcomeCallable refreshDBClusterStorageUsageCallable(const Model::RefreshDBClusterStorageUsageRequest& request) const; @@ -1227,6 +2153,12 @@ namespace AlibabaCloud ResetAccountOutcome resetAccount(const Model::ResetAccountRequest &request)const; void resetAccountAsync(const Model::ResetAccountRequest& request, const ResetAccountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetAccountOutcomeCallable resetAccountCallable(const Model::ResetAccountRequest& request) const; + ResetAccountPasswordOutcome resetAccountPassword(const Model::ResetAccountPasswordRequest &request)const; + void resetAccountPasswordAsync(const Model::ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountPasswordOutcomeCallable resetAccountPasswordCallable(const Model::ResetAccountPasswordRequest& request) const; + ResetAccountZonalOutcome resetAccountZonal(const Model::ResetAccountZonalRequest &request)const; + void resetAccountZonalAsync(const Model::ResetAccountZonalRequest& request, const ResetAccountZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResetAccountZonalOutcomeCallable resetAccountZonalCallable(const Model::ResetAccountZonalRequest& request) const; 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; @@ -1236,12 +2168,18 @@ namespace AlibabaCloud 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; + RestartDBNodeZonalOutcome restartDBNodeZonal(const Model::RestartDBNodeZonalRequest &request)const; + void restartDBNodeZonalAsync(const Model::RestartDBNodeZonalRequest& request, const RestartDBNodeZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartDBNodeZonalOutcomeCallable restartDBNodeZonalCallable(const Model::RestartDBNodeZonalRequest& request) const; RestoreTableOutcome restoreTable(const Model::RestoreTableRequest &request)const; void restoreTableAsync(const Model::RestoreTableRequest& request, const RestoreTableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RestoreTableOutcomeCallable restoreTableCallable(const Model::RestoreTableRequest& request) const; RevokeAccountPrivilegeOutcome revokeAccountPrivilege(const Model::RevokeAccountPrivilegeRequest &request)const; void revokeAccountPrivilegeAsync(const Model::RevokeAccountPrivilegeRequest& request, const RevokeAccountPrivilegeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RevokeAccountPrivilegeOutcomeCallable revokeAccountPrivilegeCallable(const Model::RevokeAccountPrivilegeRequest& request) const; + RevokeAccountPrivilegeZonalOutcome revokeAccountPrivilegeZonal(const Model::RevokeAccountPrivilegeZonalRequest &request)const; + void revokeAccountPrivilegeZonalAsync(const Model::RevokeAccountPrivilegeZonalRequest& request, const RevokeAccountPrivilegeZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RevokeAccountPrivilegeZonalOutcomeCallable revokeAccountPrivilegeZonalCallable(const Model::RevokeAccountPrivilegeZonalRequest& request) const; SwitchOverGlobalDatabaseNetworkOutcome switchOverGlobalDatabaseNetwork(const Model::SwitchOverGlobalDatabaseNetworkRequest &request)const; void switchOverGlobalDatabaseNetworkAsync(const Model::SwitchOverGlobalDatabaseNetworkRequest& request, const SwitchOverGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SwitchOverGlobalDatabaseNetworkOutcomeCallable switchOverGlobalDatabaseNetworkCallable(const Model::SwitchOverGlobalDatabaseNetworkRequest& request) const; @@ -1257,9 +2195,15 @@ 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; + UpdateExtensionsOutcome updateExtensions(const Model::UpdateExtensionsRequest &request)const; + void updateExtensionsAsync(const Model::UpdateExtensionsRequest& request, const UpdateExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateExtensionsOutcomeCallable updateExtensionsCallable(const Model::UpdateExtensionsRequest& 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; + UpgradeDBClusterVersionZonalOutcome upgradeDBClusterVersionZonal(const Model::UpgradeDBClusterVersionZonalRequest &request)const; + void upgradeDBClusterVersionZonalAsync(const Model::UpgradeDBClusterVersionZonalRequest& request, const UpgradeDBClusterVersionZonalAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpgradeDBClusterVersionZonalOutcomeCallable upgradeDBClusterVersionZonalCallable(const Model::UpgradeDBClusterVersionZonalRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.h new file mode 100644 index 000000000..e37572971 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationRequest.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_ABORTDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT AbortDBClusterMigrationRequest : public RpcServiceRequest { +public: + AbortDBClusterMigrationRequest(); + ~AbortDBClusterMigrationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h new file mode 100644 index 000000000..2b6a543df --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AbortDBClusterMigrationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AbortDBClusterMigrationResult : public ServiceResult + { + public: + + + AbortDBClusterMigrationResult(); + explicit AbortDBClusterMigrationResult(const std::string &payload); + ~AbortDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeRequest.h new file mode 100644 index 000000000..10789542f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeRequest.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_ADDENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT AddEncryptionDBRolePrivilegeRequest : public RpcServiceRequest { +public: + AddEncryptionDBRolePrivilegeRequest(); + ~AddEncryptionDBRolePrivilegeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRolePrivilegeConfig() const; + void setRolePrivilegeConfig(const std::string &rolePrivilegeConfig); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRolePrivilegeName() const; + void setRolePrivilegeName(const std::string &rolePrivilegeName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string rolePrivilegeConfig_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string rolePrivilegeName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeResult.h new file mode 100644 index 000000000..ab070449f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddEncryptionDBRolePrivilegeResult.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_ADDENCRYPTIONDBROLEPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDENCRYPTIONDBROLEPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AddEncryptionDBRolePrivilegeResult : public ServiceResult + { + public: + + + AddEncryptionDBRolePrivilegeResult(); + explicit AddEncryptionDBRolePrivilegeResult(const std::string &payload); + ~AddEncryptionDBRolePrivilegeResult(); + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDENCRYPTIONDBROLEPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AddFirewallRulesRequest.h b/polardb/include/alibabacloud/polardb/model/AddFirewallRulesRequest.h new file mode 100644 index 000000000..930f8ebbd --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddFirewallRulesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_ADDFIREWALLRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDFIREWALLRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT AddFirewallRulesRequest : public RpcServiceRequest { +public: + AddFirewallRulesRequest(); + ~AddFirewallRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleConfig() const; + void setRuleConfig(const std::string &ruleConfig); + +private: + long resourceOwnerId_; + std::string ruleName_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleConfig_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDFIREWALLRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/AddFirewallRulesResult.h b/polardb/include/alibabacloud/polardb/model/AddFirewallRulesResult.h new file mode 100644 index 000000000..e86ee3e54 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddFirewallRulesResult.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_ADDFIREWALLRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDFIREWALLRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AddFirewallRulesResult : public ServiceResult + { + public: + + + AddFirewallRulesResult(); + explicit AddFirewallRulesResult(const std::string &payload); + ~AddFirewallRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDFIREWALLRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesRequest.h new file mode 100644 index 000000000..47020cec5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesRequest.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_ADDSQLRATELIMITINGRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDSQLRATELIMITINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT AddSQLRateLimitingRulesRequest : public RpcServiceRequest { +public: + AddSQLRateLimitingRulesRequest(); + ~AddSQLRateLimitingRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleConfig() const; + void setRuleConfig(const std::string &ruleConfig); + +private: + long resourceOwnerId_; + std::string ruleName_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleConfig_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDSQLRATELIMITINGRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesResult.h b/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesResult.h new file mode 100644 index 000000000..eb39af5de --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AddSQLRateLimitingRulesResult.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_ADDSQLRATELIMITINGRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ADDSQLRATELIMITINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AddSQLRateLimitingRulesResult : public ServiceResult + { + public: + + + AddSQLRateLimitingRulesResult(); + explicit AddSQLRateLimitingRulesResult(const std::string &payload); + ~AddSQLRateLimitingRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ADDSQLRATELIMITINGRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSRequest.h b/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSRequest.h new file mode 100644 index 000000000..f6f5468df --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_ATTACHAPPLICATIONPOLARFSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ATTACHAPPLICATIONPOLARFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT AttachApplicationPolarFSRequest : public RpcServiceRequest { +public: + AttachApplicationPolarFSRequest(); + ~AttachApplicationPolarFSRequest(); + bool getReplaceExisted() const; + void setReplaceExisted(bool replaceExisted); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + std::string getPolarFSAccessKeyId() const; + void setPolarFSAccessKeyId(const std::string &polarFSAccessKeyId); + std::string getPolarFSInstanceId() const; + void setPolarFSInstanceId(const std::string &polarFSInstanceId); + std::string getPolarFSAccessKeySecret() const; + void setPolarFSAccessKeySecret(const std::string &polarFSAccessKeySecret); + +private: + bool replaceExisted_; + std::string applicationId_; + std::string polarFSAccessKeyId_; + std::string polarFSInstanceId_; + std::string polarFSAccessKeySecret_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ATTACHAPPLICATIONPOLARFSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSResult.h b/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSResult.h new file mode 100644 index 000000000..836344180 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/AttachApplicationPolarFSResult.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_ATTACHAPPLICATIONPOLARFSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ATTACHAPPLICATIONPOLARFSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT AttachApplicationPolarFSResult : public ServiceResult + { + public: + + + AttachApplicationPolarFSResult(); + explicit AttachApplicationPolarFSResult(const std::string &payload); + ~AttachApplicationPolarFSResult(); + std::string getApplicationId()const; + std::string getPolarFSInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationId_; + std::string polarFSInstanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ATTACHAPPLICATIONPOLARFSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessRequest.h b/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessRequest.h new file mode 100644 index 000000000..cb568fe58 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessRequest.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_CANCELCRONJOBPOLICYSERVERLESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CANCELCRONJOBPOLICYSERVERLESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CancelCronJobPolicyServerlessRequest : public RpcServiceRequest { +public: + CancelCronJobPolicyServerlessRequest(); + ~CancelCronJobPolicyServerlessRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CANCELCRONJOBPOLICYSERVERLESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessResult.h b/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessResult.h new file mode 100644 index 000000000..1f5da029b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CancelCronJobPolicyServerlessResult.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_CANCELCRONJOBPOLICYSERVERLESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CANCELCRONJOBPOLICYSERVERLESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CancelCronJobPolicyServerlessResult : public ServiceResult + { + public: + + + CancelCronJobPolicyServerlessResult(); + explicit CancelCronJobPolicyServerlessResult(const std::string &payload); + ~CancelCronJobPolicyServerlessResult(); + std::string getStatus()const; + std::string getDBClusterId()const; + std::string getRegionId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string dBClusterId_; + std::string regionId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CANCELCRONJOBPOLICYSERVERLESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalRequest.h b/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalRequest.h new file mode 100644 index 000000000..7cf88b5d3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalRequest.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_CHECKACCOUNTNAMEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKACCOUNTNAMEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CheckAccountNameZonalRequest : public RpcServiceRequest { +public: + CheckAccountNameZonalRequest(); + ~CheckAccountNameZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKACCOUNTNAMEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalResult.h b/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalResult.h new file mode 100644 index 000000000..ba3c3912a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckAccountNameZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CHECKACCOUNTNAMEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKACCOUNTNAMEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CheckAccountNameZonalResult : public ServiceResult + { + public: + + + CheckAccountNameZonalResult(); + explicit CheckAccountNameZonalResult(const std::string &payload); + ~CheckAccountNameZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKACCOUNTNAMEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CheckConnectionStringRequest.h b/polardb/include/alibabacloud/polardb/model/CheckConnectionStringRequest.h new file mode 100644 index 000000000..e4cf9eb67 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckConnectionStringRequest.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_CHECKCONNECTIONSTRINGREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKCONNECTIONSTRINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CheckConnectionStringRequest : public RpcServiceRequest { +public: + CheckConnectionStringRequest(); + ~CheckConnectionStringRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionStringPrefix() const; + void setConnectionStringPrefix(const std::string &connectionStringPrefix); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string connectionStringPrefix_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKCONNECTIONSTRINGREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CheckConnectionStringResult.h b/polardb/include/alibabacloud/polardb/model/CheckConnectionStringResult.h new file mode 100644 index 000000000..a1d0f6010 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckConnectionStringResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CHECKCONNECTIONSTRINGRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKCONNECTIONSTRINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CheckConnectionStringResult : public ServiceResult + { + public: + + + CheckConnectionStringResult(); + explicit CheckConnectionStringResult(const std::string &payload); + ~CheckConnectionStringResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKCONNECTIONSTRINGRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalRequest.h b/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalRequest.h new file mode 100644 index 000000000..e07b3390c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalRequest.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_CHECKDBNAMEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKDBNAMEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CheckDBNameZonalRequest : public RpcServiceRequest { +public: + CheckDBNameZonalRequest(); + ~CheckDBNameZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKDBNAMEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalResult.h b/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalResult.h new file mode 100644 index 000000000..4aa23b753 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CheckDBNameZonalResult.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_CHECKDBNAMEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CHECKDBNAMEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CheckDBNameZonalResult : public ServiceResult + { + public: + + + CheckDBNameZonalResult(); + explicit CheckDBNameZonalResult(const std::string &payload); + ~CheckDBNameZonalResult(); + std::string getDBName()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CHECKDBNAMEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.h new file mode 100644 index 000000000..b301dfc56 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationRequest.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_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ContinueDBClusterMigrationRequest : public RpcServiceRequest { +public: + ContinueDBClusterMigrationRequest(); + ~ContinueDBClusterMigrationRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getForceSwitch() const; + void setForceSwitch(const std::string &forceSwitch); + 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 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string forceSwitch_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h new file mode 100644 index 000000000..ae3a7024e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ContinueDBClusterMigrationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ContinueDBClusterMigrationResult : public ServiceResult + { + public: + + + ContinueDBClusterMigrationResult(); + explicit ContinueDBClusterMigrationResult(const std::string &payload); + ~ContinueDBClusterMigrationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CONTINUEDBCLUSTERMIGRATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h b/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h index e104c6ede..abc595632 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateAccountRequest.h @@ -32,6 +32,8 @@ public: ~CreateAccountRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); std::string getClientToken() const; void setClientToken(const std::string &clientToken); std::string getAccountType() const; @@ -63,6 +65,7 @@ public: private: long resourceOwnerId_; + std::string nodeType_; std::string clientToken_; std::string accountType_; std::string accountDescription_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateAccountZonalRequest.h b/polardb/include/alibabacloud/polardb/model/CreateAccountZonalRequest.h new file mode 100644 index 000000000..18dd945fe --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateAccountZonalRequest.h @@ -0,0 +1,87 @@ +/* + * 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_CREATEACCOUNTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateAccountZonalRequest : public RpcServiceRequest { +public: + CreateAccountZonalRequest(); + ~CreateAccountZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountPrivilege() const; + void setAccountPrivilege(const std::string &accountPrivilege); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getTairAccountPassword() const; + void setTairAccountPassword(const std::string &tairAccountPassword); + 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 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); + std::string getPrivForAllDB() const; + void setPrivForAllDB(const std::string &privForAllDB); + +private: + long resourceOwnerId_; + std::string nodeType_; + std::string clientToken_; + std::string accountType_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountPrivilege_; + std::string accountName_; + std::string tairAccountPassword_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; + std::string dBName_; + std::string privForAllDB_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateAccountZonalResult.h b/polardb/include/alibabacloud/polardb/model/CreateAccountZonalResult.h new file mode 100644 index 000000000..aa960c69f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateAccountZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateAccountZonalResult : public ServiceResult + { + public: + + + CreateAccountZonalResult(); + explicit CreateAccountZonalResult(const std::string &payload); + ~CreateAccountZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEACCOUNTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressRequest.h new file mode 100644 index 000000000..5bbd84b1b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONENDPOINTADDRESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONENDPOINTADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateApplicationEndpointAddressRequest : public RpcServiceRequest { +public: + CreateApplicationEndpointAddressRequest(); + ~CreateApplicationEndpointAddressRequest(); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + std::string getNetType() const; + void setNetType(const std::string &netType); + +private: + std::string endpointId_; + std::string applicationId_; + std::string netType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONENDPOINTADDRESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressResult.h b/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressResult.h new file mode 100644 index 000000000..385bed3bb --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateApplicationEndpointAddressResult.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_CREATEAPPLICATIONENDPOINTADDRESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONENDPOINTADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateApplicationEndpointAddressResult : public ServiceResult + { + public: + + + CreateApplicationEndpointAddressResult(); + explicit CreateApplicationEndpointAddressResult(const std::string &payload); + ~CreateApplicationEndpointAddressResult(); + std::string getEndpointId()const; + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointId_; + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONENDPOINTADDRESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateApplicationRequest.h b/polardb/include/alibabacloud/polardb/model/CreateApplicationRequest.h new file mode 100644 index 000000000..6d6e31fab --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateApplicationRequest.h @@ -0,0 +1,112 @@ +/* + * 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_CREATEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateApplicationRequest : public RpcServiceRequest { +public: + struct Components { + long componentReplica; + std::string securityIPNetType; + long componentMaxReplica; + std::string scaleMax; + std::string parameterTemplateId; + std::string securityIPList; + std::string componentType; + std::string securityIPType; + std::string componentClass; + std::string parameters; + std::string securityGroups; + std::string securityIPArrayName; + std::string scaleMin; + }; + struct Endpoints { + std::string endpointType; + std::string description; + }; + CreateApplicationRequest(); + ~CreateApplicationRequest(); + std::vector getComponents() const; + void setComponents(const std::vector &components); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::vector getEndpoints() const; + void setEndpoints(const std::vector &endpoints); + bool getDryRun() const; + void setDryRun(bool dryRun); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getVersion() const; + void setVersion(const std::string &version); + std::string getUsedTime() const; + void setUsedTime(const std::string &usedTime); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPolarFSInstanceId() const; + void setPolarFSInstanceId(const std::string &polarFSInstanceId); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getApplicationType() const; + void setApplicationType(const std::string &applicationType); + std::string getPayType() const; + void setPayType(const std::string &payType); + +private: + std::vector components_; + std::string description_; + std::string resourceGroupId_; + std::string regionId_; + std::string architecture_; + std::string period_; + std::vector endpoints_; + bool dryRun_; + std::string dBClusterId_; + std::string version_; + std::string usedTime_; + std::string vSwitchId_; + std::string polarFSInstanceId_; + bool autoRenew_; + std::string vpcId_; + std::string zoneId_; + std::string applicationType_; + std::string payType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateApplicationResult.h b/polardb/include/alibabacloud/polardb/model/CreateApplicationResult.h new file mode 100644 index 000000000..27babf44f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateApplicationResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateApplicationResult : public ServiceResult + { + public: + struct Component + { + std::string componentId; + }; + + + CreateApplicationResult(); + explicit CreateApplicationResult(const std::string &payload); + ~CreateApplicationResult(); + std::vector getComponents()const; + std::string getDescription()const; + std::string getResourceGroupId()const; + bool getResourceAvailable()const; + std::string getApplicationId()const; + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector components_; + std::string description_; + std::string resourceGroupId_; + bool resourceAvailable_; + std::string applicationId_; + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessRequest.h b/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessRequest.h new file mode 100644 index 000000000..5b6d992d9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATECRONJOBPOLICYSERVERLESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATECRONJOBPOLICYSERVERLESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateCronJobPolicyServerlessRequest : public RpcServiceRequest { +public: + CreateCronJobPolicyServerlessRequest(); + ~CreateCronJobPolicyServerlessRequest(); + std::string getScaleRoNumMax() const; + void setScaleRoNumMax(const std::string &scaleRoNumMax); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCronExpression() const; + void setCronExpression(const std::string &cronExpression); + std::string getServerlessRuleMode() const; + void setServerlessRuleMode(const std::string &serverlessRuleMode); + std::string getScaleApRoNumMax() const; + void setScaleApRoNumMax(const std::string &scaleApRoNumMax); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getScaleMax() const; + void setScaleMax(const std::string &scaleMax); + 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 getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getScaleApRoNumMin() const; + void setScaleApRoNumMin(const std::string &scaleApRoNumMin); + std::string getScaleMin() const; + void setScaleMin(const std::string &scaleMin); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getServerlessRuleCpuShrinkThreshold() const; + void setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getScaleRoNumMin() const; + void setScaleRoNumMin(const std::string &scaleRoNumMin); + std::string getAllowShutDown() const; + void setAllowShutDown(const std::string &allowShutDown); + +private: + std::string scaleRoNumMax_; + long resourceOwnerId_; + std::string cronExpression_; + std::string serverlessRuleMode_; + std::string scaleApRoNumMax_; + std::string startTime_; + std::string scaleMax_; + std::string accessKeyId_; + std::string serverlessRuleCpuEnlargeThreshold_; + std::string secondsUntilAutoPause_; + std::string regionId_; + std::string scaleApRoNumMin_; + std::string scaleMin_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + std::string serverlessRuleCpuShrinkThreshold_; + long ownerId_; + std::string scaleRoNumMin_; + std::string allowShutDown_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATECRONJOBPOLICYSERVERLESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessResult.h b/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessResult.h new file mode 100644 index 000000000..f41fb6ec9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateCronJobPolicyServerlessResult.h @@ -0,0 +1,67 @@ +/* + * 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_CREATECRONJOBPOLICYSERVERLESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATECRONJOBPOLICYSERVERLESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateCronJobPolicyServerlessResult : public ServiceResult + { + public: + + + CreateCronJobPolicyServerlessResult(); + explicit CreateCronJobPolicyServerlessResult(const std::string &payload); + ~CreateCronJobPolicyServerlessResult(); + std::string getStatus()const; + std::string getArgs()const; + std::string getAction()const; + std::string getEndTime()const; + std::string getDBClusterId()const; + std::string getStartTime()const; + std::string getRegionId()const; + std::string getCronExpression()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string args_; + std::string action_; + std::string endTime_; + std::string dBClusterId_; + std::string startTime_; + std::string regionId_; + std::string cronExpression_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATECRONJOBPOLICYSERVERLESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h index 1e4382ee5..46e2100a0 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointRequest.h @@ -64,6 +64,8 @@ public: void setOwnerId(long ownerId); std::string getVSwitchId() const; void setVSwitchId(const std::string &vSwitchId); + std::string getPolarFsInstanceId() const; + void setPolarFsInstanceId(const std::string &polarFsInstanceId); std::string getNodes() const; void setNodes(const std::string &nodes); std::string getSccMode() const; @@ -89,6 +91,7 @@ private: std::string dBEndpointDescription_; long ownerId_; std::string vSwitchId_; + std::string polarFsInstanceId_; std::string nodes_; std::string sccMode_; std::string vPCId_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalRequest.h new file mode 100644 index 000000000..c86eb9c2c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalRequest.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_CREATEDBCLUSTERENDPOINTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointZonalRequest : public RpcServiceRequest { +public: + CreateDBClusterEndpointZonalRequest(); + ~CreateDBClusterEndpointZonalRequest(); + std::string getAutoAddNewNodes() const; + void setAutoAddNewNodes(const std::string &autoAddNewNodes); + long getResourceOwnerId() const; + 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; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndpointConfig() const; + void setEndpointConfig(const std::string &endpointConfig); + std::string getDBEndpointDescription() const; + void setDBEndpointDescription(const std::string &dBEndpointDescription); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + 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); + +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_; + std::string endpointConfig_; + std::string dBEndpointDescription_; + long ownerId_; + std::string vSwitchId_; + std::string nodes_; + std::string sccMode_; + std::string vPCId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalResult.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalResult.h new file mode 100644 index 000000000..8482abe86 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterEndpointZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDBClusterEndpointZonalResult : public ServiceResult + { + public: + + + CreateDBClusterEndpointZonalResult(); + explicit CreateDBClusterEndpointZonalResult(const std::string &payload); + ~CreateDBClusterEndpointZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDBCLUSTERENDPOINTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h index 236278ae1..077026956 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBClusterRequest.h @@ -48,10 +48,18 @@ public: void setStorageType(const std::string &storageType); std::string getCreationCategory() const; void setCreationCategory(const std::string &creationCategory); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); + long getSourceUid() const; + void setSourceUid(long sourceUid); std::string getDBNodeClass() const; void setDBNodeClass(const std::string &dBNodeClass); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getEnsRegionId() const; + void setEnsRegionId(const std::string &ensRegionId); std::string getCreationOption() const; void setCreationOption(const std::string &creationOption); std::vector getTag() const; @@ -72,6 +80,8 @@ public: void setSecurityIPList(const std::string &securityIPList); std::string getDBMinorVersion() const; void setDBMinorVersion(const std::string &dBMinorVersion); + std::string getDnNodeClass() const; + void setDnNodeClass(const std::string &dnNodeClass); long getProvisionedIops() const; void setProvisionedIops(long provisionedIops); bool getAutoRenew() const; @@ -82,6 +92,8 @@ public: void setStoragePayType(const std::string &storagePayType); std::string getZoneId() const; void setZoneId(const std::string &zoneId); + std::string getCnNodeNum() const; + void setCnNodeNum(const std::string &cnNodeNum); std::string getStorageAutoScale() const; void setStorageAutoScale(const std::string &storageAutoScale); bool getTDEStatus() const; @@ -106,6 +118,8 @@ public: void setClusterNetworkType(const std::string &clusterNetworkType); std::string getStorageEncryptionKey() const; void setStorageEncryptionKey(const std::string &storageEncryptionKey); + std::string getCnNodeClass() const; + void setCnNodeClass(const std::string &cnNodeClass); std::string getParameterGroupId() const; void setParameterGroupId(const std::string ¶meterGroupId); std::string getRegionId() const; @@ -134,6 +148,8 @@ public: void setTargetMinorVersion(const std::string &targetMinorVersion); int getDBNodeNum() const; void setDBNodeNum(int dBNodeNum); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); long getStorageUpperBound() const; void setStorageUpperBound(long storageUpperBound); std::string getVPCId() const; @@ -154,6 +170,8 @@ public: void setStorageSpace(long storageSpace); std::string getServerlessType() const; void setServerlessType(const std::string &serverlessType); + std::string getDnNodeNum() const; + void setDnNodeNum(const std::string &dnNodeNum); private: long resourceOwnerId_; @@ -163,8 +181,12 @@ private: std::string scaleMax_; std::string storageType_; std::string creationCategory_; + std::string cloudProvider_; std::string resourceGroupId_; + long sourceUid_; std::string dBNodeClass_; + std::string accountName_; + std::string ensRegionId_; std::string creationOption_; std::vector tag_; std::string sourceResourceId_; @@ -175,11 +197,13 @@ private: std::string vSwitchId_; std::string securityIPList_; std::string dBMinorVersion_; + std::string dnNodeClass_; long provisionedIops_; bool autoRenew_; std::string hotStandbyCluster_; std::string storagePayType_; std::string zoneId_; + std::string cnNodeNum_; std::string storageAutoScale_; bool tDEStatus_; std::string allowShutDown_; @@ -192,6 +216,7 @@ private: std::string accessKeyId_; std::string clusterNetworkType_; std::string storageEncryptionKey_; + std::string cnNodeClass_; std::string parameterGroupId_; std::string regionId_; std::string engine_; @@ -206,6 +231,7 @@ private: std::string burstingEnabled_; std::string targetMinorVersion_; int dBNodeNum_; + std::string accountPassword_; long storageUpperBound_; std::string vPCId_; std::string scaleRoNumMin_; @@ -216,6 +242,7 @@ private: std::string payType_; long storageSpace_; std::string serverlessType_; + std::string dnNodeNum_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h index 6aa97f4d8..bf99741bb 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateDBNodesRequest.h @@ -44,6 +44,8 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getDBNodeType() const; @@ -69,6 +71,7 @@ private: std::string endpointBindList_; std::string plannedEndTime_; std::string accessKeyId_; + std::string cloudProvider_; std::string resourceGroupId_; std::string dBNodeType_; std::string resourceOwnerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalRequest.h b/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalRequest.h new file mode 100644 index 000000000..52487b4a3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseZonalRequest : public RpcServiceRequest { +public: + CreateDatabaseZonalRequest(); + ~CreateDatabaseZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountPrivilege() const; + void setAccountPrivilege(const std::string &accountPrivilege); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getDBDescription() const; + void setDBDescription(const std::string &dBDescription); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCollate() const; + void setCollate(const std::string &collate); + std::string getDBName() const; + void setDBName(const std::string &dBName); + std::string getCtype() const; + void setCtype(const std::string &ctype); + std::string getCharacterSetName() const; + void setCharacterSetName(const std::string &characterSetName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string accountPrivilege_; + std::string accountName_; + std::string dBDescription_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string collate_; + std::string dBName_; + std::string ctype_; + std::string characterSetName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalResult.h b/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalResult.h new file mode 100644 index 000000000..be51947d1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateDatabaseZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateDatabaseZonalResult : public ServiceResult + { + public: + + + CreateDatabaseZonalResult(); + explicit CreateDatabaseZonalResult(const std::string &payload); + ~CreateDatabaseZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEDATABASEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateExtensionsRequest.h b/polardb/include/alibabacloud/polardb/model/CreateExtensionsRequest.h new file mode 100644 index 000000000..7171d4e83 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateExtensionsRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateExtensionsRequest : public RpcServiceRequest { +public: + CreateExtensionsRequest(); + ~CreateExtensionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceDBName() const; + void setSourceDBName(const std::string &sourceDBName); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersion() const; + void setVersion(const std::string &version); + std::string getDBNames() const; + void setDBNames(const std::string &dBNames); + std::string getExtensions() const; + void setExtensions(const std::string &extensions); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string sourceDBName_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string accountName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string version_; + std::string dBNames_; + std::string extensions_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateExtensionsResult.h b/polardb/include/alibabacloud/polardb/model/CreateExtensionsResult.h new file mode 100644 index 000000000..2bcb4eaa8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateExtensionsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateExtensionsResult : public ServiceResult + { + public: + + + CreateExtensionsResult(); + explicit CreateExtensionsResult(const std::string &payload); + ~CreateExtensionsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkRequest.h b/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkRequest.h new file mode 100644 index 000000000..f3358c11f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkRequest.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_CREATEGLOBALDATANETWORKREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEGLOBALDATANETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateGlobalDataNetworkRequest : public RpcServiceRequest { +public: + CreateGlobalDataNetworkRequest(); + ~CreateGlobalDataNetworkRequest(); + std::string getDestinationType() const; + void setDestinationType(const std::string &destinationType); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getFreezeSourceDuringSync() const; + void setFreezeSourceDuringSync(const std::string &freezeSourceDuringSync); + std::string getSourceId() const; + void setSourceId(const std::string &sourceId); + std::string getDestinationRegion() const; + void setDestinationRegion(const std::string &destinationRegion); + std::string getDestinationId() const; + void setDestinationId(const std::string &destinationId); + std::string getSourceFileSystemPath() const; + void setSourceFileSystemPath(const std::string &sourceFileSystemPath); + std::string getDestinationFileSystemPath() const; + void setDestinationFileSystemPath(const std::string &destinationFileSystemPath); + std::string getSourceRegion() const; + void setSourceRegion(const std::string &sourceRegion); + +private: + std::string destinationType_; + std::string description_; + std::string sourceType_; + std::string freezeSourceDuringSync_; + std::string sourceId_; + std::string destinationRegion_; + std::string destinationId_; + std::string sourceFileSystemPath_; + std::string destinationFileSystemPath_; + std::string sourceRegion_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEGLOBALDATANETWORKREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkResult.h b/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkResult.h new file mode 100644 index 000000000..29b0d6d71 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateGlobalDataNetworkResult.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_CREATEGLOBALDATANETWORKRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATEGLOBALDATANETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateGlobalDataNetworkResult : public ServiceResult + { + public: + + + CreateGlobalDataNetworkResult(); + explicit CreateGlobalDataNetworkResult(const std::string &payload); + ~CreateGlobalDataNetworkResult(); + std::string getNetworkId()const; + std::string getChannelId()const; + + protected: + void parse(const std::string &payload); + private: + std::string networkId_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATEGLOBALDATANETWORKRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h b/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h index 48894f259..90ebb6232 100644 --- a/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h +++ b/polardb/include/alibabacloud/polardb/model/CreateGlobalDatabaseNetworkRequest.h @@ -56,6 +56,8 @@ public: void setAccountPassword(const std::string &accountPassword); std::string getDBName() const; void setDBName(const std::string &dBName); + std::string getGDNVersion() const; + void setGDNVersion(const std::string &gDNVersion); private: long resourceOwnerId_; @@ -71,6 +73,7 @@ private: long ownerId_; std::string accountPassword_; std::string dBName_; + std::string gDNVersion_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelRequest.h b/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelRequest.h new file mode 100644 index 000000000..96a89b5fa --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT CreateNetworkChannelRequest : public RpcServiceRequest { +public: + CreateNetworkChannelRequest(); + ~CreateNetworkChannelRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNotes() const; + void setNotes(const std::string ¬es); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTargetIp() const; + void setTargetIp(const std::string &targetIp); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getTargetPort() const; + void setTargetPort(const std::string &targetPort); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChannelName() const; + void setChannelName(const std::string &channelName); + std::string getTargetDBClusterId() const; + void setTargetDBClusterId(const std::string &targetDBClusterId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string notes_; + std::string clientToken_; + std::string accessKeyId_; + std::string targetIp_; + std::string resourceGroupId_; + std::string regionId_; + std::string targetPort_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string channelName_; + std::string targetDBClusterId_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelResult.h b/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelResult.h new file mode 100644 index 000000000..ac44eaff6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/CreateNetworkChannelResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT CreateNetworkChannelResult : public ServiceResult + { + public: + + + CreateNetworkChannelResult(); + explicit CreateNetworkChannelResult(const std::string &payload); + ~CreateNetworkChannelResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_CREATENETWORKCHANNELRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterRequest.h new file mode 100644 index 000000000..cbc2f1061 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DELETEAIDBCLUSTERREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAIDBCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteAIDBClusterRequest : public RpcServiceRequest { +public: + DeleteAIDBClusterRequest(); + ~DeleteAIDBClusterRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAIDBCLUSTERREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterResult.h b/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterResult.h new file mode 100644 index 000000000..aba453c33 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteAIDBClusterResult.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_DELETEAIDBCLUSTERRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAIDBCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteAIDBClusterResult : public ServiceResult + { + public: + + + DeleteAIDBClusterResult(); + explicit DeleteAIDBClusterResult(const std::string &payload); + ~DeleteAIDBClusterResult(); + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAIDBCLUSTERRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalRequest.h new file mode 100644 index 000000000..4cee044a9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalRequest.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_DELETEACCOUNTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountZonalRequest : public RpcServiceRequest { +public: + DeleteAccountZonalRequest(); + ~DeleteAccountZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalResult.h b/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalResult.h new file mode 100644 index 000000000..16cb8c6b9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteAccountZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteAccountZonalResult : public ServiceResult + { + public: + + + DeleteAccountZonalResult(); + explicit DeleteAccountZonalResult(const std::string &payload); + ~DeleteAccountZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEACCOUNTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressRequest.h new file mode 100644 index 000000000..71d292287 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONENDPOINTADDRESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONENDPOINTADDRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteApplicationEndpointAddressRequest : public RpcServiceRequest { +public: + DeleteApplicationEndpointAddressRequest(); + ~DeleteApplicationEndpointAddressRequest(); + std::string getEndpointId() const; + void setEndpointId(const std::string &endpointId); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + std::string getNetType() const; + void setNetType(const std::string &netType); + +private: + std::string endpointId_; + std::string applicationId_; + std::string netType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONENDPOINTADDRESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressResult.h b/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressResult.h new file mode 100644 index 000000000..0526d9b7e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteApplicationEndpointAddressResult.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_DELETEAPPLICATIONENDPOINTADDRESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONENDPOINTADDRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteApplicationEndpointAddressResult : public ServiceResult + { + public: + + + DeleteApplicationEndpointAddressResult(); + explicit DeleteApplicationEndpointAddressResult(const std::string &payload); + ~DeleteApplicationEndpointAddressResult(); + std::string getEndpointId()const; + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string endpointId_; + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONENDPOINTADDRESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteApplicationRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteApplicationRequest.h new file mode 100644 index 000000000..bb6d0a9cc --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteApplicationRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DELETEAPPLICATIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteApplicationRequest : public RpcServiceRequest { +public: + DeleteApplicationRequest(); + ~DeleteApplicationRequest(); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteApplicationResult.h b/polardb/include/alibabacloud/polardb/model/DeleteApplicationResult.h new file mode 100644 index 000000000..426d15b84 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteApplicationResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteApplicationResult : public ServiceResult + { + public: + + + DeleteApplicationResult(); + explicit DeleteApplicationResult(const std::string &payload); + ~DeleteApplicationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEAPPLICATIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h index b9d11783a..30974777f 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointRequest.h @@ -44,6 +44,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getPolarFsInstanceId() const; + void setPolarFsInstanceId(const std::string &polarFsInstanceId); private: long resourceOwnerId_; @@ -53,6 +55,7 @@ private: std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string polarFsInstanceId_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalRequest.h new file mode 100644 index 000000000..c21b822ed --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalRequest.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_DELETEDBCLUSTERENDPOINTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointZonalRequest : public RpcServiceRequest { +public: + DeleteDBClusterEndpointZonalRequest(); + ~DeleteDBClusterEndpointZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBEndpointId() const; + void setDBEndpointId(const std::string &dBEndpointId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBEndpointId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalResult.h new file mode 100644 index 000000000..80959d3c8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBClusterEndpointZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDBClusterEndpointZonalResult : public ServiceResult + { + public: + + + DeleteDBClusterEndpointZonalResult(); + explicit DeleteDBClusterEndpointZonalResult(const std::string &payload); + ~DeleteDBClusterEndpointZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDBCLUSTERENDPOINTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h index 6a50eb7d3..da37af791 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteDBNodesRequest.h @@ -38,6 +38,8 @@ public: void setClientToken(const std::string &clientToken); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getDBNodeType() const; void setDBNodeType(const std::string &dBNodeType); std::string getResourceOwnerAccount() const; @@ -54,6 +56,7 @@ private: std::vector dBNodeId_; std::string clientToken_; std::string accessKeyId_; + std::string cloudProvider_; std::string dBNodeType_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalRequest.h new file mode 100644 index 000000000..f04621e99 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalRequest.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_DELETEDATABASEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseZonalRequest : public RpcServiceRequest { +public: + DeleteDatabaseZonalRequest(); + ~DeleteDatabaseZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalResult.h b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalResult.h new file mode 100644 index 000000000..a337f9231 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteDatabaseZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteDatabaseZonalResult : public ServiceResult + { + public: + + + DeleteDatabaseZonalResult(); + explicit DeleteDatabaseZonalResult(const std::string &payload); + ~DeleteDatabaseZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEDATABASEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeRequest.h new file mode 100644 index 000000000..e28618118 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeRequest.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_DELETEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteEncryptionDBRolePrivilegeRequest : public RpcServiceRequest { +public: + DeleteEncryptionDBRolePrivilegeRequest(); + ~DeleteEncryptionDBRolePrivilegeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRolePrivilegeNameList() const; + void setRolePrivilegeNameList(const std::string &rolePrivilegeNameList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string rolePrivilegeNameList_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeResult.h new file mode 100644 index 000000000..b9ddb5b09 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteEncryptionDBRolePrivilegeResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEENCRYPTIONDBROLEPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEENCRYPTIONDBROLEPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteEncryptionDBRolePrivilegeResult : public ServiceResult + { + public: + + + DeleteEncryptionDBRolePrivilegeResult(); + explicit DeleteEncryptionDBRolePrivilegeResult(const std::string &payload); + ~DeleteEncryptionDBRolePrivilegeResult(); + std::string getMessage()const; + std::string getDBClusterId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dBClusterId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEENCRYPTIONDBROLEPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteExtensionsRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteExtensionsRequest.h new file mode 100644 index 000000000..ba1af9eb9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteExtensionsRequest.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_DELETEEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteExtensionsRequest : public RpcServiceRequest { +public: + DeleteExtensionsRequest(); + ~DeleteExtensionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBNames() const; + void setDBNames(const std::string &dBNames); + std::string getExtensions() const; + void setExtensions(const std::string &extensions); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBNames_; + std::string extensions_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEEXTENSIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteExtensionsResult.h b/polardb/include/alibabacloud/polardb/model/DeleteExtensionsResult.h new file mode 100644 index 000000000..344f41c03 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteExtensionsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteExtensionsResult : public ServiceResult + { + public: + + + DeleteExtensionsResult(); + explicit DeleteExtensionsResult(const std::string &payload); + ~DeleteExtensionsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesRequest.h new file mode 100644 index 000000000..2f92a57f2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesRequest.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_DELETEFIREWALLRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEFIREWALLRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteFirewallRulesRequest : public RpcServiceRequest { +public: + DeleteFirewallRulesRequest(); + ~DeleteFirewallRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleNameList() const; + void setRuleNameList(const std::string &ruleNameList); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleNameList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEFIREWALLRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesResult.h b/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesResult.h new file mode 100644 index 000000000..f289fa974 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteFirewallRulesResult.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_DELETEFIREWALLRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEFIREWALLRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteFirewallRulesResult : public ServiceResult + { + public: + + + DeleteFirewallRulesResult(); + explicit DeleteFirewallRulesResult(const std::string &payload); + ~DeleteFirewallRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEFIREWALLRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkRequest.h new file mode 100644 index 000000000..2606fa150 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DELETEGLOBALDATANETWORKREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEGLOBALDATANETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteGlobalDataNetworkRequest : public RpcServiceRequest { +public: + DeleteGlobalDataNetworkRequest(); + ~DeleteGlobalDataNetworkRequest(); + std::string getNetworkId() const; + void setNetworkId(const std::string &networkId); + +private: + std::string networkId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEGLOBALDATANETWORKREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkResult.h b/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkResult.h new file mode 100644 index 000000000..1ec5f5897 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteGlobalDataNetworkResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETEGLOBALDATANETWORKRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETEGLOBALDATANETWORKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteGlobalDataNetworkResult : public ServiceResult + { + public: + + + DeleteGlobalDataNetworkResult(); + explicit DeleteGlobalDataNetworkResult(const std::string &payload); + ~DeleteGlobalDataNetworkResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETEGLOBALDATANETWORKRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h index 7e84e8c9e..e10546302 100644 --- a/polardb/include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DeleteMaskingRulesRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_POLARDB_EXPORT DeleteMaskingRulesRequest : public RpcServiceR public: DeleteMaskingRulesRequest(); ~DeleteMaskingRulesRequest(); + std::string getInterfaceVersion() const; + void setInterfaceVersion(const std::string &interfaceVersion); std::string getDBClusterId() const; void setDBClusterId(const std::string &dBClusterId); std::string getRuleNameList() const; void setRuleNameList(const std::string &ruleNameList); private: + std::string interfaceVersion_; std::string dBClusterId_; std::string ruleNameList_; }; diff --git a/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelRequest.h new file mode 100644 index 000000000..317d26591 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelRequest.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_DELETENETWORKCHANNELREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETENETWORKCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteNetworkChannelRequest : public RpcServiceRequest { +public: + DeleteNetworkChannelRequest(); + ~DeleteNetworkChannelRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChannelName() const; + void setChannelName(const std::string &channelName); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string channelName_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETENETWORKCHANNELREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelResult.h b/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelResult.h new file mode 100644 index 000000000..b146719ac --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteNetworkChannelResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DELETENETWORKCHANNELRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETENETWORKCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteNetworkChannelResult : public ServiceResult + { + public: + + + DeleteNetworkChannelResult(); + explicit DeleteNetworkChannelResult(const std::string &payload); + ~DeleteNetworkChannelResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETENETWORKCHANNELRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesRequest.h new file mode 100644 index 000000000..3674778f7 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesRequest.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_DELETESQLRATELIMITINGRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETESQLRATELIMITINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DeleteSQLRateLimitingRulesRequest : public RpcServiceRequest { +public: + DeleteSQLRateLimitingRulesRequest(); + ~DeleteSQLRateLimitingRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleNameList() const; + void setRuleNameList(const std::string &ruleNameList); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleNameList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETESQLRATELIMITINGRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesResult.h b/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesResult.h new file mode 100644 index 000000000..04537df2d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DeleteSQLRateLimitingRulesResult.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_DELETESQLRATELIMITINGRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DELETESQLRATELIMITINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DeleteSQLRateLimitingRulesResult : public ServiceResult + { + public: + + + DeleteSQLRateLimitingRulesResult(); + explicit DeleteSQLRateLimitingRulesResult(const std::string &payload); + ~DeleteSQLRateLimitingRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DELETESQLRATELIMITINGRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeRequest.h new file mode 100644 index 000000000..79a577b42 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeRequest.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_DESCRIBEAIDBCLUSTERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClusterAttributeRequest : public RpcServiceRequest { +public: + DescribeAIDBClusterAttributeRequest(); + ~DescribeAIDBClusterAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERATTRIBUTEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeResult.h new file mode 100644 index 000000000..44d04a981 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterAttributeResult.h @@ -0,0 +1,141 @@ +/* + * 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_DESCRIBEAIDBCLUSTERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClusterAttributeResult : public ServiceResult + { + public: + struct DBNode + { + struct Volumes + { + std::string mountPath; + std::string storageType; + std::string storageCategory; + std::string sizeGB; + std::string name; + }; + std::string memorySize; + std::string dBNodeStatus; + std::string zoneId; + std::string vPCId; + std::string vSwitchId; + std::string linkIP; + std::string dBNodeId; + std::string gPU; + std::string dBNodeClass; + std::string vNodeId; + std::vector childVolumes; + std::string cpuCores; + std::string dBNodeDescription; + }; + struct VolumesItem + { + std::string mountPath; + std::string storageType; + std::string storageCategory; + std::string sizeGB; + std::string name; + }; + struct EndpointListItem + { + struct NetInfoItemsItem + { + std::string port; + std::string connectionString; + std::string netType; + }; + std::vector netInfoItems; + }; + + + DescribeAIDBClusterAttributeResult(); + explicit DescribeAIDBClusterAttributeResult(const std::string &payload); + ~DescribeAIDBClusterAttributeResult(); + std::string getAiNodeType()const; + std::string getDBClusterId()const; + std::string getDBVersion()const; + std::vector getVolumes()const; + std::vector getDBNodes()const; + std::string getRunType()const; + std::string getZoneIds()const; + std::string getInternalIp()const; + std::vector getEndpointList()const; + std::string getKubeClusterId()const; + std::string getStorageType()const; + std::string getModelName()const; + std::string getZoneId()const; + std::string getVPCId()const; + std::string getPublicIp()const; + std::string getDBClusterStatus()const; + std::string getVSwitchId()const; + std::string getDBClusterDescription()const; + bool getExpired()const; + std::string getLockMode()const; + std::string getPayType()const; + std::string getCreationTime()const; + std::string getMaxQPM()const; + std::string getRegionId()const; + std::string getExpireTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string aiNodeType_; + std::string dBClusterId_; + std::string dBVersion_; + std::vector volumes_; + std::vector dBNodes_; + std::string runType_; + std::string zoneIds_; + std::string internalIp_; + std::vector endpointList_; + std::string kubeClusterId_; + std::string storageType_; + std::string modelName_; + std::string zoneId_; + std::string vPCId_; + std::string publicIp_; + std::string dBClusterStatus_; + std::string vSwitchId_; + std::string dBClusterDescription_; + bool expired_; + std::string lockMode_; + std::string payType_; + std::string creationTime_; + std::string maxQPM_; + std::string regionId_; + std::string expireTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceRequest.h new file mode 100644 index 000000000..b4d42c7e9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceRequest.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_DESCRIBEAIDBCLUSTERPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClusterPerformanceRequest : public RpcServiceRequest { +public: + DescribeAIDBClusterPerformanceRequest(); + ~DescribeAIDBClusterPerformanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getKey() const; + void setKey(const std::string &key); + std::string getApiKey() const; + void setApiKey(const std::string &apiKey); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInterval() const; + void setInterval(const std::string &interval); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string key_; + std::string apiKey_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string interval_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERPERFORMANCEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceResult.h new file mode 100644 index 000000000..681ec6ab2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClusterPerformanceResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERPERFORMANCERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClusterPerformanceResult : public ServiceResult + { + public: + struct PerformanceItem + { + struct PerformanceItemValue + { + std::string value; + long timestamp; + }; + std::string measurement; + std::string metricName; + std::vector points; + std::string dBNodeId; + }; + + + DescribeAIDBClusterPerformanceResult(); + explicit DescribeAIDBClusterPerformanceResult(const std::string &payload); + ~DescribeAIDBClusterPerformanceResult(); + std::vector getPerformanceKeys()const; + std::string getDBVersion()const; + std::string getApiKey()const; + std::string getEndTime()const; + std::string getStartTime()const; + std::string getDBClusterId()const; + std::string getDBType()const; + std::string getEngine()const; + std::string getInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string dBVersion_; + std::string apiKey_; + std::string endTime_; + std::string startTime_; + std::string dBClusterId_; + std::string dBType_; + std::string engine_; + std::string interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersRequest.h new file mode 100644 index 000000000..22774e0d9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersRequest.h @@ -0,0 +1,97 @@ +/* + * 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_DESCRIBEAIDBCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClustersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeAIDBClustersRequest(); + ~DescribeAIDBClustersRequest(); + std::string getAiNodeType() const; + void setAiNodeType(const std::string &aiNodeType); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getDBClusterStatus() const; + void setDBClusterStatus(const std::string &dBClusterStatus); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getRelativeDBClusterId() const; + void setRelativeDBClusterId(const std::string &relativeDBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTargetPolarFsInstanceId() const; + void setTargetPolarFsInstanceId(const std::string &targetPolarFsInstanceId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getPayType() const; + void setPayType(const std::string &payType); + std::string getDBClusterIds() const; + void setDBClusterIds(const std::string &dBClusterIds); + +private: + std::string aiNodeType_; + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string dBClusterStatus_; + std::string describeType_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string relativeDBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string targetPolarFsInstanceId_; + std::string zoneId_; + std::string payType_; + std::string dBClusterIds_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersResult.h new file mode 100644 index 000000000..cf1308af3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAIDBClustersResult.h @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAIDBClustersResult : public ServiceResult + { + public: + struct DBCluster + { + struct Tag + { + std::string value; + std::string key; + }; + std::string dBNodeStatus; + std::string dBNodeStatusDesc; + std::string aiNodeType; + std::vector connAddrs; + std::string dBClusterId; + std::string dataZoneId; + std::string dBType; + std::string dBNodeId; + bool mounted; + std::string runType; + std::vector tags; + std::string engine; + std::string dBNodeDescription; + std::string kubeClusterId; + std::string storageType; + std::string engineVersion; + std::string modelName; + std::string zoneId; + std::string relativeDBClusterId; + std::string dBClusterStatus; + std::string createTime; + std::string dBClusterDescription; + bool expired; + std::string payType; + std::string lockMode; + std::string mountDir; + std::string vswitchId; + std::string dBNodeClass; + std::string vpcId; + int storageSpace; + std::string cloudInstanceIp; + std::string creationTime; + std::string maxQpm; + std::string regionId; + std::string expireTime; + }; + + + DescribeAIDBClustersResult(); + explicit DescribeAIDBClustersResult(const std::string &payload); + ~DescribeAIDBClustersResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::string getEngineVersion()const; + int getPageNumber()const; + std::string getDBClusterId()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string engineVersion_; + int pageNumber_; + std::string dBClusterId_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAIDBCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h index 55516e139..5bf5f1832 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsRequest.h @@ -32,6 +32,8 @@ public: ~DescribeAccountsRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getAccessKeyId() const; @@ -51,6 +53,7 @@ public: private: long resourceOwnerId_; + std::string nodeType_; int pageNumber_; std::string accessKeyId_; std::string accountName_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h index fad22ed4d..60c12d8fe 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string accountDescription; std::string accountStatus; std::string privilegeExceeded; + std::string dynamoDBAuthPassword; std::string accountLockState; std::string accountPasswordValidTime; std::string accountType; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalRequest.h new file mode 100644 index 000000000..22714a9aa --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalRequest.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_DESCRIBEACCOUNTSZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsZonalRequest : public RpcServiceRequest { +public: + DescribeAccountsZonalRequest(); + ~DescribeAccountsZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNodeType() const; + void setNodeType(const std::string &nodeType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string nodeType_; + int pageNumber_; + std::string accessKeyId_; + std::string accountName_; + std::string nextToken_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalResult.h new file mode 100644 index 000000000..b29b6102f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAccountsZonalResult.h @@ -0,0 +1,78 @@ +/* + * 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_DESCRIBEACCOUNTSZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAccountsZonalResult : public ServiceResult + { + public: + struct DBAccount + { + struct DatabasePrivilege + { + std::string accountPrivilege; + std::string dBName; + }; + std::string accountDescription; + std::string accountStatus; + std::string privilegeExceeded; + std::string dynamoDBAuthPassword; + std::string accountLockState; + std::string accountPasswordValidTime; + std::string accountType; + std::string tairPasswordSetted; + std::vector databasePrivileges; + std::string accountName; + std::string accountPassword; + }; + + + DescribeAccountsZonalResult(); + explicit DescribeAccountsZonalResult(const std::string &payload); + ~DescribeAccountsZonalResult(); + int getPageRecordCount()const; + std::string getNextToken()const; + int getPageNumber()const; + int getMaxResults()const; + std::vector getAccounts()const; + + protected: + void parse(const std::string &payload); + private: + int pageRecordCount_; + std::string nextToken_; + int pageNumber_; + int maxResults_; + std::vector accounts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACCOUNTSZONALRESULT_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 index 02c1eb76d..9463cec66 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeActivationCodesRequest.h @@ -40,6 +40,10 @@ public: void setPageSize(int pageSize); 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; @@ -53,6 +57,8 @@ private: std::string accessKeyId_; int pageSize_; std::string aliyunOrderId_; + std::string macAddress_; + std::string systemIdentifier_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfRequest.h new file mode 100644 index 000000000..7e384873d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfRequest.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_DESCRIBEACTIVEOPERATIONMAINTAINCONFREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONMAINTAINCONFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeActiveOperationMaintainConfRequest : public RpcServiceRequest { +public: + DescribeActiveOperationMaintainConfRequest(); + ~DescribeActiveOperationMaintainConfRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 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 resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONMAINTAINCONFREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfResult.h b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfResult.h new file mode 100644 index 000000000..a78696f89 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeActiveOperationMaintainConfResult.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_DESCRIBEACTIVEOPERATIONMAINTAINCONFRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONMAINTAINCONFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeActiveOperationMaintainConfResult : public ServiceResult + { + public: + struct Config + { + long status; + std::string cycleTime; + int cycleType; + std::string maintainEndTime; + std::string createdTime; + std::string modifiedTime; + std::string maintainStartTime; + }; + + + DescribeActiveOperationMaintainConfResult(); + explicit DescribeActiveOperationMaintainConfResult(const std::string &payload); + ~DescribeActiveOperationMaintainConfResult(); + Config getConfig()const; + long getHasConfig()const; + + protected: + void parse(const std::string &payload); + private: + Config config_; + long hasConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEACTIVEOPERATIONMAINTAINCONFRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeRequest.h new file mode 100644 index 000000000..bf042dc9f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DESCRIBEAPPLICATIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationAttributeRequest : public RpcServiceRequest { +public: + DescribeApplicationAttributeRequest(); + ~DescribeApplicationAttributeRequest(); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONATTRIBUTEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeResult.h new file mode 100644 index 000000000..f2d320284 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationAttributeResult.h @@ -0,0 +1,157 @@ +/* + * 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_DESCRIBEAPPLICATIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationAttributeResult : public ServiceResult + { + public: + struct SecurityGroup + { + std::string securityGroupName; + std::string securityGroupId; + std::string regionId; + std::string netType; + }; + struct SecurityIPArray + { + std::string securityIPArrayTag; + std::string securityIPType; + std::string securityIPList; + std::string securityIPArrayName; + std::string securityIPNetType; + }; + struct Component + { + struct Topology + { + std::vector parents; + std::vector children; + std::string layer; + }; + struct SecurityGroup3 + { + std::string securityGroupName; + std::string securityGroupId; + std::string regionId; + std::string netType; + }; + struct SecurityIPArray4 + { + std::string securityIPArrayTag; + std::string securityIPType; + std::string securityIPList; + std::string securityIPArrayName; + std::string securityIPNetType; + }; + std::vector securityGroups1; + std::string status; + std::string componentType; + std::vector securityIPArrays2; + long componentReplica; + Topology topology; + std::string componentClassDescription; + std::string componentReplicaGroupName; + std::string componentId; + long componentMaxReplica; + std::string componentClass; + }; + struct Endpoint + { + std::string description; + std::string endpointId; + std::string iP; + std::string port; + std::string netType; + }; + + + DescribeApplicationAttributeResult(); + explicit DescribeApplicationAttributeResult(const std::string &payload); + ~DescribeApplicationAttributeResult(); + std::vector getSecurityGroups()const; + std::string getDescription()const; + std::string getDBClusterId()const; + std::string getPolarFSInstanceId()const; + std::vector getComponents()const; + std::vector getEndpoints()const; + std::string getMaintainEndTime()const; + std::string getVersion()const; + std::string getMaintainStartTime()const; + std::string getStatus()const; + std::string getArchitecture()const; + std::string getZoneId()const; + std::string getVPCId()const; + std::string getVSwitchId()const; + bool getExpired()const; + std::string getLockMode()const; + std::string getPayType()const; + std::string getApplicationType()const; + std::string getServerlessType()const; + std::string getCreationTime()const; + std::string getUpgradeAvailable()const; + std::vector getSecurityIPArrays()const; + std::string getRegionId()const; + std::string getApplicationId()const; + std::string getExpireTime()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroups_; + std::string description_; + std::string dBClusterId_; + std::string polarFSInstanceId_; + std::vector components_; + std::vector endpoints_; + std::string maintainEndTime_; + std::string version_; + std::string maintainStartTime_; + std::string status_; + std::string architecture_; + std::string zoneId_; + std::string vPCId_; + std::string vSwitchId_; + bool expired_; + std::string lockMode_; + std::string payType_; + std::string applicationType_; + std::string serverlessType_; + std::string creationTime_; + std::string upgradeAvailable_; + std::vector securityIPArrays_; + std::string regionId_; + std::string applicationId_; + std::string expireTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersRequest.h new file mode 100644 index 000000000..2b658705d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONPARAMETERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONPARAMETERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationParametersRequest : public RpcServiceRequest { +public: + DescribeApplicationParametersRequest(); + ~DescribeApplicationParametersRequest(); + std::vector getComponentIdList() const; + void setComponentIdList(const std::vector &componentIdList); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::vector componentIdList_; + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONPARAMETERSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersResult.h new file mode 100644 index 000000000..bd3571e93 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationParametersResult.h @@ -0,0 +1,97 @@ +/* + * 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_DESCRIBEAPPLICATIONPARAMETERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONPARAMETERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationParametersResult : public ServiceResult + { + public: + struct Parameters + { + struct ComponentParameter + { + struct _Parameter + { + std::string status; + bool readOnly; + std::string pattern; + std::string type; + std::string description; + std::string value; + bool needRestart; + std::string _default; + std::string name; + }; + std::string componentType; + std::vector parameters1; + std::string componentId; + }; + std::vector componentParameters; + }; + struct ParameterTemplates + { + struct ComponentParameterTemplate + { + struct _Parameter3 + { + bool readOnly; + std::string pattern; + std::string type; + std::string description; + bool needRestart; + std::string _default; + std::string name; + }; + std::vector parameters2; + std::string componentType; + std::string parameterTemplateId; + std::string componentId; + std::string parentParameterTemplateId; + }; + std::vector componentParameterTemplates; + }; + + + DescribeApplicationParametersResult(); + explicit DescribeApplicationParametersResult(const std::string &payload); + ~DescribeApplicationParametersResult(); + Parameters getParameters()const; + ParameterTemplates getParameterTemplates()const; + + protected: + void parse(const std::string &payload); + private: + Parameters parameters_; + ParameterTemplates parameterTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONPARAMETERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfRequest.h new file mode 100644 index 000000000..cb5da1ca2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DESCRIBEAPPLICATIONSERVERLESSCONFREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSERVERLESSCONFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationServerlessConfRequest : public RpcServiceRequest { +public: + DescribeApplicationServerlessConfRequest(); + ~DescribeApplicationServerlessConfRequest(); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSERVERLESSCONFREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfResult.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfResult.h new file mode 100644 index 000000000..9beb7a942 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationServerlessConfResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSERVERLESSCONFRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSERVERLESSCONFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationServerlessConfResult : public ServiceResult + { + public: + struct ServerlessConf + { + std::string componentType; + std::string scaleMin; + std::string scaleMax; + }; + + + DescribeApplicationServerlessConfResult(); + explicit DescribeApplicationServerlessConfResult(const std::string &payload); + ~DescribeApplicationServerlessConfResult(); + std::vector getServerlessConfItems()const; + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector serverlessConfItems_; + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSERVERLESSCONFRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationsRequest.h new file mode 100644 index 000000000..be18c6699 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationsRequest : public RpcServiceRequest { +public: + DescribeApplicationsRequest(); + ~DescribeApplicationsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getApplicationIds() const; + void setApplicationIds(const std::string &applicationIds); + +private: + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string dBClusterId_; + std::string applicationIds_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeApplicationsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeApplicationsResult.h new file mode 100644 index 000000000..a2f5857f3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeApplicationsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAPPLICATIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeApplicationsResult : public ServiceResult + { + public: + struct Applications + { + struct Endpoint + { + std::string iP; + std::string port; + std::string netType; + }; + std::string status; + std::string description; + std::string engineVersion; + std::string zoneId; + std::string expired; + std::string payType; + std::string polarFSInstanceId; + std::vector endpoints; + std::string applicationType; + std::string creationTime; + std::string regionId; + std::string applicationId; + std::string expireTime; + }; + + + DescribeApplicationsResult(); + explicit DescribeApplicationsResult(const std::string &payload); + ~DescribeApplicationsResult(); + 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_DESCRIBEAPPLICATIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h index fbe419202..a60443636 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeAutoRenewAttributeRequest.h @@ -36,6 +36,8 @@ public: void setPageNumber(int pageNumber); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; @@ -48,6 +50,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); std::string getDBClusterIds() const; void setDBClusterIds(const std::string &dBClusterIds); @@ -55,12 +59,14 @@ private: long resourceOwnerId_; int pageNumber_; std::string accessKeyId_; + std::string cloudProvider_; std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string resourceType_; std::string dBClusterIds_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsRequest.h new file mode 100644 index 000000000..6e1f23063 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsRequest.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_DESCRIBEAVAILABLECROSSREGIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAVAILABLECROSSREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeAvailableCrossRegionsRequest : public RpcServiceRequest { +public: + DescribeAvailableCrossRegionsRequest(); + ~DescribeAvailableCrossRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAVAILABLECROSSREGIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsResult.h new file mode 100644 index 000000000..766786e03 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeAvailableCrossRegionsResult.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_DESCRIBEAVAILABLECROSSREGIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAVAILABLECROSSREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeAvailableCrossRegionsResult : public ServiceResult + { + public: + + + DescribeAvailableCrossRegionsResult(); + explicit DescribeAvailableCrossRegionsResult(const std::string &payload); + ~DescribeAvailableCrossRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEAVAILABLECROSSREGIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h index dae19b744..798874082 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsRequest.h @@ -40,6 +40,8 @@ public: void setAccessKeyId(const std::string &accessKeyId); int getPageSize() const; void setPageSize(int pageSize); + std::string getSubGroupName() const; + void setSubGroupName(const std::string &subGroupName); std::string getBackupRegion() const; void setBackupRegion(const std::string &backupRegion); std::string getResourceOwnerAccount() const; @@ -59,6 +61,7 @@ private: int pageNumber_; std::string accessKeyId_; int pageSize_; + std::string subGroupName_; std::string backupRegion_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsResult.h index 40721ff4a..cbff0f519 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupLogsResult.h @@ -42,6 +42,7 @@ namespace AlibabaCloud std::string backupLogSize; std::string intranetDownloadLink; std::string backupLogStartTime; + std::string dBInstanceName; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h index df4aa7b00..125d26302 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupPolicyResult.h @@ -32,6 +32,24 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupPolicyResult : public ServiceResult { public: + struct AdvancedDataPolicy + { + bool onlyPreserveOneEachHour; + std::string retentionValue; + std::string bakType; + std::string filterKey; + std::string filterValue; + std::string destType; + std::string filterType; + std::string srcRegion; + bool autoCreated; + std::string srcType; + bool onlyPreserveOneEachDay; + std::string dumpAction; + std::string policyId; + std::string destRegion; + std::string retentionType; + }; DescribeBackupPolicyResult(); @@ -44,11 +62,14 @@ namespace AlibabaCloud std::string getBackupRetentionPolicyOnClusterDeletion()const; std::string getBackupFrequency()const; std::string getDataLevel1BackupTime()const; + std::vector getAdvancedDataPolicies()const; std::string getPreferredNextBackupTime()const; + std::string getAdvancedPolicyOption()const; std::string getDataLevel2BackupRetentionPeriod()const; std::string getPreferredBackupPeriod()const; std::string getDataLevel1BackupFrequency()const; std::string getDataLevel2BackupPeriod()const; + std::string getBackupPolicyLevel()const; int getBackupRetentionPeriod()const; std::string getDataLevel1BackupPeriod()const; @@ -62,11 +83,14 @@ namespace AlibabaCloud std::string backupRetentionPolicyOnClusterDeletion_; std::string backupFrequency_; std::string dataLevel1BackupTime_; + std::vector advancedDataPolicies_; std::string preferredNextBackupTime_; + std::string advancedPolicyOption_; std::string dataLevel2BackupRetentionPeriod_; std::string preferredBackupPeriod_; std::string dataLevel1BackupFrequency_; std::string dataLevel2BackupPeriod_; + std::string backupPolicyLevel_; int backupRetentionPeriod_; std::string dataLevel1BackupPeriod_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsRequest.h new file mode 100644 index 000000000..1828e1358 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsRequest.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_DESCRIBEBACKUPREGIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupRegionsRequest : public RpcServiceRequest { +public: + DescribeBackupRegionsRequest(); + ~DescribeBackupRegionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPREGIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsResult.h new file mode 100644 index 000000000..083f5746c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupRegionsResult.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_DESCRIBEBACKUPREGIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeBackupRegionsResult : public ServiceResult + { + public: + + + DescribeBackupRegionsResult(); + explicit DescribeBackupRegionsResult(const std::string &payload); + ~DescribeBackupRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEBACKUPREGIONSRESULT_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 b6b35b8af..67dbabb20 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeBackupsResult.h @@ -49,6 +49,7 @@ namespace AlibabaCloud std::string backupType; std::string expectExpireType; std::string backupStatus; + std::string shareType; }; @@ -56,6 +57,7 @@ namespace AlibabaCloud explicit DescribeBackupsResult(const std::string &payload); ~DescribeBackupsResult(); std::string getTotalRecordCount()const; + bool getAllowShareBackup()const; std::string getPageRecordCount()const; std::string getPageNumber()const; std::vector getItems()const; @@ -65,6 +67,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string totalRecordCount_; + bool allowShareBackup_; std::string pageRecordCount_; std::string pageNumber_; std::vector items_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceRequest.h new file mode 100644 index 000000000..a35a7e2fc --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeColdStorageInstanceRequest : public RpcServiceRequest { +public: + DescribeColdStorageInstanceRequest(); + ~DescribeColdStorageInstanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getTableName() const; + void setTableName(const std::string &tableName); + std::string getObjectType() const; + void setObjectType(const std::string &objectType); + std::string getEngineType() const; + void setEngineType(const std::string &engineType); + int getExpireTime() const; + void setExpireTime(int expireTime); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getDownloadNetType() const; + void setDownloadNetType(const std::string &downloadNetType); + +private: + long resourceOwnerId_; + std::string describeType_; + std::string pageNumber_; + std::string accessKeyId_; + std::string nextToken_; + std::string regionId_; + std::string pageSize_; + std::string tableName_; + std::string objectType_; + std::string engineType_; + int expireTime_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; + int maxResults_; + std::string downloadNetType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceResult.h b/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceResult.h new file mode 100644 index 000000000..617377482 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeColdStorageInstanceResult.h @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeColdStorageInstanceResult : public ServiceResult + { + public: + struct TablesItem + { + struct ChildObjectsItem + { + std::string status; + std::string objectType; + std::string size; + std::string objectName; + }; + std::string partion; + std::string status; + std::string tableName; + std::string table; + std::string size; + std::string dBName; + std::string ossClusterId; + std::string fieldName; + std::string dB; + std::vector childObjects; + }; + struct OssClusterInfoListItem + { + std::string createdTime; + std::string size; + std::string region; + std::string ossClusterId; + }; + + + DescribeColdStorageInstanceResult(); + explicit DescribeColdStorageInstanceResult(const std::string &payload); + ~DescribeColdStorageInstanceResult(); + std::string getOssClusterEnabled()const; + std::string getObjectType()const; + int getPageRecordCount()const; + std::string getNextToken()const; + int getPageSize()const; + int getPageNumber()const; + std::string getDownLoadUrl()const; + int getTotalRecord()const; + int getMaxResults()const; + std::vector getTables()const; + std::string getSupportOssCluster()const; + std::vector getOssClusterInfoList()const; + + protected: + void parse(const std::string &payload); + private: + std::string ossClusterEnabled_; + std::string objectType_; + int pageRecordCount_; + std::string nextToken_; + int pageSize_; + int pageNumber_; + std::string downLoadUrl_; + int totalRecord_; + int maxResults_; + std::vector tables_; + std::string supportOssCluster_; + std::vector ossClusterInfoList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECOLDSTORAGEINSTANCERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessRequest.h new file mode 100644 index 000000000..e0bca1902 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessRequest.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_DESCRIBECRONJOBPOLICYSERVERLESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECRONJOBPOLICYSERVERLESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeCronJobPolicyServerlessRequest : public RpcServiceRequest { +public: + DescribeCronJobPolicyServerlessRequest(); + ~DescribeCronJobPolicyServerlessRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string jobId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECRONJOBPOLICYSERVERLESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessResult.h b/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessResult.h new file mode 100644 index 000000000..362e0f04e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCronJobPolicyServerlessResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBECRONJOBPOLICYSERVERLESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECRONJOBPOLICYSERVERLESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeCronJobPolicyServerlessResult : public ServiceResult + { + public: + struct DriverCronJobAttrbute + { + std::string status; + std::string action; + std::string scaleApRoNumMin; + std::string endTime; + std::string scaleRoNumMax; + std::string dBClusterId; + std::string startTime; + std::string scaleMax; + std::string orderId; + std::string serverlessRuleCpuShrinkThreshold; + std::string scaleRoNumMin; + std::string serverlessRuleCpuEnlargeThreshold; + std::string allowShutDown; + std::string scaleApRoNumMax; + std::string scaleMin; + std::string serverlessRuleMode; + std::string regionId; + std::string cronExpression; + std::string secondsUntilAutoPause; + std::string jobId; + }; + + + DescribeCronJobPolicyServerlessResult(); + explicit DescribeCronJobPolicyServerlessResult(const std::string &payload); + ~DescribeCronJobPolicyServerlessResult(); + 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_DESCRIBECRONJOBPOLICYSERVERLESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsRequest.h new file mode 100644 index 000000000..4e9bfd382 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsRequest.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_DESCRIBECROSSCLOUDLEVELSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDLEVELSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudLevelsRequest : public RpcServiceRequest { +public: + DescribeCrossCloudLevelsRequest(); + ~DescribeCrossCloudLevelsRequest(); + std::string getStorageType() const; + void setStorageType(const std::string &storageType); + std::string getProjectId() const; + void setProjectId(const std::string &projectId); + std::string getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBVersion() const; + void setDBVersion(const std::string &dBVersion); + +private: + std::string storageType_; + std::string projectId_; + std::string dBType_; + std::string dBVersion_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDLEVELSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsResult.h new file mode 100644 index 000000000..9ced35b81 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudLevelsResult.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_DESCRIBECROSSCLOUDLEVELSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDLEVELSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudLevelsResult : public ServiceResult + { + public: + struct CrossCloudLevelListItem + { + std::string levelCode; + std::string levelName; + std::string dBType; + }; + + + DescribeCrossCloudLevelsResult(); + explicit DescribeCrossCloudLevelsResult(const std::string &payload); + ~DescribeCrossCloudLevelsResult(); + std::vector getCrossCloudLevelList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector crossCloudLevelList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDLEVELSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunRequest.h new file mode 100644 index 000000000..c9b496756 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudRegionMappingToAliyunRequest : public RpcServiceRequest { +public: + DescribeCrossCloudRegionMappingToAliyunRequest(); + ~DescribeCrossCloudRegionMappingToAliyunRequest(); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); + std::string getAliyunRegionId() const; + void setAliyunRegionId(const std::string &aliyunRegionId); + std::string getCrossCloudRegionId() const; + void setCrossCloudRegionId(const std::string &crossCloudRegionId); + +private: + std::string cloudProvider_; + std::string aliyunRegionId_; + std::string crossCloudRegionId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunResult.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunResult.h new file mode 100644 index 000000000..7382f6d54 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionMappingToAliyunResult.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_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudRegionMappingToAliyunResult : public ServiceResult + { + public: + struct CrossCloudRegionMappingListItem + { + std::string cloudProvider; + std::string aliyunRegionId; + std::string crossCloudRegionId; + }; + + + DescribeCrossCloudRegionMappingToAliyunResult(); + explicit DescribeCrossCloudRegionMappingToAliyunResult(const std::string &payload); + ~DescribeCrossCloudRegionMappingToAliyunResult(); + std::vector getCrossCloudRegionMappingList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector crossCloudRegionMappingList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONMAPPINGTOALIYUNRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionRequest.h new file mode 100644 index 000000000..9f2973fd6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudRegionRequest : public RpcServiceRequest { +public: + DescribeCrossCloudRegionRequest(); + ~DescribeCrossCloudRegionRequest(); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); + std::string getCrossCloudRegionId() const; + void setCrossCloudRegionId(const std::string &crossCloudRegionId); + std::string getDBType() const; + void setDBType(const std::string &dBType); + +private: + std::string cloudProvider_; + std::string crossCloudRegionId_; + std::string dBType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionResult.h b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionResult.h new file mode 100644 index 000000000..be83c96ca --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeCrossCloudRegionResult.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_DESCRIBECROSSCLOUDREGIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeCrossCloudRegionResult : public ServiceResult + { + public: + struct CrossCloudRegionListItem + { + struct CrossCloudZoneListItem + { + std::string crossCloudZoneName; + std::string crossCloudZoneId; + }; + std::vector crossCloudZoneList; + std::string projectId; + std::string crossCloudRegionName; + std::string crossCloudRegionId; + }; + + + DescribeCrossCloudRegionResult(); + explicit DescribeCrossCloudRegionResult(const std::string &payload); + ~DescribeCrossCloudRegionResult(); + std::vector getCrossCloudRegionList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector crossCloudRegionList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBECROSSCLOUDREGIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h index 30c3fb7a4..c637b364b 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h @@ -44,26 +44,42 @@ namespace AlibabaCloud struct DBNode { std::string dBNodeStatus; + std::string subGroupDescription; std::string addedCpuCores; std::string orca; std::string dBNodeRole; std::string subCluster; + std::string osVersion; + std::string supportMemPool; std::string imciSwitch; + std::string dBNodeCXLRemoteMemory; std::string dBNodeId; std::string remoteMemorySize; + long blktagUsed; + std::string subGroupType; std::string tair; + long storageMax; std::string multiMasterLocalStandby; std::string multiMasterPrimaryNode; std::string sccMode; + bool isPrimaryCN; + std::string standbyZoneIds; + long inodeUsed; int failoverPriority; std::string serverWeight; std::string dBNodeDescription; std::string memorySize; + long blktagTotal; std::string mirrorInsName; std::string zoneId; int maxConnections; + std::string architecture; + std::string subGroupName; int maxIOPS; std::string dBNodeClass; + long storageUsed; + long inodeTotal; + std::string supportCXLMemPool; std::string serverlessType; std::string creationTime; std::string cpuCores; @@ -80,9 +96,10 @@ namespace AlibabaCloud DescribeDBClusterAttributeResult(); explicit DescribeDBClusterAttributeResult(const std::string &payload); ~DescribeDBClusterAttributeResult(); + long getSearchStorageUsed()const; std::string getResourceGroupId()const; - long getCompressStorageUsed()const; std::string getOrca()const; + long getCompressStorageUsed()const; std::string getStoragePayType()const; long getDataLevel1BackupChainSize()const; std::string getProxyStatus()const; @@ -92,6 +109,7 @@ namespace AlibabaCloud std::string getProxyStandardCpuCores()const; std::string getDBVersion()const; std::vector getDBNodes()const; + std::string getAutoUpgradeMinorVersion()const; std::string getImciAutoIndex()const; std::string getFeatureHTAPSupported()const; std::vector getTags()const; @@ -101,13 +119,15 @@ namespace AlibabaCloud std::string getVPCId()const; std::string getVSwitchId()const; std::string getDBClusterDescription()const; + std::string getDynamoDB()const; std::string getExpired()const; std::string getPayType()const; std::string getLockMode()const; std::string getProvisionedIops()const; - long getStorageUsed()const; long getInodeTotal()const; std::string getRestoreDataPoint()const; + std::string getSupportCXLMemPool()const; + long getStorageUsed()const; std::string getCompressStorageMode()const; std::string getDBVersionStatus()const; std::string getProxyServerlessType()const; @@ -115,10 +135,13 @@ namespace AlibabaCloud std::string getImperceptibleSwitch()const; std::string getProxyType()const; std::string getExpireTime()const; + std::string getRelativeAICluster()const; int getDeletionLock()const; std::string getCategory()const; std::string getAiCreatingTime()const; bool getStorageTypeWhiteListSwitch()const; + std::string getOsVersion()const; + std::string getDocumentDB()const; std::string getDBClusterId()const; std::string getHotStandbyCluster()const; std::string getDeployUnit()const; @@ -127,6 +150,8 @@ namespace AlibabaCloud bool getIsLatestVersion()const; std::string getSourceRegionId()const; long getStorageMax()const; + int getDnNodeCount()const; + long getSearchCompressStorageUsed()const; std::string getZoneIds()const; bool getHotStandbyWhiteListSwitch()const; long getInodeUsed()const; @@ -140,7 +165,9 @@ namespace AlibabaCloud std::string getDBClusterStatus()const; std::string getProxyCpuCores()const; std::string getStrictConsistency()const; + int getCnNodeCount()const; bool getIsProxyLatestVersion()const; + std::string getApiKeys()const; long getStorageSpace()const; std::string getServerlessType()const; std::string getSubCategory()const; @@ -150,15 +177,17 @@ namespace AlibabaCloud RelatedAPInstance getRelatedAPInstance()const; long getSQLSize()const; std::string getRegionId()const; + std::string getBackupDowngradeLevel()const; std::string getRowCompression()const; bool getHotStandbyHealthy()const; protected: void parse(const std::string &payload); private: + long searchStorageUsed_; std::string resourceGroupId_; - long compressStorageUsed_; std::string orca_; + long compressStorageUsed_; std::string storagePayType_; long dataLevel1BackupChainSize_; std::string proxyStatus_; @@ -168,6 +197,7 @@ namespace AlibabaCloud std::string proxyStandardCpuCores_; std::string dBVersion_; std::vector dBNodes_; + std::string autoUpgradeMinorVersion_; std::string imciAutoIndex_; std::string featureHTAPSupported_; std::vector tags_; @@ -177,13 +207,15 @@ namespace AlibabaCloud std::string vPCId_; std::string vSwitchId_; std::string dBClusterDescription_; + std::string dynamoDB_; std::string expired_; std::string payType_; std::string lockMode_; std::string provisionedIops_; - long storageUsed_; long inodeTotal_; std::string restoreDataPoint_; + std::string supportCXLMemPool_; + long storageUsed_; std::string compressStorageMode_; std::string dBVersionStatus_; std::string proxyServerlessType_; @@ -191,10 +223,13 @@ namespace AlibabaCloud std::string imperceptibleSwitch_; std::string proxyType_; std::string expireTime_; + std::string relativeAICluster_; int deletionLock_; std::string category_; std::string aiCreatingTime_; bool storageTypeWhiteListSwitch_; + std::string osVersion_; + std::string documentDB_; std::string dBClusterId_; std::string hotStandbyCluster_; std::string deployUnit_; @@ -203,6 +238,8 @@ namespace AlibabaCloud bool isLatestVersion_; std::string sourceRegionId_; long storageMax_; + int dnNodeCount_; + long searchCompressStorageUsed_; std::string zoneIds_; bool hotStandbyWhiteListSwitch_; long inodeUsed_; @@ -216,7 +253,9 @@ namespace AlibabaCloud std::string dBClusterStatus_; std::string proxyCpuCores_; std::string strictConsistency_; + int cnNodeCount_; bool isProxyLatestVersion_; + std::string apiKeys_; long storageSpace_; std::string serverlessType_; std::string subCategory_; @@ -226,6 +265,7 @@ namespace AlibabaCloud RelatedAPInstance relatedAPInstance_; long sQLSize_; std::string regionId_; + std::string backupDowngradeLevel_; std::string rowCompression_; bool hotStandbyHealthy_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyRequest.h new file mode 100644 index 000000000..4ae96d591 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEncryptionKeyRequest : public RpcServiceRequest { +public: + DescribeDBClusterEncryptionKeyRequest(); + ~DescribeDBClusterEncryptionKeyRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string clientToken_; + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyResult.h new file mode 100644 index 000000000..12862953e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEncryptionKeyResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEncryptionKeyResult : public ServiceResult + { + public: + struct EncryptionKeyInfo + { + std::string origin; + std::string description; + std::string encryptionKeyStatus; + std::string keyType; + std::string materialExpireTime; + std::string aliasName; + std::string keyUsage; + std::string encryptionKey; + std::string creator; + std::string usedBy; + std::string deleteDate; + }; + + + DescribeDBClusterEncryptionKeyResult(); + explicit DescribeDBClusterEncryptionKeyResult(const std::string &payload); + ~DescribeDBClusterEncryptionKeyResult(); + std::vector getEncryptionKeyList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector encryptionKeyList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENCRYPTIONKEYRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h index 337fd0b6a..ff38b3a14 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h @@ -46,6 +46,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getPolarFsInstanceId() const; + void setPolarFsInstanceId(const std::string &polarFsInstanceId); private: long resourceOwnerId_; @@ -56,6 +58,7 @@ private: std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string polarFsInstanceId_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h index 9f9071485..a5cfbbd21 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct Address { + bool dashboardUsed; std::string privateZoneConnectionString; std::string vPCId; std::string vSwitchId; @@ -45,13 +46,16 @@ namespace AlibabaCloud std::string iPAddress; std::string netType; }; + std::string dBEndpointStatus; std::string dBEndpointId; std::string polarSccTimeoutAction; + std::string dBEndpointCreateTime; std::string dBClusterId; std::string nodes; std::string readWriteMode; std::string dBEndpointDescription; std::string polarSccWaitTimeout; + std::string consistLevelControlVersion; std::string nodeWithRoles; std::string autoAddNewNodes; std::string endpointType; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalRequest.h new file mode 100644 index 000000000..0694d8126 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalRequest.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_DESCRIBEDBCLUSTERENDPOINTSZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsZonalRequest : public RpcServiceRequest { +public: + DescribeDBClusterEndpointsZonalRequest(); + ~DescribeDBClusterEndpointsZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBEndpointId() const; + void setDBEndpointId(const std::string &dBEndpointId); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBEndpointId_; + std::string describeType_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalResult.h new file mode 100644 index 000000000..f4b2d7cfb --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsZonalResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterEndpointsZonalResult : public ServiceResult + { + public: + struct DBEndpoint + { + struct Address + { + bool dashboardUsed; + std::string privateZoneConnectionString; + std::string vPCId; + std::string vSwitchId; + std::string port; + std::string vpcInstanceId; + std::string connectionString; + std::string iPAddress; + 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 consistLevelControlVersion; + std::string nodeWithRoles; + std::string autoAddNewNodes; + std::string endpointType; + std::vector addressItems; + std::string sccMode; + std::string endpointConfig; + }; + + + DescribeDBClusterEndpointsZonalResult(); + explicit DescribeDBClusterEndpointsZonalResult(const std::string &payload); + ~DescribeDBClusterEndpointsZonalResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERENDPOINTSZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h index 934cc0be9..ff014199f 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h @@ -76,12 +76,35 @@ namespace AlibabaCloud std::string dtsJobName; std::string dtsInstanceID; }; + struct SrcBidirectionalDtsJob + { + std::string status; + std::string dtsJobDirection; + std::string dtsJobId; + std::string destinationEndpoint; + std::string reverseDtsJobId; + std::string sourceEndpoint; + std::string dtsJobName; + std::string dtsInstanceId; + }; struct DstDtsJob { std::string status; - std::string dtsJobId; std::string dtsJobDirection; + std::string dtsJobId; std::string destinationEndpoint; + std::string reverseDtsJobId; + std::string sourceEndpoint; + std::string dtsJobName; + std::string dtsInstanceId; + }; + struct DstBidirectionalDtsJob + { + std::string status; + std::string dtsJobDirection; + std::string dtsJobId; + std::string destinationEndpoint; + std::string reverseDtsJobId; std::string sourceEndpoint; std::string dtsJobName; std::string dtsInstanceId; @@ -99,6 +122,7 @@ namespace AlibabaCloud std::string getSourceRDSDBInstanceId()const; std::string getDBClusterReadWriteMode()const; std::string getMigrationProgress()const; + std::vector getSrcBidirectionalDtsJobList()const; std::string getMigrationStatus()const; std::string getDtsInstanceId()const; std::vector getRdsEndpointList()const; @@ -111,6 +135,7 @@ namespace AlibabaCloud std::string getRdsReadWriteMode()const; std::vector getDstDtsJobList()const; int getDelayedSeconds()const; + std::vector getDstBidirectionalDtsJobList()const; protected: void parse(const std::string &payload); @@ -123,6 +148,7 @@ namespace AlibabaCloud std::string sourceRDSDBInstanceId_; std::string dBClusterReadWriteMode_; std::string migrationProgress_; + std::vector srcBidirectionalDtsJobList_; std::string migrationStatus_; std::string dtsInstanceId_; std::vector rdsEndpointList_; @@ -135,6 +161,7 @@ namespace AlibabaCloud std::string rdsReadWriteMode_; std::vector dstDtsJobList_; int delayedSeconds_; + std::vector dstBidirectionalDtsJobList_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoRequest.h new file mode 100644 index 000000000..8a3f3a1d4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoRequest.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_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterNetInfoRequest : public RpcServiceRequest { +public: + DescribeDBClusterNetInfoRequest(); + ~DescribeDBClusterNetInfoRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getConnectionStringType() const; + void setConnectionStringType(const std::string &connectionStringType); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string connectionStringType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERNETINFOREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoResult.h new file mode 100644 index 000000000..4d9a01fc1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterNetInfoResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterNetInfoResult : public ServiceResult + { + public: + struct DBClusterNetInfo + { + std::string iPType; + std::string vPCId; + std::string vSwitchId; + std::string port; + std::string connectionString; + std::string iPAddress; + std::string connectionStringType; + }; + struct DBNodeNetInfo + { + struct NetInfo + { + std::string iPType; + std::string vPCId; + std::string vSwitchId; + std::string port; + std::string connectionString; + std::string iPAddress; + }; + std::vector netInfos; + std::string dBInstanceId; + std::string dBNodeRole; + }; + + + DescribeDBClusterNetInfoResult(); + explicit DescribeDBClusterNetInfoResult(const std::string &payload); + ~DescribeDBClusterNetInfoResult(); + std::vector getDBClusterNetInfos()const; + std::string getClusterNetworkType()const; + std::vector getDBNodeNetInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dBClusterNetInfos_; + std::string clusterNetworkType_; + std::vector dBNodeNetInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERNETINFORESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h index 7db933617..26e511f70 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h @@ -38,6 +38,8 @@ public: void setType(const std::string &type); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getSubGroupName() const; + void setSubGroupName(const std::string &subGroupName); std::string getKey() const; void setKey(const std::string &key); std::string getResourceOwnerAccount() const; @@ -60,6 +62,7 @@ private: std::string startTime_; std::string type_; std::string accessKeyId_; + std::string subGroupName_; std::string key_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyRequest.h new file mode 100644 index 000000000..085fd7124 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyRequest.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_DESCRIBEDBCLUSTERPROXYREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPROXYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterProxyRequest : public RpcServiceRequest { +public: + DescribeDBClusterProxyRequest(); + ~DescribeDBClusterProxyRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPROXYREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyResult.h new file mode 100644 index 000000000..1849593d4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterProxyResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPROXYRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPROXYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterProxyResult : public ServiceResult + { + public: + struct ChildInstance + { + std::string dBNodeStatus; + std::string dBNodeIP; + std::string dBNodeId; + std::string dBNodeClass; + std::string dBNodePort; + std::string hostName; + }; + + + DescribeDBClusterProxyResult(); + explicit DescribeDBClusterProxyResult(const std::string &payload); + ~DescribeDBClusterProxyResult(); + std::string getDBProxyClusterStatus()const; + std::string getDBProxyClusterId()const; + long getDBProxyClusterNum()const; + std::vector getChildInstances()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBProxyClusterStatus_; + std::string dBProxyClusterId_; + long dBProxyClusterNum_; + std::vector childInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERPROXYRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalRequest.h new file mode 100644 index 000000000..05bb20db1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalRequest.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_DESCRIBEDBCLUSTERVERSIONZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERVERSIONZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterVersionZonalRequest : public RpcServiceRequest { +public: + DescribeDBClusterVersionZonalRequest(); + ~DescribeDBClusterVersionZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string describeType_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERVERSIONZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalResult.h new file mode 100644 index 000000000..7c23d7077 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterVersionZonalResult.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERVERSIONZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERVERSIONZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterVersionZonalResult : public ServiceResult + { + public: + struct DBRevisionVersionListItem + { + std::string releaseType; + std::string revisionVersionName; + std::string releaseNote; + std::string revisionVersionCode; + }; + struct ProxyRevisionVersionListItem + { + std::string releaseType; + std::string revisionVersionName; + std::string releaseNote; + std::string revisionVersionCode; + }; + + + DescribeDBClusterVersionZonalResult(); + explicit DescribeDBClusterVersionZonalResult(const std::string &payload); + ~DescribeDBClusterVersionZonalResult(); + std::string getDBRevisionVersion()const; + std::vector getProxyRevisionVersionList()const; + std::string getProxyLatestVersionAfterDBEngineUpgraded()const; + std::string getDBClusterId()const; + std::string getProxyRevisionVersion()const; + std::string getDBLatestVersion()const; + std::string getProxyLatestVersion()const; + std::string getProxyVersionStatus()const; + std::string getIsLatestVersion()const; + std::string getIsProxyLatestVersion()const; + std::string getDBVersion()const; + 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_; + std::string dBLatestVersion_; + std::string proxyLatestVersion_; + std::string proxyVersionStatus_; + std::string isLatestVersion_; + std::string isProxyLatestVersion_; + std::string dBVersion_; + std::string dBVersionStatus_; + std::string dBMinorVersion_; + std::vector dBRevisionVersionList_; + std::string dBInnerRevisionVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERVERSIONZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h index c0d334161..a158168a0 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersResult.h @@ -51,6 +51,7 @@ namespace AlibabaCloud std::string dBNodeClass; }; int deletionLock; + long searchStorageUsed; std::string category; std::string resourceGroupId; long compressStorageUsed; @@ -61,8 +62,12 @@ namespace AlibabaCloud std::string dBType; std::string dBClusterNetworkType; std::string remoteMemorySize; + std::string cpuArch; + std::string dnClass; std::string dBVersion; + int dnNodeCount; std::vector dBNodes; + long searchCompressStorageUsed; std::vector tags; std::string engine; std::string engineMigrationStatus; @@ -79,12 +84,15 @@ namespace AlibabaCloud std::string strictConsistency; std::string dBNodeClass; long storageUsed; + int cnNodeCount; int dBNodeNumber; std::string vpcId; + std::string cnClass; long storageSpace; std::string serverlessType; std::string aiType; std::string cpuCores; + std::string cloudInstanceIp; std::string subCategory; std::string regionId; std::string expireTime; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsResult.h index 026a26c4d..e1bd7fc2b 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersWithBackupsResult.h @@ -51,6 +51,7 @@ namespace AlibabaCloud std::string dBNodeClass; std::string dBVersion; std::string vpcId; + std::string cnClass; std::string regionId; std::string expireTime; std::string engine; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalRequest.h new file mode 100644 index 000000000..772ff6bd3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalRequest.h @@ -0,0 +1,118 @@ +/* + * 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_DESCRIBEDBCLUSTERSZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersZonalRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeDBClustersZonalRequest(); + ~DescribeDBClustersZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getDBClusterStatus() const; + void setDBClusterStatus(const std::string &dBClusterStatus); + std::string getConnectionString() const; + void setConnectionString(const std::string &connectionString); + int getRecentExpirationInterval() const; + void setRecentExpirationInterval(int recentExpirationInterval); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getDBNodeIds() const; + void setDBNodeIds(const std::string &dBNodeIds); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + int getRecentCreationInterval() const; + void setRecentCreationInterval(int recentCreationInterval); + std::string getExpired() const; + void setExpired(const std::string &expired); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + 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 getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBVersion() const; + void setDBVersion(const std::string &dBVersion); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getPayType() const; + void setPayType(const std::string &payType); + std::string getDBClusterIds() const; + void setDBClusterIds(const std::string &dBClusterIds); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string dBClusterStatus_; + std::string connectionString_; + int recentExpirationInterval_; + std::string describeType_; + int pageNumber_; + std::string dBNodeIds_; + std::string accessKeyId_; + std::string cloudProvider_; + std::string resourceGroupId_; + int recentCreationInterval_; + std::string expired_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBType_; + std::string dBVersion_; + int maxResults_; + std::string payType_; + std::string dBClusterIds_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalResult.h new file mode 100644 index 000000000..97e148181 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClustersZonalResult.h @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClustersZonalResult : public ServiceResult + { + public: + struct DBCluster + { + struct Tag + { + std::string value; + std::string key; + }; + std::string category; + std::string dBClusterId; + std::string dBType; + std::string centralControlRegionId; + std::string dBVersion; + std::string cloudProvider; + std::vector tags; + std::string storageType; + std::string zoneId; + std::string dBClusterStatus; + std::string createTime; + std::string dBClusterDescription; + std::string expired; + std::string payType; + std::string lockMode; + std::string vswitchId; + std::string strictConsistency; + std::string dBNodeClass; + long storageUsed; + std::string eNSRegionId; + int cnNodeCount; + int dBNodeNumber; + std::string vpcId; + std::string cnClass; + long storageSpace; + std::string serverlessType; + std::string aiType; + std::string cpuCores; + std::string cloudInstanceIp; + std::string subCategory; + std::string expireTime; + }; + + + DescribeDBClustersZonalResult(); + explicit DescribeDBClustersZonalResult(const std::string &payload); + ~DescribeDBClustersZonalResult(); + int getTotalRecordCount()const; + int getPageRecordCount()const; + std::string getNextToken()const; + int getPageNumber()const; + int getMaxResults()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalRecordCount_; + int pageRecordCount_; + std::string nextToken_; + int pageNumber_; + int maxResults_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERSZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceRequest.h new file mode 100644 index 000000000..694dab83a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBInstancePerformanceRequest : public RpcServiceRequest { +public: + DescribeDBInstancePerformanceRequest(); + ~DescribeDBInstancePerformanceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBInstanceId() const; + void setDBInstanceId(const std::string &dBInstanceId); + std::string getKey() const; + void setKey(const std::string &key); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string dBInstanceId_; + std::string key_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceResult.h new file mode 100644 index 000000000..d9784e402 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBInstancePerformanceResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBInstancePerformanceResult : public ServiceResult + { + public: + struct PerformanceItem + { + struct PerformanceItemValue + { + std::string value; + long timestamp; + }; + std::string measurement; + std::string metricName; + std::vector points; + }; + + + DescribeDBInstancePerformanceResult(); + explicit DescribeDBInstancePerformanceResult(const std::string &payload); + ~DescribeDBInstancePerformanceResult(); + std::vector getPerformanceKeys()const; + std::string getDBVersion()const; + std::string getEndTime()const; + std::string getDBInstanceId()const; + std::string getStartTime()const; + std::string getDBType()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::vector performanceKeys_; + std::string dBVersion_; + std::string endTime_; + std::string dBInstanceId_; + std::string startTime_; + std::string dBType_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBINSTANCEPERFORMANCERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesRequest.h new file mode 100644 index 000000000..1b0713a6e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBLOGFILESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBLOGFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBLogFilesRequest : public RpcServiceRequest { +public: + DescribeDBLogFilesRequest(); + ~DescribeDBLogFilesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getSimulateListId() const; + void setSimulateListId(const std::string &simulateListId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getLogType() const; + void setLogType(const std::string &logType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getSwitchId() const; + void setSwitchId(const std::string &switchId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDescribeSimulateSwitchMode() const; + void setDescribeSimulateSwitchMode(const std::string &describeSimulateSwitchMode); + std::string getSimulateStatusList() const; + void setSimulateStatusList(const std::string &simulateStatusList); + std::string getSimulateModeList() const; + void setSimulateModeList(const std::string &simulateModeList); + +private: + long resourceOwnerId_; + std::string dBNodeId_; + std::string simulateListId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string logType_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string switchId_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; + std::string describeSimulateSwitchMode_; + std::string simulateStatusList_; + std::string simulateModeList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBLOGFILESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesResult.h new file mode 100644 index 000000000..48472449a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBLogFilesResult.h @@ -0,0 +1,157 @@ +/* + * 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_DESCRIBEDBLOGFILESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBLOGFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBLogFilesResult : public ServiceResult + { + public: + struct HaSwitchLogItem + { + std::string switchCauseDetail; + long switchType; + std::string switchCauseCode; + long totalSessions; + std::string switchFinishTime; + std::string fromDBType; + long affectedSessions; + std::string switchId; + std::string switchStartTime; + }; + struct SwitchListItem + { + struct SwitchLogItem + { + struct SwitchDetailItem + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string stepName; + std::string simulatePhase; + std::string timeCost; + }; + std::vector switchStepItems2; + std::string eventFinishTime; + std::string simulateLogId; + std::string dstDbType; + std::string eventStartTime; + std::string dstIpPort; + std::string dBInstanceId; + std::string simulateListId; + std::string srcDbType; + std::string srcIpPort; + std::string simulateStatus; + }; + struct SwitchStepItem + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string simulatePhase; + std::string stepName; + std::string timeCost; + std::string dBNodeId; + }; + std::string eventFinishTime; + std::string eventStartTime; + std::string endTime; + std::string plannedEscapeTime; + std::vector switchStepItems; + std::string startTime; + std::string faultInjectionType; + std::string simulateMode; + std::string preferredSimulateStartTime; + std::vector switchLogItems1; + std::string simulateListId; + std::vector dBNodeCrashList; + std::string plannedEscapeMode; + std::string simulateTaskId; + std::string simulateStatus; + }; + struct SwitchLogItem3 + { + struct SwitchStepItem5 + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string stepName; + std::string timeCost; + std::string simulatePhase; + std::string dBNodeId; + std::string stepMsg; + }; + std::string eventFinishTime; + std::string dstDbType; + std::string eventStartTime; + std::string dstIpPort; + std::string dBInstanceId; + std::vector switchStepItems4; + std::string simulateListId; + std::string srcDbType; + std::string simulatecode; + std::string srcIpPort; + std::string simulateStatus; + }; + + + DescribeDBLogFilesResult(); + explicit DescribeDBLogFilesResult(const std::string &payload); + ~DescribeDBLogFilesResult(); + int getItemsNumbers()const; + std::vector getHaLogItems()const; + int getPageSize()const; + int getPageNumber()const; + int getHaStatus()const; + int getTotalRecords()const; + std::string getDBInstanceType()const; + std::vector getSwitchListItems()const; + std::vector getSwitchLogItems()const; + std::string getDBInstanceName()const; + + protected: + void parse(const std::string &payload); + private: + int itemsNumbers_; + std::vector haLogItems_; + int pageSize_; + int pageNumber_; + int haStatus_; + int totalRecords_; + std::string dBInstanceType_; + std::vector switchListItems_; + std::vector switchLogItems_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBLOGFILESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsRequest.h new file mode 100644 index 000000000..560983afc --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsRequest.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_DESCRIBEDBMINIENGINEVERSIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBMINIENGINEVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDBMiniEngineVersionsRequest : public RpcServiceRequest { +public: + DescribeDBMiniEngineVersionsRequest(); + ~DescribeDBMiniEngineVersionsRequest(); + std::string getCreationCategory() const; + void setCreationCategory(const std::string &creationCategory); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getArchitecture() const; + void setArchitecture(const std::string &architecture); + std::string getDBMinorVersion() const; + void setDBMinorVersion(const std::string &dBMinorVersion); + std::string getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBVersion() const; + void setDBVersion(const std::string &dBVersion); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + std::string creationCategory_; + std::string regionId_; + std::string architecture_; + std::string dBMinorVersion_; + std::string dBType_; + std::string dBVersion_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBMINIENGINEVERSIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsResult.h new file mode 100644 index 000000000..edced9a79 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBMiniEngineVersionsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBMINIENGINEVERSIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBMINIENGINEVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBMiniEngineVersionsResult : public ServiceResult + { + public: + struct DBRevisionVersionListItem + { + std::string releaseType; + std::string revisionVersionName; + std::string releaseNote; + std::string revisionVersionCode; + }; + + + DescribeDBMiniEngineVersionsResult(); + explicit DescribeDBMiniEngineVersionsResult(const std::string &payload); + ~DescribeDBMiniEngineVersionsResult(); + std::vector getDBRevisionVersionList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector dBRevisionVersionList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBMINIENGINEVERSIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalRequest.h new file mode 100644 index 000000000..b96ea2858 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalRequest.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_DESCRIBEDATABASESZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesZonalRequest : public RpcServiceRequest { +public: + DescribeDatabasesZonalRequest(); + ~DescribeDatabasesZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string nextToken_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; + int maxResults_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalResult.h new file mode 100644 index 000000000..a22b04dee --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDatabasesZonalResult.h @@ -0,0 +1,76 @@ +/* + * 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_DESCRIBEDATABASESZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDatabasesZonalResult : public ServiceResult + { + public: + struct Database + { + struct Account + { + std::string accountStatus; + std::string accountPrivilege; + std::string privilegeStatus; + std::string accountName; + }; + std::string characterSetName; + std::string dBDescription; + std::string dBName; + std::string masterID; + std::string dBStatus; + std::vector accounts; + std::string engine; + }; + + + DescribeDatabasesZonalResult(); + explicit DescribeDatabasesZonalResult(const std::string &payload); + ~DescribeDatabasesZonalResult(); + std::vector getDatabases()const; + int getPageRecordCount()const; + std::string getNextToken()const; + int getPageNumber()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector databases_; + int pageRecordCount_; + std::string nextToken_; + int pageNumber_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDATABASESZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalRequest.h new file mode 100644 index 000000000..572ae7b56 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalRequest.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_DESCRIBEDBCLUSTERATTRIBUTEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeDbClusterAttributeZonalRequest : public RpcServiceRequest { +public: + DescribeDbClusterAttributeZonalRequest(); + ~DescribeDbClusterAttributeZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescribeType() const; + void setDescribeType(const std::string &describeType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string describeType_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalResult.h new file mode 100644 index 000000000..a8a917b24 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDbClusterAttributeZonalResult.h @@ -0,0 +1,268 @@ +/* + * 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_DESCRIBEDBCLUSTERATTRIBUTEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDbClusterAttributeZonalResult : public ServiceResult + { + public: + struct RelatedAPInstance + { + std::string totalAPNodes; + std::string classCode; + std::string ossStorageUsed; + float storageUsedMB; + std::string aPNodeStatus; + std::string name; + }; + struct DBNode + { + std::string dBNodeStatus; + std::string subGroupDescription; + std::string addedCpuCores; + std::string orca; + std::string dBNodeRole; + std::string subCluster; + std::string osVersion; + std::string supportMemPool; + std::string imciSwitch; + std::string dBNodeId; + std::string remoteMemorySize; + long blktagUsed; + std::string subGroupType; + std::string tair; + long storageMax; + std::string multiMasterLocalStandby; + std::string multiMasterPrimaryNode; + std::string sccMode; + bool isPrimaryCN; + std::string standbyZoneIds; + long inodeUsed; + int failoverPriority; + std::string serverWeight; + std::string dBNodeDescription; + std::string memorySize; + long blktagTotal; + std::string mirrorInsName; + std::string zoneId; + int maxConnections; + std::string architecture; + std::string subGroupName; + int maxIOPS; + std::string dBNodeClass; + long storageUsed; + long inodeTotal; + std::string serverlessType; + std::string creationTime; + std::string cpuCores; + std::string masterId; + std::string hotReplicaMode; + }; + struct Tag + { + std::string value; + std::string key; + }; + + + DescribeDbClusterAttributeZonalResult(); + explicit DescribeDbClusterAttributeZonalResult(const std::string &payload); + ~DescribeDbClusterAttributeZonalResult(); + std::string getResourceGroupId()const; + long getCompressStorageUsed()const; + std::string getOrca()const; + std::string getStoragePayType()const; + long getDataLevel1BackupChainSize()const; + std::string getProxyStatus()const; + std::string getDBType()const; + long getBlktagUsed()const; + std::string getStandbyHAMode()const; + std::string getProxyStandardCpuCores()const; + std::string getDBVersion()const; + std::vector getDBNodes()const; + std::string getAutoUpgradeMinorVersion()const; + std::string getImciAutoIndex()const; + std::string getFeatureHTAPSupported()const; + std::vector getTags()const; + std::string getEngine()const; + std::string getStorageType()const; + std::string getArchitecture()const; + std::string getVPCId()const; + std::string getVSwitchId()const; + std::string getDBClusterDescription()const; + std::string getDynamoDB()const; + std::string getExpired()const; + std::string getPayType()const; + std::string getLockMode()const; + 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; + std::string getRelativeAICluster()const; + int getDeletionLock()const; + std::string getCategory()const; + std::string getAiCreatingTime()const; + bool getStorageTypeWhiteListSwitch()const; + std::string getOsVersion()const; + std::string getDocumentDB()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; + int getDnNodeCount()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; + int getCnNodeCount()const; + bool getIsProxyLatestVersion()const; + long getStorageSpace()const; + std::string getServerlessType()const; + 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 getBackupDowngradeLevel()const; + std::string getRowCompression()const; + std::string getDBClusterClass()const; + bool getHotStandbyHealthy()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceGroupId_; + long compressStorageUsed_; + std::string orca_; + std::string storagePayType_; + long dataLevel1BackupChainSize_; + std::string proxyStatus_; + std::string dBType_; + long blktagUsed_; + std::string standbyHAMode_; + std::string proxyStandardCpuCores_; + std::string dBVersion_; + std::vector dBNodes_; + std::string autoUpgradeMinorVersion_; + std::string imciAutoIndex_; + std::string featureHTAPSupported_; + std::vector tags_; + std::string engine_; + std::string storageType_; + std::string architecture_; + std::string vPCId_; + std::string vSwitchId_; + std::string dBClusterDescription_; + std::string dynamoDB_; + std::string expired_; + std::string payType_; + std::string lockMode_; + 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_; + std::string relativeAICluster_; + int deletionLock_; + std::string category_; + std::string aiCreatingTime_; + bool storageTypeWhiteListSwitch_; + std::string osVersion_; + std::string documentDB_; + std::string dBClusterId_; + std::string hotStandbyCluster_; + std::string deployUnit_; + std::string aiFreeMode_; + std::string dBClusterNetworkType_; + bool isLatestVersion_; + std::string sourceRegionId_; + long storageMax_; + int dnNodeCount_; + 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_; + int cnNodeCount_; + bool isProxyLatestVersion_; + long storageSpace_; + std::string serverlessType_; + std::string subCategory_; + std::string aiType_; + bool hasCompleteStandbyRes_; + std::string supportInstantSwitchWithImci_; + RelatedAPInstance relatedAPInstance_; + long sQLSize_; + std::string regionId_; + std::string backupDowngradeLevel_; + std::string rowCompression_; + std::string dBClusterClass_; + bool hotStandbyHealthy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERATTRIBUTEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeRequest.h new file mode 100644 index 000000000..a2cc4e509 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeRequest.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_DESCRIBEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeEncryptionDBRolePrivilegeRequest : public RpcServiceRequest { +public: + DescribeEncryptionDBRolePrivilegeRequest(); + ~DescribeEncryptionDBRolePrivilegeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRolePrivilegeNameList() const; + void setRolePrivilegeNameList(const std::string &rolePrivilegeNameList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string rolePrivilegeNameList_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeResult.h new file mode 100644 index 000000000..f1fc11198 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBRolePrivilegeResult.h @@ -0,0 +1,68 @@ +/* + * 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_DESCRIBEENCRYPTIONDBROLEPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBROLEPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeEncryptionDBRolePrivilegeResult : public ServiceResult + { + public: + struct Data + { + struct RolePrivilegeListItem + { + std::string negation; + std::string rolePrivilegeName; + std::string notEncryption; + std::string encryption; + }; + std::vector rolePrivilegeList; + }; + + + DescribeEncryptionDBRolePrivilegeResult(); + explicit DescribeEncryptionDBRolePrivilegeResult(const std::string &payload); + ~DescribeEncryptionDBRolePrivilegeResult(); + std::string getMessage()const; + std::string getDBClusterId()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dBClusterId_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBROLEPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretRequest.h new file mode 100644 index 000000000..48c61d15f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretRequest.h @@ -0,0 +1,42 @@ +/* + * 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_DESCRIBEENCRYPTIONDBSECRETREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeEncryptionDBSecretRequest : public RpcServiceRequest { +public: + DescribeEncryptionDBSecretRequest(); + ~DescribeEncryptionDBSecretRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBSECRETREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretResult.h b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretResult.h new file mode 100644 index 000000000..73c855eb1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeEncryptionDBSecretResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBSECRETRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeEncryptionDBSecretResult : public ServiceResult + { + public: + + + DescribeEncryptionDBSecretResult(); + explicit DescribeEncryptionDBSecretResult(const std::string &payload); + ~DescribeEncryptionDBSecretResult(); + std::string getEncryptionKeyStatus()const; + std::string getDBClusterId()const; + std::string getEncryptionKey()const; + std::string getEncryptionDBStatus()const; + std::string getEncryptionDBRegion()const; + + protected: + void parse(const std::string &payload); + private: + std::string encryptionKeyStatus_; + std::string dBClusterId_; + std::string encryptionKey_; + std::string encryptionDBStatus_; + std::string encryptionDBRegion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEENCRYPTIONDBSECRETRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeExtensionsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeExtensionsRequest.h new file mode 100644 index 000000000..582e1777a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeExtensionsRequest.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_DESCRIBEEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeExtensionsRequest : public RpcServiceRequest { +public: + DescribeExtensionsRequest(); + ~DescribeExtensionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEEXTENSIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeExtensionsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeExtensionsResult.h new file mode 100644 index 000000000..b83a9cbae --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeExtensionsResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeExtensionsResult : public ServiceResult + { + public: + struct UninstalledExtensionsItem + { + std::string comment; + std::string owner; + std::string category; + std::string installedVersion; + std::string requires; + std::string priority; + std::string defaultVersion; + std::string restart; + std::string name; + }; + struct InstalledExtensionsItem + { + std::string comment; + std::string owner; + std::string category; + std::string installedVersion; + std::string requires; + std::string priority; + std::string defaultVersion; + std::string restart; + std::string name; + }; + + + DescribeExtensionsResult(); + explicit DescribeExtensionsResult(const std::string &payload); + ~DescribeExtensionsResult(); + std::vector getInstalledExtensions()const; + std::string getOverview()const; + std::vector getUninstalledExtensions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector installedExtensions_; + std::string overview_; + std::vector uninstalledExtensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesRequest.h new file mode 100644 index 000000000..438f01150 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesRequest.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_DESCRIBEFIREWALLRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEFIREWALLRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeFirewallRulesRequest : public RpcServiceRequest { +public: + DescribeFirewallRulesRequest(); + ~DescribeFirewallRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleNameList() const; + void setRuleNameList(const std::string &ruleNameList); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleNameList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEFIREWALLRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesResult.h new file mode 100644 index 000000000..19f5f67f9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeFirewallRulesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEFIREWALLRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEFIREWALLRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeFirewallRulesResult : public ServiceResult + { + public: + struct Data + { + std::vector ruleList; + }; + + + DescribeFirewallRulesResult(); + explicit DescribeFirewallRulesResult(const std::string &payload); + ~DescribeFirewallRulesResult(); + std::string getMessage()const; + std::string getDBClusterId()const; + Data getData()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dBClusterId_; + Data data_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEFIREWALLRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListRequest.h new file mode 100644 index 000000000..5a92d1791 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListRequest.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_DESCRIBEGLOBALDATANETWORKLISTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEGLOBALDATANETWORKLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeGlobalDataNetworkListRequest : public RpcServiceRequest { +public: + DescribeGlobalDataNetworkListRequest(); + ~DescribeGlobalDataNetworkListRequest(); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + long getPageSize() const; + void setPageSize(long pageSize); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long pageNumber_; + std::string nextToken_; + long pageSize_; + int maxResults_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEGLOBALDATANETWORKLISTREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListResult.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListResult.h new file mode 100644 index 000000000..fdfe686ea --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDataNetworkListResult.h @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEGLOBALDATANETWORKLISTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEGLOBALDATANETWORKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeGlobalDataNetworkListResult : public ServiceResult + { + public: + struct Items + { + struct Network + { + struct NetworkTopology + { + struct Source + { + std::string sourceType; + std::string sourceId; + std::string sourceRegion; + std::string sourceFileSystemPath; + }; + struct Destination + { + std::string destinationFileSystemPath; + std::string destinationRegion; + std::string destinationType; + std::string destinationId; + }; + std::vector destinations; + std::vector sources; + }; + struct Channel + { + std::string progress; + std::string channelStatus; + std::string channelId; + bool freezeSourceDuringSync; + }; + std::string networkStatus; + NetworkTopology networkTopology; + std::string createTime; + std::string networkId; + std::vector channels; + std::string networkDescription; + }; + std::vector networks; + }; + + + DescribeGlobalDataNetworkListResult(); + explicit DescribeGlobalDataNetworkListResult(const std::string &payload); + ~DescribeGlobalDataNetworkListResult(); + std::string getTotalRecordCount()const; + std::string getPageRecordCount()const; + std::string getNextToken()const; + std::string getPageNumber()const; + int getMaxResults()const; + Items getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalRecordCount_; + std::string pageRecordCount_; + std::string nextToken_; + std::string pageNumber_; + int maxResults_; + Items items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEGLOBALDATANETWORKLISTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h index 6122b0f71..ce466fa14 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworkResult.h @@ -32,6 +32,10 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeGlobalDatabaseNetworkResult : public ServiceResult { public: + struct Labels + { + std::string gDNVersion; + }; struct Connection { std::string port; @@ -82,6 +86,7 @@ namespace AlibabaCloud std::string getResourceGroupId()const; std::string getCreateTime()const; std::string getDBClusterId()const; + Labels getLabels()const; std::string getDBType()const; std::string getGDNDescription()const; std::vector getDBClusters()const; @@ -97,6 +102,7 @@ namespace AlibabaCloud std::string resourceGroupId_; std::string createTime_; std::string dBClusterId_; + Labels labels_; std::string dBType_; std::string gDNDescription_; std::vector dBClusters_; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h index f5e35ee83..199152e01 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeGlobalDatabaseNetworksResult.h @@ -34,6 +34,10 @@ namespace AlibabaCloud public: struct GlobalDatabaseNetwork { + struct Labels + { + std::string gDNVersion; + }; struct DBCluster { std::string role; @@ -53,6 +57,7 @@ namespace AlibabaCloud std::string gDNId; std::string zoneId; std::string createTime; + Labels labels; std::string dBType; std::string gDNDescription; std::vector dBClusters; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHALogsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeHALogsRequest.h new file mode 100644 index 000000000..c9525bdd6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHALogsRequest.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_DESCRIBEHALOGSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHALOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeHALogsRequest : public RpcServiceRequest { +public: + DescribeHALogsRequest(); + ~DescribeHALogsRequest(); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getSimulateListId() const; + void setSimulateListId(const std::string &simulateListId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLogType() const; + void setLogType(const std::string &logType); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSwitchId() const; + void setSwitchId(const std::string &switchId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getDescribeSimulateSwitchMode() const; + void setDescribeSimulateSwitchMode(const std::string &describeSimulateSwitchMode); + std::string getSimulateStatusList() const; + void setSimulateStatusList(const std::string &simulateStatusList); + std::string getSimulateModeList() const; + void setSimulateModeList(const std::string &simulateModeList); + +private: + std::string dBNodeId_; + std::string simulateListId_; + std::string startTime_; + int pageNumber_; + std::string logType_; + int pageSize_; + std::string switchId_; + std::string dBClusterId_; + std::string endTime_; + std::string describeSimulateSwitchMode_; + std::string simulateStatusList_; + std::string simulateModeList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHALOGSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHALogsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeHALogsResult.h new file mode 100644 index 000000000..b4f74e1cc --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHALogsResult.h @@ -0,0 +1,157 @@ +/* + * 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_DESCRIBEHALOGSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHALOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeHALogsResult : public ServiceResult + { + public: + struct HaSwitchLogItem + { + std::string switchCauseDetail; + long switchType; + std::string switchCauseCode; + long totalSessions; + std::string switchFinishTime; + std::string fromDBType; + long affectedSessions; + std::string switchId; + std::string switchStartTime; + }; + struct SwitchListItem + { + struct SwitchLogItem + { + struct SwitchDetailItem + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string stepName; + std::string simulatePhase; + std::string timeCost; + }; + std::vector switchStepItems2; + std::string eventFinishTime; + std::string simulateLogId; + std::string dstDbType; + std::string eventStartTime; + std::string dstIpPort; + std::string dBInstanceId; + std::string simulateListId; + std::string srcDbType; + std::string srcIpPort; + std::string simulateStatus; + }; + struct SwitchStepItem + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string simulatePhase; + std::string stepName; + std::string timeCost; + std::string dBNodeId; + }; + std::string eventFinishTime; + std::string eventStartTime; + std::string endTime; + std::string plannedEscapeTime; + std::vector switchStepItems; + std::string startTime; + std::string faultInjectionType; + std::string simulateMode; + std::string preferredSimulateStartTime; + std::vector switchLogItems1; + std::string simulateListId; + std::vector dBNodeCrashList; + std::string plannedEscapeMode; + std::string simulateTaskId; + std::string simulateStatus; + }; + struct SwitchLogItem3 + { + struct SwitchStepItem5 + { + std::string isSuccess; + std::string endTime; + std::string startTime; + std::string stepName; + std::string timeCost; + std::string simulatePhase; + std::string dBNodeId; + std::string stepMsg; + }; + std::string eventFinishTime; + std::string dstDbType; + std::string eventStartTime; + std::string dstIpPort; + std::string dBInstanceId; + std::vector switchStepItems4; + std::string simulateListId; + std::string srcDbType; + std::string simulatecode; + std::string srcIpPort; + std::string simulateStatus; + }; + + + DescribeHALogsResult(); + explicit DescribeHALogsResult(const std::string &payload); + ~DescribeHALogsResult(); + int getItemsNumbers()const; + std::vector getHaLogItems()const; + int getPageSize()const; + int getPageNumber()const; + int getHaStatus()const; + int getTotalRecords()const; + std::string getDBInstanceType()const; + std::vector getSwitchListItems()const; + std::vector getSwitchLogItems()const; + std::string getDBInstanceName()const; + + protected: + void parse(const std::string &payload); + private: + int itemsNumbers_; + std::vector haLogItems_; + int pageSize_; + int pageNumber_; + int haStatus_; + int totalRecords_; + std::string dBInstanceType_; + std::vector switchListItems_; + std::vector switchLogItems_; + std::string dBInstanceName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHALOGSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksRequest.h new file mode 100644 index 000000000..8f25dd858 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeHistoryTasksRequest : public RpcServiceRequest { +public: + DescribeHistoryTasksRequest(); + ~DescribeHistoryTasksRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getToStartTime() const; + void setToStartTime(const std::string &toStartTime); + 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 getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + int getToExecTime() const; + void setToExecTime(int toExecTime); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + long getResourceOwnerAccount() const; + void setResourceOwnerAccount(long resourceOwnerAccount); + std::string getFromStartTime() const; + void setFromStartTime(const std::string &fromStartTime); + int getFromExecTime() const; + void setFromExecTime(int fromExecTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string toStartTime_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string instanceType_; + std::string taskId_; + int toExecTime_; + std::string taskType_; + long resourceOwnerAccount_; + std::string fromStartTime_; + int fromExecTime_; + long ownerId_; + std::string instanceId_; + std::string status_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksResult.h b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksResult.h new file mode 100644 index 000000000..915a34890 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeHistoryTasksResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string status; + float progress; + std::string taskId; + std::string endTime; + std::string instanceId; + std::string startTime; + std::string product; + std::string actionInfo; + std::string reasonCode; + std::string dbType; + std::string taskDetail; + std::string callerUid; + std::string instanceName; + std::string uid; + std::string callerSource; + std::string currentStepName; + std::string taskType; + std::string regionId; + int remainTime; + std::string instanceType; + }; + + + DescribeHistoryTasksResult(); + explicit DescribeHistoryTasksResult(const std::string &payload); + ~DescribeHistoryTasksResult(); + std::string getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + int pageSize_; + int pageNumber_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatRequest.h new file mode 100644 index 000000000..663fc2d87 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSSTATREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSSTATREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeHistoryTasksStatRequest : public RpcServiceRequest { +public: + DescribeHistoryTasksStatRequest(); + ~DescribeHistoryTasksStatRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getToStartTime() const; + void setToStartTime(const std::string &toStartTime); + 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 getTaskId() const; + void setTaskId(const std::string &taskId); + int getToExecTime() const; + void setToExecTime(int toExecTime); + std::string getTaskType() const; + void setTaskType(const std::string &taskType); + long getResourceOwnerAccount() const; + void setResourceOwnerAccount(long resourceOwnerAccount); + std::string getFromStartTime() const; + void setFromStartTime(const std::string &fromStartTime); + int getFromExecTime() const; + void setFromExecTime(int fromExecTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string toStartTime_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string taskId_; + int toExecTime_; + std::string taskType_; + long resourceOwnerAccount_; + std::string fromStartTime_; + int fromExecTime_; + long ownerId_; + std::string instanceId_; + std::string status_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSSTATREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatResult.h b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatResult.h new file mode 100644 index 000000000..433719eb6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeHistoryTasksStatResult.h @@ -0,0 +1,56 @@ +/* + * 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_DESCRIBEHISTORYTASKSSTATRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSSTATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeHistoryTasksStatResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string status; + int totalCount; + }; + + + DescribeHistoryTasksStatResult(); + explicit DescribeHistoryTasksStatResult(const std::string &payload); + ~DescribeHistoryTasksStatResult(); + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEHISTORYTASKSSTATRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeRequest.h new file mode 100644 index 000000000..9d4041167 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeRequest.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_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeLocalAvailableRecoveryTimeRequest : public RpcServiceRequest { +public: + DescribeLocalAvailableRecoveryTimeRequest(); + ~DescribeLocalAvailableRecoveryTimeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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; + void setDBClusterId(const std::string &dBClusterId); + 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 securityToken_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h b/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h new file mode 100644 index 000000000..de43f5644 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeLocalAvailableRecoveryTimeResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeLocalAvailableRecoveryTimeResult : public ServiceResult + { + public: + + + DescribeLocalAvailableRecoveryTimeResult(); + explicit DescribeLocalAvailableRecoveryTimeResult(const std::string &payload); + ~DescribeLocalAvailableRecoveryTimeResult(); + std::string getRecoveryEndTime()const; + std::string getRecoveryBeginTime()const; + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string recoveryEndTime_; + std::string recoveryBeginTime_; + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBELOCALAVAILABLERECOVERYTIMERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h b/polardb/include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h index 3b841229a..38438af8d 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeLogBackupPolicyResult.h @@ -32,6 +32,17 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeLogBackupPolicyResult : public ServiceResult { public: + struct AdvancedLogPolicy + { + std::string logRetentionType; + std::string destType; + std::string srcRegion; + int enableLogBackup; + std::string srcType; + std::string policyId; + std::string logRetentionValue; + std::string destRegion; + }; DescribeLogBackupPolicyResult(); @@ -41,6 +52,7 @@ namespace AlibabaCloud int getLogBackupRetentionPeriod()const; std::string getLogBackupAnotherRegionRetentionPeriod()const; int getEnableBackupLog()const; + std::vector getAdvancedLogPolicies()const; protected: void parse(const std::string &payload); @@ -49,6 +61,7 @@ namespace AlibabaCloud int logBackupRetentionPeriod_; std::string logBackupAnotherRegionRetentionPeriod_; int enableBackupLog_; + std::vector advancedLogPolicies_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h index f528cbcaa..313188cdf 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeMaskingRulesRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_POLARDB_EXPORT DescribeMaskingRulesRequest : public RpcServic public: DescribeMaskingRulesRequest(); ~DescribeMaskingRulesRequest(); + std::string getInterfaceVersion() const; + void setInterfaceVersion(const std::string &interfaceVersion); std::string getDBClusterId() const; void setDBClusterId(const std::string &dBClusterId); std::string getRuleNameList() const; void setRuleNameList(const std::string &ruleNameList); private: + std::string interfaceVersion_; std::string dBClusterId_; std::string ruleNameList_; }; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogRequest.h new file mode 100644 index 000000000..15a5a418f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogRequest.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_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeModifyParameterLogRequest : public RpcServiceRequest { +public: + DescribeModifyParameterLogRequest(); + ~DescribeModifyParameterLogRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string startTime_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMODIFYPARAMETERLOGREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogResult.h b/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogResult.h new file mode 100644 index 000000000..081c64706 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeModifyParameterLogResult.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_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeModifyParameterLogResult : public ServiceResult + { + public: + struct ParameterChangeLog + { + std::string status; + std::string newParameterValue; + std::string modifyTime; + std::string oldParameterValue; + std::string parameterName; + }; + + + DescribeModifyParameterLogResult(); + explicit DescribeModifyParameterLogResult(const std::string &payload); + ~DescribeModifyParameterLogResult(); + std::string getEngineVersion()const; + std::vector getItems()const; + std::string getEngine()const; + + protected: + void parse(const std::string &payload); + private: + std::string engineVersion_; + std::vector items_; + std::string engine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEMODIFYPARAMETERLOGRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelRequest.h new file mode 100644 index 000000000..6586409e4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelRequest.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_DESCRIBENETWORKCHANNELREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBENETWORKCHANNELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeNetworkChannelRequest : public RpcServiceRequest { +public: + DescribeNetworkChannelRequest(); + ~DescribeNetworkChannelRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getChannelName() const; + void setChannelName(const std::string &channelName); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string channelName_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBENETWORKCHANNELREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelResult.h b/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelResult.h new file mode 100644 index 000000000..8188f49f5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeNetworkChannelResult.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_DESCRIBENETWORKCHANNELRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBENETWORKCHANNELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeNetworkChannelResult : public ServiceResult + { + public: + struct ChannelInfosItem + { + std::string channelName; + std::string targetPort; + std::string vpcId; + std::string targetDBClusterId; + std::string dBClusterId; + std::string targetType; + std::string targetIp; + std::string regionId; + std::string notes; + }; + + + DescribeNetworkChannelResult(); + explicit DescribeNetworkChannelResult(const std::string &payload); + ~DescribeNetworkChannelResult(); + std::vector getChannelInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector channelInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBENETWORKCHANNELRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h index 68705558f..9f0493467 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeParameterGroupRequest.h @@ -46,6 +46,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_; @@ -56,6 +58,7 @@ private: std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string dBType_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsRequest.h new file mode 100644 index 000000000..4136bca31 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeRdsVSwitchsRequest : public RpcServiceRequest { +public: + DescribeRdsVSwitchsRequest(); + ~DescribeRdsVSwitchsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVSWITCHSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsResult.h new file mode 100644 index 000000000..88701b85d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeRdsVSwitchsResult.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_DESCRIBERDSVSWITCHSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeRdsVSwitchsResult : public ServiceResult + { + public: + struct VSwitches + { + struct VSwitchItem + { + std::string status; + bool isDefault; + std::string regionNo; + std::string izNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + std::string bid; + std::string aliUid; + }; + std::vector vSwitch; + }; + + + DescribeRdsVSwitchsResult(); + explicit DescribeRdsVSwitchsResult(const std::string &payload); + ~DescribeRdsVSwitchsResult(); + VSwitches getVSwitches()const; + + protected: + void parse(const std::string &payload); + private: + VSwitches vSwitches_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVSWITCHSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsRequest.h new file mode 100644 index 000000000..2cc82345a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeRdsVpcsRequest : public RpcServiceRequest { +public: + DescribeRdsVpcsRequest(); + ~DescribeRdsVpcsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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 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 getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsResult.h new file mode 100644 index 000000000..3526da920 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeRdsVpcsResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeRdsVpcsResult : public ServiceResult + { + public: + struct Vpcs + { + struct VpcItem + { + struct VSwitch + { + std::string status; + bool isDefault; + std::string izNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + }; + std::string status; + bool isDefault; + std::vector vSwitchs; + std::string regionNo; + std::string gmtCreate; + std::string vpcId; + std::string gmtModified; + std::string cidrBlock; + std::string vpcName; + std::string bid; + std::string aliUid; + }; + std::vector vpc; + }; + + + DescribeRdsVpcsResult(); + explicit DescribeRdsVpcsResult(const std::string &payload); + ~DescribeRdsVpcsResult(); + Vpcs getVpcs()const; + + protected: + void parse(const std::string &payload); + private: + Vpcs vpcs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERDSVPCSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesRequest.h new file mode 100644 index 000000000..0b1a068e6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesRequest.h @@ -0,0 +1,39 @@ +/* + * 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_DESCRIBERESOURCEPACKAGESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERESOURCEPACKAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeResourcePackagesRequest : public RpcServiceRequest { +public: + DescribeResourcePackagesRequest(); + ~DescribeResourcePackagesRequest(); + +private: +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERESOURCEPACKAGESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesResult.h new file mode 100644 index 000000000..c1d1b5386 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeResourcePackagesResult.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_DESCRIBERESOURCEPACKAGESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBERESOURCEPACKAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeResourcePackagesResult : public ServiceResult + { + public: + struct ResourcePackageListItem + { + struct ResourcePackageQuotaListItem + { + long allocatedCapacity; + std::string projectId; + long usedCapacity; + }; + struct Tag + { + std::string value; + std::string key; + }; + std::string status; + std::string resourcePackageType; + std::vector resourcePackageQuotaList; + std::string resourcePackageId; + long createTime; + long totalCapacity; + long usedCapacity; + bool autoQuota; + long expireTime; + std::vector tags; + }; + + + DescribeResourcePackagesResult(); + explicit DescribeResourcePackagesResult(const std::string &payload); + ~DescribeResourcePackagesResult(); + std::vector getResourcePackageList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourcePackageList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBERESOURCEPACKAGESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesRequest.h new file mode 100644 index 000000000..25914c12e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLRateLimitingRulesRequest : public RpcServiceRequest { +public: + DescribeSQLRateLimitingRulesRequest(); + ~DescribeSQLRateLimitingRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleNameList() const; + void setRuleNameList(const std::string &ruleNameList); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleNameList_; + int maxResults_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesResult.h new file mode 100644 index 000000000..ad0c192a1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeSQLRateLimitingRulesResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLRateLimitingRulesResult : public ServiceResult + { + public: + struct Data + { + std::vector ruleList; + }; + + + DescribeSQLRateLimitingRulesResult(); + explicit DescribeSQLRateLimitingRulesResult(const std::string &payload); + ~DescribeSQLRateLimitingRulesResult(); + std::string getMessage()const; + std::string getNextToken()const; + int getMaxResults()const; + Data getData()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string nextToken_; + int maxResults_; + Data data_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLRATELIMITINGRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportRequest.h new file mode 100644 index 000000000..0dde0a2e8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeUpgradeReportRequest : public RpcServiceRequest { +public: + DescribeUpgradeReportRequest(); + ~DescribeUpgradeReportRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getType() const; + void setType(const std::string &type); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCreationCategory() const; + void setCreationCategory(const std::string &creationCategory); + std::string getSourceDBClusterId() const; + void setSourceDBClusterId(const std::string &sourceDBClusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + 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 getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBVersion() const; + void setDBVersion(const std::string &dBVersion); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + long resourceOwnerId_; + std::string type_; + int pageNumber_; + std::string accessKeyId_; + std::string creationCategory_; + std::string sourceDBClusterId_; + std::string regionId_; + int pageSize_; + std::string taskId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBType_; + std::string dBVersion_; + std::string status_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportResult.h b/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportResult.h new file mode 100644 index 000000000..a444fabcf --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeUpgradeReportResult.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeUpgradeReportResult : public ServiceResult + { + public: + struct Report + { + std::string checkTime; + std::string taskId; + std::string endTime; + std::string effectiveTime; + std::string dstVersion; + std::string srcInsName; + std::string startTime; + std::string upgradeMode; + std::string srcVersion; + std::string result; + }; + struct SQLReport + { + std::string status; + std::string type; + std::string schema; + std::string dDL; + std::string name; + }; + + + DescribeUpgradeReportResult(); + explicit DescribeUpgradeReportResult(const std::string &payload); + ~DescribeUpgradeReportResult(); + std::string getSourceDBClusterId()const; + std::string getType()const; + std::string getDetails()const; + std::string getSrcDeleted()const; + std::string getDstDBType()const; + std::vector getUpgradeReportList()const; + std::vector getItems()const; + long getTotalSize()const; + long getItemsSize()const; + std::string getSrcDBType()const; + + protected: + void parse(const std::string &payload); + private: + std::string sourceDBClusterId_; + std::string type_; + std::string details_; + std::string srcDeleted_; + std::string dstDBType_; + std::vector upgradeReportList_; + std::vector items_; + long totalSize_; + long itemsSize_; + std::string srcDBType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEUPGRADEREPORTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListRequest.h new file mode 100644 index 000000000..57a1fc44f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListRequest.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_DESCRIBEVSWITCHLISTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeVSwitchListRequest : public RpcServiceRequest { +public: + DescribeVSwitchListRequest(); + ~DescribeVSwitchListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getVSwitchIds() const; + void setVSwitchIds(const std::vector &vSwitchIds); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + std::vector vSwitchIds_; + int pageNumber_; + std::string accessKeyId_; + std::string securityToken_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHLISTREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListResult.h b/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListResult.h new file mode 100644 index 000000000..b079e4707 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeVSwitchListResult.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_DESCRIBEVSWITCHLISTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeVSwitchListResult : public ServiceResult + { + public: + struct VSwitch + { + bool isDefault; + std::string status; + std::string regionNo; + std::string description; + std::string resourceGroupId; + std::string vSwitchId; + long availableIpAddressCount; + std::string cidrBlock; + std::string izNo; + std::string vpcId; + std::string ownerId; + std::string vSwitchName; + std::string shareType; + }; + + + DescribeVSwitchListResult(); + explicit DescribeVSwitchListResult(const std::string &payload); + ~DescribeVSwitchListResult(); + std::vector getVSwitchs()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector vSwitchs_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHLISTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeVpcsRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeVpcsRequest.h new file mode 100644 index 000000000..8a187f9cf --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeVpcsRequest.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_DESCRIBEVPCSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVPCSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeVpcsRequest : public RpcServiceRequest { +public: + DescribeVpcsRequest(); + ~DescribeVpcsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getProduct() const; + void setProduct(const std::string &product); + 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 getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + +private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + int pageSize_; + std::string product_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string vpcId_; + std::string zoneId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVPCSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeVpcsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeVpcsResult.h new file mode 100644 index 000000000..5447def40 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeVpcsResult.h @@ -0,0 +1,82 @@ +/* + * 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_DESCRIBEVPCSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVPCSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeVpcsResult : public ServiceResult + { + public: + struct Vpc + { + struct VSwitch + { + bool isDefault; + std::string status; + std::string izNo; + std::string gmtCreate; + std::string vSwitchId; + std::string gmtModified; + std::string cidrBlock; + std::string vSwitchName; + }; + bool isDefault; + std::string status; + std::vector vSwitchs; + std::string regionNo; + std::string gmtCreate; + std::string vpcId; + std::string gmtModified; + std::string cidrBlock; + std::string vpcName; + std::string bid; + std::string aliUid; + }; + + + DescribeVpcsResult(); + explicit DescribeVpcsResult(const std::string &payload); + ~DescribeVpcsResult(); + std::vector getVpcs()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector vpcs_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVPCSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeZonesRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeZonesRequest.h new file mode 100644 index 000000000..b078d100d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeZonesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getEngine() const; + void setEngine(const std::string &engine); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getExtra() const; + void setExtra(const std::string &extra); + +private: + std::string productCode_; + long resourceOwnerId_; + std::string engine_; + std::string regionId_; + std::string extra_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DescribeZonesResult.h b/polardb/include/alibabacloud/polardb/model/DescribeZonesResult.h new file mode 100644 index 000000000..e49a7bf72 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeZonesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct ZonesItem + { + std::string status; + std::string modeCode; + std::string zoneId; + std::string priority; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaRequest.h b/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaRequest.h new file mode 100644 index 000000000..a1ca68ddd --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaRequest.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_DISABLEDBCLUSTERORCAREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DISABLEDBCLUSTERORCAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT DisableDBClusterOrcaRequest : public RpcServiceRequest { +public: + DisableDBClusterOrcaRequest(); + ~DisableDBClusterOrcaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCleanData() const; + void setCleanData(const std::string &cleanData); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string cleanData_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_DISABLEDBCLUSTERORCAREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaResult.h b/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaResult.h new file mode 100644 index 000000000..1f924d3f0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DisableDBClusterOrcaResult.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_DISABLEDBCLUSTERORCARESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DISABLEDBCLUSTERORCARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DisableDBClusterOrcaResult : public ServiceResult + { + public: + + + DisableDBClusterOrcaResult(); + explicit DisableDBClusterOrcaResult(const std::string &payload); + ~DisableDBClusterOrcaResult(); + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DISABLEDBCLUSTERORCARESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaRequest.h b/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaRequest.h new file mode 100644 index 000000000..f5b183e7f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaRequest.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_ENABLEDBCLUSTERORCAREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ENABLEDBCLUSTERORCAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT EnableDBClusterOrcaRequest : public RpcServiceRequest { +public: + EnableDBClusterOrcaRequest(); + ~EnableDBClusterOrcaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ENABLEDBCLUSTERORCAREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaResult.h b/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaResult.h new file mode 100644 index 000000000..157cf40a0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/EnableDBClusterOrcaResult.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_ENABLEDBCLUSTERORCARESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ENABLEDBCLUSTERORCARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT EnableDBClusterOrcaResult : public ServiceResult + { + public: + + + EnableDBClusterOrcaResult(); + explicit EnableDBClusterOrcaResult(const std::string &payload); + ~EnableDBClusterOrcaResult(); + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ENABLEDBCLUSTERORCARESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesRequest.h new file mode 100644 index 000000000..0284ee7c6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesRequest.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_ENABLESQLRATELIMITINGRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ENABLESQLRATELIMITINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT EnableSQLRateLimitingRulesRequest : public RpcServiceRequest { +public: + EnableSQLRateLimitingRulesRequest(); + ~EnableSQLRateLimitingRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getEnable() const; + void setEnable(bool enable); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleNameList() const; + void setRuleNameList(const std::string &ruleNameList); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + bool enable_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleNameList_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_ENABLESQLRATELIMITINGRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesResult.h b/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesResult.h new file mode 100644 index 000000000..7946f60e1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/EnableSQLRateLimitingRulesResult.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_ENABLESQLRATELIMITINGRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_ENABLESQLRATELIMITINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT EnableSQLRateLimitingRulesResult : public ServiceResult + { + public: + + + EnableSQLRateLimitingRulesResult(); + explicit EnableSQLRateLimitingRulesResult(const std::string &payload); + ~EnableSQLRateLimitingRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_ENABLESQLRATELIMITINGRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIRequest.h b/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIRequest.h new file mode 100644 index 000000000..daaf24e84 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIRequest.h @@ -0,0 +1,42 @@ +/* + * 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_EXECUTECROSSCLOUDOPENAPIREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_EXECUTECROSSCLOUDOPENAPIREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ExecuteCrossCloudOpenAPIRequest : public RpcServiceRequest { +public: + ExecuteCrossCloudOpenAPIRequest(); + ~ExecuteCrossCloudOpenAPIRequest(); + std::string getProxyInfo() const; + void setProxyInfo(const std::string &proxyInfo); + +private: + std::string proxyInfo_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_EXECUTECROSSCLOUDOPENAPIREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIResult.h b/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIResult.h new file mode 100644 index 000000000..65d20a6e1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ExecuteCrossCloudOpenAPIResult.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_EXECUTECROSSCLOUDOPENAPIRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_EXECUTECROSSCLOUDOPENAPIRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ExecuteCrossCloudOpenAPIResult : public ServiceResult + { + public: + + + ExecuteCrossCloudOpenAPIResult(); + explicit ExecuteCrossCloudOpenAPIResult(const std::string &payload); + ~ExecuteCrossCloudOpenAPIResult(); + std::string getProxyData()const; + + protected: + void parse(const std::string &payload); + private: + std::string proxyData_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_EXECUTECROSSCLOUDOPENAPIRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalRequest.h b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalRequest.h new file mode 100644 index 000000000..6cee41601 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalRequest.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_FAILOVERDBCLUSTERZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_FAILOVERDBCLUSTERZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT FailoverDBClusterZonalRequest : public RpcServiceRequest { +public: + FailoverDBClusterZonalRequest(); + ~FailoverDBClusterZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getRollBackForDisaster() const; + void setRollBackForDisaster(bool rollBackForDisaster); + 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 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_; + std::string clientToken_; + std::string accessKeyId_; + bool rollBackForDisaster_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string targetZoneType_; + long ownerId_; + std::string targetDBNodeId_; + bool isForce_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_FAILOVERDBCLUSTERZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalResult.h b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalResult.h new file mode 100644 index 000000000..f92241212 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/FailoverDBClusterZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_FAILOVERDBCLUSTERZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_FAILOVERDBCLUSTERZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT FailoverDBClusterZonalResult : public ServiceResult + { + public: + + + FailoverDBClusterZonalResult(); + explicit FailoverDBClusterZonalResult(const std::string &payload); + ~FailoverDBClusterZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_FAILOVERDBCLUSTERZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneRequest.h b/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneRequest.h new file mode 100644 index 000000000..87e45ffa5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneRequest.h @@ -0,0 +1,78 @@ +/* + * 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_GENERATEUPGRADEREPORTFORSYNCCLONEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GENERATEUPGRADEREPORTFORSYNCCLONEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT GenerateUpgradeReportForSyncCloneRequest : public RpcServiceRequest { +public: + GenerateUpgradeReportForSyncCloneRequest(); + ~GenerateUpgradeReportForSyncCloneRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCreationCategory() const; + void setCreationCategory(const std::string &creationCategory); + std::string getSourceDBClusterId() const; + void setSourceDBClusterId(const std::string &sourceDBClusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getReserve() const; + void setReserve(const std::string &reserve); + std::string getCreationOption() const; + void setCreationOption(const std::string &creationOption); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + std::string getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBVersion() const; + void setDBVersion(const std::string &dBVersion); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string creationCategory_; + std::string sourceDBClusterId_; + std::string regionId_; + std::string reserve_; + std::string creationOption_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; + std::string dBType_; + std::string dBVersion_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_GENERATEUPGRADEREPORTFORSYNCCLONEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneResult.h b/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneResult.h new file mode 100644 index 000000000..1438c43c5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/GenerateUpgradeReportForSyncCloneResult.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_GENERATEUPGRADEREPORTFORSYNCCLONERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GENERATEUPGRADEREPORTFORSYNCCLONERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT GenerateUpgradeReportForSyncCloneResult : public ServiceResult + { + public: + + + GenerateUpgradeReportForSyncCloneResult(); + explicit GenerateUpgradeReportForSyncCloneResult(const std::string &payload); + ~GenerateUpgradeReportForSyncCloneResult(); + std::string getSourceDBClusterId()const; + long getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string sourceDBClusterId_; + long taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_GENERATEUPGRADEREPORTFORSYNCCLONERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalRequest.h b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalRequest.h new file mode 100644 index 000000000..47dc79572 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalRequest.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_GRANTACCOUNTPRIVILEGEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeZonalRequest : public RpcServiceRequest { +public: + GrantAccountPrivilegeZonalRequest(); + ~GrantAccountPrivilegeZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountPrivilege() const; + void setAccountPrivilege(const std::string &accountPrivilege); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string accountPrivilege_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalResult.h b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalResult.h new file mode 100644 index 000000000..69fd2da8a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/GrantAccountPrivilegeZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT GrantAccountPrivilegeZonalResult : public ServiceResult + { + public: + + + GrantAccountPrivilegeZonalResult(); + explicit GrantAccountPrivilegeZonalResult(const std::string &payload); + ~GrantAccountPrivilegeZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_GRANTACCOUNTPRIVILEGEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ListOrdersRequest.h b/polardb/include/alibabacloud/polardb/model/ListOrdersRequest.h new file mode 100644 index 000000000..97f8b2b7e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ListOrdersRequest.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_LISTORDERSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTORDERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ListOrdersRequest : public RpcServiceRequest { +public: + ListOrdersRequest(); + ~ListOrdersRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getOrderStatus() const; + void setOrderStatus(const std::string &orderStatus); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + std::string productCode_; + std::string orderStatus_; + int pageNumber_; + std::string resourceGroupId_; + std::string regionId_; + std::string nextToken_; + int pageSize_; + std::string instanceId_; + int maxResults_; + std::string category_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTORDERSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ListOrdersResult.h b/polardb/include/alibabacloud/polardb/model/ListOrdersResult.h new file mode 100644 index 000000000..673370ca5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ListOrdersResult.h @@ -0,0 +1,74 @@ +/* + * 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_LISTORDERSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTORDERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ListOrdersResult : public ServiceResult + { + public: + struct Order + { + std::string orderStatus; + std::string createdTime; + std::string orderType; + std::string instanceId; + std::string chargeType; + std::string commodityCode; + std::string region; + std::string produceCode; + std::string orderId; + std::string aliUid; + }; + + + ListOrdersResult(); + explicit ListOrdersResult(const std::string &payload); + ~ListOrdersResult(); + int getTotalCount()const; + std::string getNextToken()const; + int getPageSize()const; + int getPageNumber()const; + int getMaxResults()const; + std::vector getOrderList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + int pageSize_; + int pageNumber_; + int maxResults_; + std::vector orderList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTORDERSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionRequest.h b/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionRequest.h new file mode 100644 index 000000000..ef872e2da --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionRequest.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_LISTTAGRESOURCESFORREGIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesForRegionRequest : public RpcServiceRequest { +public: + ListTagResourcesForRegionRequest(); + ~ListTagResourcesForRegionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + 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 getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionResult.h b/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionResult.h new file mode 100644 index 000000000..93fbc55e1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ListTagResourcesForRegionResult.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_LISTTAGRESOURCESFORREGIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ListTagResourcesForRegionResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesForRegionResult(); + explicit ListTagResourcesForRegionResult(const std::string &payload); + ~ListTagResourcesForRegionResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionRequest.h new file mode 100644 index 000000000..455117a12 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionRequest.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_MODIFYAIDBCLUSTERDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAIDBCLUSTERDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyAIDBClusterDescriptionRequest : public RpcServiceRequest { +public: + ModifyAIDBClusterDescriptionRequest(); + ~ModifyAIDBClusterDescriptionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAIDBCLUSTERDESCRIPTIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionResult.h new file mode 100644 index 000000000..abd307dd2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAIDBClusterDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAIDBCLUSTERDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAIDBCLUSTERDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAIDBClusterDescriptionResult : public ServiceResult + { + public: + + + ModifyAIDBClusterDescriptionResult(); + explicit ModifyAIDBClusterDescriptionResult(const std::string &payload); + ~ModifyAIDBClusterDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAIDBCLUSTERDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalRequest.h new file mode 100644 index 000000000..02c10ea6c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionZonalRequest : public RpcServiceRequest { +public: + ModifyAccountDescriptionZonalRequest(); + ~ModifyAccountDescriptionZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccountDescription() const; + void setAccountDescription(const std::string &accountDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accountDescription_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalResult.h new file mode 100644 index 000000000..e7da8ca9d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountDescriptionZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountDescriptionZonalResult : public ServiceResult + { + public: + + + ModifyAccountDescriptionZonalResult(); + explicit ModifyAccountDescriptionZonalResult(const std::string &payload); + ~ModifyAccountDescriptionZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTDESCRIPTIONZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateRequest.h new file mode 100644 index 000000000..d5402c5d4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountLockStateRequest : public RpcServiceRequest { +public: + ModifyAccountLockStateRequest(); + ~ModifyAccountLockStateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getAccountLockState() const; + void setAccountLockState(const std::string &accountLockState); + 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 getAccountPasswordValidTime() const; + void setAccountPasswordValidTime(const std::string &accountPasswordValidTime); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string accountLockState_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPasswordValidTime_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateResult.h new file mode 100644 index 000000000..d29e4c59d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountLockStateResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountLockStateResult : public ServiceResult + { + public: + + + ModifyAccountLockStateResult(); + explicit ModifyAccountLockStateResult(const std::string &payload); + ~ModifyAccountLockStateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTLOCKSTATERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalRequest.h new file mode 100644 index 000000000..bea6b8ce0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalRequest.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_MODIFYACCOUNTPASSWORDZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordZonalRequest : public RpcServiceRequest { +public: + ModifyAccountPasswordZonalRequest(); + ~ModifyAccountPasswordZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getPasswordType() const; + void setPasswordType(const std::string &passwordType); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + std::string getNewAccountPassword() const; + void setNewAccountPassword(const std::string &newAccountPassword); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string passwordType_; + std::string accessKeyId_; + std::string accountName_; + std::string newAccountPassword_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalResult.h b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalResult.h new file mode 100644 index 000000000..4a05f187c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyAccountPasswordZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyAccountPasswordZonalResult : public ServiceResult + { + public: + + + ModifyAccountPasswordZonalResult(); + explicit ModifyAccountPasswordZonalResult(const std::string &payload); + ~ModifyAccountPasswordZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACCOUNTPASSWORDZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfRequest.h new file mode 100644 index 000000000..7d91c2df4 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyActiveOperationMaintainConfRequest : public RpcServiceRequest { +public: + ModifyActiveOperationMaintainConfRequest(); + ~ModifyActiveOperationMaintainConfRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCycleTime() const; + void setCycleTime(const std::string &cycleTime); + 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 getMaintainStartTime() const; + void setMaintainStartTime(const std::string &maintainStartTime); + std::string getCycleType() const; + void setCycleType(const std::string &cycleType); + 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 getMaintainEndTime() const; + void setMaintainEndTime(const std::string &maintainEndTime); + std::string getComment() const; + void setComment(const std::string &comment); + long getStatus() const; + void setStatus(long status); + +private: + long resourceOwnerId_; + std::string cycleTime_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string securityToken_; + std::string regionId_; + std::string maintainStartTime_; + std::string cycleType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string maintainEndTime_; + std::string comment_; + long status_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfResult.h b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfResult.h new file mode 100644 index 000000000..dc33f943e --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyActiveOperationMaintainConfResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyActiveOperationMaintainConfResult : public ServiceResult + { + public: + + + ModifyActiveOperationMaintainConfResult(); + explicit ModifyActiveOperationMaintainConfResult(const std::string &payload); + ~ModifyActiveOperationMaintainConfResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYACTIVEOPERATIONMAINTAINCONFRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionRequest.h new file mode 100644 index 000000000..ae249be86 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationDescriptionRequest : public RpcServiceRequest { +public: + ModifyApplicationDescriptionRequest(); + ~ModifyApplicationDescriptionRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::string description_; + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONDESCRIPTIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionResult.h new file mode 100644 index 000000000..7a5feb1bb --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationDescriptionResult.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_MODIFYAPPLICATIONDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationDescriptionResult : public ServiceResult + { + public: + + + ModifyApplicationDescriptionResult(); + explicit ModifyApplicationDescriptionResult(const std::string &payload); + ~ModifyApplicationDescriptionResult(); + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterRequest.h new file mode 100644 index 000000000..d3e49d360 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONPARAMETERREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONPARAMETERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationParameterRequest : public RpcServiceRequest { +public: + struct Parameters { + std::string parameterValue; + std::string parameterName; + }; + ModifyApplicationParameterRequest(); + ~ModifyApplicationParameterRequest(); + std::string getParameterTemplateId() const; + void setParameterTemplateId(const std::string ¶meterTemplateId); + std::string getParameterName() const; + void setParameterName(const std::string ¶meterName); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + std::string getParameterValue() const; + void setParameterValue(const std::string ¶meterValue); + std::vector getParameters() const; + void setParameters(const std::vector ¶meters); + +private: + std::string parameterTemplateId_; + std::string parameterName_; + std::string applicationId_; + std::string parameterValue_; + std::vector parameters_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONPARAMETERREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterResult.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterResult.h new file mode 100644 index 000000000..e2bf2a6c2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationParameterResult.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_MODIFYAPPLICATIONPARAMETERRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONPARAMETERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationParameterResult : public ServiceResult + { + public: + + + ModifyApplicationParameterResult(); + explicit ModifyApplicationParameterResult(const std::string &payload); + ~ModifyApplicationParameterResult(); + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONPARAMETERRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfRequest.h new file mode 100644 index 000000000..94b33a89d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfRequest.h @@ -0,0 +1,50 @@ +/* + * 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_MODIFYAPPLICATIONSERVERLESSCONFREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONSERVERLESSCONFREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationServerlessConfRequest : public RpcServiceRequest { +public: + struct ServerlessConfList { + std::string componentType; + std::string scaleMax; + std::string scaleMin; + }; + ModifyApplicationServerlessConfRequest(); + ~ModifyApplicationServerlessConfRequest(); + std::vector getServerlessConfList() const; + void setServerlessConfList(const std::vector &serverlessConfList); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + +private: + std::vector serverlessConfList_; + std::string applicationId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONSERVERLESSCONFREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfResult.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfResult.h new file mode 100644 index 000000000..968d51fa3 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationServerlessConfResult.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_MODIFYAPPLICATIONSERVERLESSCONFRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONSERVERLESSCONFRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationServerlessConfResult : public ServiceResult + { + public: + + + ModifyApplicationServerlessConfResult(); + explicit ModifyApplicationServerlessConfResult(const std::string &payload); + ~ModifyApplicationServerlessConfResult(); + std::string getApplicationId()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONSERVERLESSCONFRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistRequest.h new file mode 100644 index 000000000..202a064d9 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistRequest.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_MODIFYAPPLICATIONWHITELISTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONWHITELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationWhitelistRequest : public RpcServiceRequest { +public: + ModifyApplicationWhitelistRequest(); + ~ModifyApplicationWhitelistRequest(); + std::string getApplicationId() const; + void setApplicationId(const std::string &applicationId); + std::string getSecurityIPArrayName() const; + void setSecurityIPArrayName(const std::string &securityIPArrayName); + std::string getModifyMode() const; + void setModifyMode(const std::string &modifyMode); + std::string getComponentId() const; + void setComponentId(const std::string &componentId); + std::string getSecurityIPList() const; + void setSecurityIPList(const std::string &securityIPList); + std::string getSecurityGroups() const; + void setSecurityGroups(const std::string &securityGroups); + +private: + std::string applicationId_; + std::string securityIPArrayName_; + std::string modifyMode_; + std::string componentId_; + std::string securityIPList_; + std::string securityGroups_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONWHITELISTREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistResult.h b/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistResult.h new file mode 100644 index 000000000..f19a7a94c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyApplicationWhitelistResult.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_MODIFYAPPLICATIONWHITELISTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyApplicationWhitelistResult : public ServiceResult + { + public: + + + ModifyApplicationWhitelistResult(); + explicit ModifyApplicationWhitelistResult(const std::string &payload); + ~ModifyApplicationWhitelistResult(); + std::string getApplicationId()const; + std::string getComponentId()const; + + protected: + void parse(const std::string &payload); + private: + std::string applicationId_; + std::string componentId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYAPPLICATIONWHITELISTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h index 6244dd877..da714b4c5 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyAutoRenewAttributeRequest.h @@ -36,6 +36,8 @@ public: void setAccessKeyId(const std::string &accessKeyId); std::string getDuration() const; void setDuration(const std::string &duration); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getRegionId() const; @@ -57,6 +59,7 @@ private: long resourceOwnerId_; std::string accessKeyId_; std::string duration_; + std::string cloudProvider_; std::string resourceGroupId_; std::string regionId_; std::string renewalStatus_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h index 2a90a04e4..45646ce2a 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyBackupPolicyRequest.h @@ -28,6 +28,24 @@ namespace Polardb { namespace Model { class ALIBABACLOUD_POLARDB_EXPORT ModifyBackupPolicyRequest : public RpcServiceRequest { public: + struct AdvancedDataPolicies { + std::string actionType; + std::string srcType; + std::string retentionValue; + std::string destRegion; + std::string bakType; + bool onlyPreserveOneEachDay; + std::string filterValue; + std::string dumpAction; + bool onlyPreserveOneEachHour; + std::string srcRegion; + std::string filterType; + std::string retentionType; + std::string filterKey; + bool autoCreated; + std::string policyId; + std::string destType; + }; ModifyBackupPolicyRequest(); ~ModifyBackupPolicyRequest(); long getResourceOwnerId() const; @@ -36,6 +54,8 @@ public: void setDataLevel2BackupRetentionPeriod(const std::string &dataLevel2BackupRetentionPeriod); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::vector getAdvancedDataPolicies() const; + void setAdvancedDataPolicies(const std::vector &advancedDataPolicies); std::string getDataLevel1BackupPeriod() const; void setDataLevel1BackupPeriod(const std::string &dataLevel1BackupPeriod); std::string getDataLevel2BackupPeriod() const; @@ -54,6 +74,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); std::string getDataLevel2BackupAnotherRegionRetentionPeriod() const; void setDataLevel2BackupAnotherRegionRetentionPeriod(const std::string &dataLevel2BackupAnotherRegionRetentionPeriod); + std::string getBackupPolicyLevel() const; + void setBackupPolicyLevel(const std::string &backupPolicyLevel); long getOwnerId() const; void setOwnerId(long ownerId); std::string getPreferredBackupTime() const; @@ -73,6 +95,7 @@ private: long resourceOwnerId_; std::string dataLevel2BackupRetentionPeriod_; std::string accessKeyId_; + std::vector advancedDataPolicies_; std::string dataLevel1BackupPeriod_; std::string dataLevel2BackupPeriod_; std::string preferredBackupPeriod_; @@ -82,6 +105,7 @@ private: std::string dBClusterId_; std::string ownerAccount_; std::string dataLevel2BackupAnotherRegionRetentionPeriod_; + std::string backupPolicyLevel_; long ownerId_; std::string preferredBackupTime_; std::string backupRetentionPeriod_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessRequest.h new file mode 100644 index 000000000..1e1584ff6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessRequest.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyCronJobPolicyServerlessRequest : public RpcServiceRequest { +public: + ModifyCronJobPolicyServerlessRequest(); + ~ModifyCronJobPolicyServerlessRequest(); + std::string getScaleRoNumMax() const; + void setScaleRoNumMax(const std::string &scaleRoNumMax); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCronExpression() const; + void setCronExpression(const std::string &cronExpression); + std::string getServerlessRuleMode() const; + void setServerlessRuleMode(const std::string &serverlessRuleMode); + std::string getScaleApRoNumMax() const; + void setScaleApRoNumMax(const std::string &scaleApRoNumMax); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getScaleMax() const; + void setScaleMax(const std::string &scaleMax); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getServerlessRuleCpuEnlargeThreshold() const; + void setServerlessRuleCpuEnlargeThreshold(const std::string &serverlessRuleCpuEnlargeThreshold); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getSecondsUntilAutoPause() const; + void setSecondsUntilAutoPause(const std::string &secondsUntilAutoPause); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getScaleApRoNumMin() const; + void setScaleApRoNumMin(const std::string &scaleApRoNumMin); + std::string getScaleMin() const; + void setScaleMin(const std::string &scaleMin); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getServerlessRuleCpuShrinkThreshold() const; + void setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getScaleRoNumMin() const; + void setScaleRoNumMin(const std::string &scaleRoNumMin); + std::string getAllowShutDown() const; + void setAllowShutDown(const std::string &allowShutDown); + +private: + std::string scaleRoNumMax_; + long resourceOwnerId_; + std::string cronExpression_; + std::string serverlessRuleMode_; + std::string scaleApRoNumMax_; + std::string startTime_; + std::string scaleMax_; + std::string accessKeyId_; + std::string serverlessRuleCpuEnlargeThreshold_; + std::string jobId_; + std::string secondsUntilAutoPause_; + std::string regionId_; + std::string scaleApRoNumMin_; + std::string scaleMin_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endTime_; + std::string serverlessRuleCpuShrinkThreshold_; + long ownerId_; + std::string scaleRoNumMin_; + std::string allowShutDown_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessResult.h b/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessResult.h new file mode 100644 index 000000000..9783ec1dd --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyCronJobPolicyServerlessResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyCronJobPolicyServerlessResult : public ServiceResult + { + public: + + + ModifyCronJobPolicyServerlessResult(); + explicit ModifyCronJobPolicyServerlessResult(const std::string &payload); + ~ModifyCronJobPolicyServerlessResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYCRONJOBPOLICYSERVERLESSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchRequest.h new file mode 100644 index 000000000..21ad54e05 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchRequest.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_MODIFYDBCLUSTERARCHREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERARCHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterArchRequest : public RpcServiceRequest { +public: + ModifyDBClusterArchRequest(); + ~ModifyDBClusterArchRequest(); + std::string getStandbyAZ() const; + void setStandbyAZ(const std::string &standbyAZ); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getHotStandbyCluster() const; + void setHotStandbyCluster(const std::string &hotStandbyCluster); + +private: + std::string standbyAZ_; + std::string regionId_; + std::string dBClusterId_; + std::string hotStandbyCluster_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERARCHREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchResult.h new file mode 100644 index 000000000..462e747c5 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterArchResult.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_MODIFYDBCLUSTERARCHRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERARCHRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterArchResult : public ServiceResult + { + public: + + + ModifyDBClusterArchResult(); + explicit ModifyDBClusterArchResult(const std::string &payload); + ~ModifyDBClusterArchResult(); + 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_MODIFYDBCLUSTERARCHRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h index 29953beff..f67c3be36 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h @@ -36,6 +36,8 @@ public: void setDBClusterDescription(const std::string &dBClusterDescription); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getSubGroupName() const; + void setSubGroupName(const std::string &subGroupName); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -49,6 +51,7 @@ private: long resourceOwnerId_; std::string dBClusterDescription_; std::string accessKeyId_; + std::string subGroupName_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalRequest.h new file mode 100644 index 000000000..749f8ae94 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionZonalRequest : public RpcServiceRequest { +public: + ModifyDBClusterDescriptionZonalRequest(); + ~ModifyDBClusterDescriptionZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBClusterDescription() const; + void setDBClusterDescription(const std::string &dBClusterDescription); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSubGroupName() const; + void setSubGroupName(const std::string &subGroupName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBClusterDescription_; + std::string clientToken_; + std::string accessKeyId_; + std::string subGroupName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalResult.h new file mode 100644 index 000000000..5f1d25d67 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterDescriptionZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterDescriptionZonalResult : public ServiceResult + { + public: + + + ModifyDBClusterDescriptionZonalResult(); + explicit ModifyDBClusterDescriptionZonalResult(const std::string &payload); + ~ModifyDBClusterDescriptionZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERDESCRIPTIONZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalRequest.h new file mode 100644 index 000000000..7555eae9c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalRequest.h @@ -0,0 +1,87 @@ +/* + * 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_MODIFYDBCLUSTERENDPOINTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointZonalRequest : public RpcServiceRequest { +public: + ModifyDBClusterEndpointZonalRequest(); + ~ModifyDBClusterEndpointZonalRequest(); + std::string getAutoAddNewNodes() const; + void setAutoAddNewNodes(const std::string &autoAddNewNodes); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + 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; + void setDBClusterId(const std::string &dBClusterId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getEndpointConfig() const; + void setEndpointConfig(const std::string &endpointConfig); + std::string getDBEndpointDescription() const; + void setDBEndpointDescription(const std::string &dBEndpointDescription); + long getOwnerId() const; + 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 clientToken_; + std::string dBEndpointId_; + std::string polarSccWaitTimeout_; + std::string accessKeyId_; + std::string readWriteMode_; + std::string polarSccTimeoutAction_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string endpointConfig_; + std::string dBEndpointDescription_; + long ownerId_; + std::string nodes_; + std::string sccMode_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalResult.h new file mode 100644 index 000000000..7c7d7d7bc --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterEndpointZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterEndpointZonalResult : public ServiceResult + { + public: + + + ModifyDBClusterEndpointZonalResult(); + explicit ModifyDBClusterEndpointZonalResult(const std::string &payload); + ~ModifyDBClusterEndpointZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERENDPOINTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointRequest.h new file mode 100644 index 000000000..d7d1adf49 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointRequest.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_MODIFYDBCLUSTERMIGRATIONENDPOINTREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationEndpointRequest : public RpcServiceRequest { +public: + ModifyDBClusterMigrationEndpointRequest(); + ~ModifyDBClusterMigrationEndpointRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMigrationConfig() const; + void setMigrationConfig(const std::string &migrationConfig); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string migrationConfig_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONENDPOINTREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointResult.h new file mode 100644 index 000000000..33c226de8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationEndpointResult.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_MODIFYDBCLUSTERMIGRATIONENDPOINTRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMIGRATIONENDPOINTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterMigrationEndpointResult : public ServiceResult + { + public: + + + ModifyDBClusterMigrationEndpointResult(); + explicit ModifyDBClusterMigrationEndpointResult(const std::string &payload); + ~ModifyDBClusterMigrationEndpointResult(); + 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_MODIFYDBCLUSTERMIGRATIONENDPOINTRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h index 3cd92a42b..13a2ccfd9 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterRequest.h @@ -40,6 +40,8 @@ public: void setTableMeta(const std::string &tableMeta); std::string getStandbyHAMode() const; void setStandbyHAMode(const std::string &standbyHAMode); + std::string getPlannedEscapeTime() const; + void setPlannedEscapeTime(const std::string &plannedEscapeTime); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -73,6 +75,7 @@ private: std::string accessKeyId_; std::string tableMeta_; std::string standbyHAMode_; + std::string plannedEscapeTime_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceRequest.h index af55deccc..7314f7970 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterStorageSpaceRequest.h @@ -38,6 +38,8 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -58,6 +60,7 @@ private: std::string clientToken_; std::string plannedEndTime_; std::string accessKeyId_; + std::string cloudProvider_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcRequest.h new file mode 100644 index 000000000..7a04f69e0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterVpcRequest : public RpcServiceRequest { +public: + ModifyDBClusterVpcRequest(); + ~ModifyDBClusterVpcRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getExistedEndpointSwitchType() const; + void setExistedEndpointSwitchType(const std::string &existedEndpointSwitchType); + std::string getVPCId() const; + void setVPCId(const std::string &vPCId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string vSwitchId_; + std::string existedEndpointSwitchType_; + std::string vPCId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcResult.h new file mode 100644 index 000000000..5a86be082 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterVpcResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterVpcResult : public ServiceResult + { + public: + + + ModifyDBClusterVpcResult(); + explicit ModifyDBClusterVpcResult(const std::string &payload); + ~ModifyDBClusterVpcResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERVPCRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalRequest.h new file mode 100644 index 000000000..d2a06597c --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionZonalRequest : public RpcServiceRequest { +public: + ModifyDBDescriptionZonalRequest(); + ~ModifyDBDescriptionZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBDescription() const; + void setDBDescription(const std::string &dBDescription); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string dBDescription_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalResult.h new file mode 100644 index 000000000..2d4649b36 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBDescriptionZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBDescriptionZonalResult : public ServiceResult + { + public: + + + ModifyDBDescriptionZonalResult(); + explicit ModifyDBDescriptionZonalResult(const std::string &payload); + ~ModifyDBDescriptionZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBDESCRIPTIONZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h index 31abf7a54..667ea6d4c 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h @@ -38,6 +38,8 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getDBNodeType() const; void setDBNodeType(const std::string &dBNodeType); std::string getDBNodeTargetClass() const; @@ -64,6 +66,7 @@ private: std::string clientToken_; std::string plannedEndTime_; std::string accessKeyId_; + std::string cloudProvider_; std::string dBNodeType_; std::string dBNodeTargetClass_; std::string resourceOwnerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigRequest.h new file mode 100644 index 000000000..3e1f6de1a --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigRequest.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_MODIFYDBNODECONFIGREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeConfigRequest : public RpcServiceRequest { +public: + ModifyDBNodeConfigRequest(); + ~ModifyDBNodeConfigRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getConfigName() const; + void setConfigName(const std::string &configName); + 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 getConfigValue() const; + void setConfigValue(const std::string &configValue); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBNodeId_; + std::string accessKeyId_; + std::string securityToken_; + std::string configName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string configValue_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECONFIGREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigResult.h new file mode 100644 index 000000000..a917dd6b2 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECONFIGRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeConfigResult : public ServiceResult + { + public: + + + ModifyDBNodeConfigResult(); + explicit ModifyDBNodeConfigResult(const std::string &payload); + ~ModifyDBNodeConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODECONFIGRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionRequest.h new file mode 100644 index 000000000..42ad342b1 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionRequest.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_MODIFYDBNODEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeDescriptionRequest : public RpcServiceRequest { +public: + ModifyDBNodeDescriptionRequest(); + ~ModifyDBNodeDescriptionRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDBNodeDescription() const; + void setDBNodeDescription(const std::string &dBNodeDescription); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBNodeId_; + std::string accessKeyId_; + std::string dBNodeDescription_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEDESCRIPTIONREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionResult.h new file mode 100644 index 000000000..7d3166605 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeDescriptionResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEDESCRIPTIONRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEDESCRIPTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeDescriptionResult : public ServiceResult + { + public: + + + ModifyDBNodeDescriptionResult(); + explicit ModifyDBNodeDescriptionResult(const std::string &payload); + ~ModifyDBNodeDescriptionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEDESCRIPTIONRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeRequest.h new file mode 100644 index 000000000..6947b9428 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeRequest.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_MODIFYDBNODESCCMODEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODESCCMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeSccModeRequest : public RpcServiceRequest { +public: + ModifyDBNodeSccModeRequest(); + ~ModifyDBNodeSccModeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSccMode() const; + void setSccMode(const std::string &sccMode); + +private: + long resourceOwnerId_; + std::string dBNodeId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string sccMode_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODESCCMODEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeResult.h new file mode 100644 index 000000000..44e349189 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodeSccModeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODESCCMODERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODESCCMODERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBNodeSccModeResult : public ServiceResult + { + public: + + + ModifyDBNodeSccModeResult(); + explicit ModifyDBNodeSccModeResult(const std::string &payload); + ~ModifyDBNodeSccModeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODESCCMODERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h index 19c058dbe..3faf1fffc 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBNodesClassRequest.h @@ -42,6 +42,8 @@ public: void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getCloudProvider() const; + void setCloudProvider(const std::string &cloudProvider); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getDBClusterId() const; @@ -66,6 +68,7 @@ private: std::string clientToken_; std::string plannedEndTime_; std::string accessKeyId_; + std::string cloudProvider_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeRequest.h new file mode 100644 index 000000000..930765016 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeRequest.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_MODIFYENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyEncryptionDBRolePrivilegeRequest : public RpcServiceRequest { +public: + ModifyEncryptionDBRolePrivilegeRequest(); + ~ModifyEncryptionDBRolePrivilegeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRolePrivilegeConfig() const; + void setRolePrivilegeConfig(const std::string &rolePrivilegeConfig); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRolePrivilegeName() const; + void setRolePrivilegeName(const std::string &rolePrivilegeName); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string rolePrivilegeConfig_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string rolePrivilegeName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBROLEPRIVILEGEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeResult.h b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeResult.h new file mode 100644 index 000000000..4b85261c6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBRolePrivilegeResult.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_MODIFYENCRYPTIONDBROLEPRIVILEGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBROLEPRIVILEGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyEncryptionDBRolePrivilegeResult : public ServiceResult + { + public: + + + ModifyEncryptionDBRolePrivilegeResult(); + explicit ModifyEncryptionDBRolePrivilegeResult(const std::string &payload); + ~ModifyEncryptionDBRolePrivilegeResult(); + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBROLEPRIVILEGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretRequest.h new file mode 100644 index 000000000..603a843b0 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyEncryptionDBSecretRequest : public RpcServiceRequest { +public: + ModifyEncryptionDBSecretRequest(); + ~ModifyEncryptionDBSecretRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getEncryptionKey() const; + void setEncryptionKey(const std::string &encryptionKey); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getEncryptionDBStatus() const; + void setEncryptionDBStatus(const std::string &encryptionDBStatus); + std::string getRoleArn() const; + void setRoleArn(const std::string &roleArn); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string encryptionKey_; + long ownerId_; + std::string encryptionDBStatus_; + std::string roleArn_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretResult.h b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretResult.h new file mode 100644 index 000000000..1ba677fb7 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyEncryptionDBSecretResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyEncryptionDBSecretResult : public ServiceResult + { + public: + + + ModifyEncryptionDBSecretResult(); + explicit ModifyEncryptionDBSecretResult(const std::string &payload); + ~ModifyEncryptionDBSecretResult(); + std::string getMessage()const; + std::string getDBClusterId()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string dBClusterId_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYENCRYPTIONDBSECRETRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesRequest.h new file mode 100644 index 000000000..395f0f9e6 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesRequest.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_MODIFYFIREWALLRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYFIREWALLRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyFirewallRulesRequest : public RpcServiceRequest { +public: + ModifyFirewallRulesRequest(); + ~ModifyFirewallRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleConfig() const; + void setRuleConfig(const std::string &ruleConfig); + +private: + long resourceOwnerId_; + std::string ruleName_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleConfig_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYFIREWALLRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesResult.h b/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesResult.h new file mode 100644 index 000000000..d13109c29 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyFirewallRulesResult.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_MODIFYFIREWALLRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYFIREWALLRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyFirewallRulesResult : public ServiceResult + { + public: + + + ModifyFirewallRulesResult(); + explicit ModifyFirewallRulesResult(const std::string &payload); + ~ModifyFirewallRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYFIREWALLRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h index dcf618eac..c04e3df89 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h @@ -28,10 +28,23 @@ namespace Polardb { namespace Model { class ALIBABACLOUD_POLARDB_EXPORT ModifyLogBackupPolicyRequest : public RpcServiceRequest { public: + struct AdvancedLogPolicies { + std::string actionType; + std::string srcType; + std::string policyId; + std::string destRegion; + std::string logRetentionValue; + std::string logRetentionType; + std::string srcRegion; + std::string destType; + int enableLogBackup; + }; ModifyLogBackupPolicyRequest(); ~ModifyLogBackupPolicyRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::vector getAdvancedLogPolicies() const; + void setAdvancedLogPolicies(const std::vector &advancedLogPolicies); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getLogBackupAnotherRegionRegion() const; @@ -51,6 +64,7 @@ public: private: long resourceOwnerId_; + std::vector advancedLogPolicies_; std::string accessKeyId_; std::string logBackupAnotherRegionRegion_; std::string resourceOwnerAccount_; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyMaskingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyMaskingRulesRequest.h index bc65850d6..9f96d63a8 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyMaskingRulesRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyMaskingRulesRequest.h @@ -30,25 +30,34 @@ class ALIBABACLOUD_POLARDB_EXPORT ModifyMaskingRulesRequest : public RpcServiceR public: ModifyMaskingRulesRequest(); ~ModifyMaskingRulesRequest(); - std::string getDBClusterId() const; - void setDBClusterId(const std::string &dBClusterId); + std::string getMaskingAlgo() const; + void setMaskingAlgo(const std::string &maskingAlgo); std::string getRuleName() const; void setRuleName(const std::string &ruleName); std::string getRuleVersion() const; void setRuleVersion(const std::string &ruleVersion); - std::string getRuleConfig() const; - void setRuleConfig(const std::string &ruleConfig); std::string getEnable() const; void setEnable(const std::string &enable); + std::string getInterfaceVersion() const; + void setInterfaceVersion(const std::string &interfaceVersion); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getDefaultAlgo() const; + void setDefaultAlgo(const std::string &defaultAlgo); + std::string getRuleConfig() const; + void setRuleConfig(const std::string &ruleConfig); std::string getRuleNameList() const; void setRuleNameList(const std::string &ruleNameList); private: - std::string dBClusterId_; + std::string maskingAlgo_; std::string ruleName_; std::string ruleVersion_; - std::string ruleConfig_; std::string enable_; + std::string interfaceVersion_; + std::string dBClusterId_; + std::string defaultAlgo_; + std::string ruleConfig_; std::string ruleNameList_; }; } // namespace Model diff --git a/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageRequest.h new file mode 100644 index 000000000..b40aa80bd --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyResourcePackageRequest : public RpcServiceRequest { +public: + ModifyResourcePackageRequest(); + ~ModifyResourcePackageRequest(); + std::string getCapacityConfig() const; + void setCapacityConfig(const std::string &capacityConfig); + bool getAutoQuota() const; + void setAutoQuota(bool autoQuota); + std::string getResourcePackageId() const; + void setResourcePackageId(const std::string &resourcePackageId); + +private: + std::string capacityConfig_; + bool autoQuota_; + std::string resourcePackageId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGEREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageResult.h b/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageResult.h new file mode 100644 index 000000000..7a5956fea --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyResourcePackageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGERESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyResourcePackageResult : public ServiceResult + { + public: + + + ModifyResourcePackageResult(); + explicit ModifyResourcePackageResult(const std::string &payload); + ~ModifyResourcePackageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYRESOURCEPACKAGERESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesRequest.h b/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesRequest.h new file mode 100644 index 000000000..d3aec2999 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesRequest.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_MODIFYSQLRATELIMITINGRULESREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYSQLRATELIMITINGRULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifySQLRateLimitingRulesRequest : public RpcServiceRequest { +public: + ModifySQLRateLimitingRulesRequest(); + ~ModifySQLRateLimitingRulesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getRuleConfig() const; + void setRuleConfig(const std::string &ruleConfig); + +private: + long resourceOwnerId_; + std::string ruleName_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string ruleConfig_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYSQLRATELIMITINGRULESREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesResult.h b/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesResult.h new file mode 100644 index 000000000..e1a0eec36 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifySQLRateLimitingRulesResult.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_MODIFYSQLRATELIMITINGRULESRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYSQLRATELIMITINGRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifySQLRateLimitingRulesResult : public ServiceResult + { + public: + + + ModifySQLRateLimitingRulesResult(); + explicit ModifySQLRateLimitingRulesResult(const std::string &payload); + ~ModifySQLRateLimitingRulesResult(); + std::string getMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYSQLRATELIMITINGRULESRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskRequest.h new file mode 100644 index 000000000..c20c2c039 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskRequest.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_MODIFYSCHEDULETASKREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYSCHEDULETASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ModifyScheduleTaskRequest : public RpcServiceRequest { +public: + ModifyScheduleTaskRequest(); + ~ModifyScheduleTaskRequest(); + 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 getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + 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 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); + +private: + long resourceOwnerId_; + std::string plannedEndTime_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string taskId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string plannedFlashingOffTime_; + long ownerId_; + std::string plannedStartTime_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYSCHEDULETASKREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskResult.h b/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskResult.h new file mode 100644 index 000000000..593d72636 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyScheduleTaskResult.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_MODIFYSCHEDULETASKRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYSCHEDULETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyScheduleTaskResult : public ServiceResult + { + public: + + + ModifyScheduleTaskResult(); + explicit ModifyScheduleTaskResult(const std::string &payload); + ~ModifyScheduleTaskResult(); + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYSCHEDULETASKRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupRequest.h b/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupRequest.h new file mode 100644 index 000000000..6faac4d48 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupRequest.h @@ -0,0 +1,42 @@ +/* + * 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_REACTIVATEDBCLUSTERBACKUPREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REACTIVATEDBCLUSTERBACKUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ReactivateDBClusterBackupRequest : public RpcServiceRequest { +public: + ReactivateDBClusterBackupRequest(); + ~ReactivateDBClusterBackupRequest(); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + +private: + std::string dBClusterId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_REACTIVATEDBCLUSTERBACKUPREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupResult.h b/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupResult.h new file mode 100644 index 000000000..7a7adb25f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ReactivateDBClusterBackupResult.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_REACTIVATEDBCLUSTERBACKUPRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REACTIVATEDBCLUSTERBACKUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ReactivateDBClusterBackupResult : public ServiceResult + { + public: + + + ReactivateDBClusterBackupResult(); + explicit ReactivateDBClusterBackupResult(const std::string &payload); + ~ReactivateDBClusterBackupResult(); + 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_REACTIVATEDBCLUSTERBACKUPRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h b/polardb/include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h index eb34cc89b..bc1c379c9 100644 --- a/polardb/include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RemoveDBClusterFromGDNRequest.h @@ -46,6 +46,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + bool getForce() const; + void setForce(bool force); private: long resourceOwnerId_; @@ -56,6 +58,7 @@ private: std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + bool force_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordRequest.h b/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordRequest.h new file mode 100644 index 000000000..d100757df --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ResetAccountPasswordRequest : public RpcServiceRequest { +public: + ResetAccountPasswordRequest(); + ~ResetAccountPasswordRequest(); + 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; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + +private: + long resourceOwnerId_; + std::string passwordType_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordResult.h b/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordResult.h new file mode 100644 index 000000000..d5679a173 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountPasswordResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ResetAccountPasswordResult : public ServiceResult + { + public: + + + ResetAccountPasswordResult(); + explicit ResetAccountPasswordResult(const std::string &payload); + ~ResetAccountPasswordResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTPASSWORDRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountZonalRequest.h b/polardb/include/alibabacloud/polardb/model/ResetAccountZonalRequest.h new file mode 100644 index 000000000..31ff5398b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountZonalRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT ResetAccountZonalRequest : public RpcServiceRequest { +public: + ResetAccountZonalRequest(); + ~ResetAccountZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccountPassword() const; + void setAccountPassword(const std::string &accountPassword); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string accountPassword_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/ResetAccountZonalResult.h b/polardb/include/alibabacloud/polardb/model/ResetAccountZonalResult.h new file mode 100644 index 000000000..f4c8f9545 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ResetAccountZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ResetAccountZonalResult : public ServiceResult + { + public: + + + ResetAccountZonalResult(); + explicit ResetAccountZonalResult(const std::string &payload); + ~ResetAccountZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESETACCOUNTZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h b/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h index 51c6d3e8c..32da864af 100644 --- a/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RestartDBNodeRequest.h @@ -34,22 +34,34 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getDBNodeId() const; void setDBNodeId(const std::string &dBNodeId); + std::string getPlannedEndTime() const; + void setPlannedEndTime(const std::string &plannedEndTime); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); 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 getPlannedStartTime() const; + void setPlannedStartTime(const std::string &plannedStartTime); + std::string getFromTimeService() const; + void setFromTimeService(const std::string &fromTimeService); private: long resourceOwnerId_; std::string dBNodeId_; + std::string plannedEndTime_; std::string accessKeyId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string plannedStartTime_; + std::string fromTimeService_; }; } // namespace Model } // namespace Polardb diff --git a/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalRequest.h b/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalRequest.h new file mode 100644 index 000000000..f3ad63d6d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalRequest.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_RESTARTDBNODEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeZonalRequest : public RpcServiceRequest { +public: + RestartDBNodeZonalRequest(); + ~RestartDBNodeZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDBNodeId() const; + void setDBNodeId(const std::string &dBNodeId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string dBNodeId_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalResult.h b/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalResult.h new file mode 100644 index 000000000..1eb1ee76b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/RestartDBNodeZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RestartDBNodeZonalResult : public ServiceResult + { + public: + + + RestartDBNodeZonalResult(); + explicit RestartDBNodeZonalResult(const std::string &payload); + ~RestartDBNodeZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_RESTARTDBNODEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/RestoreTableRequest.h b/polardb/include/alibabacloud/polardb/model/RestoreTableRequest.h index 2a8853e88..2042c0279 100644 --- a/polardb/include/alibabacloud/polardb/model/RestoreTableRequest.h +++ b/polardb/include/alibabacloud/polardb/model/RestoreTableRequest.h @@ -38,6 +38,8 @@ public: void setSecurityToken(const std::string &securityToken); std::string getTableMeta() const; void setTableMeta(const std::string &tableMeta); + std::string getRestoreSpeed() const; + void setRestoreSpeed(const std::string &restoreSpeed); std::string getRestoreTime() const; void setRestoreTime(const std::string &restoreTime); std::string getResourceOwnerAccount() const; @@ -56,6 +58,7 @@ private: std::string accessKeyId_; std::string securityToken_; std::string tableMeta_; + std::string restoreSpeed_; std::string restoreTime_; std::string resourceOwnerAccount_; std::string dBClusterId_; diff --git a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalRequest.h b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalRequest.h new file mode 100644 index 000000000..5d281a43b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeZonalRequest : public RpcServiceRequest { +public: + RevokeAccountPrivilegeZonalRequest(); + ~RevokeAccountPrivilegeZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAccountName() const; + void setAccountName(const std::string &accountName); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDBName() const; + void setDBName(const std::string &dBName); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string accountName_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string dBName_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalResult.h b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalResult.h new file mode 100644 index 000000000..3201fc008 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/RevokeAccountPrivilegeZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT RevokeAccountPrivilegeZonalResult : public ServiceResult + { + public: + + + RevokeAccountPrivilegeZonalResult(); + explicit RevokeAccountPrivilegeZonalResult(const std::string &payload); + ~RevokeAccountPrivilegeZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_REVOKEACCOUNTPRIVILEGEZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UpdateExtensionsRequest.h b/polardb/include/alibabacloud/polardb/model/UpdateExtensionsRequest.h new file mode 100644 index 000000000..d3b4e7725 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/UpdateExtensionsRequest.h @@ -0,0 +1,78 @@ +/* + * 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_UPDATEEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UPDATEEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT UpdateExtensionsRequest : public RpcServiceRequest { +public: + UpdateExtensionsRequest(); + ~UpdateExtensionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + 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 getOwnerId() const; + void setOwnerId(long ownerId); + std::string getVersion() const; + void setVersion(const std::string &version); + std::string getDBNames() const; + void setDBNames(const std::string &dBNames); + std::string getExtensions() const; + void setExtensions(const std::string &extensions); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + std::string version_; + std::string dBNames_; + std::string extensions_; + std::string vpcId_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_UPDATEEXTENSIONSREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/UpdateExtensionsResult.h b/polardb/include/alibabacloud/polardb/model/UpdateExtensionsResult.h new file mode 100644 index 000000000..aaea49867 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/UpdateExtensionsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UPDATEEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UPDATEEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UpdateExtensionsResult : public ServiceResult + { + public: + + + UpdateExtensionsResult(); + explicit UpdateExtensionsResult(const std::string &payload); + ~UpdateExtensionsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_UPDATEEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalRequest.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalRequest.h new file mode 100644 index 000000000..b6c9ba4f8 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalRequest.h @@ -0,0 +1,87 @@ +/* + * 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_UPGRADEDBCLUSTERVERSIONZONALREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONZONALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Polardb { +namespace Model { +class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterVersionZonalRequest : public RpcServiceRequest { +public: + UpgradeDBClusterVersionZonalRequest(); + ~UpgradeDBClusterVersionZonalRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getUpgradeType() const; + void setUpgradeType(const std::string &upgradeType); + std::string getPlannedEndTime() const; + void setPlannedEndTime(const std::string &plannedEndTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getDBClusterId() const; + void setDBClusterId(const std::string &dBClusterId); + std::string getUpgradeLabel() const; + 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; + void setFromTimeService(bool fromTimeService); + +private: + long resourceOwnerId_; + std::string clientToken_; + std::string upgradeType_; + std::string plannedEndTime_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + 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_; +}; +} // namespace Model +} // namespace Polardb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONZONALREQUEST_H_ diff --git a/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalResult.h b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalResult.h new file mode 100644 index 000000000..78e0daa9b --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/UpgradeDBClusterVersionZonalResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONZONALRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONZONALRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterVersionZonalResult : public ServiceResult + { + public: + + + UpgradeDBClusterVersionZonalResult(); + explicit UpgradeDBClusterVersionZonalResult(const std::string &payload); + ~UpgradeDBClusterVersionZonalResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONZONALRESULT_H_ \ No newline at end of file diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc index 9b8e93102..fed69a07f 100644 --- a/polardb/src/PolardbClient.cc +++ b/polardb/src/PolardbClient.cc @@ -51,6 +51,186 @@ PolardbClient::PolardbClient(const std::string & accessKeyId, const std::string PolardbClient::~PolardbClient() {} +PolardbClient::AbortDBClusterMigrationOutcome PolardbClient::abortDBClusterMigration(const AbortDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AbortDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AbortDBClusterMigrationOutcome(AbortDBClusterMigrationResult(outcome.result())); + else + return AbortDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::abortDBClusterMigrationAsync(const AbortDBClusterMigrationRequest& request, const AbortDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, abortDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AbortDBClusterMigrationOutcomeCallable PolardbClient::abortDBClusterMigrationCallable(const AbortDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->abortDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::AddEncryptionDBRolePrivilegeOutcome PolardbClient::addEncryptionDBRolePrivilege(const AddEncryptionDBRolePrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddEncryptionDBRolePrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddEncryptionDBRolePrivilegeOutcome(AddEncryptionDBRolePrivilegeResult(outcome.result())); + else + return AddEncryptionDBRolePrivilegeOutcome(outcome.error()); +} + +void PolardbClient::addEncryptionDBRolePrivilegeAsync(const AddEncryptionDBRolePrivilegeRequest& request, const AddEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addEncryptionDBRolePrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AddEncryptionDBRolePrivilegeOutcomeCallable PolardbClient::addEncryptionDBRolePrivilegeCallable(const AddEncryptionDBRolePrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addEncryptionDBRolePrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::AddFirewallRulesOutcome PolardbClient::addFirewallRules(const AddFirewallRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddFirewallRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddFirewallRulesOutcome(AddFirewallRulesResult(outcome.result())); + else + return AddFirewallRulesOutcome(outcome.error()); +} + +void PolardbClient::addFirewallRulesAsync(const AddFirewallRulesRequest& request, const AddFirewallRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addFirewallRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AddFirewallRulesOutcomeCallable PolardbClient::addFirewallRulesCallable(const AddFirewallRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addFirewallRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::AddSQLRateLimitingRulesOutcome PolardbClient::addSQLRateLimitingRules(const AddSQLRateLimitingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSQLRateLimitingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSQLRateLimitingRulesOutcome(AddSQLRateLimitingRulesResult(outcome.result())); + else + return AddSQLRateLimitingRulesOutcome(outcome.error()); +} + +void PolardbClient::addSQLRateLimitingRulesAsync(const AddSQLRateLimitingRulesRequest& request, const AddSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSQLRateLimitingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AddSQLRateLimitingRulesOutcomeCallable PolardbClient::addSQLRateLimitingRulesCallable(const AddSQLRateLimitingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSQLRateLimitingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::AttachApplicationPolarFSOutcome PolardbClient::attachApplicationPolarFS(const AttachApplicationPolarFSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AttachApplicationPolarFSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AttachApplicationPolarFSOutcome(AttachApplicationPolarFSResult(outcome.result())); + else + return AttachApplicationPolarFSOutcome(outcome.error()); +} + +void PolardbClient::attachApplicationPolarFSAsync(const AttachApplicationPolarFSRequest& request, const AttachApplicationPolarFSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, attachApplicationPolarFS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::AttachApplicationPolarFSOutcomeCallable PolardbClient::attachApplicationPolarFSCallable(const AttachApplicationPolarFSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->attachApplicationPolarFS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CancelActiveOperationTasksOutcome PolardbClient::cancelActiveOperationTasks(const CancelActiveOperationTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +267,42 @@ PolardbClient::CancelActiveOperationTasksOutcomeCallable PolardbClient::cancelAc return task->get_future(); } +PolardbClient::CancelCronJobPolicyServerlessOutcome PolardbClient::cancelCronJobPolicyServerless(const CancelCronJobPolicyServerlessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelCronJobPolicyServerlessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelCronJobPolicyServerlessOutcome(CancelCronJobPolicyServerlessResult(outcome.result())); + else + return CancelCronJobPolicyServerlessOutcome(outcome.error()); +} + +void PolardbClient::cancelCronJobPolicyServerlessAsync(const CancelCronJobPolicyServerlessRequest& request, const CancelCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelCronJobPolicyServerless(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CancelCronJobPolicyServerlessOutcomeCallable PolardbClient::cancelCronJobPolicyServerlessCallable(const CancelCronJobPolicyServerlessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelCronJobPolicyServerless(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CancelScheduleTasksOutcome PolardbClient::cancelScheduleTasks(const CancelScheduleTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +375,78 @@ PolardbClient::CheckAccountNameOutcomeCallable PolardbClient::checkAccountNameCa return task->get_future(); } +PolardbClient::CheckAccountNameZonalOutcome PolardbClient::checkAccountNameZonal(const CheckAccountNameZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckAccountNameZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckAccountNameZonalOutcome(CheckAccountNameZonalResult(outcome.result())); + else + return CheckAccountNameZonalOutcome(outcome.error()); +} + +void PolardbClient::checkAccountNameZonalAsync(const CheckAccountNameZonalRequest& request, const CheckAccountNameZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkAccountNameZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CheckAccountNameZonalOutcomeCallable PolardbClient::checkAccountNameZonalCallable(const CheckAccountNameZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkAccountNameZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CheckConnectionStringOutcome PolardbClient::checkConnectionString(const CheckConnectionStringRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckConnectionStringOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckConnectionStringOutcome(CheckConnectionStringResult(outcome.result())); + else + return CheckConnectionStringOutcome(outcome.error()); +} + +void PolardbClient::checkConnectionStringAsync(const CheckConnectionStringRequest& request, const CheckConnectionStringAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkConnectionString(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CheckConnectionStringOutcomeCallable PolardbClient::checkConnectionStringCallable(const CheckConnectionStringRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkConnectionString(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CheckDBNameOutcome PolardbClient::checkDBName(const CheckDBNameRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +483,42 @@ PolardbClient::CheckDBNameOutcomeCallable PolardbClient::checkDBNameCallable(con return task->get_future(); } +PolardbClient::CheckDBNameZonalOutcome PolardbClient::checkDBNameZonal(const CheckDBNameZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CheckDBNameZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CheckDBNameZonalOutcome(CheckDBNameZonalResult(outcome.result())); + else + return CheckDBNameZonalOutcome(outcome.error()); +} + +void PolardbClient::checkDBNameZonalAsync(const CheckDBNameZonalRequest& request, const CheckDBNameZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, checkDBNameZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CheckDBNameZonalOutcomeCallable PolardbClient::checkDBNameZonalCallable(const CheckDBNameZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->checkDBNameZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CheckKMSAuthorizedOutcome PolardbClient::checkKMSAuthorized(const CheckKMSAuthorizedRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +663,42 @@ PolardbClient::CloseDBClusterMigrationOutcomeCallable PolardbClient::closeDBClus return task->get_future(); } +PolardbClient::ContinueDBClusterMigrationOutcome PolardbClient::continueDBClusterMigration(const ContinueDBClusterMigrationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ContinueDBClusterMigrationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ContinueDBClusterMigrationOutcome(ContinueDBClusterMigrationResult(outcome.result())); + else + return ContinueDBClusterMigrationOutcome(outcome.error()); +} + +void PolardbClient::continueDBClusterMigrationAsync(const ContinueDBClusterMigrationRequest& request, const ContinueDBClusterMigrationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, continueDBClusterMigration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ContinueDBClusterMigrationOutcomeCallable PolardbClient::continueDBClusterMigrationCallable(const ContinueDBClusterMigrationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->continueDBClusterMigration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateAccountOutcome PolardbClient::createAccount(const CreateAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +735,42 @@ PolardbClient::CreateAccountOutcomeCallable PolardbClient::createAccountCallable return task->get_future(); } +PolardbClient::CreateAccountZonalOutcome PolardbClient::createAccountZonal(const CreateAccountZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccountZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccountZonalOutcome(CreateAccountZonalResult(outcome.result())); + else + return CreateAccountZonalOutcome(outcome.error()); +} + +void PolardbClient::createAccountZonalAsync(const CreateAccountZonalRequest& request, const CreateAccountZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccountZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateAccountZonalOutcomeCallable PolardbClient::createAccountZonalCallable(const CreateAccountZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccountZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateActivationCodeOutcome PolardbClient::createActivationCode(const CreateActivationCodeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +807,78 @@ PolardbClient::CreateActivationCodeOutcomeCallable PolardbClient::createActivati return task->get_future(); } +PolardbClient::CreateApplicationOutcome PolardbClient::createApplication(const CreateApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationOutcome(CreateApplicationResult(outcome.result())); + else + return CreateApplicationOutcome(outcome.error()); +} + +void PolardbClient::createApplicationAsync(const CreateApplicationRequest& request, const CreateApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateApplicationOutcomeCallable PolardbClient::createApplicationCallable(const CreateApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateApplicationEndpointAddressOutcome PolardbClient::createApplicationEndpointAddress(const CreateApplicationEndpointAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateApplicationEndpointAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateApplicationEndpointAddressOutcome(CreateApplicationEndpointAddressResult(outcome.result())); + else + return CreateApplicationEndpointAddressOutcome(outcome.error()); +} + +void PolardbClient::createApplicationEndpointAddressAsync(const CreateApplicationEndpointAddressRequest& request, const CreateApplicationEndpointAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createApplicationEndpointAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateApplicationEndpointAddressOutcomeCallable PolardbClient::createApplicationEndpointAddressCallable(const CreateApplicationEndpointAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createApplicationEndpointAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateBackupOutcome PolardbClient::createBackup(const CreateBackupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +951,42 @@ PolardbClient::CreateColdStorageInstanceOutcomeCallable PolardbClient::createCol return task->get_future(); } +PolardbClient::CreateCronJobPolicyServerlessOutcome PolardbClient::createCronJobPolicyServerless(const CreateCronJobPolicyServerlessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCronJobPolicyServerlessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCronJobPolicyServerlessOutcome(CreateCronJobPolicyServerlessResult(outcome.result())); + else + return CreateCronJobPolicyServerlessOutcome(outcome.error()); +} + +void PolardbClient::createCronJobPolicyServerlessAsync(const CreateCronJobPolicyServerlessRequest& request, const CreateCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCronJobPolicyServerless(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateCronJobPolicyServerlessOutcomeCallable PolardbClient::createCronJobPolicyServerlessCallable(const CreateCronJobPolicyServerlessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCronJobPolicyServerless(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateDBClusterOutcome PolardbClient::createDBCluster(const CreateDBClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +1059,42 @@ PolardbClient::CreateDBClusterEndpointOutcomeCallable PolardbClient::createDBClu return task->get_future(); } +PolardbClient::CreateDBClusterEndpointZonalOutcome PolardbClient::createDBClusterEndpointZonal(const CreateDBClusterEndpointZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDBClusterEndpointZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDBClusterEndpointZonalOutcome(CreateDBClusterEndpointZonalResult(outcome.result())); + else + return CreateDBClusterEndpointZonalOutcome(outcome.error()); +} + +void PolardbClient::createDBClusterEndpointZonalAsync(const CreateDBClusterEndpointZonalRequest& request, const CreateDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDBClusterEndpointZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDBClusterEndpointZonalOutcomeCallable PolardbClient::createDBClusterEndpointZonalCallable(const CreateDBClusterEndpointZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDBClusterEndpointZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateDBEndpointAddressOutcome PolardbClient::createDBEndpointAddress(const CreateDBEndpointAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,6 +1239,114 @@ PolardbClient::CreateDatabaseOutcomeCallable PolardbClient::createDatabaseCallab return task->get_future(); } +PolardbClient::CreateDatabaseZonalOutcome PolardbClient::createDatabaseZonal(const CreateDatabaseZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDatabaseZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDatabaseZonalOutcome(CreateDatabaseZonalResult(outcome.result())); + else + return CreateDatabaseZonalOutcome(outcome.error()); +} + +void PolardbClient::createDatabaseZonalAsync(const CreateDatabaseZonalRequest& request, const CreateDatabaseZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDatabaseZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateDatabaseZonalOutcomeCallable PolardbClient::createDatabaseZonalCallable(const CreateDatabaseZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDatabaseZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateExtensionsOutcome PolardbClient::createExtensions(const CreateExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateExtensionsOutcome(CreateExtensionsResult(outcome.result())); + else + return CreateExtensionsOutcome(outcome.error()); +} + +void PolardbClient::createExtensionsAsync(const CreateExtensionsRequest& request, const CreateExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateExtensionsOutcomeCallable PolardbClient::createExtensionsCallable(const CreateExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::CreateGlobalDataNetworkOutcome PolardbClient::createGlobalDataNetwork(const CreateGlobalDataNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGlobalDataNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGlobalDataNetworkOutcome(CreateGlobalDataNetworkResult(outcome.result())); + else + return CreateGlobalDataNetworkOutcome(outcome.error()); +} + +void PolardbClient::createGlobalDataNetworkAsync(const CreateGlobalDataNetworkRequest& request, const CreateGlobalDataNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGlobalDataNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateGlobalDataNetworkOutcomeCallable PolardbClient::createGlobalDataNetworkCallable(const CreateGlobalDataNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGlobalDataNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateGlobalDatabaseNetworkOutcome PolardbClient::createGlobalDatabaseNetwork(const CreateGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +1419,42 @@ PolardbClient::CreateGlobalSecurityIPGroupOutcomeCallable PolardbClient::createG return task->get_future(); } +PolardbClient::CreateNetworkChannelOutcome PolardbClient::createNetworkChannel(const CreateNetworkChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNetworkChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNetworkChannelOutcome(CreateNetworkChannelResult(outcome.result())); + else + return CreateNetworkChannelOutcome(outcome.error()); +} + +void PolardbClient::createNetworkChannelAsync(const CreateNetworkChannelRequest& request, const CreateNetworkChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNetworkChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::CreateNetworkChannelOutcomeCallable PolardbClient::createNetworkChannelCallable(const CreateNetworkChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNetworkChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::CreateOrGetVirtualLicenseOrderOutcome PolardbClient::createOrGetVirtualLicenseOrder(const CreateOrGetVirtualLicenseOrderRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1599,42 @@ PolardbClient::CreateStoragePlanOutcomeCallable PolardbClient::createStoragePlan return task->get_future(); } +PolardbClient::DeleteAIDBClusterOutcome PolardbClient::deleteAIDBCluster(const DeleteAIDBClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAIDBClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAIDBClusterOutcome(DeleteAIDBClusterResult(outcome.result())); + else + return DeleteAIDBClusterOutcome(outcome.error()); +} + +void PolardbClient::deleteAIDBClusterAsync(const DeleteAIDBClusterRequest& request, const DeleteAIDBClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAIDBCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteAIDBClusterOutcomeCallable PolardbClient::deleteAIDBClusterCallable(const DeleteAIDBClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAIDBCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DeleteAccountOutcome PolardbClient::deleteAccount(const DeleteAccountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1671,114 @@ PolardbClient::DeleteAccountOutcomeCallable PolardbClient::deleteAccountCallable return task->get_future(); } +PolardbClient::DeleteAccountZonalOutcome PolardbClient::deleteAccountZonal(const DeleteAccountZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccountZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccountZonalOutcome(DeleteAccountZonalResult(outcome.result())); + else + return DeleteAccountZonalOutcome(outcome.error()); +} + +void PolardbClient::deleteAccountZonalAsync(const DeleteAccountZonalRequest& request, const DeleteAccountZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccountZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteAccountZonalOutcomeCallable PolardbClient::deleteAccountZonalCallable(const DeleteAccountZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccountZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteApplicationOutcome PolardbClient::deleteApplication(const DeleteApplicationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationOutcome(DeleteApplicationResult(outcome.result())); + else + return DeleteApplicationOutcome(outcome.error()); +} + +void PolardbClient::deleteApplicationAsync(const DeleteApplicationRequest& request, const DeleteApplicationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplication(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteApplicationOutcomeCallable PolardbClient::deleteApplicationCallable(const DeleteApplicationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplication(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteApplicationEndpointAddressOutcome PolardbClient::deleteApplicationEndpointAddress(const DeleteApplicationEndpointAddressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteApplicationEndpointAddressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteApplicationEndpointAddressOutcome(DeleteApplicationEndpointAddressResult(outcome.result())); + else + return DeleteApplicationEndpointAddressOutcome(outcome.error()); +} + +void PolardbClient::deleteApplicationEndpointAddressAsync(const DeleteApplicationEndpointAddressRequest& request, const DeleteApplicationEndpointAddressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteApplicationEndpointAddress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteApplicationEndpointAddressOutcomeCallable PolardbClient::deleteApplicationEndpointAddressCallable(const DeleteApplicationEndpointAddressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteApplicationEndpointAddress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DeleteBackupOutcome PolardbClient::deleteBackup(const DeleteBackupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1887,42 @@ PolardbClient::DeleteDBClusterEndpointOutcomeCallable PolardbClient::deleteDBClu return task->get_future(); } +PolardbClient::DeleteDBClusterEndpointZonalOutcome PolardbClient::deleteDBClusterEndpointZonal(const DeleteDBClusterEndpointZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDBClusterEndpointZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDBClusterEndpointZonalOutcome(DeleteDBClusterEndpointZonalResult(outcome.result())); + else + return DeleteDBClusterEndpointZonalOutcome(outcome.error()); +} + +void PolardbClient::deleteDBClusterEndpointZonalAsync(const DeleteDBClusterEndpointZonalRequest& request, const DeleteDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDBClusterEndpointZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDBClusterEndpointZonalOutcomeCallable PolardbClient::deleteDBClusterEndpointZonalCallable(const DeleteDBClusterEndpointZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDBClusterEndpointZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DeleteDBEndpointAddressOutcome PolardbClient::deleteDBEndpointAddress(const DeleteDBEndpointAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +2067,186 @@ PolardbClient::DeleteDatabaseOutcomeCallable PolardbClient::deleteDatabaseCallab return task->get_future(); } +PolardbClient::DeleteDatabaseZonalOutcome PolardbClient::deleteDatabaseZonal(const DeleteDatabaseZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDatabaseZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDatabaseZonalOutcome(DeleteDatabaseZonalResult(outcome.result())); + else + return DeleteDatabaseZonalOutcome(outcome.error()); +} + +void PolardbClient::deleteDatabaseZonalAsync(const DeleteDatabaseZonalRequest& request, const DeleteDatabaseZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDatabaseZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteDatabaseZonalOutcomeCallable PolardbClient::deleteDatabaseZonalCallable(const DeleteDatabaseZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDatabaseZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteEncryptionDBRolePrivilegeOutcome PolardbClient::deleteEncryptionDBRolePrivilege(const DeleteEncryptionDBRolePrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteEncryptionDBRolePrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteEncryptionDBRolePrivilegeOutcome(DeleteEncryptionDBRolePrivilegeResult(outcome.result())); + else + return DeleteEncryptionDBRolePrivilegeOutcome(outcome.error()); +} + +void PolardbClient::deleteEncryptionDBRolePrivilegeAsync(const DeleteEncryptionDBRolePrivilegeRequest& request, const DeleteEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteEncryptionDBRolePrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteEncryptionDBRolePrivilegeOutcomeCallable PolardbClient::deleteEncryptionDBRolePrivilegeCallable(const DeleteEncryptionDBRolePrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteEncryptionDBRolePrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteExtensionsOutcome PolardbClient::deleteExtensions(const DeleteExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteExtensionsOutcome(DeleteExtensionsResult(outcome.result())); + else + return DeleteExtensionsOutcome(outcome.error()); +} + +void PolardbClient::deleteExtensionsAsync(const DeleteExtensionsRequest& request, const DeleteExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteExtensionsOutcomeCallable PolardbClient::deleteExtensionsCallable(const DeleteExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteFirewallRulesOutcome PolardbClient::deleteFirewallRules(const DeleteFirewallRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFirewallRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFirewallRulesOutcome(DeleteFirewallRulesResult(outcome.result())); + else + return DeleteFirewallRulesOutcome(outcome.error()); +} + +void PolardbClient::deleteFirewallRulesAsync(const DeleteFirewallRulesRequest& request, const DeleteFirewallRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFirewallRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteFirewallRulesOutcomeCallable PolardbClient::deleteFirewallRulesCallable(const DeleteFirewallRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFirewallRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DeleteGlobalDataNetworkOutcome PolardbClient::deleteGlobalDataNetwork(const DeleteGlobalDataNetworkRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGlobalDataNetworkOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGlobalDataNetworkOutcome(DeleteGlobalDataNetworkResult(outcome.result())); + else + return DeleteGlobalDataNetworkOutcome(outcome.error()); +} + +void PolardbClient::deleteGlobalDataNetworkAsync(const DeleteGlobalDataNetworkRequest& request, const DeleteGlobalDataNetworkAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGlobalDataNetwork(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteGlobalDataNetworkOutcomeCallable PolardbClient::deleteGlobalDataNetworkCallable(const DeleteGlobalDataNetworkRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGlobalDataNetwork(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DeleteGlobalDatabaseNetworkOutcome PolardbClient::deleteGlobalDatabaseNetwork(const DeleteGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +2355,42 @@ PolardbClient::DeleteMaskingRulesOutcomeCallable PolardbClient::deleteMaskingRul return task->get_future(); } +PolardbClient::DeleteNetworkChannelOutcome PolardbClient::deleteNetworkChannel(const DeleteNetworkChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNetworkChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNetworkChannelOutcome(DeleteNetworkChannelResult(outcome.result())); + else + return DeleteNetworkChannelOutcome(outcome.error()); +} + +void PolardbClient::deleteNetworkChannelAsync(const DeleteNetworkChannelRequest& request, const DeleteNetworkChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNetworkChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteNetworkChannelOutcomeCallable PolardbClient::deleteNetworkChannelCallable(const DeleteNetworkChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNetworkChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DeleteParameterGroupOutcome PolardbClient::deleteParameterGroup(const DeleteParameterGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1347,6 +2427,150 @@ PolardbClient::DeleteParameterGroupOutcomeCallable PolardbClient::deleteParamete return task->get_future(); } +PolardbClient::DeleteSQLRateLimitingRulesOutcome PolardbClient::deleteSQLRateLimitingRules(const DeleteSQLRateLimitingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSQLRateLimitingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSQLRateLimitingRulesOutcome(DeleteSQLRateLimitingRulesResult(outcome.result())); + else + return DeleteSQLRateLimitingRulesOutcome(outcome.error()); +} + +void PolardbClient::deleteSQLRateLimitingRulesAsync(const DeleteSQLRateLimitingRulesRequest& request, const DeleteSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSQLRateLimitingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DeleteSQLRateLimitingRulesOutcomeCallable PolardbClient::deleteSQLRateLimitingRulesCallable(const DeleteSQLRateLimitingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSQLRateLimitingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeAIDBClusterAttributeOutcome PolardbClient::describeAIDBClusterAttribute(const DescribeAIDBClusterAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAIDBClusterAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAIDBClusterAttributeOutcome(DescribeAIDBClusterAttributeResult(outcome.result())); + else + return DescribeAIDBClusterAttributeOutcome(outcome.error()); +} + +void PolardbClient::describeAIDBClusterAttributeAsync(const DescribeAIDBClusterAttributeRequest& request, const DescribeAIDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAIDBClusterAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAIDBClusterAttributeOutcomeCallable PolardbClient::describeAIDBClusterAttributeCallable(const DescribeAIDBClusterAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAIDBClusterAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeAIDBClusterPerformanceOutcome PolardbClient::describeAIDBClusterPerformance(const DescribeAIDBClusterPerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAIDBClusterPerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAIDBClusterPerformanceOutcome(DescribeAIDBClusterPerformanceResult(outcome.result())); + else + return DescribeAIDBClusterPerformanceOutcome(outcome.error()); +} + +void PolardbClient::describeAIDBClusterPerformanceAsync(const DescribeAIDBClusterPerformanceRequest& request, const DescribeAIDBClusterPerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAIDBClusterPerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAIDBClusterPerformanceOutcomeCallable PolardbClient::describeAIDBClusterPerformanceCallable(const DescribeAIDBClusterPerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAIDBClusterPerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeAIDBClustersOutcome PolardbClient::describeAIDBClusters(const DescribeAIDBClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAIDBClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAIDBClustersOutcome(DescribeAIDBClustersResult(outcome.result())); + else + return DescribeAIDBClustersOutcome(outcome.error()); +} + +void PolardbClient::describeAIDBClustersAsync(const DescribeAIDBClustersRequest& request, const DescribeAIDBClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAIDBClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAIDBClustersOutcomeCallable PolardbClient::describeAIDBClustersCallable(const DescribeAIDBClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAIDBClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeAITaskStatusOutcome PolardbClient::describeAITaskStatus(const DescribeAITaskStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1419,6 +2643,42 @@ PolardbClient::DescribeAccountsOutcomeCallable PolardbClient::describeAccountsCa return task->get_future(); } +PolardbClient::DescribeAccountsZonalOutcome PolardbClient::describeAccountsZonal(const DescribeAccountsZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccountsZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccountsZonalOutcome(DescribeAccountsZonalResult(outcome.result())); + else + return DescribeAccountsZonalOutcome(outcome.error()); +} + +void PolardbClient::describeAccountsZonalAsync(const DescribeAccountsZonalRequest& request, const DescribeAccountsZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccountsZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAccountsZonalOutcomeCallable PolardbClient::describeAccountsZonalCallable(const DescribeAccountsZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccountsZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeActivationCodeDetailsOutcome PolardbClient::describeActivationCodeDetails(const DescribeActivationCodeDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1491,6 +2751,42 @@ PolardbClient::DescribeActivationCodesOutcomeCallable PolardbClient::describeAct return task->get_future(); } +PolardbClient::DescribeActiveOperationMaintainConfOutcome PolardbClient::describeActiveOperationMaintainConf(const DescribeActiveOperationMaintainConfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveOperationMaintainConfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveOperationMaintainConfOutcome(DescribeActiveOperationMaintainConfResult(outcome.result())); + else + return DescribeActiveOperationMaintainConfOutcome(outcome.error()); +} + +void PolardbClient::describeActiveOperationMaintainConfAsync(const DescribeActiveOperationMaintainConfRequest& request, const DescribeActiveOperationMaintainConfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveOperationMaintainConf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeActiveOperationMaintainConfOutcomeCallable PolardbClient::describeActiveOperationMaintainConfCallable(const DescribeActiveOperationMaintainConfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveOperationMaintainConf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeActiveOperationTasksOutcome PolardbClient::describeActiveOperationTasks(const DescribeActiveOperationTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +2823,150 @@ PolardbClient::DescribeActiveOperationTasksOutcomeCallable PolardbClient::descri return task->get_future(); } +PolardbClient::DescribeApplicationAttributeOutcome PolardbClient::describeApplicationAttribute(const DescribeApplicationAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationAttributeOutcome(DescribeApplicationAttributeResult(outcome.result())); + else + return DescribeApplicationAttributeOutcome(outcome.error()); +} + +void PolardbClient::describeApplicationAttributeAsync(const DescribeApplicationAttributeRequest& request, const DescribeApplicationAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeApplicationAttributeOutcomeCallable PolardbClient::describeApplicationAttributeCallable(const DescribeApplicationAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeApplicationParametersOutcome PolardbClient::describeApplicationParameters(const DescribeApplicationParametersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationParametersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationParametersOutcome(DescribeApplicationParametersResult(outcome.result())); + else + return DescribeApplicationParametersOutcome(outcome.error()); +} + +void PolardbClient::describeApplicationParametersAsync(const DescribeApplicationParametersRequest& request, const DescribeApplicationParametersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationParameters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeApplicationParametersOutcomeCallable PolardbClient::describeApplicationParametersCallable(const DescribeApplicationParametersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationParameters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeApplicationServerlessConfOutcome PolardbClient::describeApplicationServerlessConf(const DescribeApplicationServerlessConfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationServerlessConfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationServerlessConfOutcome(DescribeApplicationServerlessConfResult(outcome.result())); + else + return DescribeApplicationServerlessConfOutcome(outcome.error()); +} + +void PolardbClient::describeApplicationServerlessConfAsync(const DescribeApplicationServerlessConfRequest& request, const DescribeApplicationServerlessConfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplicationServerlessConf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeApplicationServerlessConfOutcomeCallable PolardbClient::describeApplicationServerlessConfCallable(const DescribeApplicationServerlessConfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplicationServerlessConf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeApplicationsOutcome PolardbClient::describeApplications(const DescribeApplicationsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeApplicationsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeApplicationsOutcome(DescribeApplicationsResult(outcome.result())); + else + return DescribeApplicationsOutcome(outcome.error()); +} + +void PolardbClient::describeApplicationsAsync(const DescribeApplicationsRequest& request, const DescribeApplicationsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeApplications(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeApplicationsOutcomeCallable PolardbClient::describeApplicationsCallable(const DescribeApplicationsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeApplications(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeAutoRenewAttributeOutcome PolardbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +3003,42 @@ PolardbClient::DescribeAutoRenewAttributeOutcomeCallable PolardbClient::describe return task->get_future(); } +PolardbClient::DescribeAvailableCrossRegionsOutcome PolardbClient::describeAvailableCrossRegions(const DescribeAvailableCrossRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableCrossRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableCrossRegionsOutcome(DescribeAvailableCrossRegionsResult(outcome.result())); + else + return DescribeAvailableCrossRegionsOutcome(outcome.error()); +} + +void PolardbClient::describeAvailableCrossRegionsAsync(const DescribeAvailableCrossRegionsRequest& request, const DescribeAvailableCrossRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableCrossRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeAvailableCrossRegionsOutcomeCallable PolardbClient::describeAvailableCrossRegionsCallable(const DescribeAvailableCrossRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableCrossRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeBackupLogsOutcome PolardbClient::describeBackupLogs(const DescribeBackupLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +3111,42 @@ PolardbClient::DescribeBackupPolicyOutcomeCallable PolardbClient::describeBackup return task->get_future(); } +PolardbClient::DescribeBackupRegionsOutcome PolardbClient::describeBackupRegions(const DescribeBackupRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeBackupRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeBackupRegionsOutcome(DescribeBackupRegionsResult(outcome.result())); + else + return DescribeBackupRegionsOutcome(outcome.error()); +} + +void PolardbClient::describeBackupRegionsAsync(const DescribeBackupRegionsRequest& request, const DescribeBackupRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeBackupRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeBackupRegionsOutcomeCallable PolardbClient::describeBackupRegionsCallable(const DescribeBackupRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeBackupRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeBackupTasksOutcome PolardbClient::describeBackupTasks(const DescribeBackupTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,6 +3291,186 @@ PolardbClient::DescribeClassListOutcomeCallable PolardbClient::describeClassList return task->get_future(); } +PolardbClient::DescribeColdStorageInstanceOutcome PolardbClient::describeColdStorageInstance(const DescribeColdStorageInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeColdStorageInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeColdStorageInstanceOutcome(DescribeColdStorageInstanceResult(outcome.result())); + else + return DescribeColdStorageInstanceOutcome(outcome.error()); +} + +void PolardbClient::describeColdStorageInstanceAsync(const DescribeColdStorageInstanceRequest& request, const DescribeColdStorageInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeColdStorageInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeColdStorageInstanceOutcomeCallable PolardbClient::describeColdStorageInstanceCallable(const DescribeColdStorageInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeColdStorageInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeCronJobPolicyServerlessOutcome PolardbClient::describeCronJobPolicyServerless(const DescribeCronJobPolicyServerlessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCronJobPolicyServerlessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCronJobPolicyServerlessOutcome(DescribeCronJobPolicyServerlessResult(outcome.result())); + else + return DescribeCronJobPolicyServerlessOutcome(outcome.error()); +} + +void PolardbClient::describeCronJobPolicyServerlessAsync(const DescribeCronJobPolicyServerlessRequest& request, const DescribeCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCronJobPolicyServerless(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeCronJobPolicyServerlessOutcomeCallable PolardbClient::describeCronJobPolicyServerlessCallable(const DescribeCronJobPolicyServerlessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCronJobPolicyServerless(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeCrossCloudLevelsOutcome PolardbClient::describeCrossCloudLevels(const DescribeCrossCloudLevelsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossCloudLevelsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossCloudLevelsOutcome(DescribeCrossCloudLevelsResult(outcome.result())); + else + return DescribeCrossCloudLevelsOutcome(outcome.error()); +} + +void PolardbClient::describeCrossCloudLevelsAsync(const DescribeCrossCloudLevelsRequest& request, const DescribeCrossCloudLevelsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossCloudLevels(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeCrossCloudLevelsOutcomeCallable PolardbClient::describeCrossCloudLevelsCallable(const DescribeCrossCloudLevelsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossCloudLevels(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeCrossCloudRegionOutcome PolardbClient::describeCrossCloudRegion(const DescribeCrossCloudRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossCloudRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossCloudRegionOutcome(DescribeCrossCloudRegionResult(outcome.result())); + else + return DescribeCrossCloudRegionOutcome(outcome.error()); +} + +void PolardbClient::describeCrossCloudRegionAsync(const DescribeCrossCloudRegionRequest& request, const DescribeCrossCloudRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossCloudRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeCrossCloudRegionOutcomeCallable PolardbClient::describeCrossCloudRegionCallable(const DescribeCrossCloudRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossCloudRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeCrossCloudRegionMappingToAliyunOutcome PolardbClient::describeCrossCloudRegionMappingToAliyun(const DescribeCrossCloudRegionMappingToAliyunRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCrossCloudRegionMappingToAliyunOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCrossCloudRegionMappingToAliyunOutcome(DescribeCrossCloudRegionMappingToAliyunResult(outcome.result())); + else + return DescribeCrossCloudRegionMappingToAliyunOutcome(outcome.error()); +} + +void PolardbClient::describeCrossCloudRegionMappingToAliyunAsync(const DescribeCrossCloudRegionMappingToAliyunRequest& request, const DescribeCrossCloudRegionMappingToAliyunAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCrossCloudRegionMappingToAliyun(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeCrossCloudRegionMappingToAliyunOutcomeCallable PolardbClient::describeCrossCloudRegionMappingToAliyunCallable(const DescribeCrossCloudRegionMappingToAliyunRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCrossCloudRegionMappingToAliyun(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterAccessWhitelistOutcome PolardbClient::describeDBClusterAccessWhitelist(const DescribeDBClusterAccessWhitelistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1959,6 +3651,42 @@ PolardbClient::DescribeDBClusterConnectivityOutcomeCallable PolardbClient::descr return task->get_future(); } +PolardbClient::DescribeDBClusterEncryptionKeyOutcome PolardbClient::describeDBClusterEncryptionKey(const DescribeDBClusterEncryptionKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterEncryptionKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterEncryptionKeyOutcome(DescribeDBClusterEncryptionKeyResult(outcome.result())); + else + return DescribeDBClusterEncryptionKeyOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterEncryptionKeyAsync(const DescribeDBClusterEncryptionKeyRequest& request, const DescribeDBClusterEncryptionKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterEncryptionKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterEncryptionKeyOutcomeCallable PolardbClient::describeDBClusterEncryptionKeyCallable(const DescribeDBClusterEncryptionKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterEncryptionKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterEndpointsOutcome PolardbClient::describeDBClusterEndpoints(const DescribeDBClusterEndpointsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +3723,42 @@ PolardbClient::DescribeDBClusterEndpointsOutcomeCallable PolardbClient::describe return task->get_future(); } +PolardbClient::DescribeDBClusterEndpointsZonalOutcome PolardbClient::describeDBClusterEndpointsZonal(const DescribeDBClusterEndpointsZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterEndpointsZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterEndpointsZonalOutcome(DescribeDBClusterEndpointsZonalResult(outcome.result())); + else + return DescribeDBClusterEndpointsZonalOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterEndpointsZonalAsync(const DescribeDBClusterEndpointsZonalRequest& request, const DescribeDBClusterEndpointsZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterEndpointsZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterEndpointsZonalOutcomeCallable PolardbClient::describeDBClusterEndpointsZonalCallable(const DescribeDBClusterEndpointsZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterEndpointsZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterMigrationOutcome PolardbClient::describeDBClusterMigration(const DescribeDBClusterMigrationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2067,6 +3831,42 @@ PolardbClient::DescribeDBClusterMonitorOutcomeCallable PolardbClient::describeDB return task->get_future(); } +PolardbClient::DescribeDBClusterNetInfoOutcome PolardbClient::describeDBClusterNetInfo(const DescribeDBClusterNetInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterNetInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterNetInfoOutcome(DescribeDBClusterNetInfoResult(outcome.result())); + else + return DescribeDBClusterNetInfoOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterNetInfoAsync(const DescribeDBClusterNetInfoRequest& request, const DescribeDBClusterNetInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterNetInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterNetInfoOutcomeCallable PolardbClient::describeDBClusterNetInfoCallable(const DescribeDBClusterNetInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterNetInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterParametersOutcome PolardbClient::describeDBClusterParameters(const DescribeDBClusterParametersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2139,6 +3939,42 @@ PolardbClient::DescribeDBClusterPerformanceOutcomeCallable PolardbClient::descri return task->get_future(); } +PolardbClient::DescribeDBClusterProxyOutcome PolardbClient::describeDBClusterProxy(const DescribeDBClusterProxyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterProxyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterProxyOutcome(DescribeDBClusterProxyResult(outcome.result())); + else + return DescribeDBClusterProxyOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterProxyAsync(const DescribeDBClusterProxyRequest& request, const DescribeDBClusterProxyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterProxy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterProxyOutcomeCallable PolardbClient::describeDBClusterProxyCallable(const DescribeDBClusterProxyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterProxy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterSSLOutcome PolardbClient::describeDBClusterSSL(const DescribeDBClusterSSLRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2283,6 +4119,42 @@ PolardbClient::DescribeDBClusterVersionOutcomeCallable PolardbClient::describeDB return task->get_future(); } +PolardbClient::DescribeDBClusterVersionZonalOutcome PolardbClient::describeDBClusterVersionZonal(const DescribeDBClusterVersionZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterVersionZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterVersionZonalOutcome(DescribeDBClusterVersionZonalResult(outcome.result())); + else + return DescribeDBClusterVersionZonalOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterVersionZonalAsync(const DescribeDBClusterVersionZonalRequest& request, const DescribeDBClusterVersionZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterVersionZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterVersionZonalOutcomeCallable PolardbClient::describeDBClusterVersionZonalCallable(const DescribeDBClusterVersionZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterVersionZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClustersOutcome PolardbClient::describeDBClusters(const DescribeDBClustersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +4227,42 @@ PolardbClient::DescribeDBClustersWithBackupsOutcomeCallable PolardbClient::descr return task->get_future(); } +PolardbClient::DescribeDBClustersZonalOutcome PolardbClient::describeDBClustersZonal(const DescribeDBClustersZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClustersZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClustersZonalOutcome(DescribeDBClustersZonalResult(outcome.result())); + else + return DescribeDBClustersZonalOutcome(outcome.error()); +} + +void PolardbClient::describeDBClustersZonalAsync(const DescribeDBClustersZonalRequest& request, const DescribeDBClustersZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClustersZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClustersZonalOutcomeCallable PolardbClient::describeDBClustersZonalCallable(const DescribeDBClustersZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClustersZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBInitializeVariableOutcome PolardbClient::describeDBInitializeVariable(const DescribeDBInitializeVariableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2391,6 +4299,42 @@ PolardbClient::DescribeDBInitializeVariableOutcomeCallable PolardbClient::descri return task->get_future(); } +PolardbClient::DescribeDBInstancePerformanceOutcome PolardbClient::describeDBInstancePerformance(const DescribeDBInstancePerformanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBInstancePerformanceOutcome(DescribeDBInstancePerformanceResult(outcome.result())); + else + return DescribeDBInstancePerformanceOutcome(outcome.error()); +} + +void PolardbClient::describeDBInstancePerformanceAsync(const DescribeDBInstancePerformanceRequest& request, const DescribeDBInstancePerformanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBInstancePerformance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBInstancePerformanceOutcomeCallable PolardbClient::describeDBInstancePerformanceCallable(const DescribeDBInstancePerformanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBInstancePerformance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBLinksOutcome PolardbClient::describeDBLinks(const DescribeDBLinksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +4371,78 @@ PolardbClient::DescribeDBLinksOutcomeCallable PolardbClient::describeDBLinksCall return task->get_future(); } +PolardbClient::DescribeDBLogFilesOutcome PolardbClient::describeDBLogFiles(const DescribeDBLogFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBLogFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBLogFilesOutcome(DescribeDBLogFilesResult(outcome.result())); + else + return DescribeDBLogFilesOutcome(outcome.error()); +} + +void PolardbClient::describeDBLogFilesAsync(const DescribeDBLogFilesRequest& request, const DescribeDBLogFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBLogFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBLogFilesOutcomeCallable PolardbClient::describeDBLogFilesCallable(const DescribeDBLogFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBLogFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDBMiniEngineVersionsOutcome PolardbClient::describeDBMiniEngineVersions(const DescribeDBMiniEngineVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBMiniEngineVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBMiniEngineVersionsOutcome(DescribeDBMiniEngineVersionsResult(outcome.result())); + else + return DescribeDBMiniEngineVersionsOutcome(outcome.error()); +} + +void PolardbClient::describeDBMiniEngineVersionsAsync(const DescribeDBMiniEngineVersionsRequest& request, const DescribeDBMiniEngineVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBMiniEngineVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBMiniEngineVersionsOutcomeCallable PolardbClient::describeDBMiniEngineVersionsCallable(const DescribeDBMiniEngineVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBMiniEngineVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBNodePerformanceOutcome PolardbClient::describeDBNodePerformance(const DescribeDBNodePerformanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,6 +4623,78 @@ PolardbClient::DescribeDatabasesOutcomeCallable PolardbClient::describeDatabases return task->get_future(); } +PolardbClient::DescribeDatabasesZonalOutcome PolardbClient::describeDatabasesZonal(const DescribeDatabasesZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDatabasesZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDatabasesZonalOutcome(DescribeDatabasesZonalResult(outcome.result())); + else + return DescribeDatabasesZonalOutcome(outcome.error()); +} + +void PolardbClient::describeDatabasesZonalAsync(const DescribeDatabasesZonalRequest& request, const DescribeDatabasesZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDatabasesZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDatabasesZonalOutcomeCallable PolardbClient::describeDatabasesZonalCallable(const DescribeDatabasesZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDatabasesZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeDbClusterAttributeZonalOutcome PolardbClient::describeDbClusterAttributeZonal(const DescribeDbClusterAttributeZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDbClusterAttributeZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDbClusterAttributeZonalOutcome(DescribeDbClusterAttributeZonalResult(outcome.result())); + else + return DescribeDbClusterAttributeZonalOutcome(outcome.error()); +} + +void PolardbClient::describeDbClusterAttributeZonalAsync(const DescribeDbClusterAttributeZonalRequest& request, const DescribeDbClusterAttributeZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDbClusterAttributeZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDbClusterAttributeZonalOutcomeCallable PolardbClient::describeDbClusterAttributeZonalCallable(const DescribeDbClusterAttributeZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDbClusterAttributeZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDetachedBackupsOutcome PolardbClient::describeDetachedBackups(const DescribeDetachedBackupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2643,6 +4731,186 @@ PolardbClient::DescribeDetachedBackupsOutcomeCallable PolardbClient::describeDet return task->get_future(); } +PolardbClient::DescribeEncryptionDBRolePrivilegeOutcome PolardbClient::describeEncryptionDBRolePrivilege(const DescribeEncryptionDBRolePrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEncryptionDBRolePrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEncryptionDBRolePrivilegeOutcome(DescribeEncryptionDBRolePrivilegeResult(outcome.result())); + else + return DescribeEncryptionDBRolePrivilegeOutcome(outcome.error()); +} + +void PolardbClient::describeEncryptionDBRolePrivilegeAsync(const DescribeEncryptionDBRolePrivilegeRequest& request, const DescribeEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEncryptionDBRolePrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeEncryptionDBRolePrivilegeOutcomeCallable PolardbClient::describeEncryptionDBRolePrivilegeCallable(const DescribeEncryptionDBRolePrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEncryptionDBRolePrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeEncryptionDBSecretOutcome PolardbClient::describeEncryptionDBSecret(const DescribeEncryptionDBSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEncryptionDBSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEncryptionDBSecretOutcome(DescribeEncryptionDBSecretResult(outcome.result())); + else + return DescribeEncryptionDBSecretOutcome(outcome.error()); +} + +void PolardbClient::describeEncryptionDBSecretAsync(const DescribeEncryptionDBSecretRequest& request, const DescribeEncryptionDBSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEncryptionDBSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeEncryptionDBSecretOutcomeCallable PolardbClient::describeEncryptionDBSecretCallable(const DescribeEncryptionDBSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEncryptionDBSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeExtensionsOutcome PolardbClient::describeExtensions(const DescribeExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeExtensionsOutcome(DescribeExtensionsResult(outcome.result())); + else + return DescribeExtensionsOutcome(outcome.error()); +} + +void PolardbClient::describeExtensionsAsync(const DescribeExtensionsRequest& request, const DescribeExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeExtensionsOutcomeCallable PolardbClient::describeExtensionsCallable(const DescribeExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeFirewallRulesOutcome PolardbClient::describeFirewallRules(const DescribeFirewallRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeFirewallRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeFirewallRulesOutcome(DescribeFirewallRulesResult(outcome.result())); + else + return DescribeFirewallRulesOutcome(outcome.error()); +} + +void PolardbClient::describeFirewallRulesAsync(const DescribeFirewallRulesRequest& request, const DescribeFirewallRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeFirewallRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeFirewallRulesOutcomeCallable PolardbClient::describeFirewallRulesCallable(const DescribeFirewallRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeFirewallRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeGlobalDataNetworkListOutcome PolardbClient::describeGlobalDataNetworkList(const DescribeGlobalDataNetworkListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGlobalDataNetworkListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGlobalDataNetworkListOutcome(DescribeGlobalDataNetworkListResult(outcome.result())); + else + return DescribeGlobalDataNetworkListOutcome(outcome.error()); +} + +void PolardbClient::describeGlobalDataNetworkListAsync(const DescribeGlobalDataNetworkListRequest& request, const DescribeGlobalDataNetworkListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGlobalDataNetworkList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeGlobalDataNetworkListOutcomeCallable PolardbClient::describeGlobalDataNetworkListCallable(const DescribeGlobalDataNetworkListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGlobalDataNetworkList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeGlobalDatabaseNetworkOutcome PolardbClient::describeGlobalDatabaseNetwork(const DescribeGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2787,6 +5055,114 @@ PolardbClient::DescribeGlobalSecurityIPGroupRelationOutcomeCallable PolardbClien return task->get_future(); } +PolardbClient::DescribeHALogsOutcome PolardbClient::describeHALogs(const DescribeHALogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHALogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHALogsOutcome(DescribeHALogsResult(outcome.result())); + else + return DescribeHALogsOutcome(outcome.error()); +} + +void PolardbClient::describeHALogsAsync(const DescribeHALogsRequest& request, const DescribeHALogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHALogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeHALogsOutcomeCallable PolardbClient::describeHALogsCallable(const DescribeHALogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHALogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeHistoryTasksOutcome PolardbClient::describeHistoryTasks(const DescribeHistoryTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHistoryTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHistoryTasksOutcome(DescribeHistoryTasksResult(outcome.result())); + else + return DescribeHistoryTasksOutcome(outcome.error()); +} + +void PolardbClient::describeHistoryTasksAsync(const DescribeHistoryTasksRequest& request, const DescribeHistoryTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHistoryTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeHistoryTasksOutcomeCallable PolardbClient::describeHistoryTasksCallable(const DescribeHistoryTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHistoryTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeHistoryTasksStatOutcome PolardbClient::describeHistoryTasksStat(const DescribeHistoryTasksStatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHistoryTasksStatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHistoryTasksStatOutcome(DescribeHistoryTasksStatResult(outcome.result())); + else + return DescribeHistoryTasksStatOutcome(outcome.error()); +} + +void PolardbClient::describeHistoryTasksStatAsync(const DescribeHistoryTasksStatRequest& request, const DescribeHistoryTasksStatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHistoryTasksStat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeHistoryTasksStatOutcomeCallable PolardbClient::describeHistoryTasksStatCallable(const DescribeHistoryTasksStatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHistoryTasksStat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeLicenseOrderDetailsOutcome PolardbClient::describeLicenseOrderDetails(const DescribeLicenseOrderDetailsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2859,6 +5235,42 @@ PolardbClient::DescribeLicenseOrdersOutcomeCallable PolardbClient::describeLicen return task->get_future(); } +PolardbClient::DescribeLocalAvailableRecoveryTimeOutcome PolardbClient::describeLocalAvailableRecoveryTime(const DescribeLocalAvailableRecoveryTimeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLocalAvailableRecoveryTimeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLocalAvailableRecoveryTimeOutcome(DescribeLocalAvailableRecoveryTimeResult(outcome.result())); + else + return DescribeLocalAvailableRecoveryTimeOutcome(outcome.error()); +} + +void PolardbClient::describeLocalAvailableRecoveryTimeAsync(const DescribeLocalAvailableRecoveryTimeRequest& request, const DescribeLocalAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLocalAvailableRecoveryTime(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeLocalAvailableRecoveryTimeOutcomeCallable PolardbClient::describeLocalAvailableRecoveryTimeCallable(const DescribeLocalAvailableRecoveryTimeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLocalAvailableRecoveryTime(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeLogBackupPolicyOutcome PolardbClient::describeLogBackupPolicy(const DescribeLogBackupPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2967,6 +5379,78 @@ PolardbClient::DescribeMetaListOutcomeCallable PolardbClient::describeMetaListCa return task->get_future(); } +PolardbClient::DescribeModifyParameterLogOutcome PolardbClient::describeModifyParameterLog(const DescribeModifyParameterLogRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeModifyParameterLogOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeModifyParameterLogOutcome(DescribeModifyParameterLogResult(outcome.result())); + else + return DescribeModifyParameterLogOutcome(outcome.error()); +} + +void PolardbClient::describeModifyParameterLogAsync(const DescribeModifyParameterLogRequest& request, const DescribeModifyParameterLogAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeModifyParameterLog(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeModifyParameterLogOutcomeCallable PolardbClient::describeModifyParameterLogCallable(const DescribeModifyParameterLogRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeModifyParameterLog(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeNetworkChannelOutcome PolardbClient::describeNetworkChannel(const DescribeNetworkChannelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNetworkChannelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNetworkChannelOutcome(DescribeNetworkChannelResult(outcome.result())); + else + return DescribeNetworkChannelOutcome(outcome.error()); +} + +void PolardbClient::describeNetworkChannelAsync(const DescribeNetworkChannelRequest& request, const DescribeNetworkChannelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNetworkChannel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeNetworkChannelOutcomeCallable PolardbClient::describeNetworkChannelCallable(const DescribeNetworkChannelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNetworkChannel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeParameterGroupOutcome PolardbClient::describeParameterGroup(const DescribeParameterGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3183,6 +5667,78 @@ PolardbClient::DescribePolarSQLCollectorPolicyOutcomeCallable PolardbClient::des return task->get_future(); } +PolardbClient::DescribeRdsVSwitchsOutcome PolardbClient::describeRdsVSwitchs(const DescribeRdsVSwitchsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVSwitchsOutcome(DescribeRdsVSwitchsResult(outcome.result())); + else + return DescribeRdsVSwitchsOutcome(outcome.error()); +} + +void PolardbClient::describeRdsVSwitchsAsync(const DescribeRdsVSwitchsRequest& request, const DescribeRdsVSwitchsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVSwitchs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeRdsVSwitchsOutcomeCallable PolardbClient::describeRdsVSwitchsCallable(const DescribeRdsVSwitchsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVSwitchs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeRdsVpcsOutcome PolardbClient::describeRdsVpcs(const DescribeRdsVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRdsVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRdsVpcsOutcome(DescribeRdsVpcsResult(outcome.result())); + else + return DescribeRdsVpcsOutcome(outcome.error()); +} + +void PolardbClient::describeRdsVpcsAsync(const DescribeRdsVpcsRequest& request, const DescribeRdsVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRdsVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeRdsVpcsOutcomeCallable PolardbClient::describeRdsVpcsCallable(const DescribeRdsVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRdsVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeRegionsOutcome PolardbClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +5775,78 @@ PolardbClient::DescribeRegionsOutcomeCallable PolardbClient::describeRegionsCall return task->get_future(); } +PolardbClient::DescribeResourcePackagesOutcome PolardbClient::describeResourcePackages(const DescribeResourcePackagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeResourcePackagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeResourcePackagesOutcome(DescribeResourcePackagesResult(outcome.result())); + else + return DescribeResourcePackagesOutcome(outcome.error()); +} + +void PolardbClient::describeResourcePackagesAsync(const DescribeResourcePackagesRequest& request, const DescribeResourcePackagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeResourcePackages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeResourcePackagesOutcomeCallable PolardbClient::describeResourcePackagesCallable(const DescribeResourcePackagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeResourcePackages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeSQLRateLimitingRulesOutcome PolardbClient::describeSQLRateLimitingRules(const DescribeSQLRateLimitingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSQLRateLimitingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSQLRateLimitingRulesOutcome(DescribeSQLRateLimitingRulesResult(outcome.result())); + else + return DescribeSQLRateLimitingRulesOutcome(outcome.error()); +} + +void PolardbClient::describeSQLRateLimitingRulesAsync(const DescribeSQLRateLimitingRulesRequest& request, const DescribeSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSQLRateLimitingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeSQLRateLimitingRulesOutcomeCallable PolardbClient::describeSQLRateLimitingRulesCallable(const DescribeSQLRateLimitingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSQLRateLimitingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeScheduleTasksOutcome PolardbClient::describeScheduleTasks(const DescribeScheduleTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3363,6 +5991,42 @@ PolardbClient::DescribeTasksOutcomeCallable PolardbClient::describeTasksCallable return task->get_future(); } +PolardbClient::DescribeUpgradeReportOutcome PolardbClient::describeUpgradeReport(const DescribeUpgradeReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeUpgradeReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeUpgradeReportOutcome(DescribeUpgradeReportResult(outcome.result())); + else + return DescribeUpgradeReportOutcome(outcome.error()); +} + +void PolardbClient::describeUpgradeReportAsync(const DescribeUpgradeReportRequest& request, const DescribeUpgradeReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeUpgradeReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeUpgradeReportOutcomeCallable PolardbClient::describeUpgradeReportCallable(const DescribeUpgradeReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeUpgradeReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeUserEncryptionKeyListOutcome PolardbClient::describeUserEncryptionKeyList(const DescribeUserEncryptionKeyListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3399,6 +6063,42 @@ PolardbClient::DescribeUserEncryptionKeyListOutcomeCallable PolardbClient::descr return task->get_future(); } +PolardbClient::DescribeVSwitchListOutcome PolardbClient::describeVSwitchList(const DescribeVSwitchListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVSwitchListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVSwitchListOutcome(DescribeVSwitchListResult(outcome.result())); + else + return DescribeVSwitchListOutcome(outcome.error()); +} + +void PolardbClient::describeVSwitchListAsync(const DescribeVSwitchListRequest& request, const DescribeVSwitchListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVSwitchList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeVSwitchListOutcomeCallable PolardbClient::describeVSwitchListCallable(const DescribeVSwitchListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVSwitchList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeVSwitchesOutcome PolardbClient::describeVSwitches(const DescribeVSwitchesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3435,6 +6135,114 @@ PolardbClient::DescribeVSwitchesOutcomeCallable PolardbClient::describeVSwitches return task->get_future(); } +PolardbClient::DescribeVpcsOutcome PolardbClient::describeVpcs(const DescribeVpcsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVpcsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVpcsOutcome(DescribeVpcsResult(outcome.result())); + else + return DescribeVpcsOutcome(outcome.error()); +} + +void PolardbClient::describeVpcsAsync(const DescribeVpcsRequest& request, const DescribeVpcsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVpcs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeVpcsOutcomeCallable PolardbClient::describeVpcsCallable(const DescribeVpcsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVpcs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DescribeZonesOutcome PolardbClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void PolardbClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeZonesOutcomeCallable PolardbClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::DisableDBClusterOrcaOutcome PolardbClient::disableDBClusterOrca(const DisableDBClusterOrcaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableDBClusterOrcaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableDBClusterOrcaOutcome(DisableDBClusterOrcaResult(outcome.result())); + else + return DisableDBClusterOrcaOutcome(outcome.error()); +} + +void PolardbClient::disableDBClusterOrcaAsync(const DisableDBClusterOrcaRequest& request, const DisableDBClusterOrcaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableDBClusterOrca(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DisableDBClusterOrcaOutcomeCallable PolardbClient::disableDBClusterOrcaCallable(const DisableDBClusterOrcaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableDBClusterOrca(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DisableDBClusterServerlessOutcome PolardbClient::disableDBClusterServerless(const DisableDBClusterServerlessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3471,6 +6279,42 @@ PolardbClient::DisableDBClusterServerlessOutcomeCallable PolardbClient::disableD return task->get_future(); } +PolardbClient::EnableDBClusterOrcaOutcome PolardbClient::enableDBClusterOrca(const EnableDBClusterOrcaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableDBClusterOrcaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableDBClusterOrcaOutcome(EnableDBClusterOrcaResult(outcome.result())); + else + return EnableDBClusterOrcaOutcome(outcome.error()); +} + +void PolardbClient::enableDBClusterOrcaAsync(const EnableDBClusterOrcaRequest& request, const EnableDBClusterOrcaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableDBClusterOrca(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::EnableDBClusterOrcaOutcomeCallable PolardbClient::enableDBClusterOrcaCallable(const EnableDBClusterOrcaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableDBClusterOrca(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::EnableDBClusterServerlessOutcome PolardbClient::enableDBClusterServerless(const EnableDBClusterServerlessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3543,6 +6387,42 @@ PolardbClient::EnableFirewallRulesOutcomeCallable PolardbClient::enableFirewallR return task->get_future(); } +PolardbClient::EnableSQLRateLimitingRulesOutcome PolardbClient::enableSQLRateLimitingRules(const EnableSQLRateLimitingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableSQLRateLimitingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableSQLRateLimitingRulesOutcome(EnableSQLRateLimitingRulesResult(outcome.result())); + else + return EnableSQLRateLimitingRulesOutcome(outcome.error()); +} + +void PolardbClient::enableSQLRateLimitingRulesAsync(const EnableSQLRateLimitingRulesRequest& request, const EnableSQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableSQLRateLimitingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::EnableSQLRateLimitingRulesOutcomeCallable PolardbClient::enableSQLRateLimitingRulesCallable(const EnableSQLRateLimitingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableSQLRateLimitingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::EvaluateRegionResourceOutcome PolardbClient::evaluateRegionResource(const EvaluateRegionResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3579,6 +6459,42 @@ PolardbClient::EvaluateRegionResourceOutcomeCallable PolardbClient::evaluateRegi return task->get_future(); } +PolardbClient::ExecuteCrossCloudOpenAPIOutcome PolardbClient::executeCrossCloudOpenAPI(const ExecuteCrossCloudOpenAPIRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecuteCrossCloudOpenAPIOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecuteCrossCloudOpenAPIOutcome(ExecuteCrossCloudOpenAPIResult(outcome.result())); + else + return ExecuteCrossCloudOpenAPIOutcome(outcome.error()); +} + +void PolardbClient::executeCrossCloudOpenAPIAsync(const ExecuteCrossCloudOpenAPIRequest& request, const ExecuteCrossCloudOpenAPIAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executeCrossCloudOpenAPI(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ExecuteCrossCloudOpenAPIOutcomeCallable PolardbClient::executeCrossCloudOpenAPICallable(const ExecuteCrossCloudOpenAPIRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executeCrossCloudOpenAPI(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::FailoverDBClusterOutcome PolardbClient::failoverDBCluster(const FailoverDBClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3615,6 +6531,78 @@ PolardbClient::FailoverDBClusterOutcomeCallable PolardbClient::failoverDBCluster return task->get_future(); } +PolardbClient::FailoverDBClusterZonalOutcome PolardbClient::failoverDBClusterZonal(const FailoverDBClusterZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FailoverDBClusterZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FailoverDBClusterZonalOutcome(FailoverDBClusterZonalResult(outcome.result())); + else + return FailoverDBClusterZonalOutcome(outcome.error()); +} + +void PolardbClient::failoverDBClusterZonalAsync(const FailoverDBClusterZonalRequest& request, const FailoverDBClusterZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, failoverDBClusterZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::FailoverDBClusterZonalOutcomeCallable PolardbClient::failoverDBClusterZonalCallable(const FailoverDBClusterZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->failoverDBClusterZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::GenerateUpgradeReportForSyncCloneOutcome PolardbClient::generateUpgradeReportForSyncClone(const GenerateUpgradeReportForSyncCloneRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateUpgradeReportForSyncCloneOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateUpgradeReportForSyncCloneOutcome(GenerateUpgradeReportForSyncCloneResult(outcome.result())); + else + return GenerateUpgradeReportForSyncCloneOutcome(outcome.error()); +} + +void PolardbClient::generateUpgradeReportForSyncCloneAsync(const GenerateUpgradeReportForSyncCloneRequest& request, const GenerateUpgradeReportForSyncCloneAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateUpgradeReportForSyncClone(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::GenerateUpgradeReportForSyncCloneOutcomeCallable PolardbClient::generateUpgradeReportForSyncCloneCallable(const GenerateUpgradeReportForSyncCloneRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateUpgradeReportForSyncClone(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::GrantAccountPrivilegeOutcome PolardbClient::grantAccountPrivilege(const GrantAccountPrivilegeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3651,6 +6639,78 @@ PolardbClient::GrantAccountPrivilegeOutcomeCallable PolardbClient::grantAccountP return task->get_future(); } +PolardbClient::GrantAccountPrivilegeZonalOutcome PolardbClient::grantAccountPrivilegeZonal(const GrantAccountPrivilegeZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GrantAccountPrivilegeZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GrantAccountPrivilegeZonalOutcome(GrantAccountPrivilegeZonalResult(outcome.result())); + else + return GrantAccountPrivilegeZonalOutcome(outcome.error()); +} + +void PolardbClient::grantAccountPrivilegeZonalAsync(const GrantAccountPrivilegeZonalRequest& request, const GrantAccountPrivilegeZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, grantAccountPrivilegeZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::GrantAccountPrivilegeZonalOutcomeCallable PolardbClient::grantAccountPrivilegeZonalCallable(const GrantAccountPrivilegeZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->grantAccountPrivilegeZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ListOrdersOutcome PolardbClient::listOrders(const ListOrdersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOrdersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOrdersOutcome(ListOrdersResult(outcome.result())); + else + return ListOrdersOutcome(outcome.error()); +} + +void PolardbClient::listOrdersAsync(const ListOrdersRequest& request, const ListOrdersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOrders(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ListOrdersOutcomeCallable PolardbClient::listOrdersCallable(const ListOrdersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOrders(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ListTagResourcesOutcome PolardbClient::listTagResources(const ListTagResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3687,6 +6747,42 @@ PolardbClient::ListTagResourcesOutcomeCallable PolardbClient::listTagResourcesCa return task->get_future(); } +PolardbClient::ListTagResourcesForRegionOutcome PolardbClient::listTagResourcesForRegion(const ListTagResourcesForRegionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesForRegionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesForRegionOutcome(ListTagResourcesForRegionResult(outcome.result())); + else + return ListTagResourcesForRegionOutcome(outcome.error()); +} + +void PolardbClient::listTagResourcesForRegionAsync(const ListTagResourcesForRegionRequest& request, const ListTagResourcesForRegionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResourcesForRegion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ListTagResourcesForRegionOutcomeCallable PolardbClient::listTagResourcesForRegionCallable(const ListTagResourcesForRegionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResourcesForRegion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ManuallyStartDBClusterOutcome PolardbClient::manuallyStartDBCluster(const ManuallyStartDBClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3723,6 +6819,42 @@ PolardbClient::ManuallyStartDBClusterOutcomeCallable PolardbClient::manuallyStar return task->get_future(); } +PolardbClient::ModifyAIDBClusterDescriptionOutcome PolardbClient::modifyAIDBClusterDescription(const ModifyAIDBClusterDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAIDBClusterDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAIDBClusterDescriptionOutcome(ModifyAIDBClusterDescriptionResult(outcome.result())); + else + return ModifyAIDBClusterDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyAIDBClusterDescriptionAsync(const ModifyAIDBClusterDescriptionRequest& request, const ModifyAIDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAIDBClusterDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAIDBClusterDescriptionOutcomeCallable PolardbClient::modifyAIDBClusterDescriptionCallable(const ModifyAIDBClusterDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAIDBClusterDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyAccountDescriptionOutcome PolardbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3759,6 +6891,78 @@ PolardbClient::ModifyAccountDescriptionOutcomeCallable PolardbClient::modifyAcco return task->get_future(); } +PolardbClient::ModifyAccountDescriptionZonalOutcome PolardbClient::modifyAccountDescriptionZonal(const ModifyAccountDescriptionZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountDescriptionZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountDescriptionZonalOutcome(ModifyAccountDescriptionZonalResult(outcome.result())); + else + return ModifyAccountDescriptionZonalOutcome(outcome.error()); +} + +void PolardbClient::modifyAccountDescriptionZonalAsync(const ModifyAccountDescriptionZonalRequest& request, const ModifyAccountDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountDescriptionZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAccountDescriptionZonalOutcomeCallable PolardbClient::modifyAccountDescriptionZonalCallable(const ModifyAccountDescriptionZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountDescriptionZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyAccountLockStateOutcome PolardbClient::modifyAccountLockState(const ModifyAccountLockStateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountLockStateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountLockStateOutcome(ModifyAccountLockStateResult(outcome.result())); + else + return ModifyAccountLockStateOutcome(outcome.error()); +} + +void PolardbClient::modifyAccountLockStateAsync(const ModifyAccountLockStateRequest& request, const ModifyAccountLockStateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountLockState(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAccountLockStateOutcomeCallable PolardbClient::modifyAccountLockStateCallable(const ModifyAccountLockStateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountLockState(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyAccountPasswordOutcome PolardbClient::modifyAccountPassword(const ModifyAccountPasswordRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3795,6 +6999,78 @@ PolardbClient::ModifyAccountPasswordOutcomeCallable PolardbClient::modifyAccount return task->get_future(); } +PolardbClient::ModifyAccountPasswordZonalOutcome PolardbClient::modifyAccountPasswordZonal(const ModifyAccountPasswordZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAccountPasswordZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAccountPasswordZonalOutcome(ModifyAccountPasswordZonalResult(outcome.result())); + else + return ModifyAccountPasswordZonalOutcome(outcome.error()); +} + +void PolardbClient::modifyAccountPasswordZonalAsync(const ModifyAccountPasswordZonalRequest& request, const ModifyAccountPasswordZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAccountPasswordZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyAccountPasswordZonalOutcomeCallable PolardbClient::modifyAccountPasswordZonalCallable(const ModifyAccountPasswordZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAccountPasswordZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyActiveOperationMaintainConfOutcome PolardbClient::modifyActiveOperationMaintainConf(const ModifyActiveOperationMaintainConfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyActiveOperationMaintainConfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyActiveOperationMaintainConfOutcome(ModifyActiveOperationMaintainConfResult(outcome.result())); + else + return ModifyActiveOperationMaintainConfOutcome(outcome.error()); +} + +void PolardbClient::modifyActiveOperationMaintainConfAsync(const ModifyActiveOperationMaintainConfRequest& request, const ModifyActiveOperationMaintainConfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyActiveOperationMaintainConf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyActiveOperationMaintainConfOutcomeCallable PolardbClient::modifyActiveOperationMaintainConfCallable(const ModifyActiveOperationMaintainConfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyActiveOperationMaintainConf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyActiveOperationTasksOutcome PolardbClient::modifyActiveOperationTasks(const ModifyActiveOperationTasksRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3831,6 +7107,150 @@ PolardbClient::ModifyActiveOperationTasksOutcomeCallable PolardbClient::modifyAc return task->get_future(); } +PolardbClient::ModifyApplicationDescriptionOutcome PolardbClient::modifyApplicationDescription(const ModifyApplicationDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApplicationDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApplicationDescriptionOutcome(ModifyApplicationDescriptionResult(outcome.result())); + else + return ModifyApplicationDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyApplicationDescriptionAsync(const ModifyApplicationDescriptionRequest& request, const ModifyApplicationDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApplicationDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyApplicationDescriptionOutcomeCallable PolardbClient::modifyApplicationDescriptionCallable(const ModifyApplicationDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApplicationDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyApplicationParameterOutcome PolardbClient::modifyApplicationParameter(const ModifyApplicationParameterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApplicationParameterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApplicationParameterOutcome(ModifyApplicationParameterResult(outcome.result())); + else + return ModifyApplicationParameterOutcome(outcome.error()); +} + +void PolardbClient::modifyApplicationParameterAsync(const ModifyApplicationParameterRequest& request, const ModifyApplicationParameterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApplicationParameter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyApplicationParameterOutcomeCallable PolardbClient::modifyApplicationParameterCallable(const ModifyApplicationParameterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApplicationParameter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyApplicationServerlessConfOutcome PolardbClient::modifyApplicationServerlessConf(const ModifyApplicationServerlessConfRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApplicationServerlessConfOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApplicationServerlessConfOutcome(ModifyApplicationServerlessConfResult(outcome.result())); + else + return ModifyApplicationServerlessConfOutcome(outcome.error()); +} + +void PolardbClient::modifyApplicationServerlessConfAsync(const ModifyApplicationServerlessConfRequest& request, const ModifyApplicationServerlessConfAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApplicationServerlessConf(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyApplicationServerlessConfOutcomeCallable PolardbClient::modifyApplicationServerlessConfCallable(const ModifyApplicationServerlessConfRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApplicationServerlessConf(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyApplicationWhitelistOutcome PolardbClient::modifyApplicationWhitelist(const ModifyApplicationWhitelistRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyApplicationWhitelistOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyApplicationWhitelistOutcome(ModifyApplicationWhitelistResult(outcome.result())); + else + return ModifyApplicationWhitelistOutcome(outcome.error()); +} + +void PolardbClient::modifyApplicationWhitelistAsync(const ModifyApplicationWhitelistRequest& request, const ModifyApplicationWhitelistAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyApplicationWhitelist(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyApplicationWhitelistOutcomeCallable PolardbClient::modifyApplicationWhitelistCallable(const ModifyApplicationWhitelistRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyApplicationWhitelist(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyAutoRenewAttributeOutcome PolardbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3903,6 +7323,42 @@ PolardbClient::ModifyBackupPolicyOutcomeCallable PolardbClient::modifyBackupPoli return task->get_future(); } +PolardbClient::ModifyCronJobPolicyServerlessOutcome PolardbClient::modifyCronJobPolicyServerless(const ModifyCronJobPolicyServerlessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyCronJobPolicyServerlessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyCronJobPolicyServerlessOutcome(ModifyCronJobPolicyServerlessResult(outcome.result())); + else + return ModifyCronJobPolicyServerlessOutcome(outcome.error()); +} + +void PolardbClient::modifyCronJobPolicyServerlessAsync(const ModifyCronJobPolicyServerlessRequest& request, const ModifyCronJobPolicyServerlessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyCronJobPolicyServerless(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyCronJobPolicyServerlessOutcomeCallable PolardbClient::modifyCronJobPolicyServerlessCallable(const ModifyCronJobPolicyServerlessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyCronJobPolicyServerless(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterOutcome PolardbClient::modifyDBCluster(const ModifyDBClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4011,6 +7467,42 @@ PolardbClient::ModifyDBClusterAndNodesParametersOutcomeCallable PolardbClient::m return task->get_future(); } +PolardbClient::ModifyDBClusterArchOutcome PolardbClient::modifyDBClusterArch(const ModifyDBClusterArchRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterArchOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterArchOutcome(ModifyDBClusterArchResult(outcome.result())); + else + return ModifyDBClusterArchOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterArchAsync(const ModifyDBClusterArchRequest& request, const ModifyDBClusterArchAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterArch(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterArchOutcomeCallable PolardbClient::modifyDBClusterArchCallable(const ModifyDBClusterArchRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterArch(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterAuditLogCollectorOutcome PolardbClient::modifyDBClusterAuditLogCollector(const ModifyDBClusterAuditLogCollectorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4119,6 +7611,42 @@ PolardbClient::ModifyDBClusterDescriptionOutcomeCallable PolardbClient::modifyDB return task->get_future(); } +PolardbClient::ModifyDBClusterDescriptionZonalOutcome PolardbClient::modifyDBClusterDescriptionZonal(const ModifyDBClusterDescriptionZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterDescriptionZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterDescriptionZonalOutcome(ModifyDBClusterDescriptionZonalResult(outcome.result())); + else + return ModifyDBClusterDescriptionZonalOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterDescriptionZonalAsync(const ModifyDBClusterDescriptionZonalRequest& request, const ModifyDBClusterDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterDescriptionZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterDescriptionZonalOutcomeCallable PolardbClient::modifyDBClusterDescriptionZonalCallable(const ModifyDBClusterDescriptionZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterDescriptionZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterEndpointOutcome PolardbClient::modifyDBClusterEndpoint(const ModifyDBClusterEndpointRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4155,6 +7683,42 @@ PolardbClient::ModifyDBClusterEndpointOutcomeCallable PolardbClient::modifyDBClu return task->get_future(); } +PolardbClient::ModifyDBClusterEndpointZonalOutcome PolardbClient::modifyDBClusterEndpointZonal(const ModifyDBClusterEndpointZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterEndpointZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterEndpointZonalOutcome(ModifyDBClusterEndpointZonalResult(outcome.result())); + else + return ModifyDBClusterEndpointZonalOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterEndpointZonalAsync(const ModifyDBClusterEndpointZonalRequest& request, const ModifyDBClusterEndpointZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterEndpointZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterEndpointZonalOutcomeCallable PolardbClient::modifyDBClusterEndpointZonalCallable(const ModifyDBClusterEndpointZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterEndpointZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterMaintainTimeOutcome PolardbClient::modifyDBClusterMaintainTime(const ModifyDBClusterMaintainTimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4227,6 +7791,42 @@ PolardbClient::ModifyDBClusterMigrationOutcomeCallable PolardbClient::modifyDBCl return task->get_future(); } +PolardbClient::ModifyDBClusterMigrationEndpointOutcome PolardbClient::modifyDBClusterMigrationEndpoint(const ModifyDBClusterMigrationEndpointRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterMigrationEndpointOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterMigrationEndpointOutcome(ModifyDBClusterMigrationEndpointResult(outcome.result())); + else + return ModifyDBClusterMigrationEndpointOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterMigrationEndpointAsync(const ModifyDBClusterMigrationEndpointRequest& request, const ModifyDBClusterMigrationEndpointAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterMigrationEndpoint(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterMigrationEndpointOutcomeCallable PolardbClient::modifyDBClusterMigrationEndpointCallable(const ModifyDBClusterMigrationEndpointRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterMigrationEndpoint(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterMonitorOutcome PolardbClient::modifyDBClusterMonitor(const ModifyDBClusterMonitorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4551,6 +8151,42 @@ PolardbClient::ModifyDBClusterTDEOutcomeCallable PolardbClient::modifyDBClusterT return task->get_future(); } +PolardbClient::ModifyDBClusterVpcOutcome PolardbClient::modifyDBClusterVpc(const ModifyDBClusterVpcRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterVpcOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterVpcOutcome(ModifyDBClusterVpcResult(outcome.result())); + else + return ModifyDBClusterVpcOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterVpcAsync(const ModifyDBClusterVpcRequest& request, const ModifyDBClusterVpcAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterVpc(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterVpcOutcomeCallable PolardbClient::modifyDBClusterVpcCallable(const ModifyDBClusterVpcRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterVpc(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBDescriptionOutcome PolardbClient::modifyDBDescription(const ModifyDBDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4587,6 +8223,42 @@ PolardbClient::ModifyDBDescriptionOutcomeCallable PolardbClient::modifyDBDescrip return task->get_future(); } +PolardbClient::ModifyDBDescriptionZonalOutcome PolardbClient::modifyDBDescriptionZonal(const ModifyDBDescriptionZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBDescriptionZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBDescriptionZonalOutcome(ModifyDBDescriptionZonalResult(outcome.result())); + else + return ModifyDBDescriptionZonalOutcome(outcome.error()); +} + +void PolardbClient::modifyDBDescriptionZonalAsync(const ModifyDBDescriptionZonalRequest& request, const ModifyDBDescriptionZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBDescriptionZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBDescriptionZonalOutcomeCallable PolardbClient::modifyDBDescriptionZonalCallable(const ModifyDBDescriptionZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBDescriptionZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBEndpointAddressOutcome PolardbClient::modifyDBEndpointAddress(const ModifyDBEndpointAddressRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4659,6 +8331,78 @@ PolardbClient::ModifyDBNodeClassOutcomeCallable PolardbClient::modifyDBNodeClass return task->get_future(); } +PolardbClient::ModifyDBNodeConfigOutcome PolardbClient::modifyDBNodeConfig(const ModifyDBNodeConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBNodeConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBNodeConfigOutcome(ModifyDBNodeConfigResult(outcome.result())); + else + return ModifyDBNodeConfigOutcome(outcome.error()); +} + +void PolardbClient::modifyDBNodeConfigAsync(const ModifyDBNodeConfigRequest& request, const ModifyDBNodeConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBNodeConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBNodeConfigOutcomeCallable PolardbClient::modifyDBNodeConfigCallable(const ModifyDBNodeConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBNodeConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyDBNodeDescriptionOutcome PolardbClient::modifyDBNodeDescription(const ModifyDBNodeDescriptionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBNodeDescriptionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBNodeDescriptionOutcome(ModifyDBNodeDescriptionResult(outcome.result())); + else + return ModifyDBNodeDescriptionOutcome(outcome.error()); +} + +void PolardbClient::modifyDBNodeDescriptionAsync(const ModifyDBNodeDescriptionRequest& request, const ModifyDBNodeDescriptionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBNodeDescription(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBNodeDescriptionOutcomeCallable PolardbClient::modifyDBNodeDescriptionCallable(const ModifyDBNodeDescriptionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBNodeDescription(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBNodeHotReplicaModeOutcome PolardbClient::modifyDBNodeHotReplicaMode(const ModifyDBNodeHotReplicaModeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4695,6 +8439,42 @@ PolardbClient::ModifyDBNodeHotReplicaModeOutcomeCallable PolardbClient::modifyDB return task->get_future(); } +PolardbClient::ModifyDBNodeSccModeOutcome PolardbClient::modifyDBNodeSccMode(const ModifyDBNodeSccModeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBNodeSccModeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBNodeSccModeOutcome(ModifyDBNodeSccModeResult(outcome.result())); + else + return ModifyDBNodeSccModeOutcome(outcome.error()); +} + +void PolardbClient::modifyDBNodeSccModeAsync(const ModifyDBNodeSccModeRequest& request, const ModifyDBNodeSccModeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBNodeSccMode(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBNodeSccModeOutcomeCallable PolardbClient::modifyDBNodeSccModeCallable(const ModifyDBNodeSccModeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBNodeSccMode(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBNodesClassOutcome PolardbClient::modifyDBNodesClass(const ModifyDBNodesClassRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,6 +8547,114 @@ PolardbClient::ModifyDBNodesParametersOutcomeCallable PolardbClient::modifyDBNod return task->get_future(); } +PolardbClient::ModifyEncryptionDBRolePrivilegeOutcome PolardbClient::modifyEncryptionDBRolePrivilege(const ModifyEncryptionDBRolePrivilegeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEncryptionDBRolePrivilegeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEncryptionDBRolePrivilegeOutcome(ModifyEncryptionDBRolePrivilegeResult(outcome.result())); + else + return ModifyEncryptionDBRolePrivilegeOutcome(outcome.error()); +} + +void PolardbClient::modifyEncryptionDBRolePrivilegeAsync(const ModifyEncryptionDBRolePrivilegeRequest& request, const ModifyEncryptionDBRolePrivilegeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEncryptionDBRolePrivilege(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyEncryptionDBRolePrivilegeOutcomeCallable PolardbClient::modifyEncryptionDBRolePrivilegeCallable(const ModifyEncryptionDBRolePrivilegeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEncryptionDBRolePrivilege(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyEncryptionDBSecretOutcome PolardbClient::modifyEncryptionDBSecret(const ModifyEncryptionDBSecretRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEncryptionDBSecretOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEncryptionDBSecretOutcome(ModifyEncryptionDBSecretResult(outcome.result())); + else + return ModifyEncryptionDBSecretOutcome(outcome.error()); +} + +void PolardbClient::modifyEncryptionDBSecretAsync(const ModifyEncryptionDBSecretRequest& request, const ModifyEncryptionDBSecretAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEncryptionDBSecret(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyEncryptionDBSecretOutcomeCallable PolardbClient::modifyEncryptionDBSecretCallable(const ModifyEncryptionDBSecretRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEncryptionDBSecret(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyFirewallRulesOutcome PolardbClient::modifyFirewallRules(const ModifyFirewallRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyFirewallRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyFirewallRulesOutcome(ModifyFirewallRulesResult(outcome.result())); + else + return ModifyFirewallRulesOutcome(outcome.error()); +} + +void PolardbClient::modifyFirewallRulesAsync(const ModifyFirewallRulesRequest& request, const ModifyFirewallRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyFirewallRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyFirewallRulesOutcomeCallable PolardbClient::modifyFirewallRulesCallable(const ModifyFirewallRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyFirewallRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyGlobalDatabaseNetworkOutcome PolardbClient::modifyGlobalDatabaseNetwork(const ModifyGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5019,6 +8907,114 @@ PolardbClient::ModifyPendingMaintenanceActionOutcomeCallable PolardbClient::modi return task->get_future(); } +PolardbClient::ModifyResourcePackageOutcome PolardbClient::modifyResourcePackage(const ModifyResourcePackageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyResourcePackageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyResourcePackageOutcome(ModifyResourcePackageResult(outcome.result())); + else + return ModifyResourcePackageOutcome(outcome.error()); +} + +void PolardbClient::modifyResourcePackageAsync(const ModifyResourcePackageRequest& request, const ModifyResourcePackageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyResourcePackage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyResourcePackageOutcomeCallable PolardbClient::modifyResourcePackageCallable(const ModifyResourcePackageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyResourcePackage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifySQLRateLimitingRulesOutcome PolardbClient::modifySQLRateLimitingRules(const ModifySQLRateLimitingRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifySQLRateLimitingRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifySQLRateLimitingRulesOutcome(ModifySQLRateLimitingRulesResult(outcome.result())); + else + return ModifySQLRateLimitingRulesOutcome(outcome.error()); +} + +void PolardbClient::modifySQLRateLimitingRulesAsync(const ModifySQLRateLimitingRulesRequest& request, const ModifySQLRateLimitingRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifySQLRateLimitingRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifySQLRateLimitingRulesOutcomeCallable PolardbClient::modifySQLRateLimitingRulesCallable(const ModifySQLRateLimitingRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifySQLRateLimitingRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ModifyScheduleTaskOutcome PolardbClient::modifyScheduleTask(const ModifyScheduleTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyScheduleTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyScheduleTaskOutcome(ModifyScheduleTaskResult(outcome.result())); + else + return ModifyScheduleTaskOutcome(outcome.error()); +} + +void PolardbClient::modifyScheduleTaskAsync(const ModifyScheduleTaskRequest& request, const ModifyScheduleTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyScheduleTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyScheduleTaskOutcomeCallable PolardbClient::modifyScheduleTaskCallable(const ModifyScheduleTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyScheduleTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::OpenAITaskOutcome PolardbClient::openAITask(const OpenAITaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5055,6 +9051,42 @@ PolardbClient::OpenAITaskOutcomeCallable PolardbClient::openAITaskCallable(const return task->get_future(); } +PolardbClient::ReactivateDBClusterBackupOutcome PolardbClient::reactivateDBClusterBackup(const ReactivateDBClusterBackupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ReactivateDBClusterBackupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ReactivateDBClusterBackupOutcome(ReactivateDBClusterBackupResult(outcome.result())); + else + return ReactivateDBClusterBackupOutcome(outcome.error()); +} + +void PolardbClient::reactivateDBClusterBackupAsync(const ReactivateDBClusterBackupRequest& request, const ReactivateDBClusterBackupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, reactivateDBClusterBackup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ReactivateDBClusterBackupOutcomeCallable PolardbClient::reactivateDBClusterBackupCallable(const ReactivateDBClusterBackupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->reactivateDBClusterBackup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::RefreshDBClusterStorageUsageOutcome PolardbClient::refreshDBClusterStorageUsage(const RefreshDBClusterStorageUsageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5163,6 +9195,78 @@ PolardbClient::ResetAccountOutcomeCallable PolardbClient::resetAccountCallable(c return task->get_future(); } +PolardbClient::ResetAccountPasswordOutcome PolardbClient::resetAccountPassword(const ResetAccountPasswordRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountPasswordOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountPasswordOutcome(ResetAccountPasswordResult(outcome.result())); + else + return ResetAccountPasswordOutcome(outcome.error()); +} + +void PolardbClient::resetAccountPasswordAsync(const ResetAccountPasswordRequest& request, const ResetAccountPasswordAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountPassword(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ResetAccountPasswordOutcomeCallable PolardbClient::resetAccountPasswordCallable(const ResetAccountPasswordRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountPassword(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +PolardbClient::ResetAccountZonalOutcome PolardbClient::resetAccountZonal(const ResetAccountZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResetAccountZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResetAccountZonalOutcome(ResetAccountZonalResult(outcome.result())); + else + return ResetAccountZonalOutcome(outcome.error()); +} + +void PolardbClient::resetAccountZonalAsync(const ResetAccountZonalRequest& request, const ResetAccountZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resetAccountZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ResetAccountZonalOutcomeCallable PolardbClient::resetAccountZonalCallable(const ResetAccountZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resetAccountZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ResetGlobalDatabaseNetworkOutcome PolardbClient::resetGlobalDatabaseNetwork(const ResetGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5271,6 +9375,42 @@ PolardbClient::RestartDBNodeOutcomeCallable PolardbClient::restartDBNodeCallable return task->get_future(); } +PolardbClient::RestartDBNodeZonalOutcome PolardbClient::restartDBNodeZonal(const RestartDBNodeZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartDBNodeZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartDBNodeZonalOutcome(RestartDBNodeZonalResult(outcome.result())); + else + return RestartDBNodeZonalOutcome(outcome.error()); +} + +void PolardbClient::restartDBNodeZonalAsync(const RestartDBNodeZonalRequest& request, const RestartDBNodeZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartDBNodeZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::RestartDBNodeZonalOutcomeCallable PolardbClient::restartDBNodeZonalCallable(const RestartDBNodeZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartDBNodeZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::RestoreTableOutcome PolardbClient::restoreTable(const RestoreTableRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5343,6 +9483,42 @@ PolardbClient::RevokeAccountPrivilegeOutcomeCallable PolardbClient::revokeAccoun return task->get_future(); } +PolardbClient::RevokeAccountPrivilegeZonalOutcome PolardbClient::revokeAccountPrivilegeZonal(const RevokeAccountPrivilegeZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RevokeAccountPrivilegeZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RevokeAccountPrivilegeZonalOutcome(RevokeAccountPrivilegeZonalResult(outcome.result())); + else + return RevokeAccountPrivilegeZonalOutcome(outcome.error()); +} + +void PolardbClient::revokeAccountPrivilegeZonalAsync(const RevokeAccountPrivilegeZonalRequest& request, const RevokeAccountPrivilegeZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, revokeAccountPrivilegeZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::RevokeAccountPrivilegeZonalOutcomeCallable PolardbClient::revokeAccountPrivilegeZonalCallable(const RevokeAccountPrivilegeZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->revokeAccountPrivilegeZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::SwitchOverGlobalDatabaseNetworkOutcome PolardbClient::switchOverGlobalDatabaseNetwork(const SwitchOverGlobalDatabaseNetworkRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5523,6 +9699,42 @@ PolardbClient::UntagResourcesOutcomeCallable PolardbClient::untagResourcesCallab return task->get_future(); } +PolardbClient::UpdateExtensionsOutcome PolardbClient::updateExtensions(const UpdateExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateExtensionsOutcome(UpdateExtensionsResult(outcome.result())); + else + return UpdateExtensionsOutcome(outcome.error()); +} + +void PolardbClient::updateExtensionsAsync(const UpdateExtensionsRequest& request, const UpdateExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::UpdateExtensionsOutcomeCallable PolardbClient::updateExtensionsCallable(const UpdateExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::UpgradeDBClusterVersionOutcome PolardbClient::upgradeDBClusterVersion(const UpgradeDBClusterVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5559,3 +9771,39 @@ PolardbClient::UpgradeDBClusterVersionOutcomeCallable PolardbClient::upgradeDBCl return task->get_future(); } +PolardbClient::UpgradeDBClusterVersionZonalOutcome PolardbClient::upgradeDBClusterVersionZonal(const UpgradeDBClusterVersionZonalRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpgradeDBClusterVersionZonalOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpgradeDBClusterVersionZonalOutcome(UpgradeDBClusterVersionZonalResult(outcome.result())); + else + return UpgradeDBClusterVersionZonalOutcome(outcome.error()); +} + +void PolardbClient::upgradeDBClusterVersionZonalAsync(const UpgradeDBClusterVersionZonalRequest& request, const UpgradeDBClusterVersionZonalAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, upgradeDBClusterVersionZonal(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::UpgradeDBClusterVersionZonalOutcomeCallable PolardbClient::upgradeDBClusterVersionZonalCallable(const UpgradeDBClusterVersionZonalRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->upgradeDBClusterVersionZonal(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/polardb/src/model/AbortDBClusterMigrationRequest.cc b/polardb/src/model/AbortDBClusterMigrationRequest.cc new file mode 100644 index 000000000..21e026d4b --- /dev/null +++ b/polardb/src/model/AbortDBClusterMigrationRequest.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::AbortDBClusterMigrationRequest; + +AbortDBClusterMigrationRequest::AbortDBClusterMigrationRequest() + : RpcServiceRequest("polardb", "2017-08-01", "AbortDBClusterMigration") { + setMethod(HttpRequest::Method::Post); +} + +AbortDBClusterMigrationRequest::~AbortDBClusterMigrationRequest() {} + +long AbortDBClusterMigrationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AbortDBClusterMigrationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AbortDBClusterMigrationRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AbortDBClusterMigrationRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AbortDBClusterMigrationRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void AbortDBClusterMigrationRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string AbortDBClusterMigrationRequest::getSecurityToken() const { + return securityToken_; +} + +void AbortDBClusterMigrationRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string AbortDBClusterMigrationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AbortDBClusterMigrationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AbortDBClusterMigrationRequest::getDBClusterId() const { + return dBClusterId_; +} + +void AbortDBClusterMigrationRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string AbortDBClusterMigrationRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AbortDBClusterMigrationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AbortDBClusterMigrationRequest::getOwnerId() const { + return ownerId_; +} + +void AbortDBClusterMigrationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/AbortDBClusterMigrationResult.cc b/polardb/src/model/AbortDBClusterMigrationResult.cc new file mode 100644 index 000000000..78a243e24 --- /dev/null +++ b/polardb/src/model/AbortDBClusterMigrationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +AbortDBClusterMigrationResult::AbortDBClusterMigrationResult() : + ServiceResult() +{} + +AbortDBClusterMigrationResult::AbortDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AbortDBClusterMigrationResult::~AbortDBClusterMigrationResult() +{} + +void AbortDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/AddEncryptionDBRolePrivilegeRequest.cc b/polardb/src/model/AddEncryptionDBRolePrivilegeRequest.cc new file mode 100644 index 000000000..d5e59d1c9 --- /dev/null +++ b/polardb/src/model/AddEncryptionDBRolePrivilegeRequest.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::AddEncryptionDBRolePrivilegeRequest; + +AddEncryptionDBRolePrivilegeRequest::AddEncryptionDBRolePrivilegeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "AddEncryptionDBRolePrivilege") { + setMethod(HttpRequest::Method::Post); +} + +AddEncryptionDBRolePrivilegeRequest::~AddEncryptionDBRolePrivilegeRequest() {} + +long AddEncryptionDBRolePrivilegeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddEncryptionDBRolePrivilegeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddEncryptionDBRolePrivilegeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getRolePrivilegeConfig() const { + return rolePrivilegeConfig_; +} + +void AddEncryptionDBRolePrivilegeRequest::setRolePrivilegeConfig(const std::string &rolePrivilegeConfig) { + rolePrivilegeConfig_ = rolePrivilegeConfig; + setParameter(std::string("RolePrivilegeConfig"), rolePrivilegeConfig); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddEncryptionDBRolePrivilegeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void AddEncryptionDBRolePrivilegeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddEncryptionDBRolePrivilegeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddEncryptionDBRolePrivilegeRequest::getOwnerId() const { + return ownerId_; +} + +void AddEncryptionDBRolePrivilegeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddEncryptionDBRolePrivilegeRequest::getRolePrivilegeName() const { + return rolePrivilegeName_; +} + +void AddEncryptionDBRolePrivilegeRequest::setRolePrivilegeName(const std::string &rolePrivilegeName) { + rolePrivilegeName_ = rolePrivilegeName; + setParameter(std::string("RolePrivilegeName"), rolePrivilegeName); +} + diff --git a/polardb/src/model/AddEncryptionDBRolePrivilegeResult.cc b/polardb/src/model/AddEncryptionDBRolePrivilegeResult.cc new file mode 100644 index 000000000..349e28ea2 --- /dev/null +++ b/polardb/src/model/AddEncryptionDBRolePrivilegeResult.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; + +AddEncryptionDBRolePrivilegeResult::AddEncryptionDBRolePrivilegeResult() : + ServiceResult() +{} + +AddEncryptionDBRolePrivilegeResult::AddEncryptionDBRolePrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddEncryptionDBRolePrivilegeResult::~AddEncryptionDBRolePrivilegeResult() +{} + +void AddEncryptionDBRolePrivilegeResult::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(); + +} + +std::string AddEncryptionDBRolePrivilegeResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/AddFirewallRulesRequest.cc b/polardb/src/model/AddFirewallRulesRequest.cc new file mode 100644 index 000000000..1aa7c2cfb --- /dev/null +++ b/polardb/src/model/AddFirewallRulesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::AddFirewallRulesRequest; + +AddFirewallRulesRequest::AddFirewallRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "AddFirewallRules") { + setMethod(HttpRequest::Method::Post); +} + +AddFirewallRulesRequest::~AddFirewallRulesRequest() {} + +long AddFirewallRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddFirewallRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddFirewallRulesRequest::getRuleName() const { + return ruleName_; +} + +void AddFirewallRulesRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string AddFirewallRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddFirewallRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddFirewallRulesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void AddFirewallRulesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string AddFirewallRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddFirewallRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddFirewallRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void AddFirewallRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string AddFirewallRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddFirewallRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddFirewallRulesRequest::getOwnerId() const { + return ownerId_; +} + +void AddFirewallRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddFirewallRulesRequest::getRuleConfig() const { + return ruleConfig_; +} + +void AddFirewallRulesRequest::setRuleConfig(const std::string &ruleConfig) { + ruleConfig_ = ruleConfig; + setParameter(std::string("RuleConfig"), ruleConfig); +} + diff --git a/polardb/src/model/AddFirewallRulesResult.cc b/polardb/src/model/AddFirewallRulesResult.cc new file mode 100644 index 000000000..14e913ffa --- /dev/null +++ b/polardb/src/model/AddFirewallRulesResult.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; + +AddFirewallRulesResult::AddFirewallRulesResult() : + ServiceResult() +{} + +AddFirewallRulesResult::AddFirewallRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddFirewallRulesResult::~AddFirewallRulesResult() +{} + +void AddFirewallRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddFirewallRulesResult::getMessage()const +{ + return message_; +} + +bool AddFirewallRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/AddSQLRateLimitingRulesRequest.cc b/polardb/src/model/AddSQLRateLimitingRulesRequest.cc new file mode 100644 index 000000000..f8a3baf48 --- /dev/null +++ b/polardb/src/model/AddSQLRateLimitingRulesRequest.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::AddSQLRateLimitingRulesRequest; + +AddSQLRateLimitingRulesRequest::AddSQLRateLimitingRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "AddSQLRateLimitingRules") { + setMethod(HttpRequest::Method::Post); +} + +AddSQLRateLimitingRulesRequest::~AddSQLRateLimitingRulesRequest() {} + +long AddSQLRateLimitingRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddSQLRateLimitingRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddSQLRateLimitingRulesRequest::getRuleName() const { + return ruleName_; +} + +void AddSQLRateLimitingRulesRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string AddSQLRateLimitingRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddSQLRateLimitingRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddSQLRateLimitingRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddSQLRateLimitingRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddSQLRateLimitingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void AddSQLRateLimitingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string AddSQLRateLimitingRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddSQLRateLimitingRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddSQLRateLimitingRulesRequest::getOwnerId() const { + return ownerId_; +} + +void AddSQLRateLimitingRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddSQLRateLimitingRulesRequest::getRuleConfig() const { + return ruleConfig_; +} + +void AddSQLRateLimitingRulesRequest::setRuleConfig(const std::string &ruleConfig) { + ruleConfig_ = ruleConfig; + setParameter(std::string("RuleConfig"), ruleConfig); +} + diff --git a/polardb/src/model/AddSQLRateLimitingRulesResult.cc b/polardb/src/model/AddSQLRateLimitingRulesResult.cc new file mode 100644 index 000000000..e809752cb --- /dev/null +++ b/polardb/src/model/AddSQLRateLimitingRulesResult.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; + +AddSQLRateLimitingRulesResult::AddSQLRateLimitingRulesResult() : + ServiceResult() +{} + +AddSQLRateLimitingRulesResult::AddSQLRateLimitingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSQLRateLimitingRulesResult::~AddSQLRateLimitingRulesResult() +{} + +void AddSQLRateLimitingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string AddSQLRateLimitingRulesResult::getMessage()const +{ + return message_; +} + +bool AddSQLRateLimitingRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/AttachApplicationPolarFSRequest.cc b/polardb/src/model/AttachApplicationPolarFSRequest.cc new file mode 100644 index 000000000..8f979eed0 --- /dev/null +++ b/polardb/src/model/AttachApplicationPolarFSRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Polardb::Model::AttachApplicationPolarFSRequest; + +AttachApplicationPolarFSRequest::AttachApplicationPolarFSRequest() + : RpcServiceRequest("polardb", "2017-08-01", "AttachApplicationPolarFS") { + setMethod(HttpRequest::Method::Post); +} + +AttachApplicationPolarFSRequest::~AttachApplicationPolarFSRequest() {} + +bool AttachApplicationPolarFSRequest::getReplaceExisted() const { + return replaceExisted_; +} + +void AttachApplicationPolarFSRequest::setReplaceExisted(bool replaceExisted) { + replaceExisted_ = replaceExisted; + setParameter(std::string("ReplaceExisted"), replaceExisted ? "true" : "false"); +} + +std::string AttachApplicationPolarFSRequest::getApplicationId() const { + return applicationId_; +} + +void AttachApplicationPolarFSRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + +std::string AttachApplicationPolarFSRequest::getPolarFSAccessKeyId() const { + return polarFSAccessKeyId_; +} + +void AttachApplicationPolarFSRequest::setPolarFSAccessKeyId(const std::string &polarFSAccessKeyId) { + polarFSAccessKeyId_ = polarFSAccessKeyId; + setParameter(std::string("PolarFSAccessKeyId"), polarFSAccessKeyId); +} + +std::string AttachApplicationPolarFSRequest::getPolarFSInstanceId() const { + return polarFSInstanceId_; +} + +void AttachApplicationPolarFSRequest::setPolarFSInstanceId(const std::string &polarFSInstanceId) { + polarFSInstanceId_ = polarFSInstanceId; + setParameter(std::string("PolarFSInstanceId"), polarFSInstanceId); +} + +std::string AttachApplicationPolarFSRequest::getPolarFSAccessKeySecret() const { + return polarFSAccessKeySecret_; +} + +void AttachApplicationPolarFSRequest::setPolarFSAccessKeySecret(const std::string &polarFSAccessKeySecret) { + polarFSAccessKeySecret_ = polarFSAccessKeySecret; + setParameter(std::string("PolarFSAccessKeySecret"), polarFSAccessKeySecret); +} + diff --git a/polardb/src/model/AttachApplicationPolarFSResult.cc b/polardb/src/model/AttachApplicationPolarFSResult.cc new file mode 100644 index 000000000..eebd5b059 --- /dev/null +++ b/polardb/src/model/AttachApplicationPolarFSResult.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; + +AttachApplicationPolarFSResult::AttachApplicationPolarFSResult() : + ServiceResult() +{} + +AttachApplicationPolarFSResult::AttachApplicationPolarFSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AttachApplicationPolarFSResult::~AttachApplicationPolarFSResult() +{} + +void AttachApplicationPolarFSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["PolarFSInstanceId"].isNull()) + polarFSInstanceId_ = value["PolarFSInstanceId"].asString(); + +} + +std::string AttachApplicationPolarFSResult::getApplicationId()const +{ + return applicationId_; +} + +std::string AttachApplicationPolarFSResult::getPolarFSInstanceId()const +{ + return polarFSInstanceId_; +} + diff --git a/polardb/src/model/CancelCronJobPolicyServerlessRequest.cc b/polardb/src/model/CancelCronJobPolicyServerlessRequest.cc new file mode 100644 index 000000000..c9705447a --- /dev/null +++ b/polardb/src/model/CancelCronJobPolicyServerlessRequest.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::CancelCronJobPolicyServerlessRequest; + +CancelCronJobPolicyServerlessRequest::CancelCronJobPolicyServerlessRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CancelCronJobPolicyServerless") { + setMethod(HttpRequest::Method::Post); +} + +CancelCronJobPolicyServerlessRequest::~CancelCronJobPolicyServerlessRequest() {} + +long CancelCronJobPolicyServerlessRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CancelCronJobPolicyServerlessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CancelCronJobPolicyServerlessRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CancelCronJobPolicyServerlessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CancelCronJobPolicyServerlessRequest::getJobId() const { + return jobId_; +} + +void CancelCronJobPolicyServerlessRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string CancelCronJobPolicyServerlessRequest::getRegionId() const { + return regionId_; +} + +void CancelCronJobPolicyServerlessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CancelCronJobPolicyServerlessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CancelCronJobPolicyServerlessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CancelCronJobPolicyServerlessRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CancelCronJobPolicyServerlessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CancelCronJobPolicyServerlessRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CancelCronJobPolicyServerlessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CancelCronJobPolicyServerlessRequest::getOwnerId() const { + return ownerId_; +} + +void CancelCronJobPolicyServerlessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/CancelCronJobPolicyServerlessResult.cc b/polardb/src/model/CancelCronJobPolicyServerlessResult.cc new file mode 100644 index 000000000..43a8dc1cc --- /dev/null +++ b/polardb/src/model/CancelCronJobPolicyServerlessResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CancelCronJobPolicyServerlessResult::CancelCronJobPolicyServerlessResult() : + ServiceResult() +{} + +CancelCronJobPolicyServerlessResult::CancelCronJobPolicyServerlessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelCronJobPolicyServerlessResult::~CancelCronJobPolicyServerlessResult() +{} + +void CancelCronJobPolicyServerlessResult::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["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string CancelCronJobPolicyServerlessResult::getStatus()const +{ + return status_; +} + +std::string CancelCronJobPolicyServerlessResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string CancelCronJobPolicyServerlessResult::getRegionId()const +{ + return regionId_; +} + +std::string CancelCronJobPolicyServerlessResult::getJobId()const +{ + return jobId_; +} + diff --git a/polardb/src/model/CheckAccountNameZonalRequest.cc b/polardb/src/model/CheckAccountNameZonalRequest.cc new file mode 100644 index 000000000..e8e166377 --- /dev/null +++ b/polardb/src/model/CheckAccountNameZonalRequest.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::CheckAccountNameZonalRequest; + +CheckAccountNameZonalRequest::CheckAccountNameZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CheckAccountNameZonal") { + setMethod(HttpRequest::Method::Post); +} + +CheckAccountNameZonalRequest::~CheckAccountNameZonalRequest() {} + +long CheckAccountNameZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckAccountNameZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckAccountNameZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckAccountNameZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckAccountNameZonalRequest::getAccountName() const { + return accountName_; +} + +void CheckAccountNameZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CheckAccountNameZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckAccountNameZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckAccountNameZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckAccountNameZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckAccountNameZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckAccountNameZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckAccountNameZonalRequest::getOwnerId() const { + return ownerId_; +} + +void CheckAccountNameZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/CheckAccountNameZonalResult.cc b/polardb/src/model/CheckAccountNameZonalResult.cc new file mode 100644 index 000000000..1186390ad --- /dev/null +++ b/polardb/src/model/CheckAccountNameZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CheckAccountNameZonalResult::CheckAccountNameZonalResult() : + ServiceResult() +{} + +CheckAccountNameZonalResult::CheckAccountNameZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckAccountNameZonalResult::~CheckAccountNameZonalResult() +{} + +void CheckAccountNameZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CheckConnectionStringRequest.cc b/polardb/src/model/CheckConnectionStringRequest.cc new file mode 100644 index 000000000..10dbce630 --- /dev/null +++ b/polardb/src/model/CheckConnectionStringRequest.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::CheckConnectionStringRequest; + +CheckConnectionStringRequest::CheckConnectionStringRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CheckConnectionString") { + setMethod(HttpRequest::Method::Post); +} + +CheckConnectionStringRequest::~CheckConnectionStringRequest() {} + +long CheckConnectionStringRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckConnectionStringRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckConnectionStringRequest::getConnectionStringPrefix() const { + return connectionStringPrefix_; +} + +void CheckConnectionStringRequest::setConnectionStringPrefix(const std::string &connectionStringPrefix) { + connectionStringPrefix_ = connectionStringPrefix; + setParameter(std::string("ConnectionStringPrefix"), connectionStringPrefix); +} + +std::string CheckConnectionStringRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckConnectionStringRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckConnectionStringRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckConnectionStringRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckConnectionStringRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckConnectionStringRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckConnectionStringRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckConnectionStringRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckConnectionStringRequest::getOwnerId() const { + return ownerId_; +} + +void CheckConnectionStringRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/CheckConnectionStringResult.cc b/polardb/src/model/CheckConnectionStringResult.cc new file mode 100644 index 000000000..bbc387841 --- /dev/null +++ b/polardb/src/model/CheckConnectionStringResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CheckConnectionStringResult::CheckConnectionStringResult() : + ServiceResult() +{} + +CheckConnectionStringResult::CheckConnectionStringResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckConnectionStringResult::~CheckConnectionStringResult() +{} + +void CheckConnectionStringResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CheckDBNameZonalRequest.cc b/polardb/src/model/CheckDBNameZonalRequest.cc new file mode 100644 index 000000000..d519cd985 --- /dev/null +++ b/polardb/src/model/CheckDBNameZonalRequest.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::CheckDBNameZonalRequest; + +CheckDBNameZonalRequest::CheckDBNameZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CheckDBNameZonal") { + setMethod(HttpRequest::Method::Post); +} + +CheckDBNameZonalRequest::~CheckDBNameZonalRequest() {} + +long CheckDBNameZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CheckDBNameZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CheckDBNameZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CheckDBNameZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CheckDBNameZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CheckDBNameZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CheckDBNameZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CheckDBNameZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CheckDBNameZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CheckDBNameZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CheckDBNameZonalRequest::getOwnerId() const { + return ownerId_; +} + +void CheckDBNameZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CheckDBNameZonalRequest::getDBName() const { + return dBName_; +} + +void CheckDBNameZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/CheckDBNameZonalResult.cc b/polardb/src/model/CheckDBNameZonalResult.cc new file mode 100644 index 000000000..ecc822aeb --- /dev/null +++ b/polardb/src/model/CheckDBNameZonalResult.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; + +CheckDBNameZonalResult::CheckDBNameZonalResult() : + ServiceResult() +{} + +CheckDBNameZonalResult::CheckDBNameZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CheckDBNameZonalResult::~CheckDBNameZonalResult() +{} + +void CheckDBNameZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DBName"].isNull()) + dBName_ = value["DBName"].asString(); + +} + +std::string CheckDBNameZonalResult::getDBName()const +{ + return dBName_; +} + diff --git a/polardb/src/model/ContinueDBClusterMigrationRequest.cc b/polardb/src/model/ContinueDBClusterMigrationRequest.cc new file mode 100644 index 000000000..25dd98452 --- /dev/null +++ b/polardb/src/model/ContinueDBClusterMigrationRequest.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::ContinueDBClusterMigrationRequest; + +ContinueDBClusterMigrationRequest::ContinueDBClusterMigrationRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ContinueDBClusterMigration") { + setMethod(HttpRequest::Method::Post); +} + +ContinueDBClusterMigrationRequest::~ContinueDBClusterMigrationRequest() {} + +long ContinueDBClusterMigrationRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ContinueDBClusterMigrationRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ContinueDBClusterMigrationRequest::getForceSwitch() const { + return forceSwitch_; +} + +void ContinueDBClusterMigrationRequest::setForceSwitch(const std::string &forceSwitch) { + forceSwitch_ = forceSwitch; + setParameter(std::string("ForceSwitch"), forceSwitch); +} + +std::string ContinueDBClusterMigrationRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ContinueDBClusterMigrationRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ContinueDBClusterMigrationRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ContinueDBClusterMigrationRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ContinueDBClusterMigrationRequest::getSecurityToken() const { + return securityToken_; +} + +void ContinueDBClusterMigrationRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string ContinueDBClusterMigrationRequest::getRegionId() const { + return regionId_; +} + +void ContinueDBClusterMigrationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ContinueDBClusterMigrationRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ContinueDBClusterMigrationRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ContinueDBClusterMigrationRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ContinueDBClusterMigrationRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ContinueDBClusterMigrationRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ContinueDBClusterMigrationRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ContinueDBClusterMigrationRequest::getOwnerId() const { + return ownerId_; +} + +void ContinueDBClusterMigrationRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ContinueDBClusterMigrationResult.cc b/polardb/src/model/ContinueDBClusterMigrationResult.cc new file mode 100644 index 000000000..a01e39004 --- /dev/null +++ b/polardb/src/model/ContinueDBClusterMigrationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ContinueDBClusterMigrationResult::ContinueDBClusterMigrationResult() : + ServiceResult() +{} + +ContinueDBClusterMigrationResult::ContinueDBClusterMigrationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ContinueDBClusterMigrationResult::~ContinueDBClusterMigrationResult() +{} + +void ContinueDBClusterMigrationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateAccountRequest.cc b/polardb/src/model/CreateAccountRequest.cc index 3b238b0e3..2e45c663e 100644 --- a/polardb/src/model/CreateAccountRequest.cc +++ b/polardb/src/model/CreateAccountRequest.cc @@ -34,6 +34,15 @@ void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string CreateAccountRequest::getNodeType() const { + return nodeType_; +} + +void CreateAccountRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + std::string CreateAccountRequest::getClientToken() const { return clientToken_; } diff --git a/polardb/src/model/CreateAccountZonalRequest.cc b/polardb/src/model/CreateAccountZonalRequest.cc new file mode 100644 index 000000000..c86ca23b3 --- /dev/null +++ b/polardb/src/model/CreateAccountZonalRequest.cc @@ -0,0 +1,171 @@ +/* + * 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::CreateAccountZonalRequest; + +CreateAccountZonalRequest::CreateAccountZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateAccountZonal") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccountZonalRequest::~CreateAccountZonalRequest() {} + +long CreateAccountZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateAccountZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateAccountZonalRequest::getNodeType() const { + return nodeType_; +} + +void CreateAccountZonalRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + +std::string CreateAccountZonalRequest::getClientToken() const { + return clientToken_; +} + +void CreateAccountZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateAccountZonalRequest::getAccountType() const { + return accountType_; +} + +void CreateAccountZonalRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); +} + +std::string CreateAccountZonalRequest::getAccountDescription() const { + return accountDescription_; +} + +void CreateAccountZonalRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string CreateAccountZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateAccountZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateAccountZonalRequest::getAccountPrivilege() const { + return accountPrivilege_; +} + +void CreateAccountZonalRequest::setAccountPrivilege(const std::string &accountPrivilege) { + accountPrivilege_ = accountPrivilege; + setParameter(std::string("AccountPrivilege"), accountPrivilege); +} + +std::string CreateAccountZonalRequest::getAccountName() const { + return accountName_; +} + +void CreateAccountZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateAccountZonalRequest::getTairAccountPassword() const { + return tairAccountPassword_; +} + +void CreateAccountZonalRequest::setTairAccountPassword(const std::string &tairAccountPassword) { + tairAccountPassword_ = tairAccountPassword; + setParameter(std::string("TairAccountPassword"), tairAccountPassword); +} + +std::string CreateAccountZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateAccountZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateAccountZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateAccountZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateAccountZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateAccountZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateAccountZonalRequest::getOwnerId() const { + return ownerId_; +} + +void CreateAccountZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateAccountZonalRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateAccountZonalRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + +std::string CreateAccountZonalRequest::getDBName() const { + return dBName_; +} + +void CreateAccountZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + +std::string CreateAccountZonalRequest::getPrivForAllDB() const { + return privForAllDB_; +} + +void CreateAccountZonalRequest::setPrivForAllDB(const std::string &privForAllDB) { + privForAllDB_ = privForAllDB; + setParameter(std::string("PrivForAllDB"), privForAllDB); +} + diff --git a/polardb/src/model/CreateAccountZonalResult.cc b/polardb/src/model/CreateAccountZonalResult.cc new file mode 100644 index 000000000..4da0b6ef5 --- /dev/null +++ b/polardb/src/model/CreateAccountZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateAccountZonalResult::CreateAccountZonalResult() : + ServiceResult() +{} + +CreateAccountZonalResult::CreateAccountZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccountZonalResult::~CreateAccountZonalResult() +{} + +void CreateAccountZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateApplicationEndpointAddressRequest.cc b/polardb/src/model/CreateApplicationEndpointAddressRequest.cc new file mode 100644 index 000000000..b93c57e45 --- /dev/null +++ b/polardb/src/model/CreateApplicationEndpointAddressRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::CreateApplicationEndpointAddressRequest; + +CreateApplicationEndpointAddressRequest::CreateApplicationEndpointAddressRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateApplicationEndpointAddress") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationEndpointAddressRequest::~CreateApplicationEndpointAddressRequest() {} + +std::string CreateApplicationEndpointAddressRequest::getEndpointId() const { + return endpointId_; +} + +void CreateApplicationEndpointAddressRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string CreateApplicationEndpointAddressRequest::getApplicationId() const { + return applicationId_; +} + +void CreateApplicationEndpointAddressRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + +std::string CreateApplicationEndpointAddressRequest::getNetType() const { + return netType_; +} + +void CreateApplicationEndpointAddressRequest::setNetType(const std::string &netType) { + netType_ = netType; + setParameter(std::string("NetType"), netType); +} + diff --git a/polardb/src/model/CreateApplicationEndpointAddressResult.cc b/polardb/src/model/CreateApplicationEndpointAddressResult.cc new file mode 100644 index 000000000..f7b81c232 --- /dev/null +++ b/polardb/src/model/CreateApplicationEndpointAddressResult.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; + +CreateApplicationEndpointAddressResult::CreateApplicationEndpointAddressResult() : + ServiceResult() +{} + +CreateApplicationEndpointAddressResult::CreateApplicationEndpointAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationEndpointAddressResult::~CreateApplicationEndpointAddressResult() +{} + +void CreateApplicationEndpointAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + +} + +std::string CreateApplicationEndpointAddressResult::getEndpointId()const +{ + return endpointId_; +} + +std::string CreateApplicationEndpointAddressResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/CreateApplicationRequest.cc b/polardb/src/model/CreateApplicationRequest.cc new file mode 100644 index 000000000..edabc1f08 --- /dev/null +++ b/polardb/src/model/CreateApplicationRequest.cc @@ -0,0 +1,206 @@ +/* + * 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::CreateApplicationRequest; + +CreateApplicationRequest::CreateApplicationRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateApplication") { + setMethod(HttpRequest::Method::Post); +} + +CreateApplicationRequest::~CreateApplicationRequest() {} + +std::vector CreateApplicationRequest::getComponents() const { + return components_; +} + +void CreateApplicationRequest::setComponents(const std::vector &components) { + components_ = components; + for(int dep1 = 0; dep1 != components.size(); dep1++) { + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ComponentReplica", std::to_string(components[dep1].componentReplica)); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".SecurityIPNetType", components[dep1].securityIPNetType); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ComponentMaxReplica", std::to_string(components[dep1].componentMaxReplica)); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ScaleMax", components[dep1].scaleMax); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ParameterTemplateId", components[dep1].parameterTemplateId); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".SecurityIPList", components[dep1].securityIPList); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ComponentType", components[dep1].componentType); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".SecurityIPType", components[dep1].securityIPType); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ComponentClass", components[dep1].componentClass); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".Parameters", components[dep1].parameters); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".SecurityGroups", components[dep1].securityGroups); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".SecurityIPArrayName", components[dep1].securityIPArrayName); + setParameter(std::string("Components") + "." + std::to_string(dep1 + 1) + ".ScaleMin", components[dep1].scaleMin); + } +} + +std::string CreateApplicationRequest::getDescription() const { + return description_; +} + +void CreateApplicationRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateApplicationRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateApplicationRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateApplicationRequest::getRegionId() const { + return regionId_; +} + +void CreateApplicationRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateApplicationRequest::getArchitecture() const { + return architecture_; +} + +void CreateApplicationRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); +} + +std::string CreateApplicationRequest::getPeriod() const { + return period_; +} + +void CreateApplicationRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::vector CreateApplicationRequest::getEndpoints() const { + return endpoints_; +} + +void CreateApplicationRequest::setEndpoints(const std::vector &endpoints) { + endpoints_ = endpoints; + for(int dep1 = 0; dep1 != endpoints.size(); dep1++) { + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".EndpointType", endpoints[dep1].endpointType); + setParameter(std::string("Endpoints") + "." + std::to_string(dep1 + 1) + ".Description", endpoints[dep1].description); + } +} + +bool CreateApplicationRequest::getDryRun() const { + return dryRun_; +} + +void CreateApplicationRequest::setDryRun(bool dryRun) { + dryRun_ = dryRun; + setParameter(std::string("DryRun"), dryRun ? "true" : "false"); +} + +std::string CreateApplicationRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateApplicationRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateApplicationRequest::getVersion() const { + return version_; +} + +void CreateApplicationRequest::setVersion(const std::string &version) { + version_ = version; + setParameter(std::string("Version"), version); +} + +std::string CreateApplicationRequest::getUsedTime() const { + return usedTime_; +} + +void CreateApplicationRequest::setUsedTime(const std::string &usedTime) { + usedTime_ = usedTime; + setParameter(std::string("UsedTime"), usedTime); +} + +std::string CreateApplicationRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateApplicationRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateApplicationRequest::getPolarFSInstanceId() const { + return polarFSInstanceId_; +} + +void CreateApplicationRequest::setPolarFSInstanceId(const std::string &polarFSInstanceId) { + polarFSInstanceId_ = polarFSInstanceId; + setParameter(std::string("PolarFSInstanceId"), polarFSInstanceId); +} + +bool CreateApplicationRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateApplicationRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateApplicationRequest::getVpcId() const { + return vpcId_; +} + +void CreateApplicationRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateApplicationRequest::getZoneId() const { + return zoneId_; +} + +void CreateApplicationRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateApplicationRequest::getApplicationType() const { + return applicationType_; +} + +void CreateApplicationRequest::setApplicationType(const std::string &applicationType) { + applicationType_ = applicationType; + setParameter(std::string("ApplicationType"), applicationType); +} + +std::string CreateApplicationRequest::getPayType() const { + return payType_; +} + +void CreateApplicationRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + diff --git a/polardb/src/model/CreateApplicationResult.cc b/polardb/src/model/CreateApplicationResult.cc new file mode 100644 index 000000000..427e9870c --- /dev/null +++ b/polardb/src/model/CreateApplicationResult.cc @@ -0,0 +1,92 @@ +/* + * 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; + +CreateApplicationResult::CreateApplicationResult() : + ServiceResult() +{} + +CreateApplicationResult::CreateApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateApplicationResult::~CreateApplicationResult() +{} + +void CreateApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allComponentsNode = value["Components"]["Component"]; + for (auto valueComponentsComponent : allComponentsNode) + { + Component componentsObject; + if(!valueComponentsComponent["ComponentId"].isNull()) + componentsObject.componentId = valueComponentsComponent["ComponentId"].asString(); + components_.push_back(componentsObject); + } + if(!value["ResourceAvailable"].isNull()) + resourceAvailable_ = value["ResourceAvailable"].asString() == "true"; + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + +} + +std::vector CreateApplicationResult::getComponents()const +{ + return components_; +} + +std::string CreateApplicationResult::getDescription()const +{ + return description_; +} + +std::string CreateApplicationResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +bool CreateApplicationResult::getResourceAvailable()const +{ + return resourceAvailable_; +} + +std::string CreateApplicationResult::getApplicationId()const +{ + return applicationId_; +} + +std::string CreateApplicationResult::getOrderId()const +{ + return orderId_; +} + diff --git a/polardb/src/model/CreateCronJobPolicyServerlessRequest.cc b/polardb/src/model/CreateCronJobPolicyServerlessRequest.cc new file mode 100644 index 000000000..0db759a46 --- /dev/null +++ b/polardb/src/model/CreateCronJobPolicyServerlessRequest.cc @@ -0,0 +1,216 @@ +/* + * 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::CreateCronJobPolicyServerlessRequest; + +CreateCronJobPolicyServerlessRequest::CreateCronJobPolicyServerlessRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateCronJobPolicyServerless") { + setMethod(HttpRequest::Method::Post); +} + +CreateCronJobPolicyServerlessRequest::~CreateCronJobPolicyServerlessRequest() {} + +std::string CreateCronJobPolicyServerlessRequest::getScaleRoNumMax() const { + return scaleRoNumMax_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleRoNumMax(const std::string &scaleRoNumMax) { + scaleRoNumMax_ = scaleRoNumMax; + setParameter(std::string("ScaleRoNumMax"), scaleRoNumMax); +} + +long CreateCronJobPolicyServerlessRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateCronJobPolicyServerlessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateCronJobPolicyServerlessRequest::getCronExpression() const { + return cronExpression_; +} + +void CreateCronJobPolicyServerlessRequest::setCronExpression(const std::string &cronExpression) { + cronExpression_ = cronExpression; + setParameter(std::string("CronExpression"), cronExpression); +} + +std::string CreateCronJobPolicyServerlessRequest::getServerlessRuleMode() const { + return serverlessRuleMode_; +} + +void CreateCronJobPolicyServerlessRequest::setServerlessRuleMode(const std::string &serverlessRuleMode) { + serverlessRuleMode_ = serverlessRuleMode; + setParameter(std::string("ServerlessRuleMode"), serverlessRuleMode); +} + +std::string CreateCronJobPolicyServerlessRequest::getScaleApRoNumMax() const { + return scaleApRoNumMax_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleApRoNumMax(const std::string &scaleApRoNumMax) { + scaleApRoNumMax_ = scaleApRoNumMax; + setParameter(std::string("ScaleApRoNumMax"), scaleApRoNumMax); +} + +std::string CreateCronJobPolicyServerlessRequest::getStartTime() const { + return startTime_; +} + +void CreateCronJobPolicyServerlessRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string CreateCronJobPolicyServerlessRequest::getScaleMax() const { + return scaleMax_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleMax(const std::string &scaleMax) { + scaleMax_ = scaleMax; + setParameter(std::string("ScaleMax"), scaleMax); +} + +std::string CreateCronJobPolicyServerlessRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateCronJobPolicyServerlessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateCronJobPolicyServerlessRequest::getServerlessRuleCpuEnlargeThreshold() const { + return serverlessRuleCpuEnlargeThreshold_; +} + +void CreateCronJobPolicyServerlessRequest::setServerlessRuleCpuEnlargeThreshold(const std::string &serverlessRuleCpuEnlargeThreshold) { + serverlessRuleCpuEnlargeThreshold_ = serverlessRuleCpuEnlargeThreshold; + setParameter(std::string("ServerlessRuleCpuEnlargeThreshold"), serverlessRuleCpuEnlargeThreshold); +} + +std::string CreateCronJobPolicyServerlessRequest::getSecondsUntilAutoPause() const { + return secondsUntilAutoPause_; +} + +void CreateCronJobPolicyServerlessRequest::setSecondsUntilAutoPause(const std::string &secondsUntilAutoPause) { + secondsUntilAutoPause_ = secondsUntilAutoPause; + setParameter(std::string("SecondsUntilAutoPause"), secondsUntilAutoPause); +} + +std::string CreateCronJobPolicyServerlessRequest::getRegionId() const { + return regionId_; +} + +void CreateCronJobPolicyServerlessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateCronJobPolicyServerlessRequest::getScaleApRoNumMin() const { + return scaleApRoNumMin_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleApRoNumMin(const std::string &scaleApRoNumMin) { + scaleApRoNumMin_ = scaleApRoNumMin; + setParameter(std::string("ScaleApRoNumMin"), scaleApRoNumMin); +} + +std::string CreateCronJobPolicyServerlessRequest::getScaleMin() const { + return scaleMin_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleMin(const std::string &scaleMin) { + scaleMin_ = scaleMin; + setParameter(std::string("ScaleMin"), scaleMin); +} + +std::string CreateCronJobPolicyServerlessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateCronJobPolicyServerlessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateCronJobPolicyServerlessRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateCronJobPolicyServerlessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateCronJobPolicyServerlessRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateCronJobPolicyServerlessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateCronJobPolicyServerlessRequest::getEndTime() const { + return endTime_; +} + +void CreateCronJobPolicyServerlessRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string CreateCronJobPolicyServerlessRequest::getServerlessRuleCpuShrinkThreshold() const { + return serverlessRuleCpuShrinkThreshold_; +} + +void CreateCronJobPolicyServerlessRequest::setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold) { + serverlessRuleCpuShrinkThreshold_ = serverlessRuleCpuShrinkThreshold; + setParameter(std::string("ServerlessRuleCpuShrinkThreshold"), serverlessRuleCpuShrinkThreshold); +} + +long CreateCronJobPolicyServerlessRequest::getOwnerId() const { + return ownerId_; +} + +void CreateCronJobPolicyServerlessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateCronJobPolicyServerlessRequest::getScaleRoNumMin() const { + return scaleRoNumMin_; +} + +void CreateCronJobPolicyServerlessRequest::setScaleRoNumMin(const std::string &scaleRoNumMin) { + scaleRoNumMin_ = scaleRoNumMin; + setParameter(std::string("ScaleRoNumMin"), scaleRoNumMin); +} + +std::string CreateCronJobPolicyServerlessRequest::getAllowShutDown() const { + return allowShutDown_; +} + +void CreateCronJobPolicyServerlessRequest::setAllowShutDown(const std::string &allowShutDown) { + allowShutDown_ = allowShutDown; + setParameter(std::string("AllowShutDown"), allowShutDown); +} + diff --git a/polardb/src/model/CreateCronJobPolicyServerlessResult.cc b/polardb/src/model/CreateCronJobPolicyServerlessResult.cc new file mode 100644 index 000000000..968c97f20 --- /dev/null +++ b/polardb/src/model/CreateCronJobPolicyServerlessResult.cc @@ -0,0 +1,107 @@ +/* + * 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; + +CreateCronJobPolicyServerlessResult::CreateCronJobPolicyServerlessResult() : + ServiceResult() +{} + +CreateCronJobPolicyServerlessResult::CreateCronJobPolicyServerlessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCronJobPolicyServerlessResult::~CreateCronJobPolicyServerlessResult() +{} + +void CreateCronJobPolicyServerlessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Args"].isNull()) + args_ = value["Args"].asString(); + if(!value["CronExpression"].isNull()) + cronExpression_ = value["CronExpression"].asString(); + if(!value["Action"].isNull()) + action_ = value["Action"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + +} + +std::string CreateCronJobPolicyServerlessResult::getStatus()const +{ + return status_; +} + +std::string CreateCronJobPolicyServerlessResult::getArgs()const +{ + return args_; +} + +std::string CreateCronJobPolicyServerlessResult::getAction()const +{ + return action_; +} + +std::string CreateCronJobPolicyServerlessResult::getEndTime()const +{ + return endTime_; +} + +std::string CreateCronJobPolicyServerlessResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string CreateCronJobPolicyServerlessResult::getStartTime()const +{ + return startTime_; +} + +std::string CreateCronJobPolicyServerlessResult::getRegionId()const +{ + return regionId_; +} + +std::string CreateCronJobPolicyServerlessResult::getCronExpression()const +{ + return cronExpression_; +} + +std::string CreateCronJobPolicyServerlessResult::getJobId()const +{ + return jobId_; +} + diff --git a/polardb/src/model/CreateDBClusterEndpointRequest.cc b/polardb/src/model/CreateDBClusterEndpointRequest.cc index 5678db544..61840d1b5 100644 --- a/polardb/src/model/CreateDBClusterEndpointRequest.cc +++ b/polardb/src/model/CreateDBClusterEndpointRequest.cc @@ -178,6 +178,15 @@ void CreateDBClusterEndpointRequest::setVSwitchId(const std::string &vSwitchId) setParameter(std::string("VSwitchId"), vSwitchId); } +std::string CreateDBClusterEndpointRequest::getPolarFsInstanceId() const { + return polarFsInstanceId_; +} + +void CreateDBClusterEndpointRequest::setPolarFsInstanceId(const std::string &polarFsInstanceId) { + polarFsInstanceId_ = polarFsInstanceId; + setParameter(std::string("PolarFsInstanceId"), polarFsInstanceId); +} + std::string CreateDBClusterEndpointRequest::getNodes() const { return nodes_; } diff --git a/polardb/src/model/CreateDBClusterEndpointZonalRequest.cc b/polardb/src/model/CreateDBClusterEndpointZonalRequest.cc new file mode 100644 index 000000000..8338bbaf1 --- /dev/null +++ b/polardb/src/model/CreateDBClusterEndpointZonalRequest.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::CreateDBClusterEndpointZonalRequest; + +CreateDBClusterEndpointZonalRequest::CreateDBClusterEndpointZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateDBClusterEndpointZonal") { + setMethod(HttpRequest::Method::Post); +} + +CreateDBClusterEndpointZonalRequest::~CreateDBClusterEndpointZonalRequest() {} + +std::string CreateDBClusterEndpointZonalRequest::getAutoAddNewNodes() const { + return autoAddNewNodes_; +} + +void CreateDBClusterEndpointZonalRequest::setAutoAddNewNodes(const std::string &autoAddNewNodes) { + autoAddNewNodes_ = autoAddNewNodes; + setParameter(std::string("AutoAddNewNodes"), autoAddNewNodes); +} + +long CreateDBClusterEndpointZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateDBClusterEndpointZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateDBClusterEndpointZonalRequest::getClientToken() const { + return clientToken_; +} + +void CreateDBClusterEndpointZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateDBClusterEndpointZonalRequest::getPolarSccWaitTimeout() const { + return polarSccWaitTimeout_; +} + +void CreateDBClusterEndpointZonalRequest::setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout) { + polarSccWaitTimeout_ = polarSccWaitTimeout; + setParameter(std::string("PolarSccWaitTimeout"), polarSccWaitTimeout); +} + +std::string CreateDBClusterEndpointZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDBClusterEndpointZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDBClusterEndpointZonalRequest::getReadWriteMode() const { + return readWriteMode_; +} + +void CreateDBClusterEndpointZonalRequest::setReadWriteMode(const std::string &readWriteMode) { + readWriteMode_ = readWriteMode; + setParameter(std::string("ReadWriteMode"), readWriteMode); +} + +std::string CreateDBClusterEndpointZonalRequest::getEndpointType() const { + return endpointType_; +} + +void CreateDBClusterEndpointZonalRequest::setEndpointType(const std::string &endpointType) { + endpointType_ = endpointType; + setParameter(std::string("EndpointType"), endpointType); +} + +std::string CreateDBClusterEndpointZonalRequest::getPolarSccTimeoutAction() const { + return polarSccTimeoutAction_; +} + +void CreateDBClusterEndpointZonalRequest::setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction) { + polarSccTimeoutAction_ = polarSccTimeoutAction; + setParameter(std::string("PolarSccTimeoutAction"), polarSccTimeoutAction); +} + +std::string CreateDBClusterEndpointZonalRequest::getEndpointSubCluster() const { + return endpointSubCluster_; +} + +void CreateDBClusterEndpointZonalRequest::setEndpointSubCluster(const std::string &endpointSubCluster) { + endpointSubCluster_ = endpointSubCluster; + setParameter(std::string("EndpointSubCluster"), endpointSubCluster); +} + +std::string CreateDBClusterEndpointZonalRequest::getStandbyVSwitchId() const { + return standbyVSwitchId_; +} + +void CreateDBClusterEndpointZonalRequest::setStandbyVSwitchId(const std::string &standbyVSwitchId) { + standbyVSwitchId_ = standbyVSwitchId; + setParameter(std::string("StandbyVSwitchId"), standbyVSwitchId); +} + +std::string CreateDBClusterEndpointZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateDBClusterEndpointZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateDBClusterEndpointZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateDBClusterEndpointZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateDBClusterEndpointZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateDBClusterEndpointZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateDBClusterEndpointZonalRequest::getEndpointConfig() const { + return endpointConfig_; +} + +void CreateDBClusterEndpointZonalRequest::setEndpointConfig(const std::string &endpointConfig) { + endpointConfig_ = endpointConfig; + setParameter(std::string("EndpointConfig"), endpointConfig); +} + +std::string CreateDBClusterEndpointZonalRequest::getDBEndpointDescription() const { + return dBEndpointDescription_; +} + +void CreateDBClusterEndpointZonalRequest::setDBEndpointDescription(const std::string &dBEndpointDescription) { + dBEndpointDescription_ = dBEndpointDescription; + setParameter(std::string("DBEndpointDescription"), dBEndpointDescription); +} + +long CreateDBClusterEndpointZonalRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDBClusterEndpointZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDBClusterEndpointZonalRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateDBClusterEndpointZonalRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateDBClusterEndpointZonalRequest::getNodes() const { + return nodes_; +} + +void CreateDBClusterEndpointZonalRequest::setNodes(const std::string &nodes) { + nodes_ = nodes; + setParameter(std::string("Nodes"), nodes); +} + +std::string CreateDBClusterEndpointZonalRequest::getSccMode() const { + return sccMode_; +} + +void CreateDBClusterEndpointZonalRequest::setSccMode(const std::string &sccMode) { + sccMode_ = sccMode; + setParameter(std::string("SccMode"), sccMode); +} + +std::string CreateDBClusterEndpointZonalRequest::getVPCId() const { + return vPCId_; +} + +void CreateDBClusterEndpointZonalRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + diff --git a/polardb/src/model/CreateDBClusterEndpointZonalResult.cc b/polardb/src/model/CreateDBClusterEndpointZonalResult.cc new file mode 100644 index 000000000..e7d6f7cf4 --- /dev/null +++ b/polardb/src/model/CreateDBClusterEndpointZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDBClusterEndpointZonalResult::CreateDBClusterEndpointZonalResult() : + ServiceResult() +{} + +CreateDBClusterEndpointZonalResult::CreateDBClusterEndpointZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDBClusterEndpointZonalResult::~CreateDBClusterEndpointZonalResult() +{} + +void CreateDBClusterEndpointZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateDBClusterRequest.cc b/polardb/src/model/CreateDBClusterRequest.cc index 00ebc560e..945b649bf 100644 --- a/polardb/src/model/CreateDBClusterRequest.cc +++ b/polardb/src/model/CreateDBClusterRequest.cc @@ -88,6 +88,15 @@ void CreateDBClusterRequest::setCreationCategory(const std::string &creationCate setParameter(std::string("CreationCategory"), creationCategory); } +std::string CreateDBClusterRequest::getCloudProvider() const { + return cloudProvider_; +} + +void CreateDBClusterRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string CreateDBClusterRequest::getResourceGroupId() const { return resourceGroupId_; } @@ -97,6 +106,15 @@ void CreateDBClusterRequest::setResourceGroupId(const std::string &resourceGroup setParameter(std::string("ResourceGroupId"), resourceGroupId); } +long CreateDBClusterRequest::getSourceUid() const { + return sourceUid_; +} + +void CreateDBClusterRequest::setSourceUid(long sourceUid) { + sourceUid_ = sourceUid; + setParameter(std::string("SourceUid"), std::to_string(sourceUid)); +} + std::string CreateDBClusterRequest::getDBNodeClass() const { return dBNodeClass_; } @@ -106,6 +124,24 @@ void CreateDBClusterRequest::setDBNodeClass(const std::string &dBNodeClass) { setParameter(std::string("DBNodeClass"), dBNodeClass); } +std::string CreateDBClusterRequest::getAccountName() const { + return accountName_; +} + +void CreateDBClusterRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateDBClusterRequest::getEnsRegionId() const { + return ensRegionId_; +} + +void CreateDBClusterRequest::setEnsRegionId(const std::string &ensRegionId) { + ensRegionId_ = ensRegionId; + setParameter(std::string("EnsRegionId"), ensRegionId); +} + std::string CreateDBClusterRequest::getCreationOption() const { return creationOption_; } @@ -201,6 +237,15 @@ void CreateDBClusterRequest::setDBMinorVersion(const std::string &dBMinorVersion setParameter(std::string("DBMinorVersion"), dBMinorVersion); } +std::string CreateDBClusterRequest::getDnNodeClass() const { + return dnNodeClass_; +} + +void CreateDBClusterRequest::setDnNodeClass(const std::string &dnNodeClass) { + dnNodeClass_ = dnNodeClass; + setParameter(std::string("DnNodeClass"), dnNodeClass); +} + long CreateDBClusterRequest::getProvisionedIops() const { return provisionedIops_; } @@ -246,6 +291,15 @@ void CreateDBClusterRequest::setZoneId(const std::string &zoneId) { setParameter(std::string("ZoneId"), zoneId); } +std::string CreateDBClusterRequest::getCnNodeNum() const { + return cnNodeNum_; +} + +void CreateDBClusterRequest::setCnNodeNum(const std::string &cnNodeNum) { + cnNodeNum_ = cnNodeNum; + setParameter(std::string("CnNodeNum"), cnNodeNum); +} + std::string CreateDBClusterRequest::getStorageAutoScale() const { return storageAutoScale_; } @@ -354,6 +408,15 @@ void CreateDBClusterRequest::setStorageEncryptionKey(const std::string &storageE setParameter(std::string("StorageEncryptionKey"), storageEncryptionKey); } +std::string CreateDBClusterRequest::getCnNodeClass() const { + return cnNodeClass_; +} + +void CreateDBClusterRequest::setCnNodeClass(const std::string &cnNodeClass) { + cnNodeClass_ = cnNodeClass; + setParameter(std::string("CnNodeClass"), cnNodeClass); +} + std::string CreateDBClusterRequest::getParameterGroupId() const { return parameterGroupId_; } @@ -480,6 +543,15 @@ void CreateDBClusterRequest::setDBNodeNum(int dBNodeNum) { setParameter(std::string("DBNodeNum"), std::to_string(dBNodeNum)); } +std::string CreateDBClusterRequest::getAccountPassword() const { + return accountPassword_; +} + +void CreateDBClusterRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + long CreateDBClusterRequest::getStorageUpperBound() const { return storageUpperBound_; } @@ -570,3 +642,12 @@ void CreateDBClusterRequest::setServerlessType(const std::string &serverlessType setParameter(std::string("ServerlessType"), serverlessType); } +std::string CreateDBClusterRequest::getDnNodeNum() const { + return dnNodeNum_; +} + +void CreateDBClusterRequest::setDnNodeNum(const std::string &dnNodeNum) { + dnNodeNum_ = dnNodeNum; + setParameter(std::string("DnNodeNum"), dnNodeNum); +} + diff --git a/polardb/src/model/CreateDBNodesRequest.cc b/polardb/src/model/CreateDBNodesRequest.cc index 5929c19d4..2d88a1496 100644 --- a/polardb/src/model/CreateDBNodesRequest.cc +++ b/polardb/src/model/CreateDBNodesRequest.cc @@ -70,6 +70,15 @@ void CreateDBNodesRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string CreateDBNodesRequest::getCloudProvider() const { + return cloudProvider_; +} + +void CreateDBNodesRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string CreateDBNodesRequest::getResourceGroupId() const { return resourceGroupId_; } diff --git a/polardb/src/model/CreateDatabaseZonalRequest.cc b/polardb/src/model/CreateDatabaseZonalRequest.cc new file mode 100644 index 000000000..a5ffb860a --- /dev/null +++ b/polardb/src/model/CreateDatabaseZonalRequest.cc @@ -0,0 +1,153 @@ +/* + * 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::CreateDatabaseZonalRequest; + +CreateDatabaseZonalRequest::CreateDatabaseZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateDatabaseZonal") { + setMethod(HttpRequest::Method::Post); +} + +CreateDatabaseZonalRequest::~CreateDatabaseZonalRequest() {} + +long CreateDatabaseZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateDatabaseZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateDatabaseZonalRequest::getClientToken() const { + return clientToken_; +} + +void CreateDatabaseZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateDatabaseZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateDatabaseZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateDatabaseZonalRequest::getAccountPrivilege() const { + return accountPrivilege_; +} + +void CreateDatabaseZonalRequest::setAccountPrivilege(const std::string &accountPrivilege) { + accountPrivilege_ = accountPrivilege; + setParameter(std::string("AccountPrivilege"), accountPrivilege); +} + +std::string CreateDatabaseZonalRequest::getAccountName() const { + return accountName_; +} + +void CreateDatabaseZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateDatabaseZonalRequest::getDBDescription() const { + return dBDescription_; +} + +void CreateDatabaseZonalRequest::setDBDescription(const std::string &dBDescription) { + dBDescription_ = dBDescription; + setParameter(std::string("DBDescription"), dBDescription); +} + +std::string CreateDatabaseZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateDatabaseZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateDatabaseZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateDatabaseZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateDatabaseZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateDatabaseZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateDatabaseZonalRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDatabaseZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDatabaseZonalRequest::getCollate() const { + return collate_; +} + +void CreateDatabaseZonalRequest::setCollate(const std::string &collate) { + collate_ = collate; + setParameter(std::string("Collate"), collate); +} + +std::string CreateDatabaseZonalRequest::getDBName() const { + return dBName_; +} + +void CreateDatabaseZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + +std::string CreateDatabaseZonalRequest::getCtype() const { + return ctype_; +} + +void CreateDatabaseZonalRequest::setCtype(const std::string &ctype) { + ctype_ = ctype; + setParameter(std::string("Ctype"), ctype); +} + +std::string CreateDatabaseZonalRequest::getCharacterSetName() const { + return characterSetName_; +} + +void CreateDatabaseZonalRequest::setCharacterSetName(const std::string &characterSetName) { + characterSetName_ = characterSetName; + setParameter(std::string("CharacterSetName"), characterSetName); +} + diff --git a/polardb/src/model/CreateDatabaseZonalResult.cc b/polardb/src/model/CreateDatabaseZonalResult.cc new file mode 100644 index 000000000..071a6848f --- /dev/null +++ b/polardb/src/model/CreateDatabaseZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateDatabaseZonalResult::CreateDatabaseZonalResult() : + ServiceResult() +{} + +CreateDatabaseZonalResult::CreateDatabaseZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDatabaseZonalResult::~CreateDatabaseZonalResult() +{} + +void CreateDatabaseZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateExtensionsRequest.cc b/polardb/src/model/CreateExtensionsRequest.cc new file mode 100644 index 000000000..1a2d00108 --- /dev/null +++ b/polardb/src/model/CreateExtensionsRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::CreateExtensionsRequest; + +CreateExtensionsRequest::CreateExtensionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateExtensions") { + setMethod(HttpRequest::Method::Post); +} + +CreateExtensionsRequest::~CreateExtensionsRequest() {} + +long CreateExtensionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateExtensionsRequest::getSourceDBName() const { + return sourceDBName_; +} + +void CreateExtensionsRequest::setSourceDBName(const std::string &sourceDBName) { + sourceDBName_ = sourceDBName; + setParameter(std::string("SourceDBName"), sourceDBName); +} + +std::string CreateExtensionsRequest::getClientToken() const { + return clientToken_; +} + +void CreateExtensionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateExtensionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateExtensionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateExtensionsRequest::getAccountName() const { + return accountName_; +} + +void CreateExtensionsRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string CreateExtensionsRequest::getRegionId() const { + return regionId_; +} + +void CreateExtensionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateExtensionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateExtensionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateExtensionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateExtensionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateExtensionsRequest::getOwnerId() const { + return ownerId_; +} + +void CreateExtensionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateExtensionsRequest::getVersion() const { + return version_; +} + +void CreateExtensionsRequest::setVersion(const std::string &version) { + version_ = version; + setParameter(std::string("Version"), version); +} + +std::string CreateExtensionsRequest::getDBNames() const { + return dBNames_; +} + +void CreateExtensionsRequest::setDBNames(const std::string &dBNames) { + dBNames_ = dBNames; + setParameter(std::string("DBNames"), dBNames); +} + +std::string CreateExtensionsRequest::getExtensions() const { + return extensions_; +} + +void CreateExtensionsRequest::setExtensions(const std::string &extensions) { + extensions_ = extensions; + setParameter(std::string("Extensions"), extensions); +} + +std::string CreateExtensionsRequest::getVpcId() const { + return vpcId_; +} + +void CreateExtensionsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/CreateExtensionsResult.cc b/polardb/src/model/CreateExtensionsResult.cc new file mode 100644 index 000000000..f220af60c --- /dev/null +++ b/polardb/src/model/CreateExtensionsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateExtensionsResult::CreateExtensionsResult() : + ServiceResult() +{} + +CreateExtensionsResult::CreateExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExtensionsResult::~CreateExtensionsResult() +{} + +void CreateExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/CreateGlobalDataNetworkRequest.cc b/polardb/src/model/CreateGlobalDataNetworkRequest.cc new file mode 100644 index 000000000..e7e6cc60d --- /dev/null +++ b/polardb/src/model/CreateGlobalDataNetworkRequest.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::CreateGlobalDataNetworkRequest; + +CreateGlobalDataNetworkRequest::CreateGlobalDataNetworkRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateGlobalDataNetwork") { + setMethod(HttpRequest::Method::Post); +} + +CreateGlobalDataNetworkRequest::~CreateGlobalDataNetworkRequest() {} + +std::string CreateGlobalDataNetworkRequest::getDestinationType() const { + return destinationType_; +} + +void CreateGlobalDataNetworkRequest::setDestinationType(const std::string &destinationType) { + destinationType_ = destinationType; + setParameter(std::string("DestinationType"), destinationType); +} + +std::string CreateGlobalDataNetworkRequest::getDescription() const { + return description_; +} + +void CreateGlobalDataNetworkRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateGlobalDataNetworkRequest::getSourceType() const { + return sourceType_; +} + +void CreateGlobalDataNetworkRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string CreateGlobalDataNetworkRequest::getFreezeSourceDuringSync() const { + return freezeSourceDuringSync_; +} + +void CreateGlobalDataNetworkRequest::setFreezeSourceDuringSync(const std::string &freezeSourceDuringSync) { + freezeSourceDuringSync_ = freezeSourceDuringSync; + setParameter(std::string("FreezeSourceDuringSync"), freezeSourceDuringSync); +} + +std::string CreateGlobalDataNetworkRequest::getSourceId() const { + return sourceId_; +} + +void CreateGlobalDataNetworkRequest::setSourceId(const std::string &sourceId) { + sourceId_ = sourceId; + setParameter(std::string("SourceId"), sourceId); +} + +std::string CreateGlobalDataNetworkRequest::getDestinationRegion() const { + return destinationRegion_; +} + +void CreateGlobalDataNetworkRequest::setDestinationRegion(const std::string &destinationRegion) { + destinationRegion_ = destinationRegion; + setParameter(std::string("DestinationRegion"), destinationRegion); +} + +std::string CreateGlobalDataNetworkRequest::getDestinationId() const { + return destinationId_; +} + +void CreateGlobalDataNetworkRequest::setDestinationId(const std::string &destinationId) { + destinationId_ = destinationId; + setParameter(std::string("DestinationId"), destinationId); +} + +std::string CreateGlobalDataNetworkRequest::getSourceFileSystemPath() const { + return sourceFileSystemPath_; +} + +void CreateGlobalDataNetworkRequest::setSourceFileSystemPath(const std::string &sourceFileSystemPath) { + sourceFileSystemPath_ = sourceFileSystemPath; + setParameter(std::string("SourceFileSystemPath"), sourceFileSystemPath); +} + +std::string CreateGlobalDataNetworkRequest::getDestinationFileSystemPath() const { + return destinationFileSystemPath_; +} + +void CreateGlobalDataNetworkRequest::setDestinationFileSystemPath(const std::string &destinationFileSystemPath) { + destinationFileSystemPath_ = destinationFileSystemPath; + setParameter(std::string("DestinationFileSystemPath"), destinationFileSystemPath); +} + +std::string CreateGlobalDataNetworkRequest::getSourceRegion() const { + return sourceRegion_; +} + +void CreateGlobalDataNetworkRequest::setSourceRegion(const std::string &sourceRegion) { + sourceRegion_ = sourceRegion; + setParameter(std::string("SourceRegion"), sourceRegion); +} + diff --git a/polardb/src/model/CreateGlobalDataNetworkResult.cc b/polardb/src/model/CreateGlobalDataNetworkResult.cc new file mode 100644 index 000000000..924b70a76 --- /dev/null +++ b/polardb/src/model/CreateGlobalDataNetworkResult.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; + +CreateGlobalDataNetworkResult::CreateGlobalDataNetworkResult() : + ServiceResult() +{} + +CreateGlobalDataNetworkResult::CreateGlobalDataNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGlobalDataNetworkResult::~CreateGlobalDataNetworkResult() +{} + +void CreateGlobalDataNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["NetworkId"].isNull()) + networkId_ = value["NetworkId"].asString(); + if(!value["ChannelId"].isNull()) + channelId_ = value["ChannelId"].asString(); + +} + +std::string CreateGlobalDataNetworkResult::getNetworkId()const +{ + return networkId_; +} + +std::string CreateGlobalDataNetworkResult::getChannelId()const +{ + return channelId_; +} + diff --git a/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc b/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc index 77cd8d4e5..3b115b5c2 100644 --- a/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc +++ b/polardb/src/model/CreateGlobalDatabaseNetworkRequest.cc @@ -142,3 +142,12 @@ void CreateGlobalDatabaseNetworkRequest::setDBName(const std::string &dBName) { setParameter(std::string("DBName"), dBName); } +std::string CreateGlobalDatabaseNetworkRequest::getGDNVersion() const { + return gDNVersion_; +} + +void CreateGlobalDatabaseNetworkRequest::setGDNVersion(const std::string &gDNVersion) { + gDNVersion_ = gDNVersion; + setParameter(std::string("GDNVersion"), gDNVersion); +} + diff --git a/polardb/src/model/CreateNetworkChannelRequest.cc b/polardb/src/model/CreateNetworkChannelRequest.cc new file mode 100644 index 000000000..5cae60cf6 --- /dev/null +++ b/polardb/src/model/CreateNetworkChannelRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::CreateNetworkChannelRequest; + +CreateNetworkChannelRequest::CreateNetworkChannelRequest() + : RpcServiceRequest("polardb", "2017-08-01", "CreateNetworkChannel") { + setMethod(HttpRequest::Method::Post); +} + +CreateNetworkChannelRequest::~CreateNetworkChannelRequest() {} + +long CreateNetworkChannelRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateNetworkChannelRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateNetworkChannelRequest::getNotes() const { + return notes_; +} + +void CreateNetworkChannelRequest::setNotes(const std::string ¬es) { + notes_ = notes; + setParameter(std::string("Notes"), notes); +} + +std::string CreateNetworkChannelRequest::getClientToken() const { + return clientToken_; +} + +void CreateNetworkChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateNetworkChannelRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateNetworkChannelRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateNetworkChannelRequest::getTargetIp() const { + return targetIp_; +} + +void CreateNetworkChannelRequest::setTargetIp(const std::string &targetIp) { + targetIp_ = targetIp; + setParameter(std::string("TargetIp"), targetIp); +} + +std::string CreateNetworkChannelRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateNetworkChannelRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateNetworkChannelRequest::getRegionId() const { + return regionId_; +} + +void CreateNetworkChannelRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateNetworkChannelRequest::getTargetPort() const { + return targetPort_; +} + +void CreateNetworkChannelRequest::setTargetPort(const std::string &targetPort) { + targetPort_ = targetPort; + setParameter(std::string("TargetPort"), targetPort); +} + +std::string CreateNetworkChannelRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateNetworkChannelRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateNetworkChannelRequest::getDBClusterId() const { + return dBClusterId_; +} + +void CreateNetworkChannelRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string CreateNetworkChannelRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateNetworkChannelRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateNetworkChannelRequest::getOwnerId() const { + return ownerId_; +} + +void CreateNetworkChannelRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateNetworkChannelRequest::getChannelName() const { + return channelName_; +} + +void CreateNetworkChannelRequest::setChannelName(const std::string &channelName) { + channelName_ = channelName; + setParameter(std::string("ChannelName"), channelName); +} + +std::string CreateNetworkChannelRequest::getTargetDBClusterId() const { + return targetDBClusterId_; +} + +void CreateNetworkChannelRequest::setTargetDBClusterId(const std::string &targetDBClusterId) { + targetDBClusterId_ = targetDBClusterId; + setParameter(std::string("TargetDBClusterId"), targetDBClusterId); +} + +std::string CreateNetworkChannelRequest::getVpcId() const { + return vpcId_; +} + +void CreateNetworkChannelRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/CreateNetworkChannelResult.cc b/polardb/src/model/CreateNetworkChannelResult.cc new file mode 100644 index 000000000..6438a3f23 --- /dev/null +++ b/polardb/src/model/CreateNetworkChannelResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +CreateNetworkChannelResult::CreateNetworkChannelResult() : + ServiceResult() +{} + +CreateNetworkChannelResult::CreateNetworkChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNetworkChannelResult::~CreateNetworkChannelResult() +{} + +void CreateNetworkChannelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteAIDBClusterRequest.cc b/polardb/src/model/DeleteAIDBClusterRequest.cc new file mode 100644 index 000000000..96ad11bf9 --- /dev/null +++ b/polardb/src/model/DeleteAIDBClusterRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DeleteAIDBClusterRequest; + +DeleteAIDBClusterRequest::DeleteAIDBClusterRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteAIDBCluster") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAIDBClusterRequest::~DeleteAIDBClusterRequest() {} + +std::string DeleteAIDBClusterRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteAIDBClusterRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/polardb/src/model/DeleteAIDBClusterResult.cc b/polardb/src/model/DeleteAIDBClusterResult.cc new file mode 100644 index 000000000..8ab61e02c --- /dev/null +++ b/polardb/src/model/DeleteAIDBClusterResult.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; + +DeleteAIDBClusterResult::DeleteAIDBClusterResult() : + ServiceResult() +{} + +DeleteAIDBClusterResult::DeleteAIDBClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAIDBClusterResult::~DeleteAIDBClusterResult() +{} + +void DeleteAIDBClusterResult::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(); + +} + +std::string DeleteAIDBClusterResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/DeleteAccountZonalRequest.cc b/polardb/src/model/DeleteAccountZonalRequest.cc new file mode 100644 index 000000000..099556eb0 --- /dev/null +++ b/polardb/src/model/DeleteAccountZonalRequest.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::DeleteAccountZonalRequest; + +DeleteAccountZonalRequest::DeleteAccountZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteAccountZonal") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccountZonalRequest::~DeleteAccountZonalRequest() {} + +long DeleteAccountZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteAccountZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteAccountZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteAccountZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteAccountZonalRequest::getAccountName() const { + return accountName_; +} + +void DeleteAccountZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string DeleteAccountZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteAccountZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteAccountZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteAccountZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteAccountZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteAccountZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteAccountZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAccountZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DeleteAccountZonalResult.cc b/polardb/src/model/DeleteAccountZonalResult.cc new file mode 100644 index 000000000..6203707ac --- /dev/null +++ b/polardb/src/model/DeleteAccountZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteAccountZonalResult::DeleteAccountZonalResult() : + ServiceResult() +{} + +DeleteAccountZonalResult::DeleteAccountZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccountZonalResult::~DeleteAccountZonalResult() +{} + +void DeleteAccountZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteApplicationEndpointAddressRequest.cc b/polardb/src/model/DeleteApplicationEndpointAddressRequest.cc new file mode 100644 index 000000000..bb4c17674 --- /dev/null +++ b/polardb/src/model/DeleteApplicationEndpointAddressRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DeleteApplicationEndpointAddressRequest; + +DeleteApplicationEndpointAddressRequest::DeleteApplicationEndpointAddressRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteApplicationEndpointAddress") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApplicationEndpointAddressRequest::~DeleteApplicationEndpointAddressRequest() {} + +std::string DeleteApplicationEndpointAddressRequest::getEndpointId() const { + return endpointId_; +} + +void DeleteApplicationEndpointAddressRequest::setEndpointId(const std::string &endpointId) { + endpointId_ = endpointId; + setParameter(std::string("EndpointId"), endpointId); +} + +std::string DeleteApplicationEndpointAddressRequest::getApplicationId() const { + return applicationId_; +} + +void DeleteApplicationEndpointAddressRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + +std::string DeleteApplicationEndpointAddressRequest::getNetType() const { + return netType_; +} + +void DeleteApplicationEndpointAddressRequest::setNetType(const std::string &netType) { + netType_ = netType; + setParameter(std::string("NetType"), netType); +} + diff --git a/polardb/src/model/DeleteApplicationEndpointAddressResult.cc b/polardb/src/model/DeleteApplicationEndpointAddressResult.cc new file mode 100644 index 000000000..994a771a9 --- /dev/null +++ b/polardb/src/model/DeleteApplicationEndpointAddressResult.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; + +DeleteApplicationEndpointAddressResult::DeleteApplicationEndpointAddressResult() : + ServiceResult() +{} + +DeleteApplicationEndpointAddressResult::DeleteApplicationEndpointAddressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationEndpointAddressResult::~DeleteApplicationEndpointAddressResult() +{} + +void DeleteApplicationEndpointAddressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["EndpointId"].isNull()) + endpointId_ = value["EndpointId"].asString(); + +} + +std::string DeleteApplicationEndpointAddressResult::getEndpointId()const +{ + return endpointId_; +} + +std::string DeleteApplicationEndpointAddressResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/DeleteApplicationRequest.cc b/polardb/src/model/DeleteApplicationRequest.cc new file mode 100644 index 000000000..f3459e043 --- /dev/null +++ b/polardb/src/model/DeleteApplicationRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DeleteApplicationRequest; + +DeleteApplicationRequest::DeleteApplicationRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteApplication") { + setMethod(HttpRequest::Method::Post); +} + +DeleteApplicationRequest::~DeleteApplicationRequest() {} + +std::string DeleteApplicationRequest::getApplicationId() const { + return applicationId_; +} + +void DeleteApplicationRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/DeleteApplicationResult.cc b/polardb/src/model/DeleteApplicationResult.cc new file mode 100644 index 000000000..7d7527006 --- /dev/null +++ b/polardb/src/model/DeleteApplicationResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteApplicationResult::DeleteApplicationResult() : + ServiceResult() +{} + +DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteApplicationResult::~DeleteApplicationResult() +{} + +void DeleteApplicationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBClusterEndpointRequest.cc b/polardb/src/model/DeleteDBClusterEndpointRequest.cc index f4c8f5829..f7a2c7d33 100644 --- a/polardb/src/model/DeleteDBClusterEndpointRequest.cc +++ b/polardb/src/model/DeleteDBClusterEndpointRequest.cc @@ -88,3 +88,12 @@ void DeleteDBClusterEndpointRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DeleteDBClusterEndpointRequest::getPolarFsInstanceId() const { + return polarFsInstanceId_; +} + +void DeleteDBClusterEndpointRequest::setPolarFsInstanceId(const std::string &polarFsInstanceId) { + polarFsInstanceId_ = polarFsInstanceId; + setParameter(std::string("PolarFsInstanceId"), polarFsInstanceId); +} + diff --git a/polardb/src/model/DeleteDBClusterEndpointZonalRequest.cc b/polardb/src/model/DeleteDBClusterEndpointZonalRequest.cc new file mode 100644 index 000000000..d555a50af --- /dev/null +++ b/polardb/src/model/DeleteDBClusterEndpointZonalRequest.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::DeleteDBClusterEndpointZonalRequest; + +DeleteDBClusterEndpointZonalRequest::DeleteDBClusterEndpointZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteDBClusterEndpointZonal") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDBClusterEndpointZonalRequest::~DeleteDBClusterEndpointZonalRequest() {} + +long DeleteDBClusterEndpointZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteDBClusterEndpointZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteDBClusterEndpointZonalRequest::getDBEndpointId() const { + return dBEndpointId_; +} + +void DeleteDBClusterEndpointZonalRequest::setDBEndpointId(const std::string &dBEndpointId) { + dBEndpointId_ = dBEndpointId; + setParameter(std::string("DBEndpointId"), dBEndpointId); +} + +std::string DeleteDBClusterEndpointZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDBClusterEndpointZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteDBClusterEndpointZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteDBClusterEndpointZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteDBClusterEndpointZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteDBClusterEndpointZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteDBClusterEndpointZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteDBClusterEndpointZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteDBClusterEndpointZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDBClusterEndpointZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DeleteDBClusterEndpointZonalResult.cc b/polardb/src/model/DeleteDBClusterEndpointZonalResult.cc new file mode 100644 index 000000000..bec56fd6e --- /dev/null +++ b/polardb/src/model/DeleteDBClusterEndpointZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDBClusterEndpointZonalResult::DeleteDBClusterEndpointZonalResult() : + ServiceResult() +{} + +DeleteDBClusterEndpointZonalResult::DeleteDBClusterEndpointZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDBClusterEndpointZonalResult::~DeleteDBClusterEndpointZonalResult() +{} + +void DeleteDBClusterEndpointZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteDBNodesRequest.cc b/polardb/src/model/DeleteDBNodesRequest.cc index 641e48995..75720bfbe 100644 --- a/polardb/src/model/DeleteDBNodesRequest.cc +++ b/polardb/src/model/DeleteDBNodesRequest.cc @@ -60,6 +60,15 @@ void DeleteDBNodesRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DeleteDBNodesRequest::getCloudProvider() const { + return cloudProvider_; +} + +void DeleteDBNodesRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string DeleteDBNodesRequest::getDBNodeType() const { return dBNodeType_; } diff --git a/polardb/src/model/DeleteDatabaseZonalRequest.cc b/polardb/src/model/DeleteDatabaseZonalRequest.cc new file mode 100644 index 000000000..fd3ea3441 --- /dev/null +++ b/polardb/src/model/DeleteDatabaseZonalRequest.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::DeleteDatabaseZonalRequest; + +DeleteDatabaseZonalRequest::DeleteDatabaseZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteDatabaseZonal") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDatabaseZonalRequest::~DeleteDatabaseZonalRequest() {} + +long DeleteDatabaseZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteDatabaseZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteDatabaseZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteDatabaseZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteDatabaseZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteDatabaseZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteDatabaseZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteDatabaseZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteDatabaseZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteDatabaseZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteDatabaseZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDatabaseZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteDatabaseZonalRequest::getDBName() const { + return dBName_; +} + +void DeleteDatabaseZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/DeleteDatabaseZonalResult.cc b/polardb/src/model/DeleteDatabaseZonalResult.cc new file mode 100644 index 000000000..dc291ba1f --- /dev/null +++ b/polardb/src/model/DeleteDatabaseZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteDatabaseZonalResult::DeleteDatabaseZonalResult() : + ServiceResult() +{} + +DeleteDatabaseZonalResult::DeleteDatabaseZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDatabaseZonalResult::~DeleteDatabaseZonalResult() +{} + +void DeleteDatabaseZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteEncryptionDBRolePrivilegeRequest.cc b/polardb/src/model/DeleteEncryptionDBRolePrivilegeRequest.cc new file mode 100644 index 000000000..4c1c62504 --- /dev/null +++ b/polardb/src/model/DeleteEncryptionDBRolePrivilegeRequest.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::DeleteEncryptionDBRolePrivilegeRequest; + +DeleteEncryptionDBRolePrivilegeRequest::DeleteEncryptionDBRolePrivilegeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteEncryptionDBRolePrivilege") { + setMethod(HttpRequest::Method::Post); +} + +DeleteEncryptionDBRolePrivilegeRequest::~DeleteEncryptionDBRolePrivilegeRequest() {} + +long DeleteEncryptionDBRolePrivilegeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteEncryptionDBRolePrivilegeRequest::getRolePrivilegeNameList() const { + return rolePrivilegeNameList_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setRolePrivilegeNameList(const std::string &rolePrivilegeNameList) { + rolePrivilegeNameList_ = rolePrivilegeNameList; + setParameter(std::string("RolePrivilegeNameList"), rolePrivilegeNameList); +} + +std::string DeleteEncryptionDBRolePrivilegeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteEncryptionDBRolePrivilegeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteEncryptionDBRolePrivilegeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteEncryptionDBRolePrivilegeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteEncryptionDBRolePrivilegeRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteEncryptionDBRolePrivilegeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DeleteEncryptionDBRolePrivilegeResult.cc b/polardb/src/model/DeleteEncryptionDBRolePrivilegeResult.cc new file mode 100644 index 000000000..c85873bd2 --- /dev/null +++ b/polardb/src/model/DeleteEncryptionDBRolePrivilegeResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteEncryptionDBRolePrivilegeResult::DeleteEncryptionDBRolePrivilegeResult() : + ServiceResult() +{} + +DeleteEncryptionDBRolePrivilegeResult::DeleteEncryptionDBRolePrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEncryptionDBRolePrivilegeResult::~DeleteEncryptionDBRolePrivilegeResult() +{} + +void DeleteEncryptionDBRolePrivilegeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DeleteEncryptionDBRolePrivilegeResult::getMessage()const +{ + return message_; +} + +std::string DeleteEncryptionDBRolePrivilegeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +bool DeleteEncryptionDBRolePrivilegeResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/DeleteExtensionsRequest.cc b/polardb/src/model/DeleteExtensionsRequest.cc new file mode 100644 index 000000000..851e29721 --- /dev/null +++ b/polardb/src/model/DeleteExtensionsRequest.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::DeleteExtensionsRequest; + +DeleteExtensionsRequest::DeleteExtensionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteExtensions") { + setMethod(HttpRequest::Method::Post); +} + +DeleteExtensionsRequest::~DeleteExtensionsRequest() {} + +long DeleteExtensionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteExtensionsRequest::getClientToken() const { + return clientToken_; +} + +void DeleteExtensionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteExtensionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteExtensionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DeleteExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DeleteExtensionsRequest::getRegionId() const { + return regionId_; +} + +void DeleteExtensionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteExtensionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteExtensionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteExtensionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteExtensionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteExtensionsRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteExtensionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteExtensionsRequest::getDBNames() const { + return dBNames_; +} + +void DeleteExtensionsRequest::setDBNames(const std::string &dBNames) { + dBNames_ = dBNames; + setParameter(std::string("DBNames"), dBNames); +} + +std::string DeleteExtensionsRequest::getExtensions() const { + return extensions_; +} + +void DeleteExtensionsRequest::setExtensions(const std::string &extensions) { + extensions_ = extensions; + setParameter(std::string("Extensions"), extensions); +} + +std::string DeleteExtensionsRequest::getVpcId() const { + return vpcId_; +} + +void DeleteExtensionsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/DeleteExtensionsResult.cc b/polardb/src/model/DeleteExtensionsResult.cc new file mode 100644 index 000000000..3706266f4 --- /dev/null +++ b/polardb/src/model/DeleteExtensionsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteExtensionsResult::DeleteExtensionsResult() : + ServiceResult() +{} + +DeleteExtensionsResult::DeleteExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteExtensionsResult::~DeleteExtensionsResult() +{} + +void DeleteExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteFirewallRulesRequest.cc b/polardb/src/model/DeleteFirewallRulesRequest.cc new file mode 100644 index 000000000..50666f4ff --- /dev/null +++ b/polardb/src/model/DeleteFirewallRulesRequest.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::DeleteFirewallRulesRequest; + +DeleteFirewallRulesRequest::DeleteFirewallRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteFirewallRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteFirewallRulesRequest::~DeleteFirewallRulesRequest() {} + +long DeleteFirewallRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteFirewallRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteFirewallRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteFirewallRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteFirewallRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteFirewallRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteFirewallRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteFirewallRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteFirewallRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteFirewallRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteFirewallRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteFirewallRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteFirewallRulesRequest::getRuleNameList() const { + return ruleNameList_; +} + +void DeleteFirewallRulesRequest::setRuleNameList(const std::string &ruleNameList) { + ruleNameList_ = ruleNameList; + setParameter(std::string("RuleNameList"), ruleNameList); +} + diff --git a/polardb/src/model/DeleteFirewallRulesResult.cc b/polardb/src/model/DeleteFirewallRulesResult.cc new file mode 100644 index 000000000..ab6d11df6 --- /dev/null +++ b/polardb/src/model/DeleteFirewallRulesResult.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; + +DeleteFirewallRulesResult::DeleteFirewallRulesResult() : + ServiceResult() +{} + +DeleteFirewallRulesResult::DeleteFirewallRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteFirewallRulesResult::~DeleteFirewallRulesResult() +{} + +void DeleteFirewallRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteFirewallRulesResult::getMessage()const +{ + return message_; +} + +bool DeleteFirewallRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/DeleteGlobalDataNetworkRequest.cc b/polardb/src/model/DeleteGlobalDataNetworkRequest.cc new file mode 100644 index 000000000..ad0544a80 --- /dev/null +++ b/polardb/src/model/DeleteGlobalDataNetworkRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DeleteGlobalDataNetworkRequest; + +DeleteGlobalDataNetworkRequest::DeleteGlobalDataNetworkRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteGlobalDataNetwork") { + setMethod(HttpRequest::Method::Post); +} + +DeleteGlobalDataNetworkRequest::~DeleteGlobalDataNetworkRequest() {} + +std::string DeleteGlobalDataNetworkRequest::getNetworkId() const { + return networkId_; +} + +void DeleteGlobalDataNetworkRequest::setNetworkId(const std::string &networkId) { + networkId_ = networkId; + setParameter(std::string("NetworkId"), networkId); +} + diff --git a/polardb/src/model/DeleteGlobalDataNetworkResult.cc b/polardb/src/model/DeleteGlobalDataNetworkResult.cc new file mode 100644 index 000000000..853cf8f49 --- /dev/null +++ b/polardb/src/model/DeleteGlobalDataNetworkResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteGlobalDataNetworkResult::DeleteGlobalDataNetworkResult() : + ServiceResult() +{} + +DeleteGlobalDataNetworkResult::DeleteGlobalDataNetworkResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGlobalDataNetworkResult::~DeleteGlobalDataNetworkResult() +{} + +void DeleteGlobalDataNetworkResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteMaskingRulesRequest.cc b/polardb/src/model/DeleteMaskingRulesRequest.cc index cec4dad26..316a14e90 100644 --- a/polardb/src/model/DeleteMaskingRulesRequest.cc +++ b/polardb/src/model/DeleteMaskingRulesRequest.cc @@ -25,6 +25,15 @@ DeleteMaskingRulesRequest::DeleteMaskingRulesRequest() DeleteMaskingRulesRequest::~DeleteMaskingRulesRequest() {} +std::string DeleteMaskingRulesRequest::getInterfaceVersion() const { + return interfaceVersion_; +} + +void DeleteMaskingRulesRequest::setInterfaceVersion(const std::string &interfaceVersion) { + interfaceVersion_ = interfaceVersion; + setParameter(std::string("InterfaceVersion"), interfaceVersion); +} + std::string DeleteMaskingRulesRequest::getDBClusterId() const { return dBClusterId_; } diff --git a/polardb/src/model/DeleteNetworkChannelRequest.cc b/polardb/src/model/DeleteNetworkChannelRequest.cc new file mode 100644 index 000000000..7eb480908 --- /dev/null +++ b/polardb/src/model/DeleteNetworkChannelRequest.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::DeleteNetworkChannelRequest; + +DeleteNetworkChannelRequest::DeleteNetworkChannelRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteNetworkChannel") { + setMethod(HttpRequest::Method::Post); +} + +DeleteNetworkChannelRequest::~DeleteNetworkChannelRequest() {} + +long DeleteNetworkChannelRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteNetworkChannelRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteNetworkChannelRequest::getClientToken() const { + return clientToken_; +} + +void DeleteNetworkChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DeleteNetworkChannelRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteNetworkChannelRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteNetworkChannelRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DeleteNetworkChannelRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DeleteNetworkChannelRequest::getRegionId() const { + return regionId_; +} + +void DeleteNetworkChannelRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteNetworkChannelRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteNetworkChannelRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteNetworkChannelRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteNetworkChannelRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteNetworkChannelRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteNetworkChannelRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteNetworkChannelRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteNetworkChannelRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteNetworkChannelRequest::getChannelName() const { + return channelName_; +} + +void DeleteNetworkChannelRequest::setChannelName(const std::string &channelName) { + channelName_ = channelName; + setParameter(std::string("ChannelName"), channelName); +} + +std::string DeleteNetworkChannelRequest::getVpcId() const { + return vpcId_; +} + +void DeleteNetworkChannelRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/DeleteNetworkChannelResult.cc b/polardb/src/model/DeleteNetworkChannelResult.cc new file mode 100644 index 000000000..900bf8722 --- /dev/null +++ b/polardb/src/model/DeleteNetworkChannelResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DeleteNetworkChannelResult::DeleteNetworkChannelResult() : + ServiceResult() +{} + +DeleteNetworkChannelResult::DeleteNetworkChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNetworkChannelResult::~DeleteNetworkChannelResult() +{} + +void DeleteNetworkChannelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/DeleteSQLRateLimitingRulesRequest.cc b/polardb/src/model/DeleteSQLRateLimitingRulesRequest.cc new file mode 100644 index 000000000..555c9cdd0 --- /dev/null +++ b/polardb/src/model/DeleteSQLRateLimitingRulesRequest.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::DeleteSQLRateLimitingRulesRequest; + +DeleteSQLRateLimitingRulesRequest::DeleteSQLRateLimitingRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DeleteSQLRateLimitingRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSQLRateLimitingRulesRequest::~DeleteSQLRateLimitingRulesRequest() {} + +long DeleteSQLRateLimitingRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteSQLRateLimitingRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteSQLRateLimitingRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSQLRateLimitingRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteSQLRateLimitingRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteSQLRateLimitingRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteSQLRateLimitingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DeleteSQLRateLimitingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DeleteSQLRateLimitingRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteSQLRateLimitingRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteSQLRateLimitingRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSQLRateLimitingRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteSQLRateLimitingRulesRequest::getRuleNameList() const { + return ruleNameList_; +} + +void DeleteSQLRateLimitingRulesRequest::setRuleNameList(const std::string &ruleNameList) { + ruleNameList_ = ruleNameList; + setParameter(std::string("RuleNameList"), ruleNameList); +} + diff --git a/polardb/src/model/DeleteSQLRateLimitingRulesResult.cc b/polardb/src/model/DeleteSQLRateLimitingRulesResult.cc new file mode 100644 index 000000000..689d05707 --- /dev/null +++ b/polardb/src/model/DeleteSQLRateLimitingRulesResult.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; + +DeleteSQLRateLimitingRulesResult::DeleteSQLRateLimitingRulesResult() : + ServiceResult() +{} + +DeleteSQLRateLimitingRulesResult::DeleteSQLRateLimitingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSQLRateLimitingRulesResult::~DeleteSQLRateLimitingRulesResult() +{} + +void DeleteSQLRateLimitingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string DeleteSQLRateLimitingRulesResult::getMessage()const +{ + return message_; +} + +bool DeleteSQLRateLimitingRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/DescribeAIDBClusterAttributeRequest.cc b/polardb/src/model/DescribeAIDBClusterAttributeRequest.cc new file mode 100644 index 000000000..c816187b7 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClusterAttributeRequest.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::DescribeAIDBClusterAttributeRequest; + +DescribeAIDBClusterAttributeRequest::DescribeAIDBClusterAttributeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeAIDBClusterAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAIDBClusterAttributeRequest::~DescribeAIDBClusterAttributeRequest() {} + +long DescribeAIDBClusterAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAIDBClusterAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAIDBClusterAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAIDBClusterAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAIDBClusterAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAIDBClusterAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAIDBClusterAttributeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAIDBClusterAttributeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAIDBClusterAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAIDBClusterAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAIDBClusterAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAIDBClusterAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeAIDBClusterAttributeResult.cc b/polardb/src/model/DescribeAIDBClusterAttributeResult.cc new file mode 100644 index 000000000..ec83d85b5 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClusterAttributeResult.cc @@ -0,0 +1,293 @@ +/* + * 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; + +DescribeAIDBClusterAttributeResult::DescribeAIDBClusterAttributeResult() : + ServiceResult() +{} + +DescribeAIDBClusterAttributeResult::DescribeAIDBClusterAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAIDBClusterAttributeResult::~DescribeAIDBClusterAttributeResult() +{} + +void DescribeAIDBClusterAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBNodesNode = value["DBNodes"]["DBNode"]; + for (auto valueDBNodesDBNode : allDBNodesNode) + { + DBNode dBNodesObject; + if(!valueDBNodesDBNode["DBNodeClass"].isNull()) + dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString(); + if(!valueDBNodesDBNode["CpuCores"].isNull()) + dBNodesObject.cpuCores = valueDBNodesDBNode["CpuCores"].asString(); + if(!valueDBNodesDBNode["MemorySize"].isNull()) + dBNodesObject.memorySize = valueDBNodesDBNode["MemorySize"].asString(); + if(!valueDBNodesDBNode["GPU"].isNull()) + dBNodesObject.gPU = valueDBNodesDBNode["GPU"].asString(); + if(!valueDBNodesDBNode["DBNodeId"].isNull()) + dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString(); + if(!valueDBNodesDBNode["DBNodeDescription"].isNull()) + dBNodesObject.dBNodeDescription = valueDBNodesDBNode["DBNodeDescription"].asString(); + if(!valueDBNodesDBNode["VSwitchId"].isNull()) + dBNodesObject.vSwitchId = valueDBNodesDBNode["VSwitchId"].asString(); + if(!valueDBNodesDBNode["VPCId"].isNull()) + dBNodesObject.vPCId = valueDBNodesDBNode["VPCId"].asString(); + if(!valueDBNodesDBNode["DBNodeStatus"].isNull()) + dBNodesObject.dBNodeStatus = valueDBNodesDBNode["DBNodeStatus"].asString(); + if(!valueDBNodesDBNode["ZoneId"].isNull()) + dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString(); + if(!valueDBNodesDBNode["VNodeId"].isNull()) + dBNodesObject.vNodeId = valueDBNodesDBNode["VNodeId"].asString(); + if(!valueDBNodesDBNode["LinkIP"].isNull()) + dBNodesObject.linkIP = valueDBNodesDBNode["LinkIP"].asString(); + auto allChildVolumesNode = valueDBNodesDBNode["ChildVolumes"]["volumes"]; + for (auto valueDBNodesDBNodeChildVolumesvolumes : allChildVolumesNode) + { + DBNode::Volumes childVolumesObject; + if(!valueDBNodesDBNodeChildVolumesvolumes["StorageType"].isNull()) + childVolumesObject.storageType = valueDBNodesDBNodeChildVolumesvolumes["StorageType"].asString(); + if(!valueDBNodesDBNodeChildVolumesvolumes["StorageCategory"].isNull()) + childVolumesObject.storageCategory = valueDBNodesDBNodeChildVolumesvolumes["StorageCategory"].asString(); + if(!valueDBNodesDBNodeChildVolumesvolumes["SizeGB"].isNull()) + childVolumesObject.sizeGB = valueDBNodesDBNodeChildVolumesvolumes["SizeGB"].asString(); + if(!valueDBNodesDBNodeChildVolumesvolumes["Name"].isNull()) + childVolumesObject.name = valueDBNodesDBNodeChildVolumesvolumes["Name"].asString(); + if(!valueDBNodesDBNodeChildVolumesvolumes["MountPath"].isNull()) + childVolumesObject.mountPath = valueDBNodesDBNodeChildVolumesvolumes["MountPath"].asString(); + dBNodesObject.childVolumes.push_back(childVolumesObject); + } + dBNodes_.push_back(dBNodesObject); + } + auto allVolumesNode = value["Volumes"]["VolumesItem"]; + for (auto valueVolumesVolumesItem : allVolumesNode) + { + VolumesItem volumesObject; + if(!valueVolumesVolumesItem["StorageType"].isNull()) + volumesObject.storageType = valueVolumesVolumesItem["StorageType"].asString(); + if(!valueVolumesVolumesItem["StorageCategory"].isNull()) + volumesObject.storageCategory = valueVolumesVolumesItem["StorageCategory"].asString(); + if(!valueVolumesVolumesItem["Name"].isNull()) + volumesObject.name = valueVolumesVolumesItem["Name"].asString(); + if(!valueVolumesVolumesItem["SizeGB"].isNull()) + volumesObject.sizeGB = valueVolumesVolumesItem["SizeGB"].asString(); + if(!valueVolumesVolumesItem["MountPath"].isNull()) + volumesObject.mountPath = valueVolumesVolumesItem["MountPath"].asString(); + volumes_.push_back(volumesObject); + } + auto allEndpointListNode = value["EndpointList"]["EndpointListItem"]; + for (auto valueEndpointListEndpointListItem : allEndpointListNode) + { + EndpointListItem endpointListObject; + auto allNetInfoItemsNode = valueEndpointListEndpointListItem["NetInfoItems"]["NetInfoItemsItem"]; + for (auto valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem : allNetInfoItemsNode) + { + EndpointListItem::NetInfoItemsItem netInfoItemsObject; + if(!valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["NetType"].isNull()) + netInfoItemsObject.netType = valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["NetType"].asString(); + if(!valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["ConnectionString"].isNull()) + netInfoItemsObject.connectionString = valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["ConnectionString"].asString(); + if(!valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["Port"].isNull()) + netInfoItemsObject.port = valueEndpointListEndpointListItemNetInfoItemsNetInfoItemsItem["Port"].asString(); + endpointListObject.netInfoItems.push_back(netInfoItemsObject); + } + endpointList_.push_back(endpointListObject); + } + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBClusterStatus"].isNull()) + dBClusterStatus_ = value["DBClusterStatus"].asString(); + if(!value["DBClusterDescription"].isNull()) + dBClusterDescription_ = value["DBClusterDescription"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + zoneId_ = value["ZoneId"].asString(); + if(!value["VPCId"].isNull()) + vPCId_ = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["InternalIp"].isNull()) + internalIp_ = value["InternalIp"].asString(); + if(!value["StorageType"].isNull()) + storageType_ = value["StorageType"].asString(); + if(!value["LockMode"].isNull()) + lockMode_ = value["LockMode"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["Expired"].isNull()) + expired_ = value["Expired"].asString() == "true"; + if(!value["ZoneIds"].isNull()) + zoneIds_ = value["ZoneIds"].asString(); + if(!value["RunType"].isNull()) + runType_ = value["RunType"].asString(); + if(!value["KubeClusterId"].isNull()) + kubeClusterId_ = value["KubeClusterId"].asString(); + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["AiNodeType"].isNull()) + aiNodeType_ = value["AiNodeType"].asString(); + if(!value["ModelName"].isNull()) + modelName_ = value["ModelName"].asString(); + if(!value["MaxQPM"].isNull()) + maxQPM_ = value["MaxQPM"].asString(); + if(!value["PublicIp"].isNull()) + publicIp_ = value["PublicIp"].asString(); + +} + +std::string DescribeAIDBClusterAttributeResult::getAiNodeType()const +{ + return aiNodeType_; +} + +std::string DescribeAIDBClusterAttributeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeAIDBClusterAttributeResult::getDBVersion()const +{ + return dBVersion_; +} + +std::vector DescribeAIDBClusterAttributeResult::getVolumes()const +{ + return volumes_; +} + +std::vector DescribeAIDBClusterAttributeResult::getDBNodes()const +{ + return dBNodes_; +} + +std::string DescribeAIDBClusterAttributeResult::getRunType()const +{ + return runType_; +} + +std::string DescribeAIDBClusterAttributeResult::getZoneIds()const +{ + return zoneIds_; +} + +std::string DescribeAIDBClusterAttributeResult::getInternalIp()const +{ + return internalIp_; +} + +std::vector DescribeAIDBClusterAttributeResult::getEndpointList()const +{ + return endpointList_; +} + +std::string DescribeAIDBClusterAttributeResult::getKubeClusterId()const +{ + return kubeClusterId_; +} + +std::string DescribeAIDBClusterAttributeResult::getStorageType()const +{ + return storageType_; +} + +std::string DescribeAIDBClusterAttributeResult::getModelName()const +{ + return modelName_; +} + +std::string DescribeAIDBClusterAttributeResult::getZoneId()const +{ + return zoneId_; +} + +std::string DescribeAIDBClusterAttributeResult::getVPCId()const +{ + return vPCId_; +} + +std::string DescribeAIDBClusterAttributeResult::getPublicIp()const +{ + return publicIp_; +} + +std::string DescribeAIDBClusterAttributeResult::getDBClusterStatus()const +{ + return dBClusterStatus_; +} + +std::string DescribeAIDBClusterAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeAIDBClusterAttributeResult::getDBClusterDescription()const +{ + return dBClusterDescription_; +} + +bool DescribeAIDBClusterAttributeResult::getExpired()const +{ + return expired_; +} + +std::string DescribeAIDBClusterAttributeResult::getLockMode()const +{ + return lockMode_; +} + +std::string DescribeAIDBClusterAttributeResult::getPayType()const +{ + return payType_; +} + +std::string DescribeAIDBClusterAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +std::string DescribeAIDBClusterAttributeResult::getMaxQPM()const +{ + return maxQPM_; +} + +std::string DescribeAIDBClusterAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeAIDBClusterAttributeResult::getExpireTime()const +{ + return expireTime_; +} + diff --git a/polardb/src/model/DescribeAIDBClusterPerformanceRequest.cc b/polardb/src/model/DescribeAIDBClusterPerformanceRequest.cc new file mode 100644 index 000000000..5ae9c4970 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClusterPerformanceRequest.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::DescribeAIDBClusterPerformanceRequest; + +DescribeAIDBClusterPerformanceRequest::DescribeAIDBClusterPerformanceRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeAIDBClusterPerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAIDBClusterPerformanceRequest::~DescribeAIDBClusterPerformanceRequest() {} + +long DescribeAIDBClusterPerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAIDBClusterPerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAIDBClusterPerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribeAIDBClusterPerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeAIDBClusterPerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAIDBClusterPerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAIDBClusterPerformanceRequest::getKey() const { + return key_; +} + +void DescribeAIDBClusterPerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + +std::string DescribeAIDBClusterPerformanceRequest::getApiKey() const { + return apiKey_; +} + +void DescribeAIDBClusterPerformanceRequest::setApiKey(const std::string &apiKey) { + apiKey_ = apiKey; + setParameter(std::string("ApiKey"), apiKey); +} + +std::string DescribeAIDBClusterPerformanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAIDBClusterPerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAIDBClusterPerformanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAIDBClusterPerformanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAIDBClusterPerformanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAIDBClusterPerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeAIDBClusterPerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeAIDBClusterPerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeAIDBClusterPerformanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAIDBClusterPerformanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAIDBClusterPerformanceRequest::getInterval() const { + return interval_; +} + +void DescribeAIDBClusterPerformanceRequest::setInterval(const std::string &interval) { + interval_ = interval; + setParameter(std::string("Interval"), interval); +} + diff --git a/polardb/src/model/DescribeAIDBClusterPerformanceResult.cc b/polardb/src/model/DescribeAIDBClusterPerformanceResult.cc new file mode 100644 index 000000000..d6e854a57 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClusterPerformanceResult.cc @@ -0,0 +1,127 @@ +/* + * 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; + +DescribeAIDBClusterPerformanceResult::DescribeAIDBClusterPerformanceResult() : + ServiceResult() +{} + +DescribeAIDBClusterPerformanceResult::DescribeAIDBClusterPerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAIDBClusterPerformanceResult::~DescribeAIDBClusterPerformanceResult() +{} + +void DescribeAIDBClusterPerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceItem"]; + for (auto valuePerformanceKeysPerformanceItem : allPerformanceKeysNode) + { + PerformanceItem performanceKeysObject; + if(!valuePerformanceKeysPerformanceItem["Measurement"].isNull()) + performanceKeysObject.measurement = valuePerformanceKeysPerformanceItem["Measurement"].asString(); + if(!valuePerformanceKeysPerformanceItem["MetricName"].isNull()) + performanceKeysObject.metricName = valuePerformanceKeysPerformanceItem["MetricName"].asString(); + if(!valuePerformanceKeysPerformanceItem["DBNodeId"].isNull()) + performanceKeysObject.dBNodeId = valuePerformanceKeysPerformanceItem["DBNodeId"].asString(); + auto allPointsNode = valuePerformanceKeysPerformanceItem["Points"]["PerformanceItemValue"]; + for (auto valuePerformanceKeysPerformanceItemPointsPerformanceItemValue : allPointsNode) + { + PerformanceItem::PerformanceItemValue pointsObject; + if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].isNull()) + pointsObject.value = valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].asString(); + if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].isNull()) + pointsObject.timestamp = std::stol(valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].asString()); + performanceKeysObject.points.push_back(pointsObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBType"].isNull()) + dBType_ = value["DBType"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["ApiKey"].isNull()) + apiKey_ = value["ApiKey"].asString(); + if(!value["Interval"].isNull()) + interval_ = value["Interval"].asString(); + +} + +std::vector DescribeAIDBClusterPerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeAIDBClusterPerformanceResult::getDBVersion()const +{ + return dBVersion_; +} + +std::string DescribeAIDBClusterPerformanceResult::getApiKey()const +{ + return apiKey_; +} + +std::string DescribeAIDBClusterPerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeAIDBClusterPerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeAIDBClusterPerformanceResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeAIDBClusterPerformanceResult::getDBType()const +{ + return dBType_; +} + +std::string DescribeAIDBClusterPerformanceResult::getEngine()const +{ + return engine_; +} + +std::string DescribeAIDBClusterPerformanceResult::getInterval()const +{ + return interval_; +} + diff --git a/polardb/src/model/DescribeAIDBClustersRequest.cc b/polardb/src/model/DescribeAIDBClustersRequest.cc new file mode 100644 index 000000000..091a1afe9 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClustersRequest.cc @@ -0,0 +1,194 @@ +/* + * 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::DescribeAIDBClustersRequest; + +DescribeAIDBClustersRequest::DescribeAIDBClustersRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeAIDBClusters") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAIDBClustersRequest::~DescribeAIDBClustersRequest() {} + +std::string DescribeAIDBClustersRequest::getAiNodeType() const { + return aiNodeType_; +} + +void DescribeAIDBClustersRequest::setAiNodeType(const std::string &aiNodeType) { + aiNodeType_ = aiNodeType; + setParameter(std::string("AiNodeType"), aiNodeType); +} + +long DescribeAIDBClustersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAIDBClustersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAIDBClustersRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void DescribeAIDBClustersRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string DescribeAIDBClustersRequest::getDBClusterStatus() const { + return dBClusterStatus_; +} + +void DescribeAIDBClustersRequest::setDBClusterStatus(const std::string &dBClusterStatus) { + dBClusterStatus_ = dBClusterStatus; + setParameter(std::string("DBClusterStatus"), dBClusterStatus); +} + +std::string DescribeAIDBClustersRequest::getDescribeType() const { + return describeType_; +} + +void DescribeAIDBClustersRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +int DescribeAIDBClustersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeAIDBClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeAIDBClustersRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAIDBClustersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAIDBClustersRequest::getRegionId() const { + return regionId_; +} + +void DescribeAIDBClustersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeAIDBClustersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAIDBClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeAIDBClustersRequest::getTag() const { + return tag_; +} + +void DescribeAIDBClustersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeAIDBClustersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAIDBClustersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAIDBClustersRequest::getRelativeDBClusterId() const { + return relativeDBClusterId_; +} + +void DescribeAIDBClustersRequest::setRelativeDBClusterId(const std::string &relativeDBClusterId) { + relativeDBClusterId_ = relativeDBClusterId; + setParameter(std::string("RelativeDBClusterId"), relativeDBClusterId); +} + +std::string DescribeAIDBClustersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAIDBClustersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAIDBClustersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAIDBClustersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAIDBClustersRequest::getTargetPolarFsInstanceId() const { + return targetPolarFsInstanceId_; +} + +void DescribeAIDBClustersRequest::setTargetPolarFsInstanceId(const std::string &targetPolarFsInstanceId) { + targetPolarFsInstanceId_ = targetPolarFsInstanceId; + setParameter(std::string("TargetPolarFsInstanceId"), targetPolarFsInstanceId); +} + +std::string DescribeAIDBClustersRequest::getZoneId() const { + return zoneId_; +} + +void DescribeAIDBClustersRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string DescribeAIDBClustersRequest::getPayType() const { + return payType_; +} + +void DescribeAIDBClustersRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + +std::string DescribeAIDBClustersRequest::getDBClusterIds() const { + return dBClusterIds_; +} + +void DescribeAIDBClustersRequest::setDBClusterIds(const std::string &dBClusterIds) { + dBClusterIds_ = dBClusterIds; + setParameter(std::string("DBClusterIds"), dBClusterIds); +} + diff --git a/polardb/src/model/DescribeAIDBClustersResult.cc b/polardb/src/model/DescribeAIDBClustersResult.cc new file mode 100644 index 000000000..437b6ede8 --- /dev/null +++ b/polardb/src/model/DescribeAIDBClustersResult.cc @@ -0,0 +1,176 @@ +/* + * 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; + +DescribeAIDBClustersResult::DescribeAIDBClustersResult() : + ServiceResult() +{} + +DescribeAIDBClustersResult::DescribeAIDBClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAIDBClustersResult::~DescribeAIDBClustersResult() +{} + +void DescribeAIDBClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["DBCluster"]; + for (auto valueItemsDBCluster : allItemsNode) + { + DBCluster itemsObject; + if(!valueItemsDBCluster["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); + if(!valueItemsDBCluster["RegionId"].isNull()) + itemsObject.regionId = valueItemsDBCluster["RegionId"].asString(); + if(!valueItemsDBCluster["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); + if(!valueItemsDBCluster["PayType"].isNull()) + itemsObject.payType = valueItemsDBCluster["PayType"].asString(); + if(!valueItemsDBCluster["DBClusterStatus"].isNull()) + itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); + if(!valueItemsDBCluster["DBClusterDescription"].isNull()) + itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); + if(!valueItemsDBCluster["VpcId"].isNull()) + itemsObject.vpcId = valueItemsDBCluster["VpcId"].asString(); + if(!valueItemsDBCluster["DBNodeClass"].isNull()) + itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString(); + if(!valueItemsDBCluster["StorageType"].isNull()) + itemsObject.storageType = valueItemsDBCluster["StorageType"].asString(); + if(!valueItemsDBCluster["StorageSpace"].isNull()) + itemsObject.storageSpace = std::stoi(valueItemsDBCluster["StorageSpace"].asString()); + if(!valueItemsDBCluster["ExpireTime"].isNull()) + itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); + if(!valueItemsDBCluster["Expired"].isNull()) + itemsObject.expired = valueItemsDBCluster["Expired"].asString() == "true"; + if(!valueItemsDBCluster["LockMode"].isNull()) + itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); + if(!valueItemsDBCluster["CreateTime"].isNull()) + itemsObject.createTime = valueItemsDBCluster["CreateTime"].asString(); + if(!valueItemsDBCluster["Mounted"].isNull()) + itemsObject.mounted = valueItemsDBCluster["Mounted"].asString() == "true"; + if(!valueItemsDBCluster["MountDir"].isNull()) + itemsObject.mountDir = valueItemsDBCluster["MountDir"].asString(); + if(!valueItemsDBCluster["CloudInstanceIp"].isNull()) + itemsObject.cloudInstanceIp = valueItemsDBCluster["CloudInstanceIp"].asString(); + if(!valueItemsDBCluster["KubeClusterId"].isNull()) + itemsObject.kubeClusterId = valueItemsDBCluster["KubeClusterId"].asString(); + if(!valueItemsDBCluster["RunType"].isNull()) + itemsObject.runType = valueItemsDBCluster["RunType"].asString(); + if(!valueItemsDBCluster["DBType"].isNull()) + itemsObject.dBType = valueItemsDBCluster["DBType"].asString(); + if(!valueItemsDBCluster["DBNodeStatus"].isNull()) + itemsObject.dBNodeStatus = valueItemsDBCluster["DBNodeStatus"].asString(); + if(!valueItemsDBCluster["EngineVersion"].isNull()) + itemsObject.engineVersion = valueItemsDBCluster["EngineVersion"].asString(); + if(!valueItemsDBCluster["ModelName"].isNull()) + itemsObject.modelName = valueItemsDBCluster["ModelName"].asString(); + if(!valueItemsDBCluster["DBNodeStatusDesc"].isNull()) + itemsObject.dBNodeStatusDesc = valueItemsDBCluster["DBNodeStatusDesc"].asString(); + if(!valueItemsDBCluster["DataZoneId"].isNull()) + itemsObject.dataZoneId = valueItemsDBCluster["DataZoneId"].asString(); + if(!valueItemsDBCluster["DBNodeId"].isNull()) + itemsObject.dBNodeId = valueItemsDBCluster["DBNodeId"].asString(); + if(!valueItemsDBCluster["CreationTime"].isNull()) + itemsObject.creationTime = valueItemsDBCluster["CreationTime"].asString(); + if(!valueItemsDBCluster["MaxQpm"].isNull()) + itemsObject.maxQpm = valueItemsDBCluster["MaxQpm"].asString(); + if(!valueItemsDBCluster["Engine"].isNull()) + itemsObject.engine = valueItemsDBCluster["Engine"].asString(); + if(!valueItemsDBCluster["DBNodeDescription"].isNull()) + itemsObject.dBNodeDescription = valueItemsDBCluster["DBNodeDescription"].asString(); + if(!valueItemsDBCluster["AiNodeType"].isNull()) + itemsObject.aiNodeType = valueItemsDBCluster["AiNodeType"].asString(); + if(!valueItemsDBCluster["VswitchId"].isNull()) + itemsObject.vswitchId = valueItemsDBCluster["VswitchId"].asString(); + if(!valueItemsDBCluster["RelativeDBClusterId"].isNull()) + itemsObject.relativeDBClusterId = valueItemsDBCluster["RelativeDBClusterId"].asString(); + auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; + for (auto valueItemsDBClusterTagsTag : allTagsNode) + { + DBCluster::Tag tagsObject; + if(!valueItemsDBClusterTagsTag["Key"].isNull()) + tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString(); + if(!valueItemsDBClusterTagsTag["Value"].isNull()) + tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString(); + itemsObject.tags.push_back(tagsObject); + } + auto allConnAddrs = value["ConnAddrs"]["connAddrs"]; + for (auto value : allConnAddrs) + itemsObject.connAddrs.push_back(value.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["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +int DescribeAIDBClustersResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeAIDBClustersResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeAIDBClustersResult::getEngineVersion()const +{ + return engineVersion_; +} + +int DescribeAIDBClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeAIDBClustersResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::vector DescribeAIDBClustersResult::getItems()const +{ + return items_; +} + +std::string DescribeAIDBClustersResult::getEngine()const +{ + return engine_; +} + diff --git a/polardb/src/model/DescribeAccountsRequest.cc b/polardb/src/model/DescribeAccountsRequest.cc index 05b1da92d..807fc08a4 100644 --- a/polardb/src/model/DescribeAccountsRequest.cc +++ b/polardb/src/model/DescribeAccountsRequest.cc @@ -34,6 +34,15 @@ void DescribeAccountsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeAccountsRequest::getNodeType() const { + return nodeType_; +} + +void DescribeAccountsRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + int DescribeAccountsRequest::getPageNumber() const { return pageNumber_; } diff --git a/polardb/src/model/DescribeAccountsResult.cc b/polardb/src/model/DescribeAccountsResult.cc index a593c37d2..f4cc0cc87 100644 --- a/polardb/src/model/DescribeAccountsResult.cc +++ b/polardb/src/model/DescribeAccountsResult.cc @@ -43,32 +43,34 @@ void DescribeAccountsResult::parse(const std::string &payload) for (auto valueAccountsDBAccount : allAccountsNode) { DBAccount accountsObject; - if(!valueAccountsDBAccount["AccountStatus"].isNull()) - accountsObject.accountStatus = valueAccountsDBAccount["AccountStatus"].asString(); if(!valueAccountsDBAccount["AccountDescription"].isNull()) accountsObject.accountDescription = valueAccountsDBAccount["AccountDescription"].asString(); + if(!valueAccountsDBAccount["AccountStatus"].isNull()) + accountsObject.accountStatus = valueAccountsDBAccount["AccountStatus"].asString(); if(!valueAccountsDBAccount["PrivilegeExceeded"].isNull()) accountsObject.privilegeExceeded = valueAccountsDBAccount["PrivilegeExceeded"].asString(); + if(!valueAccountsDBAccount["DynamoDBAuthPassword"].isNull()) + accountsObject.dynamoDBAuthPassword = valueAccountsDBAccount["DynamoDBAuthPassword"].asString(); + if(!valueAccountsDBAccount["AccountLockState"].isNull()) + accountsObject.accountLockState = valueAccountsDBAccount["AccountLockState"].asString(); if(!valueAccountsDBAccount["AccountPasswordValidTime"].isNull()) accountsObject.accountPasswordValidTime = valueAccountsDBAccount["AccountPasswordValidTime"].asString(); if(!valueAccountsDBAccount["AccountType"].isNull()) accountsObject.accountType = valueAccountsDBAccount["AccountType"].asString(); - if(!valueAccountsDBAccount["AccountLockState"].isNull()) - accountsObject.accountLockState = valueAccountsDBAccount["AccountLockState"].asString(); + if(!valueAccountsDBAccount["TairPasswordSetted"].isNull()) + accountsObject.tairPasswordSetted = valueAccountsDBAccount["TairPasswordSetted"].asString(); if(!valueAccountsDBAccount["AccountName"].isNull()) accountsObject.accountName = valueAccountsDBAccount["AccountName"].asString(); if(!valueAccountsDBAccount["AccountPassword"].isNull()) accountsObject.accountPassword = valueAccountsDBAccount["AccountPassword"].asString(); - if(!valueAccountsDBAccount["TairPasswordSetted"].isNull()) - accountsObject.tairPasswordSetted = valueAccountsDBAccount["TairPasswordSetted"].asString(); auto allDatabasePrivilegesNode = valueAccountsDBAccount["DatabasePrivileges"]["DatabasePrivilege"]; for (auto valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege : allDatabasePrivilegesNode) { DBAccount::DatabasePrivilege databasePrivilegesObject; - if(!valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].isNull()) - databasePrivilegesObject.dBName = valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].asString(); if(!valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].isNull()) databasePrivilegesObject.accountPrivilege = valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].asString(); + if(!valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].isNull()) + databasePrivilegesObject.dBName = valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].asString(); accountsObject.databasePrivileges.push_back(databasePrivilegesObject); } accounts_.push_back(accountsObject); diff --git a/polardb/src/model/DescribeAccountsZonalRequest.cc b/polardb/src/model/DescribeAccountsZonalRequest.cc new file mode 100644 index 000000000..a8778c08a --- /dev/null +++ b/polardb/src/model/DescribeAccountsZonalRequest.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::DescribeAccountsZonalRequest; + +DescribeAccountsZonalRequest::DescribeAccountsZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeAccountsZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccountsZonalRequest::~DescribeAccountsZonalRequest() {} + +long DescribeAccountsZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccountsZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAccountsZonalRequest::getNodeType() const { + return nodeType_; +} + +void DescribeAccountsZonalRequest::setNodeType(const std::string &nodeType) { + nodeType_ = nodeType; + setParameter(std::string("NodeType"), nodeType); +} + +int DescribeAccountsZonalRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeAccountsZonalRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeAccountsZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAccountsZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAccountsZonalRequest::getAccountName() const { + return accountName_; +} + +void DescribeAccountsZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string DescribeAccountsZonalRequest::getNextToken() const { + return nextToken_; +} + +void DescribeAccountsZonalRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int DescribeAccountsZonalRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAccountsZonalRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeAccountsZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccountsZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccountsZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAccountsZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAccountsZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccountsZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAccountsZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccountsZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +int DescribeAccountsZonalRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeAccountsZonalRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/polardb/src/model/DescribeAccountsZonalResult.cc b/polardb/src/model/DescribeAccountsZonalResult.cc new file mode 100644 index 000000000..c8308de34 --- /dev/null +++ b/polardb/src/model/DescribeAccountsZonalResult.cc @@ -0,0 +1,113 @@ +/* + * 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; + +DescribeAccountsZonalResult::DescribeAccountsZonalResult() : + ServiceResult() +{} + +DescribeAccountsZonalResult::DescribeAccountsZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccountsZonalResult::~DescribeAccountsZonalResult() +{} + +void DescribeAccountsZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAccountsNode = value["Accounts"]["DBAccount"]; + for (auto valueAccountsDBAccount : allAccountsNode) + { + DBAccount accountsObject; + if(!valueAccountsDBAccount["AccountDescription"].isNull()) + accountsObject.accountDescription = valueAccountsDBAccount["AccountDescription"].asString(); + if(!valueAccountsDBAccount["AccountStatus"].isNull()) + accountsObject.accountStatus = valueAccountsDBAccount["AccountStatus"].asString(); + if(!valueAccountsDBAccount["PrivilegeExceeded"].isNull()) + accountsObject.privilegeExceeded = valueAccountsDBAccount["PrivilegeExceeded"].asString(); + if(!valueAccountsDBAccount["DynamoDBAuthPassword"].isNull()) + accountsObject.dynamoDBAuthPassword = valueAccountsDBAccount["DynamoDBAuthPassword"].asString(); + if(!valueAccountsDBAccount["AccountLockState"].isNull()) + accountsObject.accountLockState = valueAccountsDBAccount["AccountLockState"].asString(); + if(!valueAccountsDBAccount["AccountPasswordValidTime"].isNull()) + accountsObject.accountPasswordValidTime = valueAccountsDBAccount["AccountPasswordValidTime"].asString(); + if(!valueAccountsDBAccount["AccountType"].isNull()) + accountsObject.accountType = valueAccountsDBAccount["AccountType"].asString(); + if(!valueAccountsDBAccount["TairPasswordSetted"].isNull()) + accountsObject.tairPasswordSetted = valueAccountsDBAccount["TairPasswordSetted"].asString(); + if(!valueAccountsDBAccount["AccountName"].isNull()) + accountsObject.accountName = valueAccountsDBAccount["AccountName"].asString(); + if(!valueAccountsDBAccount["AccountPassword"].isNull()) + accountsObject.accountPassword = valueAccountsDBAccount["AccountPassword"].asString(); + auto allDatabasePrivilegesNode = valueAccountsDBAccount["DatabasePrivileges"]["DatabasePrivilege"]; + for (auto valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege : allDatabasePrivilegesNode) + { + DBAccount::DatabasePrivilege databasePrivilegesObject; + if(!valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].isNull()) + databasePrivilegesObject.accountPrivilege = valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["AccountPrivilege"].asString(); + if(!valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].isNull()) + databasePrivilegesObject.dBName = valueAccountsDBAccountDatabasePrivilegesDatabasePrivilege["DBName"].asString(); + accountsObject.databasePrivileges.push_back(databasePrivilegesObject); + } + accounts_.push_back(accountsObject); + } + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +int DescribeAccountsZonalResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeAccountsZonalResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeAccountsZonalResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeAccountsZonalResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeAccountsZonalResult::getAccounts()const +{ + return accounts_; +} + diff --git a/polardb/src/model/DescribeActivationCodesRequest.cc b/polardb/src/model/DescribeActivationCodesRequest.cc index 79f714806..02d60f079 100644 --- a/polardb/src/model/DescribeActivationCodesRequest.cc +++ b/polardb/src/model/DescribeActivationCodesRequest.cc @@ -70,6 +70,24 @@ void DescribeActivationCodesRequest::setAliyunOrderId(const std::string &aliyunO setParameter(std::string("AliyunOrderId"), aliyunOrderId); } +std::string DescribeActivationCodesRequest::getMacAddress() const { + return macAddress_; +} + +void DescribeActivationCodesRequest::setMacAddress(const std::string &macAddress) { + macAddress_ = macAddress; + setParameter(std::string("MacAddress"), macAddress); +} + +std::string DescribeActivationCodesRequest::getSystemIdentifier() const { + return systemIdentifier_; +} + +void DescribeActivationCodesRequest::setSystemIdentifier(const std::string &systemIdentifier) { + systemIdentifier_ = systemIdentifier; + setParameter(std::string("SystemIdentifier"), systemIdentifier); +} + std::string DescribeActivationCodesRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/DescribeActiveOperationMaintainConfRequest.cc b/polardb/src/model/DescribeActiveOperationMaintainConfRequest.cc new file mode 100644 index 000000000..2cf014479 --- /dev/null +++ b/polardb/src/model/DescribeActiveOperationMaintainConfRequest.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::DescribeActiveOperationMaintainConfRequest; + +DescribeActiveOperationMaintainConfRequest::DescribeActiveOperationMaintainConfRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeActiveOperationMaintainConf") { + setMethod(HttpRequest::Method::Post); +} + +DescribeActiveOperationMaintainConfRequest::~DescribeActiveOperationMaintainConfRequest() {} + +long DescribeActiveOperationMaintainConfRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeActiveOperationMaintainConfRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeActiveOperationMaintainConfRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeActiveOperationMaintainConfRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeActiveOperationMaintainConfRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeActiveOperationMaintainConfRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeActiveOperationMaintainConfRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeActiveOperationMaintainConfRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeActiveOperationMaintainConfRequest::getRegionId() const { + return regionId_; +} + +void DescribeActiveOperationMaintainConfRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeActiveOperationMaintainConfRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeActiveOperationMaintainConfRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeActiveOperationMaintainConfRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeActiveOperationMaintainConfRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeActiveOperationMaintainConfRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeActiveOperationMaintainConfRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeActiveOperationMaintainConfResult.cc b/polardb/src/model/DescribeActiveOperationMaintainConfResult.cc new file mode 100644 index 000000000..6a0203235 --- /dev/null +++ b/polardb/src/model/DescribeActiveOperationMaintainConfResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeActiveOperationMaintainConfResult::DescribeActiveOperationMaintainConfResult() : + ServiceResult() +{} + +DescribeActiveOperationMaintainConfResult::DescribeActiveOperationMaintainConfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeActiveOperationMaintainConfResult::~DescribeActiveOperationMaintainConfResult() +{} + +void DescribeActiveOperationMaintainConfResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configNode = value["Config"]; + if(!configNode["CycleType"].isNull()) + config_.cycleType = std::stoi(configNode["CycleType"].asString()); + if(!configNode["CycleTime"].isNull()) + config_.cycleTime = configNode["CycleTime"].asString(); + if(!configNode["MaintainStartTime"].isNull()) + config_.maintainStartTime = configNode["MaintainStartTime"].asString(); + if(!configNode["MaintainEndTime"].isNull()) + config_.maintainEndTime = configNode["MaintainEndTime"].asString(); + if(!configNode["Status"].isNull()) + config_.status = std::stol(configNode["Status"].asString()); + if(!configNode["ModifiedTime"].isNull()) + config_.modifiedTime = configNode["ModifiedTime"].asString(); + if(!configNode["CreatedTime"].isNull()) + config_.createdTime = configNode["CreatedTime"].asString(); + if(!value["HasConfig"].isNull()) + hasConfig_ = std::stol(value["HasConfig"].asString()); + +} + +DescribeActiveOperationMaintainConfResult::Config DescribeActiveOperationMaintainConfResult::getConfig()const +{ + return config_; +} + +long DescribeActiveOperationMaintainConfResult::getHasConfig()const +{ + return hasConfig_; +} + diff --git a/polardb/src/model/DescribeApplicationAttributeRequest.cc b/polardb/src/model/DescribeApplicationAttributeRequest.cc new file mode 100644 index 000000000..8f99c3139 --- /dev/null +++ b/polardb/src/model/DescribeApplicationAttributeRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DescribeApplicationAttributeRequest; + +DescribeApplicationAttributeRequest::DescribeApplicationAttributeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeApplicationAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationAttributeRequest::~DescribeApplicationAttributeRequest() {} + +std::string DescribeApplicationAttributeRequest::getApplicationId() const { + return applicationId_; +} + +void DescribeApplicationAttributeRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/DescribeApplicationAttributeResult.cc b/polardb/src/model/DescribeApplicationAttributeResult.cc new file mode 100644 index 000000000..56c7592d0 --- /dev/null +++ b/polardb/src/model/DescribeApplicationAttributeResult.cc @@ -0,0 +1,318 @@ +/* + * 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; + +DescribeApplicationAttributeResult::DescribeApplicationAttributeResult() : + ServiceResult() +{} + +DescribeApplicationAttributeResult::DescribeApplicationAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationAttributeResult::~DescribeApplicationAttributeResult() +{} + +void DescribeApplicationAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityGroupsNode = value["SecurityGroups"]["SecurityGroup"]; + for (auto valueSecurityGroupsSecurityGroup : allSecurityGroupsNode) + { + SecurityGroup securityGroupsObject; + if(!valueSecurityGroupsSecurityGroup["SecurityGroupName"].isNull()) + securityGroupsObject.securityGroupName = valueSecurityGroupsSecurityGroup["SecurityGroupName"].asString(); + if(!valueSecurityGroupsSecurityGroup["SecurityGroupId"].isNull()) + securityGroupsObject.securityGroupId = valueSecurityGroupsSecurityGroup["SecurityGroupId"].asString(); + if(!valueSecurityGroupsSecurityGroup["RegionId"].isNull()) + securityGroupsObject.regionId = valueSecurityGroupsSecurityGroup["RegionId"].asString(); + if(!valueSecurityGroupsSecurityGroup["NetType"].isNull()) + securityGroupsObject.netType = valueSecurityGroupsSecurityGroup["NetType"].asString(); + securityGroups_.push_back(securityGroupsObject); + } + auto allSecurityIPArraysNode = value["SecurityIPArrays"]["SecurityIPArray"]; + for (auto valueSecurityIPArraysSecurityIPArray : allSecurityIPArraysNode) + { + SecurityIPArray securityIPArraysObject; + if(!valueSecurityIPArraysSecurityIPArray["SecurityIPArrayTag"].isNull()) + securityIPArraysObject.securityIPArrayTag = valueSecurityIPArraysSecurityIPArray["SecurityIPArrayTag"].asString(); + if(!valueSecurityIPArraysSecurityIPArray["SecurityIPType"].isNull()) + securityIPArraysObject.securityIPType = valueSecurityIPArraysSecurityIPArray["SecurityIPType"].asString(); + if(!valueSecurityIPArraysSecurityIPArray["SecurityIPList"].isNull()) + securityIPArraysObject.securityIPList = valueSecurityIPArraysSecurityIPArray["SecurityIPList"].asString(); + if(!valueSecurityIPArraysSecurityIPArray["SecurityIPArrayName"].isNull()) + securityIPArraysObject.securityIPArrayName = valueSecurityIPArraysSecurityIPArray["SecurityIPArrayName"].asString(); + if(!valueSecurityIPArraysSecurityIPArray["SecurityIPNetType"].isNull()) + securityIPArraysObject.securityIPNetType = valueSecurityIPArraysSecurityIPArray["SecurityIPNetType"].asString(); + securityIPArrays_.push_back(securityIPArraysObject); + } + auto allComponentsNode = value["Components"]["Component"]; + for (auto valueComponentsComponent : allComponentsNode) + { + Component componentsObject; + if(!valueComponentsComponent["Status"].isNull()) + componentsObject.status = valueComponentsComponent["Status"].asString(); + if(!valueComponentsComponent["ComponentType"].isNull()) + componentsObject.componentType = valueComponentsComponent["ComponentType"].asString(); + if(!valueComponentsComponent["ComponentClassDescription"].isNull()) + componentsObject.componentClassDescription = valueComponentsComponent["ComponentClassDescription"].asString(); + if(!valueComponentsComponent["ComponentId"].isNull()) + componentsObject.componentId = valueComponentsComponent["ComponentId"].asString(); + if(!valueComponentsComponent["ComponentClass"].isNull()) + componentsObject.componentClass = valueComponentsComponent["ComponentClass"].asString(); + if(!valueComponentsComponent["ComponentReplica"].isNull()) + componentsObject.componentReplica = std::stol(valueComponentsComponent["ComponentReplica"].asString()); + if(!valueComponentsComponent["ComponentMaxReplica"].isNull()) + componentsObject.componentMaxReplica = std::stol(valueComponentsComponent["ComponentMaxReplica"].asString()); + if(!valueComponentsComponent["ComponentReplicaGroupName"].isNull()) + componentsObject.componentReplicaGroupName = valueComponentsComponent["ComponentReplicaGroupName"].asString(); + auto allSecurityGroups1Node = valueComponentsComponent["SecurityGroups"]["SecurityGroup"]; + for (auto valueComponentsComponentSecurityGroupsSecurityGroup : allSecurityGroups1Node) + { + Component::SecurityGroup3 securityGroups1Object; + if(!valueComponentsComponentSecurityGroupsSecurityGroup["SecurityGroupName"].isNull()) + securityGroups1Object.securityGroupName = valueComponentsComponentSecurityGroupsSecurityGroup["SecurityGroupName"].asString(); + if(!valueComponentsComponentSecurityGroupsSecurityGroup["SecurityGroupId"].isNull()) + securityGroups1Object.securityGroupId = valueComponentsComponentSecurityGroupsSecurityGroup["SecurityGroupId"].asString(); + if(!valueComponentsComponentSecurityGroupsSecurityGroup["RegionId"].isNull()) + securityGroups1Object.regionId = valueComponentsComponentSecurityGroupsSecurityGroup["RegionId"].asString(); + if(!valueComponentsComponentSecurityGroupsSecurityGroup["NetType"].isNull()) + securityGroups1Object.netType = valueComponentsComponentSecurityGroupsSecurityGroup["NetType"].asString(); + componentsObject.securityGroups1.push_back(securityGroups1Object); + } + auto allSecurityIPArrays2Node = valueComponentsComponent["SecurityIPArrays"]["SecurityIPArray"]; + for (auto valueComponentsComponentSecurityIPArraysSecurityIPArray : allSecurityIPArrays2Node) + { + Component::SecurityIPArray4 securityIPArrays2Object; + if(!valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPArrayTag"].isNull()) + securityIPArrays2Object.securityIPArrayTag = valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPArrayTag"].asString(); + if(!valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPType"].isNull()) + securityIPArrays2Object.securityIPType = valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPType"].asString(); + if(!valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPList"].isNull()) + securityIPArrays2Object.securityIPList = valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPList"].asString(); + if(!valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPArrayName"].isNull()) + securityIPArrays2Object.securityIPArrayName = valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPArrayName"].asString(); + if(!valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPNetType"].isNull()) + securityIPArrays2Object.securityIPNetType = valueComponentsComponentSecurityIPArraysSecurityIPArray["SecurityIPNetType"].asString(); + componentsObject.securityIPArrays2.push_back(securityIPArrays2Object); + } + auto topologyNode = value["Topology"]; + if(!topologyNode["Layer"].isNull()) + componentsObject.topology.layer = topologyNode["Layer"].asString(); + auto allParents = topologyNode["Parents"]["Parents"]; + for (auto value : allParents) + componentsObject.topology.parents.push_back(value.asString()); + auto allChildren = topologyNode["Children"]["Children"]; + for (auto value : allChildren) + componentsObject.topology.children.push_back(value.asString()); + components_.push_back(componentsObject); + } + auto allEndpointsNode = value["Endpoints"]["Endpoint"]; + for (auto valueEndpointsEndpoint : allEndpointsNode) + { + Endpoint endpointsObject; + if(!valueEndpointsEndpoint["Description"].isNull()) + endpointsObject.description = valueEndpointsEndpoint["Description"].asString(); + if(!valueEndpointsEndpoint["EndpointId"].isNull()) + endpointsObject.endpointId = valueEndpointsEndpoint["EndpointId"].asString(); + if(!valueEndpointsEndpoint["IP"].isNull()) + endpointsObject.iP = valueEndpointsEndpoint["IP"].asString(); + if(!valueEndpointsEndpoint["Port"].isNull()) + endpointsObject.port = valueEndpointsEndpoint["Port"].asString(); + if(!valueEndpointsEndpoint["NetType"].isNull()) + endpointsObject.netType = valueEndpointsEndpoint["NetType"].asString(); + endpoints_.push_back(endpointsObject); + } + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["Architecture"].isNull()) + architecture_ = value["Architecture"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["LockMode"].isNull()) + lockMode_ = value["LockMode"].asString(); + if(!value["ApplicationType"].isNull()) + applicationType_ = value["ApplicationType"].asString(); + if(!value["Version"].isNull()) + version_ = value["Version"].asString(); + if(!value["UpgradeAvailable"].isNull()) + upgradeAvailable_ = value["UpgradeAvailable"].asString(); + if(!value["MaintainStartTime"].isNull()) + maintainStartTime_ = value["MaintainStartTime"].asString(); + if(!value["MaintainEndTime"].isNull()) + maintainEndTime_ = value["MaintainEndTime"].asString(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + if(!value["Expired"].isNull()) + expired_ = value["Expired"].asString() == "true"; + if(!value["VPCId"].isNull()) + vPCId_ = value["VPCId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + zoneId_ = value["ZoneId"].asString(); + if(!value["PolarFSInstanceId"].isNull()) + polarFSInstanceId_ = value["PolarFSInstanceId"].asString(); + if(!value["ServerlessType"].isNull()) + serverlessType_ = value["ServerlessType"].asString(); + +} + +std::vector DescribeApplicationAttributeResult::getSecurityGroups()const +{ + return securityGroups_; +} + +std::string DescribeApplicationAttributeResult::getDescription()const +{ + return description_; +} + +std::string DescribeApplicationAttributeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeApplicationAttributeResult::getPolarFSInstanceId()const +{ + return polarFSInstanceId_; +} + +std::vector DescribeApplicationAttributeResult::getComponents()const +{ + return components_; +} + +std::vector DescribeApplicationAttributeResult::getEndpoints()const +{ + return endpoints_; +} + +std::string DescribeApplicationAttributeResult::getMaintainEndTime()const +{ + return maintainEndTime_; +} + +std::string DescribeApplicationAttributeResult::getVersion()const +{ + return version_; +} + +std::string DescribeApplicationAttributeResult::getMaintainStartTime()const +{ + return maintainStartTime_; +} + +std::string DescribeApplicationAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeApplicationAttributeResult::getArchitecture()const +{ + return architecture_; +} + +std::string DescribeApplicationAttributeResult::getZoneId()const +{ + return zoneId_; +} + +std::string DescribeApplicationAttributeResult::getVPCId()const +{ + return vPCId_; +} + +std::string DescribeApplicationAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +bool DescribeApplicationAttributeResult::getExpired()const +{ + return expired_; +} + +std::string DescribeApplicationAttributeResult::getLockMode()const +{ + return lockMode_; +} + +std::string DescribeApplicationAttributeResult::getPayType()const +{ + return payType_; +} + +std::string DescribeApplicationAttributeResult::getApplicationType()const +{ + return applicationType_; +} + +std::string DescribeApplicationAttributeResult::getServerlessType()const +{ + return serverlessType_; +} + +std::string DescribeApplicationAttributeResult::getCreationTime()const +{ + return creationTime_; +} + +std::string DescribeApplicationAttributeResult::getUpgradeAvailable()const +{ + return upgradeAvailable_; +} + +std::vector DescribeApplicationAttributeResult::getSecurityIPArrays()const +{ + return securityIPArrays_; +} + +std::string DescribeApplicationAttributeResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeApplicationAttributeResult::getApplicationId()const +{ + return applicationId_; +} + +std::string DescribeApplicationAttributeResult::getExpireTime()const +{ + return expireTime_; +} + diff --git a/polardb/src/model/DescribeApplicationParametersRequest.cc b/polardb/src/model/DescribeApplicationParametersRequest.cc new file mode 100644 index 000000000..31f6563c0 --- /dev/null +++ b/polardb/src/model/DescribeApplicationParametersRequest.cc @@ -0,0 +1,47 @@ +/* + * 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::DescribeApplicationParametersRequest; + +DescribeApplicationParametersRequest::DescribeApplicationParametersRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeApplicationParameters") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationParametersRequest::~DescribeApplicationParametersRequest() {} + +std::vector DescribeApplicationParametersRequest::getComponentIdList() const { + return componentIdList_; +} + +void DescribeApplicationParametersRequest::setComponentIdList(const std::vector &componentIdList) { + componentIdList_ = componentIdList; + for(int dep1 = 0; dep1 != componentIdList.size(); dep1++) { + setParameter(std::string("ComponentIdList") + "." + std::to_string(dep1 + 1), componentIdList[dep1]); + } +} + +std::string DescribeApplicationParametersRequest::getApplicationId() const { + return applicationId_; +} + +void DescribeApplicationParametersRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/DescribeApplicationParametersResult.cc b/polardb/src/model/DescribeApplicationParametersResult.cc new file mode 100644 index 000000000..8a9760be1 --- /dev/null +++ b/polardb/src/model/DescribeApplicationParametersResult.cc @@ -0,0 +1,124 @@ +/* + * 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; + +DescribeApplicationParametersResult::DescribeApplicationParametersResult() : + ServiceResult() +{} + +DescribeApplicationParametersResult::DescribeApplicationParametersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationParametersResult::~DescribeApplicationParametersResult() +{} + +void DescribeApplicationParametersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto parametersNode = value["Parameters"]; + auto allComponentParametersNode = parametersNode["ComponentParameters"]["ComponentParameter"]; + for (auto parametersNodeComponentParametersComponentParameter : allComponentParametersNode) + { + Parameters::ComponentParameter componentParameterObject; + if(!parametersNodeComponentParametersComponentParameter["ComponentType"].isNull()) + componentParameterObject.componentType = parametersNodeComponentParametersComponentParameter["ComponentType"].asString(); + if(!parametersNodeComponentParametersComponentParameter["ComponentId"].isNull()) + componentParameterObject.componentId = parametersNodeComponentParametersComponentParameter["ComponentId"].asString(); + auto allParameters1Node = parametersNodeComponentParametersComponentParameter["Parameters"]["Parameter"]; + for (auto parametersNodeComponentParametersComponentParameterParametersParameter : allParameters1Node) + { + Parameters::ComponentParameter::_Parameter parameters1Object; + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Status"].isNull()) + parameters1Object.status = parametersNodeComponentParametersComponentParameterParametersParameter["Status"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["ReadOnly"].isNull()) + parameters1Object.readOnly = parametersNodeComponentParametersComponentParameterParametersParameter["ReadOnly"].asString() == "true"; + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Pattern"].isNull()) + parameters1Object.pattern = parametersNodeComponentParametersComponentParameterParametersParameter["Pattern"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Type"].isNull()) + parameters1Object.type = parametersNodeComponentParametersComponentParameterParametersParameter["Type"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Description"].isNull()) + parameters1Object.description = parametersNodeComponentParametersComponentParameterParametersParameter["Description"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Value"].isNull()) + parameters1Object.value = parametersNodeComponentParametersComponentParameterParametersParameter["Value"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["NeedRestart"].isNull()) + parameters1Object.needRestart = parametersNodeComponentParametersComponentParameterParametersParameter["NeedRestart"].asString() == "true"; + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Default"].isNull()) + parameters1Object._default = parametersNodeComponentParametersComponentParameterParametersParameter["Default"].asString(); + if(!parametersNodeComponentParametersComponentParameterParametersParameter["Name"].isNull()) + parameters1Object.name = parametersNodeComponentParametersComponentParameterParametersParameter["Name"].asString(); + componentParameterObject.parameters1.push_back(parameters1Object); + } + parameters_.componentParameters.push_back(componentParameterObject); + } + auto parameterTemplatesNode = value["ParameterTemplates"]; + auto allComponentParameterTemplatesNode = parameterTemplatesNode["ComponentParameterTemplates"]["ComponentParameterTemplate"]; + for (auto parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate : allComponentParameterTemplatesNode) + { + ParameterTemplates::ComponentParameterTemplate componentParameterTemplateObject; + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ComponentType"].isNull()) + componentParameterTemplateObject.componentType = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ComponentType"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ParameterTemplateId"].isNull()) + componentParameterTemplateObject.parameterTemplateId = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ParameterTemplateId"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ComponentId"].isNull()) + componentParameterTemplateObject.componentId = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ComponentId"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ParentParameterTemplateId"].isNull()) + componentParameterTemplateObject.parentParameterTemplateId = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["ParentParameterTemplateId"].asString(); + auto allParameters2Node = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplate["Parameters"]["Parameter"]; + for (auto parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter : allParameters2Node) + { + ParameterTemplates::ComponentParameterTemplate::_Parameter3 parameters2Object; + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Pattern"].isNull()) + parameters2Object.pattern = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Pattern"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Type"].isNull()) + parameters2Object.type = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Type"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Description"].isNull()) + parameters2Object.description = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Description"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["ReadOnly"].isNull()) + parameters2Object.readOnly = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["ReadOnly"].asString() == "true"; + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Default"].isNull()) + parameters2Object._default = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Default"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Name"].isNull()) + parameters2Object.name = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["Name"].asString(); + if(!parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["NeedRestart"].isNull()) + parameters2Object.needRestart = parameterTemplatesNodeComponentParameterTemplatesComponentParameterTemplateParametersParameter["NeedRestart"].asString() == "true"; + componentParameterTemplateObject.parameters2.push_back(parameters2Object); + } + parameterTemplates_.componentParameterTemplates.push_back(componentParameterTemplateObject); + } + +} + +DescribeApplicationParametersResult::Parameters DescribeApplicationParametersResult::getParameters()const +{ + return parameters_; +} + +DescribeApplicationParametersResult::ParameterTemplates DescribeApplicationParametersResult::getParameterTemplates()const +{ + return parameterTemplates_; +} + diff --git a/polardb/src/model/DescribeApplicationServerlessConfRequest.cc b/polardb/src/model/DescribeApplicationServerlessConfRequest.cc new file mode 100644 index 000000000..c5616ceb2 --- /dev/null +++ b/polardb/src/model/DescribeApplicationServerlessConfRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DescribeApplicationServerlessConfRequest; + +DescribeApplicationServerlessConfRequest::DescribeApplicationServerlessConfRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeApplicationServerlessConf") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationServerlessConfRequest::~DescribeApplicationServerlessConfRequest() {} + +std::string DescribeApplicationServerlessConfRequest::getApplicationId() const { + return applicationId_; +} + +void DescribeApplicationServerlessConfRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/DescribeApplicationServerlessConfResult.cc b/polardb/src/model/DescribeApplicationServerlessConfResult.cc new file mode 100644 index 000000000..64410b1b2 --- /dev/null +++ b/polardb/src/model/DescribeApplicationServerlessConfResult.cc @@ -0,0 +1,68 @@ +/* + * 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; + +DescribeApplicationServerlessConfResult::DescribeApplicationServerlessConfResult() : + ServiceResult() +{} + +DescribeApplicationServerlessConfResult::DescribeApplicationServerlessConfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationServerlessConfResult::~DescribeApplicationServerlessConfResult() +{} + +void DescribeApplicationServerlessConfResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServerlessConfItemsNode = value["ServerlessConfItems"]["ServerlessConf"]; + for (auto valueServerlessConfItemsServerlessConf : allServerlessConfItemsNode) + { + ServerlessConf serverlessConfItemsObject; + if(!valueServerlessConfItemsServerlessConf["ComponentType"].isNull()) + serverlessConfItemsObject.componentType = valueServerlessConfItemsServerlessConf["ComponentType"].asString(); + if(!valueServerlessConfItemsServerlessConf["ScaleMin"].isNull()) + serverlessConfItemsObject.scaleMin = valueServerlessConfItemsServerlessConf["ScaleMin"].asString(); + if(!valueServerlessConfItemsServerlessConf["ScaleMax"].isNull()) + serverlessConfItemsObject.scaleMax = valueServerlessConfItemsServerlessConf["ScaleMax"].asString(); + serverlessConfItems_.push_back(serverlessConfItemsObject); + } + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + +} + +std::vector DescribeApplicationServerlessConfResult::getServerlessConfItems()const +{ + return serverlessConfItems_; +} + +std::string DescribeApplicationServerlessConfResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/DescribeApplicationsRequest.cc b/polardb/src/model/DescribeApplicationsRequest.cc new file mode 100644 index 000000000..4c25a20e0 --- /dev/null +++ b/polardb/src/model/DescribeApplicationsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeApplicationsRequest; + +DescribeApplicationsRequest::DescribeApplicationsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeApplications") { + setMethod(HttpRequest::Method::Post); +} + +DescribeApplicationsRequest::~DescribeApplicationsRequest() {} + +int DescribeApplicationsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeApplicationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeApplicationsRequest::getRegionId() const { + return regionId_; +} + +void DescribeApplicationsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeApplicationsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeApplicationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeApplicationsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeApplicationsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeApplicationsRequest::getApplicationIds() const { + return applicationIds_; +} + +void DescribeApplicationsRequest::setApplicationIds(const std::string &applicationIds) { + applicationIds_ = applicationIds; + setParameter(std::string("ApplicationIds"), applicationIds); +} + diff --git a/polardb/src/model/DescribeApplicationsResult.cc b/polardb/src/model/DescribeApplicationsResult.cc new file mode 100644 index 000000000..0c0742af3 --- /dev/null +++ b/polardb/src/model/DescribeApplicationsResult.cc @@ -0,0 +1,112 @@ +/* + * 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; + +DescribeApplicationsResult::DescribeApplicationsResult() : + ServiceResult() +{} + +DescribeApplicationsResult::DescribeApplicationsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeApplicationsResult::~DescribeApplicationsResult() +{} + +void DescribeApplicationsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["Applications"]; + for (auto valueItemsApplications : allItemsNode) + { + Applications itemsObject; + if(!valueItemsApplications["Status"].isNull()) + itemsObject.status = valueItemsApplications["Status"].asString(); + if(!valueItemsApplications["Description"].isNull()) + itemsObject.description = valueItemsApplications["Description"].asString(); + if(!valueItemsApplications["EngineVersion"].isNull()) + itemsObject.engineVersion = valueItemsApplications["EngineVersion"].asString(); + if(!valueItemsApplications["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsApplications["ZoneId"].asString(); + if(!valueItemsApplications["Expired"].isNull()) + itemsObject.expired = valueItemsApplications["Expired"].asString(); + if(!valueItemsApplications["PayType"].isNull()) + itemsObject.payType = valueItemsApplications["PayType"].asString(); + if(!valueItemsApplications["PolarFSInstanceId"].isNull()) + itemsObject.polarFSInstanceId = valueItemsApplications["PolarFSInstanceId"].asString(); + if(!valueItemsApplications["ApplicationType"].isNull()) + itemsObject.applicationType = valueItemsApplications["ApplicationType"].asString(); + if(!valueItemsApplications["CreationTime"].isNull()) + itemsObject.creationTime = valueItemsApplications["CreationTime"].asString(); + if(!valueItemsApplications["RegionId"].isNull()) + itemsObject.regionId = valueItemsApplications["RegionId"].asString(); + if(!valueItemsApplications["ApplicationId"].isNull()) + itemsObject.applicationId = valueItemsApplications["ApplicationId"].asString(); + if(!valueItemsApplications["ExpireTime"].isNull()) + itemsObject.expireTime = valueItemsApplications["ExpireTime"].asString(); + auto allEndpointsNode = valueItemsApplications["Endpoints"]["endpoint"]; + for (auto valueItemsApplicationsEndpointsendpoint : allEndpointsNode) + { + Applications::Endpoint endpointsObject; + if(!valueItemsApplicationsEndpointsendpoint["IP"].isNull()) + endpointsObject.iP = valueItemsApplicationsEndpointsendpoint["IP"].asString(); + if(!valueItemsApplicationsEndpointsendpoint["Port"].isNull()) + endpointsObject.port = valueItemsApplicationsEndpointsendpoint["Port"].asString(); + if(!valueItemsApplicationsEndpointsendpoint["NetType"].isNull()) + endpointsObject.netType = valueItemsApplicationsEndpointsendpoint["NetType"].asString(); + itemsObject.endpoints.push_back(endpointsObject); + } + 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()); + +} + +int DescribeApplicationsResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeApplicationsResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +int DescribeApplicationsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeApplicationsResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeAutoRenewAttributeRequest.cc b/polardb/src/model/DescribeAutoRenewAttributeRequest.cc index 407201c0f..5a3e97318 100644 --- a/polardb/src/model/DescribeAutoRenewAttributeRequest.cc +++ b/polardb/src/model/DescribeAutoRenewAttributeRequest.cc @@ -52,6 +52,15 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string &access setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeAutoRenewAttributeRequest::getCloudProvider() const { + return cloudProvider_; +} + +void DescribeAutoRenewAttributeRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string DescribeAutoRenewAttributeRequest::getResourceGroupId() const { return resourceGroupId_; } @@ -106,6 +115,15 @@ void DescribeAutoRenewAttributeRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeAutoRenewAttributeRequest::getResourceType() const { + return resourceType_; +} + +void DescribeAutoRenewAttributeRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + std::string DescribeAutoRenewAttributeRequest::getDBClusterIds() const { return dBClusterIds_; } diff --git a/polardb/src/model/DescribeAvailableCrossRegionsRequest.cc b/polardb/src/model/DescribeAvailableCrossRegionsRequest.cc new file mode 100644 index 000000000..e208a9352 --- /dev/null +++ b/polardb/src/model/DescribeAvailableCrossRegionsRequest.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::DescribeAvailableCrossRegionsRequest; + +DescribeAvailableCrossRegionsRequest::DescribeAvailableCrossRegionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeAvailableCrossRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAvailableCrossRegionsRequest::~DescribeAvailableCrossRegionsRequest() {} + +long DescribeAvailableCrossRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAvailableCrossRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableCrossRegionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAvailableCrossRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAvailableCrossRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAvailableCrossRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAvailableCrossRegionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeAvailableCrossRegionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeAvailableCrossRegionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAvailableCrossRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAvailableCrossRegionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAvailableCrossRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeAvailableCrossRegionsResult.cc b/polardb/src/model/DescribeAvailableCrossRegionsResult.cc new file mode 100644 index 000000000..c76461409 --- /dev/null +++ b/polardb/src/model/DescribeAvailableCrossRegionsResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DescribeAvailableCrossRegionsResult::DescribeAvailableCrossRegionsResult() : + ServiceResult() +{} + +DescribeAvailableCrossRegionsResult::DescribeAvailableCrossRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableCrossRegionsResult::~DescribeAvailableCrossRegionsResult() +{} + +void DescribeAvailableCrossRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Regions"]; + for (const auto &item : allRegions) + regions_.push_back(item.asString()); + +} + +std::vector DescribeAvailableCrossRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/polardb/src/model/DescribeBackupLogsRequest.cc b/polardb/src/model/DescribeBackupLogsRequest.cc index cee75ba50..2f7c5d836 100644 --- a/polardb/src/model/DescribeBackupLogsRequest.cc +++ b/polardb/src/model/DescribeBackupLogsRequest.cc @@ -70,6 +70,15 @@ void DescribeBackupLogsRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string DescribeBackupLogsRequest::getSubGroupName() const { + return subGroupName_; +} + +void DescribeBackupLogsRequest::setSubGroupName(const std::string &subGroupName) { + subGroupName_ = subGroupName; + setParameter(std::string("SubGroupName"), subGroupName); +} + std::string DescribeBackupLogsRequest::getBackupRegion() const { return backupRegion_; } diff --git a/polardb/src/model/DescribeBackupLogsResult.cc b/polardb/src/model/DescribeBackupLogsResult.cc index b8f5ddbc7..4cb2f9bd1 100644 --- a/polardb/src/model/DescribeBackupLogsResult.cc +++ b/polardb/src/model/DescribeBackupLogsResult.cc @@ -59,6 +59,8 @@ void DescribeBackupLogsResult::parse(const std::string &payload) itemsObject.backupLogSize = valueItemsBackupLog["BackupLogSize"].asString(); if(!valueItemsBackupLog["BackupLogName"].isNull()) itemsObject.backupLogName = valueItemsBackupLog["BackupLogName"].asString(); + if(!valueItemsBackupLog["DBInstanceName"].isNull()) + itemsObject.dBInstanceName = valueItemsBackupLog["DBInstanceName"].asString(); items_.push_back(itemsObject); } if(!value["TotalRecordCount"].isNull()) diff --git a/polardb/src/model/DescribeBackupPolicyResult.cc b/polardb/src/model/DescribeBackupPolicyResult.cc index b39ba4fd7..a5c5639ad 100644 --- a/polardb/src/model/DescribeBackupPolicyResult.cc +++ b/polardb/src/model/DescribeBackupPolicyResult.cc @@ -39,6 +39,42 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allAdvancedDataPoliciesNode = value["AdvancedDataPolicies"]["AdvancedDataPolicy"]; + for (auto valueAdvancedDataPoliciesAdvancedDataPolicy : allAdvancedDataPoliciesNode) + { + AdvancedDataPolicy advancedDataPoliciesObject; + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["OnlyPreserveOneEachHour"].isNull()) + advancedDataPoliciesObject.onlyPreserveOneEachHour = valueAdvancedDataPoliciesAdvancedDataPolicy["OnlyPreserveOneEachHour"].asString() == "true"; + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["RetentionValue"].isNull()) + advancedDataPoliciesObject.retentionValue = valueAdvancedDataPoliciesAdvancedDataPolicy["RetentionValue"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["BakType"].isNull()) + advancedDataPoliciesObject.bakType = valueAdvancedDataPoliciesAdvancedDataPolicy["BakType"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["FilterKey"].isNull()) + advancedDataPoliciesObject.filterKey = valueAdvancedDataPoliciesAdvancedDataPolicy["FilterKey"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["FilterValue"].isNull()) + advancedDataPoliciesObject.filterValue = valueAdvancedDataPoliciesAdvancedDataPolicy["FilterValue"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["DestType"].isNull()) + advancedDataPoliciesObject.destType = valueAdvancedDataPoliciesAdvancedDataPolicy["DestType"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["FilterType"].isNull()) + advancedDataPoliciesObject.filterType = valueAdvancedDataPoliciesAdvancedDataPolicy["FilterType"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["SrcRegion"].isNull()) + advancedDataPoliciesObject.srcRegion = valueAdvancedDataPoliciesAdvancedDataPolicy["SrcRegion"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["AutoCreated"].isNull()) + advancedDataPoliciesObject.autoCreated = valueAdvancedDataPoliciesAdvancedDataPolicy["AutoCreated"].asString() == "true"; + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["SrcType"].isNull()) + advancedDataPoliciesObject.srcType = valueAdvancedDataPoliciesAdvancedDataPolicy["SrcType"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["OnlyPreserveOneEachDay"].isNull()) + advancedDataPoliciesObject.onlyPreserveOneEachDay = valueAdvancedDataPoliciesAdvancedDataPolicy["OnlyPreserveOneEachDay"].asString() == "true"; + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["DumpAction"].isNull()) + advancedDataPoliciesObject.dumpAction = valueAdvancedDataPoliciesAdvancedDataPolicy["DumpAction"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["PolicyId"].isNull()) + advancedDataPoliciesObject.policyId = valueAdvancedDataPoliciesAdvancedDataPolicy["PolicyId"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["DestRegion"].isNull()) + advancedDataPoliciesObject.destRegion = valueAdvancedDataPoliciesAdvancedDataPolicy["DestRegion"].asString(); + if(!valueAdvancedDataPoliciesAdvancedDataPolicy["RetentionType"].isNull()) + advancedDataPoliciesObject.retentionType = valueAdvancedDataPoliciesAdvancedDataPolicy["RetentionType"].asString(); + advancedDataPolicies_.push_back(advancedDataPoliciesObject); + } if(!value["PreferredBackupPeriod"].isNull()) preferredBackupPeriod_ = value["PreferredBackupPeriod"].asString(); if(!value["DataLevel1BackupRetentionPeriod"].isNull()) @@ -67,6 +103,10 @@ void DescribeBackupPolicyResult::parse(const std::string &payload) dataLevel2BackupAnotherRegionRetentionPeriod_ = value["DataLevel2BackupAnotherRegionRetentionPeriod"].asString(); if(!value["DataLevel2BackupAnotherRegionRegion"].isNull()) dataLevel2BackupAnotherRegionRegion_ = value["DataLevel2BackupAnotherRegionRegion"].asString(); + if(!value["BackupPolicyLevel"].isNull()) + backupPolicyLevel_ = value["BackupPolicyLevel"].asString(); + if(!value["AdvancedPolicyOption"].isNull()) + advancedPolicyOption_ = value["AdvancedPolicyOption"].asString(); } @@ -105,11 +145,21 @@ std::string DescribeBackupPolicyResult::getDataLevel1BackupTime()const return dataLevel1BackupTime_; } +std::vector DescribeBackupPolicyResult::getAdvancedDataPolicies()const +{ + return advancedDataPolicies_; +} + std::string DescribeBackupPolicyResult::getPreferredNextBackupTime()const { return preferredNextBackupTime_; } +std::string DescribeBackupPolicyResult::getAdvancedPolicyOption()const +{ + return advancedPolicyOption_; +} + std::string DescribeBackupPolicyResult::getDataLevel2BackupRetentionPeriod()const { return dataLevel2BackupRetentionPeriod_; @@ -130,6 +180,11 @@ std::string DescribeBackupPolicyResult::getDataLevel2BackupPeriod()const return dataLevel2BackupPeriod_; } +std::string DescribeBackupPolicyResult::getBackupPolicyLevel()const +{ + return backupPolicyLevel_; +} + int DescribeBackupPolicyResult::getBackupRetentionPeriod()const { return backupRetentionPeriod_; diff --git a/polardb/src/model/DescribeBackupRegionsRequest.cc b/polardb/src/model/DescribeBackupRegionsRequest.cc new file mode 100644 index 000000000..1339d3b9d --- /dev/null +++ b/polardb/src/model/DescribeBackupRegionsRequest.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::DescribeBackupRegionsRequest; + +DescribeBackupRegionsRequest::DescribeBackupRegionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeBackupRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeBackupRegionsRequest::~DescribeBackupRegionsRequest() {} + +long DescribeBackupRegionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeBackupRegionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeBackupRegionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeBackupRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeBackupRegionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeBackupRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeBackupRegionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeBackupRegionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeBackupRegionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeBackupRegionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeBackupRegionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeBackupRegionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeBackupRegionsResult.cc b/polardb/src/model/DescribeBackupRegionsResult.cc new file mode 100644 index 000000000..739dd4597 --- /dev/null +++ b/polardb/src/model/DescribeBackupRegionsResult.cc @@ -0,0 +1,52 @@ +/* + * 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; + +DescribeBackupRegionsResult::DescribeBackupRegionsResult() : + ServiceResult() +{} + +DescribeBackupRegionsResult::DescribeBackupRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeBackupRegionsResult::~DescribeBackupRegionsResult() +{} + +void DescribeBackupRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Regions"]; + for (const auto &item : allRegions) + regions_.push_back(item.asString()); + +} + +std::vector DescribeBackupRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/polardb/src/model/DescribeBackupsResult.cc b/polardb/src/model/DescribeBackupsResult.cc index 90d44c387..744dea5ea 100644 --- a/polardb/src/model/DescribeBackupsResult.cc +++ b/polardb/src/model/DescribeBackupsResult.cc @@ -73,6 +73,8 @@ void DescribeBackupsResult::parse(const std::string &payload) itemsObject.backupMode = valueItemsBackup["BackupMode"].asString(); if(!valueItemsBackup["BackupMethod"].isNull()) itemsObject.backupMethod = valueItemsBackup["BackupMethod"].asString(); + if(!valueItemsBackup["ShareType"].isNull()) + itemsObject.shareType = valueItemsBackup["ShareType"].asString(); items_.push_back(itemsObject); } if(!value["TotalRecordCount"].isNull()) @@ -83,6 +85,8 @@ void DescribeBackupsResult::parse(const std::string &payload) pageNumber_ = value["PageNumber"].asString(); if(!value["TotalLevel2BackupSize"].isNull()) totalLevel2BackupSize_ = value["TotalLevel2BackupSize"].asString(); + if(!value["AllowShareBackup"].isNull()) + allowShareBackup_ = value["AllowShareBackup"].asString() == "true"; } @@ -91,6 +95,11 @@ std::string DescribeBackupsResult::getTotalRecordCount()const return totalRecordCount_; } +bool DescribeBackupsResult::getAllowShareBackup()const +{ + return allowShareBackup_; +} + std::string DescribeBackupsResult::getPageRecordCount()const { return pageRecordCount_; diff --git a/polardb/src/model/DescribeColdStorageInstanceRequest.cc b/polardb/src/model/DescribeColdStorageInstanceRequest.cc new file mode 100644 index 000000000..38942f1b4 --- /dev/null +++ b/polardb/src/model/DescribeColdStorageInstanceRequest.cc @@ -0,0 +1,189 @@ +/* + * 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::DescribeColdStorageInstanceRequest; + +DescribeColdStorageInstanceRequest::DescribeColdStorageInstanceRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeColdStorageInstance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeColdStorageInstanceRequest::~DescribeColdStorageInstanceRequest() {} + +long DescribeColdStorageInstanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeColdStorageInstanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeColdStorageInstanceRequest::getDescribeType() const { + return describeType_; +} + +void DescribeColdStorageInstanceRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +std::string DescribeColdStorageInstanceRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeColdStorageInstanceRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + +std::string DescribeColdStorageInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeColdStorageInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeColdStorageInstanceRequest::getNextToken() const { + return nextToken_; +} + +void DescribeColdStorageInstanceRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeColdStorageInstanceRequest::getRegionId() const { + return regionId_; +} + +void DescribeColdStorageInstanceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeColdStorageInstanceRequest::getPageSize() const { + return pageSize_; +} + +void DescribeColdStorageInstanceRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeColdStorageInstanceRequest::getTableName() const { + return tableName_; +} + +void DescribeColdStorageInstanceRequest::setTableName(const std::string &tableName) { + tableName_ = tableName; + setParameter(std::string("TableName"), tableName); +} + +std::string DescribeColdStorageInstanceRequest::getObjectType() const { + return objectType_; +} + +void DescribeColdStorageInstanceRequest::setObjectType(const std::string &objectType) { + objectType_ = objectType; + setParameter(std::string("ObjectType"), objectType); +} + +std::string DescribeColdStorageInstanceRequest::getEngineType() const { + return engineType_; +} + +void DescribeColdStorageInstanceRequest::setEngineType(const std::string &engineType) { + engineType_ = engineType; + setParameter(std::string("EngineType"), engineType); +} + +int DescribeColdStorageInstanceRequest::getExpireTime() const { + return expireTime_; +} + +void DescribeColdStorageInstanceRequest::setExpireTime(int expireTime) { + expireTime_ = expireTime; + setParameter(std::string("ExpireTime"), std::to_string(expireTime)); +} + +std::string DescribeColdStorageInstanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeColdStorageInstanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeColdStorageInstanceRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeColdStorageInstanceRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeColdStorageInstanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeColdStorageInstanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeColdStorageInstanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeColdStorageInstanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeColdStorageInstanceRequest::getDBName() const { + return dBName_; +} + +void DescribeColdStorageInstanceRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + +int DescribeColdStorageInstanceRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeColdStorageInstanceRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string DescribeColdStorageInstanceRequest::getDownloadNetType() const { + return downloadNetType_; +} + +void DescribeColdStorageInstanceRequest::setDownloadNetType(const std::string &downloadNetType) { + downloadNetType_ = downloadNetType; + setParameter(std::string("DownloadNetType"), downloadNetType); +} + diff --git a/polardb/src/model/DescribeColdStorageInstanceResult.cc b/polardb/src/model/DescribeColdStorageInstanceResult.cc new file mode 100644 index 000000000..4d0b36ae8 --- /dev/null +++ b/polardb/src/model/DescribeColdStorageInstanceResult.cc @@ -0,0 +1,176 @@ +/* + * 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; + +DescribeColdStorageInstanceResult::DescribeColdStorageInstanceResult() : + ServiceResult() +{} + +DescribeColdStorageInstanceResult::DescribeColdStorageInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeColdStorageInstanceResult::~DescribeColdStorageInstanceResult() +{} + +void DescribeColdStorageInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTablesNode = value["Tables"]["TablesItem"]; + for (auto valueTablesTablesItem : allTablesNode) + { + TablesItem tablesObject; + if(!valueTablesTablesItem["OssClusterId"].isNull()) + tablesObject.ossClusterId = valueTablesTablesItem["OssClusterId"].asString(); + if(!valueTablesTablesItem["Partion"].isNull()) + tablesObject.partion = valueTablesTablesItem["Partion"].asString(); + if(!valueTablesTablesItem["Size"].isNull()) + tablesObject.size = valueTablesTablesItem["Size"].asString(); + if(!valueTablesTablesItem["DB"].isNull()) + tablesObject.dB = valueTablesTablesItem["DB"].asString(); + if(!valueTablesTablesItem["Table"].isNull()) + tablesObject.table = valueTablesTablesItem["Table"].asString(); + if(!valueTablesTablesItem["TableName"].isNull()) + tablesObject.tableName = valueTablesTablesItem["TableName"].asString(); + if(!valueTablesTablesItem["DBName"].isNull()) + tablesObject.dBName = valueTablesTablesItem["DBName"].asString(); + if(!valueTablesTablesItem["Status"].isNull()) + tablesObject.status = valueTablesTablesItem["Status"].asString(); + if(!valueTablesTablesItem["FieldName"].isNull()) + tablesObject.fieldName = valueTablesTablesItem["FieldName"].asString(); + auto allChildObjectsNode = valueTablesTablesItem["ChildObjects"]["ChildObjectsItem"]; + for (auto valueTablesTablesItemChildObjectsChildObjectsItem : allChildObjectsNode) + { + TablesItem::ChildObjectsItem childObjectsObject; + if(!valueTablesTablesItemChildObjectsChildObjectsItem["ObjectName"].isNull()) + childObjectsObject.objectName = valueTablesTablesItemChildObjectsChildObjectsItem["ObjectName"].asString(); + if(!valueTablesTablesItemChildObjectsChildObjectsItem["ObjectType"].isNull()) + childObjectsObject.objectType = valueTablesTablesItemChildObjectsChildObjectsItem["ObjectType"].asString(); + if(!valueTablesTablesItemChildObjectsChildObjectsItem["Size"].isNull()) + childObjectsObject.size = valueTablesTablesItemChildObjectsChildObjectsItem["Size"].asString(); + if(!valueTablesTablesItemChildObjectsChildObjectsItem["Status"].isNull()) + childObjectsObject.status = valueTablesTablesItemChildObjectsChildObjectsItem["Status"].asString(); + tablesObject.childObjects.push_back(childObjectsObject); + } + tables_.push_back(tablesObject); + } + auto allOssClusterInfoListNode = value["OssClusterInfoList"]["OssClusterInfoListItem"]; + for (auto valueOssClusterInfoListOssClusterInfoListItem : allOssClusterInfoListNode) + { + OssClusterInfoListItem ossClusterInfoListObject; + if(!valueOssClusterInfoListOssClusterInfoListItem["OssClusterId"].isNull()) + ossClusterInfoListObject.ossClusterId = valueOssClusterInfoListOssClusterInfoListItem["OssClusterId"].asString(); + if(!valueOssClusterInfoListOssClusterInfoListItem["Region"].isNull()) + ossClusterInfoListObject.region = valueOssClusterInfoListOssClusterInfoListItem["Region"].asString(); + if(!valueOssClusterInfoListOssClusterInfoListItem["Size"].isNull()) + ossClusterInfoListObject.size = valueOssClusterInfoListOssClusterInfoListItem["Size"].asString(); + if(!valueOssClusterInfoListOssClusterInfoListItem["CreatedTime"].isNull()) + ossClusterInfoListObject.createdTime = valueOssClusterInfoListOssClusterInfoListItem["CreatedTime"].asString(); + ossClusterInfoList_.push_back(ossClusterInfoListObject); + } + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["DownLoadUrl"].isNull()) + downLoadUrl_ = value["DownLoadUrl"].asString(); + if(!value["OssClusterEnabled"].isNull()) + ossClusterEnabled_ = value["OssClusterEnabled"].asString(); + if(!value["SupportOssCluster"].isNull()) + supportOssCluster_ = value["SupportOssCluster"].asString(); + if(!value["ObjectType"].isNull()) + objectType_ = value["ObjectType"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalRecord"].isNull()) + totalRecord_ = std::stoi(value["TotalRecord"].asString()); + +} + +std::string DescribeColdStorageInstanceResult::getOssClusterEnabled()const +{ + return ossClusterEnabled_; +} + +std::string DescribeColdStorageInstanceResult::getObjectType()const +{ + return objectType_; +} + +int DescribeColdStorageInstanceResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeColdStorageInstanceResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeColdStorageInstanceResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeColdStorageInstanceResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeColdStorageInstanceResult::getDownLoadUrl()const +{ + return downLoadUrl_; +} + +int DescribeColdStorageInstanceResult::getTotalRecord()const +{ + return totalRecord_; +} + +int DescribeColdStorageInstanceResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeColdStorageInstanceResult::getTables()const +{ + return tables_; +} + +std::string DescribeColdStorageInstanceResult::getSupportOssCluster()const +{ + return supportOssCluster_; +} + +std::vector DescribeColdStorageInstanceResult::getOssClusterInfoList()const +{ + return ossClusterInfoList_; +} + diff --git a/polardb/src/model/DescribeCronJobPolicyServerlessRequest.cc b/polardb/src/model/DescribeCronJobPolicyServerlessRequest.cc new file mode 100644 index 000000000..a9b793453 --- /dev/null +++ b/polardb/src/model/DescribeCronJobPolicyServerlessRequest.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::DescribeCronJobPolicyServerlessRequest; + +DescribeCronJobPolicyServerlessRequest::DescribeCronJobPolicyServerlessRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeCronJobPolicyServerless") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCronJobPolicyServerlessRequest::~DescribeCronJobPolicyServerlessRequest() {} + +long DescribeCronJobPolicyServerlessRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeCronJobPolicyServerlessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeCronJobPolicyServerlessRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeCronJobPolicyServerlessRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeCronJobPolicyServerlessRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeCronJobPolicyServerlessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeCronJobPolicyServerlessRequest::getJobId() const { + return jobId_; +} + +void DescribeCronJobPolicyServerlessRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string DescribeCronJobPolicyServerlessRequest::getRegionId() const { + return regionId_; +} + +void DescribeCronJobPolicyServerlessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeCronJobPolicyServerlessRequest::getPageSize() const { + return pageSize_; +} + +void DescribeCronJobPolicyServerlessRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeCronJobPolicyServerlessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeCronJobPolicyServerlessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeCronJobPolicyServerlessRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeCronJobPolicyServerlessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeCronJobPolicyServerlessRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeCronJobPolicyServerlessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeCronJobPolicyServerlessRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCronJobPolicyServerlessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeCronJobPolicyServerlessResult.cc b/polardb/src/model/DescribeCronJobPolicyServerlessResult.cc new file mode 100644 index 000000000..00652f9e8 --- /dev/null +++ b/polardb/src/model/DescribeCronJobPolicyServerlessResult.cc @@ -0,0 +1,116 @@ +/* + * 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; + +DescribeCronJobPolicyServerlessResult::DescribeCronJobPolicyServerlessResult() : + ServiceResult() +{} + +DescribeCronJobPolicyServerlessResult::DescribeCronJobPolicyServerlessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCronJobPolicyServerlessResult::~DescribeCronJobPolicyServerlessResult() +{} + +void DescribeCronJobPolicyServerlessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["DriverCronJobAttrbute"]; + for (auto valueItemsDriverCronJobAttrbute : allItemsNode) + { + DriverCronJobAttrbute itemsObject; + if(!valueItemsDriverCronJobAttrbute["JobId"].isNull()) + itemsObject.jobId = valueItemsDriverCronJobAttrbute["JobId"].asString(); + if(!valueItemsDriverCronJobAttrbute["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDriverCronJobAttrbute["DBClusterId"].asString(); + if(!valueItemsDriverCronJobAttrbute["RegionId"].isNull()) + itemsObject.regionId = valueItemsDriverCronJobAttrbute["RegionId"].asString(); + if(!valueItemsDriverCronJobAttrbute["StartTime"].isNull()) + itemsObject.startTime = valueItemsDriverCronJobAttrbute["StartTime"].asString(); + if(!valueItemsDriverCronJobAttrbute["EndTime"].isNull()) + itemsObject.endTime = valueItemsDriverCronJobAttrbute["EndTime"].asString(); + if(!valueItemsDriverCronJobAttrbute["Status"].isNull()) + itemsObject.status = valueItemsDriverCronJobAttrbute["Status"].asString(); + if(!valueItemsDriverCronJobAttrbute["OrderId"].isNull()) + itemsObject.orderId = valueItemsDriverCronJobAttrbute["OrderId"].asString(); + if(!valueItemsDriverCronJobAttrbute["CronExpression"].isNull()) + itemsObject.cronExpression = valueItemsDriverCronJobAttrbute["CronExpression"].asString(); + if(!valueItemsDriverCronJobAttrbute["Action"].isNull()) + itemsObject.action = valueItemsDriverCronJobAttrbute["Action"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleMin"].isNull()) + itemsObject.scaleMin = valueItemsDriverCronJobAttrbute["ScaleMin"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleMax"].isNull()) + itemsObject.scaleMax = valueItemsDriverCronJobAttrbute["ScaleMax"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleRoNumMin"].isNull()) + itemsObject.scaleRoNumMin = valueItemsDriverCronJobAttrbute["ScaleRoNumMin"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleRoNumMax"].isNull()) + itemsObject.scaleRoNumMax = valueItemsDriverCronJobAttrbute["ScaleRoNumMax"].asString(); + if(!valueItemsDriverCronJobAttrbute["AllowShutDown"].isNull()) + itemsObject.allowShutDown = valueItemsDriverCronJobAttrbute["AllowShutDown"].asString(); + if(!valueItemsDriverCronJobAttrbute["SecondsUntilAutoPause"].isNull()) + itemsObject.secondsUntilAutoPause = valueItemsDriverCronJobAttrbute["SecondsUntilAutoPause"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleApRoNumMin"].isNull()) + itemsObject.scaleApRoNumMin = valueItemsDriverCronJobAttrbute["ScaleApRoNumMin"].asString(); + if(!valueItemsDriverCronJobAttrbute["ScaleApRoNumMax"].isNull()) + itemsObject.scaleApRoNumMax = valueItemsDriverCronJobAttrbute["ScaleApRoNumMax"].asString(); + if(!valueItemsDriverCronJobAttrbute["ServerlessRuleMode"].isNull()) + itemsObject.serverlessRuleMode = valueItemsDriverCronJobAttrbute["ServerlessRuleMode"].asString(); + if(!valueItemsDriverCronJobAttrbute["ServerlessRuleCpuEnlargeThreshold"].isNull()) + itemsObject.serverlessRuleCpuEnlargeThreshold = valueItemsDriverCronJobAttrbute["ServerlessRuleCpuEnlargeThreshold"].asString(); + if(!valueItemsDriverCronJobAttrbute["ServerlessRuleCpuShrinkThreshold"].isNull()) + itemsObject.serverlessRuleCpuShrinkThreshold = valueItemsDriverCronJobAttrbute["ServerlessRuleCpuShrinkThreshold"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeCronJobPolicyServerlessResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeCronJobPolicyServerlessResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeCronJobPolicyServerlessResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeCronJobPolicyServerlessResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeCrossCloudLevelsRequest.cc b/polardb/src/model/DescribeCrossCloudLevelsRequest.cc new file mode 100644 index 000000000..ed3d24f15 --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudLevelsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeCrossCloudLevelsRequest; + +DescribeCrossCloudLevelsRequest::DescribeCrossCloudLevelsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeCrossCloudLevels") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCrossCloudLevelsRequest::~DescribeCrossCloudLevelsRequest() {} + +std::string DescribeCrossCloudLevelsRequest::getStorageType() const { + return storageType_; +} + +void DescribeCrossCloudLevelsRequest::setStorageType(const std::string &storageType) { + storageType_ = storageType; + setParameter(std::string("StorageType"), storageType); +} + +std::string DescribeCrossCloudLevelsRequest::getProjectId() const { + return projectId_; +} + +void DescribeCrossCloudLevelsRequest::setProjectId(const std::string &projectId) { + projectId_ = projectId; + setParameter(std::string("ProjectId"), projectId); +} + +std::string DescribeCrossCloudLevelsRequest::getDBType() const { + return dBType_; +} + +void DescribeCrossCloudLevelsRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string DescribeCrossCloudLevelsRequest::getDBVersion() const { + return dBVersion_; +} + +void DescribeCrossCloudLevelsRequest::setDBVersion(const std::string &dBVersion) { + dBVersion_ = dBVersion; + setParameter(std::string("DBVersion"), dBVersion); +} + diff --git a/polardb/src/model/DescribeCrossCloudLevelsResult.cc b/polardb/src/model/DescribeCrossCloudLevelsResult.cc new file mode 100644 index 000000000..5c6e45c5b --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudLevelsResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeCrossCloudLevelsResult::DescribeCrossCloudLevelsResult() : + ServiceResult() +{} + +DescribeCrossCloudLevelsResult::DescribeCrossCloudLevelsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossCloudLevelsResult::~DescribeCrossCloudLevelsResult() +{} + +void DescribeCrossCloudLevelsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCrossCloudLevelListNode = value["CrossCloudLevelList"]["CrossCloudLevelListItem"]; + for (auto valueCrossCloudLevelListCrossCloudLevelListItem : allCrossCloudLevelListNode) + { + CrossCloudLevelListItem crossCloudLevelListObject; + if(!valueCrossCloudLevelListCrossCloudLevelListItem["DBType"].isNull()) + crossCloudLevelListObject.dBType = valueCrossCloudLevelListCrossCloudLevelListItem["DBType"].asString(); + if(!valueCrossCloudLevelListCrossCloudLevelListItem["LevelName"].isNull()) + crossCloudLevelListObject.levelName = valueCrossCloudLevelListCrossCloudLevelListItem["LevelName"].asString(); + if(!valueCrossCloudLevelListCrossCloudLevelListItem["LevelCode"].isNull()) + crossCloudLevelListObject.levelCode = valueCrossCloudLevelListCrossCloudLevelListItem["LevelCode"].asString(); + crossCloudLevelList_.push_back(crossCloudLevelListObject); + } + +} + +std::vector DescribeCrossCloudLevelsResult::getCrossCloudLevelList()const +{ + return crossCloudLevelList_; +} + diff --git a/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunRequest.cc b/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunRequest.cc new file mode 100644 index 000000000..0cab6eb2d --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeCrossCloudRegionMappingToAliyunRequest; + +DescribeCrossCloudRegionMappingToAliyunRequest::DescribeCrossCloudRegionMappingToAliyunRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeCrossCloudRegionMappingToAliyun") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCrossCloudRegionMappingToAliyunRequest::~DescribeCrossCloudRegionMappingToAliyunRequest() {} + +std::string DescribeCrossCloudRegionMappingToAliyunRequest::getCloudProvider() const { + return cloudProvider_; +} + +void DescribeCrossCloudRegionMappingToAliyunRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + +std::string DescribeCrossCloudRegionMappingToAliyunRequest::getAliyunRegionId() const { + return aliyunRegionId_; +} + +void DescribeCrossCloudRegionMappingToAliyunRequest::setAliyunRegionId(const std::string &aliyunRegionId) { + aliyunRegionId_ = aliyunRegionId; + setParameter(std::string("AliyunRegionId"), aliyunRegionId); +} + +std::string DescribeCrossCloudRegionMappingToAliyunRequest::getCrossCloudRegionId() const { + return crossCloudRegionId_; +} + +void DescribeCrossCloudRegionMappingToAliyunRequest::setCrossCloudRegionId(const std::string &crossCloudRegionId) { + crossCloudRegionId_ = crossCloudRegionId; + setParameter(std::string("CrossCloudRegionId"), crossCloudRegionId); +} + diff --git a/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunResult.cc b/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunResult.cc new file mode 100644 index 000000000..309a8f423 --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudRegionMappingToAliyunResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeCrossCloudRegionMappingToAliyunResult::DescribeCrossCloudRegionMappingToAliyunResult() : + ServiceResult() +{} + +DescribeCrossCloudRegionMappingToAliyunResult::DescribeCrossCloudRegionMappingToAliyunResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossCloudRegionMappingToAliyunResult::~DescribeCrossCloudRegionMappingToAliyunResult() +{} + +void DescribeCrossCloudRegionMappingToAliyunResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCrossCloudRegionMappingListNode = value["CrossCloudRegionMappingList"]["CrossCloudRegionMappingListItem"]; + for (auto valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem : allCrossCloudRegionMappingListNode) + { + CrossCloudRegionMappingListItem crossCloudRegionMappingListObject; + if(!valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["CloudProvider"].isNull()) + crossCloudRegionMappingListObject.cloudProvider = valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["CloudProvider"].asString(); + if(!valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["AliyunRegionId"].isNull()) + crossCloudRegionMappingListObject.aliyunRegionId = valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["AliyunRegionId"].asString(); + if(!valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["CrossCloudRegionId"].isNull()) + crossCloudRegionMappingListObject.crossCloudRegionId = valueCrossCloudRegionMappingListCrossCloudRegionMappingListItem["CrossCloudRegionId"].asString(); + crossCloudRegionMappingList_.push_back(crossCloudRegionMappingListObject); + } + +} + +std::vector DescribeCrossCloudRegionMappingToAliyunResult::getCrossCloudRegionMappingList()const +{ + return crossCloudRegionMappingList_; +} + diff --git a/polardb/src/model/DescribeCrossCloudRegionRequest.cc b/polardb/src/model/DescribeCrossCloudRegionRequest.cc new file mode 100644 index 000000000..1eb4ab1bf --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudRegionRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeCrossCloudRegionRequest; + +DescribeCrossCloudRegionRequest::DescribeCrossCloudRegionRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeCrossCloudRegion") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCrossCloudRegionRequest::~DescribeCrossCloudRegionRequest() {} + +std::string DescribeCrossCloudRegionRequest::getCloudProvider() const { + return cloudProvider_; +} + +void DescribeCrossCloudRegionRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + +std::string DescribeCrossCloudRegionRequest::getCrossCloudRegionId() const { + return crossCloudRegionId_; +} + +void DescribeCrossCloudRegionRequest::setCrossCloudRegionId(const std::string &crossCloudRegionId) { + crossCloudRegionId_ = crossCloudRegionId; + setParameter(std::string("CrossCloudRegionId"), crossCloudRegionId); +} + +std::string DescribeCrossCloudRegionRequest::getDBType() const { + return dBType_; +} + +void DescribeCrossCloudRegionRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + diff --git a/polardb/src/model/DescribeCrossCloudRegionResult.cc b/polardb/src/model/DescribeCrossCloudRegionResult.cc new file mode 100644 index 000000000..bc4a8b43c --- /dev/null +++ b/polardb/src/model/DescribeCrossCloudRegionResult.cc @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeCrossCloudRegionResult::DescribeCrossCloudRegionResult() : + ServiceResult() +{} + +DescribeCrossCloudRegionResult::DescribeCrossCloudRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCrossCloudRegionResult::~DescribeCrossCloudRegionResult() +{} + +void DescribeCrossCloudRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCrossCloudRegionListNode = value["CrossCloudRegionList"]["CrossCloudRegionListItem"]; + for (auto valueCrossCloudRegionListCrossCloudRegionListItem : allCrossCloudRegionListNode) + { + CrossCloudRegionListItem crossCloudRegionListObject; + if(!valueCrossCloudRegionListCrossCloudRegionListItem["ProjectId"].isNull()) + crossCloudRegionListObject.projectId = valueCrossCloudRegionListCrossCloudRegionListItem["ProjectId"].asString(); + if(!valueCrossCloudRegionListCrossCloudRegionListItem["CrossCloudRegionId"].isNull()) + crossCloudRegionListObject.crossCloudRegionId = valueCrossCloudRegionListCrossCloudRegionListItem["CrossCloudRegionId"].asString(); + if(!valueCrossCloudRegionListCrossCloudRegionListItem["CrossCloudRegionName"].isNull()) + crossCloudRegionListObject.crossCloudRegionName = valueCrossCloudRegionListCrossCloudRegionListItem["CrossCloudRegionName"].asString(); + auto allCrossCloudZoneListNode = valueCrossCloudRegionListCrossCloudRegionListItem["CrossCloudZoneList"]["CrossCloudZoneListItem"]; + for (auto valueCrossCloudRegionListCrossCloudRegionListItemCrossCloudZoneListCrossCloudZoneListItem : allCrossCloudZoneListNode) + { + CrossCloudRegionListItem::CrossCloudZoneListItem crossCloudZoneListObject; + if(!valueCrossCloudRegionListCrossCloudRegionListItemCrossCloudZoneListCrossCloudZoneListItem["CrossCloudZoneId"].isNull()) + crossCloudZoneListObject.crossCloudZoneId = valueCrossCloudRegionListCrossCloudRegionListItemCrossCloudZoneListCrossCloudZoneListItem["CrossCloudZoneId"].asString(); + if(!valueCrossCloudRegionListCrossCloudRegionListItemCrossCloudZoneListCrossCloudZoneListItem["CrossCloudZoneName"].isNull()) + crossCloudZoneListObject.crossCloudZoneName = valueCrossCloudRegionListCrossCloudRegionListItemCrossCloudZoneListCrossCloudZoneListItem["CrossCloudZoneName"].asString(); + crossCloudRegionListObject.crossCloudZoneList.push_back(crossCloudZoneListObject); + } + crossCloudRegionList_.push_back(crossCloudRegionListObject); + } + +} + +std::vector DescribeCrossCloudRegionResult::getCrossCloudRegionList()const +{ + return crossCloudRegionList_; +} + diff --git a/polardb/src/model/DescribeDBClusterAttributeResult.cc b/polardb/src/model/DescribeDBClusterAttributeResult.cc index 8b1c70b81..07aaf9c0d 100644 --- a/polardb/src/model/DescribeDBClusterAttributeResult.cc +++ b/polardb/src/model/DescribeDBClusterAttributeResult.cc @@ -87,14 +87,46 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) 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["OsVersion"].isNull()) + dBNodesObject.osVersion = valueDBNodesDBNode["OsVersion"].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(); + if(!valueDBNodesDBNode["SubGroupType"].isNull()) + dBNodesObject.subGroupType = valueDBNodesDBNode["SubGroupType"].asString(); + if(!valueDBNodesDBNode["SubGroupName"].isNull()) + dBNodesObject.subGroupName = valueDBNodesDBNode["SubGroupName"].asString(); + if(!valueDBNodesDBNode["IsPrimaryCN"].isNull()) + dBNodesObject.isPrimaryCN = valueDBNodesDBNode["IsPrimaryCN"].asString() == "true"; + if(!valueDBNodesDBNode["StandbyZoneIds"].isNull()) + dBNodesObject.standbyZoneIds = valueDBNodesDBNode["StandbyZoneIds"].asString(); + if(!valueDBNodesDBNode["StorageMax"].isNull()) + dBNodesObject.storageMax = std::stol(valueDBNodesDBNode["StorageMax"].asString()); + if(!valueDBNodesDBNode["StorageUsed"].isNull()) + dBNodesObject.storageUsed = std::stol(valueDBNodesDBNode["StorageUsed"].asString()); + if(!valueDBNodesDBNode["InodeUsed"].isNull()) + dBNodesObject.inodeUsed = std::stol(valueDBNodesDBNode["InodeUsed"].asString()); + if(!valueDBNodesDBNode["InodeTotal"].isNull()) + dBNodesObject.inodeTotal = std::stol(valueDBNodesDBNode["InodeTotal"].asString()); + if(!valueDBNodesDBNode["BlktagTotal"].isNull()) + dBNodesObject.blktagTotal = std::stol(valueDBNodesDBNode["BlktagTotal"].asString()); + if(!valueDBNodesDBNode["BlktagUsed"].isNull()) + dBNodesObject.blktagUsed = std::stol(valueDBNodesDBNode["BlktagUsed"].asString()); + if(!valueDBNodesDBNode["SubGroupDescription"].isNull()) + dBNodesObject.subGroupDescription = valueDBNodesDBNode["SubGroupDescription"].asString(); + if(!valueDBNodesDBNode["MirrorInsName"].isNull()) + dBNodesObject.mirrorInsName = valueDBNodesDBNode["MirrorInsName"].asString(); + if(!valueDBNodesDBNode["Architecture"].isNull()) + dBNodesObject.architecture = valueDBNodesDBNode["Architecture"].asString(); + if(!valueDBNodesDBNode["SupportMemPool"].isNull()) + dBNodesObject.supportMemPool = valueDBNodesDBNode["SupportMemPool"].asString(); + if(!valueDBNodesDBNode["SupportCXLMemPool"].isNull()) + dBNodesObject.supportCXLMemPool = valueDBNodesDBNode["SupportCXLMemPool"].asString(); + if(!valueDBNodesDBNode["DBNodeCXLRemoteMemory"].isNull()) + dBNodesObject.dBNodeCXLRemoteMemory = valueDBNodesDBNode["DBNodeCXLRemoteMemory"].asString(); dBNodes_.push_back(dBNodesObject); } auto allTagsNode = value["Tags"]["Tag"]; @@ -174,10 +206,10 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) storagePayType_ = value["StoragePayType"].asString(); if(!value["LockMode"].isNull()) lockMode_ = value["LockMode"].asString(); - if(!value["StorageUsed"].isNull()) - storageUsed_ = std::stol(value["StorageUsed"].asString()); - if(!value["CompressStorageUsed"].isNull()) - compressStorageUsed_ = std::stol(value["CompressStorageUsed"].asString()); + if(!value["SearchStorageUsed"].isNull()) + searchStorageUsed_ = std::stol(value["SearchStorageUsed"].asString()); + if(!value["SearchCompressStorageUsed"].isNull()) + searchCompressStorageUsed_ = std::stol(value["SearchCompressStorageUsed"].asString()); if(!value["StorageSpace"].isNull()) storageSpace_ = std::stol(value["StorageSpace"].asString()); if(!value["DBVersionStatus"].isNull()) @@ -252,30 +284,59 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) sourceRegionId_ = value["SourceRegionId"].asString(); if(!value["ImciAutoIndex"].isNull()) imciAutoIndex_ = value["ImciAutoIndex"].asString(); + if(!value["OsVersion"].isNull()) + osVersion_ = value["OsVersion"].asString(); + if(!value["AutoUpgradeMinorVersion"].isNull()) + autoUpgradeMinorVersion_ = value["AutoUpgradeMinorVersion"].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(); + if(!value["CnNodeCount"].isNull()) + cnNodeCount_ = std::stoi(value["CnNodeCount"].asString()); + if(!value["DnNodeCount"].isNull()) + dnNodeCount_ = std::stoi(value["DnNodeCount"].asString()); + if(!value["DocumentDB"].isNull()) + documentDB_ = value["DocumentDB"].asString(); + if(!value["BackupDowngradeLevel"].isNull()) + backupDowngradeLevel_ = value["BackupDowngradeLevel"].asString(); + if(!value["RelativeAICluster"].isNull()) + relativeAICluster_ = value["RelativeAICluster"].asString(); + if(!value["DynamoDB"].isNull()) + dynamoDB_ = value["DynamoDB"].asString(); + if(!value["SupportCXLMemPool"].isNull()) + supportCXLMemPool_ = value["SupportCXLMemPool"].asString(); + if(!value["ApiKeys"].isNull()) + apiKeys_ = value["ApiKeys"].asString(); + if(!value["StorageUsed"].isNull()) + storageUsed_ = std::stol(value["StorageUsed"].asString()); + if(!value["CompressStorageUsed"].isNull()) + compressStorageUsed_ = std::stol(value["CompressStorageUsed"].asString()); } +long DescribeDBClusterAttributeResult::getSearchStorageUsed()const +{ + return searchStorageUsed_; +} + std::string DescribeDBClusterAttributeResult::getResourceGroupId()const { return resourceGroupId_; } -long DescribeDBClusterAttributeResult::getCompressStorageUsed()const -{ - return compressStorageUsed_; -} - std::string DescribeDBClusterAttributeResult::getOrca()const { return orca_; } +long DescribeDBClusterAttributeResult::getCompressStorageUsed()const +{ + return compressStorageUsed_; +} + std::string DescribeDBClusterAttributeResult::getStoragePayType()const { return storagePayType_; @@ -321,6 +382,11 @@ std::vector DescribeDBClusterAttribute return dBNodes_; } +std::string DescribeDBClusterAttributeResult::getAutoUpgradeMinorVersion()const +{ + return autoUpgradeMinorVersion_; +} + std::string DescribeDBClusterAttributeResult::getImciAutoIndex()const { return imciAutoIndex_; @@ -366,6 +432,11 @@ std::string DescribeDBClusterAttributeResult::getDBClusterDescription()const return dBClusterDescription_; } +std::string DescribeDBClusterAttributeResult::getDynamoDB()const +{ + return dynamoDB_; +} + std::string DescribeDBClusterAttributeResult::getExpired()const { return expired_; @@ -386,11 +457,6 @@ std::string DescribeDBClusterAttributeResult::getProvisionedIops()const return provisionedIops_; } -long DescribeDBClusterAttributeResult::getStorageUsed()const -{ - return storageUsed_; -} - long DescribeDBClusterAttributeResult::getInodeTotal()const { return inodeTotal_; @@ -401,6 +467,16 @@ std::string DescribeDBClusterAttributeResult::getRestoreDataPoint()const return restoreDataPoint_; } +std::string DescribeDBClusterAttributeResult::getSupportCXLMemPool()const +{ + return supportCXLMemPool_; +} + +long DescribeDBClusterAttributeResult::getStorageUsed()const +{ + return storageUsed_; +} + std::string DescribeDBClusterAttributeResult::getCompressStorageMode()const { return compressStorageMode_; @@ -436,6 +512,11 @@ std::string DescribeDBClusterAttributeResult::getExpireTime()const return expireTime_; } +std::string DescribeDBClusterAttributeResult::getRelativeAICluster()const +{ + return relativeAICluster_; +} + int DescribeDBClusterAttributeResult::getDeletionLock()const { return deletionLock_; @@ -456,6 +537,16 @@ bool DescribeDBClusterAttributeResult::getStorageTypeWhiteListSwitch()const return storageTypeWhiteListSwitch_; } +std::string DescribeDBClusterAttributeResult::getOsVersion()const +{ + return osVersion_; +} + +std::string DescribeDBClusterAttributeResult::getDocumentDB()const +{ + return documentDB_; +} + std::string DescribeDBClusterAttributeResult::getDBClusterId()const { return dBClusterId_; @@ -496,6 +587,16 @@ long DescribeDBClusterAttributeResult::getStorageMax()const return storageMax_; } +int DescribeDBClusterAttributeResult::getDnNodeCount()const +{ + return dnNodeCount_; +} + +long DescribeDBClusterAttributeResult::getSearchCompressStorageUsed()const +{ + return searchCompressStorageUsed_; +} + std::string DescribeDBClusterAttributeResult::getZoneIds()const { return zoneIds_; @@ -561,11 +662,21 @@ std::string DescribeDBClusterAttributeResult::getStrictConsistency()const return strictConsistency_; } +int DescribeDBClusterAttributeResult::getCnNodeCount()const +{ + return cnNodeCount_; +} + bool DescribeDBClusterAttributeResult::getIsProxyLatestVersion()const { return isProxyLatestVersion_; } +std::string DescribeDBClusterAttributeResult::getApiKeys()const +{ + return apiKeys_; +} + long DescribeDBClusterAttributeResult::getStorageSpace()const { return storageSpace_; @@ -611,6 +722,11 @@ std::string DescribeDBClusterAttributeResult::getRegionId()const return regionId_; } +std::string DescribeDBClusterAttributeResult::getBackupDowngradeLevel()const +{ + return backupDowngradeLevel_; +} + std::string DescribeDBClusterAttributeResult::getRowCompression()const { return rowCompression_; diff --git a/polardb/src/model/DescribeDBClusterEncryptionKeyRequest.cc b/polardb/src/model/DescribeDBClusterEncryptionKeyRequest.cc new file mode 100644 index 000000000..d38eece3a --- /dev/null +++ b/polardb/src/model/DescribeDBClusterEncryptionKeyRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeDBClusterEncryptionKeyRequest; + +DescribeDBClusterEncryptionKeyRequest::DescribeDBClusterEncryptionKeyRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterEncryptionKey") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterEncryptionKeyRequest::~DescribeDBClusterEncryptionKeyRequest() {} + +std::string DescribeDBClusterEncryptionKeyRequest::getClientToken() const { + return clientToken_; +} + +void DescribeDBClusterEncryptionKeyRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeDBClusterEncryptionKeyRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterEncryptionKeyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/polardb/src/model/DescribeDBClusterEncryptionKeyResult.cc b/polardb/src/model/DescribeDBClusterEncryptionKeyResult.cc new file mode 100644 index 000000000..50de0abee --- /dev/null +++ b/polardb/src/model/DescribeDBClusterEncryptionKeyResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterEncryptionKeyResult::DescribeDBClusterEncryptionKeyResult() : + ServiceResult() +{} + +DescribeDBClusterEncryptionKeyResult::DescribeDBClusterEncryptionKeyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterEncryptionKeyResult::~DescribeDBClusterEncryptionKeyResult() +{} + +void DescribeDBClusterEncryptionKeyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEncryptionKeyListNode = value["EncryptionKeyList"]["EncryptionKeyInfo"]; + for (auto valueEncryptionKeyListEncryptionKeyInfo : allEncryptionKeyListNode) + { + EncryptionKeyInfo encryptionKeyListObject; + if(!valueEncryptionKeyListEncryptionKeyInfo["AliasName"].isNull()) + encryptionKeyListObject.aliasName = valueEncryptionKeyListEncryptionKeyInfo["AliasName"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["Creator"].isNull()) + encryptionKeyListObject.creator = valueEncryptionKeyListEncryptionKeyInfo["Creator"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["DeleteDate"].isNull()) + encryptionKeyListObject.deleteDate = valueEncryptionKeyListEncryptionKeyInfo["DeleteDate"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["Description"].isNull()) + encryptionKeyListObject.description = valueEncryptionKeyListEncryptionKeyInfo["Description"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["EncryptionKey"].isNull()) + encryptionKeyListObject.encryptionKey = valueEncryptionKeyListEncryptionKeyInfo["EncryptionKey"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["EncryptionKeyStatus"].isNull()) + encryptionKeyListObject.encryptionKeyStatus = valueEncryptionKeyListEncryptionKeyInfo["EncryptionKeyStatus"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["KeyType"].isNull()) + encryptionKeyListObject.keyType = valueEncryptionKeyListEncryptionKeyInfo["KeyType"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["KeyUsage"].isNull()) + encryptionKeyListObject.keyUsage = valueEncryptionKeyListEncryptionKeyInfo["KeyUsage"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["MaterialExpireTime"].isNull()) + encryptionKeyListObject.materialExpireTime = valueEncryptionKeyListEncryptionKeyInfo["MaterialExpireTime"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["Origin"].isNull()) + encryptionKeyListObject.origin = valueEncryptionKeyListEncryptionKeyInfo["Origin"].asString(); + if(!valueEncryptionKeyListEncryptionKeyInfo["UsedBy"].isNull()) + encryptionKeyListObject.usedBy = valueEncryptionKeyListEncryptionKeyInfo["UsedBy"].asString(); + encryptionKeyList_.push_back(encryptionKeyListObject); + } + +} + +std::vector DescribeDBClusterEncryptionKeyResult::getEncryptionKeyList()const +{ + return encryptionKeyList_; +} + diff --git a/polardb/src/model/DescribeDBClusterEndpointsRequest.cc b/polardb/src/model/DescribeDBClusterEndpointsRequest.cc index 88aeb923c..6e79a0980 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsRequest.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsRequest.cc @@ -97,3 +97,12 @@ void DescribeDBClusterEndpointsRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeDBClusterEndpointsRequest::getPolarFsInstanceId() const { + return polarFsInstanceId_; +} + +void DescribeDBClusterEndpointsRequest::setPolarFsInstanceId(const std::string &polarFsInstanceId) { + polarFsInstanceId_ = polarFsInstanceId; + setParameter(std::string("PolarFsInstanceId"), polarFsInstanceId); +} + diff --git a/polardb/src/model/DescribeDBClusterEndpointsResult.cc b/polardb/src/model/DescribeDBClusterEndpointsResult.cc index 7d3a814b9..a34597725 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsResult.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsResult.cc @@ -43,8 +43,6 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) for (auto valueItemsDBEndpoint : allItemsNode) { DBEndpoint itemsObject; - if(!valueItemsDBEndpoint["NodeWithRoles"].isNull()) - itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString(); if(!valueItemsDBEndpoint["Nodes"].isNull()) itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString(); if(!valueItemsDBEndpoint["ReadWriteMode"].isNull()) @@ -67,6 +65,14 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) itemsObject.polarSccTimeoutAction = valueItemsDBEndpoint["PolarSccTimeoutAction"].asString(); if(!valueItemsDBEndpoint["PolarSccWaitTimeout"].isNull()) itemsObject.polarSccWaitTimeout = valueItemsDBEndpoint["PolarSccWaitTimeout"].asString(); + if(!valueItemsDBEndpoint["NodeWithRoles"].isNull()) + itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString(); + if(!valueItemsDBEndpoint["ConsistLevelControlVersion"].isNull()) + itemsObject.consistLevelControlVersion = valueItemsDBEndpoint["ConsistLevelControlVersion"].asString(); + if(!valueItemsDBEndpoint["DBEndpointCreateTime"].isNull()) + itemsObject.dBEndpointCreateTime = valueItemsDBEndpoint["DBEndpointCreateTime"].asString(); + if(!valueItemsDBEndpoint["DBEndpointStatus"].isNull()) + itemsObject.dBEndpointStatus = valueItemsDBEndpoint["DBEndpointStatus"].asString(); auto allAddressItemsNode = valueItemsDBEndpoint["AddressItems"]["Address"]; for (auto valueItemsDBEndpointAddressItemsAddress : allAddressItemsNode) { @@ -87,6 +93,8 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) addressItemsObject.vPCId = valueItemsDBEndpointAddressItemsAddress["VPCId"].asString(); if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull()) addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["DashboardUsed"].isNull()) + addressItemsObject.dashboardUsed = valueItemsDBEndpointAddressItemsAddress["DashboardUsed"].asString() == "true"; itemsObject.addressItems.push_back(addressItemsObject); } items_.push_back(itemsObject); diff --git a/polardb/src/model/DescribeDBClusterEndpointsZonalRequest.cc b/polardb/src/model/DescribeDBClusterEndpointsZonalRequest.cc new file mode 100644 index 000000000..21275f1bc --- /dev/null +++ b/polardb/src/model/DescribeDBClusterEndpointsZonalRequest.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::DescribeDBClusterEndpointsZonalRequest; + +DescribeDBClusterEndpointsZonalRequest::DescribeDBClusterEndpointsZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterEndpointsZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterEndpointsZonalRequest::~DescribeDBClusterEndpointsZonalRequest() {} + +long DescribeDBClusterEndpointsZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterEndpointsZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getDBEndpointId() const { + return dBEndpointId_; +} + +void DescribeDBClusterEndpointsZonalRequest::setDBEndpointId(const std::string &dBEndpointId) { + dBEndpointId_ = dBEndpointId; + setParameter(std::string("DBEndpointId"), dBEndpointId); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getDescribeType() const { + return describeType_; +} + +void DescribeDBClusterEndpointsZonalRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterEndpointsZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterEndpointsZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterEndpointsZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterEndpointsZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterEndpointsZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterEndpointsZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterEndpointsZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDBClusterEndpointsZonalResult.cc b/polardb/src/model/DescribeDBClusterEndpointsZonalResult.cc new file mode 100644 index 000000000..0192d38c4 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterEndpointsZonalResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterEndpointsZonalResult::DescribeDBClusterEndpointsZonalResult() : + ServiceResult() +{} + +DescribeDBClusterEndpointsZonalResult::DescribeDBClusterEndpointsZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterEndpointsZonalResult::~DescribeDBClusterEndpointsZonalResult() +{} + +void DescribeDBClusterEndpointsZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["DBEndpoint"]; + for (auto valueItemsDBEndpoint : allItemsNode) + { + DBEndpoint itemsObject; + if(!valueItemsDBEndpoint["DBEndpointId"].isNull()) + itemsObject.dBEndpointId = valueItemsDBEndpoint["DBEndpointId"].asString(); + if(!valueItemsDBEndpoint["PolarSccTimeoutAction"].isNull()) + itemsObject.polarSccTimeoutAction = valueItemsDBEndpoint["PolarSccTimeoutAction"].asString(); + if(!valueItemsDBEndpoint["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDBEndpoint["DBClusterId"].asString(); + if(!valueItemsDBEndpoint["Nodes"].isNull()) + itemsObject.nodes = valueItemsDBEndpoint["Nodes"].asString(); + if(!valueItemsDBEndpoint["ReadWriteMode"].isNull()) + itemsObject.readWriteMode = valueItemsDBEndpoint["ReadWriteMode"].asString(); + if(!valueItemsDBEndpoint["DBEndpointDescription"].isNull()) + itemsObject.dBEndpointDescription = valueItemsDBEndpoint["DBEndpointDescription"].asString(); + if(!valueItemsDBEndpoint["PolarSccWaitTimeout"].isNull()) + itemsObject.polarSccWaitTimeout = valueItemsDBEndpoint["PolarSccWaitTimeout"].asString(); + if(!valueItemsDBEndpoint["ConsistLevelControlVersion"].isNull()) + itemsObject.consistLevelControlVersion = valueItemsDBEndpoint["ConsistLevelControlVersion"].asString(); + if(!valueItemsDBEndpoint["NodeWithRoles"].isNull()) + itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString(); + if(!valueItemsDBEndpoint["AutoAddNewNodes"].isNull()) + itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString(); + if(!valueItemsDBEndpoint["EndpointType"].isNull()) + itemsObject.endpointType = valueItemsDBEndpoint["EndpointType"].asString(); + if(!valueItemsDBEndpoint["SccMode"].isNull()) + itemsObject.sccMode = valueItemsDBEndpoint["SccMode"].asString(); + if(!valueItemsDBEndpoint["EndpointConfig"].isNull()) + itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString(); + auto allAddressItemsNode = valueItemsDBEndpoint["AddressItems"]["Address"]; + for (auto valueItemsDBEndpointAddressItemsAddress : allAddressItemsNode) + { + DBEndpoint::Address addressItemsObject; + if(!valueItemsDBEndpointAddressItemsAddress["DashboardUsed"].isNull()) + addressItemsObject.dashboardUsed = valueItemsDBEndpointAddressItemsAddress["DashboardUsed"].asString() == "true"; + if(!valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].isNull()) + addressItemsObject.privateZoneConnectionString = valueItemsDBEndpointAddressItemsAddress["PrivateZoneConnectionString"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["VPCId"].isNull()) + addressItemsObject.vPCId = valueItemsDBEndpointAddressItemsAddress["VPCId"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["VSwitchId"].isNull()) + addressItemsObject.vSwitchId = valueItemsDBEndpointAddressItemsAddress["VSwitchId"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["Port"].isNull()) + addressItemsObject.port = valueItemsDBEndpointAddressItemsAddress["Port"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].isNull()) + addressItemsObject.vpcInstanceId = valueItemsDBEndpointAddressItemsAddress["VpcInstanceId"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["ConnectionString"].isNull()) + addressItemsObject.connectionString = valueItemsDBEndpointAddressItemsAddress["ConnectionString"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["IPAddress"].isNull()) + addressItemsObject.iPAddress = valueItemsDBEndpointAddressItemsAddress["IPAddress"].asString(); + if(!valueItemsDBEndpointAddressItemsAddress["NetType"].isNull()) + addressItemsObject.netType = valueItemsDBEndpointAddressItemsAddress["NetType"].asString(); + itemsObject.addressItems.push_back(addressItemsObject); + } + items_.push_back(itemsObject); + } + +} + +std::vector DescribeDBClusterEndpointsZonalResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeDBClusterMigrationResult.cc b/polardb/src/model/DescribeDBClusterMigrationResult.cc index 1f229a5d3..39f087704 100644 --- a/polardb/src/model/DescribeDBClusterMigrationResult.cc +++ b/polardb/src/model/DescribeDBClusterMigrationResult.cc @@ -123,12 +123,34 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) srcDtsJobListObject.destinationEndpoint = valueSrcDtsJobListSrcDtsJob["DestinationEndpoint"].asString(); srcDtsJobList_.push_back(srcDtsJobListObject); } + auto allSrcBidirectionalDtsJobListNode = value["SrcBidirectionalDtsJobList"]["SrcBidirectionalDtsJob"]; + for (auto valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob : allSrcBidirectionalDtsJobListNode) + { + SrcBidirectionalDtsJob srcBidirectionalDtsJobListObject; + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["ReverseDtsJobId"].isNull()) + srcBidirectionalDtsJobListObject.reverseDtsJobId = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["ReverseDtsJobId"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobName"].isNull()) + srcBidirectionalDtsJobListObject.dtsJobName = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobName"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsInstanceId"].isNull()) + srcBidirectionalDtsJobListObject.dtsInstanceId = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsInstanceId"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobDirection"].isNull()) + srcBidirectionalDtsJobListObject.dtsJobDirection = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobDirection"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["Status"].isNull()) + srcBidirectionalDtsJobListObject.status = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["Status"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["SourceEndpoint"].isNull()) + srcBidirectionalDtsJobListObject.sourceEndpoint = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["SourceEndpoint"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DestinationEndpoint"].isNull()) + srcBidirectionalDtsJobListObject.destinationEndpoint = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DestinationEndpoint"].asString(); + if(!valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobId"].isNull()) + srcBidirectionalDtsJobListObject.dtsJobId = valueSrcBidirectionalDtsJobListSrcBidirectionalDtsJob["DtsJobId"].asString(); + srcBidirectionalDtsJobList_.push_back(srcBidirectionalDtsJobListObject); + } auto allDstDtsJobListNode = value["DstDtsJobList"]["DstDtsJob"]; for (auto valueDstDtsJobListDstDtsJob : allDstDtsJobListNode) { DstDtsJob dstDtsJobListObject; - if(!valueDstDtsJobListDstDtsJob["DtsJobId"].isNull()) - dstDtsJobListObject.dtsJobId = valueDstDtsJobListDstDtsJob["DtsJobId"].asString(); + if(!valueDstDtsJobListDstDtsJob["ReverseDtsJobId"].isNull()) + dstDtsJobListObject.reverseDtsJobId = valueDstDtsJobListDstDtsJob["ReverseDtsJobId"].asString(); if(!valueDstDtsJobListDstDtsJob["DtsJobName"].isNull()) dstDtsJobListObject.dtsJobName = valueDstDtsJobListDstDtsJob["DtsJobName"].asString(); if(!valueDstDtsJobListDstDtsJob["DtsInstanceId"].isNull()) @@ -141,8 +163,32 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) dstDtsJobListObject.sourceEndpoint = valueDstDtsJobListDstDtsJob["SourceEndpoint"].asString(); if(!valueDstDtsJobListDstDtsJob["DestinationEndpoint"].isNull()) dstDtsJobListObject.destinationEndpoint = valueDstDtsJobListDstDtsJob["DestinationEndpoint"].asString(); + if(!valueDstDtsJobListDstDtsJob["DtsJobId"].isNull()) + dstDtsJobListObject.dtsJobId = valueDstDtsJobListDstDtsJob["DtsJobId"].asString(); dstDtsJobList_.push_back(dstDtsJobListObject); } + auto allDstBidirectionalDtsJobListNode = value["DstBidirectionalDtsJobList"]["DstBidirectionalDtsJob"]; + for (auto valueDstBidirectionalDtsJobListDstBidirectionalDtsJob : allDstBidirectionalDtsJobListNode) + { + DstBidirectionalDtsJob dstBidirectionalDtsJobListObject; + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["ReverseDtsJobId"].isNull()) + dstBidirectionalDtsJobListObject.reverseDtsJobId = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["ReverseDtsJobId"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobName"].isNull()) + dstBidirectionalDtsJobListObject.dtsJobName = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobName"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsInstanceId"].isNull()) + dstBidirectionalDtsJobListObject.dtsInstanceId = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsInstanceId"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobDirection"].isNull()) + dstBidirectionalDtsJobListObject.dtsJobDirection = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobDirection"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["Status"].isNull()) + dstBidirectionalDtsJobListObject.status = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["Status"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["SourceEndpoint"].isNull()) + dstBidirectionalDtsJobListObject.sourceEndpoint = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["SourceEndpoint"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DestinationEndpoint"].isNull()) + dstBidirectionalDtsJobListObject.destinationEndpoint = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DestinationEndpoint"].asString(); + if(!valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobId"].isNull()) + dstBidirectionalDtsJobListObject.dtsJobId = valueDstBidirectionalDtsJobListDstBidirectionalDtsJob["DtsJobId"].asString(); + dstBidirectionalDtsJobList_.push_back(dstBidirectionalDtsJobListObject); + } if(!value["Comment"].isNull()) comment_ = value["Comment"].asString(); if(!value["ExpiredTime"].isNull()) @@ -218,6 +264,11 @@ std::string DescribeDBClusterMigrationResult::getMigrationProgress()const return migrationProgress_; } +std::vector DescribeDBClusterMigrationResult::getSrcBidirectionalDtsJobList()const +{ + return srcBidirectionalDtsJobList_; +} + std::string DescribeDBClusterMigrationResult::getMigrationStatus()const { return migrationStatus_; @@ -278,3 +329,8 @@ int DescribeDBClusterMigrationResult::getDelayedSeconds()const return delayedSeconds_; } +std::vector DescribeDBClusterMigrationResult::getDstBidirectionalDtsJobList()const +{ + return dstBidirectionalDtsJobList_; +} + diff --git a/polardb/src/model/DescribeDBClusterNetInfoRequest.cc b/polardb/src/model/DescribeDBClusterNetInfoRequest.cc new file mode 100644 index 000000000..e77fd77e3 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterNetInfoRequest.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::DescribeDBClusterNetInfoRequest; + +DescribeDBClusterNetInfoRequest::DescribeDBClusterNetInfoRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterNetInfo") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterNetInfoRequest::~DescribeDBClusterNetInfoRequest() {} + +long DescribeDBClusterNetInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterNetInfoRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterNetInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterNetInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterNetInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterNetInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterNetInfoRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterNetInfoRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterNetInfoRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterNetInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterNetInfoRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterNetInfoRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBClusterNetInfoRequest::getConnectionStringType() const { + return connectionStringType_; +} + +void DescribeDBClusterNetInfoRequest::setConnectionStringType(const std::string &connectionStringType) { + connectionStringType_ = connectionStringType; + setParameter(std::string("ConnectionStringType"), connectionStringType); +} + diff --git a/polardb/src/model/DescribeDBClusterNetInfoResult.cc b/polardb/src/model/DescribeDBClusterNetInfoResult.cc new file mode 100644 index 000000000..79528eca3 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterNetInfoResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +DescribeDBClusterNetInfoResult::DescribeDBClusterNetInfoResult() : + ServiceResult() +{} + +DescribeDBClusterNetInfoResult::DescribeDBClusterNetInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterNetInfoResult::~DescribeDBClusterNetInfoResult() +{} + +void DescribeDBClusterNetInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBClusterNetInfosNode = value["DBClusterNetInfos"]["DBClusterNetInfo"]; + for (auto valueDBClusterNetInfosDBClusterNetInfo : allDBClusterNetInfosNode) + { + DBClusterNetInfo dBClusterNetInfosObject; + if(!valueDBClusterNetInfosDBClusterNetInfo["VSwitchId"].isNull()) + dBClusterNetInfosObject.vSwitchId = valueDBClusterNetInfosDBClusterNetInfo["VSwitchId"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["ConnectionStringType"].isNull()) + dBClusterNetInfosObject.connectionStringType = valueDBClusterNetInfosDBClusterNetInfo["ConnectionStringType"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["ConnectionString"].isNull()) + dBClusterNetInfosObject.connectionString = valueDBClusterNetInfosDBClusterNetInfo["ConnectionString"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["IPType"].isNull()) + dBClusterNetInfosObject.iPType = valueDBClusterNetInfosDBClusterNetInfo["IPType"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["Port"].isNull()) + dBClusterNetInfosObject.port = valueDBClusterNetInfosDBClusterNetInfo["Port"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["VPCId"].isNull()) + dBClusterNetInfosObject.vPCId = valueDBClusterNetInfosDBClusterNetInfo["VPCId"].asString(); + if(!valueDBClusterNetInfosDBClusterNetInfo["IPAddress"].isNull()) + dBClusterNetInfosObject.iPAddress = valueDBClusterNetInfosDBClusterNetInfo["IPAddress"].asString(); + dBClusterNetInfos_.push_back(dBClusterNetInfosObject); + } + auto allDBNodeNetInfosNode = value["DBNodeNetInfos"]["DBNodeNetInfo"]; + for (auto valueDBNodeNetInfosDBNodeNetInfo : allDBNodeNetInfosNode) + { + DBNodeNetInfo dBNodeNetInfosObject; + if(!valueDBNodeNetInfosDBNodeNetInfo["DBNodeRole"].isNull()) + dBNodeNetInfosObject.dBNodeRole = valueDBNodeNetInfosDBNodeNetInfo["DBNodeRole"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfo["DBInstanceId"].isNull()) + dBNodeNetInfosObject.dBInstanceId = valueDBNodeNetInfosDBNodeNetInfo["DBInstanceId"].asString(); + auto allNetInfosNode = valueDBNodeNetInfosDBNodeNetInfo["NetInfos"]["NetInfo"]; + for (auto valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo : allNetInfosNode) + { + DBNodeNetInfo::NetInfo netInfosObject; + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["VSwitchId"].isNull()) + netInfosObject.vSwitchId = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["VSwitchId"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["ConnectionString"].isNull()) + netInfosObject.connectionString = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["ConnectionString"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["IPType"].isNull()) + netInfosObject.iPType = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["IPType"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["Port"].isNull()) + netInfosObject.port = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["Port"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["VPCId"].isNull()) + netInfosObject.vPCId = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["VPCId"].asString(); + if(!valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["IPAddress"].isNull()) + netInfosObject.iPAddress = valueDBNodeNetInfosDBNodeNetInfoNetInfosNetInfo["IPAddress"].asString(); + dBNodeNetInfosObject.netInfos.push_back(netInfosObject); + } + dBNodeNetInfos_.push_back(dBNodeNetInfosObject); + } + if(!value["ClusterNetworkType"].isNull()) + clusterNetworkType_ = value["ClusterNetworkType"].asString(); + +} + +std::vector DescribeDBClusterNetInfoResult::getDBClusterNetInfos()const +{ + return dBClusterNetInfos_; +} + +std::string DescribeDBClusterNetInfoResult::getClusterNetworkType()const +{ + return clusterNetworkType_; +} + +std::vector DescribeDBClusterNetInfoResult::getDBNodeNetInfos()const +{ + return dBNodeNetInfos_; +} + diff --git a/polardb/src/model/DescribeDBClusterPerformanceRequest.cc b/polardb/src/model/DescribeDBClusterPerformanceRequest.cc index 3e1d17d0c..a9ae5dde0 100644 --- a/polardb/src/model/DescribeDBClusterPerformanceRequest.cc +++ b/polardb/src/model/DescribeDBClusterPerformanceRequest.cc @@ -61,6 +61,15 @@ void DescribeDBClusterPerformanceRequest::setAccessKeyId(const std::string &acce setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string DescribeDBClusterPerformanceRequest::getSubGroupName() const { + return subGroupName_; +} + +void DescribeDBClusterPerformanceRequest::setSubGroupName(const std::string &subGroupName) { + subGroupName_ = subGroupName; + setParameter(std::string("SubGroupName"), subGroupName); +} + std::string DescribeDBClusterPerformanceRequest::getKey() const { return key_; } diff --git a/polardb/src/model/DescribeDBClusterProxyRequest.cc b/polardb/src/model/DescribeDBClusterProxyRequest.cc new file mode 100644 index 000000000..ec1f62813 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterProxyRequest.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::DescribeDBClusterProxyRequest; + +DescribeDBClusterProxyRequest::DescribeDBClusterProxyRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterProxy") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterProxyRequest::~DescribeDBClusterProxyRequest() {} + +long DescribeDBClusterProxyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterProxyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterProxyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterProxyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterProxyRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBClusterProxyRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeDBClusterProxyRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClusterProxyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClusterProxyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterProxyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterProxyRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterProxyRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterProxyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterProxyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterProxyRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterProxyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDBClusterProxyResult.cc b/polardb/src/model/DescribeDBClusterProxyResult.cc new file mode 100644 index 000000000..b8d13bbb6 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterProxyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterProxyResult::DescribeDBClusterProxyResult() : + ServiceResult() +{} + +DescribeDBClusterProxyResult::DescribeDBClusterProxyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterProxyResult::~DescribeDBClusterProxyResult() +{} + +void DescribeDBClusterProxyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allChildInstancesNode = value["ChildInstances"]["ChildInstance"]; + for (auto valueChildInstancesChildInstance : allChildInstancesNode) + { + ChildInstance childInstancesObject; + if(!valueChildInstancesChildInstance["DBNodeClass"].isNull()) + childInstancesObject.dBNodeClass = valueChildInstancesChildInstance["DBNodeClass"].asString(); + if(!valueChildInstancesChildInstance["DBNodeIP"].isNull()) + childInstancesObject.dBNodeIP = valueChildInstancesChildInstance["DBNodeIP"].asString(); + if(!valueChildInstancesChildInstance["DBNodeId"].isNull()) + childInstancesObject.dBNodeId = valueChildInstancesChildInstance["DBNodeId"].asString(); + if(!valueChildInstancesChildInstance["DBNodePort"].isNull()) + childInstancesObject.dBNodePort = valueChildInstancesChildInstance["DBNodePort"].asString(); + if(!valueChildInstancesChildInstance["DBNodeStatus"].isNull()) + childInstancesObject.dBNodeStatus = valueChildInstancesChildInstance["DBNodeStatus"].asString(); + if(!valueChildInstancesChildInstance["HostName"].isNull()) + childInstancesObject.hostName = valueChildInstancesChildInstance["HostName"].asString(); + childInstances_.push_back(childInstancesObject); + } + if(!value["DBProxyClusterId"].isNull()) + dBProxyClusterId_ = value["DBProxyClusterId"].asString(); + if(!value["DBProxyClusterNum"].isNull()) + dBProxyClusterNum_ = std::stol(value["DBProxyClusterNum"].asString()); + if(!value["DBProxyClusterStatus"].isNull()) + dBProxyClusterStatus_ = value["DBProxyClusterStatus"].asString(); + +} + +std::string DescribeDBClusterProxyResult::getDBProxyClusterStatus()const +{ + return dBProxyClusterStatus_; +} + +std::string DescribeDBClusterProxyResult::getDBProxyClusterId()const +{ + return dBProxyClusterId_; +} + +long DescribeDBClusterProxyResult::getDBProxyClusterNum()const +{ + return dBProxyClusterNum_; +} + +std::vector DescribeDBClusterProxyResult::getChildInstances()const +{ + return childInstances_; +} + diff --git a/polardb/src/model/DescribeDBClusterVersionZonalRequest.cc b/polardb/src/model/DescribeDBClusterVersionZonalRequest.cc new file mode 100644 index 000000000..f97a352be --- /dev/null +++ b/polardb/src/model/DescribeDBClusterVersionZonalRequest.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::DescribeDBClusterVersionZonalRequest; + +DescribeDBClusterVersionZonalRequest::DescribeDBClusterVersionZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterVersionZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterVersionZonalRequest::~DescribeDBClusterVersionZonalRequest() {} + +long DescribeDBClusterVersionZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClusterVersionZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterVersionZonalRequest::getDescribeType() const { + return describeType_; +} + +void DescribeDBClusterVersionZonalRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +std::string DescribeDBClusterVersionZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClusterVersionZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClusterVersionZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClusterVersionZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClusterVersionZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBClusterVersionZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBClusterVersionZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClusterVersionZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClusterVersionZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClusterVersionZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDBClusterVersionZonalResult.cc b/polardb/src/model/DescribeDBClusterVersionZonalResult.cc new file mode 100644 index 000000000..883420d25 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterVersionZonalResult.cc @@ -0,0 +1,173 @@ +/* + * 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; + +DescribeDBClusterVersionZonalResult::DescribeDBClusterVersionZonalResult() : + ServiceResult() +{} + +DescribeDBClusterVersionZonalResult::DescribeDBClusterVersionZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterVersionZonalResult::~DescribeDBClusterVersionZonalResult() +{} + +void DescribeDBClusterVersionZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBRevisionVersionListNode = value["DBRevisionVersionList"]["DBRevisionVersionListItem"]; + for (auto valueDBRevisionVersionListDBRevisionVersionListItem : allDBRevisionVersionListNode) + { + DBRevisionVersionListItem dBRevisionVersionListObject; + if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].isNull()) + dBRevisionVersionListObject.releaseType = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].isNull()) + dBRevisionVersionListObject.revisionVersionCode = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].isNull()) + dBRevisionVersionListObject.revisionVersionName = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].isNull()) + 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()) + isProxyLatestVersion_ = value["IsProxyLatestVersion"].asString(); + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["DBRevisionVersion"].isNull()) + dBRevisionVersion_ = value["DBRevisionVersion"].asString(); + if(!value["DBVersionStatus"].isNull()) + dBVersionStatus_ = value["DBVersionStatus"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBMinorVersion"].isNull()) + dBMinorVersion_ = value["DBMinorVersion"].asString(); + if(!value["ProxyRevisionVersion"].isNull()) + proxyRevisionVersion_ = value["ProxyRevisionVersion"].asString(); + if(!value["ProxyVersionStatus"].isNull()) + proxyVersionStatus_ = value["ProxyVersionStatus"].asString(); + if(!value["ProxyLatestVersion"].isNull()) + proxyLatestVersion_ = value["ProxyLatestVersion"].asString(); + if(!value["DBLatestVersion"].isNull()) + dBLatestVersion_ = value["DBLatestVersion"].asString(); + if(!value["ProxyLatestVersionAfterDBEngineUpgraded"].isNull()) + proxyLatestVersionAfterDBEngineUpgraded_ = value["ProxyLatestVersionAfterDBEngineUpgraded"].asString(); + if(!value["DBInnerRevisionVersion"].isNull()) + dBInnerRevisionVersion_ = value["DBInnerRevisionVersion"].asString(); + +} + +std::string DescribeDBClusterVersionZonalResult::getDBRevisionVersion()const +{ + return dBRevisionVersion_; +} + +std::vector DescribeDBClusterVersionZonalResult::getProxyRevisionVersionList()const +{ + return proxyRevisionVersionList_; +} + +std::string DescribeDBClusterVersionZonalResult::getProxyLatestVersionAfterDBEngineUpgraded()const +{ + return proxyLatestVersionAfterDBEngineUpgraded_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeDBClusterVersionZonalResult::getProxyRevisionVersion()const +{ + return proxyRevisionVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBLatestVersion()const +{ + return dBLatestVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getProxyLatestVersion()const +{ + return proxyLatestVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getProxyVersionStatus()const +{ + return proxyVersionStatus_; +} + +std::string DescribeDBClusterVersionZonalResult::getIsLatestVersion()const +{ + return isLatestVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getIsProxyLatestVersion()const +{ + return isProxyLatestVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBVersion()const +{ + return dBVersion_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBVersionStatus()const +{ + return dBVersionStatus_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBMinorVersion()const +{ + return dBMinorVersion_; +} + +std::vector DescribeDBClusterVersionZonalResult::getDBRevisionVersionList()const +{ + return dBRevisionVersionList_; +} + +std::string DescribeDBClusterVersionZonalResult::getDBInnerRevisionVersion()const +{ + return dBInnerRevisionVersion_; +} + diff --git a/polardb/src/model/DescribeDBClustersResult.cc b/polardb/src/model/DescribeDBClustersResult.cc index bc3223c59..571ef45d8 100644 --- a/polardb/src/model/DescribeDBClustersResult.cc +++ b/polardb/src/model/DescribeDBClustersResult.cc @@ -81,10 +81,10 @@ void DescribeDBClustersResult::parse(const std::string &payload) itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); if(!valueItemsDBCluster["ResourceGroupId"].isNull()) itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); - if(!valueItemsDBCluster["StorageUsed"].isNull()) - itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString()); - if(!valueItemsDBCluster["CompressStorageUsed"].isNull()) - itemsObject.compressStorageUsed = std::stol(valueItemsDBCluster["CompressStorageUsed"].asString()); + if(!valueItemsDBCluster["SearchStorageUsed"].isNull()) + itemsObject.searchStorageUsed = std::stol(valueItemsDBCluster["SearchStorageUsed"].asString()); + if(!valueItemsDBCluster["SearchCompressStorageUsed"].isNull()) + itemsObject.searchCompressStorageUsed = std::stol(valueItemsDBCluster["SearchCompressStorageUsed"].asString()); if(!valueItemsDBCluster["StorageSpace"].isNull()) itemsObject.storageSpace = std::stol(valueItemsDBCluster["StorageSpace"].asString()); if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) @@ -105,8 +105,8 @@ void DescribeDBClustersResult::parse(const std::string &payload) 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["CpuArch"].isNull()) + itemsObject.cpuArch = valueItemsDBCluster["CpuArch"].asString(); if(!valueItemsDBCluster["DeployUnit"].isNull()) itemsObject.deployUnit = valueItemsDBCluster["DeployUnit"].asString(); if(!valueItemsDBCluster["StorageType"].isNull()) @@ -115,6 +115,22 @@ void DescribeDBClustersResult::parse(const std::string &payload) itemsObject.hotStandbyCluster = valueItemsDBCluster["HotStandbyCluster"].asString(); if(!valueItemsDBCluster["EngineMigrationStatus"].isNull()) itemsObject.engineMigrationStatus = valueItemsDBCluster["EngineMigrationStatus"].asString(); + if(!valueItemsDBCluster["CnNodeCount"].isNull()) + itemsObject.cnNodeCount = std::stoi(valueItemsDBCluster["CnNodeCount"].asString()); + if(!valueItemsDBCluster["DnNodeCount"].isNull()) + itemsObject.dnNodeCount = std::stoi(valueItemsDBCluster["DnNodeCount"].asString()); + if(!valueItemsDBCluster["CnClass"].isNull()) + itemsObject.cnClass = valueItemsDBCluster["CnClass"].asString(); + if(!valueItemsDBCluster["DnClass"].isNull()) + itemsObject.dnClass = valueItemsDBCluster["DnClass"].asString(); + if(!valueItemsDBCluster["CloudInstanceIp"].isNull()) + itemsObject.cloudInstanceIp = valueItemsDBCluster["CloudInstanceIp"].asString(); + if(!valueItemsDBCluster["SubCategory"].isNull()) + itemsObject.subCategory = valueItemsDBCluster["SubCategory"].asString(); + if(!valueItemsDBCluster["StorageUsed"].isNull()) + itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString()); + if(!valueItemsDBCluster["CompressStorageUsed"].isNull()) + itemsObject.compressStorageUsed = std::stol(valueItemsDBCluster["CompressStorageUsed"].asString()); auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; for (auto valueItemsDBClusterTagsTag : allTagsNode) { diff --git a/polardb/src/model/DescribeDBClustersWithBackupsResult.cc b/polardb/src/model/DescribeDBClustersWithBackupsResult.cc index 869fa2fd6..e29aea385 100644 --- a/polardb/src/model/DescribeDBClustersWithBackupsResult.cc +++ b/polardb/src/model/DescribeDBClustersWithBackupsResult.cc @@ -83,6 +83,8 @@ void DescribeDBClustersWithBackupsResult::parse(const std::string &payload) itemsObject.engine = valueItemsDBCluster["Engine"].asString(); if(!valueItemsDBCluster["Category"].isNull()) itemsObject.category = valueItemsDBCluster["Category"].asString(); + if(!valueItemsDBCluster["CnClass"].isNull()) + itemsObject.cnClass = valueItemsDBCluster["CnClass"].asString(); items_.push_back(itemsObject); } if(!value["PageNumber"].isNull()) diff --git a/polardb/src/model/DescribeDBClustersZonalRequest.cc b/polardb/src/model/DescribeDBClustersZonalRequest.cc new file mode 100644 index 000000000..fe8b02b15 --- /dev/null +++ b/polardb/src/model/DescribeDBClustersZonalRequest.cc @@ -0,0 +1,257 @@ +/* + * 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::DescribeDBClustersZonalRequest; + +DescribeDBClustersZonalRequest::DescribeDBClustersZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClustersZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClustersZonalRequest::~DescribeDBClustersZonalRequest() {} + +long DescribeDBClustersZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBClustersZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClustersZonalRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void DescribeDBClustersZonalRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string DescribeDBClustersZonalRequest::getDBClusterStatus() const { + return dBClusterStatus_; +} + +void DescribeDBClustersZonalRequest::setDBClusterStatus(const std::string &dBClusterStatus) { + dBClusterStatus_ = dBClusterStatus; + setParameter(std::string("DBClusterStatus"), dBClusterStatus); +} + +std::string DescribeDBClustersZonalRequest::getConnectionString() const { + return connectionString_; +} + +void DescribeDBClustersZonalRequest::setConnectionString(const std::string &connectionString) { + connectionString_ = connectionString; + setParameter(std::string("ConnectionString"), connectionString); +} + +int DescribeDBClustersZonalRequest::getRecentExpirationInterval() const { + return recentExpirationInterval_; +} + +void DescribeDBClustersZonalRequest::setRecentExpirationInterval(int recentExpirationInterval) { + recentExpirationInterval_ = recentExpirationInterval; + setParameter(std::string("RecentExpirationInterval"), std::to_string(recentExpirationInterval)); +} + +std::string DescribeDBClustersZonalRequest::getDescribeType() const { + return describeType_; +} + +void DescribeDBClustersZonalRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +int DescribeDBClustersZonalRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBClustersZonalRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBClustersZonalRequest::getDBNodeIds() const { + return dBNodeIds_; +} + +void DescribeDBClustersZonalRequest::setDBNodeIds(const std::string &dBNodeIds) { + dBNodeIds_ = dBNodeIds; + setParameter(std::string("DBNodeIds"), dBNodeIds); +} + +std::string DescribeDBClustersZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBClustersZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBClustersZonalRequest::getCloudProvider() const { + return cloudProvider_; +} + +void DescribeDBClustersZonalRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + +std::string DescribeDBClustersZonalRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeDBClustersZonalRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +int DescribeDBClustersZonalRequest::getRecentCreationInterval() const { + return recentCreationInterval_; +} + +void DescribeDBClustersZonalRequest::setRecentCreationInterval(int recentCreationInterval) { + recentCreationInterval_ = recentCreationInterval; + setParameter(std::string("RecentCreationInterval"), std::to_string(recentCreationInterval)); +} + +std::string DescribeDBClustersZonalRequest::getExpired() const { + return expired_; +} + +void DescribeDBClustersZonalRequest::setExpired(const std::string &expired) { + expired_ = expired; + setParameter(std::string("Expired"), expired); +} + +std::string DescribeDBClustersZonalRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBClustersZonalRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBClustersZonalRequest::getNextToken() const { + return nextToken_; +} + +void DescribeDBClustersZonalRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int DescribeDBClustersZonalRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBClustersZonalRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeDBClustersZonalRequest::getTag() const { + return tag_; +} + +void DescribeDBClustersZonalRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeDBClustersZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBClustersZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBClustersZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBClustersZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDBClustersZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBClustersZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBClustersZonalRequest::getDBType() const { + return dBType_; +} + +void DescribeDBClustersZonalRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string DescribeDBClustersZonalRequest::getDBVersion() const { + return dBVersion_; +} + +void DescribeDBClustersZonalRequest::setDBVersion(const std::string &dBVersion) { + dBVersion_ = dBVersion; + setParameter(std::string("DBVersion"), dBVersion); +} + +int DescribeDBClustersZonalRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeDBClustersZonalRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string DescribeDBClustersZonalRequest::getPayType() const { + return payType_; +} + +void DescribeDBClustersZonalRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + +std::string DescribeDBClustersZonalRequest::getDBClusterIds() const { + return dBClusterIds_; +} + +void DescribeDBClustersZonalRequest::setDBClusterIds(const std::string &dBClusterIds) { + dBClusterIds_ = dBClusterIds; + setParameter(std::string("DBClusterIds"), dBClusterIds); +} + diff --git a/polardb/src/model/DescribeDBClustersZonalResult.cc b/polardb/src/model/DescribeDBClustersZonalResult.cc new file mode 100644 index 000000000..bbfe0a7ea --- /dev/null +++ b/polardb/src/model/DescribeDBClustersZonalResult.cc @@ -0,0 +1,160 @@ +/* + * 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; + +DescribeDBClustersZonalResult::DescribeDBClustersZonalResult() : + ServiceResult() +{} + +DescribeDBClustersZonalResult::DescribeDBClustersZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClustersZonalResult::~DescribeDBClustersZonalResult() +{} + +void DescribeDBClustersZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["DBCluster"]; + for (auto valueItemsDBCluster : allItemsNode) + { + DBCluster itemsObject; + if(!valueItemsDBCluster["Category"].isNull()) + itemsObject.category = valueItemsDBCluster["Category"].asString(); + if(!valueItemsDBCluster["DBClusterId"].isNull()) + itemsObject.dBClusterId = valueItemsDBCluster["DBClusterId"].asString(); + if(!valueItemsDBCluster["DBType"].isNull()) + itemsObject.dBType = valueItemsDBCluster["DBType"].asString(); + if(!valueItemsDBCluster["CentralControlRegionId"].isNull()) + itemsObject.centralControlRegionId = valueItemsDBCluster["CentralControlRegionId"].asString(); + if(!valueItemsDBCluster["DBVersion"].isNull()) + itemsObject.dBVersion = valueItemsDBCluster["DBVersion"].asString(); + if(!valueItemsDBCluster["CloudProvider"].isNull()) + itemsObject.cloudProvider = valueItemsDBCluster["CloudProvider"].asString(); + if(!valueItemsDBCluster["StorageType"].isNull()) + itemsObject.storageType = valueItemsDBCluster["StorageType"].asString(); + if(!valueItemsDBCluster["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); + if(!valueItemsDBCluster["DBClusterStatus"].isNull()) + itemsObject.dBClusterStatus = valueItemsDBCluster["DBClusterStatus"].asString(); + if(!valueItemsDBCluster["CreateTime"].isNull()) + itemsObject.createTime = valueItemsDBCluster["CreateTime"].asString(); + if(!valueItemsDBCluster["DBClusterDescription"].isNull()) + itemsObject.dBClusterDescription = valueItemsDBCluster["DBClusterDescription"].asString(); + if(!valueItemsDBCluster["Expired"].isNull()) + itemsObject.expired = valueItemsDBCluster["Expired"].asString(); + if(!valueItemsDBCluster["PayType"].isNull()) + itemsObject.payType = valueItemsDBCluster["PayType"].asString(); + if(!valueItemsDBCluster["LockMode"].isNull()) + itemsObject.lockMode = valueItemsDBCluster["LockMode"].asString(); + if(!valueItemsDBCluster["VswitchId"].isNull()) + itemsObject.vswitchId = valueItemsDBCluster["VswitchId"].asString(); + if(!valueItemsDBCluster["StrictConsistency"].isNull()) + itemsObject.strictConsistency = valueItemsDBCluster["StrictConsistency"].asString(); + if(!valueItemsDBCluster["DBNodeClass"].isNull()) + itemsObject.dBNodeClass = valueItemsDBCluster["DBNodeClass"].asString(); + if(!valueItemsDBCluster["StorageUsed"].isNull()) + itemsObject.storageUsed = std::stol(valueItemsDBCluster["StorageUsed"].asString()); + if(!valueItemsDBCluster["ENSRegionId"].isNull()) + itemsObject.eNSRegionId = valueItemsDBCluster["ENSRegionId"].asString(); + if(!valueItemsDBCluster["CnNodeCount"].isNull()) + itemsObject.cnNodeCount = std::stoi(valueItemsDBCluster["CnNodeCount"].asString()); + if(!valueItemsDBCluster["DBNodeNumber"].isNull()) + itemsObject.dBNodeNumber = std::stoi(valueItemsDBCluster["DBNodeNumber"].asString()); + if(!valueItemsDBCluster["VpcId"].isNull()) + itemsObject.vpcId = valueItemsDBCluster["VpcId"].asString(); + if(!valueItemsDBCluster["CnClass"].isNull()) + itemsObject.cnClass = valueItemsDBCluster["CnClass"].asString(); + if(!valueItemsDBCluster["StorageSpace"].isNull()) + itemsObject.storageSpace = std::stol(valueItemsDBCluster["StorageSpace"].asString()); + if(!valueItemsDBCluster["ServerlessType"].isNull()) + itemsObject.serverlessType = valueItemsDBCluster["ServerlessType"].asString(); + if(!valueItemsDBCluster["AiType"].isNull()) + itemsObject.aiType = valueItemsDBCluster["AiType"].asString(); + if(!valueItemsDBCluster["CpuCores"].isNull()) + itemsObject.cpuCores = valueItemsDBCluster["CpuCores"].asString(); + if(!valueItemsDBCluster["CloudInstanceIp"].isNull()) + itemsObject.cloudInstanceIp = valueItemsDBCluster["CloudInstanceIp"].asString(); + if(!valueItemsDBCluster["SubCategory"].isNull()) + itemsObject.subCategory = valueItemsDBCluster["SubCategory"].asString(); + if(!valueItemsDBCluster["ExpireTime"].isNull()) + itemsObject.expireTime = valueItemsDBCluster["ExpireTime"].asString(); + auto allTagsNode = valueItemsDBCluster["Tags"]["Tag"]; + for (auto valueItemsDBClusterTagsTag : allTagsNode) + { + DBCluster::Tag tagsObject; + if(!valueItemsDBClusterTagsTag["Value"].isNull()) + tagsObject.value = valueItemsDBClusterTagsTag["Value"].asString(); + if(!valueItemsDBClusterTagsTag["Key"].isNull()) + tagsObject.key = valueItemsDBClusterTagsTag["Key"].asString(); + itemsObject.tags.push_back(tagsObject); + } + 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["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +int DescribeDBClustersZonalResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +int DescribeDBClustersZonalResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeDBClustersZonalResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeDBClustersZonalResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeDBClustersZonalResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector DescribeDBClustersZonalResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeDBInstancePerformanceRequest.cc b/polardb/src/model/DescribeDBInstancePerformanceRequest.cc new file mode 100644 index 000000000..d26975894 --- /dev/null +++ b/polardb/src/model/DescribeDBInstancePerformanceRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeDBInstancePerformanceRequest; + +DescribeDBInstancePerformanceRequest::DescribeDBInstancePerformanceRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBInstancePerformance") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBInstancePerformanceRequest::~DescribeDBInstancePerformanceRequest() {} + +long DescribeDBInstancePerformanceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBInstancePerformanceRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBInstancePerformanceRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeDBInstancePerformanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBInstancePerformanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBInstancePerformanceRequest::getDBInstanceId() const { + return dBInstanceId_; +} + +void DescribeDBInstancePerformanceRequest::setDBInstanceId(const std::string &dBInstanceId) { + dBInstanceId_ = dBInstanceId; + setParameter(std::string("DBInstanceId"), dBInstanceId); +} + +std::string DescribeDBInstancePerformanceRequest::getKey() const { + return key_; +} + +void DescribeDBInstancePerformanceRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + +std::string DescribeDBInstancePerformanceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeDBInstancePerformanceRequest::getEndTime() const { + return endTime_; +} + +void DescribeDBInstancePerformanceRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeDBInstancePerformanceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBInstancePerformanceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDBInstancePerformanceResult.cc b/polardb/src/model/DescribeDBInstancePerformanceResult.cc new file mode 100644 index 000000000..4795336bf --- /dev/null +++ b/polardb/src/model/DescribeDBInstancePerformanceResult.cc @@ -0,0 +1,111 @@ +/* + * 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; + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult() : + ServiceResult() +{} + +DescribeDBInstancePerformanceResult::DescribeDBInstancePerformanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBInstancePerformanceResult::~DescribeDBInstancePerformanceResult() +{} + +void DescribeDBInstancePerformanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceItem"]; + for (auto valuePerformanceKeysPerformanceItem : allPerformanceKeysNode) + { + PerformanceItem performanceKeysObject; + if(!valuePerformanceKeysPerformanceItem["MetricName"].isNull()) + performanceKeysObject.metricName = valuePerformanceKeysPerformanceItem["MetricName"].asString(); + if(!valuePerformanceKeysPerformanceItem["Measurement"].isNull()) + performanceKeysObject.measurement = valuePerformanceKeysPerformanceItem["Measurement"].asString(); + auto allPointsNode = valuePerformanceKeysPerformanceItem["Points"]["PerformanceItemValue"]; + for (auto valuePerformanceKeysPerformanceItemPointsPerformanceItemValue : allPointsNode) + { + PerformanceItem::PerformanceItemValue pointsObject; + if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].isNull()) + pointsObject.value = valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].asString(); + if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].isNull()) + pointsObject.timestamp = std::stol(valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].asString()); + performanceKeysObject.points.push_back(pointsObject); + } + performanceKeys_.push_back(performanceKeysObject); + } + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["DBInstanceId"].isNull()) + dBInstanceId_ = value["DBInstanceId"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["DBType"].isNull()) + dBType_ = value["DBType"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + +} + +std::vector DescribeDBInstancePerformanceResult::getPerformanceKeys()const +{ + return performanceKeys_; +} + +std::string DescribeDBInstancePerformanceResult::getDBVersion()const +{ + return dBVersion_; +} + +std::string DescribeDBInstancePerformanceResult::getEndTime()const +{ + return endTime_; +} + +std::string DescribeDBInstancePerformanceResult::getDBInstanceId()const +{ + return dBInstanceId_; +} + +std::string DescribeDBInstancePerformanceResult::getStartTime()const +{ + return startTime_; +} + +std::string DescribeDBInstancePerformanceResult::getDBType()const +{ + return dBType_; +} + +std::string DescribeDBInstancePerformanceResult::getEngine()const +{ + return engine_; +} + diff --git a/polardb/src/model/DescribeDBLogFilesRequest.cc b/polardb/src/model/DescribeDBLogFilesRequest.cc new file mode 100644 index 000000000..aa6877a43 --- /dev/null +++ b/polardb/src/model/DescribeDBLogFilesRequest.cc @@ -0,0 +1,180 @@ +/* + * 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::DescribeDBLogFilesRequest; + +DescribeDBLogFilesRequest::DescribeDBLogFilesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBLogFiles") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBLogFilesRequest::~DescribeDBLogFilesRequest() {} + +long DescribeDBLogFilesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDBLogFilesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDBLogFilesRequest::getDBNodeId() const { + return dBNodeId_; +} + +void DescribeDBLogFilesRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string DescribeDBLogFilesRequest::getSimulateListId() const { + return simulateListId_; +} + +void DescribeDBLogFilesRequest::setSimulateListId(const std::string &simulateListId) { + simulateListId_ = simulateListId; + setParameter(std::string("SimulateListId"), simulateListId); +} + +std::string DescribeDBLogFilesRequest::getStartTime() const { + return startTime_; +} + +void DescribeDBLogFilesRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeDBLogFilesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDBLogFilesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDBLogFilesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDBLogFilesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDBLogFilesRequest::getLogType() const { + return logType_; +} + +void DescribeDBLogFilesRequest::setLogType(const std::string &logType) { + logType_ = logType; + setParameter(std::string("LogType"), logType); +} + +int DescribeDBLogFilesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDBLogFilesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDBLogFilesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDBLogFilesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDBLogFilesRequest::getSwitchId() const { + return switchId_; +} + +void DescribeDBLogFilesRequest::setSwitchId(const std::string &switchId) { + switchId_ = switchId; + setParameter(std::string("SwitchId"), switchId); +} + +std::string DescribeDBLogFilesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDBLogFilesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDBLogFilesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDBLogFilesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeDBLogFilesRequest::getEndTime() const { + return endTime_; +} + +void DescribeDBLogFilesRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeDBLogFilesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDBLogFilesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDBLogFilesRequest::getDescribeSimulateSwitchMode() const { + return describeSimulateSwitchMode_; +} + +void DescribeDBLogFilesRequest::setDescribeSimulateSwitchMode(const std::string &describeSimulateSwitchMode) { + describeSimulateSwitchMode_ = describeSimulateSwitchMode; + setParameter(std::string("DescribeSimulateSwitchMode"), describeSimulateSwitchMode); +} + +std::string DescribeDBLogFilesRequest::getSimulateStatusList() const { + return simulateStatusList_; +} + +void DescribeDBLogFilesRequest::setSimulateStatusList(const std::string &simulateStatusList) { + simulateStatusList_ = simulateStatusList; + setParameter(std::string("SimulateStatusList"), simulateStatusList); +} + +std::string DescribeDBLogFilesRequest::getSimulateModeList() const { + return simulateModeList_; +} + +void DescribeDBLogFilesRequest::setSimulateModeList(const std::string &simulateModeList) { + simulateModeList_ = simulateModeList; + setParameter(std::string("SimulateModeList"), simulateModeList); +} + diff --git a/polardb/src/model/DescribeDBLogFilesResult.cc b/polardb/src/model/DescribeDBLogFilesResult.cc new file mode 100644 index 000000000..f64437e6c --- /dev/null +++ b/polardb/src/model/DescribeDBLogFilesResult.cc @@ -0,0 +1,277 @@ +/* + * 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; + +DescribeDBLogFilesResult::DescribeDBLogFilesResult() : + ServiceResult() +{} + +DescribeDBLogFilesResult::DescribeDBLogFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBLogFilesResult::~DescribeDBLogFilesResult() +{} + +void DescribeDBLogFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHaLogItemsNode = value["HaLogItems"]["HaSwitchLogItem"]; + for (auto valueHaLogItemsHaSwitchLogItem : allHaLogItemsNode) + { + HaSwitchLogItem haLogItemsObject; + if(!valueHaLogItemsHaSwitchLogItem["SwitchId"].isNull()) + haLogItemsObject.switchId = valueHaLogItemsHaSwitchLogItem["SwitchId"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["FromDBType"].isNull()) + haLogItemsObject.fromDBType = valueHaLogItemsHaSwitchLogItem["FromDBType"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchCauseCode"].isNull()) + haLogItemsObject.switchCauseCode = valueHaLogItemsHaSwitchLogItem["SwitchCauseCode"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchCauseDetail"].isNull()) + haLogItemsObject.switchCauseDetail = valueHaLogItemsHaSwitchLogItem["SwitchCauseDetail"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchStartTime"].isNull()) + haLogItemsObject.switchStartTime = valueHaLogItemsHaSwitchLogItem["SwitchStartTime"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchFinishTime"].isNull()) + haLogItemsObject.switchFinishTime = valueHaLogItemsHaSwitchLogItem["SwitchFinishTime"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["TotalSessions"].isNull()) + haLogItemsObject.totalSessions = std::stol(valueHaLogItemsHaSwitchLogItem["TotalSessions"].asString()); + if(!valueHaLogItemsHaSwitchLogItem["AffectedSessions"].isNull()) + haLogItemsObject.affectedSessions = std::stol(valueHaLogItemsHaSwitchLogItem["AffectedSessions"].asString()); + if(!valueHaLogItemsHaSwitchLogItem["SwitchType"].isNull()) + haLogItemsObject.switchType = std::stol(valueHaLogItemsHaSwitchLogItem["SwitchType"].asString()); + haLogItems_.push_back(haLogItemsObject); + } + auto allSwitchListItemsNode = value["SwitchListItems"]["SwitchListItem"]; + for (auto valueSwitchListItemsSwitchListItem : allSwitchListItemsNode) + { + SwitchListItem switchListItemsObject; + if(!valueSwitchListItemsSwitchListItem["SimulateListId"].isNull()) + switchListItemsObject.simulateListId = valueSwitchListItemsSwitchListItem["SimulateListId"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateMode"].isNull()) + switchListItemsObject.simulateMode = valueSwitchListItemsSwitchListItem["SimulateMode"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateStatus"].isNull()) + switchListItemsObject.simulateStatus = valueSwitchListItemsSwitchListItem["SimulateStatus"].asString(); + if(!valueSwitchListItemsSwitchListItem["StartTime"].isNull()) + switchListItemsObject.startTime = valueSwitchListItemsSwitchListItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EndTime"].isNull()) + switchListItemsObject.endTime = valueSwitchListItemsSwitchListItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EventStartTime"].isNull()) + switchListItemsObject.eventStartTime = valueSwitchListItemsSwitchListItem["EventStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EventFinishTime"].isNull()) + switchListItemsObject.eventFinishTime = valueSwitchListItemsSwitchListItem["EventFinishTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateTaskId"].isNull()) + switchListItemsObject.simulateTaskId = valueSwitchListItemsSwitchListItem["SimulateTaskId"].asString(); + if(!valueSwitchListItemsSwitchListItem["PreferredSimulateStartTime"].isNull()) + switchListItemsObject.preferredSimulateStartTime = valueSwitchListItemsSwitchListItem["PreferredSimulateStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["PlannedEscapeMode"].isNull()) + switchListItemsObject.plannedEscapeMode = valueSwitchListItemsSwitchListItem["PlannedEscapeMode"].asString(); + if(!valueSwitchListItemsSwitchListItem["PlannedEscapeTime"].isNull()) + switchListItemsObject.plannedEscapeTime = valueSwitchListItemsSwitchListItem["PlannedEscapeTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["FaultInjectionType"].isNull()) + switchListItemsObject.faultInjectionType = valueSwitchListItemsSwitchListItem["FaultInjectionType"].asString(); + auto allSwitchLogItems1Node = valueSwitchListItemsSwitchListItem["SwitchLogItems"]["SwitchLogItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem : allSwitchLogItems1Node) + { + SwitchListItem::SwitchLogItem switchLogItems1Object; + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateListId"].isNull()) + switchLogItems1Object.simulateListId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateListId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateLogId"].isNull()) + switchLogItems1Object.simulateLogId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateLogId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DBInstanceId"].isNull()) + switchLogItems1Object.dBInstanceId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DBInstanceId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcIpPort"].isNull()) + switchLogItems1Object.srcIpPort = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcIpPort"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcDbType"].isNull()) + switchLogItems1Object.srcDbType = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcDbType"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstIpPort"].isNull()) + switchLogItems1Object.dstIpPort = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstIpPort"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstDbType"].isNull()) + switchLogItems1Object.dstDbType = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstDbType"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateStatus"].isNull()) + switchLogItems1Object.simulateStatus = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateStatus"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventStartTime"].isNull()) + switchLogItems1Object.eventStartTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventFinishTime"].isNull()) + switchLogItems1Object.eventFinishTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventFinishTime"].asString(); + auto allSwitchStepItems2Node = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SwitchStepItems"]["SwitchDetailItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem : allSwitchStepItems2Node) + { + SwitchListItem::SwitchLogItem::SwitchDetailItem switchStepItems2Object; + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StepName"].isNull()) + switchStepItems2Object.stepName = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StepName"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StartTime"].isNull()) + switchStepItems2Object.startTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["SimulatePhase"].isNull()) + switchStepItems2Object.simulatePhase = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["SimulatePhase"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["EndTime"].isNull()) + switchStepItems2Object.endTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["TimeCost"].isNull()) + switchStepItems2Object.timeCost = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["TimeCost"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["IsSuccess"].isNull()) + switchStepItems2Object.isSuccess = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["IsSuccess"].asString(); + switchLogItems1Object.switchStepItems2.push_back(switchStepItems2Object); + } + switchListItemsObject.switchLogItems1.push_back(switchLogItems1Object); + } + auto allSwitchStepItemsNode = valueSwitchListItemsSwitchListItem["SwitchStepItems"]["SwitchStepItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem : allSwitchStepItemsNode) + { + SwitchListItem::SwitchStepItem switchStepItemsObject; + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["SimulatePhase"].isNull()) + switchStepItemsObject.simulatePhase = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["SimulatePhase"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StepName"].isNull()) + switchStepItemsObject.stepName = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StepName"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StartTime"].isNull()) + switchStepItemsObject.startTime = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["EndTime"].isNull()) + switchStepItemsObject.endTime = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["TimeCost"].isNull()) + switchStepItemsObject.timeCost = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["TimeCost"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["IsSuccess"].isNull()) + switchStepItemsObject.isSuccess = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["IsSuccess"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["DBNodeId"].isNull()) + switchStepItemsObject.dBNodeId = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["DBNodeId"].asString(); + switchListItemsObject.switchStepItems.push_back(switchStepItemsObject); + } + auto allDBNodeCrashList = value["DBNodeCrashList"]["dbNodeCrashList"]; + for (auto value : allDBNodeCrashList) + switchListItemsObject.dBNodeCrashList.push_back(value.asString()); + switchListItems_.push_back(switchListItemsObject); + } + auto allSwitchLogItemsNode = value["SwitchLogItems"]["SwitchLogItem"]; + for (auto valueSwitchLogItemsSwitchLogItem : allSwitchLogItemsNode) + { + SwitchLogItem3 switchLogItemsObject; + if(!valueSwitchLogItemsSwitchLogItem["SimulateListId"].isNull()) + switchLogItemsObject.simulateListId = valueSwitchLogItemsSwitchLogItem["SimulateListId"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["Simulatecode"].isNull()) + switchLogItemsObject.simulatecode = valueSwitchLogItemsSwitchLogItem["Simulatecode"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DBInstanceId"].isNull()) + switchLogItemsObject.dBInstanceId = valueSwitchLogItemsSwitchLogItem["DBInstanceId"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SrcIpPort"].isNull()) + switchLogItemsObject.srcIpPort = valueSwitchLogItemsSwitchLogItem["SrcIpPort"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SrcDbType"].isNull()) + switchLogItemsObject.srcDbType = valueSwitchLogItemsSwitchLogItem["SrcDbType"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DstIpPort"].isNull()) + switchLogItemsObject.dstIpPort = valueSwitchLogItemsSwitchLogItem["DstIpPort"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DstDbType"].isNull()) + switchLogItemsObject.dstDbType = valueSwitchLogItemsSwitchLogItem["DstDbType"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SimulateStatus"].isNull()) + switchLogItemsObject.simulateStatus = valueSwitchLogItemsSwitchLogItem["SimulateStatus"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["EventStartTime"].isNull()) + switchLogItemsObject.eventStartTime = valueSwitchLogItemsSwitchLogItem["EventStartTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["EventFinishTime"].isNull()) + switchLogItemsObject.eventFinishTime = valueSwitchLogItemsSwitchLogItem["EventFinishTime"].asString(); + auto allSwitchStepItems4Node = valueSwitchLogItemsSwitchLogItem["SwitchStepItems"]["SwitchStepItem"]; + for (auto valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem : allSwitchStepItems4Node) + { + SwitchLogItem3::SwitchStepItem5 switchStepItems4Object; + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepName"].isNull()) + switchStepItems4Object.stepName = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepName"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepMsg"].isNull()) + switchStepItems4Object.stepMsg = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepMsg"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StartTime"].isNull()) + switchStepItems4Object.startTime = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StartTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["EndTime"].isNull()) + switchStepItems4Object.endTime = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["EndTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["TimeCost"].isNull()) + switchStepItems4Object.timeCost = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["TimeCost"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["IsSuccess"].isNull()) + switchStepItems4Object.isSuccess = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["IsSuccess"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["SimulatePhase"].isNull()) + switchStepItems4Object.simulatePhase = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["SimulatePhase"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["DBNodeId"].isNull()) + switchStepItems4Object.dBNodeId = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["DBNodeId"].asString(); + switchLogItemsObject.switchStepItems4.push_back(switchStepItems4Object); + } + switchLogItems_.push_back(switchLogItemsObject); + } + if(!value["TotalRecords"].isNull()) + totalRecords_ = std::stoi(value["TotalRecords"].asString()); + if(!value["ItemsNumbers"].isNull()) + itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["DBInstanceName"].isNull()) + dBInstanceName_ = value["DBInstanceName"].asString(); + if(!value["DBInstanceType"].isNull()) + dBInstanceType_ = value["DBInstanceType"].asString(); + if(!value["HaStatus"].isNull()) + haStatus_ = std::stoi(value["HaStatus"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeDBLogFilesResult::getItemsNumbers()const +{ + return itemsNumbers_; +} + +std::vector DescribeDBLogFilesResult::getHaLogItems()const +{ + return haLogItems_; +} + +int DescribeDBLogFilesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeDBLogFilesResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeDBLogFilesResult::getHaStatus()const +{ + return haStatus_; +} + +int DescribeDBLogFilesResult::getTotalRecords()const +{ + return totalRecords_; +} + +std::string DescribeDBLogFilesResult::getDBInstanceType()const +{ + return dBInstanceType_; +} + +std::vector DescribeDBLogFilesResult::getSwitchListItems()const +{ + return switchListItems_; +} + +std::vector DescribeDBLogFilesResult::getSwitchLogItems()const +{ + return switchLogItems_; +} + +std::string DescribeDBLogFilesResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + diff --git a/polardb/src/model/DescribeDBMiniEngineVersionsRequest.cc b/polardb/src/model/DescribeDBMiniEngineVersionsRequest.cc new file mode 100644 index 000000000..707803155 --- /dev/null +++ b/polardb/src/model/DescribeDBMiniEngineVersionsRequest.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::DescribeDBMiniEngineVersionsRequest; + +DescribeDBMiniEngineVersionsRequest::DescribeDBMiniEngineVersionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDBMiniEngineVersions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDBMiniEngineVersionsRequest::~DescribeDBMiniEngineVersionsRequest() {} + +std::string DescribeDBMiniEngineVersionsRequest::getCreationCategory() const { + return creationCategory_; +} + +void DescribeDBMiniEngineVersionsRequest::setCreationCategory(const std::string &creationCategory) { + creationCategory_ = creationCategory; + setParameter(std::string("CreationCategory"), creationCategory); +} + +std::string DescribeDBMiniEngineVersionsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDBMiniEngineVersionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDBMiniEngineVersionsRequest::getArchitecture() const { + return architecture_; +} + +void DescribeDBMiniEngineVersionsRequest::setArchitecture(const std::string &architecture) { + architecture_ = architecture; + setParameter(std::string("Architecture"), architecture); +} + +std::string DescribeDBMiniEngineVersionsRequest::getDBMinorVersion() const { + return dBMinorVersion_; +} + +void DescribeDBMiniEngineVersionsRequest::setDBMinorVersion(const std::string &dBMinorVersion) { + dBMinorVersion_ = dBMinorVersion; + setParameter(std::string("DBMinorVersion"), dBMinorVersion); +} + +std::string DescribeDBMiniEngineVersionsRequest::getDBType() const { + return dBType_; +} + +void DescribeDBMiniEngineVersionsRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string DescribeDBMiniEngineVersionsRequest::getDBVersion() const { + return dBVersion_; +} + +void DescribeDBMiniEngineVersionsRequest::setDBVersion(const std::string &dBVersion) { + dBVersion_ = dBVersion; + setParameter(std::string("DBVersion"), dBVersion); +} + +std::string DescribeDBMiniEngineVersionsRequest::getZoneId() const { + return zoneId_; +} + +void DescribeDBMiniEngineVersionsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + diff --git a/polardb/src/model/DescribeDBMiniEngineVersionsResult.cc b/polardb/src/model/DescribeDBMiniEngineVersionsResult.cc new file mode 100644 index 000000000..c0ceb4c87 --- /dev/null +++ b/polardb/src/model/DescribeDBMiniEngineVersionsResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBMiniEngineVersionsResult::DescribeDBMiniEngineVersionsResult() : + ServiceResult() +{} + +DescribeDBMiniEngineVersionsResult::DescribeDBMiniEngineVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBMiniEngineVersionsResult::~DescribeDBMiniEngineVersionsResult() +{} + +void DescribeDBMiniEngineVersionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBRevisionVersionListNode = value["DBRevisionVersionList"]["DBRevisionVersionListItem"]; + for (auto valueDBRevisionVersionListDBRevisionVersionListItem : allDBRevisionVersionListNode) + { + DBRevisionVersionListItem dBRevisionVersionListObject; + if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].isNull()) + dBRevisionVersionListObject.releaseNote = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseNote"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].isNull()) + dBRevisionVersionListObject.releaseType = valueDBRevisionVersionListDBRevisionVersionListItem["ReleaseType"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].isNull()) + dBRevisionVersionListObject.revisionVersionCode = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionCode"].asString(); + if(!valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].isNull()) + dBRevisionVersionListObject.revisionVersionName = valueDBRevisionVersionListDBRevisionVersionListItem["RevisionVersionName"].asString(); + dBRevisionVersionList_.push_back(dBRevisionVersionListObject); + } + +} + +std::vector DescribeDBMiniEngineVersionsResult::getDBRevisionVersionList()const +{ + return dBRevisionVersionList_; +} + diff --git a/polardb/src/model/DescribeDatabasesZonalRequest.cc b/polardb/src/model/DescribeDatabasesZonalRequest.cc new file mode 100644 index 000000000..88341686e --- /dev/null +++ b/polardb/src/model/DescribeDatabasesZonalRequest.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::DescribeDatabasesZonalRequest; + +DescribeDatabasesZonalRequest::DescribeDatabasesZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDatabasesZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDatabasesZonalRequest::~DescribeDatabasesZonalRequest() {} + +long DescribeDatabasesZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDatabasesZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeDatabasesZonalRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeDatabasesZonalRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeDatabasesZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDatabasesZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDatabasesZonalRequest::getNextToken() const { + return nextToken_; +} + +void DescribeDatabasesZonalRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int DescribeDatabasesZonalRequest::getPageSize() const { + return pageSize_; +} + +void DescribeDatabasesZonalRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeDatabasesZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDatabasesZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDatabasesZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDatabasesZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDatabasesZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDatabasesZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDatabasesZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDatabasesZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDatabasesZonalRequest::getDBName() const { + return dBName_; +} + +void DescribeDatabasesZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + +int DescribeDatabasesZonalRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeDatabasesZonalRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/polardb/src/model/DescribeDatabasesZonalResult.cc b/polardb/src/model/DescribeDatabasesZonalResult.cc new file mode 100644 index 000000000..f3d9a37e0 --- /dev/null +++ b/polardb/src/model/DescribeDatabasesZonalResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +DescribeDatabasesZonalResult::DescribeDatabasesZonalResult() : + ServiceResult() +{} + +DescribeDatabasesZonalResult::DescribeDatabasesZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDatabasesZonalResult::~DescribeDatabasesZonalResult() +{} + +void DescribeDatabasesZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDatabasesNode = value["Databases"]["Database"]; + for (auto valueDatabasesDatabase : allDatabasesNode) + { + Database databasesObject; + if(!valueDatabasesDatabase["DBDescription"].isNull()) + databasesObject.dBDescription = valueDatabasesDatabase["DBDescription"].asString(); + if(!valueDatabasesDatabase["DBStatus"].isNull()) + databasesObject.dBStatus = valueDatabasesDatabase["DBStatus"].asString(); + if(!valueDatabasesDatabase["DBName"].isNull()) + databasesObject.dBName = valueDatabasesDatabase["DBName"].asString(); + if(!valueDatabasesDatabase["Engine"].isNull()) + databasesObject.engine = valueDatabasesDatabase["Engine"].asString(); + if(!valueDatabasesDatabase["MasterID"].isNull()) + databasesObject.masterID = valueDatabasesDatabase["MasterID"].asString(); + if(!valueDatabasesDatabase["CharacterSetName"].isNull()) + databasesObject.characterSetName = valueDatabasesDatabase["CharacterSetName"].asString(); + auto allAccountsNode = valueDatabasesDatabase["Accounts"]["Account"]; + for (auto valueDatabasesDatabaseAccountsAccount : allAccountsNode) + { + Database::Account accountsObject; + if(!valueDatabasesDatabaseAccountsAccount["PrivilegeStatus"].isNull()) + accountsObject.privilegeStatus = valueDatabasesDatabaseAccountsAccount["PrivilegeStatus"].asString(); + if(!valueDatabasesDatabaseAccountsAccount["AccountStatus"].isNull()) + accountsObject.accountStatus = valueDatabasesDatabaseAccountsAccount["AccountStatus"].asString(); + if(!valueDatabasesDatabaseAccountsAccount["AccountPrivilege"].isNull()) + accountsObject.accountPrivilege = valueDatabasesDatabaseAccountsAccount["AccountPrivilege"].asString(); + if(!valueDatabasesDatabaseAccountsAccount["AccountName"].isNull()) + accountsObject.accountName = valueDatabasesDatabaseAccountsAccount["AccountName"].asString(); + databasesObject.accounts.push_back(accountsObject); + } + databases_.push_back(databasesObject); + } + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = std::stoi(value["PageRecordCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::vector DescribeDatabasesZonalResult::getDatabases()const +{ + return databases_; +} + +int DescribeDatabasesZonalResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeDatabasesZonalResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeDatabasesZonalResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeDatabasesZonalResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/polardb/src/model/DescribeDbClusterAttributeZonalRequest.cc b/polardb/src/model/DescribeDbClusterAttributeZonalRequest.cc new file mode 100644 index 000000000..1137f9482 --- /dev/null +++ b/polardb/src/model/DescribeDbClusterAttributeZonalRequest.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::DescribeDbClusterAttributeZonalRequest; + +DescribeDbClusterAttributeZonalRequest::DescribeDbClusterAttributeZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeDbClusterAttributeZonal") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDbClusterAttributeZonalRequest::~DescribeDbClusterAttributeZonalRequest() {} + +long DescribeDbClusterAttributeZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDbClusterAttributeZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDbClusterAttributeZonalRequest::getDescribeType() const { + return describeType_; +} + +void DescribeDbClusterAttributeZonalRequest::setDescribeType(const std::string &describeType) { + describeType_ = describeType; + setParameter(std::string("DescribeType"), describeType); +} + +std::string DescribeDbClusterAttributeZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeDbClusterAttributeZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeDbClusterAttributeZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDbClusterAttributeZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDbClusterAttributeZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeDbClusterAttributeZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeDbClusterAttributeZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDbClusterAttributeZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDbClusterAttributeZonalRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDbClusterAttributeZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDbClusterAttributeZonalResult.cc b/polardb/src/model/DescribeDbClusterAttributeZonalResult.cc new file mode 100644 index 000000000..126bcf663 --- /dev/null +++ b/polardb/src/model/DescribeDbClusterAttributeZonalResult.cc @@ -0,0 +1,714 @@ +/* + * 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; + +DescribeDbClusterAttributeZonalResult::DescribeDbClusterAttributeZonalResult() : + ServiceResult() +{} + +DescribeDbClusterAttributeZonalResult::DescribeDbClusterAttributeZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDbClusterAttributeZonalResult::~DescribeDbClusterAttributeZonalResult() +{} + +void DescribeDbClusterAttributeZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDBNodesNode = value["DBNodes"]["DBNode"]; + for (auto valueDBNodesDBNode : allDBNodesNode) + { + DBNode dBNodesObject; + if(!valueDBNodesDBNode["DBNodeStatus"].isNull()) + dBNodesObject.dBNodeStatus = valueDBNodesDBNode["DBNodeStatus"].asString(); + if(!valueDBNodesDBNode["SubGroupDescription"].isNull()) + dBNodesObject.subGroupDescription = valueDBNodesDBNode["SubGroupDescription"].asString(); + if(!valueDBNodesDBNode["AddedCpuCores"].isNull()) + dBNodesObject.addedCpuCores = valueDBNodesDBNode["AddedCpuCores"].asString(); + if(!valueDBNodesDBNode["Orca"].isNull()) + dBNodesObject.orca = valueDBNodesDBNode["Orca"].asString(); + if(!valueDBNodesDBNode["DBNodeRole"].isNull()) + dBNodesObject.dBNodeRole = valueDBNodesDBNode["DBNodeRole"].asString(); + if(!valueDBNodesDBNode["SubCluster"].isNull()) + dBNodesObject.subCluster = valueDBNodesDBNode["SubCluster"].asString(); + if(!valueDBNodesDBNode["OsVersion"].isNull()) + dBNodesObject.osVersion = valueDBNodesDBNode["OsVersion"].asString(); + if(!valueDBNodesDBNode["SupportMemPool"].isNull()) + dBNodesObject.supportMemPool = valueDBNodesDBNode["SupportMemPool"].asString(); + if(!valueDBNodesDBNode["ImciSwitch"].isNull()) + dBNodesObject.imciSwitch = valueDBNodesDBNode["ImciSwitch"].asString(); + if(!valueDBNodesDBNode["DBNodeId"].isNull()) + dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString(); + if(!valueDBNodesDBNode["RemoteMemorySize"].isNull()) + dBNodesObject.remoteMemorySize = valueDBNodesDBNode["RemoteMemorySize"].asString(); + if(!valueDBNodesDBNode["BlktagUsed"].isNull()) + dBNodesObject.blktagUsed = std::stol(valueDBNodesDBNode["BlktagUsed"].asString()); + if(!valueDBNodesDBNode["SubGroupType"].isNull()) + dBNodesObject.subGroupType = valueDBNodesDBNode["SubGroupType"].asString(); + if(!valueDBNodesDBNode["Tair"].isNull()) + dBNodesObject.tair = valueDBNodesDBNode["Tair"].asString(); + if(!valueDBNodesDBNode["StorageMax"].isNull()) + dBNodesObject.storageMax = std::stol(valueDBNodesDBNode["StorageMax"].asString()); + if(!valueDBNodesDBNode["MultiMasterLocalStandby"].isNull()) + dBNodesObject.multiMasterLocalStandby = valueDBNodesDBNode["MultiMasterLocalStandby"].asString(); + if(!valueDBNodesDBNode["MultiMasterPrimaryNode"].isNull()) + dBNodesObject.multiMasterPrimaryNode = valueDBNodesDBNode["MultiMasterPrimaryNode"].asString(); + if(!valueDBNodesDBNode["SccMode"].isNull()) + dBNodesObject.sccMode = valueDBNodesDBNode["SccMode"].asString(); + if(!valueDBNodesDBNode["IsPrimaryCN"].isNull()) + dBNodesObject.isPrimaryCN = valueDBNodesDBNode["IsPrimaryCN"].asString() == "true"; + if(!valueDBNodesDBNode["StandbyZoneIds"].isNull()) + dBNodesObject.standbyZoneIds = valueDBNodesDBNode["StandbyZoneIds"].asString(); + if(!valueDBNodesDBNode["InodeUsed"].isNull()) + dBNodesObject.inodeUsed = std::stol(valueDBNodesDBNode["InodeUsed"].asString()); + if(!valueDBNodesDBNode["FailoverPriority"].isNull()) + dBNodesObject.failoverPriority = std::stoi(valueDBNodesDBNode["FailoverPriority"].asString()); + if(!valueDBNodesDBNode["ServerWeight"].isNull()) + dBNodesObject.serverWeight = valueDBNodesDBNode["ServerWeight"].asString(); + if(!valueDBNodesDBNode["DBNodeDescription"].isNull()) + dBNodesObject.dBNodeDescription = valueDBNodesDBNode["DBNodeDescription"].asString(); + if(!valueDBNodesDBNode["MemorySize"].isNull()) + dBNodesObject.memorySize = valueDBNodesDBNode["MemorySize"].asString(); + if(!valueDBNodesDBNode["BlktagTotal"].isNull()) + dBNodesObject.blktagTotal = std::stol(valueDBNodesDBNode["BlktagTotal"].asString()); + if(!valueDBNodesDBNode["MirrorInsName"].isNull()) + dBNodesObject.mirrorInsName = valueDBNodesDBNode["MirrorInsName"].asString(); + if(!valueDBNodesDBNode["ZoneId"].isNull()) + dBNodesObject.zoneId = valueDBNodesDBNode["ZoneId"].asString(); + if(!valueDBNodesDBNode["MaxConnections"].isNull()) + dBNodesObject.maxConnections = std::stoi(valueDBNodesDBNode["MaxConnections"].asString()); + if(!valueDBNodesDBNode["Architecture"].isNull()) + dBNodesObject.architecture = valueDBNodesDBNode["Architecture"].asString(); + if(!valueDBNodesDBNode["SubGroupName"].isNull()) + dBNodesObject.subGroupName = valueDBNodesDBNode["SubGroupName"].asString(); + if(!valueDBNodesDBNode["MaxIOPS"].isNull()) + dBNodesObject.maxIOPS = std::stoi(valueDBNodesDBNode["MaxIOPS"].asString()); + if(!valueDBNodesDBNode["DBNodeClass"].isNull()) + dBNodesObject.dBNodeClass = valueDBNodesDBNode["DBNodeClass"].asString(); + if(!valueDBNodesDBNode["StorageUsed"].isNull()) + dBNodesObject.storageUsed = std::stol(valueDBNodesDBNode["StorageUsed"].asString()); + if(!valueDBNodesDBNode["InodeTotal"].isNull()) + dBNodesObject.inodeTotal = std::stol(valueDBNodesDBNode["InodeTotal"].asString()); + if(!valueDBNodesDBNode["ServerlessType"].isNull()) + dBNodesObject.serverlessType = valueDBNodesDBNode["ServerlessType"].asString(); + if(!valueDBNodesDBNode["CreationTime"].isNull()) + dBNodesObject.creationTime = valueDBNodesDBNode["CreationTime"].asString(); + if(!valueDBNodesDBNode["CpuCores"].isNull()) + dBNodesObject.cpuCores = valueDBNodesDBNode["CpuCores"].asString(); + if(!valueDBNodesDBNode["MasterId"].isNull()) + dBNodesObject.masterId = valueDBNodesDBNode["MasterId"].asString(); + if(!valueDBNodesDBNode["HotReplicaMode"].isNull()) + dBNodesObject.hotReplicaMode = valueDBNodesDBNode["HotReplicaMode"].asString(); + dBNodes_.push_back(dBNodesObject); + } + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["Value"].isNull()) + tagsObject.value = valueTagsTag["Value"].asString(); + if(!valueTagsTag["Key"].isNull()) + tagsObject.key = valueTagsTag["Key"].asString(); + tags_.push_back(tagsObject); + } + auto relatedAPInstanceNode = value["RelatedAPInstance"]; + if(!relatedAPInstanceNode["Name"].isNull()) + relatedAPInstance_.name = relatedAPInstanceNode["Name"].asString(); + if(!relatedAPInstanceNode["ClassCode"].isNull()) + relatedAPInstance_.classCode = relatedAPInstanceNode["ClassCode"].asString(); + if(!relatedAPInstanceNode["OssStorageUsed"].isNull()) + relatedAPInstance_.ossStorageUsed = relatedAPInstanceNode["OssStorageUsed"].asString(); + if(!relatedAPInstanceNode["TotalAPNodes"].isNull()) + relatedAPInstance_.totalAPNodes = relatedAPInstanceNode["TotalAPNodes"].asString(); + if(!relatedAPInstanceNode["StorageUsedMB"].isNull()) + relatedAPInstance_.storageUsedMB = std::stof(relatedAPInstanceNode["StorageUsedMB"].asString()); + if(!relatedAPInstanceNode["APNodeStatus"].isNull()) + relatedAPInstance_.aPNodeStatus = relatedAPInstanceNode["APNodeStatus"].asString(); + if(!value["DeletionLock"].isNull()) + deletionLock_ = std::stoi(value["DeletionLock"].asString()); + if(!value["Category"].isNull()) + category_ = value["Category"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["DataLevel1BackupChainSize"].isNull()) + dataLevel1BackupChainSize_ = std::stol(value["DataLevel1BackupChainSize"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["DBType"].isNull()) + dBType_ = value["DBType"].asString(); + if(!value["DBClusterNetworkType"].isNull()) + dBClusterNetworkType_ = value["DBClusterNetworkType"].asString(); + if(!value["IsLatestVersion"].isNull()) + isLatestVersion_ = value["IsLatestVersion"].asString() == "true"; + if(!value["HasCompleteStandbyRes"].isNull()) + hasCompleteStandbyRes_ = value["HasCompleteStandbyRes"].asString() == "true"; + if(!value["HotStandbyClusterStatus"].isNull()) + hotStandbyClusterStatus_ = value["HotStandbyClusterStatus"].asString(); + if(!value["HotStandbyCluster"].isNull()) + hotStandbyCluster_ = value["HotStandbyCluster"].asString(); + if(!value["DataSyncMode"].isNull()) + dataSyncMode_ = value["DataSyncMode"].asString(); + if(!value["StandbyHAMode"].isNull()) + standbyHAMode_ = value["StandbyHAMode"].asString(); + if(!value["CompressStorageMode"].isNull()) + compressStorageMode_ = value["CompressStorageMode"].asString(); + if(!value["StorageMax"].isNull()) + storageMax_ = std::stol(value["StorageMax"].asString()); + if(!value["DBVersion"].isNull()) + dBVersion_ = value["DBVersion"].asString(); + if(!value["ZoneIds"].isNull()) + zoneIds_ = value["ZoneIds"].asString(); + if(!value["MaintainTime"].isNull()) + maintainTime_ = value["MaintainTime"].asString(); + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["VPCId"].isNull()) + vPCId_ = value["VPCId"].asString(); + if(!value["DBClusterStatus"].isNull()) + dBClusterStatus_ = value["DBClusterStatus"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["DBClusterDescription"].isNull()) + dBClusterDescription_ = value["DBClusterDescription"].asString(); + if(!value["Expired"].isNull()) + expired_ = value["Expired"].asString(); + if(!value["PayType"].isNull()) + payType_ = value["PayType"].asString(); + if(!value["StoragePayType"].isNull()) + storagePayType_ = value["StoragePayType"].asString(); + if(!value["LockMode"].isNull()) + lockMode_ = value["LockMode"].asString(); + if(!value["StorageUsed"].isNull()) + storageUsed_ = std::stol(value["StorageUsed"].asString()); + if(!value["CompressStorageUsed"].isNull()) + compressStorageUsed_ = std::stol(value["CompressStorageUsed"].asString()); + if(!value["StorageSpace"].isNull()) + storageSpace_ = std::stol(value["StorageSpace"].asString()); + if(!value["DBVersionStatus"].isNull()) + dBVersionStatus_ = value["DBVersionStatus"].asString(); + if(!value["CreationTime"].isNull()) + creationTime_ = value["CreationTime"].asString(); + if(!value["SQLSize"].isNull()) + sQLSize_ = std::stol(value["SQLSize"].asString()); + if(!value["InodeTotal"].isNull()) + inodeTotal_ = std::stol(value["InodeTotal"].asString()); + if(!value["InodeUsed"].isNull()) + inodeUsed_ = std::stol(value["InodeUsed"].asString()); + if(!value["BlktagTotal"].isNull()) + blktagTotal_ = std::stol(value["BlktagTotal"].asString()); + if(!value["BlktagUsed"].isNull()) + blktagUsed_ = std::stol(value["BlktagUsed"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["SubCategory"].isNull()) + subCategory_ = value["SubCategory"].asString(); + if(!value["DeployUnit"].isNull()) + deployUnit_ = value["DeployUnit"].asString(); + if(!value["IsProxyLatestVersion"].isNull()) + isProxyLatestVersion_ = value["IsProxyLatestVersion"].asString() == "true"; + if(!value["StorageType"].isNull()) + storageType_ = value["StorageType"].asString(); + if(!value["ServerlessType"].isNull()) + serverlessType_ = value["ServerlessType"].asString(); + if(!value["StrictConsistency"].isNull()) + strictConsistency_ = value["StrictConsistency"].asString(); + if(!value["ProxyCpuCores"].isNull()) + proxyCpuCores_ = value["ProxyCpuCores"].asString(); + if(!value["ProxyStandardCpuCores"].isNull()) + proxyStandardCpuCores_ = value["ProxyStandardCpuCores"].asString(); + if(!value["ProxyType"].isNull()) + proxyType_ = value["ProxyType"].asString(); + if(!value["ProxyStatus"].isNull()) + proxyStatus_ = value["ProxyStatus"].asString(); + if(!value["FeatureHTAPSupported"].isNull()) + featureHTAPSupported_ = value["FeatureHTAPSupported"].asString(); + if(!value["ProxyServerlessType"].isNull()) + proxyServerlessType_ = value["ProxyServerlessType"].asString(); + if(!value["Architecture"].isNull()) + architecture_ = value["Architecture"].asString(); + if(!value["AiType"].isNull()) + aiType_ = value["AiType"].asString(); + if(!value["ProvisionedIops"].isNull()) + 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["OsVersion"].isNull()) + osVersion_ = value["OsVersion"].asString(); + if(!value["AutoUpgradeMinorVersion"].isNull()) + autoUpgradeMinorVersion_ = value["AutoUpgradeMinorVersion"].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(); + if(!value["CnNodeCount"].isNull()) + cnNodeCount_ = std::stoi(value["CnNodeCount"].asString()); + if(!value["DnNodeCount"].isNull()) + dnNodeCount_ = std::stoi(value["DnNodeCount"].asString()); + if(!value["DocumentDB"].isNull()) + documentDB_ = value["DocumentDB"].asString(); + if(!value["BackupDowngradeLevel"].isNull()) + backupDowngradeLevel_ = value["BackupDowngradeLevel"].asString(); + if(!value["RelativeAICluster"].isNull()) + relativeAICluster_ = value["RelativeAICluster"].asString(); + if(!value["DynamoDB"].isNull()) + dynamoDB_ = value["DynamoDB"].asString(); + if(!value["DBClusterClass"].isNull()) + dBClusterClass_ = value["DBClusterClass"].asString(); + +} + +std::string DescribeDbClusterAttributeZonalResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +long DescribeDbClusterAttributeZonalResult::getCompressStorageUsed()const +{ + return compressStorageUsed_; +} + +std::string DescribeDbClusterAttributeZonalResult::getOrca()const +{ + return orca_; +} + +std::string DescribeDbClusterAttributeZonalResult::getStoragePayType()const +{ + return storagePayType_; +} + +long DescribeDbClusterAttributeZonalResult::getDataLevel1BackupChainSize()const +{ + return dataLevel1BackupChainSize_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProxyStatus()const +{ + return proxyStatus_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBType()const +{ + return dBType_; +} + +long DescribeDbClusterAttributeZonalResult::getBlktagUsed()const +{ + return blktagUsed_; +} + +std::string DescribeDbClusterAttributeZonalResult::getStandbyHAMode()const +{ + return standbyHAMode_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProxyStandardCpuCores()const +{ + return proxyStandardCpuCores_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBVersion()const +{ + return dBVersion_; +} + +std::vector DescribeDbClusterAttributeZonalResult::getDBNodes()const +{ + return dBNodes_; +} + +std::string DescribeDbClusterAttributeZonalResult::getAutoUpgradeMinorVersion()const +{ + return autoUpgradeMinorVersion_; +} + +std::string DescribeDbClusterAttributeZonalResult::getImciAutoIndex()const +{ + return imciAutoIndex_; +} + +std::string DescribeDbClusterAttributeZonalResult::getFeatureHTAPSupported()const +{ + return featureHTAPSupported_; +} + +std::vector DescribeDbClusterAttributeZonalResult::getTags()const +{ + return tags_; +} + +std::string DescribeDbClusterAttributeZonalResult::getEngine()const +{ + return engine_; +} + +std::string DescribeDbClusterAttributeZonalResult::getStorageType()const +{ + return storageType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getArchitecture()const +{ + return architecture_; +} + +std::string DescribeDbClusterAttributeZonalResult::getVPCId()const +{ + return vPCId_; +} + +std::string DescribeDbClusterAttributeZonalResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBClusterDescription()const +{ + return dBClusterDescription_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDynamoDB()const +{ + return dynamoDB_; +} + +std::string DescribeDbClusterAttributeZonalResult::getExpired()const +{ + return expired_; +} + +std::string DescribeDbClusterAttributeZonalResult::getPayType()const +{ + return payType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getLockMode()const +{ + return lockMode_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProvisionedIops()const +{ + return provisionedIops_; +} + +long DescribeDbClusterAttributeZonalResult::getStorageUsed()const +{ + return storageUsed_; +} + +long DescribeDbClusterAttributeZonalResult::getInodeTotal()const +{ + return inodeTotal_; +} + +std::string DescribeDbClusterAttributeZonalResult::getRestoreDataPoint()const +{ + return restoreDataPoint_; +} + +std::string DescribeDbClusterAttributeZonalResult::getCompressStorageMode()const +{ + return compressStorageMode_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBVersionStatus()const +{ + return dBVersionStatus_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProxyServerlessType()const +{ + return proxyServerlessType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getCreationTime()const +{ + return creationTime_; +} + +std::string DescribeDbClusterAttributeZonalResult::getImperceptibleSwitch()const +{ + return imperceptibleSwitch_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProxyType()const +{ + return proxyType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getExpireTime()const +{ + return expireTime_; +} + +std::string DescribeDbClusterAttributeZonalResult::getRelativeAICluster()const +{ + return relativeAICluster_; +} + +int DescribeDbClusterAttributeZonalResult::getDeletionLock()const +{ + return deletionLock_; +} + +std::string DescribeDbClusterAttributeZonalResult::getCategory()const +{ + return category_; +} + +std::string DescribeDbClusterAttributeZonalResult::getAiCreatingTime()const +{ + return aiCreatingTime_; +} + +bool DescribeDbClusterAttributeZonalResult::getStorageTypeWhiteListSwitch()const +{ + return storageTypeWhiteListSwitch_; +} + +std::string DescribeDbClusterAttributeZonalResult::getOsVersion()const +{ + return osVersion_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDocumentDB()const +{ + return documentDB_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeDbClusterAttributeZonalResult::getHotStandbyCluster()const +{ + return hotStandbyCluster_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDeployUnit()const +{ + return deployUnit_; +} + +std::string DescribeDbClusterAttributeZonalResult::getAiFreeMode()const +{ + return aiFreeMode_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBClusterNetworkType()const +{ + return dBClusterNetworkType_; +} + +bool DescribeDbClusterAttributeZonalResult::getIsLatestVersion()const +{ + return isLatestVersion_; +} + +std::string DescribeDbClusterAttributeZonalResult::getSourceRegionId()const +{ + return sourceRegionId_; +} + +long DescribeDbClusterAttributeZonalResult::getStorageMax()const +{ + return storageMax_; +} + +int DescribeDbClusterAttributeZonalResult::getDnNodeCount()const +{ + return dnNodeCount_; +} + +std::string DescribeDbClusterAttributeZonalResult::getZoneIds()const +{ + return zoneIds_; +} + +bool DescribeDbClusterAttributeZonalResult::getHotStandbyWhiteListSwitch()const +{ + return hotStandbyWhiteListSwitch_; +} + +long DescribeDbClusterAttributeZonalResult::getInodeUsed()const +{ + return inodeUsed_; +} + +std::string DescribeDbClusterAttributeZonalResult::getRestoreType()const +{ + return restoreType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getMaintainTime()const +{ + return maintainTime_; +} + +std::string DescribeDbClusterAttributeZonalResult::getBurstingEnabled()const +{ + return burstingEnabled_; +} + +std::string DescribeDbClusterAttributeZonalResult::getHotStandbyClusterStatus()const +{ + return hotStandbyClusterStatus_; +} + +long DescribeDbClusterAttributeZonalResult::getBlktagTotal()const +{ + return blktagTotal_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDataSyncMode()const +{ + return dataSyncMode_; +} + +std::string DescribeDbClusterAttributeZonalResult::getSourceDBCluster()const +{ + return sourceDBCluster_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBClusterStatus()const +{ + return dBClusterStatus_; +} + +std::string DescribeDbClusterAttributeZonalResult::getProxyCpuCores()const +{ + return proxyCpuCores_; +} + +std::string DescribeDbClusterAttributeZonalResult::getStrictConsistency()const +{ + return strictConsistency_; +} + +int DescribeDbClusterAttributeZonalResult::getCnNodeCount()const +{ + return cnNodeCount_; +} + +bool DescribeDbClusterAttributeZonalResult::getIsProxyLatestVersion()const +{ + return isProxyLatestVersion_; +} + +long DescribeDbClusterAttributeZonalResult::getStorageSpace()const +{ + return storageSpace_; +} + +std::string DescribeDbClusterAttributeZonalResult::getServerlessType()const +{ + return serverlessType_; +} + +std::string DescribeDbClusterAttributeZonalResult::getSubCategory()const +{ + return subCategory_; +} + +std::string DescribeDbClusterAttributeZonalResult::getAiType()const +{ + return aiType_; +} + +bool DescribeDbClusterAttributeZonalResult::getHasCompleteStandbyRes()const +{ + return hasCompleteStandbyRes_; +} + +std::string DescribeDbClusterAttributeZonalResult::getSupportInstantSwitchWithImci()const +{ + return supportInstantSwitchWithImci_; +} + +DescribeDbClusterAttributeZonalResult::RelatedAPInstance DescribeDbClusterAttributeZonalResult::getRelatedAPInstance()const +{ + return relatedAPInstance_; +} + +long DescribeDbClusterAttributeZonalResult::getSQLSize()const +{ + return sQLSize_; +} + +std::string DescribeDbClusterAttributeZonalResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeDbClusterAttributeZonalResult::getBackupDowngradeLevel()const +{ + return backupDowngradeLevel_; +} + +std::string DescribeDbClusterAttributeZonalResult::getRowCompression()const +{ + return rowCompression_; +} + +std::string DescribeDbClusterAttributeZonalResult::getDBClusterClass()const +{ + return dBClusterClass_; +} + +bool DescribeDbClusterAttributeZonalResult::getHotStandbyHealthy()const +{ + return hotStandbyHealthy_; +} + diff --git a/polardb/src/model/DescribeEncryptionDBRolePrivilegeRequest.cc b/polardb/src/model/DescribeEncryptionDBRolePrivilegeRequest.cc new file mode 100644 index 000000000..7d7ddb0d5 --- /dev/null +++ b/polardb/src/model/DescribeEncryptionDBRolePrivilegeRequest.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::DescribeEncryptionDBRolePrivilegeRequest; + +DescribeEncryptionDBRolePrivilegeRequest::DescribeEncryptionDBRolePrivilegeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeEncryptionDBRolePrivilege") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEncryptionDBRolePrivilegeRequest::~DescribeEncryptionDBRolePrivilegeRequest() {} + +long DescribeEncryptionDBRolePrivilegeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeEncryptionDBRolePrivilegeRequest::getRolePrivilegeNameList() const { + return rolePrivilegeNameList_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setRolePrivilegeNameList(const std::string &rolePrivilegeNameList) { + rolePrivilegeNameList_ = rolePrivilegeNameList; + setParameter(std::string("RolePrivilegeNameList"), rolePrivilegeNameList); +} + +std::string DescribeEncryptionDBRolePrivilegeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeEncryptionDBRolePrivilegeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeEncryptionDBRolePrivilegeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeEncryptionDBRolePrivilegeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeEncryptionDBRolePrivilegeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeEncryptionDBRolePrivilegeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeEncryptionDBRolePrivilegeResult.cc b/polardb/src/model/DescribeEncryptionDBRolePrivilegeResult.cc new file mode 100644 index 000000000..f72101a73 --- /dev/null +++ b/polardb/src/model/DescribeEncryptionDBRolePrivilegeResult.cc @@ -0,0 +1,85 @@ +/* + * 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; + +DescribeEncryptionDBRolePrivilegeResult::DescribeEncryptionDBRolePrivilegeResult() : + ServiceResult() +{} + +DescribeEncryptionDBRolePrivilegeResult::DescribeEncryptionDBRolePrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEncryptionDBRolePrivilegeResult::~DescribeEncryptionDBRolePrivilegeResult() +{} + +void DescribeEncryptionDBRolePrivilegeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allRolePrivilegeListNode = dataNode["RolePrivilegeList"]["RolePrivilegeListItem"]; + for (auto dataNodeRolePrivilegeListRolePrivilegeListItem : allRolePrivilegeListNode) + { + Data::RolePrivilegeListItem rolePrivilegeListItemObject; + if(!dataNodeRolePrivilegeListRolePrivilegeListItem["RolePrivilegeName"].isNull()) + rolePrivilegeListItemObject.rolePrivilegeName = dataNodeRolePrivilegeListRolePrivilegeListItem["RolePrivilegeName"].asString(); + if(!dataNodeRolePrivilegeListRolePrivilegeListItem["Negation"].isNull()) + rolePrivilegeListItemObject.negation = dataNodeRolePrivilegeListRolePrivilegeListItem["Negation"].asString(); + if(!dataNodeRolePrivilegeListRolePrivilegeListItem["Encryption"].isNull()) + rolePrivilegeListItemObject.encryption = dataNodeRolePrivilegeListRolePrivilegeListItem["Encryption"].asString(); + if(!dataNodeRolePrivilegeListRolePrivilegeListItem["NotEncryption"].isNull()) + rolePrivilegeListItemObject.notEncryption = dataNodeRolePrivilegeListRolePrivilegeListItem["NotEncryption"].asString(); + data_.rolePrivilegeList.push_back(rolePrivilegeListItemObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeEncryptionDBRolePrivilegeResult::getMessage()const +{ + return message_; +} + +std::string DescribeEncryptionDBRolePrivilegeResult::getDBClusterId()const +{ + return dBClusterId_; +} + +DescribeEncryptionDBRolePrivilegeResult::Data DescribeEncryptionDBRolePrivilegeResult::getData()const +{ + return data_; +} + +bool DescribeEncryptionDBRolePrivilegeResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/DescribeEncryptionDBSecretRequest.cc b/polardb/src/model/DescribeEncryptionDBSecretRequest.cc new file mode 100644 index 000000000..c2342eae4 --- /dev/null +++ b/polardb/src/model/DescribeEncryptionDBSecretRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::DescribeEncryptionDBSecretRequest; + +DescribeEncryptionDBSecretRequest::DescribeEncryptionDBSecretRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeEncryptionDBSecret") { + setMethod(HttpRequest::Method::Post); +} + +DescribeEncryptionDBSecretRequest::~DescribeEncryptionDBSecretRequest() {} + +std::string DescribeEncryptionDBSecretRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeEncryptionDBSecretRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/polardb/src/model/DescribeEncryptionDBSecretResult.cc b/polardb/src/model/DescribeEncryptionDBSecretResult.cc new file mode 100644 index 000000000..ab5fcd30b --- /dev/null +++ b/polardb/src/model/DescribeEncryptionDBSecretResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeEncryptionDBSecretResult::DescribeEncryptionDBSecretResult() : + ServiceResult() +{} + +DescribeEncryptionDBSecretResult::DescribeEncryptionDBSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEncryptionDBSecretResult::~DescribeEncryptionDBSecretResult() +{} + +void DescribeEncryptionDBSecretResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["EncryptionKeyStatus"].isNull()) + encryptionKeyStatus_ = value["EncryptionKeyStatus"].asString(); + if(!value["EncryptionKey"].isNull()) + encryptionKey_ = value["EncryptionKey"].asString(); + if(!value["EncryptionDBStatus"].isNull()) + encryptionDBStatus_ = value["EncryptionDBStatus"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + if(!value["EncryptionDBRegion"].isNull()) + encryptionDBRegion_ = value["EncryptionDBRegion"].asString(); + +} + +std::string DescribeEncryptionDBSecretResult::getEncryptionKeyStatus()const +{ + return encryptionKeyStatus_; +} + +std::string DescribeEncryptionDBSecretResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string DescribeEncryptionDBSecretResult::getEncryptionKey()const +{ + return encryptionKey_; +} + +std::string DescribeEncryptionDBSecretResult::getEncryptionDBStatus()const +{ + return encryptionDBStatus_; +} + +std::string DescribeEncryptionDBSecretResult::getEncryptionDBRegion()const +{ + return encryptionDBRegion_; +} + diff --git a/polardb/src/model/DescribeExtensionsRequest.cc b/polardb/src/model/DescribeExtensionsRequest.cc new file mode 100644 index 000000000..b4b497aaf --- /dev/null +++ b/polardb/src/model/DescribeExtensionsRequest.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::DescribeExtensionsRequest; + +DescribeExtensionsRequest::DescribeExtensionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeExtensions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeExtensionsRequest::~DescribeExtensionsRequest() {} + +long DescribeExtensionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeExtensionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeExtensionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeExtensionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeExtensionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeExtensionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeExtensionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeExtensionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeExtensionsRequest::getDBName() const { + return dBName_; +} + +void DescribeExtensionsRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/DescribeExtensionsResult.cc b/polardb/src/model/DescribeExtensionsResult.cc new file mode 100644 index 000000000..f86535ef7 --- /dev/null +++ b/polardb/src/model/DescribeExtensionsResult.cc @@ -0,0 +1,109 @@ +/* + * 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; + +DescribeExtensionsResult::DescribeExtensionsResult() : + ServiceResult() +{} + +DescribeExtensionsResult::DescribeExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeExtensionsResult::~DescribeExtensionsResult() +{} + +void DescribeExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUninstalledExtensionsNode = value["UninstalledExtensions"]["UninstalledExtensionsItem"]; + for (auto valueUninstalledExtensionsUninstalledExtensionsItem : allUninstalledExtensionsNode) + { + UninstalledExtensionsItem uninstalledExtensionsObject; + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Name"].isNull()) + uninstalledExtensionsObject.name = valueUninstalledExtensionsUninstalledExtensionsItem["Name"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["DefaultVersion"].isNull()) + uninstalledExtensionsObject.defaultVersion = valueUninstalledExtensionsUninstalledExtensionsItem["DefaultVersion"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["InstalledVersion"].isNull()) + uninstalledExtensionsObject.installedVersion = valueUninstalledExtensionsUninstalledExtensionsItem["InstalledVersion"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Comment"].isNull()) + uninstalledExtensionsObject.comment = valueUninstalledExtensionsUninstalledExtensionsItem["Comment"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Owner"].isNull()) + uninstalledExtensionsObject.owner = valueUninstalledExtensionsUninstalledExtensionsItem["Owner"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Priority"].isNull()) + uninstalledExtensionsObject.priority = valueUninstalledExtensionsUninstalledExtensionsItem["Priority"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Requires"].isNull()) + uninstalledExtensionsObject.requires = valueUninstalledExtensionsUninstalledExtensionsItem["Requires"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Category"].isNull()) + uninstalledExtensionsObject.category = valueUninstalledExtensionsUninstalledExtensionsItem["Category"].asString(); + if(!valueUninstalledExtensionsUninstalledExtensionsItem["Restart"].isNull()) + uninstalledExtensionsObject.restart = valueUninstalledExtensionsUninstalledExtensionsItem["Restart"].asString(); + uninstalledExtensions_.push_back(uninstalledExtensionsObject); + } + auto allInstalledExtensionsNode = value["InstalledExtensions"]["InstalledExtensionsItem"]; + for (auto valueInstalledExtensionsInstalledExtensionsItem : allInstalledExtensionsNode) + { + InstalledExtensionsItem installedExtensionsObject; + if(!valueInstalledExtensionsInstalledExtensionsItem["Name"].isNull()) + installedExtensionsObject.name = valueInstalledExtensionsInstalledExtensionsItem["Name"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["DefaultVersion"].isNull()) + installedExtensionsObject.defaultVersion = valueInstalledExtensionsInstalledExtensionsItem["DefaultVersion"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["InstalledVersion"].isNull()) + installedExtensionsObject.installedVersion = valueInstalledExtensionsInstalledExtensionsItem["InstalledVersion"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Comment"].isNull()) + installedExtensionsObject.comment = valueInstalledExtensionsInstalledExtensionsItem["Comment"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Owner"].isNull()) + installedExtensionsObject.owner = valueInstalledExtensionsInstalledExtensionsItem["Owner"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Priority"].isNull()) + installedExtensionsObject.priority = valueInstalledExtensionsInstalledExtensionsItem["Priority"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Requires"].isNull()) + installedExtensionsObject.requires = valueInstalledExtensionsInstalledExtensionsItem["Requires"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Category"].isNull()) + installedExtensionsObject.category = valueInstalledExtensionsInstalledExtensionsItem["Category"].asString(); + if(!valueInstalledExtensionsInstalledExtensionsItem["Restart"].isNull()) + installedExtensionsObject.restart = valueInstalledExtensionsInstalledExtensionsItem["Restart"].asString(); + installedExtensions_.push_back(installedExtensionsObject); + } + if(!value["Overview"].isNull()) + overview_ = value["Overview"].asString(); + +} + +std::vector DescribeExtensionsResult::getInstalledExtensions()const +{ + return installedExtensions_; +} + +std::string DescribeExtensionsResult::getOverview()const +{ + return overview_; +} + +std::vector DescribeExtensionsResult::getUninstalledExtensions()const +{ + return uninstalledExtensions_; +} + diff --git a/polardb/src/model/DescribeFirewallRulesRequest.cc b/polardb/src/model/DescribeFirewallRulesRequest.cc new file mode 100644 index 000000000..89e5b7815 --- /dev/null +++ b/polardb/src/model/DescribeFirewallRulesRequest.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::DescribeFirewallRulesRequest; + +DescribeFirewallRulesRequest::DescribeFirewallRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeFirewallRules") { + setMethod(HttpRequest::Method::Post); +} + +DescribeFirewallRulesRequest::~DescribeFirewallRulesRequest() {} + +long DescribeFirewallRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeFirewallRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeFirewallRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeFirewallRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeFirewallRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeFirewallRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeFirewallRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeFirewallRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeFirewallRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeFirewallRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeFirewallRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeFirewallRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeFirewallRulesRequest::getRuleNameList() const { + return ruleNameList_; +} + +void DescribeFirewallRulesRequest::setRuleNameList(const std::string &ruleNameList) { + ruleNameList_ = ruleNameList; + setParameter(std::string("RuleNameList"), ruleNameList); +} + diff --git a/polardb/src/model/DescribeFirewallRulesResult.cc b/polardb/src/model/DescribeFirewallRulesResult.cc new file mode 100644 index 000000000..b55037161 --- /dev/null +++ b/polardb/src/model/DescribeFirewallRulesResult.cc @@ -0,0 +1,74 @@ +/* + * 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; + +DescribeFirewallRulesResult::DescribeFirewallRulesResult() : + ServiceResult() +{} + +DescribeFirewallRulesResult::DescribeFirewallRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeFirewallRulesResult::~DescribeFirewallRulesResult() +{} + +void DescribeFirewallRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allRuleList = dataNode["RuleList"]["RuleList"]; + for (auto value : allRuleList) + data_.ruleList.push_back(value.asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeFirewallRulesResult::getMessage()const +{ + return message_; +} + +std::string DescribeFirewallRulesResult::getDBClusterId()const +{ + return dBClusterId_; +} + +DescribeFirewallRulesResult::Data DescribeFirewallRulesResult::getData()const +{ + return data_; +} + +bool DescribeFirewallRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/DescribeGlobalDataNetworkListRequest.cc b/polardb/src/model/DescribeGlobalDataNetworkListRequest.cc new file mode 100644 index 000000000..8783ad6fc --- /dev/null +++ b/polardb/src/model/DescribeGlobalDataNetworkListRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeGlobalDataNetworkListRequest; + +DescribeGlobalDataNetworkListRequest::DescribeGlobalDataNetworkListRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeGlobalDataNetworkList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGlobalDataNetworkListRequest::~DescribeGlobalDataNetworkListRequest() {} + +long DescribeGlobalDataNetworkListRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeGlobalDataNetworkListRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeGlobalDataNetworkListRequest::getNextToken() const { + return nextToken_; +} + +void DescribeGlobalDataNetworkListRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +long DescribeGlobalDataNetworkListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeGlobalDataNetworkListRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +int DescribeGlobalDataNetworkListRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeGlobalDataNetworkListRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/polardb/src/model/DescribeGlobalDataNetworkListResult.cc b/polardb/src/model/DescribeGlobalDataNetworkListResult.cc new file mode 100644 index 000000000..9b2174bfc --- /dev/null +++ b/polardb/src/model/DescribeGlobalDataNetworkListResult.cc @@ -0,0 +1,142 @@ +/* + * 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; + +DescribeGlobalDataNetworkListResult::DescribeGlobalDataNetworkListResult() : + ServiceResult() +{} + +DescribeGlobalDataNetworkListResult::DescribeGlobalDataNetworkListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGlobalDataNetworkListResult::~DescribeGlobalDataNetworkListResult() +{} + +void DescribeGlobalDataNetworkListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto itemsNode = value["Items"]; + auto allNetworksNode = itemsNode["Networks"]["Network"]; + for (auto itemsNodeNetworksNetwork : allNetworksNode) + { + Items::Network networkObject; + if(!itemsNodeNetworksNetwork["NetworkId"].isNull()) + networkObject.networkId = itemsNodeNetworksNetwork["NetworkId"].asString(); + if(!itemsNodeNetworksNetwork["NetworkDescription"].isNull()) + networkObject.networkDescription = itemsNodeNetworksNetwork["NetworkDescription"].asString(); + if(!itemsNodeNetworksNetwork["NetworkStatus"].isNull()) + networkObject.networkStatus = itemsNodeNetworksNetwork["NetworkStatus"].asString(); + if(!itemsNodeNetworksNetwork["CreateTime"].isNull()) + networkObject.createTime = itemsNodeNetworksNetwork["CreateTime"].asString(); + auto allChannelsNode = itemsNodeNetworksNetwork["Channels"]["Channel"]; + for (auto itemsNodeNetworksNetworkChannelsChannel : allChannelsNode) + { + Items::Network::Channel channelsObject; + if(!itemsNodeNetworksNetworkChannelsChannel["ChannelId"].isNull()) + channelsObject.channelId = itemsNodeNetworksNetworkChannelsChannel["ChannelId"].asString(); + if(!itemsNodeNetworksNetworkChannelsChannel["ChannelStatus"].isNull()) + channelsObject.channelStatus = itemsNodeNetworksNetworkChannelsChannel["ChannelStatus"].asString(); + if(!itemsNodeNetworksNetworkChannelsChannel["Progress"].isNull()) + channelsObject.progress = itemsNodeNetworksNetworkChannelsChannel["Progress"].asString(); + if(!itemsNodeNetworksNetworkChannelsChannel["FreezeSourceDuringSync"].isNull()) + channelsObject.freezeSourceDuringSync = itemsNodeNetworksNetworkChannelsChannel["FreezeSourceDuringSync"].asString() == "true"; + networkObject.channels.push_back(channelsObject); + } + auto networkTopologyNode = value["NetworkTopology"]; + auto allSourcesNode = networkTopologyNode["Sources"]["Source"]; + for (auto networkTopologyNodeSourcesSource : allSourcesNode) + { + Items::Network::NetworkTopology::Source sourceObject; + if(!networkTopologyNodeSourcesSource["SourceFileSystemPath"].isNull()) + sourceObject.sourceFileSystemPath = networkTopologyNodeSourcesSource["SourceFileSystemPath"].asString(); + if(!networkTopologyNodeSourcesSource["SourceType"].isNull()) + sourceObject.sourceType = networkTopologyNodeSourcesSource["SourceType"].asString(); + if(!networkTopologyNodeSourcesSource["SourceRegion"].isNull()) + sourceObject.sourceRegion = networkTopologyNodeSourcesSource["SourceRegion"].asString(); + if(!networkTopologyNodeSourcesSource["SourceId"].isNull()) + sourceObject.sourceId = networkTopologyNodeSourcesSource["SourceId"].asString(); + networkObject.networkTopology.sources.push_back(sourceObject); + } + auto allDestinationsNode = networkTopologyNode["Destinations"]["Destination"]; + for (auto networkTopologyNodeDestinationsDestination : allDestinationsNode) + { + Items::Network::NetworkTopology::Destination destinationObject; + if(!networkTopologyNodeDestinationsDestination["DestinationFileSystemPath"].isNull()) + destinationObject.destinationFileSystemPath = networkTopologyNodeDestinationsDestination["DestinationFileSystemPath"].asString(); + if(!networkTopologyNodeDestinationsDestination["DestinationRegion"].isNull()) + destinationObject.destinationRegion = networkTopologyNodeDestinationsDestination["DestinationRegion"].asString(); + if(!networkTopologyNodeDestinationsDestination["DestinationType"].isNull()) + destinationObject.destinationType = networkTopologyNodeDestinationsDestination["DestinationType"].asString(); + if(!networkTopologyNodeDestinationsDestination["DestinationId"].isNull()) + destinationObject.destinationId = networkTopologyNodeDestinationsDestination["DestinationId"].asString(); + networkObject.networkTopology.destinations.push_back(destinationObject); + } + items_.networks.push_back(networkObject); + } + if(!value["TotalRecordCount"].isNull()) + totalRecordCount_ = value["TotalRecordCount"].asString(); + if(!value["PageRecordCount"].isNull()) + pageRecordCount_ = value["PageRecordCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::string DescribeGlobalDataNetworkListResult::getTotalRecordCount()const +{ + return totalRecordCount_; +} + +std::string DescribeGlobalDataNetworkListResult::getPageRecordCount()const +{ + return pageRecordCount_; +} + +std::string DescribeGlobalDataNetworkListResult::getNextToken()const +{ + return nextToken_; +} + +std::string DescribeGlobalDataNetworkListResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeGlobalDataNetworkListResult::getMaxResults()const +{ + return maxResults_; +} + +DescribeGlobalDataNetworkListResult::Items DescribeGlobalDataNetworkListResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc b/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc index 9084f7195..8f2af4bb6 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc +++ b/polardb/src/model/DescribeGlobalDatabaseNetworkResult.cc @@ -113,6 +113,9 @@ void DescribeGlobalDatabaseNetworkResult::parse(const std::string &payload) } dBClusters_.push_back(dBClustersObject); } + auto labelsNode = value["Labels"]; + if(!labelsNode["GDNVersion"].isNull()) + labels_.gDNVersion = labelsNode["GDNVersion"].asString(); if(!value["GDNStatus"].isNull()) gDNStatus_ = value["GDNStatus"].asString(); if(!value["DBVersion"].isNull()) @@ -169,6 +172,11 @@ std::string DescribeGlobalDatabaseNetworkResult::getDBClusterId()const return dBClusterId_; } +DescribeGlobalDatabaseNetworkResult::Labels DescribeGlobalDatabaseNetworkResult::getLabels()const +{ + return labels_; +} + std::string DescribeGlobalDatabaseNetworkResult::getDBType()const { return dBType_; diff --git a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc b/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc index 1bbf764d6..6f8b7a98a 100644 --- a/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc +++ b/polardb/src/model/DescribeGlobalDatabaseNetworksResult.cc @@ -83,6 +83,9 @@ void DescribeGlobalDatabaseNetworksResult::parse(const std::string &payload) outCloudDBClustersObject.regionId = valueItemsGlobalDatabaseNetworkOutCloudDBClustersOutCloudDBCluster["RegionId"].asString(); itemsObject.outCloudDBClusters.push_back(outCloudDBClustersObject); } + auto labelsNode = value["Labels"]; + if(!labelsNode["GDNVersion"].isNull()) + itemsObject.labels.gDNVersion = labelsNode["GDNVersion"].asString(); items_.push_back(itemsObject); } if(!value["TotalRecordCount"].isNull()) diff --git a/polardb/src/model/DescribeHALogsRequest.cc b/polardb/src/model/DescribeHALogsRequest.cc new file mode 100644 index 000000000..952042e78 --- /dev/null +++ b/polardb/src/model/DescribeHALogsRequest.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::DescribeHALogsRequest; + +DescribeHALogsRequest::DescribeHALogsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeHALogs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHALogsRequest::~DescribeHALogsRequest() {} + +std::string DescribeHALogsRequest::getDBNodeId() const { + return dBNodeId_; +} + +void DescribeHALogsRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string DescribeHALogsRequest::getSimulateListId() const { + return simulateListId_; +} + +void DescribeHALogsRequest::setSimulateListId(const std::string &simulateListId) { + simulateListId_ = simulateListId; + setParameter(std::string("SimulateListId"), simulateListId); +} + +std::string DescribeHALogsRequest::getStartTime() const { + return startTime_; +} + +void DescribeHALogsRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +int DescribeHALogsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeHALogsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeHALogsRequest::getLogType() const { + return logType_; +} + +void DescribeHALogsRequest::setLogType(const std::string &logType) { + logType_ = logType; + setParameter(std::string("LogType"), logType); +} + +int DescribeHALogsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeHALogsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeHALogsRequest::getSwitchId() const { + return switchId_; +} + +void DescribeHALogsRequest::setSwitchId(const std::string &switchId) { + switchId_ = switchId; + setParameter(std::string("SwitchId"), switchId); +} + +std::string DescribeHALogsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeHALogsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeHALogsRequest::getEndTime() const { + return endTime_; +} + +void DescribeHALogsRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeHALogsRequest::getDescribeSimulateSwitchMode() const { + return describeSimulateSwitchMode_; +} + +void DescribeHALogsRequest::setDescribeSimulateSwitchMode(const std::string &describeSimulateSwitchMode) { + describeSimulateSwitchMode_ = describeSimulateSwitchMode; + setParameter(std::string("DescribeSimulateSwitchMode"), describeSimulateSwitchMode); +} + +std::string DescribeHALogsRequest::getSimulateStatusList() const { + return simulateStatusList_; +} + +void DescribeHALogsRequest::setSimulateStatusList(const std::string &simulateStatusList) { + simulateStatusList_ = simulateStatusList; + setParameter(std::string("SimulateStatusList"), simulateStatusList); +} + +std::string DescribeHALogsRequest::getSimulateModeList() const { + return simulateModeList_; +} + +void DescribeHALogsRequest::setSimulateModeList(const std::string &simulateModeList) { + simulateModeList_ = simulateModeList; + setParameter(std::string("SimulateModeList"), simulateModeList); +} + diff --git a/polardb/src/model/DescribeHALogsResult.cc b/polardb/src/model/DescribeHALogsResult.cc new file mode 100644 index 000000000..e43db9f96 --- /dev/null +++ b/polardb/src/model/DescribeHALogsResult.cc @@ -0,0 +1,277 @@ +/* + * 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; + +DescribeHALogsResult::DescribeHALogsResult() : + ServiceResult() +{} + +DescribeHALogsResult::DescribeHALogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHALogsResult::~DescribeHALogsResult() +{} + +void DescribeHALogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHaLogItemsNode = value["HaLogItems"]["HaSwitchLogItem"]; + for (auto valueHaLogItemsHaSwitchLogItem : allHaLogItemsNode) + { + HaSwitchLogItem haLogItemsObject; + if(!valueHaLogItemsHaSwitchLogItem["SwitchId"].isNull()) + haLogItemsObject.switchId = valueHaLogItemsHaSwitchLogItem["SwitchId"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["FromDBType"].isNull()) + haLogItemsObject.fromDBType = valueHaLogItemsHaSwitchLogItem["FromDBType"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchCauseCode"].isNull()) + haLogItemsObject.switchCauseCode = valueHaLogItemsHaSwitchLogItem["SwitchCauseCode"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchCauseDetail"].isNull()) + haLogItemsObject.switchCauseDetail = valueHaLogItemsHaSwitchLogItem["SwitchCauseDetail"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchStartTime"].isNull()) + haLogItemsObject.switchStartTime = valueHaLogItemsHaSwitchLogItem["SwitchStartTime"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["SwitchFinishTime"].isNull()) + haLogItemsObject.switchFinishTime = valueHaLogItemsHaSwitchLogItem["SwitchFinishTime"].asString(); + if(!valueHaLogItemsHaSwitchLogItem["TotalSessions"].isNull()) + haLogItemsObject.totalSessions = std::stol(valueHaLogItemsHaSwitchLogItem["TotalSessions"].asString()); + if(!valueHaLogItemsHaSwitchLogItem["AffectedSessions"].isNull()) + haLogItemsObject.affectedSessions = std::stol(valueHaLogItemsHaSwitchLogItem["AffectedSessions"].asString()); + if(!valueHaLogItemsHaSwitchLogItem["SwitchType"].isNull()) + haLogItemsObject.switchType = std::stol(valueHaLogItemsHaSwitchLogItem["SwitchType"].asString()); + haLogItems_.push_back(haLogItemsObject); + } + auto allSwitchListItemsNode = value["SwitchListItems"]["SwitchListItem"]; + for (auto valueSwitchListItemsSwitchListItem : allSwitchListItemsNode) + { + SwitchListItem switchListItemsObject; + if(!valueSwitchListItemsSwitchListItem["SimulateListId"].isNull()) + switchListItemsObject.simulateListId = valueSwitchListItemsSwitchListItem["SimulateListId"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateMode"].isNull()) + switchListItemsObject.simulateMode = valueSwitchListItemsSwitchListItem["SimulateMode"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateStatus"].isNull()) + switchListItemsObject.simulateStatus = valueSwitchListItemsSwitchListItem["SimulateStatus"].asString(); + if(!valueSwitchListItemsSwitchListItem["StartTime"].isNull()) + switchListItemsObject.startTime = valueSwitchListItemsSwitchListItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EndTime"].isNull()) + switchListItemsObject.endTime = valueSwitchListItemsSwitchListItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EventStartTime"].isNull()) + switchListItemsObject.eventStartTime = valueSwitchListItemsSwitchListItem["EventStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["EventFinishTime"].isNull()) + switchListItemsObject.eventFinishTime = valueSwitchListItemsSwitchListItem["EventFinishTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["SimulateTaskId"].isNull()) + switchListItemsObject.simulateTaskId = valueSwitchListItemsSwitchListItem["SimulateTaskId"].asString(); + if(!valueSwitchListItemsSwitchListItem["PreferredSimulateStartTime"].isNull()) + switchListItemsObject.preferredSimulateStartTime = valueSwitchListItemsSwitchListItem["PreferredSimulateStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["PlannedEscapeMode"].isNull()) + switchListItemsObject.plannedEscapeMode = valueSwitchListItemsSwitchListItem["PlannedEscapeMode"].asString(); + if(!valueSwitchListItemsSwitchListItem["PlannedEscapeTime"].isNull()) + switchListItemsObject.plannedEscapeTime = valueSwitchListItemsSwitchListItem["PlannedEscapeTime"].asString(); + if(!valueSwitchListItemsSwitchListItem["FaultInjectionType"].isNull()) + switchListItemsObject.faultInjectionType = valueSwitchListItemsSwitchListItem["FaultInjectionType"].asString(); + auto allSwitchLogItems1Node = valueSwitchListItemsSwitchListItem["SwitchLogItems"]["SwitchLogItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem : allSwitchLogItems1Node) + { + SwitchListItem::SwitchLogItem switchLogItems1Object; + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateListId"].isNull()) + switchLogItems1Object.simulateListId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateListId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateLogId"].isNull()) + switchLogItems1Object.simulateLogId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateLogId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DBInstanceId"].isNull()) + switchLogItems1Object.dBInstanceId = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DBInstanceId"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcIpPort"].isNull()) + switchLogItems1Object.srcIpPort = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcIpPort"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcDbType"].isNull()) + switchLogItems1Object.srcDbType = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SrcDbType"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstIpPort"].isNull()) + switchLogItems1Object.dstIpPort = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstIpPort"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstDbType"].isNull()) + switchLogItems1Object.dstDbType = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["DstDbType"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateStatus"].isNull()) + switchLogItems1Object.simulateStatus = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SimulateStatus"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventStartTime"].isNull()) + switchLogItems1Object.eventStartTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventStartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventFinishTime"].isNull()) + switchLogItems1Object.eventFinishTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["EventFinishTime"].asString(); + auto allSwitchStepItems2Node = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItem["SwitchStepItems"]["SwitchDetailItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem : allSwitchStepItems2Node) + { + SwitchListItem::SwitchLogItem::SwitchDetailItem switchStepItems2Object; + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StepName"].isNull()) + switchStepItems2Object.stepName = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StepName"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StartTime"].isNull()) + switchStepItems2Object.startTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["SimulatePhase"].isNull()) + switchStepItems2Object.simulatePhase = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["SimulatePhase"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["EndTime"].isNull()) + switchStepItems2Object.endTime = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["TimeCost"].isNull()) + switchStepItems2Object.timeCost = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["TimeCost"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["IsSuccess"].isNull()) + switchStepItems2Object.isSuccess = valueSwitchListItemsSwitchListItemSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchDetailItem["IsSuccess"].asString(); + switchLogItems1Object.switchStepItems2.push_back(switchStepItems2Object); + } + switchListItemsObject.switchLogItems1.push_back(switchLogItems1Object); + } + auto allSwitchStepItemsNode = valueSwitchListItemsSwitchListItem["SwitchStepItems"]["SwitchStepItem"]; + for (auto valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem : allSwitchStepItemsNode) + { + SwitchListItem::SwitchStepItem switchStepItemsObject; + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["SimulatePhase"].isNull()) + switchStepItemsObject.simulatePhase = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["SimulatePhase"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StepName"].isNull()) + switchStepItemsObject.stepName = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StepName"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StartTime"].isNull()) + switchStepItemsObject.startTime = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["StartTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["EndTime"].isNull()) + switchStepItemsObject.endTime = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["EndTime"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["TimeCost"].isNull()) + switchStepItemsObject.timeCost = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["TimeCost"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["IsSuccess"].isNull()) + switchStepItemsObject.isSuccess = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["IsSuccess"].asString(); + if(!valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["DBNodeId"].isNull()) + switchStepItemsObject.dBNodeId = valueSwitchListItemsSwitchListItemSwitchStepItemsSwitchStepItem["DBNodeId"].asString(); + switchListItemsObject.switchStepItems.push_back(switchStepItemsObject); + } + auto allDBNodeCrashList = value["DBNodeCrashList"]["dbNodeCrashList"]; + for (auto value : allDBNodeCrashList) + switchListItemsObject.dBNodeCrashList.push_back(value.asString()); + switchListItems_.push_back(switchListItemsObject); + } + auto allSwitchLogItemsNode = value["SwitchLogItems"]["SwitchLogItem"]; + for (auto valueSwitchLogItemsSwitchLogItem : allSwitchLogItemsNode) + { + SwitchLogItem3 switchLogItemsObject; + if(!valueSwitchLogItemsSwitchLogItem["SimulateListId"].isNull()) + switchLogItemsObject.simulateListId = valueSwitchLogItemsSwitchLogItem["SimulateListId"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["Simulatecode"].isNull()) + switchLogItemsObject.simulatecode = valueSwitchLogItemsSwitchLogItem["Simulatecode"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DBInstanceId"].isNull()) + switchLogItemsObject.dBInstanceId = valueSwitchLogItemsSwitchLogItem["DBInstanceId"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SrcIpPort"].isNull()) + switchLogItemsObject.srcIpPort = valueSwitchLogItemsSwitchLogItem["SrcIpPort"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SrcDbType"].isNull()) + switchLogItemsObject.srcDbType = valueSwitchLogItemsSwitchLogItem["SrcDbType"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DstIpPort"].isNull()) + switchLogItemsObject.dstIpPort = valueSwitchLogItemsSwitchLogItem["DstIpPort"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["DstDbType"].isNull()) + switchLogItemsObject.dstDbType = valueSwitchLogItemsSwitchLogItem["DstDbType"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["SimulateStatus"].isNull()) + switchLogItemsObject.simulateStatus = valueSwitchLogItemsSwitchLogItem["SimulateStatus"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["EventStartTime"].isNull()) + switchLogItemsObject.eventStartTime = valueSwitchLogItemsSwitchLogItem["EventStartTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItem["EventFinishTime"].isNull()) + switchLogItemsObject.eventFinishTime = valueSwitchLogItemsSwitchLogItem["EventFinishTime"].asString(); + auto allSwitchStepItems4Node = valueSwitchLogItemsSwitchLogItem["SwitchStepItems"]["SwitchStepItem"]; + for (auto valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem : allSwitchStepItems4Node) + { + SwitchLogItem3::SwitchStepItem5 switchStepItems4Object; + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepName"].isNull()) + switchStepItems4Object.stepName = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepName"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepMsg"].isNull()) + switchStepItems4Object.stepMsg = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StepMsg"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StartTime"].isNull()) + switchStepItems4Object.startTime = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["StartTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["EndTime"].isNull()) + switchStepItems4Object.endTime = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["EndTime"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["TimeCost"].isNull()) + switchStepItems4Object.timeCost = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["TimeCost"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["IsSuccess"].isNull()) + switchStepItems4Object.isSuccess = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["IsSuccess"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["SimulatePhase"].isNull()) + switchStepItems4Object.simulatePhase = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["SimulatePhase"].asString(); + if(!valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["DBNodeId"].isNull()) + switchStepItems4Object.dBNodeId = valueSwitchLogItemsSwitchLogItemSwitchStepItemsSwitchStepItem["DBNodeId"].asString(); + switchLogItemsObject.switchStepItems4.push_back(switchStepItems4Object); + } + switchLogItems_.push_back(switchLogItemsObject); + } + if(!value["TotalRecords"].isNull()) + totalRecords_ = std::stoi(value["TotalRecords"].asString()); + if(!value["ItemsNumbers"].isNull()) + itemsNumbers_ = std::stoi(value["ItemsNumbers"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["DBInstanceName"].isNull()) + dBInstanceName_ = value["DBInstanceName"].asString(); + if(!value["DBInstanceType"].isNull()) + dBInstanceType_ = value["DBInstanceType"].asString(); + if(!value["HaStatus"].isNull()) + haStatus_ = std::stoi(value["HaStatus"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +int DescribeHALogsResult::getItemsNumbers()const +{ + return itemsNumbers_; +} + +std::vector DescribeHALogsResult::getHaLogItems()const +{ + return haLogItems_; +} + +int DescribeHALogsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeHALogsResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeHALogsResult::getHaStatus()const +{ + return haStatus_; +} + +int DescribeHALogsResult::getTotalRecords()const +{ + return totalRecords_; +} + +std::string DescribeHALogsResult::getDBInstanceType()const +{ + return dBInstanceType_; +} + +std::vector DescribeHALogsResult::getSwitchListItems()const +{ + return switchListItems_; +} + +std::vector DescribeHALogsResult::getSwitchLogItems()const +{ + return switchLogItems_; +} + +std::string DescribeHALogsResult::getDBInstanceName()const +{ + return dBInstanceName_; +} + diff --git a/polardb/src/model/DescribeHistoryTasksRequest.cc b/polardb/src/model/DescribeHistoryTasksRequest.cc new file mode 100644 index 000000000..471273173 --- /dev/null +++ b/polardb/src/model/DescribeHistoryTasksRequest.cc @@ -0,0 +1,189 @@ +/* + * 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::DescribeHistoryTasksRequest; + +DescribeHistoryTasksRequest::DescribeHistoryTasksRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeHistoryTasks") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHistoryTasksRequest::~DescribeHistoryTasksRequest() {} + +long DescribeHistoryTasksRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeHistoryTasksRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeHistoryTasksRequest::getToStartTime() const { + return toStartTime_; +} + +void DescribeHistoryTasksRequest::setToStartTime(const std::string &toStartTime) { + toStartTime_ = toStartTime; + setParameter(std::string("ToStartTime"), toStartTime); +} + +int DescribeHistoryTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeHistoryTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeHistoryTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeHistoryTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeHistoryTasksRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeHistoryTasksRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeHistoryTasksRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeHistoryTasksRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeHistoryTasksRequest::getRegionId() const { + return regionId_; +} + +void DescribeHistoryTasksRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeHistoryTasksRequest::getPageSize() const { + return pageSize_; +} + +void DescribeHistoryTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeHistoryTasksRequest::getInstanceType() const { + return instanceType_; +} + +void DescribeHistoryTasksRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string DescribeHistoryTasksRequest::getTaskId() const { + return taskId_; +} + +void DescribeHistoryTasksRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +int DescribeHistoryTasksRequest::getToExecTime() const { + return toExecTime_; +} + +void DescribeHistoryTasksRequest::setToExecTime(int toExecTime) { + toExecTime_ = toExecTime; + setParameter(std::string("ToExecTime"), std::to_string(toExecTime)); +} + +std::string DescribeHistoryTasksRequest::getTaskType() const { + return taskType_; +} + +void DescribeHistoryTasksRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +long DescribeHistoryTasksRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeHistoryTasksRequest::setResourceOwnerAccount(long resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), std::to_string(resourceOwnerAccount)); +} + +std::string DescribeHistoryTasksRequest::getFromStartTime() const { + return fromStartTime_; +} + +void DescribeHistoryTasksRequest::setFromStartTime(const std::string &fromStartTime) { + fromStartTime_ = fromStartTime; + setParameter(std::string("FromStartTime"), fromStartTime); +} + +int DescribeHistoryTasksRequest::getFromExecTime() const { + return fromExecTime_; +} + +void DescribeHistoryTasksRequest::setFromExecTime(int fromExecTime) { + fromExecTime_ = fromExecTime; + setParameter(std::string("FromExecTime"), std::to_string(fromExecTime)); +} + +long DescribeHistoryTasksRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeHistoryTasksRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeHistoryTasksRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeHistoryTasksRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeHistoryTasksRequest::getStatus() const { + return status_; +} + +void DescribeHistoryTasksRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/polardb/src/model/DescribeHistoryTasksResult.cc b/polardb/src/model/DescribeHistoryTasksResult.cc new file mode 100644 index 000000000..4a392153d --- /dev/null +++ b/polardb/src/model/DescribeHistoryTasksResult.cc @@ -0,0 +1,116 @@ +/* + * 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; + +DescribeHistoryTasksResult::DescribeHistoryTasksResult() : + ServiceResult() +{} + +DescribeHistoryTasksResult::DescribeHistoryTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHistoryTasksResult::~DescribeHistoryTasksResult() +{} + +void DescribeHistoryTasksResult::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 = valueItemsItemsItem["Status"].asString(); + if(!valueItemsItemsItem["TaskId"].isNull()) + itemsObject.taskId = valueItemsItemsItem["TaskId"].asString(); + if(!valueItemsItemsItem["CurrentStepName"].isNull()) + itemsObject.currentStepName = valueItemsItemsItem["CurrentStepName"].asString(); + if(!valueItemsItemsItem["StartTime"].isNull()) + itemsObject.startTime = valueItemsItemsItem["StartTime"].asString(); + if(!valueItemsItemsItem["EndTime"].isNull()) + itemsObject.endTime = valueItemsItemsItem["EndTime"].asString(); + if(!valueItemsItemsItem["TaskType"].isNull()) + itemsObject.taskType = valueItemsItemsItem["TaskType"].asString(); + if(!valueItemsItemsItem["RemainTime"].isNull()) + itemsObject.remainTime = std::stoi(valueItemsItemsItem["RemainTime"].asString()); + if(!valueItemsItemsItem["Progress"].isNull()) + itemsObject.progress = std::stof(valueItemsItemsItem["Progress"].asString()); + if(!valueItemsItemsItem["RegionId"].isNull()) + itemsObject.regionId = valueItemsItemsItem["RegionId"].asString(); + if(!valueItemsItemsItem["InstanceType"].isNull()) + itemsObject.instanceType = valueItemsItemsItem["InstanceType"].asString(); + if(!valueItemsItemsItem["InstanceId"].isNull()) + itemsObject.instanceId = valueItemsItemsItem["InstanceId"].asString(); + if(!valueItemsItemsItem["InstanceName"].isNull()) + itemsObject.instanceName = valueItemsItemsItem["InstanceName"].asString(); + if(!valueItemsItemsItem["DbType"].isNull()) + itemsObject.dbType = valueItemsItemsItem["DbType"].asString(); + if(!valueItemsItemsItem["Product"].isNull()) + itemsObject.product = valueItemsItemsItem["Product"].asString(); + if(!valueItemsItemsItem["TaskDetail"].isNull()) + itemsObject.taskDetail = valueItemsItemsItem["TaskDetail"].asString(); + if(!valueItemsItemsItem["ReasonCode"].isNull()) + itemsObject.reasonCode = valueItemsItemsItem["ReasonCode"].asString(); + if(!valueItemsItemsItem["ActionInfo"].isNull()) + itemsObject.actionInfo = valueItemsItemsItem["ActionInfo"].asString(); + if(!valueItemsItemsItem["Uid"].isNull()) + itemsObject.uid = valueItemsItemsItem["Uid"].asString(); + if(!valueItemsItemsItem["CallerSource"].isNull()) + itemsObject.callerSource = valueItemsItemsItem["CallerSource"].asString(); + if(!valueItemsItemsItem["CallerUid"].isNull()) + itemsObject.callerUid = valueItemsItemsItem["CallerUid"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + +} + +std::string DescribeHistoryTasksResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeHistoryTasksResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeHistoryTasksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeHistoryTasksResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeHistoryTasksStatRequest.cc b/polardb/src/model/DescribeHistoryTasksStatRequest.cc new file mode 100644 index 000000000..06982db0e --- /dev/null +++ b/polardb/src/model/DescribeHistoryTasksStatRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeHistoryTasksStatRequest; + +DescribeHistoryTasksStatRequest::DescribeHistoryTasksStatRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeHistoryTasksStat") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHistoryTasksStatRequest::~DescribeHistoryTasksStatRequest() {} + +long DescribeHistoryTasksStatRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeHistoryTasksStatRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeHistoryTasksStatRequest::getToStartTime() const { + return toStartTime_; +} + +void DescribeHistoryTasksStatRequest::setToStartTime(const std::string &toStartTime) { + toStartTime_ = toStartTime; + setParameter(std::string("ToStartTime"), toStartTime); +} + +std::string DescribeHistoryTasksStatRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeHistoryTasksStatRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeHistoryTasksStatRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeHistoryTasksStatRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeHistoryTasksStatRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeHistoryTasksStatRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeHistoryTasksStatRequest::getRegionId() const { + return regionId_; +} + +void DescribeHistoryTasksStatRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeHistoryTasksStatRequest::getTaskId() const { + return taskId_; +} + +void DescribeHistoryTasksStatRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +int DescribeHistoryTasksStatRequest::getToExecTime() const { + return toExecTime_; +} + +void DescribeHistoryTasksStatRequest::setToExecTime(int toExecTime) { + toExecTime_ = toExecTime; + setParameter(std::string("ToExecTime"), std::to_string(toExecTime)); +} + +std::string DescribeHistoryTasksStatRequest::getTaskType() const { + return taskType_; +} + +void DescribeHistoryTasksStatRequest::setTaskType(const std::string &taskType) { + taskType_ = taskType; + setParameter(std::string("TaskType"), taskType); +} + +long DescribeHistoryTasksStatRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeHistoryTasksStatRequest::setResourceOwnerAccount(long resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), std::to_string(resourceOwnerAccount)); +} + +std::string DescribeHistoryTasksStatRequest::getFromStartTime() const { + return fromStartTime_; +} + +void DescribeHistoryTasksStatRequest::setFromStartTime(const std::string &fromStartTime) { + fromStartTime_ = fromStartTime; + setParameter(std::string("FromStartTime"), fromStartTime); +} + +int DescribeHistoryTasksStatRequest::getFromExecTime() const { + return fromExecTime_; +} + +void DescribeHistoryTasksStatRequest::setFromExecTime(int fromExecTime) { + fromExecTime_ = fromExecTime; + setParameter(std::string("FromExecTime"), std::to_string(fromExecTime)); +} + +long DescribeHistoryTasksStatRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeHistoryTasksStatRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeHistoryTasksStatRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeHistoryTasksStatRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string DescribeHistoryTasksStatRequest::getStatus() const { + return status_; +} + +void DescribeHistoryTasksStatRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/polardb/src/model/DescribeHistoryTasksStatResult.cc b/polardb/src/model/DescribeHistoryTasksStatResult.cc new file mode 100644 index 000000000..f070c35e0 --- /dev/null +++ b/polardb/src/model/DescribeHistoryTasksStatResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeHistoryTasksStatResult::DescribeHistoryTasksStatResult() : + ServiceResult() +{} + +DescribeHistoryTasksStatResult::DescribeHistoryTasksStatResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHistoryTasksStatResult::~DescribeHistoryTasksStatResult() +{} + +void DescribeHistoryTasksStatResult::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 = valueItemsItemsItem["Status"].asString(); + if(!valueItemsItemsItem["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(valueItemsItemsItem["TotalCount"].asString()); + items_.push_back(itemsObject); + } + +} + +std::vector DescribeHistoryTasksStatResult::getItems()const +{ + return items_; +} + diff --git a/polardb/src/model/DescribeLocalAvailableRecoveryTimeRequest.cc b/polardb/src/model/DescribeLocalAvailableRecoveryTimeRequest.cc new file mode 100644 index 000000000..0f5a9b266 --- /dev/null +++ b/polardb/src/model/DescribeLocalAvailableRecoveryTimeRequest.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::DescribeLocalAvailableRecoveryTimeRequest; + +DescribeLocalAvailableRecoveryTimeRequest::DescribeLocalAvailableRecoveryTimeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeLocalAvailableRecoveryTime") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLocalAvailableRecoveryTimeRequest::~DescribeLocalAvailableRecoveryTimeRequest() {} + +long DescribeLocalAvailableRecoveryTimeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeLocalAvailableRecoveryTimeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeLocalAvailableRecoveryTimeRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeLocalAvailableRecoveryTimeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLocalAvailableRecoveryTimeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeLocalAvailableRecoveryTimeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLocalAvailableRecoveryTimeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLocalAvailableRecoveryTimeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeLocalAvailableRecoveryTimeResult.cc b/polardb/src/model/DescribeLocalAvailableRecoveryTimeResult.cc new file mode 100644 index 000000000..cb8e68444 --- /dev/null +++ b/polardb/src/model/DescribeLocalAvailableRecoveryTimeResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeLocalAvailableRecoveryTimeResult::DescribeLocalAvailableRecoveryTimeResult() : + ServiceResult() +{} + +DescribeLocalAvailableRecoveryTimeResult::DescribeLocalAvailableRecoveryTimeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLocalAvailableRecoveryTimeResult::~DescribeLocalAvailableRecoveryTimeResult() +{} + +void DescribeLocalAvailableRecoveryTimeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["RecoveryEndTime"].isNull()) + recoveryEndTime_ = value["RecoveryEndTime"].asString(); + if(!value["RecoveryBeginTime"].isNull()) + recoveryBeginTime_ = value["RecoveryBeginTime"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeLocalAvailableRecoveryTimeResult::getRecoveryEndTime()const +{ + return recoveryEndTime_; +} + +std::string DescribeLocalAvailableRecoveryTimeResult::getRecoveryBeginTime()const +{ + return recoveryBeginTime_; +} + +std::string DescribeLocalAvailableRecoveryTimeResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/DescribeLogBackupPolicyResult.cc b/polardb/src/model/DescribeLogBackupPolicyResult.cc index 6b8d953d8..32d360f67 100644 --- a/polardb/src/model/DescribeLogBackupPolicyResult.cc +++ b/polardb/src/model/DescribeLogBackupPolicyResult.cc @@ -39,6 +39,28 @@ void DescribeLogBackupPolicyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allAdvancedLogPoliciesNode = value["AdvancedLogPolicies"]["AdvancedLogPolicy"]; + for (auto valueAdvancedLogPoliciesAdvancedLogPolicy : allAdvancedLogPoliciesNode) + { + AdvancedLogPolicy advancedLogPoliciesObject; + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["LogRetentionType"].isNull()) + advancedLogPoliciesObject.logRetentionType = valueAdvancedLogPoliciesAdvancedLogPolicy["LogRetentionType"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["DestType"].isNull()) + advancedLogPoliciesObject.destType = valueAdvancedLogPoliciesAdvancedLogPolicy["DestType"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["SrcRegion"].isNull()) + advancedLogPoliciesObject.srcRegion = valueAdvancedLogPoliciesAdvancedLogPolicy["SrcRegion"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["EnableLogBackup"].isNull()) + advancedLogPoliciesObject.enableLogBackup = std::stoi(valueAdvancedLogPoliciesAdvancedLogPolicy["EnableLogBackup"].asString()); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["SrcType"].isNull()) + advancedLogPoliciesObject.srcType = valueAdvancedLogPoliciesAdvancedLogPolicy["SrcType"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["PolicyId"].isNull()) + advancedLogPoliciesObject.policyId = valueAdvancedLogPoliciesAdvancedLogPolicy["PolicyId"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["LogRetentionValue"].isNull()) + advancedLogPoliciesObject.logRetentionValue = valueAdvancedLogPoliciesAdvancedLogPolicy["LogRetentionValue"].asString(); + if(!valueAdvancedLogPoliciesAdvancedLogPolicy["DestRegion"].isNull()) + advancedLogPoliciesObject.destRegion = valueAdvancedLogPoliciesAdvancedLogPolicy["DestRegion"].asString(); + advancedLogPolicies_.push_back(advancedLogPoliciesObject); + } if(!value["LogBackupRetentionPeriod"].isNull()) logBackupRetentionPeriod_ = std::stoi(value["LogBackupRetentionPeriod"].asString()); if(!value["LogBackupAnotherRegionRetentionPeriod"].isNull()) @@ -70,3 +92,8 @@ int DescribeLogBackupPolicyResult::getEnableBackupLog()const return enableBackupLog_; } +std::vector DescribeLogBackupPolicyResult::getAdvancedLogPolicies()const +{ + return advancedLogPolicies_; +} + diff --git a/polardb/src/model/DescribeMaskingRulesRequest.cc b/polardb/src/model/DescribeMaskingRulesRequest.cc index 25975daf0..c05047936 100644 --- a/polardb/src/model/DescribeMaskingRulesRequest.cc +++ b/polardb/src/model/DescribeMaskingRulesRequest.cc @@ -25,6 +25,15 @@ DescribeMaskingRulesRequest::DescribeMaskingRulesRequest() DescribeMaskingRulesRequest::~DescribeMaskingRulesRequest() {} +std::string DescribeMaskingRulesRequest::getInterfaceVersion() const { + return interfaceVersion_; +} + +void DescribeMaskingRulesRequest::setInterfaceVersion(const std::string &interfaceVersion) { + interfaceVersion_ = interfaceVersion; + setParameter(std::string("InterfaceVersion"), interfaceVersion); +} + std::string DescribeMaskingRulesRequest::getDBClusterId() const { return dBClusterId_; } diff --git a/polardb/src/model/DescribeModifyParameterLogRequest.cc b/polardb/src/model/DescribeModifyParameterLogRequest.cc new file mode 100644 index 000000000..ef3a161a1 --- /dev/null +++ b/polardb/src/model/DescribeModifyParameterLogRequest.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::DescribeModifyParameterLogRequest; + +DescribeModifyParameterLogRequest::DescribeModifyParameterLogRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeModifyParameterLog") { + setMethod(HttpRequest::Method::Post); +} + +DescribeModifyParameterLogRequest::~DescribeModifyParameterLogRequest() {} + +long DescribeModifyParameterLogRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeModifyParameterLogRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeModifyParameterLogRequest::getStartTime() const { + return startTime_; +} + +void DescribeModifyParameterLogRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeModifyParameterLogRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeModifyParameterLogRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeModifyParameterLogRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeModifyParameterLogRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeModifyParameterLogRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeModifyParameterLogRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeModifyParameterLogRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeModifyParameterLogRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeModifyParameterLogRequest::getEndTime() const { + return endTime_; +} + +void DescribeModifyParameterLogRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +long DescribeModifyParameterLogRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeModifyParameterLogRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeModifyParameterLogResult.cc b/polardb/src/model/DescribeModifyParameterLogResult.cc new file mode 100644 index 000000000..a9c93f528 --- /dev/null +++ b/polardb/src/model/DescribeModifyParameterLogResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult() : + ServiceResult() +{} + +DescribeModifyParameterLogResult::DescribeModifyParameterLogResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeModifyParameterLogResult::~DescribeModifyParameterLogResult() +{} + +void DescribeModifyParameterLogResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ParameterChangeLog"]; + for (auto valueItemsParameterChangeLog : allItemsNode) + { + ParameterChangeLog itemsObject; + if(!valueItemsParameterChangeLog["Status"].isNull()) + itemsObject.status = valueItemsParameterChangeLog["Status"].asString(); + if(!valueItemsParameterChangeLog["OldParameterValue"].isNull()) + itemsObject.oldParameterValue = valueItemsParameterChangeLog["OldParameterValue"].asString(); + if(!valueItemsParameterChangeLog["ParameterName"].isNull()) + itemsObject.parameterName = valueItemsParameterChangeLog["ParameterName"].asString(); + if(!valueItemsParameterChangeLog["NewParameterValue"].isNull()) + itemsObject.newParameterValue = valueItemsParameterChangeLog["NewParameterValue"].asString(); + if(!valueItemsParameterChangeLog["ModifyTime"].isNull()) + itemsObject.modifyTime = valueItemsParameterChangeLog["ModifyTime"].asString(); + items_.push_back(itemsObject); + } + if(!value["Engine"].isNull()) + engine_ = value["Engine"].asString(); + if(!value["EngineVersion"].isNull()) + engineVersion_ = value["EngineVersion"].asString(); + +} + +std::string DescribeModifyParameterLogResult::getEngineVersion()const +{ + return engineVersion_; +} + +std::vector DescribeModifyParameterLogResult::getItems()const +{ + return items_; +} + +std::string DescribeModifyParameterLogResult::getEngine()const +{ + return engine_; +} + diff --git a/polardb/src/model/DescribeNetworkChannelRequest.cc b/polardb/src/model/DescribeNetworkChannelRequest.cc new file mode 100644 index 000000000..2cf78c452 --- /dev/null +++ b/polardb/src/model/DescribeNetworkChannelRequest.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::DescribeNetworkChannelRequest; + +DescribeNetworkChannelRequest::DescribeNetworkChannelRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeNetworkChannel") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNetworkChannelRequest::~DescribeNetworkChannelRequest() {} + +long DescribeNetworkChannelRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeNetworkChannelRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeNetworkChannelRequest::getClientToken() const { + return clientToken_; +} + +void DescribeNetworkChannelRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string DescribeNetworkChannelRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeNetworkChannelRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeNetworkChannelRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeNetworkChannelRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeNetworkChannelRequest::getRegionId() const { + return regionId_; +} + +void DescribeNetworkChannelRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeNetworkChannelRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeNetworkChannelRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeNetworkChannelRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeNetworkChannelRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeNetworkChannelRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeNetworkChannelRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeNetworkChannelRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeNetworkChannelRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeNetworkChannelRequest::getChannelName() const { + return channelName_; +} + +void DescribeNetworkChannelRequest::setChannelName(const std::string &channelName) { + channelName_ = channelName; + setParameter(std::string("ChannelName"), channelName); +} + +std::string DescribeNetworkChannelRequest::getVpcId() const { + return vpcId_; +} + +void DescribeNetworkChannelRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/DescribeNetworkChannelResult.cc b/polardb/src/model/DescribeNetworkChannelResult.cc new file mode 100644 index 000000000..c966ad03b --- /dev/null +++ b/polardb/src/model/DescribeNetworkChannelResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeNetworkChannelResult::DescribeNetworkChannelResult() : + ServiceResult() +{} + +DescribeNetworkChannelResult::DescribeNetworkChannelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNetworkChannelResult::~DescribeNetworkChannelResult() +{} + +void DescribeNetworkChannelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allChannelInfosNode = value["ChannelInfos"]["ChannelInfosItem"]; + for (auto valueChannelInfosChannelInfosItem : allChannelInfosNode) + { + ChannelInfosItem channelInfosObject; + if(!valueChannelInfosChannelInfosItem["ChannelName"].isNull()) + channelInfosObject.channelName = valueChannelInfosChannelInfosItem["ChannelName"].asString(); + if(!valueChannelInfosChannelInfosItem["DBClusterId"].isNull()) + channelInfosObject.dBClusterId = valueChannelInfosChannelInfosItem["DBClusterId"].asString(); + if(!valueChannelInfosChannelInfosItem["Notes"].isNull()) + channelInfosObject.notes = valueChannelInfosChannelInfosItem["Notes"].asString(); + if(!valueChannelInfosChannelInfosItem["RegionId"].isNull()) + channelInfosObject.regionId = valueChannelInfosChannelInfosItem["RegionId"].asString(); + if(!valueChannelInfosChannelInfosItem["TargetDBClusterId"].isNull()) + channelInfosObject.targetDBClusterId = valueChannelInfosChannelInfosItem["TargetDBClusterId"].asString(); + if(!valueChannelInfosChannelInfosItem["TargetIp"].isNull()) + channelInfosObject.targetIp = valueChannelInfosChannelInfosItem["TargetIp"].asString(); + if(!valueChannelInfosChannelInfosItem["TargetPort"].isNull()) + channelInfosObject.targetPort = valueChannelInfosChannelInfosItem["TargetPort"].asString(); + if(!valueChannelInfosChannelInfosItem["TargetType"].isNull()) + channelInfosObject.targetType = valueChannelInfosChannelInfosItem["TargetType"].asString(); + if(!valueChannelInfosChannelInfosItem["VpcId"].isNull()) + channelInfosObject.vpcId = valueChannelInfosChannelInfosItem["VpcId"].asString(); + channelInfos_.push_back(channelInfosObject); + } + +} + +std::vector DescribeNetworkChannelResult::getChannelInfos()const +{ + return channelInfos_; +} + diff --git a/polardb/src/model/DescribeParameterGroupRequest.cc b/polardb/src/model/DescribeParameterGroupRequest.cc index 5d1b22a6a..44d71dc40 100644 --- a/polardb/src/model/DescribeParameterGroupRequest.cc +++ b/polardb/src/model/DescribeParameterGroupRequest.cc @@ -97,3 +97,12 @@ void DescribeParameterGroupRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DescribeParameterGroupRequest::getDBType() const { + return dBType_; +} + +void DescribeParameterGroupRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + diff --git a/polardb/src/model/DescribeParameterGroupResult.cc b/polardb/src/model/DescribeParameterGroupResult.cc index 82bc5a1d9..220541187 100644 --- a/polardb/src/model/DescribeParameterGroupResult.cc +++ b/polardb/src/model/DescribeParameterGroupResult.cc @@ -43,24 +43,24 @@ void DescribeParameterGroupResult::parse(const std::string &payload) for (auto valueParameterGroupParameterGroupItem : allParameterGroupNode) { ParameterGroupItem parameterGroupObject; - if(!valueParameterGroupParameterGroupItem["DBType"].isNull()) - parameterGroupObject.dBType = valueParameterGroupParameterGroupItem["DBType"].asString(); if(!valueParameterGroupParameterGroupItem["DBVersion"].isNull()) parameterGroupObject.dBVersion = valueParameterGroupParameterGroupItem["DBVersion"].asString(); + if(!valueParameterGroupParameterGroupItem["ParameterGroupId"].isNull()) + parameterGroupObject.parameterGroupId = valueParameterGroupParameterGroupItem["ParameterGroupId"].asString(); if(!valueParameterGroupParameterGroupItem["ParameterGroupName"].isNull()) parameterGroupObject.parameterGroupName = valueParameterGroupParameterGroupItem["ParameterGroupName"].asString(); if(!valueParameterGroupParameterGroupItem["ForceRestart"].isNull()) parameterGroupObject.forceRestart = valueParameterGroupParameterGroupItem["ForceRestart"].asString(); if(!valueParameterGroupParameterGroupItem["ParameterGroupType"].isNull()) parameterGroupObject.parameterGroupType = valueParameterGroupParameterGroupItem["ParameterGroupType"].asString(); - if(!valueParameterGroupParameterGroupItem["ParameterCounts"].isNull()) - parameterGroupObject.parameterCounts = std::stoi(valueParameterGroupParameterGroupItem["ParameterCounts"].asString()); if(!valueParameterGroupParameterGroupItem["ParameterGroupDesc"].isNull()) parameterGroupObject.parameterGroupDesc = valueParameterGroupParameterGroupItem["ParameterGroupDesc"].asString(); if(!valueParameterGroupParameterGroupItem["CreateTime"].isNull()) parameterGroupObject.createTime = valueParameterGroupParameterGroupItem["CreateTime"].asString(); - if(!valueParameterGroupParameterGroupItem["ParameterGroupId"].isNull()) - parameterGroupObject.parameterGroupId = valueParameterGroupParameterGroupItem["ParameterGroupId"].asString(); + if(!valueParameterGroupParameterGroupItem["ParameterCounts"].isNull()) + parameterGroupObject.parameterCounts = std::stoi(valueParameterGroupParameterGroupItem["ParameterCounts"].asString()); + if(!valueParameterGroupParameterGroupItem["DBType"].isNull()) + parameterGroupObject.dBType = valueParameterGroupParameterGroupItem["DBType"].asString(); auto allParameterDetailNode = valueParameterGroupParameterGroupItem["ParameterDetail"]["ParameterDetailItem"]; for (auto valueParameterGroupParameterGroupItemParameterDetailParameterDetailItem : allParameterDetailNode) { diff --git a/polardb/src/model/DescribeRdsVSwitchsRequest.cc b/polardb/src/model/DescribeRdsVSwitchsRequest.cc new file mode 100644 index 000000000..c71c1b087 --- /dev/null +++ b/polardb/src/model/DescribeRdsVSwitchsRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeRdsVSwitchsRequest; + +DescribeRdsVSwitchsRequest::DescribeRdsVSwitchsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeRdsVSwitchs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRdsVSwitchsRequest::~DescribeRdsVSwitchsRequest() {} + +long DescribeRdsVSwitchsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVSwitchsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeRdsVSwitchsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeRdsVSwitchsRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeRdsVSwitchsRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeRdsVSwitchsRequest::getRegionId() const { + return regionId_; +} + +void DescribeRdsVSwitchsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeRdsVSwitchsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeRdsVSwitchsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeRdsVSwitchsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeRdsVSwitchsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeRdsVSwitchsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRdsVSwitchsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeRdsVSwitchsRequest::getVpcId() const { + return vpcId_; +} + +void DescribeRdsVSwitchsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string DescribeRdsVSwitchsRequest::getZoneId() const { + return zoneId_; +} + +void DescribeRdsVSwitchsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + diff --git a/polardb/src/model/DescribeRdsVSwitchsResult.cc b/polardb/src/model/DescribeRdsVSwitchsResult.cc new file mode 100644 index 000000000..ffb41035e --- /dev/null +++ b/polardb/src/model/DescribeRdsVSwitchsResult.cc @@ -0,0 +1,78 @@ +/* + * 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; + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult() : + ServiceResult() +{} + +DescribeRdsVSwitchsResult::DescribeRdsVSwitchsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVSwitchsResult::~DescribeRdsVSwitchsResult() +{} + +void DescribeRdsVSwitchsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto vSwitchesNode = value["VSwitches"]; + auto allVSwitchNode = vSwitchesNode["VSwitch"]["VSwitchItem"]; + for (auto vSwitchesNodeVSwitchVSwitchItem : allVSwitchNode) + { + VSwitches::VSwitchItem vSwitchItemObject; + if(!vSwitchesNodeVSwitchVSwitchItem["Status"].isNull()) + vSwitchItemObject.status = vSwitchesNodeVSwitchVSwitchItem["Status"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["IsDefault"].isNull()) + vSwitchItemObject.isDefault = vSwitchesNodeVSwitchVSwitchItem["IsDefault"].asString() == "true"; + if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].isNull()) + vSwitchItemObject.vSwitchId = vSwitchesNodeVSwitchVSwitchItem["VSwitchId"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].isNull()) + vSwitchItemObject.cidrBlock = vSwitchesNodeVSwitchVSwitchItem["CidrBlock"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["RegionNo"].isNull()) + vSwitchItemObject.regionNo = vSwitchesNodeVSwitchVSwitchItem["RegionNo"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].isNull()) + vSwitchItemObject.gmtCreate = vSwitchesNodeVSwitchVSwitchItem["GmtCreate"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["AliUid"].isNull()) + vSwitchItemObject.aliUid = vSwitchesNodeVSwitchVSwitchItem["AliUid"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["GmtModified"].isNull()) + vSwitchItemObject.gmtModified = vSwitchesNodeVSwitchVSwitchItem["GmtModified"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["Bid"].isNull()) + vSwitchItemObject.bid = vSwitchesNodeVSwitchVSwitchItem["Bid"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["IzNo"].isNull()) + vSwitchItemObject.izNo = vSwitchesNodeVSwitchVSwitchItem["IzNo"].asString(); + if(!vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].isNull()) + vSwitchItemObject.vSwitchName = vSwitchesNodeVSwitchVSwitchItem["VSwitchName"].asString(); + vSwitches_.vSwitch.push_back(vSwitchItemObject); + } + +} + +DescribeRdsVSwitchsResult::VSwitches DescribeRdsVSwitchsResult::getVSwitches()const +{ + return vSwitches_; +} + diff --git a/polardb/src/model/DescribeRdsVpcsRequest.cc b/polardb/src/model/DescribeRdsVpcsRequest.cc new file mode 100644 index 000000000..85c173f2e --- /dev/null +++ b/polardb/src/model/DescribeRdsVpcsRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeRdsVpcsRequest; + +DescribeRdsVpcsRequest::DescribeRdsVpcsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeRdsVpcs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRdsVpcsRequest::~DescribeRdsVpcsRequest() {} + +long DescribeRdsVpcsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeRdsVpcsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeRdsVpcsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeRdsVpcsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeRdsVpcsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeRdsVpcsRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeRdsVpcsRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeRdsVpcsRequest::getRegionId() const { + return regionId_; +} + +void DescribeRdsVpcsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeRdsVpcsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeRdsVpcsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeRdsVpcsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeRdsVpcsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeRdsVpcsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRdsVpcsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeRdsVpcsRequest::getZoneId() const { + return zoneId_; +} + +void DescribeRdsVpcsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + diff --git a/polardb/src/model/DescribeRdsVpcsResult.cc b/polardb/src/model/DescribeRdsVpcsResult.cc new file mode 100644 index 000000000..15acabc6f --- /dev/null +++ b/polardb/src/model/DescribeRdsVpcsResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeRdsVpcsResult::DescribeRdsVpcsResult() : + ServiceResult() +{} + +DescribeRdsVpcsResult::DescribeRdsVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRdsVpcsResult::~DescribeRdsVpcsResult() +{} + +void DescribeRdsVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto vpcsNode = value["Vpcs"]; + auto allVpcNode = vpcsNode["Vpc"]["VpcItem"]; + for (auto vpcsNodeVpcVpcItem : allVpcNode) + { + Vpcs::VpcItem vpcItemObject; + if(!vpcsNodeVpcVpcItem["Status"].isNull()) + vpcItemObject.status = vpcsNodeVpcVpcItem["Status"].asString(); + if(!vpcsNodeVpcVpcItem["VpcName"].isNull()) + vpcItemObject.vpcName = vpcsNodeVpcVpcItem["VpcName"].asString(); + if(!vpcsNodeVpcVpcItem["VpcId"].isNull()) + vpcItemObject.vpcId = vpcsNodeVpcVpcItem["VpcId"].asString(); + if(!vpcsNodeVpcVpcItem["IsDefault"].isNull()) + vpcItemObject.isDefault = vpcsNodeVpcVpcItem["IsDefault"].asString() == "true"; + if(!vpcsNodeVpcVpcItem["CidrBlock"].isNull()) + vpcItemObject.cidrBlock = vpcsNodeVpcVpcItem["CidrBlock"].asString(); + if(!vpcsNodeVpcVpcItem["RegionNo"].isNull()) + vpcItemObject.regionNo = vpcsNodeVpcVpcItem["RegionNo"].asString(); + if(!vpcsNodeVpcVpcItem["GmtCreate"].isNull()) + vpcItemObject.gmtCreate = vpcsNodeVpcVpcItem["GmtCreate"].asString(); + if(!vpcsNodeVpcVpcItem["AliUid"].isNull()) + vpcItemObject.aliUid = vpcsNodeVpcVpcItem["AliUid"].asString(); + if(!vpcsNodeVpcVpcItem["GmtModified"].isNull()) + vpcItemObject.gmtModified = vpcsNodeVpcVpcItem["GmtModified"].asString(); + if(!vpcsNodeVpcVpcItem["Bid"].isNull()) + vpcItemObject.bid = vpcsNodeVpcVpcItem["Bid"].asString(); + auto allVSwitchsNode = vpcsNodeVpcVpcItem["VSwitchs"]["VSwitch"]; + for (auto vpcsNodeVpcVpcItemVSwitchsVSwitch : allVSwitchsNode) + { + Vpcs::VpcItem::VSwitch vSwitchsObject; + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["Status"].isNull()) + vSwitchsObject.status = vpcsNodeVpcVpcItemVSwitchsVSwitch["Status"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["VSwitchId"].isNull()) + vSwitchsObject.vSwitchId = vpcsNodeVpcVpcItemVSwitchsVSwitch["VSwitchId"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["IsDefault"].isNull()) + vSwitchsObject.isDefault = vpcsNodeVpcVpcItemVSwitchsVSwitch["IsDefault"].asString() == "true"; + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["CidrBlock"].isNull()) + vSwitchsObject.cidrBlock = vpcsNodeVpcVpcItemVSwitchsVSwitch["CidrBlock"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["GmtCreate"].isNull()) + vSwitchsObject.gmtCreate = vpcsNodeVpcVpcItemVSwitchsVSwitch["GmtCreate"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["GmtModified"].isNull()) + vSwitchsObject.gmtModified = vpcsNodeVpcVpcItemVSwitchsVSwitch["GmtModified"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["IzNo"].isNull()) + vSwitchsObject.izNo = vpcsNodeVpcVpcItemVSwitchsVSwitch["IzNo"].asString(); + if(!vpcsNodeVpcVpcItemVSwitchsVSwitch["VSwitchName"].isNull()) + vSwitchsObject.vSwitchName = vpcsNodeVpcVpcItemVSwitchsVSwitch["VSwitchName"].asString(); + vpcItemObject.vSwitchs.push_back(vSwitchsObject); + } + vpcs_.vpc.push_back(vpcItemObject); + } + +} + +DescribeRdsVpcsResult::Vpcs DescribeRdsVpcsResult::getVpcs()const +{ + return vpcs_; +} + diff --git a/polardb/src/model/DescribeResourcePackagesRequest.cc b/polardb/src/model/DescribeResourcePackagesRequest.cc new file mode 100644 index 000000000..aa47f867a --- /dev/null +++ b/polardb/src/model/DescribeResourcePackagesRequest.cc @@ -0,0 +1,27 @@ +/* + * 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::DescribeResourcePackagesRequest; + +DescribeResourcePackagesRequest::DescribeResourcePackagesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeResourcePackages") { + setMethod(HttpRequest::Method::Post); +} + +DescribeResourcePackagesRequest::~DescribeResourcePackagesRequest() {} + diff --git a/polardb/src/model/DescribeResourcePackagesResult.cc b/polardb/src/model/DescribeResourcePackagesResult.cc new file mode 100644 index 000000000..669b2e2a4 --- /dev/null +++ b/polardb/src/model/DescribeResourcePackagesResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeResourcePackagesResult::DescribeResourcePackagesResult() : + ServiceResult() +{} + +DescribeResourcePackagesResult::DescribeResourcePackagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeResourcePackagesResult::~DescribeResourcePackagesResult() +{} + +void DescribeResourcePackagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourcePackageListNode = value["ResourcePackageList"]["ResourcePackageListItem"]; + for (auto valueResourcePackageListResourcePackageListItem : allResourcePackageListNode) + { + ResourcePackageListItem resourcePackageListObject; + if(!valueResourcePackageListResourcePackageListItem["ResourcePackageId"].isNull()) + resourcePackageListObject.resourcePackageId = valueResourcePackageListResourcePackageListItem["ResourcePackageId"].asString(); + if(!valueResourcePackageListResourcePackageListItem["ResourcePackageType"].isNull()) + resourcePackageListObject.resourcePackageType = valueResourcePackageListResourcePackageListItem["ResourcePackageType"].asString(); + if(!valueResourcePackageListResourcePackageListItem["Status"].isNull()) + resourcePackageListObject.status = valueResourcePackageListResourcePackageListItem["Status"].asString(); + if(!valueResourcePackageListResourcePackageListItem["UsedCapacity"].isNull()) + resourcePackageListObject.usedCapacity = std::stol(valueResourcePackageListResourcePackageListItem["UsedCapacity"].asString()); + if(!valueResourcePackageListResourcePackageListItem["TotalCapacity"].isNull()) + resourcePackageListObject.totalCapacity = std::stol(valueResourcePackageListResourcePackageListItem["TotalCapacity"].asString()); + if(!valueResourcePackageListResourcePackageListItem["CreateTime"].isNull()) + resourcePackageListObject.createTime = std::stol(valueResourcePackageListResourcePackageListItem["CreateTime"].asString()); + if(!valueResourcePackageListResourcePackageListItem["ExpireTime"].isNull()) + resourcePackageListObject.expireTime = std::stol(valueResourcePackageListResourcePackageListItem["ExpireTime"].asString()); + if(!valueResourcePackageListResourcePackageListItem["AutoQuota"].isNull()) + resourcePackageListObject.autoQuota = valueResourcePackageListResourcePackageListItem["AutoQuota"].asString() == "true"; + auto allResourcePackageQuotaListNode = valueResourcePackageListResourcePackageListItem["ResourcePackageQuotaList"]["ResourcePackageQuotaListItem"]; + for (auto valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem : allResourcePackageQuotaListNode) + { + ResourcePackageListItem::ResourcePackageQuotaListItem resourcePackageQuotaListObject; + if(!valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["ProjectId"].isNull()) + resourcePackageQuotaListObject.projectId = valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["ProjectId"].asString(); + if(!valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["UsedCapacity"].isNull()) + resourcePackageQuotaListObject.usedCapacity = std::stol(valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["UsedCapacity"].asString()); + if(!valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["AllocatedCapacity"].isNull()) + resourcePackageQuotaListObject.allocatedCapacity = std::stol(valueResourcePackageListResourcePackageListItemResourcePackageQuotaListResourcePackageQuotaListItem["AllocatedCapacity"].asString()); + resourcePackageListObject.resourcePackageQuotaList.push_back(resourcePackageQuotaListObject); + } + auto allTagsNode = valueResourcePackageListResourcePackageListItem["Tags"]["Tag"]; + for (auto valueResourcePackageListResourcePackageListItemTagsTag : allTagsNode) + { + ResourcePackageListItem::Tag tagsObject; + if(!valueResourcePackageListResourcePackageListItemTagsTag["Key"].isNull()) + tagsObject.key = valueResourcePackageListResourcePackageListItemTagsTag["Key"].asString(); + if(!valueResourcePackageListResourcePackageListItemTagsTag["Value"].isNull()) + tagsObject.value = valueResourcePackageListResourcePackageListItemTagsTag["Value"].asString(); + resourcePackageListObject.tags.push_back(tagsObject); + } + resourcePackageList_.push_back(resourcePackageListObject); + } + +} + +std::vector DescribeResourcePackagesResult::getResourcePackageList()const +{ + return resourcePackageList_; +} + diff --git a/polardb/src/model/DescribeSQLRateLimitingRulesRequest.cc b/polardb/src/model/DescribeSQLRateLimitingRulesRequest.cc new file mode 100644 index 000000000..129ae79c7 --- /dev/null +++ b/polardb/src/model/DescribeSQLRateLimitingRulesRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeSQLRateLimitingRulesRequest; + +DescribeSQLRateLimitingRulesRequest::DescribeSQLRateLimitingRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLRateLimitingRules") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSQLRateLimitingRulesRequest::~DescribeSQLRateLimitingRulesRequest() {} + +long DescribeSQLRateLimitingRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeSQLRateLimitingRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeSQLRateLimitingRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeSQLRateLimitingRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeSQLRateLimitingRulesRequest::getNextToken() const { + return nextToken_; +} + +void DescribeSQLRateLimitingRulesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string DescribeSQLRateLimitingRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeSQLRateLimitingRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeSQLRateLimitingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DescribeSQLRateLimitingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DescribeSQLRateLimitingRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeSQLRateLimitingRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeSQLRateLimitingRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeSQLRateLimitingRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeSQLRateLimitingRulesRequest::getRuleNameList() const { + return ruleNameList_; +} + +void DescribeSQLRateLimitingRulesRequest::setRuleNameList(const std::string &ruleNameList) { + ruleNameList_ = ruleNameList; + setParameter(std::string("RuleNameList"), ruleNameList); +} + +int DescribeSQLRateLimitingRulesRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeSQLRateLimitingRulesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/polardb/src/model/DescribeSQLRateLimitingRulesResult.cc b/polardb/src/model/DescribeSQLRateLimitingRulesResult.cc new file mode 100644 index 000000000..1e87bd35e --- /dev/null +++ b/polardb/src/model/DescribeSQLRateLimitingRulesResult.cc @@ -0,0 +1,74 @@ +/* + * 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; + +DescribeSQLRateLimitingRulesResult::DescribeSQLRateLimitingRulesResult() : + ServiceResult() +{} + +DescribeSQLRateLimitingRulesResult::DescribeSQLRateLimitingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSQLRateLimitingRulesResult::~DescribeSQLRateLimitingRulesResult() +{} + +void DescribeSQLRateLimitingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allRuleList = dataNode["RuleList"]["RuleList"]; + for (auto value : allRuleList) + data_.ruleList.push_back(value.asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string DescribeSQLRateLimitingRulesResult::getMessage()const +{ + return message_; +} + +std::string DescribeSQLRateLimitingRulesResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeSQLRateLimitingRulesResult::getMaxResults()const +{ + return maxResults_; +} + +DescribeSQLRateLimitingRulesResult::Data DescribeSQLRateLimitingRulesResult::getData()const +{ + return data_; +} + diff --git a/polardb/src/model/DescribeUpgradeReportRequest.cc b/polardb/src/model/DescribeUpgradeReportRequest.cc new file mode 100644 index 000000000..44ce2b88a --- /dev/null +++ b/polardb/src/model/DescribeUpgradeReportRequest.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeUpgradeReportRequest; + +DescribeUpgradeReportRequest::DescribeUpgradeReportRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeUpgradeReport") { + setMethod(HttpRequest::Method::Post); +} + +DescribeUpgradeReportRequest::~DescribeUpgradeReportRequest() {} + +long DescribeUpgradeReportRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeUpgradeReportRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeUpgradeReportRequest::getType() const { + return type_; +} + +void DescribeUpgradeReportRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +int DescribeUpgradeReportRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeUpgradeReportRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeUpgradeReportRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeUpgradeReportRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeUpgradeReportRequest::getCreationCategory() const { + return creationCategory_; +} + +void DescribeUpgradeReportRequest::setCreationCategory(const std::string &creationCategory) { + creationCategory_ = creationCategory; + setParameter(std::string("CreationCategory"), creationCategory); +} + +std::string DescribeUpgradeReportRequest::getSourceDBClusterId() const { + return sourceDBClusterId_; +} + +void DescribeUpgradeReportRequest::setSourceDBClusterId(const std::string &sourceDBClusterId) { + sourceDBClusterId_ = sourceDBClusterId; + setParameter(std::string("SourceDBClusterId"), sourceDBClusterId); +} + +std::string DescribeUpgradeReportRequest::getRegionId() const { + return regionId_; +} + +void DescribeUpgradeReportRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeUpgradeReportRequest::getPageSize() const { + return pageSize_; +} + +void DescribeUpgradeReportRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeUpgradeReportRequest::getTaskId() const { + return taskId_; +} + +void DescribeUpgradeReportRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string DescribeUpgradeReportRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeUpgradeReportRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeUpgradeReportRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeUpgradeReportRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeUpgradeReportRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeUpgradeReportRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeUpgradeReportRequest::getDBType() const { + return dBType_; +} + +void DescribeUpgradeReportRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string DescribeUpgradeReportRequest::getDBVersion() const { + return dBVersion_; +} + +void DescribeUpgradeReportRequest::setDBVersion(const std::string &dBVersion) { + dBVersion_ = dBVersion; + setParameter(std::string("DBVersion"), dBVersion); +} + +std::string DescribeUpgradeReportRequest::getStatus() const { + return status_; +} + +void DescribeUpgradeReportRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/polardb/src/model/DescribeUpgradeReportResult.cc b/polardb/src/model/DescribeUpgradeReportResult.cc new file mode 100644 index 000000000..ecd5ebdaf --- /dev/null +++ b/polardb/src/model/DescribeUpgradeReportResult.cc @@ -0,0 +1,152 @@ +/* + * 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; + +DescribeUpgradeReportResult::DescribeUpgradeReportResult() : + ServiceResult() +{} + +DescribeUpgradeReportResult::DescribeUpgradeReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeUpgradeReportResult::~DescribeUpgradeReportResult() +{} + +void DescribeUpgradeReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUpgradeReportListNode = value["UpgradeReportList"]["Report"]; + for (auto valueUpgradeReportListReport : allUpgradeReportListNode) + { + Report upgradeReportListObject; + if(!valueUpgradeReportListReport["TaskId"].isNull()) + upgradeReportListObject.taskId = valueUpgradeReportListReport["TaskId"].asString(); + if(!valueUpgradeReportListReport["CheckTime"].isNull()) + upgradeReportListObject.checkTime = valueUpgradeReportListReport["CheckTime"].asString(); + if(!valueUpgradeReportListReport["DstVersion"].isNull()) + upgradeReportListObject.dstVersion = valueUpgradeReportListReport["DstVersion"].asString(); + if(!valueUpgradeReportListReport["SrcInsName"].isNull()) + upgradeReportListObject.srcInsName = valueUpgradeReportListReport["SrcInsName"].asString(); + if(!valueUpgradeReportListReport["SrcVersion"].isNull()) + upgradeReportListObject.srcVersion = valueUpgradeReportListReport["SrcVersion"].asString(); + if(!valueUpgradeReportListReport["UpgradeMode"].isNull()) + upgradeReportListObject.upgradeMode = valueUpgradeReportListReport["UpgradeMode"].asString(); + if(!valueUpgradeReportListReport["Result"].isNull()) + upgradeReportListObject.result = valueUpgradeReportListReport["Result"].asString(); + if(!valueUpgradeReportListReport["EffectiveTime"].isNull()) + upgradeReportListObject.effectiveTime = valueUpgradeReportListReport["EffectiveTime"].asString(); + if(!valueUpgradeReportListReport["StartTime"].isNull()) + upgradeReportListObject.startTime = valueUpgradeReportListReport["StartTime"].asString(); + if(!valueUpgradeReportListReport["EndTime"].isNull()) + upgradeReportListObject.endTime = valueUpgradeReportListReport["EndTime"].asString(); + upgradeReportList_.push_back(upgradeReportListObject); + } + auto allItemsNode = value["Items"]["SQLReport"]; + for (auto valueItemsSQLReport : allItemsNode) + { + SQLReport itemsObject; + if(!valueItemsSQLReport["Schema"].isNull()) + itemsObject.schema = valueItemsSQLReport["Schema"].asString(); + if(!valueItemsSQLReport["Type"].isNull()) + itemsObject.type = valueItemsSQLReport["Type"].asString(); + if(!valueItemsSQLReport["Name"].isNull()) + itemsObject.name = valueItemsSQLReport["Name"].asString(); + if(!valueItemsSQLReport["Status"].isNull()) + itemsObject.status = valueItemsSQLReport["Status"].asString(); + if(!valueItemsSQLReport["DDL"].isNull()) + itemsObject.dDL = valueItemsSQLReport["DDL"].asString(); + items_.push_back(itemsObject); + } + if(!value["SourceDBClusterId"].isNull()) + sourceDBClusterId_ = value["SourceDBClusterId"].asString(); + if(!value["TotalSize"].isNull()) + totalSize_ = std::stol(value["TotalSize"].asString()); + if(!value["ItemsSize"].isNull()) + itemsSize_ = std::stol(value["ItemsSize"].asString()); + if(!value["Details"].isNull()) + details_ = value["Details"].asString(); + if(!value["SrcDBType"].isNull()) + srcDBType_ = value["SrcDBType"].asString(); + if(!value["DstDBType"].isNull()) + dstDBType_ = value["DstDBType"].asString(); + if(!value["SrcDeleted"].isNull()) + srcDeleted_ = value["SrcDeleted"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + +} + +std::string DescribeUpgradeReportResult::getSourceDBClusterId()const +{ + return sourceDBClusterId_; +} + +std::string DescribeUpgradeReportResult::getType()const +{ + return type_; +} + +std::string DescribeUpgradeReportResult::getDetails()const +{ + return details_; +} + +std::string DescribeUpgradeReportResult::getSrcDeleted()const +{ + return srcDeleted_; +} + +std::string DescribeUpgradeReportResult::getDstDBType()const +{ + return dstDBType_; +} + +std::vector DescribeUpgradeReportResult::getUpgradeReportList()const +{ + return upgradeReportList_; +} + +std::vector DescribeUpgradeReportResult::getItems()const +{ + return items_; +} + +long DescribeUpgradeReportResult::getTotalSize()const +{ + return totalSize_; +} + +long DescribeUpgradeReportResult::getItemsSize()const +{ + return itemsSize_; +} + +std::string DescribeUpgradeReportResult::getSrcDBType()const +{ + return srcDBType_; +} + diff --git a/polardb/src/model/DescribeVSwitchListRequest.cc b/polardb/src/model/DescribeVSwitchListRequest.cc new file mode 100644 index 000000000..d216e84cf --- /dev/null +++ b/polardb/src/model/DescribeVSwitchListRequest.cc @@ -0,0 +1,134 @@ +/* + * 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::DescribeVSwitchListRequest; + +DescribeVSwitchListRequest::DescribeVSwitchListRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeVSwitchList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVSwitchListRequest::~DescribeVSwitchListRequest() {} + +long DescribeVSwitchListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVSwitchListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector DescribeVSwitchListRequest::getVSwitchIds() const { + return vSwitchIds_; +} + +void DescribeVSwitchListRequest::setVSwitchIds(const std::vector &vSwitchIds) { + vSwitchIds_ = vSwitchIds; +} + +int DescribeVSwitchListRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVSwitchListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeVSwitchListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeVSwitchListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeVSwitchListRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeVSwitchListRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string DescribeVSwitchListRequest::getRegionId() const { + return regionId_; +} + +void DescribeVSwitchListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeVSwitchListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVSwitchListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeVSwitchListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVSwitchListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVSwitchListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVSwitchListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVSwitchListRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVSwitchListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVSwitchListRequest::getVpcId() const { + return vpcId_; +} + +void DescribeVSwitchListRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string DescribeVSwitchListRequest::getZoneId() const { + return zoneId_; +} + +void DescribeVSwitchListRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + diff --git a/polardb/src/model/DescribeVSwitchListResult.cc b/polardb/src/model/DescribeVSwitchListResult.cc new file mode 100644 index 000000000..580e153b7 --- /dev/null +++ b/polardb/src/model/DescribeVSwitchListResult.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; + +DescribeVSwitchListResult::DescribeVSwitchListResult() : + ServiceResult() +{} + +DescribeVSwitchListResult::DescribeVSwitchListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVSwitchListResult::~DescribeVSwitchListResult() +{} + +void DescribeVSwitchListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVSwitchsNode = value["VSwitchs"]["VSwitch"]; + for (auto valueVSwitchsVSwitch : allVSwitchsNode) + { + VSwitch vSwitchsObject; + if(!valueVSwitchsVSwitch["CidrBlock"].isNull()) + vSwitchsObject.cidrBlock = valueVSwitchsVSwitch["CidrBlock"].asString(); + if(!valueVSwitchsVSwitch["Description"].isNull()) + vSwitchsObject.description = valueVSwitchsVSwitch["Description"].asString(); + if(!valueVSwitchsVSwitch["IsDefault"].isNull()) + vSwitchsObject.isDefault = valueVSwitchsVSwitch["IsDefault"].asString() == "true"; + if(!valueVSwitchsVSwitch["IzNo"].isNull()) + vSwitchsObject.izNo = valueVSwitchsVSwitch["IzNo"].asString(); + if(!valueVSwitchsVSwitch["RegionNo"].isNull()) + vSwitchsObject.regionNo = valueVSwitchsVSwitch["RegionNo"].asString(); + if(!valueVSwitchsVSwitch["Status"].isNull()) + vSwitchsObject.status = valueVSwitchsVSwitch["Status"].asString(); + if(!valueVSwitchsVSwitch["VSwitchId"].isNull()) + vSwitchsObject.vSwitchId = valueVSwitchsVSwitch["VSwitchId"].asString(); + if(!valueVSwitchsVSwitch["VSwitchName"].isNull()) + vSwitchsObject.vSwitchName = valueVSwitchsVSwitch["VSwitchName"].asString(); + if(!valueVSwitchsVSwitch["AvailableIpAddressCount"].isNull()) + vSwitchsObject.availableIpAddressCount = std::stol(valueVSwitchsVSwitch["AvailableIpAddressCount"].asString()); + if(!valueVSwitchsVSwitch["VpcId"].isNull()) + vSwitchsObject.vpcId = valueVSwitchsVSwitch["VpcId"].asString(); + if(!valueVSwitchsVSwitch["ShareType"].isNull()) + vSwitchsObject.shareType = valueVSwitchsVSwitch["ShareType"].asString(); + if(!valueVSwitchsVSwitch["ResourceGroupId"].isNull()) + vSwitchsObject.resourceGroupId = valueVSwitchsVSwitch["ResourceGroupId"].asString(); + if(!valueVSwitchsVSwitch["OwnerId"].isNull()) + vSwitchsObject.ownerId = valueVSwitchsVSwitch["OwnerId"].asString(); + vSwitchs_.push_back(vSwitchsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::vector DescribeVSwitchListResult::getVSwitchs()const +{ + return vSwitchs_; +} + +int DescribeVSwitchListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVSwitchListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVSwitchListResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/polardb/src/model/DescribeVpcsRequest.cc b/polardb/src/model/DescribeVpcsRequest.cc new file mode 100644 index 000000000..f6477a801 --- /dev/null +++ b/polardb/src/model/DescribeVpcsRequest.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::DescribeVpcsRequest; + +DescribeVpcsRequest::DescribeVpcsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeVpcs") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVpcsRequest::~DescribeVpcsRequest() {} + +long DescribeVpcsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVpcsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeVpcsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeVpcsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeVpcsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeVpcsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeVpcsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeVpcsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeVpcsRequest::getSecurityToken() const { + return securityToken_; +} + +void DescribeVpcsRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +int DescribeVpcsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeVpcsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeVpcsRequest::getProduct() const { + return product_; +} + +void DescribeVpcsRequest::setProduct(const std::string &product) { + product_ = product; + setParameter(std::string("Product"), product); +} + +std::string DescribeVpcsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVpcsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVpcsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVpcsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVpcsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVpcsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVpcsRequest::getVpcId() const { + return vpcId_; +} + +void DescribeVpcsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string DescribeVpcsRequest::getZoneId() const { + return zoneId_; +} + +void DescribeVpcsRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + diff --git a/polardb/src/model/DescribeVpcsResult.cc b/polardb/src/model/DescribeVpcsResult.cc new file mode 100644 index 000000000..13f64a6ad --- /dev/null +++ b/polardb/src/model/DescribeVpcsResult.cc @@ -0,0 +1,118 @@ +/* + * 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; + +DescribeVpcsResult::DescribeVpcsResult() : + ServiceResult() +{} + +DescribeVpcsResult::DescribeVpcsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVpcsResult::~DescribeVpcsResult() +{} + +void DescribeVpcsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVpcsNode = value["Vpcs"]["Vpc"]; + for (auto valueVpcsVpc : allVpcsNode) + { + Vpc vpcsObject; + if(!valueVpcsVpc["AliUid"].isNull()) + vpcsObject.aliUid = valueVpcsVpc["AliUid"].asString(); + if(!valueVpcsVpc["Bid"].isNull()) + vpcsObject.bid = valueVpcsVpc["Bid"].asString(); + if(!valueVpcsVpc["CidrBlock"].isNull()) + vpcsObject.cidrBlock = valueVpcsVpc["CidrBlock"].asString(); + if(!valueVpcsVpc["GmtCreate"].isNull()) + vpcsObject.gmtCreate = valueVpcsVpc["GmtCreate"].asString(); + if(!valueVpcsVpc["GmtModified"].isNull()) + vpcsObject.gmtModified = valueVpcsVpc["GmtModified"].asString(); + if(!valueVpcsVpc["IsDefault"].isNull()) + vpcsObject.isDefault = valueVpcsVpc["IsDefault"].asString() == "true"; + if(!valueVpcsVpc["RegionNo"].isNull()) + vpcsObject.regionNo = valueVpcsVpc["RegionNo"].asString(); + if(!valueVpcsVpc["Status"].isNull()) + vpcsObject.status = valueVpcsVpc["Status"].asString(); + if(!valueVpcsVpc["VpcId"].isNull()) + vpcsObject.vpcId = valueVpcsVpc["VpcId"].asString(); + if(!valueVpcsVpc["VpcName"].isNull()) + vpcsObject.vpcName = valueVpcsVpc["VpcName"].asString(); + auto allVSwitchsNode = valueVpcsVpc["VSwitchs"]["VSwitch"]; + for (auto valueVpcsVpcVSwitchsVSwitch : allVSwitchsNode) + { + Vpc::VSwitch vSwitchsObject; + if(!valueVpcsVpcVSwitchsVSwitch["CidrBlock"].isNull()) + vSwitchsObject.cidrBlock = valueVpcsVpcVSwitchsVSwitch["CidrBlock"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["GmtCreate"].isNull()) + vSwitchsObject.gmtCreate = valueVpcsVpcVSwitchsVSwitch["GmtCreate"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["GmtModified"].isNull()) + vSwitchsObject.gmtModified = valueVpcsVpcVSwitchsVSwitch["GmtModified"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["IsDefault"].isNull()) + vSwitchsObject.isDefault = valueVpcsVpcVSwitchsVSwitch["IsDefault"].asString() == "true"; + if(!valueVpcsVpcVSwitchsVSwitch["IzNo"].isNull()) + vSwitchsObject.izNo = valueVpcsVpcVSwitchsVSwitch["IzNo"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["Status"].isNull()) + vSwitchsObject.status = valueVpcsVpcVSwitchsVSwitch["Status"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["VSwitchId"].isNull()) + vSwitchsObject.vSwitchId = valueVpcsVpcVSwitchsVSwitch["VSwitchId"].asString(); + if(!valueVpcsVpcVSwitchsVSwitch["VSwitchName"].isNull()) + vSwitchsObject.vSwitchName = valueVpcsVpcVSwitchsVSwitch["VSwitchName"].asString(); + vpcsObject.vSwitchs.push_back(vSwitchsObject); + } + vpcs_.push_back(vpcsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeVpcsResult::getVpcs()const +{ + return vpcs_; +} + +int DescribeVpcsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeVpcsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeVpcsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/polardb/src/model/DescribeZonesRequest.cc b/polardb/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..4d90fc0a4 --- /dev/null +++ b/polardb/src/model/DescribeZonesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DescribeZones") { + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() {} + +std::string DescribeZonesRequest::getProductCode() const { + return productCode_; +} + +void DescribeZonesRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +long DescribeZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeZonesRequest::getEngine() const { + return engine_; +} + +void DescribeZonesRequest::setEngine(const std::string &engine) { + engine_ = engine; + setParameter(std::string("Engine"), engine); +} + +std::string DescribeZonesRequest::getRegionId() const { + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeZonesRequest::getExtra() const { + return extra_; +} + +void DescribeZonesRequest::setExtra(const std::string &extra) { + extra_ = extra; + setParameter(std::string("Extra"), extra); +} + diff --git a/polardb/src/model/DescribeZonesResult.cc b/polardb/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..542145716 --- /dev/null +++ b/polardb/src/model/DescribeZonesResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZonesNode = value["Zones"]["ZonesItem"]; + for (auto valueZonesZonesItem : allZonesNode) + { + ZonesItem zonesObject; + if(!valueZonesZonesItem["ModeCode"].isNull()) + zonesObject.modeCode = valueZonesZonesItem["ModeCode"].asString(); + if(!valueZonesZonesItem["Priority"].isNull()) + zonesObject.priority = valueZonesZonesItem["Priority"].asString(); + if(!valueZonesZonesItem["Status"].isNull()) + zonesObject.status = valueZonesZonesItem["Status"].asString(); + if(!valueZonesZonesItem["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZonesItem["ZoneId"].asString(); + zones_.push_back(zonesObject); + } + +} + +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/polardb/src/model/DisableDBClusterOrcaRequest.cc b/polardb/src/model/DisableDBClusterOrcaRequest.cc new file mode 100644 index 000000000..7b49d5dfb --- /dev/null +++ b/polardb/src/model/DisableDBClusterOrcaRequest.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::DisableDBClusterOrcaRequest; + +DisableDBClusterOrcaRequest::DisableDBClusterOrcaRequest() + : RpcServiceRequest("polardb", "2017-08-01", "DisableDBClusterOrca") { + setMethod(HttpRequest::Method::Post); +} + +DisableDBClusterOrcaRequest::~DisableDBClusterOrcaRequest() {} + +long DisableDBClusterOrcaRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DisableDBClusterOrcaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DisableDBClusterOrcaRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DisableDBClusterOrcaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DisableDBClusterOrcaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DisableDBClusterOrcaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DisableDBClusterOrcaRequest::getDBClusterId() const { + return dBClusterId_; +} + +void DisableDBClusterOrcaRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string DisableDBClusterOrcaRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DisableDBClusterOrcaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DisableDBClusterOrcaRequest::getOwnerId() const { + return ownerId_; +} + +void DisableDBClusterOrcaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DisableDBClusterOrcaRequest::getCleanData() const { + return cleanData_; +} + +void DisableDBClusterOrcaRequest::setCleanData(const std::string &cleanData) { + cleanData_ = cleanData; + setParameter(std::string("CleanData"), cleanData); +} + diff --git a/polardb/src/model/DisableDBClusterOrcaResult.cc b/polardb/src/model/DisableDBClusterOrcaResult.cc new file mode 100644 index 000000000..2a1583f1a --- /dev/null +++ b/polardb/src/model/DisableDBClusterOrcaResult.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; + +DisableDBClusterOrcaResult::DisableDBClusterOrcaResult() : + ServiceResult() +{} + +DisableDBClusterOrcaResult::DisableDBClusterOrcaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableDBClusterOrcaResult::~DisableDBClusterOrcaResult() +{} + +void DisableDBClusterOrcaResult::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(); + +} + +std::string DisableDBClusterOrcaResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/EnableDBClusterOrcaRequest.cc b/polardb/src/model/EnableDBClusterOrcaRequest.cc new file mode 100644 index 000000000..ef3e81b57 --- /dev/null +++ b/polardb/src/model/EnableDBClusterOrcaRequest.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::EnableDBClusterOrcaRequest; + +EnableDBClusterOrcaRequest::EnableDBClusterOrcaRequest() + : RpcServiceRequest("polardb", "2017-08-01", "EnableDBClusterOrca") { + setMethod(HttpRequest::Method::Post); +} + +EnableDBClusterOrcaRequest::~EnableDBClusterOrcaRequest() {} + +long EnableDBClusterOrcaRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void EnableDBClusterOrcaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string EnableDBClusterOrcaRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void EnableDBClusterOrcaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string EnableDBClusterOrcaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void EnableDBClusterOrcaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string EnableDBClusterOrcaRequest::getDBClusterId() const { + return dBClusterId_; +} + +void EnableDBClusterOrcaRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string EnableDBClusterOrcaRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void EnableDBClusterOrcaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long EnableDBClusterOrcaRequest::getOwnerId() const { + return ownerId_; +} + +void EnableDBClusterOrcaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/EnableDBClusterOrcaResult.cc b/polardb/src/model/EnableDBClusterOrcaResult.cc new file mode 100644 index 000000000..9e09fb124 --- /dev/null +++ b/polardb/src/model/EnableDBClusterOrcaResult.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; + +EnableDBClusterOrcaResult::EnableDBClusterOrcaResult() : + ServiceResult() +{} + +EnableDBClusterOrcaResult::EnableDBClusterOrcaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableDBClusterOrcaResult::~EnableDBClusterOrcaResult() +{} + +void EnableDBClusterOrcaResult::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(); + +} + +std::string EnableDBClusterOrcaResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/EnableSQLRateLimitingRulesRequest.cc b/polardb/src/model/EnableSQLRateLimitingRulesRequest.cc new file mode 100644 index 000000000..e90e94996 --- /dev/null +++ b/polardb/src/model/EnableSQLRateLimitingRulesRequest.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::EnableSQLRateLimitingRulesRequest; + +EnableSQLRateLimitingRulesRequest::EnableSQLRateLimitingRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "EnableSQLRateLimitingRules") { + setMethod(HttpRequest::Method::Post); +} + +EnableSQLRateLimitingRulesRequest::~EnableSQLRateLimitingRulesRequest() {} + +long EnableSQLRateLimitingRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void EnableSQLRateLimitingRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string EnableSQLRateLimitingRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void EnableSQLRateLimitingRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool EnableSQLRateLimitingRulesRequest::getEnable() const { + return enable_; +} + +void EnableSQLRateLimitingRulesRequest::setEnable(bool enable) { + enable_ = enable; + setParameter(std::string("Enable"), enable ? "true" : "false"); +} + +std::string EnableSQLRateLimitingRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void EnableSQLRateLimitingRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string EnableSQLRateLimitingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void EnableSQLRateLimitingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string EnableSQLRateLimitingRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void EnableSQLRateLimitingRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long EnableSQLRateLimitingRulesRequest::getOwnerId() const { + return ownerId_; +} + +void EnableSQLRateLimitingRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string EnableSQLRateLimitingRulesRequest::getRuleNameList() const { + return ruleNameList_; +} + +void EnableSQLRateLimitingRulesRequest::setRuleNameList(const std::string &ruleNameList) { + ruleNameList_ = ruleNameList; + setParameter(std::string("RuleNameList"), ruleNameList); +} + diff --git a/polardb/src/model/EnableSQLRateLimitingRulesResult.cc b/polardb/src/model/EnableSQLRateLimitingRulesResult.cc new file mode 100644 index 000000000..d738edace --- /dev/null +++ b/polardb/src/model/EnableSQLRateLimitingRulesResult.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; + +EnableSQLRateLimitingRulesResult::EnableSQLRateLimitingRulesResult() : + ServiceResult() +{} + +EnableSQLRateLimitingRulesResult::EnableSQLRateLimitingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableSQLRateLimitingRulesResult::~EnableSQLRateLimitingRulesResult() +{} + +void EnableSQLRateLimitingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string EnableSQLRateLimitingRulesResult::getMessage()const +{ + return message_; +} + +bool EnableSQLRateLimitingRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/ExecuteCrossCloudOpenAPIRequest.cc b/polardb/src/model/ExecuteCrossCloudOpenAPIRequest.cc new file mode 100644 index 000000000..a0f921555 --- /dev/null +++ b/polardb/src/model/ExecuteCrossCloudOpenAPIRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::ExecuteCrossCloudOpenAPIRequest; + +ExecuteCrossCloudOpenAPIRequest::ExecuteCrossCloudOpenAPIRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ExecuteCrossCloudOpenAPI") { + setMethod(HttpRequest::Method::Post); +} + +ExecuteCrossCloudOpenAPIRequest::~ExecuteCrossCloudOpenAPIRequest() {} + +std::string ExecuteCrossCloudOpenAPIRequest::getProxyInfo() const { + return proxyInfo_; +} + +void ExecuteCrossCloudOpenAPIRequest::setProxyInfo(const std::string &proxyInfo) { + proxyInfo_ = proxyInfo; + setParameter(std::string("ProxyInfo"), proxyInfo); +} + diff --git a/polardb/src/model/ExecuteCrossCloudOpenAPIResult.cc b/polardb/src/model/ExecuteCrossCloudOpenAPIResult.cc new file mode 100644 index 000000000..431a2f612 --- /dev/null +++ b/polardb/src/model/ExecuteCrossCloudOpenAPIResult.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; + +ExecuteCrossCloudOpenAPIResult::ExecuteCrossCloudOpenAPIResult() : + ServiceResult() +{} + +ExecuteCrossCloudOpenAPIResult::ExecuteCrossCloudOpenAPIResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecuteCrossCloudOpenAPIResult::~ExecuteCrossCloudOpenAPIResult() +{} + +void ExecuteCrossCloudOpenAPIResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ProxyData"].isNull()) + proxyData_ = value["ProxyData"].asString(); + +} + +std::string ExecuteCrossCloudOpenAPIResult::getProxyData()const +{ + return proxyData_; +} + diff --git a/polardb/src/model/FailoverDBClusterZonalRequest.cc b/polardb/src/model/FailoverDBClusterZonalRequest.cc new file mode 100644 index 000000000..b3260e08b --- /dev/null +++ b/polardb/src/model/FailoverDBClusterZonalRequest.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::FailoverDBClusterZonalRequest; + +FailoverDBClusterZonalRequest::FailoverDBClusterZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "FailoverDBClusterZonal") { + setMethod(HttpRequest::Method::Post); +} + +FailoverDBClusterZonalRequest::~FailoverDBClusterZonalRequest() {} + +long FailoverDBClusterZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void FailoverDBClusterZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string FailoverDBClusterZonalRequest::getClientToken() const { + return clientToken_; +} + +void FailoverDBClusterZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string FailoverDBClusterZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void FailoverDBClusterZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool FailoverDBClusterZonalRequest::getRollBackForDisaster() const { + return rollBackForDisaster_; +} + +void FailoverDBClusterZonalRequest::setRollBackForDisaster(bool rollBackForDisaster) { + rollBackForDisaster_ = rollBackForDisaster; + setParameter(std::string("RollBackForDisaster"), rollBackForDisaster ? "true" : "false"); +} + +std::string FailoverDBClusterZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void FailoverDBClusterZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string FailoverDBClusterZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void FailoverDBClusterZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string FailoverDBClusterZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void FailoverDBClusterZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string FailoverDBClusterZonalRequest::getTargetZoneType() const { + return targetZoneType_; +} + +void FailoverDBClusterZonalRequest::setTargetZoneType(const std::string &targetZoneType) { + targetZoneType_ = targetZoneType; + setParameter(std::string("TargetZoneType"), targetZoneType); +} + +long FailoverDBClusterZonalRequest::getOwnerId() const { + return ownerId_; +} + +void FailoverDBClusterZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string FailoverDBClusterZonalRequest::getTargetDBNodeId() const { + return targetDBNodeId_; +} + +void FailoverDBClusterZonalRequest::setTargetDBNodeId(const std::string &targetDBNodeId) { + targetDBNodeId_ = targetDBNodeId; + setParameter(std::string("TargetDBNodeId"), targetDBNodeId); +} + +bool FailoverDBClusterZonalRequest::getIsForce() const { + return isForce_; +} + +void FailoverDBClusterZonalRequest::setIsForce(bool isForce) { + isForce_ = isForce; + setParameter(std::string("IsForce"), isForce ? "true" : "false"); +} + diff --git a/polardb/src/model/FailoverDBClusterZonalResult.cc b/polardb/src/model/FailoverDBClusterZonalResult.cc new file mode 100644 index 000000000..d6a0660e7 --- /dev/null +++ b/polardb/src/model/FailoverDBClusterZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +FailoverDBClusterZonalResult::FailoverDBClusterZonalResult() : + ServiceResult() +{} + +FailoverDBClusterZonalResult::FailoverDBClusterZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +FailoverDBClusterZonalResult::~FailoverDBClusterZonalResult() +{} + +void FailoverDBClusterZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/GenerateUpgradeReportForSyncCloneRequest.cc b/polardb/src/model/GenerateUpgradeReportForSyncCloneRequest.cc new file mode 100644 index 000000000..0d02b2468 --- /dev/null +++ b/polardb/src/model/GenerateUpgradeReportForSyncCloneRequest.cc @@ -0,0 +1,144 @@ +/* + * 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::GenerateUpgradeReportForSyncCloneRequest; + +GenerateUpgradeReportForSyncCloneRequest::GenerateUpgradeReportForSyncCloneRequest() + : RpcServiceRequest("polardb", "2017-08-01", "GenerateUpgradeReportForSyncClone") { + setMethod(HttpRequest::Method::Post); +} + +GenerateUpgradeReportForSyncCloneRequest::~GenerateUpgradeReportForSyncCloneRequest() {} + +long GenerateUpgradeReportForSyncCloneRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getCreationCategory() const { + return creationCategory_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setCreationCategory(const std::string &creationCategory) { + creationCategory_ = creationCategory; + setParameter(std::string("CreationCategory"), creationCategory); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getSourceDBClusterId() const { + return sourceDBClusterId_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setSourceDBClusterId(const std::string &sourceDBClusterId) { + sourceDBClusterId_ = sourceDBClusterId; + setParameter(std::string("SourceDBClusterId"), sourceDBClusterId); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getRegionId() const { + return regionId_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getReserve() const { + return reserve_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setReserve(const std::string &reserve) { + reserve_ = reserve; + setParameter(std::string("Reserve"), reserve); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getCreationOption() const { + return creationOption_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setCreationOption(const std::string &creationOption) { + creationOption_ = creationOption; + setParameter(std::string("CreationOption"), creationOption); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GenerateUpgradeReportForSyncCloneRequest::getOwnerId() const { + return ownerId_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getDBName() const { + return dBName_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getDBType() const { + return dBType_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string GenerateUpgradeReportForSyncCloneRequest::getDBVersion() const { + return dBVersion_; +} + +void GenerateUpgradeReportForSyncCloneRequest::setDBVersion(const std::string &dBVersion) { + dBVersion_ = dBVersion; + setParameter(std::string("DBVersion"), dBVersion); +} + diff --git a/polardb/src/model/GenerateUpgradeReportForSyncCloneResult.cc b/polardb/src/model/GenerateUpgradeReportForSyncCloneResult.cc new file mode 100644 index 000000000..9b4d5b2d4 --- /dev/null +++ b/polardb/src/model/GenerateUpgradeReportForSyncCloneResult.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; + +GenerateUpgradeReportForSyncCloneResult::GenerateUpgradeReportForSyncCloneResult() : + ServiceResult() +{} + +GenerateUpgradeReportForSyncCloneResult::GenerateUpgradeReportForSyncCloneResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateUpgradeReportForSyncCloneResult::~GenerateUpgradeReportForSyncCloneResult() +{} + +void GenerateUpgradeReportForSyncCloneResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SourceDBClusterId"].isNull()) + sourceDBClusterId_ = value["SourceDBClusterId"].asString(); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +std::string GenerateUpgradeReportForSyncCloneResult::getSourceDBClusterId()const +{ + return sourceDBClusterId_; +} + +long GenerateUpgradeReportForSyncCloneResult::getTaskId()const +{ + return taskId_; +} + diff --git a/polardb/src/model/GrantAccountPrivilegeZonalRequest.cc b/polardb/src/model/GrantAccountPrivilegeZonalRequest.cc new file mode 100644 index 000000000..79d04c4e4 --- /dev/null +++ b/polardb/src/model/GrantAccountPrivilegeZonalRequest.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::GrantAccountPrivilegeZonalRequest; + +GrantAccountPrivilegeZonalRequest::GrantAccountPrivilegeZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "GrantAccountPrivilegeZonal") { + setMethod(HttpRequest::Method::Post); +} + +GrantAccountPrivilegeZonalRequest::~GrantAccountPrivilegeZonalRequest() {} + +long GrantAccountPrivilegeZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void GrantAccountPrivilegeZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string GrantAccountPrivilegeZonalRequest::getClientToken() const { + return clientToken_; +} + +void GrantAccountPrivilegeZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string GrantAccountPrivilegeZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GrantAccountPrivilegeZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GrantAccountPrivilegeZonalRequest::getAccountPrivilege() const { + return accountPrivilege_; +} + +void GrantAccountPrivilegeZonalRequest::setAccountPrivilege(const std::string &accountPrivilege) { + accountPrivilege_ = accountPrivilege; + setParameter(std::string("AccountPrivilege"), accountPrivilege); +} + +std::string GrantAccountPrivilegeZonalRequest::getAccountName() const { + return accountName_; +} + +void GrantAccountPrivilegeZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string GrantAccountPrivilegeZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void GrantAccountPrivilegeZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string GrantAccountPrivilegeZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void GrantAccountPrivilegeZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string GrantAccountPrivilegeZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void GrantAccountPrivilegeZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long GrantAccountPrivilegeZonalRequest::getOwnerId() const { + return ownerId_; +} + +void GrantAccountPrivilegeZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string GrantAccountPrivilegeZonalRequest::getDBName() const { + return dBName_; +} + +void GrantAccountPrivilegeZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/GrantAccountPrivilegeZonalResult.cc b/polardb/src/model/GrantAccountPrivilegeZonalResult.cc new file mode 100644 index 000000000..535258573 --- /dev/null +++ b/polardb/src/model/GrantAccountPrivilegeZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +GrantAccountPrivilegeZonalResult::GrantAccountPrivilegeZonalResult() : + ServiceResult() +{} + +GrantAccountPrivilegeZonalResult::GrantAccountPrivilegeZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GrantAccountPrivilegeZonalResult::~GrantAccountPrivilegeZonalResult() +{} + +void GrantAccountPrivilegeZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ListOrdersRequest.cc b/polardb/src/model/ListOrdersRequest.cc new file mode 100644 index 000000000..10de704a1 --- /dev/null +++ b/polardb/src/model/ListOrdersRequest.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::ListOrdersRequest; + +ListOrdersRequest::ListOrdersRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ListOrders") { + setMethod(HttpRequest::Method::Post); +} + +ListOrdersRequest::~ListOrdersRequest() {} + +std::string ListOrdersRequest::getProductCode() const { + return productCode_; +} + +void ListOrdersRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string ListOrdersRequest::getOrderStatus() const { + return orderStatus_; +} + +void ListOrdersRequest::setOrderStatus(const std::string &orderStatus) { + orderStatus_ = orderStatus; + setParameter(std::string("OrderStatus"), orderStatus); +} + +int ListOrdersRequest::getPageNumber() const { + return pageNumber_; +} + +void ListOrdersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListOrdersRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ListOrdersRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ListOrdersRequest::getRegionId() const { + return regionId_; +} + +void ListOrdersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListOrdersRequest::getNextToken() const { + return nextToken_; +} + +void ListOrdersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListOrdersRequest::getPageSize() const { + return pageSize_; +} + +void ListOrdersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListOrdersRequest::getInstanceId() const { + return instanceId_; +} + +void ListOrdersRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListOrdersRequest::getMaxResults() const { + return maxResults_; +} + +void ListOrdersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListOrdersRequest::getCategory() const { + return category_; +} + +void ListOrdersRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); +} + diff --git a/polardb/src/model/ListOrdersResult.cc b/polardb/src/model/ListOrdersResult.cc new file mode 100644 index 000000000..552e08cea --- /dev/null +++ b/polardb/src/model/ListOrdersResult.cc @@ -0,0 +1,110 @@ +/* + * 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; + +ListOrdersResult::ListOrdersResult() : + ServiceResult() +{} + +ListOrdersResult::ListOrdersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOrdersResult::~ListOrdersResult() +{} + +void ListOrdersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allOrderListNode = value["OrderList"]["order"]; + for (auto valueOrderListorder : allOrderListNode) + { + Order orderListObject; + if(!valueOrderListorder["AliUid"].isNull()) + orderListObject.aliUid = valueOrderListorder["AliUid"].asString(); + if(!valueOrderListorder["ChargeType"].isNull()) + orderListObject.chargeType = valueOrderListorder["ChargeType"].asString(); + if(!valueOrderListorder["CommodityCode"].isNull()) + orderListObject.commodityCode = valueOrderListorder["CommodityCode"].asString(); + if(!valueOrderListorder["CreatedTime"].isNull()) + orderListObject.createdTime = valueOrderListorder["CreatedTime"].asString(); + if(!valueOrderListorder["InstanceId"].isNull()) + orderListObject.instanceId = valueOrderListorder["InstanceId"].asString(); + if(!valueOrderListorder["OrderId"].isNull()) + orderListObject.orderId = valueOrderListorder["OrderId"].asString(); + if(!valueOrderListorder["OrderStatus"].isNull()) + orderListObject.orderStatus = valueOrderListorder["OrderStatus"].asString(); + if(!valueOrderListorder["OrderType"].isNull()) + orderListObject.orderType = valueOrderListorder["OrderType"].asString(); + if(!valueOrderListorder["ProduceCode"].isNull()) + orderListObject.produceCode = valueOrderListorder["ProduceCode"].asString(); + if(!valueOrderListorder["Region"].isNull()) + orderListObject.region = valueOrderListorder["Region"].asString(); + orderList_.push_back(orderListObject); + } + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListOrdersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListOrdersResult::getNextToken()const +{ + return nextToken_; +} + +int ListOrdersResult::getPageSize()const +{ + return pageSize_; +} + +int ListOrdersResult::getPageNumber()const +{ + return pageNumber_; +} + +int ListOrdersResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListOrdersResult::getOrderList()const +{ + return orderList_; +} + diff --git a/polardb/src/model/ListTagResourcesForRegionRequest.cc b/polardb/src/model/ListTagResourcesForRegionRequest.cc new file mode 100644 index 000000000..731e0eaf9 --- /dev/null +++ b/polardb/src/model/ListTagResourcesForRegionRequest.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::ListTagResourcesForRegionRequest; + +ListTagResourcesForRegionRequest::ListTagResourcesForRegionRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ListTagResourcesForRegion") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesForRegionRequest::~ListTagResourcesForRegionRequest() {} + +long ListTagResourcesForRegionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListTagResourcesForRegionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListTagResourcesForRegionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListTagResourcesForRegionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListTagResourcesForRegionRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesForRegionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesForRegionRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesForRegionRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagResourcesForRegionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListTagResourcesForRegionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListTagResourcesForRegionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListTagResourcesForRegionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListTagResourcesForRegionRequest::getOwnerId() const { + return ownerId_; +} + +void ListTagResourcesForRegionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListTagResourcesForRegionRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesForRegionRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/polardb/src/model/ListTagResourcesForRegionResult.cc b/polardb/src/model/ListTagResourcesForRegionResult.cc new file mode 100644 index 000000000..0cb64b095 --- /dev/null +++ b/polardb/src/model/ListTagResourcesForRegionResult.cc @@ -0,0 +1,70 @@ +/* + * 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; + +ListTagResourcesForRegionResult::ListTagResourcesForRegionResult() : + ServiceResult() +{} + +ListTagResourcesForRegionResult::ListTagResourcesForRegionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesForRegionResult::~ListTagResourcesForRegionResult() +{} + +void ListTagResourcesForRegionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesForRegionResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesForRegionResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/polardb/src/model/ModifyAIDBClusterDescriptionRequest.cc b/polardb/src/model/ModifyAIDBClusterDescriptionRequest.cc new file mode 100644 index 000000000..5bd7c55b0 --- /dev/null +++ b/polardb/src/model/ModifyAIDBClusterDescriptionRequest.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::ModifyAIDBClusterDescriptionRequest; + +ModifyAIDBClusterDescriptionRequest::ModifyAIDBClusterDescriptionRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyAIDBClusterDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAIDBClusterDescriptionRequest::~ModifyAIDBClusterDescriptionRequest() {} + +long ModifyAIDBClusterDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAIDBClusterDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAIDBClusterDescriptionRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void ModifyAIDBClusterDescriptionRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string ModifyAIDBClusterDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAIDBClusterDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAIDBClusterDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAIDBClusterDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAIDBClusterDescriptionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAIDBClusterDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAIDBClusterDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAIDBClusterDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyAIDBClusterDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAIDBClusterDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyAIDBClusterDescriptionResult.cc b/polardb/src/model/ModifyAIDBClusterDescriptionResult.cc new file mode 100644 index 000000000..d759da125 --- /dev/null +++ b/polardb/src/model/ModifyAIDBClusterDescriptionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAIDBClusterDescriptionResult::ModifyAIDBClusterDescriptionResult() : + ServiceResult() +{} + +ModifyAIDBClusterDescriptionResult::ModifyAIDBClusterDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAIDBClusterDescriptionResult::~ModifyAIDBClusterDescriptionResult() +{} + +void ModifyAIDBClusterDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAccountDescriptionZonalRequest.cc b/polardb/src/model/ModifyAccountDescriptionZonalRequest.cc new file mode 100644 index 000000000..19f28849e --- /dev/null +++ b/polardb/src/model/ModifyAccountDescriptionZonalRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyAccountDescriptionZonalRequest; + +ModifyAccountDescriptionZonalRequest::ModifyAccountDescriptionZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountDescriptionZonal") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccountDescriptionZonalRequest::~ModifyAccountDescriptionZonalRequest() {} + +long ModifyAccountDescriptionZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAccountDescriptionZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountDescriptionZonalRequest::getClientToken() const { + return clientToken_; +} + +void ModifyAccountDescriptionZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyAccountDescriptionZonalRequest::getAccountDescription() const { + return accountDescription_; +} + +void ModifyAccountDescriptionZonalRequest::setAccountDescription(const std::string &accountDescription) { + accountDescription_ = accountDescription; + setParameter(std::string("AccountDescription"), accountDescription); +} + +std::string ModifyAccountDescriptionZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAccountDescriptionZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAccountDescriptionZonalRequest::getAccountName() const { + return accountName_; +} + +void ModifyAccountDescriptionZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ModifyAccountDescriptionZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAccountDescriptionZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAccountDescriptionZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAccountDescriptionZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAccountDescriptionZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAccountDescriptionZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyAccountDescriptionZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountDescriptionZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyAccountDescriptionZonalResult.cc b/polardb/src/model/ModifyAccountDescriptionZonalResult.cc new file mode 100644 index 000000000..d011b62bb --- /dev/null +++ b/polardb/src/model/ModifyAccountDescriptionZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAccountDescriptionZonalResult::ModifyAccountDescriptionZonalResult() : + ServiceResult() +{} + +ModifyAccountDescriptionZonalResult::ModifyAccountDescriptionZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountDescriptionZonalResult::~ModifyAccountDescriptionZonalResult() +{} + +void ModifyAccountDescriptionZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAccountLockStateRequest.cc b/polardb/src/model/ModifyAccountLockStateRequest.cc new file mode 100644 index 000000000..6c1b53264 --- /dev/null +++ b/polardb/src/model/ModifyAccountLockStateRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyAccountLockStateRequest; + +ModifyAccountLockStateRequest::ModifyAccountLockStateRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountLockState") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccountLockStateRequest::~ModifyAccountLockStateRequest() {} + +long ModifyAccountLockStateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAccountLockStateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountLockStateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAccountLockStateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAccountLockStateRequest::getAccountName() const { + return accountName_; +} + +void ModifyAccountLockStateRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ModifyAccountLockStateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAccountLockStateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAccountLockStateRequest::getAccountLockState() const { + return accountLockState_; +} + +void ModifyAccountLockStateRequest::setAccountLockState(const std::string &accountLockState) { + accountLockState_ = accountLockState; + setParameter(std::string("AccountLockState"), accountLockState); +} + +std::string ModifyAccountLockStateRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAccountLockStateRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAccountLockStateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAccountLockStateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyAccountLockStateRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountLockStateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyAccountLockStateRequest::getAccountPasswordValidTime() const { + return accountPasswordValidTime_; +} + +void ModifyAccountLockStateRequest::setAccountPasswordValidTime(const std::string &accountPasswordValidTime) { + accountPasswordValidTime_ = accountPasswordValidTime; + setParameter(std::string("AccountPasswordValidTime"), accountPasswordValidTime); +} + diff --git a/polardb/src/model/ModifyAccountLockStateResult.cc b/polardb/src/model/ModifyAccountLockStateResult.cc new file mode 100644 index 000000000..5fc5f196c --- /dev/null +++ b/polardb/src/model/ModifyAccountLockStateResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAccountLockStateResult::ModifyAccountLockStateResult() : + ServiceResult() +{} + +ModifyAccountLockStateResult::ModifyAccountLockStateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountLockStateResult::~ModifyAccountLockStateResult() +{} + +void ModifyAccountLockStateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyAccountPasswordZonalRequest.cc b/polardb/src/model/ModifyAccountPasswordZonalRequest.cc new file mode 100644 index 000000000..f32c3a5ca --- /dev/null +++ b/polardb/src/model/ModifyAccountPasswordZonalRequest.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::ModifyAccountPasswordZonalRequest; + +ModifyAccountPasswordZonalRequest::ModifyAccountPasswordZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyAccountPasswordZonal") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAccountPasswordZonalRequest::~ModifyAccountPasswordZonalRequest() {} + +long ModifyAccountPasswordZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyAccountPasswordZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyAccountPasswordZonalRequest::getClientToken() const { + return clientToken_; +} + +void ModifyAccountPasswordZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyAccountPasswordZonalRequest::getPasswordType() const { + return passwordType_; +} + +void ModifyAccountPasswordZonalRequest::setPasswordType(const std::string &passwordType) { + passwordType_ = passwordType; + setParameter(std::string("PasswordType"), passwordType); +} + +std::string ModifyAccountPasswordZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyAccountPasswordZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyAccountPasswordZonalRequest::getAccountName() const { + return accountName_; +} + +void ModifyAccountPasswordZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ModifyAccountPasswordZonalRequest::getNewAccountPassword() const { + return newAccountPassword_; +} + +void ModifyAccountPasswordZonalRequest::setNewAccountPassword(const std::string &newAccountPassword) { + newAccountPassword_ = newAccountPassword; + setParameter(std::string("NewAccountPassword"), newAccountPassword); +} + +std::string ModifyAccountPasswordZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyAccountPasswordZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyAccountPasswordZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyAccountPasswordZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyAccountPasswordZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyAccountPasswordZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyAccountPasswordZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyAccountPasswordZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyAccountPasswordZonalResult.cc b/polardb/src/model/ModifyAccountPasswordZonalResult.cc new file mode 100644 index 000000000..4bf56d1b7 --- /dev/null +++ b/polardb/src/model/ModifyAccountPasswordZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyAccountPasswordZonalResult::ModifyAccountPasswordZonalResult() : + ServiceResult() +{} + +ModifyAccountPasswordZonalResult::ModifyAccountPasswordZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyAccountPasswordZonalResult::~ModifyAccountPasswordZonalResult() +{} + +void ModifyAccountPasswordZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyActiveOperationMaintainConfRequest.cc b/polardb/src/model/ModifyActiveOperationMaintainConfRequest.cc new file mode 100644 index 000000000..1403f69d7 --- /dev/null +++ b/polardb/src/model/ModifyActiveOperationMaintainConfRequest.cc @@ -0,0 +1,153 @@ +/* + * 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::ModifyActiveOperationMaintainConfRequest; + +ModifyActiveOperationMaintainConfRequest::ModifyActiveOperationMaintainConfRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyActiveOperationMaintainConf") { + setMethod(HttpRequest::Method::Post); +} + +ModifyActiveOperationMaintainConfRequest::~ModifyActiveOperationMaintainConfRequest() {} + +long ModifyActiveOperationMaintainConfRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyActiveOperationMaintainConfRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyActiveOperationMaintainConfRequest::getCycleTime() const { + return cycleTime_; +} + +void ModifyActiveOperationMaintainConfRequest::setCycleTime(const std::string &cycleTime) { + cycleTime_ = cycleTime; + setParameter(std::string("CycleTime"), cycleTime); +} + +std::string ModifyActiveOperationMaintainConfRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyActiveOperationMaintainConfRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyActiveOperationMaintainConfRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyActiveOperationMaintainConfRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ModifyActiveOperationMaintainConfRequest::getSecurityToken() const { + return securityToken_; +} + +void ModifyActiveOperationMaintainConfRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string ModifyActiveOperationMaintainConfRequest::getRegionId() const { + return regionId_; +} + +void ModifyActiveOperationMaintainConfRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyActiveOperationMaintainConfRequest::getMaintainStartTime() const { + return maintainStartTime_; +} + +void ModifyActiveOperationMaintainConfRequest::setMaintainStartTime(const std::string &maintainStartTime) { + maintainStartTime_ = maintainStartTime; + setParameter(std::string("MaintainStartTime"), maintainStartTime); +} + +std::string ModifyActiveOperationMaintainConfRequest::getCycleType() const { + return cycleType_; +} + +void ModifyActiveOperationMaintainConfRequest::setCycleType(const std::string &cycleType) { + cycleType_ = cycleType; + setParameter(std::string("CycleType"), cycleType); +} + +std::string ModifyActiveOperationMaintainConfRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyActiveOperationMaintainConfRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyActiveOperationMaintainConfRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyActiveOperationMaintainConfRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyActiveOperationMaintainConfRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyActiveOperationMaintainConfRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyActiveOperationMaintainConfRequest::getMaintainEndTime() const { + return maintainEndTime_; +} + +void ModifyActiveOperationMaintainConfRequest::setMaintainEndTime(const std::string &maintainEndTime) { + maintainEndTime_ = maintainEndTime; + setParameter(std::string("MaintainEndTime"), maintainEndTime); +} + +std::string ModifyActiveOperationMaintainConfRequest::getComment() const { + return comment_; +} + +void ModifyActiveOperationMaintainConfRequest::setComment(const std::string &comment) { + comment_ = comment; + setParameter(std::string("Comment"), comment); +} + +long ModifyActiveOperationMaintainConfRequest::getStatus() const { + return status_; +} + +void ModifyActiveOperationMaintainConfRequest::setStatus(long status) { + status_ = status; + setParameter(std::string("Status"), std::to_string(status)); +} + diff --git a/polardb/src/model/ModifyActiveOperationMaintainConfResult.cc b/polardb/src/model/ModifyActiveOperationMaintainConfResult.cc new file mode 100644 index 000000000..de24fb1e6 --- /dev/null +++ b/polardb/src/model/ModifyActiveOperationMaintainConfResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyActiveOperationMaintainConfResult::ModifyActiveOperationMaintainConfResult() : + ServiceResult() +{} + +ModifyActiveOperationMaintainConfResult::ModifyActiveOperationMaintainConfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyActiveOperationMaintainConfResult::~ModifyActiveOperationMaintainConfResult() +{} + +void ModifyActiveOperationMaintainConfResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyApplicationDescriptionRequest.cc b/polardb/src/model/ModifyApplicationDescriptionRequest.cc new file mode 100644 index 000000000..20dc29720 --- /dev/null +++ b/polardb/src/model/ModifyApplicationDescriptionRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyApplicationDescriptionRequest; + +ModifyApplicationDescriptionRequest::ModifyApplicationDescriptionRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyApplicationDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyApplicationDescriptionRequest::~ModifyApplicationDescriptionRequest() {} + +std::string ModifyApplicationDescriptionRequest::getDescription() const { + return description_; +} + +void ModifyApplicationDescriptionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyApplicationDescriptionRequest::getApplicationId() const { + return applicationId_; +} + +void ModifyApplicationDescriptionRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/ModifyApplicationDescriptionResult.cc b/polardb/src/model/ModifyApplicationDescriptionResult.cc new file mode 100644 index 000000000..fe418350e --- /dev/null +++ b/polardb/src/model/ModifyApplicationDescriptionResult.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; + +ModifyApplicationDescriptionResult::ModifyApplicationDescriptionResult() : + ServiceResult() +{} + +ModifyApplicationDescriptionResult::ModifyApplicationDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApplicationDescriptionResult::~ModifyApplicationDescriptionResult() +{} + +void ModifyApplicationDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + +} + +std::string ModifyApplicationDescriptionResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/ModifyApplicationParameterRequest.cc b/polardb/src/model/ModifyApplicationParameterRequest.cc new file mode 100644 index 000000000..4208252c3 --- /dev/null +++ b/polardb/src/model/ModifyApplicationParameterRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyApplicationParameterRequest; + +ModifyApplicationParameterRequest::ModifyApplicationParameterRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyApplicationParameter") { + setMethod(HttpRequest::Method::Post); +} + +ModifyApplicationParameterRequest::~ModifyApplicationParameterRequest() {} + +std::string ModifyApplicationParameterRequest::getParameterTemplateId() const { + return parameterTemplateId_; +} + +void ModifyApplicationParameterRequest::setParameterTemplateId(const std::string ¶meterTemplateId) { + parameterTemplateId_ = parameterTemplateId; + setParameter(std::string("ParameterTemplateId"), parameterTemplateId); +} + +std::string ModifyApplicationParameterRequest::getParameterName() const { + return parameterName_; +} + +void ModifyApplicationParameterRequest::setParameterName(const std::string ¶meterName) { + parameterName_ = parameterName; + setParameter(std::string("ParameterName"), parameterName); +} + +std::string ModifyApplicationParameterRequest::getApplicationId() const { + return applicationId_; +} + +void ModifyApplicationParameterRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + +std::string ModifyApplicationParameterRequest::getParameterValue() const { + return parameterValue_; +} + +void ModifyApplicationParameterRequest::setParameterValue(const std::string ¶meterValue) { + parameterValue_ = parameterValue; + setParameter(std::string("ParameterValue"), parameterValue); +} + +std::vector ModifyApplicationParameterRequest::getParameters() const { + return parameters_; +} + +void ModifyApplicationParameterRequest::setParameters(const std::vector ¶meters) { + parameters_ = parameters; + for(int dep1 = 0; dep1 != parameters.size(); dep1++) { + setParameter(std::string("Parameters") + "." + std::to_string(dep1 + 1) + ".ParameterValue", parameters[dep1].parameterValue); + setParameter(std::string("Parameters") + "." + std::to_string(dep1 + 1) + ".ParameterName", parameters[dep1].parameterName); + } +} + diff --git a/polardb/src/model/ModifyApplicationParameterResult.cc b/polardb/src/model/ModifyApplicationParameterResult.cc new file mode 100644 index 000000000..24d0bb9aa --- /dev/null +++ b/polardb/src/model/ModifyApplicationParameterResult.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; + +ModifyApplicationParameterResult::ModifyApplicationParameterResult() : + ServiceResult() +{} + +ModifyApplicationParameterResult::ModifyApplicationParameterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApplicationParameterResult::~ModifyApplicationParameterResult() +{} + +void ModifyApplicationParameterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + +} + +std::string ModifyApplicationParameterResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/ModifyApplicationServerlessConfRequest.cc b/polardb/src/model/ModifyApplicationServerlessConfRequest.cc new file mode 100644 index 000000000..2d79c6402 --- /dev/null +++ b/polardb/src/model/ModifyApplicationServerlessConfRequest.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 + +using AlibabaCloud::Polardb::Model::ModifyApplicationServerlessConfRequest; + +ModifyApplicationServerlessConfRequest::ModifyApplicationServerlessConfRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyApplicationServerlessConf") { + setMethod(HttpRequest::Method::Post); +} + +ModifyApplicationServerlessConfRequest::~ModifyApplicationServerlessConfRequest() {} + +std::vector ModifyApplicationServerlessConfRequest::getServerlessConfList() const { + return serverlessConfList_; +} + +void ModifyApplicationServerlessConfRequest::setServerlessConfList(const std::vector &serverlessConfList) { + serverlessConfList_ = serverlessConfList; + for(int dep1 = 0; dep1 != serverlessConfList.size(); dep1++) { + auto serverlessConfListObj = serverlessConfList.at(dep1); + std::string serverlessConfListObjStr = std::string("ServerlessConfList") + "." + std::to_string(dep1 + 1); + setParameter(serverlessConfListObjStr + ".ComponentType", serverlessConfListObj.componentType); + setParameter(serverlessConfListObjStr + ".ScaleMax", serverlessConfListObj.scaleMax); + setParameter(serverlessConfListObjStr + ".ScaleMin", serverlessConfListObj.scaleMin); + } +} + +std::string ModifyApplicationServerlessConfRequest::getApplicationId() const { + return applicationId_; +} + +void ModifyApplicationServerlessConfRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + diff --git a/polardb/src/model/ModifyApplicationServerlessConfResult.cc b/polardb/src/model/ModifyApplicationServerlessConfResult.cc new file mode 100644 index 000000000..1ecddc567 --- /dev/null +++ b/polardb/src/model/ModifyApplicationServerlessConfResult.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; + +ModifyApplicationServerlessConfResult::ModifyApplicationServerlessConfResult() : + ServiceResult() +{} + +ModifyApplicationServerlessConfResult::ModifyApplicationServerlessConfResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApplicationServerlessConfResult::~ModifyApplicationServerlessConfResult() +{} + +void ModifyApplicationServerlessConfResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + +} + +std::string ModifyApplicationServerlessConfResult::getApplicationId()const +{ + return applicationId_; +} + diff --git a/polardb/src/model/ModifyApplicationWhitelistRequest.cc b/polardb/src/model/ModifyApplicationWhitelistRequest.cc new file mode 100644 index 000000000..4b5976e4b --- /dev/null +++ b/polardb/src/model/ModifyApplicationWhitelistRequest.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::ModifyApplicationWhitelistRequest; + +ModifyApplicationWhitelistRequest::ModifyApplicationWhitelistRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyApplicationWhitelist") { + setMethod(HttpRequest::Method::Post); +} + +ModifyApplicationWhitelistRequest::~ModifyApplicationWhitelistRequest() {} + +std::string ModifyApplicationWhitelistRequest::getApplicationId() const { + return applicationId_; +} + +void ModifyApplicationWhitelistRequest::setApplicationId(const std::string &applicationId) { + applicationId_ = applicationId; + setParameter(std::string("ApplicationId"), applicationId); +} + +std::string ModifyApplicationWhitelistRequest::getSecurityIPArrayName() const { + return securityIPArrayName_; +} + +void ModifyApplicationWhitelistRequest::setSecurityIPArrayName(const std::string &securityIPArrayName) { + securityIPArrayName_ = securityIPArrayName; + setParameter(std::string("SecurityIPArrayName"), securityIPArrayName); +} + +std::string ModifyApplicationWhitelistRequest::getModifyMode() const { + return modifyMode_; +} + +void ModifyApplicationWhitelistRequest::setModifyMode(const std::string &modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("ModifyMode"), modifyMode); +} + +std::string ModifyApplicationWhitelistRequest::getComponentId() const { + return componentId_; +} + +void ModifyApplicationWhitelistRequest::setComponentId(const std::string &componentId) { + componentId_ = componentId; + setParameter(std::string("ComponentId"), componentId); +} + +std::string ModifyApplicationWhitelistRequest::getSecurityIPList() const { + return securityIPList_; +} + +void ModifyApplicationWhitelistRequest::setSecurityIPList(const std::string &securityIPList) { + securityIPList_ = securityIPList; + setParameter(std::string("SecurityIPList"), securityIPList); +} + +std::string ModifyApplicationWhitelistRequest::getSecurityGroups() const { + return securityGroups_; +} + +void ModifyApplicationWhitelistRequest::setSecurityGroups(const std::string &securityGroups) { + securityGroups_ = securityGroups; + setParameter(std::string("SecurityGroups"), securityGroups); +} + diff --git a/polardb/src/model/ModifyApplicationWhitelistResult.cc b/polardb/src/model/ModifyApplicationWhitelistResult.cc new file mode 100644 index 000000000..65e08311c --- /dev/null +++ b/polardb/src/model/ModifyApplicationWhitelistResult.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; + +ModifyApplicationWhitelistResult::ModifyApplicationWhitelistResult() : + ServiceResult() +{} + +ModifyApplicationWhitelistResult::ModifyApplicationWhitelistResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyApplicationWhitelistResult::~ModifyApplicationWhitelistResult() +{} + +void ModifyApplicationWhitelistResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ApplicationId"].isNull()) + applicationId_ = value["ApplicationId"].asString(); + if(!value["ComponentId"].isNull()) + componentId_ = value["ComponentId"].asString(); + +} + +std::string ModifyApplicationWhitelistResult::getApplicationId()const +{ + return applicationId_; +} + +std::string ModifyApplicationWhitelistResult::getComponentId()const +{ + return componentId_; +} + diff --git a/polardb/src/model/ModifyAutoRenewAttributeRequest.cc b/polardb/src/model/ModifyAutoRenewAttributeRequest.cc index df67c3ef4..4ec4b00a9 100644 --- a/polardb/src/model/ModifyAutoRenewAttributeRequest.cc +++ b/polardb/src/model/ModifyAutoRenewAttributeRequest.cc @@ -52,6 +52,15 @@ void ModifyAutoRenewAttributeRequest::setDuration(const std::string &duration) { setParameter(std::string("Duration"), duration); } +std::string ModifyAutoRenewAttributeRequest::getCloudProvider() const { + return cloudProvider_; +} + +void ModifyAutoRenewAttributeRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string ModifyAutoRenewAttributeRequest::getResourceGroupId() const { return resourceGroupId_; } diff --git a/polardb/src/model/ModifyBackupPolicyRequest.cc b/polardb/src/model/ModifyBackupPolicyRequest.cc index 9fbbb2389..1ffe7a0de 100644 --- a/polardb/src/model/ModifyBackupPolicyRequest.cc +++ b/polardb/src/model/ModifyBackupPolicyRequest.cc @@ -52,6 +52,32 @@ void ModifyBackupPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::vector ModifyBackupPolicyRequest::getAdvancedDataPolicies() const { + return advancedDataPolicies_; +} + +void ModifyBackupPolicyRequest::setAdvancedDataPolicies(const std::vector &advancedDataPolicies) { + advancedDataPolicies_ = advancedDataPolicies; + for(int dep1 = 0; dep1 != advancedDataPolicies.size(); dep1++) { + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".ActionType", advancedDataPolicies[dep1].actionType); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".SrcType", advancedDataPolicies[dep1].srcType); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".RetentionValue", advancedDataPolicies[dep1].retentionValue); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".DestRegion", advancedDataPolicies[dep1].destRegion); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".BakType", advancedDataPolicies[dep1].bakType); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".OnlyPreserveOneEachDay", advancedDataPolicies[dep1].onlyPreserveOneEachDay ? "true" : "false"); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".FilterValue", advancedDataPolicies[dep1].filterValue); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".DumpAction", advancedDataPolicies[dep1].dumpAction); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".OnlyPreserveOneEachHour", advancedDataPolicies[dep1].onlyPreserveOneEachHour ? "true" : "false"); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".SrcRegion", advancedDataPolicies[dep1].srcRegion); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".FilterType", advancedDataPolicies[dep1].filterType); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".RetentionType", advancedDataPolicies[dep1].retentionType); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".FilterKey", advancedDataPolicies[dep1].filterKey); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".AutoCreated", advancedDataPolicies[dep1].autoCreated ? "true" : "false"); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".PolicyId", advancedDataPolicies[dep1].policyId); + setParameter(std::string("AdvancedDataPolicies") + "." + std::to_string(dep1 + 1) + ".DestType", advancedDataPolicies[dep1].destType); + } +} + std::string ModifyBackupPolicyRequest::getDataLevel1BackupPeriod() const { return dataLevel1BackupPeriod_; } @@ -133,6 +159,15 @@ void ModifyBackupPolicyRequest::setDataLevel2BackupAnotherRegionRetentionPeriod( setParameter(std::string("DataLevel2BackupAnotherRegionRetentionPeriod"), dataLevel2BackupAnotherRegionRetentionPeriod); } +std::string ModifyBackupPolicyRequest::getBackupPolicyLevel() const { + return backupPolicyLevel_; +} + +void ModifyBackupPolicyRequest::setBackupPolicyLevel(const std::string &backupPolicyLevel) { + backupPolicyLevel_ = backupPolicyLevel; + setParameter(std::string("BackupPolicyLevel"), backupPolicyLevel); +} + long ModifyBackupPolicyRequest::getOwnerId() const { return ownerId_; } diff --git a/polardb/src/model/ModifyCronJobPolicyServerlessRequest.cc b/polardb/src/model/ModifyCronJobPolicyServerlessRequest.cc new file mode 100644 index 000000000..5ba62edf0 --- /dev/null +++ b/polardb/src/model/ModifyCronJobPolicyServerlessRequest.cc @@ -0,0 +1,225 @@ +/* + * 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::ModifyCronJobPolicyServerlessRequest; + +ModifyCronJobPolicyServerlessRequest::ModifyCronJobPolicyServerlessRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyCronJobPolicyServerless") { + setMethod(HttpRequest::Method::Post); +} + +ModifyCronJobPolicyServerlessRequest::~ModifyCronJobPolicyServerlessRequest() {} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleRoNumMax() const { + return scaleRoNumMax_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleRoNumMax(const std::string &scaleRoNumMax) { + scaleRoNumMax_ = scaleRoNumMax; + setParameter(std::string("ScaleRoNumMax"), scaleRoNumMax); +} + +long ModifyCronJobPolicyServerlessRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyCronJobPolicyServerlessRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyCronJobPolicyServerlessRequest::getCronExpression() const { + return cronExpression_; +} + +void ModifyCronJobPolicyServerlessRequest::setCronExpression(const std::string &cronExpression) { + cronExpression_ = cronExpression; + setParameter(std::string("CronExpression"), cronExpression); +} + +std::string ModifyCronJobPolicyServerlessRequest::getServerlessRuleMode() const { + return serverlessRuleMode_; +} + +void ModifyCronJobPolicyServerlessRequest::setServerlessRuleMode(const std::string &serverlessRuleMode) { + serverlessRuleMode_ = serverlessRuleMode; + setParameter(std::string("ServerlessRuleMode"), serverlessRuleMode); +} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleApRoNumMax() const { + return scaleApRoNumMax_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleApRoNumMax(const std::string &scaleApRoNumMax) { + scaleApRoNumMax_ = scaleApRoNumMax; + setParameter(std::string("ScaleApRoNumMax"), scaleApRoNumMax); +} + +std::string ModifyCronJobPolicyServerlessRequest::getStartTime() const { + return startTime_; +} + +void ModifyCronJobPolicyServerlessRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleMax() const { + return scaleMax_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleMax(const std::string &scaleMax) { + scaleMax_ = scaleMax; + setParameter(std::string("ScaleMax"), scaleMax); +} + +std::string ModifyCronJobPolicyServerlessRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyCronJobPolicyServerlessRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyCronJobPolicyServerlessRequest::getServerlessRuleCpuEnlargeThreshold() const { + return serverlessRuleCpuEnlargeThreshold_; +} + +void ModifyCronJobPolicyServerlessRequest::setServerlessRuleCpuEnlargeThreshold(const std::string &serverlessRuleCpuEnlargeThreshold) { + serverlessRuleCpuEnlargeThreshold_ = serverlessRuleCpuEnlargeThreshold; + setParameter(std::string("ServerlessRuleCpuEnlargeThreshold"), serverlessRuleCpuEnlargeThreshold); +} + +std::string ModifyCronJobPolicyServerlessRequest::getJobId() const { + return jobId_; +} + +void ModifyCronJobPolicyServerlessRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +std::string ModifyCronJobPolicyServerlessRequest::getSecondsUntilAutoPause() const { + return secondsUntilAutoPause_; +} + +void ModifyCronJobPolicyServerlessRequest::setSecondsUntilAutoPause(const std::string &secondsUntilAutoPause) { + secondsUntilAutoPause_ = secondsUntilAutoPause; + setParameter(std::string("SecondsUntilAutoPause"), secondsUntilAutoPause); +} + +std::string ModifyCronJobPolicyServerlessRequest::getRegionId() const { + return regionId_; +} + +void ModifyCronJobPolicyServerlessRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleApRoNumMin() const { + return scaleApRoNumMin_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleApRoNumMin(const std::string &scaleApRoNumMin) { + scaleApRoNumMin_ = scaleApRoNumMin; + setParameter(std::string("ScaleApRoNumMin"), scaleApRoNumMin); +} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleMin() const { + return scaleMin_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleMin(const std::string &scaleMin) { + scaleMin_ = scaleMin; + setParameter(std::string("ScaleMin"), scaleMin); +} + +std::string ModifyCronJobPolicyServerlessRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyCronJobPolicyServerlessRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyCronJobPolicyServerlessRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyCronJobPolicyServerlessRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyCronJobPolicyServerlessRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyCronJobPolicyServerlessRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyCronJobPolicyServerlessRequest::getEndTime() const { + return endTime_; +} + +void ModifyCronJobPolicyServerlessRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string ModifyCronJobPolicyServerlessRequest::getServerlessRuleCpuShrinkThreshold() const { + return serverlessRuleCpuShrinkThreshold_; +} + +void ModifyCronJobPolicyServerlessRequest::setServerlessRuleCpuShrinkThreshold(const std::string &serverlessRuleCpuShrinkThreshold) { + serverlessRuleCpuShrinkThreshold_ = serverlessRuleCpuShrinkThreshold; + setParameter(std::string("ServerlessRuleCpuShrinkThreshold"), serverlessRuleCpuShrinkThreshold); +} + +long ModifyCronJobPolicyServerlessRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyCronJobPolicyServerlessRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyCronJobPolicyServerlessRequest::getScaleRoNumMin() const { + return scaleRoNumMin_; +} + +void ModifyCronJobPolicyServerlessRequest::setScaleRoNumMin(const std::string &scaleRoNumMin) { + scaleRoNumMin_ = scaleRoNumMin; + setParameter(std::string("ScaleRoNumMin"), scaleRoNumMin); +} + +std::string ModifyCronJobPolicyServerlessRequest::getAllowShutDown() const { + return allowShutDown_; +} + +void ModifyCronJobPolicyServerlessRequest::setAllowShutDown(const std::string &allowShutDown) { + allowShutDown_ = allowShutDown; + setParameter(std::string("AllowShutDown"), allowShutDown); +} + diff --git a/polardb/src/model/ModifyCronJobPolicyServerlessResult.cc b/polardb/src/model/ModifyCronJobPolicyServerlessResult.cc new file mode 100644 index 000000000..49527a3e2 --- /dev/null +++ b/polardb/src/model/ModifyCronJobPolicyServerlessResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyCronJobPolicyServerlessResult::ModifyCronJobPolicyServerlessResult() : + ServiceResult() +{} + +ModifyCronJobPolicyServerlessResult::ModifyCronJobPolicyServerlessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyCronJobPolicyServerlessResult::~ModifyCronJobPolicyServerlessResult() +{} + +void ModifyCronJobPolicyServerlessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterArchRequest.cc b/polardb/src/model/ModifyDBClusterArchRequest.cc new file mode 100644 index 000000000..bff14ee48 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterArchRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyDBClusterArchRequest; + +ModifyDBClusterArchRequest::ModifyDBClusterArchRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterArch") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterArchRequest::~ModifyDBClusterArchRequest() {} + +std::string ModifyDBClusterArchRequest::getStandbyAZ() const { + return standbyAZ_; +} + +void ModifyDBClusterArchRequest::setStandbyAZ(const std::string &standbyAZ) { + standbyAZ_ = standbyAZ; + setParameter(std::string("StandbyAZ"), standbyAZ); +} + +std::string ModifyDBClusterArchRequest::getRegionId() const { + return regionId_; +} + +void ModifyDBClusterArchRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyDBClusterArchRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterArchRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterArchRequest::getHotStandbyCluster() const { + return hotStandbyCluster_; +} + +void ModifyDBClusterArchRequest::setHotStandbyCluster(const std::string &hotStandbyCluster) { + hotStandbyCluster_ = hotStandbyCluster; + setParameter(std::string("HotStandbyCluster"), hotStandbyCluster); +} + diff --git a/polardb/src/model/ModifyDBClusterArchResult.cc b/polardb/src/model/ModifyDBClusterArchResult.cc new file mode 100644 index 000000000..c20a824ff --- /dev/null +++ b/polardb/src/model/ModifyDBClusterArchResult.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; + +ModifyDBClusterArchResult::ModifyDBClusterArchResult() : + ServiceResult() +{} + +ModifyDBClusterArchResult::ModifyDBClusterArchResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterArchResult::~ModifyDBClusterArchResult() +{} + +void ModifyDBClusterArchResult::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 ModifyDBClusterArchResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string ModifyDBClusterArchResult::getOrderId()const +{ + return orderId_; +} + diff --git a/polardb/src/model/ModifyDBClusterDescriptionRequest.cc b/polardb/src/model/ModifyDBClusterDescriptionRequest.cc index 01b0a2284..8f95a3671 100644 --- a/polardb/src/model/ModifyDBClusterDescriptionRequest.cc +++ b/polardb/src/model/ModifyDBClusterDescriptionRequest.cc @@ -52,6 +52,15 @@ void ModifyDBClusterDescriptionRequest::setAccessKeyId(const std::string &access setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBClusterDescriptionRequest::getSubGroupName() const { + return subGroupName_; +} + +void ModifyDBClusterDescriptionRequest::setSubGroupName(const std::string &subGroupName) { + subGroupName_ = subGroupName; + setParameter(std::string("SubGroupName"), subGroupName); +} + std::string ModifyDBClusterDescriptionRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/ModifyDBClusterDescriptionZonalRequest.cc b/polardb/src/model/ModifyDBClusterDescriptionZonalRequest.cc new file mode 100644 index 000000000..43d2b9f35 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterDescriptionZonalRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyDBClusterDescriptionZonalRequest; + +ModifyDBClusterDescriptionZonalRequest::ModifyDBClusterDescriptionZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterDescriptionZonal") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterDescriptionZonalRequest::~ModifyDBClusterDescriptionZonalRequest() {} + +long ModifyDBClusterDescriptionZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterDescriptionZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getDBClusterDescription() const { + return dBClusterDescription_; +} + +void ModifyDBClusterDescriptionZonalRequest::setDBClusterDescription(const std::string &dBClusterDescription) { + dBClusterDescription_ = dBClusterDescription; + setParameter(std::string("DBClusterDescription"), dBClusterDescription); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDBClusterDescriptionZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterDescriptionZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getSubGroupName() const { + return subGroupName_; +} + +void ModifyDBClusterDescriptionZonalRequest::setSubGroupName(const std::string &subGroupName) { + subGroupName_ = subGroupName; + setParameter(std::string("SubGroupName"), subGroupName); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterDescriptionZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterDescriptionZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterDescriptionZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterDescriptionZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterDescriptionZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterDescriptionZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyDBClusterDescriptionZonalResult.cc b/polardb/src/model/ModifyDBClusterDescriptionZonalResult.cc new file mode 100644 index 000000000..d7bce3462 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterDescriptionZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterDescriptionZonalResult::ModifyDBClusterDescriptionZonalResult() : + ServiceResult() +{} + +ModifyDBClusterDescriptionZonalResult::ModifyDBClusterDescriptionZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterDescriptionZonalResult::~ModifyDBClusterDescriptionZonalResult() +{} + +void ModifyDBClusterDescriptionZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterEndpointZonalRequest.cc b/polardb/src/model/ModifyDBClusterEndpointZonalRequest.cc new file mode 100644 index 000000000..c392e6789 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterEndpointZonalRequest.cc @@ -0,0 +1,171 @@ +/* + * 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::ModifyDBClusterEndpointZonalRequest; + +ModifyDBClusterEndpointZonalRequest::ModifyDBClusterEndpointZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterEndpointZonal") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterEndpointZonalRequest::~ModifyDBClusterEndpointZonalRequest() {} + +std::string ModifyDBClusterEndpointZonalRequest::getAutoAddNewNodes() const { + return autoAddNewNodes_; +} + +void ModifyDBClusterEndpointZonalRequest::setAutoAddNewNodes(const std::string &autoAddNewNodes) { + autoAddNewNodes_ = autoAddNewNodes; + setParameter(std::string("AutoAddNewNodes"), autoAddNewNodes); +} + +long ModifyDBClusterEndpointZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterEndpointZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterEndpointZonalRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDBClusterEndpointZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDBClusterEndpointZonalRequest::getDBEndpointId() const { + return dBEndpointId_; +} + +void ModifyDBClusterEndpointZonalRequest::setDBEndpointId(const std::string &dBEndpointId) { + dBEndpointId_ = dBEndpointId; + setParameter(std::string("DBEndpointId"), dBEndpointId); +} + +std::string ModifyDBClusterEndpointZonalRequest::getPolarSccWaitTimeout() const { + return polarSccWaitTimeout_; +} + +void ModifyDBClusterEndpointZonalRequest::setPolarSccWaitTimeout(const std::string &polarSccWaitTimeout) { + polarSccWaitTimeout_ = polarSccWaitTimeout; + setParameter(std::string("PolarSccWaitTimeout"), polarSccWaitTimeout); +} + +std::string ModifyDBClusterEndpointZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterEndpointZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterEndpointZonalRequest::getReadWriteMode() const { + return readWriteMode_; +} + +void ModifyDBClusterEndpointZonalRequest::setReadWriteMode(const std::string &readWriteMode) { + readWriteMode_ = readWriteMode; + setParameter(std::string("ReadWriteMode"), readWriteMode); +} + +std::string ModifyDBClusterEndpointZonalRequest::getPolarSccTimeoutAction() const { + return polarSccTimeoutAction_; +} + +void ModifyDBClusterEndpointZonalRequest::setPolarSccTimeoutAction(const std::string &polarSccTimeoutAction) { + polarSccTimeoutAction_ = polarSccTimeoutAction; + setParameter(std::string("PolarSccTimeoutAction"), polarSccTimeoutAction); +} + +std::string ModifyDBClusterEndpointZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterEndpointZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterEndpointZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterEndpointZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterEndpointZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterEndpointZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyDBClusterEndpointZonalRequest::getEndpointConfig() const { + return endpointConfig_; +} + +void ModifyDBClusterEndpointZonalRequest::setEndpointConfig(const std::string &endpointConfig) { + endpointConfig_ = endpointConfig; + setParameter(std::string("EndpointConfig"), endpointConfig); +} + +std::string ModifyDBClusterEndpointZonalRequest::getDBEndpointDescription() const { + return dBEndpointDescription_; +} + +void ModifyDBClusterEndpointZonalRequest::setDBEndpointDescription(const std::string &dBEndpointDescription) { + dBEndpointDescription_ = dBEndpointDescription; + setParameter(std::string("DBEndpointDescription"), dBEndpointDescription); +} + +long ModifyDBClusterEndpointZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterEndpointZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBClusterEndpointZonalRequest::getNodes() const { + return nodes_; +} + +void ModifyDBClusterEndpointZonalRequest::setNodes(const std::string &nodes) { + nodes_ = nodes; + setParameter(std::string("Nodes"), nodes); +} + +std::string ModifyDBClusterEndpointZonalRequest::getSccMode() const { + return sccMode_; +} + +void ModifyDBClusterEndpointZonalRequest::setSccMode(const std::string &sccMode) { + sccMode_ = sccMode; + setParameter(std::string("SccMode"), sccMode); +} + diff --git a/polardb/src/model/ModifyDBClusterEndpointZonalResult.cc b/polardb/src/model/ModifyDBClusterEndpointZonalResult.cc new file mode 100644 index 000000000..48ea6cefc --- /dev/null +++ b/polardb/src/model/ModifyDBClusterEndpointZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterEndpointZonalResult::ModifyDBClusterEndpointZonalResult() : + ServiceResult() +{} + +ModifyDBClusterEndpointZonalResult::ModifyDBClusterEndpointZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterEndpointZonalResult::~ModifyDBClusterEndpointZonalResult() +{} + +void ModifyDBClusterEndpointZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterMigrationEndpointRequest.cc b/polardb/src/model/ModifyDBClusterMigrationEndpointRequest.cc new file mode 100644 index 000000000..bb8c6ebdd --- /dev/null +++ b/polardb/src/model/ModifyDBClusterMigrationEndpointRequest.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::ModifyDBClusterMigrationEndpointRequest; + +ModifyDBClusterMigrationEndpointRequest::ModifyDBClusterMigrationEndpointRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMigrationEndpoint") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterMigrationEndpointRequest::~ModifyDBClusterMigrationEndpointRequest() {} + +long ModifyDBClusterMigrationEndpointRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterMigrationEndpointRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterMigrationEndpointRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterMigrationEndpointRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterMigrationEndpointRequest::getMigrationConfig() const { + return migrationConfig_; +} + +void ModifyDBClusterMigrationEndpointRequest::setMigrationConfig(const std::string &migrationConfig) { + migrationConfig_ = migrationConfig; + setParameter(std::string("MigrationConfig"), migrationConfig); +} + +std::string ModifyDBClusterMigrationEndpointRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterMigrationEndpointRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterMigrationEndpointRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterMigrationEndpointRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterMigrationEndpointRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterMigrationEndpointRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterMigrationEndpointRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterMigrationEndpointRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyDBClusterMigrationEndpointResult.cc b/polardb/src/model/ModifyDBClusterMigrationEndpointResult.cc new file mode 100644 index 000000000..6d6b9dd6a --- /dev/null +++ b/polardb/src/model/ModifyDBClusterMigrationEndpointResult.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; + +ModifyDBClusterMigrationEndpointResult::ModifyDBClusterMigrationEndpointResult() : + ServiceResult() +{} + +ModifyDBClusterMigrationEndpointResult::ModifyDBClusterMigrationEndpointResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterMigrationEndpointResult::~ModifyDBClusterMigrationEndpointResult() +{} + +void ModifyDBClusterMigrationEndpointResult::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["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string ModifyDBClusterMigrationEndpointResult::getTaskId()const +{ + return taskId_; +} + +std::string ModifyDBClusterMigrationEndpointResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/ModifyDBClusterRequest.cc b/polardb/src/model/ModifyDBClusterRequest.cc index 3ddf666d8..547c5374a 100644 --- a/polardb/src/model/ModifyDBClusterRequest.cc +++ b/polardb/src/model/ModifyDBClusterRequest.cc @@ -70,6 +70,15 @@ void ModifyDBClusterRequest::setStandbyHAMode(const std::string &standbyHAMode) setParameter(std::string("StandbyHAMode"), standbyHAMode); } +std::string ModifyDBClusterRequest::getPlannedEscapeTime() const { + return plannedEscapeTime_; +} + +void ModifyDBClusterRequest::setPlannedEscapeTime(const std::string &plannedEscapeTime) { + plannedEscapeTime_ = plannedEscapeTime; + setParameter(std::string("PlannedEscapeTime"), plannedEscapeTime); +} + std::string ModifyDBClusterRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/ModifyDBClusterStorageSpaceRequest.cc b/polardb/src/model/ModifyDBClusterStorageSpaceRequest.cc index 80ca671d2..01eaa1880 100644 --- a/polardb/src/model/ModifyDBClusterStorageSpaceRequest.cc +++ b/polardb/src/model/ModifyDBClusterStorageSpaceRequest.cc @@ -61,6 +61,15 @@ void ModifyDBClusterStorageSpaceRequest::setAccessKeyId(const std::string &acces setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBClusterStorageSpaceRequest::getCloudProvider() const { + return cloudProvider_; +} + +void ModifyDBClusterStorageSpaceRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string ModifyDBClusterStorageSpaceRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/ModifyDBClusterVpcRequest.cc b/polardb/src/model/ModifyDBClusterVpcRequest.cc new file mode 100644 index 000000000..ed5f09d0c --- /dev/null +++ b/polardb/src/model/ModifyDBClusterVpcRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyDBClusterVpcRequest; + +ModifyDBClusterVpcRequest::ModifyDBClusterVpcRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterVpc") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterVpcRequest::~ModifyDBClusterVpcRequest() {} + +long ModifyDBClusterVpcRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBClusterVpcRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterVpcRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBClusterVpcRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBClusterVpcRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBClusterVpcRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBClusterVpcRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBClusterVpcRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBClusterVpcRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBClusterVpcRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBClusterVpcRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBClusterVpcRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBClusterVpcRequest::getVSwitchId() const { + return vSwitchId_; +} + +void ModifyDBClusterVpcRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string ModifyDBClusterVpcRequest::getExistedEndpointSwitchType() const { + return existedEndpointSwitchType_; +} + +void ModifyDBClusterVpcRequest::setExistedEndpointSwitchType(const std::string &existedEndpointSwitchType) { + existedEndpointSwitchType_ = existedEndpointSwitchType; + setParameter(std::string("ExistedEndpointSwitchType"), existedEndpointSwitchType); +} + +std::string ModifyDBClusterVpcRequest::getVPCId() const { + return vPCId_; +} + +void ModifyDBClusterVpcRequest::setVPCId(const std::string &vPCId) { + vPCId_ = vPCId; + setParameter(std::string("VPCId"), vPCId); +} + diff --git a/polardb/src/model/ModifyDBClusterVpcResult.cc b/polardb/src/model/ModifyDBClusterVpcResult.cc new file mode 100644 index 000000000..70cbc7219 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterVpcResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterVpcResult::ModifyDBClusterVpcResult() : + ServiceResult() +{} + +ModifyDBClusterVpcResult::ModifyDBClusterVpcResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterVpcResult::~ModifyDBClusterVpcResult() +{} + +void ModifyDBClusterVpcResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBDescriptionZonalRequest.cc b/polardb/src/model/ModifyDBDescriptionZonalRequest.cc new file mode 100644 index 000000000..c81cfb630 --- /dev/null +++ b/polardb/src/model/ModifyDBDescriptionZonalRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyDBDescriptionZonalRequest; + +ModifyDBDescriptionZonalRequest::ModifyDBDescriptionZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBDescriptionZonal") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBDescriptionZonalRequest::~ModifyDBDescriptionZonalRequest() {} + +long ModifyDBDescriptionZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBDescriptionZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBDescriptionZonalRequest::getClientToken() const { + return clientToken_; +} + +void ModifyDBDescriptionZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ModifyDBDescriptionZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBDescriptionZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBDescriptionZonalRequest::getDBDescription() const { + return dBDescription_; +} + +void ModifyDBDescriptionZonalRequest::setDBDescription(const std::string &dBDescription) { + dBDescription_ = dBDescription; + setParameter(std::string("DBDescription"), dBDescription); +} + +std::string ModifyDBDescriptionZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBDescriptionZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBDescriptionZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBDescriptionZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBDescriptionZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBDescriptionZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBDescriptionZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBDescriptionZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBDescriptionZonalRequest::getDBName() const { + return dBName_; +} + +void ModifyDBDescriptionZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/ModifyDBDescriptionZonalResult.cc b/polardb/src/model/ModifyDBDescriptionZonalResult.cc new file mode 100644 index 000000000..148f1ed02 --- /dev/null +++ b/polardb/src/model/ModifyDBDescriptionZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBDescriptionZonalResult::ModifyDBDescriptionZonalResult() : + ServiceResult() +{} + +ModifyDBDescriptionZonalResult::ModifyDBDescriptionZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBDescriptionZonalResult::~ModifyDBDescriptionZonalResult() +{} + +void ModifyDBDescriptionZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBNodeClassRequest.cc b/polardb/src/model/ModifyDBNodeClassRequest.cc index 6ac04c792..d66136443 100644 --- a/polardb/src/model/ModifyDBNodeClassRequest.cc +++ b/polardb/src/model/ModifyDBNodeClassRequest.cc @@ -61,6 +61,15 @@ void ModifyDBNodeClassRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBNodeClassRequest::getCloudProvider() const { + return cloudProvider_; +} + +void ModifyDBNodeClassRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string ModifyDBNodeClassRequest::getDBNodeType() const { return dBNodeType_; } diff --git a/polardb/src/model/ModifyDBNodeConfigRequest.cc b/polardb/src/model/ModifyDBNodeConfigRequest.cc new file mode 100644 index 000000000..654b990fb --- /dev/null +++ b/polardb/src/model/ModifyDBNodeConfigRequest.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::ModifyDBNodeConfigRequest; + +ModifyDBNodeConfigRequest::ModifyDBNodeConfigRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeConfig") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBNodeConfigRequest::~ModifyDBNodeConfigRequest() {} + +long ModifyDBNodeConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBNodeConfigRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBNodeConfigRequest::getDBNodeId() const { + return dBNodeId_; +} + +void ModifyDBNodeConfigRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string ModifyDBNodeConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBNodeConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBNodeConfigRequest::getSecurityToken() const { + return securityToken_; +} + +void ModifyDBNodeConfigRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); +} + +std::string ModifyDBNodeConfigRequest::getConfigName() const { + return configName_; +} + +void ModifyDBNodeConfigRequest::setConfigName(const std::string &configName) { + configName_ = configName; + setParameter(std::string("ConfigName"), configName); +} + +std::string ModifyDBNodeConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBNodeConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBNodeConfigRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBNodeConfigRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBNodeConfigRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBNodeConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyDBNodeConfigRequest::getConfigValue() const { + return configValue_; +} + +void ModifyDBNodeConfigRequest::setConfigValue(const std::string &configValue) { + configValue_ = configValue; + setParameter(std::string("ConfigValue"), configValue); +} + +long ModifyDBNodeConfigRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBNodeConfigRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyDBNodeConfigResult.cc b/polardb/src/model/ModifyDBNodeConfigResult.cc new file mode 100644 index 000000000..cf2c8a427 --- /dev/null +++ b/polardb/src/model/ModifyDBNodeConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBNodeConfigResult::ModifyDBNodeConfigResult() : + ServiceResult() +{} + +ModifyDBNodeConfigResult::ModifyDBNodeConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBNodeConfigResult::~ModifyDBNodeConfigResult() +{} + +void ModifyDBNodeConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBNodeDescriptionRequest.cc b/polardb/src/model/ModifyDBNodeDescriptionRequest.cc new file mode 100644 index 000000000..872fd777e --- /dev/null +++ b/polardb/src/model/ModifyDBNodeDescriptionRequest.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::ModifyDBNodeDescriptionRequest; + +ModifyDBNodeDescriptionRequest::ModifyDBNodeDescriptionRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeDescription") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBNodeDescriptionRequest::~ModifyDBNodeDescriptionRequest() {} + +long ModifyDBNodeDescriptionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBNodeDescriptionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBNodeDescriptionRequest::getDBNodeId() const { + return dBNodeId_; +} + +void ModifyDBNodeDescriptionRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string ModifyDBNodeDescriptionRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBNodeDescriptionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBNodeDescriptionRequest::getDBNodeDescription() const { + return dBNodeDescription_; +} + +void ModifyDBNodeDescriptionRequest::setDBNodeDescription(const std::string &dBNodeDescription) { + dBNodeDescription_ = dBNodeDescription; + setParameter(std::string("DBNodeDescription"), dBNodeDescription); +} + +std::string ModifyDBNodeDescriptionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBNodeDescriptionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBNodeDescriptionRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBNodeDescriptionRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBNodeDescriptionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBNodeDescriptionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBNodeDescriptionRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBNodeDescriptionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/ModifyDBNodeDescriptionResult.cc b/polardb/src/model/ModifyDBNodeDescriptionResult.cc new file mode 100644 index 000000000..1143f02b8 --- /dev/null +++ b/polardb/src/model/ModifyDBNodeDescriptionResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBNodeDescriptionResult::ModifyDBNodeDescriptionResult() : + ServiceResult() +{} + +ModifyDBNodeDescriptionResult::ModifyDBNodeDescriptionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBNodeDescriptionResult::~ModifyDBNodeDescriptionResult() +{} + +void ModifyDBNodeDescriptionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBNodeSccModeRequest.cc b/polardb/src/model/ModifyDBNodeSccModeRequest.cc new file mode 100644 index 000000000..aa7f082c8 --- /dev/null +++ b/polardb/src/model/ModifyDBNodeSccModeRequest.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::ModifyDBNodeSccModeRequest; + +ModifyDBNodeSccModeRequest::ModifyDBNodeSccModeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeSccMode") { + setMethod(HttpRequest::Method::Post); +} + +ModifyDBNodeSccModeRequest::~ModifyDBNodeSccModeRequest() {} + +long ModifyDBNodeSccModeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyDBNodeSccModeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyDBNodeSccModeRequest::getDBNodeId() const { + return dBNodeId_; +} + +void ModifyDBNodeSccModeRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string ModifyDBNodeSccModeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyDBNodeSccModeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyDBNodeSccModeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyDBNodeSccModeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyDBNodeSccModeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyDBNodeSccModeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyDBNodeSccModeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyDBNodeSccModeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyDBNodeSccModeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyDBNodeSccModeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyDBNodeSccModeRequest::getSccMode() const { + return sccMode_; +} + +void ModifyDBNodeSccModeRequest::setSccMode(const std::string &sccMode) { + sccMode_ = sccMode; + setParameter(std::string("SccMode"), sccMode); +} + diff --git a/polardb/src/model/ModifyDBNodeSccModeResult.cc b/polardb/src/model/ModifyDBNodeSccModeResult.cc new file mode 100644 index 000000000..4fb3f8c58 --- /dev/null +++ b/polardb/src/model/ModifyDBNodeSccModeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBNodeSccModeResult::ModifyDBNodeSccModeResult() : + ServiceResult() +{} + +ModifyDBNodeSccModeResult::ModifyDBNodeSccModeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBNodeSccModeResult::~ModifyDBNodeSccModeResult() +{} + +void ModifyDBNodeSccModeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBNodesClassRequest.cc b/polardb/src/model/ModifyDBNodesClassRequest.cc index 4c7c3b7ec..139aa169d 100644 --- a/polardb/src/model/ModifyDBNodesClassRequest.cc +++ b/polardb/src/model/ModifyDBNodesClassRequest.cc @@ -61,6 +61,15 @@ void ModifyDBNodesClassRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyDBNodesClassRequest::getCloudProvider() const { + return cloudProvider_; +} + +void ModifyDBNodesClassRequest::setCloudProvider(const std::string &cloudProvider) { + cloudProvider_ = cloudProvider; + setParameter(std::string("CloudProvider"), cloudProvider); +} + std::string ModifyDBNodesClassRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/polardb/src/model/ModifyEncryptionDBRolePrivilegeRequest.cc b/polardb/src/model/ModifyEncryptionDBRolePrivilegeRequest.cc new file mode 100644 index 000000000..3d0971512 --- /dev/null +++ b/polardb/src/model/ModifyEncryptionDBRolePrivilegeRequest.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::ModifyEncryptionDBRolePrivilegeRequest; + +ModifyEncryptionDBRolePrivilegeRequest::ModifyEncryptionDBRolePrivilegeRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyEncryptionDBRolePrivilege") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEncryptionDBRolePrivilegeRequest::~ModifyEncryptionDBRolePrivilegeRequest() {} + +long ModifyEncryptionDBRolePrivilegeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getRolePrivilegeConfig() const { + return rolePrivilegeConfig_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setRolePrivilegeConfig(const std::string &rolePrivilegeConfig) { + rolePrivilegeConfig_ = rolePrivilegeConfig; + setParameter(std::string("RolePrivilegeConfig"), rolePrivilegeConfig); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyEncryptionDBRolePrivilegeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyEncryptionDBRolePrivilegeRequest::getRolePrivilegeName() const { + return rolePrivilegeName_; +} + +void ModifyEncryptionDBRolePrivilegeRequest::setRolePrivilegeName(const std::string &rolePrivilegeName) { + rolePrivilegeName_ = rolePrivilegeName; + setParameter(std::string("RolePrivilegeName"), rolePrivilegeName); +} + diff --git a/polardb/src/model/ModifyEncryptionDBRolePrivilegeResult.cc b/polardb/src/model/ModifyEncryptionDBRolePrivilegeResult.cc new file mode 100644 index 000000000..99155ca8e --- /dev/null +++ b/polardb/src/model/ModifyEncryptionDBRolePrivilegeResult.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; + +ModifyEncryptionDBRolePrivilegeResult::ModifyEncryptionDBRolePrivilegeResult() : + ServiceResult() +{} + +ModifyEncryptionDBRolePrivilegeResult::ModifyEncryptionDBRolePrivilegeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEncryptionDBRolePrivilegeResult::~ModifyEncryptionDBRolePrivilegeResult() +{} + +void ModifyEncryptionDBRolePrivilegeResult::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(); + +} + +std::string ModifyEncryptionDBRolePrivilegeResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/polardb/src/model/ModifyEncryptionDBSecretRequest.cc b/polardb/src/model/ModifyEncryptionDBSecretRequest.cc new file mode 100644 index 000000000..118b7e7ca --- /dev/null +++ b/polardb/src/model/ModifyEncryptionDBSecretRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyEncryptionDBSecretRequest; + +ModifyEncryptionDBSecretRequest::ModifyEncryptionDBSecretRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyEncryptionDBSecret") { + setMethod(HttpRequest::Method::Post); +} + +ModifyEncryptionDBSecretRequest::~ModifyEncryptionDBSecretRequest() {} + +long ModifyEncryptionDBSecretRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyEncryptionDBSecretRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyEncryptionDBSecretRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyEncryptionDBSecretRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyEncryptionDBSecretRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyEncryptionDBSecretRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyEncryptionDBSecretRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyEncryptionDBSecretRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyEncryptionDBSecretRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyEncryptionDBSecretRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyEncryptionDBSecretRequest::getEncryptionKey() const { + return encryptionKey_; +} + +void ModifyEncryptionDBSecretRequest::setEncryptionKey(const std::string &encryptionKey) { + encryptionKey_ = encryptionKey; + setParameter(std::string("EncryptionKey"), encryptionKey); +} + +long ModifyEncryptionDBSecretRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyEncryptionDBSecretRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyEncryptionDBSecretRequest::getEncryptionDBStatus() const { + return encryptionDBStatus_; +} + +void ModifyEncryptionDBSecretRequest::setEncryptionDBStatus(const std::string &encryptionDBStatus) { + encryptionDBStatus_ = encryptionDBStatus; + setParameter(std::string("EncryptionDBStatus"), encryptionDBStatus); +} + +std::string ModifyEncryptionDBSecretRequest::getRoleArn() const { + return roleArn_; +} + +void ModifyEncryptionDBSecretRequest::setRoleArn(const std::string &roleArn) { + roleArn_ = roleArn; + setParameter(std::string("RoleArn"), roleArn); +} + diff --git a/polardb/src/model/ModifyEncryptionDBSecretResult.cc b/polardb/src/model/ModifyEncryptionDBSecretResult.cc new file mode 100644 index 000000000..a798b4fe8 --- /dev/null +++ b/polardb/src/model/ModifyEncryptionDBSecretResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyEncryptionDBSecretResult::ModifyEncryptionDBSecretResult() : + ServiceResult() +{} + +ModifyEncryptionDBSecretResult::ModifyEncryptionDBSecretResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEncryptionDBSecretResult::~ModifyEncryptionDBSecretResult() +{} + +void ModifyEncryptionDBSecretResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string ModifyEncryptionDBSecretResult::getMessage()const +{ + return message_; +} + +std::string ModifyEncryptionDBSecretResult::getDBClusterId()const +{ + return dBClusterId_; +} + +bool ModifyEncryptionDBSecretResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/ModifyFirewallRulesRequest.cc b/polardb/src/model/ModifyFirewallRulesRequest.cc new file mode 100644 index 000000000..cf9276bfa --- /dev/null +++ b/polardb/src/model/ModifyFirewallRulesRequest.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::ModifyFirewallRulesRequest; + +ModifyFirewallRulesRequest::ModifyFirewallRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyFirewallRules") { + setMethod(HttpRequest::Method::Post); +} + +ModifyFirewallRulesRequest::~ModifyFirewallRulesRequest() {} + +long ModifyFirewallRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyFirewallRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyFirewallRulesRequest::getRuleName() const { + return ruleName_; +} + +void ModifyFirewallRulesRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string ModifyFirewallRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyFirewallRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyFirewallRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyFirewallRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyFirewallRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyFirewallRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyFirewallRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyFirewallRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyFirewallRulesRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyFirewallRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyFirewallRulesRequest::getRuleConfig() const { + return ruleConfig_; +} + +void ModifyFirewallRulesRequest::setRuleConfig(const std::string &ruleConfig) { + ruleConfig_ = ruleConfig; + setParameter(std::string("RuleConfig"), ruleConfig); +} + diff --git a/polardb/src/model/ModifyFirewallRulesResult.cc b/polardb/src/model/ModifyFirewallRulesResult.cc new file mode 100644 index 000000000..9280842cb --- /dev/null +++ b/polardb/src/model/ModifyFirewallRulesResult.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; + +ModifyFirewallRulesResult::ModifyFirewallRulesResult() : + ServiceResult() +{} + +ModifyFirewallRulesResult::ModifyFirewallRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyFirewallRulesResult::~ModifyFirewallRulesResult() +{} + +void ModifyFirewallRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifyFirewallRulesResult::getMessage()const +{ + return message_; +} + +bool ModifyFirewallRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/ModifyLogBackupPolicyRequest.cc b/polardb/src/model/ModifyLogBackupPolicyRequest.cc index ccadae752..870993b5a 100644 --- a/polardb/src/model/ModifyLogBackupPolicyRequest.cc +++ b/polardb/src/model/ModifyLogBackupPolicyRequest.cc @@ -34,6 +34,25 @@ void ModifyLogBackupPolicyRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::vector ModifyLogBackupPolicyRequest::getAdvancedLogPolicies() const { + return advancedLogPolicies_; +} + +void ModifyLogBackupPolicyRequest::setAdvancedLogPolicies(const std::vector &advancedLogPolicies) { + advancedLogPolicies_ = advancedLogPolicies; + for(int dep1 = 0; dep1 != advancedLogPolicies.size(); dep1++) { + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".ActionType", advancedLogPolicies[dep1].actionType); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".SrcType", advancedLogPolicies[dep1].srcType); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".PolicyId", advancedLogPolicies[dep1].policyId); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".DestRegion", advancedLogPolicies[dep1].destRegion); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".LogRetentionValue", advancedLogPolicies[dep1].logRetentionValue); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".LogRetentionType", advancedLogPolicies[dep1].logRetentionType); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".SrcRegion", advancedLogPolicies[dep1].srcRegion); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".DestType", advancedLogPolicies[dep1].destType); + setParameter(std::string("AdvancedLogPolicies") + "." + std::to_string(dep1 + 1) + ".EnableLogBackup", std::to_string(advancedLogPolicies[dep1].enableLogBackup)); + } +} + std::string ModifyLogBackupPolicyRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/polardb/src/model/ModifyMaskingRulesRequest.cc b/polardb/src/model/ModifyMaskingRulesRequest.cc index 6affddfbe..0cf092282 100644 --- a/polardb/src/model/ModifyMaskingRulesRequest.cc +++ b/polardb/src/model/ModifyMaskingRulesRequest.cc @@ -25,13 +25,13 @@ ModifyMaskingRulesRequest::ModifyMaskingRulesRequest() ModifyMaskingRulesRequest::~ModifyMaskingRulesRequest() {} -std::string ModifyMaskingRulesRequest::getDBClusterId() const { - return dBClusterId_; +std::string ModifyMaskingRulesRequest::getMaskingAlgo() const { + return maskingAlgo_; } -void ModifyMaskingRulesRequest::setDBClusterId(const std::string &dBClusterId) { - dBClusterId_ = dBClusterId; - setParameter(std::string("DBClusterId"), dBClusterId); +void ModifyMaskingRulesRequest::setMaskingAlgo(const std::string &maskingAlgo) { + maskingAlgo_ = maskingAlgo; + setParameter(std::string("MaskingAlgo"), maskingAlgo); } std::string ModifyMaskingRulesRequest::getRuleName() const { @@ -52,15 +52,6 @@ void ModifyMaskingRulesRequest::setRuleVersion(const std::string &ruleVersion) { setParameter(std::string("RuleVersion"), ruleVersion); } -std::string ModifyMaskingRulesRequest::getRuleConfig() const { - return ruleConfig_; -} - -void ModifyMaskingRulesRequest::setRuleConfig(const std::string &ruleConfig) { - ruleConfig_ = ruleConfig; - setParameter(std::string("RuleConfig"), ruleConfig); -} - std::string ModifyMaskingRulesRequest::getEnable() const { return enable_; } @@ -70,6 +61,42 @@ void ModifyMaskingRulesRequest::setEnable(const std::string &enable) { setParameter(std::string("Enable"), enable); } +std::string ModifyMaskingRulesRequest::getInterfaceVersion() const { + return interfaceVersion_; +} + +void ModifyMaskingRulesRequest::setInterfaceVersion(const std::string &interfaceVersion) { + interfaceVersion_ = interfaceVersion; + setParameter(std::string("InterfaceVersion"), interfaceVersion); +} + +std::string ModifyMaskingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyMaskingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyMaskingRulesRequest::getDefaultAlgo() const { + return defaultAlgo_; +} + +void ModifyMaskingRulesRequest::setDefaultAlgo(const std::string &defaultAlgo) { + defaultAlgo_ = defaultAlgo; + setParameter(std::string("DefaultAlgo"), defaultAlgo); +} + +std::string ModifyMaskingRulesRequest::getRuleConfig() const { + return ruleConfig_; +} + +void ModifyMaskingRulesRequest::setRuleConfig(const std::string &ruleConfig) { + ruleConfig_ = ruleConfig; + setParameter(std::string("RuleConfig"), ruleConfig); +} + std::string ModifyMaskingRulesRequest::getRuleNameList() const { return ruleNameList_; } diff --git a/polardb/src/model/ModifyResourcePackageRequest.cc b/polardb/src/model/ModifyResourcePackageRequest.cc new file mode 100644 index 000000000..25e103000 --- /dev/null +++ b/polardb/src/model/ModifyResourcePackageRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ModifyResourcePackageRequest; + +ModifyResourcePackageRequest::ModifyResourcePackageRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyResourcePackage") { + setMethod(HttpRequest::Method::Post); +} + +ModifyResourcePackageRequest::~ModifyResourcePackageRequest() {} + +std::string ModifyResourcePackageRequest::getCapacityConfig() const { + return capacityConfig_; +} + +void ModifyResourcePackageRequest::setCapacityConfig(const std::string &capacityConfig) { + capacityConfig_ = capacityConfig; + setParameter(std::string("CapacityConfig"), capacityConfig); +} + +bool ModifyResourcePackageRequest::getAutoQuota() const { + return autoQuota_; +} + +void ModifyResourcePackageRequest::setAutoQuota(bool autoQuota) { + autoQuota_ = autoQuota; + setParameter(std::string("AutoQuota"), autoQuota ? "true" : "false"); +} + +std::string ModifyResourcePackageRequest::getResourcePackageId() const { + return resourcePackageId_; +} + +void ModifyResourcePackageRequest::setResourcePackageId(const std::string &resourcePackageId) { + resourcePackageId_ = resourcePackageId; + setParameter(std::string("ResourcePackageId"), resourcePackageId); +} + diff --git a/polardb/src/model/ModifyResourcePackageResult.cc b/polardb/src/model/ModifyResourcePackageResult.cc new file mode 100644 index 000000000..6f367c69a --- /dev/null +++ b/polardb/src/model/ModifyResourcePackageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyResourcePackageResult::ModifyResourcePackageResult() : + ServiceResult() +{} + +ModifyResourcePackageResult::ModifyResourcePackageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyResourcePackageResult::~ModifyResourcePackageResult() +{} + +void ModifyResourcePackageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifySQLRateLimitingRulesRequest.cc b/polardb/src/model/ModifySQLRateLimitingRulesRequest.cc new file mode 100644 index 000000000..63c8023fa --- /dev/null +++ b/polardb/src/model/ModifySQLRateLimitingRulesRequest.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::ModifySQLRateLimitingRulesRequest; + +ModifySQLRateLimitingRulesRequest::ModifySQLRateLimitingRulesRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifySQLRateLimitingRules") { + setMethod(HttpRequest::Method::Post); +} + +ModifySQLRateLimitingRulesRequest::~ModifySQLRateLimitingRulesRequest() {} + +long ModifySQLRateLimitingRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifySQLRateLimitingRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifySQLRateLimitingRulesRequest::getRuleName() const { + return ruleName_; +} + +void ModifySQLRateLimitingRulesRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +std::string ModifySQLRateLimitingRulesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifySQLRateLimitingRulesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifySQLRateLimitingRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifySQLRateLimitingRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifySQLRateLimitingRulesRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifySQLRateLimitingRulesRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifySQLRateLimitingRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifySQLRateLimitingRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifySQLRateLimitingRulesRequest::getOwnerId() const { + return ownerId_; +} + +void ModifySQLRateLimitingRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifySQLRateLimitingRulesRequest::getRuleConfig() const { + return ruleConfig_; +} + +void ModifySQLRateLimitingRulesRequest::setRuleConfig(const std::string &ruleConfig) { + ruleConfig_ = ruleConfig; + setParameter(std::string("RuleConfig"), ruleConfig); +} + diff --git a/polardb/src/model/ModifySQLRateLimitingRulesResult.cc b/polardb/src/model/ModifySQLRateLimitingRulesResult.cc new file mode 100644 index 000000000..17356b483 --- /dev/null +++ b/polardb/src/model/ModifySQLRateLimitingRulesResult.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; + +ModifySQLRateLimitingRulesResult::ModifySQLRateLimitingRulesResult() : + ServiceResult() +{} + +ModifySQLRateLimitingRulesResult::ModifySQLRateLimitingRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifySQLRateLimitingRulesResult::~ModifySQLRateLimitingRulesResult() +{} + +void ModifySQLRateLimitingRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string ModifySQLRateLimitingRulesResult::getMessage()const +{ + return message_; +} + +bool ModifySQLRateLimitingRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/ModifyScheduleTaskRequest.cc b/polardb/src/model/ModifyScheduleTaskRequest.cc new file mode 100644 index 000000000..7feaf0280 --- /dev/null +++ b/polardb/src/model/ModifyScheduleTaskRequest.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::ModifyScheduleTaskRequest; + +ModifyScheduleTaskRequest::ModifyScheduleTaskRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ModifyScheduleTask") { + setMethod(HttpRequest::Method::Post); +} + +ModifyScheduleTaskRequest::~ModifyScheduleTaskRequest() {} + +long ModifyScheduleTaskRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyScheduleTaskRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyScheduleTaskRequest::getPlannedEndTime() const { + return plannedEndTime_; +} + +void ModifyScheduleTaskRequest::setPlannedEndTime(const std::string &plannedEndTime) { + plannedEndTime_ = plannedEndTime; + setParameter(std::string("PlannedEndTime"), plannedEndTime); +} + +std::string ModifyScheduleTaskRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyScheduleTaskRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyScheduleTaskRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void ModifyScheduleTaskRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string ModifyScheduleTaskRequest::getTaskId() const { + return taskId_; +} + +void ModifyScheduleTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + +std::string ModifyScheduleTaskRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyScheduleTaskRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyScheduleTaskRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ModifyScheduleTaskRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ModifyScheduleTaskRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyScheduleTaskRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string ModifyScheduleTaskRequest::getPlannedFlashingOffTime() const { + return plannedFlashingOffTime_; +} + +void ModifyScheduleTaskRequest::setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime) { + plannedFlashingOffTime_ = plannedFlashingOffTime; + setParameter(std::string("PlannedFlashingOffTime"), plannedFlashingOffTime); +} + +long ModifyScheduleTaskRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyScheduleTaskRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyScheduleTaskRequest::getPlannedStartTime() const { + return plannedStartTime_; +} + +void ModifyScheduleTaskRequest::setPlannedStartTime(const std::string &plannedStartTime) { + plannedStartTime_ = plannedStartTime; + setParameter(std::string("PlannedStartTime"), plannedStartTime); +} + diff --git a/polardb/src/model/ModifyScheduleTaskResult.cc b/polardb/src/model/ModifyScheduleTaskResult.cc new file mode 100644 index 000000000..0b3b0e419 --- /dev/null +++ b/polardb/src/model/ModifyScheduleTaskResult.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; + +ModifyScheduleTaskResult::ModifyScheduleTaskResult() : + ServiceResult() +{} + +ModifyScheduleTaskResult::ModifyScheduleTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyScheduleTaskResult::~ModifyScheduleTaskResult() +{} + +void ModifyScheduleTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +bool ModifyScheduleTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/polardb/src/model/ReactivateDBClusterBackupRequest.cc b/polardb/src/model/ReactivateDBClusterBackupRequest.cc new file mode 100644 index 000000000..1718e6335 --- /dev/null +++ b/polardb/src/model/ReactivateDBClusterBackupRequest.cc @@ -0,0 +1,36 @@ +/* + * 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::ReactivateDBClusterBackupRequest; + +ReactivateDBClusterBackupRequest::ReactivateDBClusterBackupRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ReactivateDBClusterBackup") { + setMethod(HttpRequest::Method::Post); +} + +ReactivateDBClusterBackupRequest::~ReactivateDBClusterBackupRequest() {} + +std::string ReactivateDBClusterBackupRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ReactivateDBClusterBackupRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + diff --git a/polardb/src/model/ReactivateDBClusterBackupResult.cc b/polardb/src/model/ReactivateDBClusterBackupResult.cc new file mode 100644 index 000000000..6eef90c05 --- /dev/null +++ b/polardb/src/model/ReactivateDBClusterBackupResult.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; + +ReactivateDBClusterBackupResult::ReactivateDBClusterBackupResult() : + ServiceResult() +{} + +ReactivateDBClusterBackupResult::ReactivateDBClusterBackupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ReactivateDBClusterBackupResult::~ReactivateDBClusterBackupResult() +{} + +void ReactivateDBClusterBackupResult::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 ReactivateDBClusterBackupResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::string ReactivateDBClusterBackupResult::getOrderId()const +{ + return orderId_; +} + diff --git a/polardb/src/model/RemoveDBClusterFromGDNRequest.cc b/polardb/src/model/RemoveDBClusterFromGDNRequest.cc index 0226fdf61..ef59ff2e1 100644 --- a/polardb/src/model/RemoveDBClusterFromGDNRequest.cc +++ b/polardb/src/model/RemoveDBClusterFromGDNRequest.cc @@ -97,3 +97,12 @@ void RemoveDBClusterFromGDNRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +bool RemoveDBClusterFromGDNRequest::getForce() const { + return force_; +} + +void RemoveDBClusterFromGDNRequest::setForce(bool force) { + force_ = force; + setParameter(std::string("Force"), force ? "true" : "false"); +} + diff --git a/polardb/src/model/ResetAccountPasswordRequest.cc b/polardb/src/model/ResetAccountPasswordRequest.cc new file mode 100644 index 000000000..f254dfcb0 --- /dev/null +++ b/polardb/src/model/ResetAccountPasswordRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ResetAccountPasswordRequest; + +ResetAccountPasswordRequest::ResetAccountPasswordRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ResetAccountPassword") { + setMethod(HttpRequest::Method::Post); +} + +ResetAccountPasswordRequest::~ResetAccountPasswordRequest() {} + +long ResetAccountPasswordRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ResetAccountPasswordRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ResetAccountPasswordRequest::getPasswordType() const { + return passwordType_; +} + +void ResetAccountPasswordRequest::setPasswordType(const std::string &passwordType) { + passwordType_ = passwordType; + setParameter(std::string("PasswordType"), passwordType); +} + +std::string ResetAccountPasswordRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ResetAccountPasswordRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ResetAccountPasswordRequest::getAccountName() const { + return accountName_; +} + +void ResetAccountPasswordRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ResetAccountPasswordRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ResetAccountPasswordRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ResetAccountPasswordRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ResetAccountPasswordRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ResetAccountPasswordRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ResetAccountPasswordRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ResetAccountPasswordRequest::getOwnerId() const { + return ownerId_; +} + +void ResetAccountPasswordRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ResetAccountPasswordRequest::getAccountPassword() const { + return accountPassword_; +} + +void ResetAccountPasswordRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + diff --git a/polardb/src/model/ResetAccountPasswordResult.cc b/polardb/src/model/ResetAccountPasswordResult.cc new file mode 100644 index 000000000..899543030 --- /dev/null +++ b/polardb/src/model/ResetAccountPasswordResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ResetAccountPasswordResult::ResetAccountPasswordResult() : + ServiceResult() +{} + +ResetAccountPasswordResult::ResetAccountPasswordResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountPasswordResult::~ResetAccountPasswordResult() +{} + +void ResetAccountPasswordResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ResetAccountZonalRequest.cc b/polardb/src/model/ResetAccountZonalRequest.cc new file mode 100644 index 000000000..a528399c1 --- /dev/null +++ b/polardb/src/model/ResetAccountZonalRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::ResetAccountZonalRequest; + +ResetAccountZonalRequest::ResetAccountZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "ResetAccountZonal") { + setMethod(HttpRequest::Method::Post); +} + +ResetAccountZonalRequest::~ResetAccountZonalRequest() {} + +long ResetAccountZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ResetAccountZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ResetAccountZonalRequest::getClientToken() const { + return clientToken_; +} + +void ResetAccountZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string ResetAccountZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ResetAccountZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ResetAccountZonalRequest::getAccountName() const { + return accountName_; +} + +void ResetAccountZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string ResetAccountZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ResetAccountZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ResetAccountZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void ResetAccountZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string ResetAccountZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ResetAccountZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ResetAccountZonalRequest::getOwnerId() const { + return ownerId_; +} + +void ResetAccountZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ResetAccountZonalRequest::getAccountPassword() const { + return accountPassword_; +} + +void ResetAccountZonalRequest::setAccountPassword(const std::string &accountPassword) { + accountPassword_ = accountPassword; + setParameter(std::string("AccountPassword"), accountPassword); +} + diff --git a/polardb/src/model/ResetAccountZonalResult.cc b/polardb/src/model/ResetAccountZonalResult.cc new file mode 100644 index 000000000..50f78a8e9 --- /dev/null +++ b/polardb/src/model/ResetAccountZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ResetAccountZonalResult::ResetAccountZonalResult() : + ServiceResult() +{} + +ResetAccountZonalResult::ResetAccountZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResetAccountZonalResult::~ResetAccountZonalResult() +{} + +void ResetAccountZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/RestartDBNodeRequest.cc b/polardb/src/model/RestartDBNodeRequest.cc index fc7434487..4dcd54581 100644 --- a/polardb/src/model/RestartDBNodeRequest.cc +++ b/polardb/src/model/RestartDBNodeRequest.cc @@ -43,6 +43,15 @@ void RestartDBNodeRequest::setDBNodeId(const std::string &dBNodeId) { setParameter(std::string("DBNodeId"), dBNodeId); } +std::string RestartDBNodeRequest::getPlannedEndTime() const { + return plannedEndTime_; +} + +void RestartDBNodeRequest::setPlannedEndTime(const std::string &plannedEndTime) { + plannedEndTime_ = plannedEndTime; + setParameter(std::string("PlannedEndTime"), plannedEndTime); +} + std::string RestartDBNodeRequest::getAccessKeyId() const { return accessKeyId_; } @@ -52,6 +61,15 @@ void RestartDBNodeRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string RestartDBNodeRequest::getRegionId() const { + return regionId_; +} + +void RestartDBNodeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string RestartDBNodeRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -79,3 +97,21 @@ void RestartDBNodeRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string RestartDBNodeRequest::getPlannedStartTime() const { + return plannedStartTime_; +} + +void RestartDBNodeRequest::setPlannedStartTime(const std::string &plannedStartTime) { + plannedStartTime_ = plannedStartTime; + setParameter(std::string("PlannedStartTime"), plannedStartTime); +} + +std::string RestartDBNodeRequest::getFromTimeService() const { + return fromTimeService_; +} + +void RestartDBNodeRequest::setFromTimeService(const std::string &fromTimeService) { + fromTimeService_ = fromTimeService; + setParameter(std::string("FromTimeService"), fromTimeService); +} + diff --git a/polardb/src/model/RestartDBNodeZonalRequest.cc b/polardb/src/model/RestartDBNodeZonalRequest.cc new file mode 100644 index 000000000..c753bbe74 --- /dev/null +++ b/polardb/src/model/RestartDBNodeZonalRequest.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::RestartDBNodeZonalRequest; + +RestartDBNodeZonalRequest::RestartDBNodeZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "RestartDBNodeZonal") { + setMethod(HttpRequest::Method::Post); +} + +RestartDBNodeZonalRequest::~RestartDBNodeZonalRequest() {} + +long RestartDBNodeZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RestartDBNodeZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RestartDBNodeZonalRequest::getDBNodeId() const { + return dBNodeId_; +} + +void RestartDBNodeZonalRequest::setDBNodeId(const std::string &dBNodeId) { + dBNodeId_ = dBNodeId; + setParameter(std::string("DBNodeId"), dBNodeId); +} + +std::string RestartDBNodeZonalRequest::getClientToken() const { + return clientToken_; +} + +void RestartDBNodeZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RestartDBNodeZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RestartDBNodeZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RestartDBNodeZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RestartDBNodeZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RestartDBNodeZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void RestartDBNodeZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string RestartDBNodeZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RestartDBNodeZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RestartDBNodeZonalRequest::getOwnerId() const { + return ownerId_; +} + +void RestartDBNodeZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/polardb/src/model/RestartDBNodeZonalResult.cc b/polardb/src/model/RestartDBNodeZonalResult.cc new file mode 100644 index 000000000..fe655aa17 --- /dev/null +++ b/polardb/src/model/RestartDBNodeZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +RestartDBNodeZonalResult::RestartDBNodeZonalResult() : + ServiceResult() +{} + +RestartDBNodeZonalResult::RestartDBNodeZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartDBNodeZonalResult::~RestartDBNodeZonalResult() +{} + +void RestartDBNodeZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/RestoreTableRequest.cc b/polardb/src/model/RestoreTableRequest.cc index ddbfa1d0e..0370bda1c 100644 --- a/polardb/src/model/RestoreTableRequest.cc +++ b/polardb/src/model/RestoreTableRequest.cc @@ -61,6 +61,15 @@ void RestoreTableRequest::setTableMeta(const std::string &tableMeta) { setParameter(std::string("TableMeta"), tableMeta); } +std::string RestoreTableRequest::getRestoreSpeed() const { + return restoreSpeed_; +} + +void RestoreTableRequest::setRestoreSpeed(const std::string &restoreSpeed) { + restoreSpeed_ = restoreSpeed; + setParameter(std::string("RestoreSpeed"), restoreSpeed); +} + std::string RestoreTableRequest::getRestoreTime() const { return restoreTime_; } diff --git a/polardb/src/model/RevokeAccountPrivilegeZonalRequest.cc b/polardb/src/model/RevokeAccountPrivilegeZonalRequest.cc new file mode 100644 index 000000000..098646788 --- /dev/null +++ b/polardb/src/model/RevokeAccountPrivilegeZonalRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::RevokeAccountPrivilegeZonalRequest; + +RevokeAccountPrivilegeZonalRequest::RevokeAccountPrivilegeZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "RevokeAccountPrivilegeZonal") { + setMethod(HttpRequest::Method::Post); +} + +RevokeAccountPrivilegeZonalRequest::~RevokeAccountPrivilegeZonalRequest() {} + +long RevokeAccountPrivilegeZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RevokeAccountPrivilegeZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RevokeAccountPrivilegeZonalRequest::getClientToken() const { + return clientToken_; +} + +void RevokeAccountPrivilegeZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string RevokeAccountPrivilegeZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RevokeAccountPrivilegeZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RevokeAccountPrivilegeZonalRequest::getAccountName() const { + return accountName_; +} + +void RevokeAccountPrivilegeZonalRequest::setAccountName(const std::string &accountName) { + accountName_ = accountName; + setParameter(std::string("AccountName"), accountName); +} + +std::string RevokeAccountPrivilegeZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RevokeAccountPrivilegeZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RevokeAccountPrivilegeZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void RevokeAccountPrivilegeZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string RevokeAccountPrivilegeZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RevokeAccountPrivilegeZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RevokeAccountPrivilegeZonalRequest::getOwnerId() const { + return ownerId_; +} + +void RevokeAccountPrivilegeZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RevokeAccountPrivilegeZonalRequest::getDBName() const { + return dBName_; +} + +void RevokeAccountPrivilegeZonalRequest::setDBName(const std::string &dBName) { + dBName_ = dBName; + setParameter(std::string("DBName"), dBName); +} + diff --git a/polardb/src/model/RevokeAccountPrivilegeZonalResult.cc b/polardb/src/model/RevokeAccountPrivilegeZonalResult.cc new file mode 100644 index 000000000..5cc557028 --- /dev/null +++ b/polardb/src/model/RevokeAccountPrivilegeZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +RevokeAccountPrivilegeZonalResult::RevokeAccountPrivilegeZonalResult() : + ServiceResult() +{} + +RevokeAccountPrivilegeZonalResult::RevokeAccountPrivilegeZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RevokeAccountPrivilegeZonalResult::~RevokeAccountPrivilegeZonalResult() +{} + +void RevokeAccountPrivilegeZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/UpdateExtensionsRequest.cc b/polardb/src/model/UpdateExtensionsRequest.cc new file mode 100644 index 000000000..420895321 --- /dev/null +++ b/polardb/src/model/UpdateExtensionsRequest.cc @@ -0,0 +1,144 @@ +/* + * 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::UpdateExtensionsRequest; + +UpdateExtensionsRequest::UpdateExtensionsRequest() + : RpcServiceRequest("polardb", "2017-08-01", "UpdateExtensions") { + setMethod(HttpRequest::Method::Post); +} + +UpdateExtensionsRequest::~UpdateExtensionsRequest() {} + +long UpdateExtensionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdateExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdateExtensionsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateExtensionsRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateExtensionsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateExtensionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateExtensionsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void UpdateExtensionsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string UpdateExtensionsRequest::getRegionId() const { + return regionId_; +} + +void UpdateExtensionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string UpdateExtensionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateExtensionsRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UpdateExtensionsRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UpdateExtensionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdateExtensionsRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateExtensionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateExtensionsRequest::getVersion() const { + return version_; +} + +void UpdateExtensionsRequest::setVersion(const std::string &version) { + version_ = version; + setParameter(std::string("Version"), version); +} + +std::string UpdateExtensionsRequest::getDBNames() const { + return dBNames_; +} + +void UpdateExtensionsRequest::setDBNames(const std::string &dBNames) { + dBNames_ = dBNames; + setParameter(std::string("DBNames"), dBNames); +} + +std::string UpdateExtensionsRequest::getExtensions() const { + return extensions_; +} + +void UpdateExtensionsRequest::setExtensions(const std::string &extensions) { + extensions_ = extensions; + setParameter(std::string("Extensions"), extensions); +} + +std::string UpdateExtensionsRequest::getVpcId() const { + return vpcId_; +} + +void UpdateExtensionsRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + diff --git a/polardb/src/model/UpdateExtensionsResult.cc b/polardb/src/model/UpdateExtensionsResult.cc new file mode 100644 index 000000000..c33b18f83 --- /dev/null +++ b/polardb/src/model/UpdateExtensionsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +UpdateExtensionsResult::UpdateExtensionsResult() : + ServiceResult() +{} + +UpdateExtensionsResult::UpdateExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateExtensionsResult::~UpdateExtensionsResult() +{} + +void UpdateExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/UpgradeDBClusterVersionZonalRequest.cc b/polardb/src/model/UpgradeDBClusterVersionZonalRequest.cc new file mode 100644 index 000000000..4ed262213 --- /dev/null +++ b/polardb/src/model/UpgradeDBClusterVersionZonalRequest.cc @@ -0,0 +1,171 @@ +/* + * 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::UpgradeDBClusterVersionZonalRequest; + +UpgradeDBClusterVersionZonalRequest::UpgradeDBClusterVersionZonalRequest() + : RpcServiceRequest("polardb", "2017-08-01", "UpgradeDBClusterVersionZonal") { + setMethod(HttpRequest::Method::Post); +} + +UpgradeDBClusterVersionZonalRequest::~UpgradeDBClusterVersionZonalRequest() {} + +long UpgradeDBClusterVersionZonalRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpgradeDBClusterVersionZonalRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpgradeDBClusterVersionZonalRequest::getClientToken() const { + return clientToken_; +} + +void UpgradeDBClusterVersionZonalRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpgradeDBClusterVersionZonalRequest::getUpgradeType() const { + return upgradeType_; +} + +void UpgradeDBClusterVersionZonalRequest::setUpgradeType(const std::string &upgradeType) { + upgradeType_ = upgradeType; + setParameter(std::string("UpgradeType"), upgradeType); +} + +std::string UpgradeDBClusterVersionZonalRequest::getPlannedEndTime() const { + return plannedEndTime_; +} + +void UpgradeDBClusterVersionZonalRequest::setPlannedEndTime(const std::string &plannedEndTime) { + plannedEndTime_ = plannedEndTime; + setParameter(std::string("PlannedEndTime"), plannedEndTime); +} + +std::string UpgradeDBClusterVersionZonalRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpgradeDBClusterVersionZonalRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpgradeDBClusterVersionZonalRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpgradeDBClusterVersionZonalRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpgradeDBClusterVersionZonalRequest::getDBClusterId() const { + return dBClusterId_; +} + +void UpgradeDBClusterVersionZonalRequest::setDBClusterId(const std::string &dBClusterId) { + dBClusterId_ = dBClusterId; + setParameter(std::string("DBClusterId"), dBClusterId); +} + +std::string UpgradeDBClusterVersionZonalRequest::getUpgradeLabel() const { + return upgradeLabel_; +} + +void UpgradeDBClusterVersionZonalRequest::setUpgradeLabel(const std::string &upgradeLabel) { + upgradeLabel_ = upgradeLabel; + setParameter(std::string("UpgradeLabel"), upgradeLabel); +} + +std::string UpgradeDBClusterVersionZonalRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpgradeDBClusterVersionZonalRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string UpgradeDBClusterVersionZonalRequest::getPlannedFlashingOffTime() const { + return plannedFlashingOffTime_; +} + +void UpgradeDBClusterVersionZonalRequest::setPlannedFlashingOffTime(const std::string &plannedFlashingOffTime) { + plannedFlashingOffTime_ = plannedFlashingOffTime; + setParameter(std::string("PlannedFlashingOffTime"), plannedFlashingOffTime); +} + +long UpgradeDBClusterVersionZonalRequest::getOwnerId() const { + return ownerId_; +} + +void UpgradeDBClusterVersionZonalRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpgradeDBClusterVersionZonalRequest::getPlannedStartTime() const { + return plannedStartTime_; +} + +void UpgradeDBClusterVersionZonalRequest::setPlannedStartTime(const std::string &plannedStartTime) { + plannedStartTime_ = plannedStartTime; + setParameter(std::string("PlannedStartTime"), plannedStartTime); +} + +std::string UpgradeDBClusterVersionZonalRequest::getTargetDBRevisionVersionCode() const { + return targetDBRevisionVersionCode_; +} + +void UpgradeDBClusterVersionZonalRequest::setTargetDBRevisionVersionCode(const std::string &targetDBRevisionVersionCode) { + targetDBRevisionVersionCode_ = targetDBRevisionVersionCode; + setParameter(std::string("TargetDBRevisionVersionCode"), targetDBRevisionVersionCode); +} + +std::string UpgradeDBClusterVersionZonalRequest::getTargetProxyRevisionVersionCode() const { + return targetProxyRevisionVersionCode_; +} + +void UpgradeDBClusterVersionZonalRequest::setTargetProxyRevisionVersionCode(const std::string &targetProxyRevisionVersionCode) { + targetProxyRevisionVersionCode_ = targetProxyRevisionVersionCode; + setParameter(std::string("TargetProxyRevisionVersionCode"), targetProxyRevisionVersionCode); +} + +std::string UpgradeDBClusterVersionZonalRequest::getUpgradePolicy() const { + return upgradePolicy_; +} + +void UpgradeDBClusterVersionZonalRequest::setUpgradePolicy(const std::string &upgradePolicy) { + upgradePolicy_ = upgradePolicy; + setParameter(std::string("UpgradePolicy"), upgradePolicy); +} + +bool UpgradeDBClusterVersionZonalRequest::getFromTimeService() const { + return fromTimeService_; +} + +void UpgradeDBClusterVersionZonalRequest::setFromTimeService(bool fromTimeService) { + fromTimeService_ = fromTimeService; + setParameter(std::string("FromTimeService"), fromTimeService ? "true" : "false"); +} + diff --git a/polardb/src/model/UpgradeDBClusterVersionZonalResult.cc b/polardb/src/model/UpgradeDBClusterVersionZonalResult.cc new file mode 100644 index 000000000..870759adc --- /dev/null +++ b/polardb/src/model/UpgradeDBClusterVersionZonalResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +UpgradeDBClusterVersionZonalResult::UpgradeDBClusterVersionZonalResult() : + ServiceResult() +{} + +UpgradeDBClusterVersionZonalResult::UpgradeDBClusterVersionZonalResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpgradeDBClusterVersionZonalResult::~UpgradeDBClusterVersionZonalResult() +{} + +void UpgradeDBClusterVersionZonalResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} +